:root {
  --navy: #001a2b;
  --navy-2: #0b3146;
  --navy-3: #174a62;
  --gold: #f3b44a;
  --gold-dark: #c88418;
  --cream: #f7f4ed;
  --white: #ffffff;
  --ink: #14212a;
  --muted: #5a6974;
  --line: #dce3e7;
  --soft-blue: #eaf2f5;
  --soft-gold: #fff4da;
  --danger: #8c2d2d;
  --shadow: 0 20px 60px rgba(0, 26, 43, 0.12);
  --radius: 22px;
  --radius-small: 14px;
  --shell: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--shell)) / 2));
  background: rgba(0, 26, 43, 0.97);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
  text-decoration: none;
}
.brand img { width: auto; height: 48px; object-fit: contain; }
.brand-fallback { display: none; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.02em; }
.brand-fallback::before { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 9px var(--navy); border: 3px solid var(--gold); }
.header-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}
.header-link:hover, .header-link:focus-visible { color: var(--gold); border-color: var(--gold); }

.shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }
.narrow { max-width: 820px; }
.page { min-height: calc(100vh - 76px); }
.eyebrow { margin: 0 0 14px; color: var(--gold-dark); font-size: 12px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.card { border: 1px solid rgba(0,26,43,0.09); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding-top: clamp(70px, 10vw, 132px);
  padding-bottom: clamp(70px, 9vw, 120px);
}
.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-lede { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:focus-visible, .score-option:focus-visible, .text-button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(243,180,74,0.58); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: 0.48; }
.button-primary { background: var(--gold); color: var(--navy); box-shadow: 0 12px 28px rgba(200,132,24,0.22); }
.button-primary:hover:not(:disabled) { background: #ffc35b; box-shadow: 0 16px 34px rgba(200,132,24,0.28); }
.button-secondary { border-color: var(--navy); background: transparent; color: var(--navy); }
.button-secondary:hover { background: var(--navy); color: var(--white); }
.button-secondary.light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.button-secondary.light:hover { background: var(--white); color: var(--navy); }
.button-quiet { border-color: var(--line); background: var(--white); color: var(--navy); }
.button-quiet:hover:not(:disabled) { border-color: var(--navy); }

.proof-list { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 36px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.proof-list li { position: relative; padding-left: 18px; }
.proof-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.proof-list strong { color: var(--navy); }

.decision-card { position: relative; overflow: hidden; padding: 38px; border-radius: 30px; background: var(--navy); color: var(--white); box-shadow: 0 28px 80px rgba(0,26,43,0.23); }
.decision-card::before { content: ""; position: absolute; inset: -120px -180px auto auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(243,180,74,.22), transparent 68%); }
.decision-card h2 { margin: 30px 0 10px; font-size: 26px; line-height: 1.2; }
.decision-card p { margin: 0; color: rgba(255,255,255,0.72); }
.matrix-mini { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 32px 0 30px; }
.matrix-mini::before, .matrix-mini::after { content: ""; position: absolute; background: rgba(255,255,255,.28); }
.matrix-mini::before { left: 50%; top: 19px; bottom: 18px; width: 1px; }
.matrix-mini::after { left: 0; right: 0; top: 50%; height: 1px; }
.matrix-cell { min-height: 80px; display: grid; place-items: center; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.06); text-align: center; font-size: 13px; font-weight: 700; }
.matrix-accent { color: var(--gold); }
.axis-label { position: absolute; font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }
.axis-top { top: 0; left: 0; }
.axis-bottom { right: 0; bottom: 0; }
.trust-strip { border-top: 1px solid rgba(0,26,43,.07); border-bottom: 1px solid rgba(0,26,43,.07); background: rgba(255,255,255,.58); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { padding: 30px 34px; border-right: 1px solid rgba(0,26,43,.08); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--navy); font-size: 16px; }
.trust-grid span { margin-top: 5px; color: var(--muted); font-size: 13px; }

.form-page, .question-page { padding: 72px 0 100px; }
.step-header { margin-bottom: 30px; }
.step-header h1 { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.045em; }
.step-header > p:last-child { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.privacy-callout { margin: 0 0 20px; padding: 16px 20px; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--soft-gold); color: #4c3b19; }
.form-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(26px, 5vw, 48px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form-actions.full, .privacy-line.full, .error-message.full, .preview-message.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 14px; font-weight: 800; }
.field input, .field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #bdc9d0;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 15px;
}
.field input:hover, .field select:hover { border-color: var(--navy-3); }
.field small { color: var(--muted); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.privacy-line { margin: 2px 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.preview-message { padding: 14px 18px; border: 1px solid #d7b35f; border-radius: 12px; background: var(--soft-gold); color: #574319; font-size: 14px; }
.error-message { padding: 14px 18px; border: 1px solid #cc8d8d; border-radius: 12px; background: #fff0f0; color: var(--danger); }

.progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.progress-track { height: 7px; overflow: hidden; margin-bottom: 24px; border-radius: 999px; background: #dbe3e7; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.question-card { padding: clamp(28px, 6vw, 58px); }
.question-id { margin: 0 0 16px; color: var(--gold-dark); font-weight: 900; letter-spacing: .12em; }
.question-card h1 { max-width: 730px; margin: 0; color: var(--navy); font-size: clamp(30px, 4.3vw, 48px); line-height: 1.12; letter-spacing: -0.035em; }
.question-help { max-width: 700px; margin: 18px 0 30px; color: var(--muted); font-size: 17px; }
.score-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.score-option { min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; color: var(--navy); cursor: pointer; font-weight: 750; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.score-option:hover { transform: translateY(-2px); border-color: var(--navy-3); }
.score-option.selected { border: 2px solid var(--gold-dark); background: var(--soft-gold); }
.score-dot { width: 26px; height: 26px; border: 2px solid #93a5af; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 6px var(--white); }
.score-option.selected .score-dot { border-color: var(--gold-dark); background: var(--gold); }
.score-label { text-align: center; font-size: 13px; }
.question-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; }

.result-hero { padding: 70px 0 64px; background: var(--navy); color: var(--white); }
.result-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.result-hero h1 { margin: 0; color: var(--gold); font-size: clamp(46px, 7vw, 80px); line-height: .98; letter-spacing: -.055em; }
.result-hero h2 { margin: 20px 0 12px; font-size: clamp(22px, 3vw, 32px); }
.result-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.73); font-size: 17px; }
.decision-reviewed { margin-top: 26px !important; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px !important; }
.decision-reviewed strong { color: var(--white); }
.score-panel { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.07); }
.score-panel > div { padding: 28px; text-align: center; }
.score-panel > div + div { border-left: 1px solid rgba(255,255,255,.14); }
.score-panel span { display: block; min-height: 42px; color: rgba(255,255,255,.68); font-size: 13px; font-weight: 700; }
.score-panel strong { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 54px; line-height: 1; }
.score-panel small { color: rgba(255,255,255,.52); }
.result-content { padding-top: 42px; padding-bottom: 100px; }
.safety-callout { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-bottom: 26px; padding: 24px; border: 1px solid #e0ba68; border-radius: var(--radius); background: var(--soft-gold); }
.safety-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 950; }
.safety-callout h2 { margin: 0 0 6px; color: var(--navy); font-size: 19px; }
.safety-callout p { margin: 0; }
.safety-callout ul { margin: 10px 0 0; padding-left: 20px; color: #5f4819; }
.result-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.matrix-wrap { position: relative; padding: 30px 30px 44px 56px; }
.matrix-result { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.matrix-result-cell { min-height: 134px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f5f8f9; text-align: center; color: var(--navy); font-weight: 800; }
.matrix-result-cell.selected { border: 2px solid var(--gold-dark); background: var(--soft-gold); box-shadow: 0 12px 32px rgba(200,132,24,.14); }
.matrix-result-cell strong { color: var(--gold-dark); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.matrix-axis-y { position: absolute; left: 16px; top: 50%; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
.matrix-axis-x { position: absolute; right: 30px; bottom: 16px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.interpretation { padding: 34px; }
.interpretation h2 { margin: 0 0 18px; color: var(--navy); font-size: 28px; line-height: 1.15; }
.interpretation p:not(.eyebrow) { color: var(--muted); }
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.guidance-card { padding: 32px; }
.guidance-card h2, .action-card h2 { margin: 0 0 12px; color: var(--navy); font-size: 24px; }
.guidance-card p:last-child, .action-card p { margin-bottom: 0; color: var(--muted); }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.action-card { position: relative; overflow: hidden; min-height: 265px; padding: 30px; }
.action-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 125px; height: 125px; border-radius: 50%; background: rgba(0,26,43,.04); }
.action-card.controls { border-top: 4px solid var(--gold); }
.action-card.avoid { border-top: 4px solid #a34545; }
.action-card.start { border-top: 4px solid var(--navy-3); }
.card-number { display: block; margin-bottom: 34px; color: #94a4ad; font-weight: 900; }
.conversion-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; margin-top: 30px; padding: clamp(30px, 5vw, 54px); border-radius: 28px; background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.conversion-card h2 { max-width: 680px; margin: 0 0 12px; font-size: clamp(27px, 4vw, 40px); line-height: 1.1; }
.conversion-card p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.69); }
.conversion-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.text-button { border: 0; background: transparent; color: rgba(255,255,255,.76); cursor: pointer; padding: 10px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--white); }
.cross-sell { margin-top: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.conversion-card .cross-sell p { color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.5; }
.cross-sell .text-button { display: inline-block; color: var(--gold); font-weight: 800; }

.site-footer { padding: 30px 24px; background: #00131f; color: rgba(255,255,255,.57); text-align: center; font-size: 12px; }
.site-footer a { color: rgba(255,255,255,.75); }

@media (max-width: 900px) {
  .hero, .result-hero-grid, .result-layout, .conversion-card { grid-template-columns: 1fr; }
  .decision-card { max-width: 650px; }
  .score-panel { max-width: 520px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid rgba(0,26,43,.08); }
  .trust-grid > div:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .site-header { min-height: 66px; padding: 10px 20px; }
  .brand img { height: 40px; max-width: 185px; }
  .header-link { font-size: 12px; }
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .hero { padding-top: 54px; padding-bottom: 62px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-actions, .form-actions, .question-actions { align-items: stretch; flex-direction: column-reverse; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .proof-list { flex-direction: column; gap: 10px; }
  .decision-card { padding: 28px 22px; }
  .form-page, .question-page { padding: 48px 0 70px; }
  .form-card { grid-template-columns: 1fr; padding: 24px 18px; gap: 20px; }
  .field.full, .form-actions.full, .privacy-line.full, .error-message.full, .preview-message.full { grid-column: auto; }
  .score-options { grid-template-columns: 1fr; }
  .score-option { min-height: 58px; flex-direction: row; justify-content: flex-start; padding: 12px 16px; }
  .question-card { padding: 26px 18px; }
  .question-actions { margin-top: 26px; }
  .result-hero { padding: 52px 0; }
  .score-panel > div { padding: 22px 12px; }
  .score-panel strong { font-size: 44px; }
  .roles-grid { grid-template-columns: 1fr; }
  .matrix-wrap { padding: 24px 16px 42px 36px; }
  .matrix-result-cell { min-height: 112px; padding: 14px 8px; font-size: 13px; }
  .matrix-axis-y { left: 10px; }
  .conversion-card { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
