:root {
  --brand: #f5245f;
  --brand-aa: #d3134d;
  --ink: #111111;
  --dark: #252525;
  --muted: #666666;
  --line: #dedede;
  --soft: #f7f7f7;
  --pink-soft: #fff0f4;
  --surface: #ffffff;
  --success: #177a4b;
  --danger: #b42318;
  --shadow: 0 20px 55px rgba(17, 17, 17, 0.09);
  --radius: 18px;
  --page: min(100% - 32px, 760px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; min-width: 320px; min-height: 100svh; background: var(--surface); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

h1, h2, strong, legend, .button, .answer-card span, .preference-card span {
  font-family: Montserrat, "Arial Black", "Segoe UI", Arial, sans-serif;
}
h1 { margin: 0; font-size: clamp(2rem, 8vw, 4.8rem); line-height: 0.98; letter-spacing: -0.045em; }
h2 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
p { line-height: 1.6; }

.loading-shell, .error-page { width: var(--page); min-height: 100svh; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; gap: 22px; padding: 60px 0; }
.loading-shell img, .error-page img { width: min(260px, 70vw); height: auto; }
.error-page h1 { max-width: 740px; }

.site-header { width: var(--page); min-height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: max(18px, env(safe-area-inset-top)) 0 14px; }
.brand-logo { width: 178px; max-height: 46px; object-fit: contain; object-position: left center; height: auto; }
.back-button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); }
.back-button svg { width: 20px; transform: rotate(180deg); }
.back-button:hover { color: var(--ink); }

.app-main { width: 100%; min-height: calc(100svh - 160px); display: flex; align-items: flex-start; }
.screen-clip { width: 100%; overflow-x: clip; }
.screen { width: var(--page); margin: auto; padding: clamp(28px, 6vw, 68px) 0 72px; animation: enter .25s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow { margin: 0 0 14px; color: var(--brand-aa); font-weight: 800; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.hero { display: grid; gap: 32px; }
.hero h1 { max-width: 880px; }
.hero-lead, .analysis-lead, .completion-lead { max-width: 760px; margin: 22px 0 28px; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.24rem); }
.button { min-height: 54px; border: 2px solid transparent; border-radius: 999px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { background: var(--brand); color: var(--ink); box-shadow: 0 12px 30px rgba(245,36,95,.2); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(245,36,95,.29); }
.button-secondary { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.button-large { min-height: 60px; padding-inline: 26px; }
.button-icon { width: 20px; height: 20px; }
.button-primary .button-icon:not(.completion-actions .button-icon) { transform: rotate(-45deg); }
.microcopy { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }

.proof-grid { display: grid; gap: 10px; margin-top: 12px; }
.proof-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--soft); border: 1px solid #ededed; border-radius: 14px; }
.proof-card svg { flex: 0 0 auto; width: 28px; height: 28px; color: var(--brand-aa); }
.proof-card strong, .proof-card span { display: block; }
.proof-card span { margin-top: 3px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.hero-analysis-preview { min-height: 390px; padding: clamp(20px,4vw,30px); border: 1px solid #eadfe2; border-radius: 24px; background: linear-gradient(145deg,#fff 0%,#fff8fa 58%,#f8f5f6 100%); box-shadow: 0 24px 65px rgba(65,29,39,.11); position: relative; overflow: hidden; }
.hero-analysis-preview::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg,var(--brand) 0 34%,#ffc2d3 34% 64%,#f1e7ea 64%); }
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 7px 0 19px; border-bottom: 1px solid #eadfe2; }
.preview-head > span { max-width: 180px; color: var(--ink); font-family: Montserrat,"Arial Black",sans-serif; font-weight: 900; font-size: .82rem; line-height: 1.25; letter-spacing: .045em; text-transform: uppercase; }
.preview-head small { color: var(--brand-aa); font-weight: 800; font-size: .72rem; white-space: nowrap; }
.preview-list { margin: 0; padding: 8px 0; list-style: none; }
.preview-list li { min-height: 84px; display: grid; grid-template-columns: 28px 34px 1fr; align-items: center; gap: 11px; border-bottom: 1px solid #eee6e8; }
.preview-number { color: var(--brand-aa); font-family: Montserrat,"Arial Black",sans-serif; font-weight: 900; font-size: .73rem; letter-spacing: .06em; }
.preview-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #f1bac9; border-radius: 10px; background: white; color: var(--brand-aa); }
.preview-icon svg { width: 20px; height: 20px; }
.preview-copy strong, .preview-copy small { display: block; }
.preview-copy strong { font-size: .91rem; line-height: 1.25; }
.preview-copy small { margin-top: 4px; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.preview-result { min-height: 54px; margin-top: 17px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #e4dadd; border-radius: 13px; background: #f5f2f3; color: var(--ink); }
.preview-result svg { width: 20px; height: 20px; color: var(--brand-aa); }
.preview-result strong { font-size: .84rem; line-height: 1.25; }
.preview-caption { margin: 10px 2px 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }

.progress-wrap { margin-bottom: 34px; }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; color: var(--muted); font-size: .82rem; }
.progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 10px; background: #ececec; overflow: hidden; appearance: none; }
.progress::-webkit-progress-bar { background: #ececec; border-radius: 10px; }
.progress::-webkit-progress-value { background: var(--brand); border-radius: 10px; transition: width .25s ease; }
.progress::-moz-progress-bar { background: var(--brand); border-radius: 10px; }
.question-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.question-icon { width: 34px; height: 34px; flex: 0 0 auto; color: var(--brand-aa); margin-top: 4px; }
.question-heading h1 { font-size: clamp(1.85rem, 6vw, 3.5rem); }
.question-heading p { margin: 8px 0 0; color: var(--muted); }
.question-heading .question-hint { margin: 0 0 8px; color: var(--brand-aa); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.answer-grid { display: grid; gap: 11px; }
.answer-card { width: 100%; min-height: 70px; border: 1.5px solid var(--line); border-radius: 15px; padding: 14px 16px; background: var(--surface); color: var(--ink); display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 13px; text-align: left; transition: border .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.answer-card svg { width: 28px; height: 28px; color: var(--brand-aa); }
.answer-card span { font-size: .96rem; line-height: 1.3; }
.answer-card i { width: 23px; height: 23px; border: 1.5px solid #bbb; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: white; font-size: .8rem; }
.answer-card:hover { border-color: #a7a7a7; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,17,17,.06); }
.answer-card.is-selected { border-color: var(--brand); background: var(--pink-soft); box-shadow: 0 0 0 1px var(--brand); }
.answer-card.is-selected i { background: var(--brand-aa); border-color: var(--brand-aa); }
.question-next { width: 100%; margin-top: 22px; }
.skip-button, .text-button { min-height: 44px; display: block; margin: 12px auto 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }

.analysis-screen h1, .contact-screen h1, .completion-screen h1 { font-size: clamp(2rem, 7vw, 4.4rem); }
.analysis-grid { display: grid; gap: 13px; margin: 32px 0; }
.analysis-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.analysis-card > svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--brand-aa); }
.analysis-card h2 { font-size: 1.06rem; }
.analysis-card p { margin: 8px 0 0; color: var(--muted); }
.analysis-card.is-primary { background: var(--dark); color: white; border-color: var(--dark); box-shadow: var(--shadow); }
.analysis-card.is-primary > svg { color: var(--brand); }
.analysis-card.is-primary p { color: #dedede; }
.case-study { display: flex; gap: 16px; margin: 4px 0 24px; padding: 22px; border: 1px solid #f3b7c8; border-radius: var(--radius); background: linear-gradient(135deg, var(--pink-soft), #fff); }
.case-study > svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--brand-aa); }
.case-study .eyebrow { margin-bottom: 7px; }
.case-study h2 { font-size: clamp(1.25rem, 4vw, 1.8rem); }
.case-study p:not(.eyebrow) { margin: 9px 0 7px; }
.case-study small { display: block; color: var(--muted); line-height: 1.45; }
.benefit-panel { margin: 30px 0 18px; padding: 22px; background: var(--pink-soft); border-radius: var(--radius); }
.benefit-panel h2 { font-size: 1.05rem; }
.benefit-panel ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.benefit-panel li { display: flex; align-items: flex-start; gap: 10px; }
.benefit-panel svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--brand-aa); }
.evidence-note { color: var(--muted); font-size: .8rem; }

.form-grid { display: grid; gap: 15px; margin: 30px 0; }
.field { display: grid; gap: 7px; }
.field > span, .preference-fieldset legend { font-weight: 750; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid #aaa; border-radius: 10px; background: white; color: var(--ink); }
.field textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--brand-aa); outline: 3px solid rgba(245,36,95,.18); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.form-error { color: var(--danger); font-style: normal; font-size: .82rem; line-height: 1.4; }
.question-error { padding: 10px 12px; border-left: 4px solid var(--danger); background: #fff2f0; }
.alert { margin: 20px 0; padding: 14px 16px; border-left: 4px solid var(--danger); background: #fff2f0; border-radius: 8px; line-height: 1.5; }
.preference-fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.preference-fieldset legend { margin-bottom: 12px; }
.preference-grid { display: grid; gap: 10px; }
.preference-card { min-height: 62px; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: white; display: flex; align-items: center; gap: 12px; text-align: left; }
.preference-card svg { width: 26px; color: var(--brand-aa); }
.preference-card span { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.preference-card small { padding: 3px 7px; border-radius: 999px; background: var(--brand); color: white; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.preference-card.is-selected { border-color: var(--brand); background: var(--pink-soft); box-shadow: 0 0 0 1px var(--brand); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .9rem; line-height: 1.45; }
.consent input { width: 22px; height: 22px; accent-color: var(--brand-aa); }
.privacy-note { color: var(--muted); font-size: .82rem; margin: 10px 0 20px; }
.submit-button { width: 100%; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(17,17,17,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.completion-screen { text-align: center; max-width: 820px; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--brand-aa); }
.success-mark svg { width: 42px; height: 42px; }
.completion-lead { margin-inline: auto; font-weight: 650; color: var(--ink); }
.completion-actions { display: flex; justify-content: center; gap: 12px; margin: 30px 0 18px; }
.meeting-panel { width: min(100%, 980px); margin: 34px auto 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); text-align: left; }
.meeting-heading { padding: 24px 24px 8px; }
.meeting-heading .eyebrow { margin-bottom: 7px; }
.meeting-heading h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
.meeting-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.meeting-frame { display: block; width: 100%; height: 760px; border: 0; background: var(--soft); }
.meeting-fallback { margin: 0; padding: 12px 20px 18px; text-align: center; font-size: .85rem; }
.completion-secondary { margin: 22px 0 14px; }
.completion-secondary a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--muted); }
.completion-secondary svg { width: 18px; height: 18px; }

.site-footer { width: var(--page); min-height: 80px; margin: auto; padding: 18px 0 max(18px,env(safe-area-inset-bottom)); border-top: 1px solid #ececec; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: .78rem; }
.site-footer nav { display: flex; gap: 14px; margin-left: auto; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.footer-status { display: none; }

.cookie-banner { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); max-width: 1000px; margin: auto; padding: 16px; border: 1px solid #444; border-radius: 16px; background: var(--dark); color: white; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: grid; gap: 13px; }
.cookie-banner strong { font-size: 1rem; }
.cookie-banner p { margin: 5px 0 0; color: #ddd; font-size: .83rem; line-height: 1.4; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .button-secondary { background: transparent; border-color: white; color: white; }
body:has(.cookie-banner) .app-main { padding-bottom: 210px; }

@media (min-width: 700px) {
  :root { --page: min(100% - 64px, 900px); }
  .proof-grid, .answer-grid, .form-grid, .preference-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .hero-analysis-preview { min-height: 420px; }
  .answer-card { min-height: 82px; }
  .site-footer { flex-wrap: nowrap; }
  .footer-status { display: inline; }
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; padding: 20px 22px; }
  body:has(.cookie-banner) .app-main { padding-bottom: 120px; }
}

@media (min-width: 1000px) {
  :root { --page: min(100% - 96px, 1160px); }
  .site-header { min-height: 96px; }
  .brand-logo { width: 220px; }
  .screen { padding-top: 58px; }
  .hero { grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); align-items: stretch; }
  .hero-copy { grid-column: 1; }
  .proof-grid { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-analysis-preview { grid-column: 2; grid-row: 1; min-height: 100%; }
  .answer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .question-screen { max-width: 1050px; }
  .question-next { width: auto; min-width: 240px; margin-left: auto; display: flex; }
  .analysis-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .analysis-card { display: block; min-height: 235px; }
  .analysis-card > svg { margin-bottom: 25px; }
  .analysis-card.is-primary { grid-column: span 3; min-height: auto; display: flex; }
  .case-study { align-items: center; padding: 26px 30px; }
  .benefit-panel ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-screen { max-width: 980px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
