/* AIQ brand tokens, shared with the AIQ ROI Calculator. Horizon colors come from the AIQ Horizons infographic. */
:root {
  --navy-950: #000e24;
  --navy-900: #031631;
  --navy-800: #0a2244;
  --navy-700: #12305a;
  --rule: #0078a0;
  --cyan: #00c2f8;
  --cyan-bright: #00ecf8;
  --orange: #f88000;
  --gold: #eda507;
  --text: #ffffff;
  --muted: #b8c8f0;
  --dim: #7f93bb;

  --radius: 14px;
  --radius-sm: 10px;
  --tap: 48px;
  --gutter: 16px;
  --maxw: 680px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -200px, #0a2a55 0%, var(--navy-950) 60%) fixed, var(--navy-950);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 2px;
}
h1:focus, h1[tabindex]:focus-visible { outline: none; }
[hidden] { display: none !important; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--gutter);
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(0, 14, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 120, 160, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: var(--tap); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }

main { outline: none; }
.screen { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 40px; }
.footer { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 32px; text-align: center; }
.legal { margin: 12px auto 0; max-width: 520px; color: var(--dim); font-size: 12px; line-height: 1.45; }
.noscript { padding: 20px; text-align: center; }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 16px 0 6px; }
.hero-title { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.hero-sub { color: var(--muted); font-size: 18px; margin: 0 0 8px; }
.headline { font-size: 30px; font-weight: 800; }
.headline-sm { font-size: 26px; font-weight: 800; }
.under-headline { color: var(--muted); margin: 0 0 16px; }
.section-title { font-size: 22px; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid rgba(0, 120, 160, 0.4); }
.meta { font-weight: 700; color: var(--cyan); margin: 8px 0 4px; }
.note { color: var(--muted); font-size: 15px; margin: 0; }
.step-count { color: var(--dim); font-size: 14px; margin: 8px 0 12px; }
.config-note { color: var(--gold); font-size: 15px; border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 12px; }
@media (min-width: 600px) {
  .hero-title { font-size: 38px; }
  .headline { font-size: 36px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--cyan); color: var(--navy-950); }
.btn-primary:hover { background: var(--cyan-bright); }
.btn-accent { background: var(--orange); color: var(--navy-950); }
.btn-accent:hover { background: #ff9426; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 16px; }
.link-btn { background: none; border: 0; color: var(--cyan); font: inherit; text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: var(--tap); margin-top: 16px; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.actions .btn { flex: 1; }
.actions-stack { flex-direction: column; }
@media (min-width: 600px) { .actions-stack { flex-direction: row; } }

/* Landing */
.horizon-strip { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin: 20px 0 16px; }
.horizon-strip li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.horizon-strip img { width: 100%; max-width: 72px; border-radius: 12px; border: 2px solid var(--h); box-shadow: 0 0 14px color-mix(in srgb, var(--h) 35%, transparent); }
@media (min-width: 600px) { .horizon-strip li { font-size: 14px; } }

/* About you */
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.q-small { font-size: 18px; font-weight: 700; margin: 0 0 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--navy-700); background: var(--navy-900); font-size: 15px; font-weight: 600; }
.chip input:checked + span { border-color: var(--cyan); background: rgba(0, 194, 248, 0.14); }
.chip input:focus-visible + span { outline: 3px solid var(--cyan-bright); outline-offset: 2px; }

/* Statements */
.qprogress { height: 6px; border-radius: 999px; background: var(--navy-800); overflow: hidden; margin-top: 8px; }
.qprogress-fill { height: 100%; background: var(--cyan); border-radius: 999px; transition: width 0.25s; }
.statement { font-size: 24px; font-weight: 700; line-height: 1.3; min-height: 3.9em; margin: 0 0 8px; }
@media (min-width: 600px) { .statement { font-size: 28px; } }
.scale-prompt { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.scale { display: grid; gap: 10px; }
.scale-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px;
  border-radius: var(--radius-sm); border: 2px solid var(--navy-700); background: var(--navy-900);
  color: var(--text); font: inherit; font-weight: 600; font-size: 18px; text-align: left; cursor: pointer;
}
.scale-btn:hover { border-color: var(--rule); }
.scale-btn.selected { border-color: var(--cyan); background: rgba(0, 194, 248, 0.14); }
.scale-key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: var(--dim); font-size: 13px; font-weight: 700; flex: none; }
.scale-btn.selected .scale-key { background: var(--cyan); color: var(--navy-950); }

/* Profile bars */
.profile { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 12px; }
.profile-row { display: flex; align-items: center; gap: 12px; }
.profile-icon { flex: none; width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--h); }
.profile-main { flex: 1; min-width: 0; }
.profile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.profile-name { font-weight: 700; }
.profile-tag { color: var(--dim); font-weight: 600; font-size: 13px; margin-left: 4px; }
.profile-band { color: var(--h); font-weight: 700; font-size: 15px; flex: none; }
.bar { height: 12px; border-radius: 999px; background: var(--navy-800); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--h); }
@media (max-width: 420px) { .profile-tag { display: none; } }

/* Strongest and growth cards */
.cards { display: grid; gap: 12px; }
.hcard { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-800); border: 1px solid var(--navy-700); border-left: 4px solid var(--h); border-radius: var(--radius); padding: 16px; }
.hcard-icon { flex: none; width: 56px; height: 56px; border-radius: 10px; }
.hcard-label { margin: 0; color: var(--h); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hcard-name { font-size: 20px; margin: 2px 0 6px; }
.hcard-body { margin: 0; }
.next-move { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--navy-700); }
.special { background: var(--navy-900); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.special h3 { font-size: 18px; margin-bottom: 4px; color: var(--cyan); }
.special p { margin: 0; }

/* AIQ Brief */
.brief { background: #f7f9fc; color: #0b1730; border-radius: var(--radius); padding: 16px; margin: 12px 0 0; overflow: hidden; }
.brief-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.brief-top .btn-secondary { color: #0b1730; border-color: #0b1730; flex: none; }
.brief-title { font-size: 18px; margin: 0; color: #0b1730; }
.brief-body { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.55; }
.brief-head { font-weight: 800; margin: 14px 0 2px; }
.brief-line { margin: 0 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.brief-blur { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 4px; filter: blur(4px); user-select: none; -webkit-user-select: none; }
.blur-bar { display: block; height: 12px; border-radius: 6px; background: #9fb0cc; }
.brief-closing { font-size: 15px; font-style: italic; color: #33476b; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #d6deea; }

/* More links */
.more { display: grid; gap: 8px; }
.more-link { display: flex; align-items: center; min-height: var(--tap); padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--navy-700); background: var(--navy-900); font-weight: 600; text-decoration: none; }
.more-link::after { content: "→"; margin-left: auto; padding-left: 12px; }
.more-link:hover { border-color: var(--rule); }

/* Snapshot */
.snap-head { display: flex; align-items: center; gap: 16px; }
.snap-head .headline { margin-bottom: 4px; }
.snap-head .under-headline { margin: 0; }
.snap-logo { flex: none; width: 72px; height: 72px; }
.hlist { display: grid; gap: 12px; }
.hitem { background: var(--navy-900); border: 1px solid var(--navy-700); border-left: 4px solid var(--h); border-radius: var(--radius); padding: 14px 16px; }
.hitem-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.hitem-top img { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.hitem h3 { font-size: 17px; margin: 0; }
.hitem-tag { margin: 0; color: var(--h); font-size: 14px; font-weight: 700; }
.hitem p { margin: 0 0 8px; }
.hitem-band { color: var(--muted); }
.hitem-band strong { color: var(--h); }
.plan { padding-left: 22px; }
.plan li { margin-bottom: 8px; }

/* Done */
.done { text-align: center; padding-top: 40px; }
.done-logo { display: block; margin: 0 auto 20px; }

/* Print and Save as PDF */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .no-print, .topbar { display: none !important; }
  .screen { max-width: none; padding: 0; }
  .headline, .section-title, .hcard-name, .hitem h3, .profile-name { color: #000; }
  .under-headline, .hitem-band, .profile-tag, .note { color: #333; }
  .section-title { border-top-color: #999; break-after: avoid; }
  .hcard, .hitem, .special { background: #fff; border-color: #999; break-inside: avoid; }
  .bar { background: #e3e8f0; }
  .brief { border: 1px solid #999; }
  .more-link { background: #fff; border-color: #999; color: #000; }
  .legal { color: #555; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
