:root {
  --ink: #080808;
  --muted: #596168;
  --blue: #3f70cc;
  --mint: #eaf8f5;
  --lime: var(--teal);
  --teal: #50bda6;
  --sky: #f1faf8;
  --line: #dce9e6;
  --paper: #ffffff;
  --danger: #9b2c2c;
  --radius: 22px;
  --wide-content: 1560px;
  --header-link-gap: clamp(18px, 3vw, 38px);
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f4f8f7;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 14px; background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-150%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header { position: relative; z-index: 10; min-height: 124px; background: var(--blue); box-shadow: 0 7px 14px rgba(8, 8, 8, .2); }
.header-inner { width: min(var(--wide-content), calc(100% - 48px)); min-height: 124px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--header-link-gap); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: white; text-decoration: none; white-space: nowrap; }
.brand-type { font-family: Poppins, Helvetica, Arial, sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.22rem); font-weight: 500; letter-spacing: -.055em; }
.brand-by { opacity: .72; font-size: .89rem; font-weight: 700; letter-spacing: .035em; }
.brand-orderstep-logo { align-self: baseline; display: block; width: auto; height: clamp(23px, 2.1vw, 30px); object-fit: contain; transform: translateY(9px); }
.main-nav { display: flex; align-items: center; gap: var(--header-link-gap); margin-left: auto; }
.main-nav a { color: white; text-decoration: none; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.main-nav a:hover { color: #d8f6ed; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta { min-height: 46px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 11px; background: transparent; color: white; display: inline-flex; align-items: center; text-decoration: none; font-size: 1rem; font-weight: 700; }
.header-cta:hover { background: white; color: var(--blue); }
.header-preview { white-space: nowrap; font-size: .92rem; }
.text-button { border: 0; color: white; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: .92rem; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: white; }
.menu-toggle span { display: block; width: 28px; height: 3px; margin: 5px auto; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu { display: none; }
body[data-view="success"] .header-inner { justify-content: flex-start; }
body[data-view="success"] .main-nav,
body[data-view="success"] .header-actions,
body[data-view="success"] .menu-toggle,
body[data-view="success"] .mobile-menu { display: none !important; }
body[data-view="preview"] .header-actions,
body[data-view="preview"] .menu-toggle,
body[data-view="preview"] .mobile-menu { display: none !important; }

.site-main { min-height: calc(100vh - 186px); background: var(--mint); }
body[data-view="quiz"] .site-main,
body[data-view="results"] .site-main,
body[data-view="preview"] .site-main,
body[data-view="success"] .site-main { padding: 70px 0; }
.loading-view { min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow, .landing-kicker { margin: 0 0 13px; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; font-weight: 800; }
.landing { width: min(var(--wide-content), calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, .95fr) minmax(390px, .85fr); gap: clamp(56px, 7vw, 120px); align-items: center; margin: 0 auto; padding: clamp(82px, 8vw, 140px) 0; }
.hero-copy { padding: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Poppins, Helvetica, Arial, sans-serif; font-weight: 500; }
h1 { max-width: 560px; margin-bottom: 22px; font-size: clamp(2.7rem, 4.25vw, 4.4rem); line-height: 1.17; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.1rem); letter-spacing: -.045em; line-height: 1.14; }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.landing-brand { margin: 0 0 17px; color: var(--teal); font-family: Poppins, Helvetica, Arial, sans-serif; font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
.landing h1 { max-width: none; margin-bottom: 25px; font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.22; }
.landing-copy { max-width: 740px; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.5; }
.landing-copy p { margin: 0 0 25px; }
.landing-highlight { color: var(--blue); font-weight: 800; }
.landing-trust { margin: 27px 0 0; color: #476064; font-size: clamp(.9rem, 1.45vw, 1.05rem); font-weight: 700; }
.button { min-height: 51px; border: 1px solid var(--blue); border-radius: 11px; padding: 0 20px; background: var(--blue); color: white; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1; font-size: .86rem; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); background: #315cac; }
.button:focus-visible, .choice input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.button--lime { margin-top: 14px; }
.button--outline { display: inline-flex; align-items: center; gap: 15px; margin-top: 2px; background: transparent; color: var(--blue); font-size: 1.05rem; font-weight: 400; }
.button--outline span {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg);
}
.button--outline:hover { background: var(--blue); color: white; }
.landing .button--outline { background: var(--blue); border-color: var(--blue); color: white; }
.landing .button--outline:hover { background: transparent; border-color: var(--blue); color: var(--blue); }
.button--secondary { background: transparent; border-color: #a7bbb7; color: var(--ink); }
.button--secondary:hover { background: #e8f2f0; }
.button-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }

.diagnostic-card { display: flex; flex-direction: column; position: relative; padding: clamp(36px, 4vw, 64px); min-height: 0; border-radius: 13px; background: white; color: var(--ink); box-shadow: 18px 20px 0 var(--teal), 0 12px 22px rgba(8, 8, 8, .15); }
.diagnostic-card::after { display: none; }
.card-label { margin: 0; color: var(--teal); text-transform: none; letter-spacing: 0; font-size: 1.33rem; font-weight: 800; }
.focus-list { display: grid; gap: 20px; margin: clamp(28px, 4vw, 46px) 0 0; padding: 0; list-style: none; }
.focus-list li { display: grid; position: relative; gap: 3px; padding-left: 18px; }
.focus-list li::before { content: "•"; position: absolute; left: 0; top: -.08em; color: var(--teal); font-size: 1.25em; line-height: 1; }
.focus-list strong { font-family: Poppins, Helvetica, Arial, sans-serif; font-size: clamp(1.15rem, 1.85vw, 1.55rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.focus-list span { color: #476064; font-size: clamp(.95rem, 1.45vw, 1.1rem); line-height: 1.4; }
.focus-summary { margin: clamp(28px, 4vw, 46px) 0 0; color: var(--ink); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.5; }
.resume-box { width: min(var(--wide-content), calc(100% - 48px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto 48px; padding: 18px 20px; border: 1px solid #b9dad2; border-radius: 0; background: #e7f9ef; }
.resume-box p { margin: 0; }

.quiz-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.question-content--enter { animation: question-content-enter .24s ease-out both; }
.question-content--leaving { animation: question-content-leave .16s ease-in both; pointer-events: none; }
.results-shell--enter { animation: question-content-enter .24s ease-out both; }
@keyframes question-content-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes question-content-leave { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
.quiz-head { margin-bottom: 26px; }
.progress-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.progress-track { overflow: hidden; height: 8px; margin-top: 10px; border-radius: 10px; background: #dce8e5; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--teal); transition: width .42s cubic-bezier(.22, 1, .36, 1); }
.question-card, .results-card, .booking-card { padding: clamp(25px, 5vw, 48px); border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
.question-meta { color: var(--teal); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.question-title { display: flex; align-items: flex-start; gap: 10px; }
.question-card h1 { margin-top: 14px; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.045em; line-height: 1.12; }
.question-title h1 { flex: 0 1 auto; }
.question-help { position: relative; flex: 0 0 auto; margin-top: 19px; }
.help-trigger { width: 19px; height: 19px; display: grid; place-items: center; padding: 0; border: 1px solid #759197; border-radius: 50%; background: transparent; color: #476064; font-family: Arial, Helvetica, sans-serif; font-size: .72rem; font-weight: 700; line-height: 1; cursor: help; }
.help-trigger > span { display: block; transform: translateY(-.5px); }
.help-trigger:hover, .question-help:focus-within .help-trigger { border-color: var(--blue); color: var(--blue); }
.help-tooltip { position: absolute; z-index: 5; top: calc(100% + 9px); right: 0; width: min(310px, calc(100vw - 92px)); padding: 13px 15px; border-radius: 9px; background: var(--blue); box-shadow: 0 8px 20px rgb(32 65 128 / .18); color: white; font-size: .9rem; font-weight: 500; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease; }
.question-help:hover .help-tooltip, .question-help:focus-within .help-tooltip { opacity: 1; transform: translateY(0); }
.choice-list { display: grid; gap: 10px; margin-top: 28px; }
.choice { display: block; }
.choice input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { min-height: 58px; display: flex; align-items: center; padding: 14px 18px; border: 1px solid #cbdad7; border-radius: 13px; color: #243f43; transition: border .15s, background .15s, box-shadow .15s; }
.choice input:checked + span { border-color: var(--teal); background: #e6faf3; box-shadow: inset 0 0 0 1px var(--teal); font-weight: 700; }
.form-actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 30px; }
.validation { min-height: 1.3em; color: var(--danger); font-size: .9rem; }

.results-shell { width: min(1035px, calc(100% - 40px)); margin: 0 auto; }
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #78b9aa; border-radius: 12px; background: #e7f9ef; color: #194f46; }
.preview-banner strong, .preview-banner span { display: block; }
.preview-banner span { margin-top: 3px; font-size: .88rem; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-action { padding: 8px 11px; border: 1px solid #63ac9c; border-radius: 999px; color: #194f46; font-size: .82rem; font-weight: 700; text-decoration: none; }
.preview-action:hover, .preview-action--active { border-color: var(--teal); background: var(--teal); color: white; }
.preview-overview { width: min(880px, calc(100% - 40px)); margin: 0 auto; }
.preview-overview > p:not(.eyebrow) { max-width: 640px; color: #3d5255; font-size: 1.05rem; line-height: 1.6; }
.preview-overview-grid { display: grid; gap: 16px; margin-top: 30px; }
.preview-overview-card { padding: 26px; background: white; border-left: 4px solid var(--teal); }
.preview-overview-card h2 { margin: 0 0 16px; font-size: 1.45rem; }
.preview-overview-card .button { min-height: 42px; }
.results-top { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 18px; align-items: start; }
.score-card { display: grid; place-content: center; min-height: 230px; padding: 22px; border-radius: 0; text-align: center; color: white; background: var(--blue); }
.score-card p { margin-bottom: 4px; color: white; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.score-card strong { color: #d7f7ed; font-size: 4.6rem; letter-spacing: -.08em; line-height: .9; }
.score-card span { color: white; margin-top: 10px; }
.results-intro { display: flex; flex-direction: column; justify-content: center; }
.results-intro .eyebrow { color: var(--teal); }
.results-intro h1 { margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 2.75rem); }
.results-intro p { margin: 0; color: #3d5255; font-size: 1.05rem; line-height: 1.65; }
.results-card, .booking-card { margin-top: 18px; }
.strength-list li { border-left-color: var(--teal); background: #eff8f5; }
.strength-list p { color: #3d5255; }
.section-kicker { margin-bottom: 7px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pain-list { display: grid; gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.pain-list li { padding: 19px 20px; border-left: 4px solid var(--teal); border-radius: 0 13px 13px 0; background: var(--sky); }
.pain-list p { margin: 6px 0 0; color: #516367; line-height: 1.5; }
.calc-note { color: var(--muted); line-height: 1.55; }
.estimate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.estimate { padding: 18px; border-radius: 0; border-top: 4px solid var(--teal); background: #eff8f5; }
.estimate span { display: block; color: #52716c; font-size: .83rem; line-height: 1.35; }
.estimate strong { display: block; margin-top: 9px; font-size: 1.55rem; letter-spacing: -.045em; }
.booking-card { background: var(--blue); color: white; }
.booking-card .section-kicker { color: var(--teal); }
.booking-card h2 { margin-bottom: 15px; }
.booking-card > p { max-width: 720px; color: white; line-height: 1.6; }
.booking-card label { display: grid; gap: 7px; color: white; font-size: .88rem; font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-grid input { width: 100%; height: 48px; border: 1px solid var(--teal); border-radius: 10px; padding: 0 13px; background: white; color: var(--ink); }
.contact-grid input::placeholder { color: #587078; opacity: 1; }
.slot-heading { margin: 25px 0 12px; color: white; font-size: .9rem; font-weight: 700; }
.booking-card { --booking-option-gap: 28px; }
.slot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: var(--booking-option-gap); }
.slot span { display: block; padding: 11px 8px; border: 1px solid var(--teal); border-radius: 999px; color: white; text-align: center; white-space: nowrap; }
.slot input:checked + span { background: var(--teal); border-color: var(--teal); color: white; font-weight: 800; }
.alternative-booking { display: inline-flex !important; align-items: center; gap: 10px; margin-top: var(--booking-option-gap); color: white; cursor: pointer; }
.alternative-booking input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.booking-submit { margin-top: var(--booking-option-gap); }
.booking-card .validation { margin: 0 0 14px; color: #ffb6b6; }
.booking-card .validation:empty { display: none; }
.booking-card .button--lime { margin-top: 0; border-color: var(--teal); background: var(--teal); color: white; }
.preview-booking .button:disabled { cursor: not-allowed; opacity: .72; }
.preview-booking-note { margin: 15px 0 0; color: white; font-size: .9rem; }
.success { padding: 34px; border-radius: var(--radius); background: #e6faf0; color: var(--ink); }
.success h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.success__heading span { display: block; }
.success p { max-width: 620px; color: #476064; line-height: 1.6; }

.site-footer { width: 100%; display: flex; justify-content: space-between; gap: 18px; padding: 32px max(20px, calc((100% - var(--wide-content)) / 2)); background: var(--blue); color: white; font-size: .79rem; }
@media (max-width: 980px) {
  .landing { width: min(720px, calc(100% - 48px)); grid-template-columns: 1fr; gap: 58px; }
  .diagnostic-card { width: calc(100% - 18px); }
  .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-inner { width: min(100% - 28px, 1035px); min-height: 82px; }
  .site-header { min-height: 82px; }
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { position: absolute; top: 100%; right: 0; left: 0; z-index: 11; display: block; min-height: calc(100svh - 82px); padding-top: 22px; background: var(--blue); box-shadow: 0 14px 18px rgba(8, 8, 8, .18); }
  .mobile-menu a, .mobile-menu button { width: 100%; min-height: 66px; display: flex; align-items: center; padding: 0 max(28px, calc((100% - 720px) / 2)); border: 0; border-top: 1px solid rgba(255, 255, 255, .14); background: transparent; color: white; font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; text-decoration: none; }
  .mobile-menu a:first-child { border-top: 0; }
  .mobile-menu a:hover, .mobile-menu button:hover { background: rgba(255, 255, 255, .08); }
  .mobile-menu-cta { color: #d8f6ed !important; }
  .mobile-menu-reset { text-decoration: underline !important; text-underline-offset: 4px; }
  .site-main { background: var(--mint); }
  body[data-view="quiz"] .site-main,
  body[data-view="results"] .site-main,
  body[data-view="preview"] .site-main,
  body[data-view="success"] .site-main { padding: 46px 0; }
  .preview-banner { align-items: flex-start; flex-direction: column; }
  .landing, .results-top { grid-template-columns: 1fr; }
  .landing { width: min(100% - 28px, 1035px); gap: 46px; padding: 62px 0 84px; }
  .hero-copy { padding-left: 0; }
  .diagnostic-card { min-height: 290px; }
  .resume-box, .site-footer { align-items: flex-start; flex-direction: column; }
  .estimate-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .header-inner { gap: 12px; }
  .brand-by, .header-cta { display: none; }
  .slot-list { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .question-content--enter, .question-content--leaving, .results-shell--enter { animation: none; }
  .progress-bar { transition: none; }
}
