:root {
  --plum: #318f8a;
  --plum-dark: #237c78;
  --pink: #75cbc7;
  --signal: #75cbc7;
  --amber: #a9dedb;
  --ink: #0f1b23;
  --soft: #5d676d;
  --line: #d9dddc;
  --tint: #e7f6f4;
  --paper: #f7f6f2;
  --white: #ffffff;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); }
button, input { font: inherit; }
button { touch-action: manipulation; }
a { color: var(--plum); }

.brand { padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--paper); text-align: center; }
.brand img { display: block; width: 160px; max-width: 100%; margin: auto; }
.hero, .results-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before, .results-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 38px 38px; content: ""; mask-image: linear-gradient(to bottom, black, transparent); }
.hero { padding: 58px 24px 116px; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 70px; align-items: center; max-width: 1280px; margin: auto; }
.results-hero { padding: 40px 20px 96px; text-align: center; }
.hero-copy { position: relative; min-width: 0; }
.hero h1 { max-width: 800px; margin: 0 0 22px; font-family: Montserrat, sans-serif; font-size: clamp(40px, 4.2vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
.hero-line { display: block; white-space: nowrap; }
.hero-line-one { color: var(--white); }
.hero-line-two { color: var(--pink); }
.hero p { max-width: 620px; margin: 0; color: #d8d1da; font-size: 18px; }
.results-hero p { position: relative; max-width: 700px; margin: auto; color: #c9c4cc; }
.eyebrow { margin-bottom: 12px; color: var(--plum-dark); font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero .eyebrow, .results-hero .eyebrow { color: var(--pink); }
.signal-board { position: relative; width: 100%; padding: 22px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.055); }
.signal-board::before { position: absolute; top: -11px; right: 22px; padding: 4px 9px; background: var(--signal); color: var(--ink); font-family: Montserrat, sans-serif; font-size: 10px; font-weight: 700; content: "LIVE CHECK"; }
.board-title { display: flex; justify-content: space-between; margin-bottom: 18px; color: #ddd5df; font-family: Montserrat, sans-serif; font-size: 11px; text-transform: uppercase; }
.signal-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 118px; padding: 14px; background: #100e11; }
.signal-bars i { display: block; height: var(--height); background: var(--bar, var(--pink)); }
.signal-bars i:nth-child(3n) { --bar: var(--signal); }
.signal-bars i:nth-child(4n) { --bar: var(--amber); }
.board-footer { display: flex; justify-content: space-between; margin-top: 14px; color: #c9c3c9; font-family: Montserrat, sans-serif; font-size: 10px; }
.content { position: relative; z-index: 2; max-width: 560px; margin: auto; padding: 0 20px 40px; }
.welcome-card { position: relative; z-index: 2; max-width: 520px; margin: -70px auto 0; }
.card { padding: 26px 24px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0; background: var(--white); }
.raised { border-top-color: var(--signal); }
.field { width: 100%; margin-bottom: 16px; padding: 13px 14px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--paper); font-size: 16px; }
.field:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(104,48,88,.25); outline-offset: 2px; }
.platforms, .answers, .fix-list, .actions { display: grid; gap: 8px; }
.platforms { margin-bottom: 16px; }
.routing-group { margin: 8px 0 18px; padding: 0; border: 0; }
.is-hidden { display: none; }
.contact-step { padding-top: 8px; border-top: 1px solid var(--line); }
.setup-back { display: block; margin-top: 14px; }
.routing-group:not(.is-hidden), .contact-step:not(.is-hidden), .ready-step:not(.is-hidden) { animation: step-in .22s ease both; }
.selection-summary { display: grid; gap: 8px; margin: 18px 0; }
.selection-summary span { padding: 10px 12px; border: 1px solid var(--line); background: var(--tint); font-size: 13px; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.choice, .secondary, .primary { width: 100%; border-radius: 0; cursor: pointer; }
.choice, .secondary { padding: 13px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); text-align: left; }
.choice.selected { border-color: var(--plum); background: var(--tint); font-weight: 600; }
.primary { padding: 15px; border: 1px solid var(--ink); background: var(--signal); color: var(--ink); font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.primary:hover { background: var(--pink); }
.secondary { text-align: center; font-weight: 600; color: var(--plum-dark); }
.secondary:hover, .choice:hover { border-color: var(--plum); background: var(--tint); }
.small { color: var(--soft); font-size: 13px; line-height: 1.55; }
.center { text-align: center; }
.error { margin: 0 0 12px; color: #a32d2d; }
.proof { margin: 24px 0 0; }
.footer { margin: 16px 0 0; }
.quiz { min-height: 100vh; display: flex; justify-content: center; background-color: var(--paper); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.quiz-frame { width: 100%; max-width: 560px; padding: 24px 20px 48px; }
.quiz-context { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 12px 14px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; }
.quiz-context span:last-child { color: var(--pink); text-align: right; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.leaks { padding: 3px 10px; border-radius: 999px; color: #993c1d; background: #faece7; font-size: 12px; white-space: nowrap; }
.progress { height: 8px; margin-bottom: 24px; overflow: hidden; border: 1px solid var(--ink); background: var(--white); }
.progress span { display: block; height: 100%; background: repeating-linear-gradient(135deg, var(--plum) 0 8px, var(--pink) 8px 16px); transition: width .25s ease; }
h2 { margin: 0 0 14px; font-family: Montserrat, sans-serif; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
p { line-height: 1.65; text-wrap: pretty; }
.why { margin: 0 0 16px; color: var(--soft); }
.tip { margin-bottom: 20px; padding: 14px 16px; border-left: 5px solid var(--plum); background: var(--tint); }
.tip p { margin: 0; color: var(--ink); }
.tip-tool { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.quiz .card { min-height: 600px; display: flex; flex-direction: column; }
.quiz .answers { margin-top: auto; }
.back, .text-button { border: 0; background: none; color: var(--soft); cursor: pointer; }
.back { margin-top: 16px; padding: 0; }
.score { position: relative; font-family: Montserrat, sans-serif; font-size: 68px; font-weight: 700; line-height: 1; }
.score span { color: #9a93a2; font-size: 26px; }
.rating { margin: 12px 0 8px; font-size: 21px; font-weight: 700; }
.results-content { margin-top: -60px; }
.results-content .card { margin-bottom: 16px; }
.fix { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); background: var(--tint); break-inside: avoid; }
.fix-number { color: var(--plum); font-weight: 700; }
.fix-title { margin-bottom: 3px; font-size: 14.5px; font-weight: 600; }
.fix p { margin: 0; }
.summary { margin: 0 0 16px; color: var(--soft); font-style: italic; }
.next-step { padding: 16px; border: 1px solid var(--ink); border-left: 7px solid var(--signal); background: var(--tint); }
.next-step p { margin: 0 0 10px; }
.next-step p:last-child { margin-bottom: 0; }
.support-step { margin-top: 16px; padding: 16px; border: 1px solid var(--ink); background: var(--paper); }
.support-step p { margin: 0 0 10px; }
.support-step p:last-child { margin-bottom: 0; }
.boundary-note { margin: 16px 0 0; }
.actions { margin-top: 16px; }
.search-guide { padding: 72px 24px 84px; background: var(--white); }
.search-guide-inner { max-width: 1080px; margin: auto; }
.search-guide h2 { max-width: 900px; margin: 0 auto 18px; font-size: clamp(30px, 4vw, 46px); text-align: center; }
.search-guide-inner > p { max-width: 840px; margin: 0 auto 40px; color: var(--soft); font-size: 17px; text-align: center; }
.search-guide-faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.search-guide-faq details { border-bottom: 1px solid var(--line); }
.search-guide-faq summary { position: relative; padding: 22px 44px 22px 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.45; list-style: none; cursor: pointer; }
.search-guide-faq summary::-webkit-details-marker { display: none; }
.search-guide-faq summary::after { position: absolute; top: 50%; right: 4px; color: var(--plum); font-size: 24px; font-weight: 400; line-height: 1; content: "+"; transform: translateY(-50%); }
.search-guide-faq details[open] summary::after { content: "−"; }
.search-guide-faq details p { max-width: 820px; margin: 0; padding: 0 44px 24px 0; color: var(--soft); font-size: 14px; }
body[data-screen="quiz"] .search-guide,
body[data-screen="results"] .search-guide { display: none; }
.site-footer { padding: 28px 20px 34px; background: var(--ink); color: #d7e0e3; text-align: center; }
.site-footer p { margin: 0 0 5px; font-size: 12px; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--pink); }
body[data-screen="quiz"] .site-footer,
body[data-screen="results"] .site-footer { display: none; }

@media (max-width: 700px) {
  .brand { padding: 14px 18px; }
  .brand img { width: 145px; }
  .hero { padding: 30px 20px 76px; }
  .card { padding: 21px 18px; }
  .quiz-meta { align-items: flex-start; }
  .hero-inner { gap: 0; }
  .hero-copy { text-align: center; }
  .hero h1 { max-width: none; margin: 0 auto 16px; font-size: 32px; line-height: 1.06; text-align: center; }
  .hero p { margin-inline: auto; text-align: center; }
  .hero .eyebrow { text-align: center; }
  .hero p { font-size: 16px; line-height: 1.5; }
  .signal-board { display: none; }
  .welcome-card { margin-top: -42px; }
  .content { padding-inline: 14px; }
  .quiz .card { min-height: 0; }
  .quiz-context { flex-direction: column; gap: 4px; }
  .quiz-context span:last-child { text-align: left; }
  .search-guide { padding: 52px 20px 60px; }
  .search-guide-faq summary { padding-block: 19px; }
  .search-guide-faq details p { padding-right: 0; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 27px; letter-spacing: -.04em; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 42px 24px 82px; }
  .hero-copy { text-align: center; }
  .hero h1 { max-width: none; margin-inline: auto; text-align: center; }
  .hero p { margin-inline: auto; text-align: center; }
  .hero .eyebrow { text-align: center; }
  .signal-board { display: none; }
}

@media print {
  @page { margin: .55in; }
  .no-print, .brand, .hero, .actions, .footer { display: none !important; }
  .results-hero { padding: 0 0 20px; background: white; color: black; text-align: left; }
  .results-hero .eyebrow, .results-hero p, .rating { color: black !important; }
  .score span { color: #555; }
  .results-content { margin-top: 0; padding: 0; max-width: none; }
  .card { box-shadow: none; }
}
