/* IACP CRIS demo — CustomGPT.ai sales prop (visual parity with theiacp.org) */
:root {
  --sidebar: #1C2331;
  --sidebar-mid: #252d3d;
  --blue: #0A6FC2;
  --blue-light: #0070b9;
  --teal: #0E7C86;
  --gold: #F2A900;
  --gold-dark: #d49200;
  --text: #1C2331;
  --muted: #5a6570;
  --bg: #eef2f6;
  --card: #fff;
  --border: #d5dde6;
  --navy: #1C2331;
  --brand: #0070b9;
  --brand-dark: #1C2331;
  --accent: #F2A900;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(28, 35, 49, 0.12);
  --sidebar-w: 260px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(900px, calc(100% - 2.5rem)); margin: 0 auto; }

.demo-banner {
  background: linear-gradient(90deg, #7a00df, #0070b9);
  color: #fff; text-align: center; font-size: 0.78rem; padding: 0.4rem 1rem; font-weight: 600;
  position: sticky; top: 0; z-index: 100;
}

.app-shell { display: flex; min-height: calc(100vh - 28px); }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--sidebar); color: #fff;
  padding: 1.25rem 1rem 2rem; display: flex; flex-direction: column; gap: 0.35rem;
  position: sticky; top: 28px; height: calc(100vh - 28px); overflow-y: auto;
}
.logo-mark {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none !important; color: #fff; margin-bottom: 1.25rem; padding: 0.5rem 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.shield {
  width: 64px; height: 72px; background: linear-gradient(160deg, #2a5f9e, #0A6FC2);
  clip-path: polygon(50% 0%, 100% 18%, 100% 62%, 50% 100%, 0% 62%, 0% 18%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.shield span { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.logo-mark .word { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.12em; font-family: Georgia, serif; }
.logo-mark .sub { font-size: 0.62rem; opacity: 0.7; margin-top: 0.25rem; line-height: 1.3; }

.nav { display: flex; flex-direction: column; gap: 0.15rem; }
.nav a {
  color: #e2e6ed; font-weight: 600; font-size: 0.9rem; text-decoration: none;
  padding: 0.45rem 0.65rem; border-radius: 4px;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.nav a.ask-cris {
  color: var(--gold) !important; font-weight: 800; display: flex; align-items: center; gap: 0.4rem;
}
.nav a.ask-cris::before { content: "⌕"; font-size: 0.95rem; }
.nav .btn { background: var(--teal); color: #fff !important; text-align: center; margin-top: 0.35rem; }

.member-box {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.member-box h4 {
  margin: 0 0 0.65rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); font-weight: 700;
}
.member-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.75rem; }
.member-btns a {
  text-align: center; padding: 0.5rem 0.35rem; font-size: 0.78rem; font-weight: 700;
  text-decoration: none !important; border-radius: 3px;
}
.member-btns .login { background: #2a3548; color: #fff; }
.member-btns .join { background: var(--teal); color: #fff; }
.side-links a {
  display: block; color: #b8c0ce; font-size: 0.82rem; text-decoration: none; padding: 0.3rem 0.15rem;
}
.side-links a:hover { color: #fff; }

.demo-hsearch { margin-top: 0.75rem; position: relative; }
.demo-hsearch form { position: relative; margin: 0; }
.demo-hsearch input {
  width: 100%; padding: 0.55rem 2.4rem 0.55rem 0.7rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 0.82rem; font-family: var(--font);
}
.demo-hsearch input::placeholder { color: rgba(255,255,255,0.45); }
.demo-hsearch input:focus { outline: 2px solid rgba(242,169,0,0.45); background: rgba(255,255,255,0.12); }
.demo-hsearch .ai-tag {
  position: absolute; right: 2.2rem; top: 50%; transform: translateY(-50%);
  font-size: 0.58rem; font-weight: 800; color: var(--gold); pointer-events: none;
}
.demo-hsearch .go {
  position: absolute; right: 3px; top: 3px; bottom: 3px; width: 30px; border: none; border-radius: 3px;
  background: var(--gold); color: #1C2331; cursor: pointer; font-weight: 800; font-size: 0.9rem;
}
.demo-searchdrop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  min-width: min(420px, 85vw); background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,0.25); z-index: 60; overflow: hidden;
}
.demo-searchdrop .sd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); background: #f4f6f8;
}
.demo-searchdrop .sd-head .lab { color: var(--blue-light); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.72rem; font-weight: 800; }
.demo-searchdrop .sd-close { border: none; background: #e0e6f0; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
#customgpt_search { width: 100%; min-height: 160px; padding: 4px; }

.nav-toggle {
  display: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 4px; padding: 0.4rem 0.7rem; font-weight: 700; margin-bottom: 0.5rem;
}

.main { flex: 1; min-width: 0; }

.hero {
  background: linear-gradient(120deg, rgba(10,111,194,0.92), rgba(28,35,49,0.88)),
    linear-gradient(160deg, #3a6ea5, #1C2331);
  color: #fff; padding: 4rem 0 4.5rem; position: relative; min-height: 420px;
  display: flex; align-items: center;
}
.hero .container { width: min(640px, calc(100% - 2.5rem)); }
.hero-box {
  background: rgba(28, 35, 49, 0.88); padding: 2rem 2.25rem; border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.hero-kicker {
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); margin: 0 0 0.65rem;
}
.hero h1 {
  margin: 0 0 1.25rem; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.2;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.65rem; color: #fff; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none !important;
}
.hero-cta .arrow {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1C2331;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.35rem; }
.btn-primary, .btn-secondary, .btn-try {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.2rem; border-radius: 4px; font-weight: 700; text-decoration: none !important; font-size: 0.92rem;
}
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-try { background: var(--gold) !important; color: #1C2331 !important; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.btn-try:hover { filter: brightness(1.06); }
.btn-secondary { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,0.45); }

.section { padding: 2.5rem 0; }
.section.alt { background: #fff; }
.section-head { margin-bottom: 1.35rem; }
.section-head h2 { margin: 0; font-size: 1.45rem; color: var(--sidebar); }
.section-head p { margin: 0.4rem 0 0; color: var(--muted); max-width: 38rem; }
.eyebrow { color: var(--gold-dark); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.35rem; }

.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-accent { height: 4px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.card-body { padding: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body .tag {
  align-self: flex-start; background: rgba(242,169,0,0.15); color: var(--gold-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 3px;
}
.card-body h3 { margin: 0; font-size: 1.02rem; color: var(--sidebar); }
.card-body p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }

.cta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.cta-pill {
  display: block; text-align: center; font-weight: 700; background: #fff; border: 1.5px solid var(--border);
  border-radius: 4px; padding: 1rem 0.75rem; color: var(--sidebar); text-decoration: none !important; box-shadow: var(--shadow);
}
.cta-pill:hover { border-color: var(--gold); color: var(--gold-dark); }

.cta-band {
  background: linear-gradient(120deg, var(--sidebar), var(--blue));
  color: #fff; border-radius: 8px; padding: 2rem 2.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 0.4rem; font-size: 1.4rem; }
.cta-band p { margin: 0; color: #c5d0e0; max-width: 34rem; }

.site-footer { background: var(--sidebar); color: #b7c3d4; padding: 2.25rem 0 1.35rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.site-footer h4 { color: #fff; margin: 0 0 0.7rem; font-size: 0.92rem; }
.site-footer a { color: #c9d6e8; display: block; margin-bottom: 0.35rem; font-size: 0.9rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; font-size: 0.8rem; color: #8fa0b5; }
.footer-note strong { color: #d5deea; }

.assistant-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f5f7fa; }
.assistant-page .assistant-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.assistant-page #customgpt_chat { flex: 1; min-height: calc(100vh - 96px); width: 100%; }
.assistant-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 0.65rem 0; }
.assistant-bar .container { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.assistant-bar a.back { font-weight: 700; color: var(--blue-light); text-decoration: none; }
.assistant-bar strong { color: var(--sidebar); }

@media (max-width: 960px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: relative; top: 0; flex-direction: column;
  }
  .nav-toggle { display: inline-block; align-self: flex-start; }
  .nav { display: none; }
  .nav.open { display: flex; }
  .grid-2, .grid-3, .footer-grid, .cta-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .footer-grid, .cta-strip { grid-template-columns: 1fr; }
  .hero-box { padding: 1.5rem; }
}
