:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; font: 14px system-ui, sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: mobile-first, full-width colour bands with a centred 1080px inner wrapper; sticker-style rotated chips, big rounded cards, one dominant accent per band. */
:root {
  --bg: #FBF9FF;
  --surface: #FFFFFF;
  --fg: #1B1340;
  --muted: #5B5580;
  --line: #E4DEF7;
  --accent: #3D5AFE;
  --coral: #FF5C7A;
  --sun: #FFC93C;
  --mint: #2EE6A6;
  --blue: #3D5AFE;
  --lilac: #CDBFFF;
  --ink: #1B1340;
  --paper: #FFFFFF;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130E2E; --surface: #1F1847; --fg: #F5F2FF; --muted: #B7B0DB; --line: #3B3273; --accent: #93A5FF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #130E2E; --surface: #1F1847; --fg: #F5F2FF; --muted: #B7B0DB; --line: #3B3273; --accent: #93A5FF; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 56px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.sec-title { font-size: clamp(30px, 7vw, 48px); font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.logo-plate { background: #fff; border-radius: 16px; padding: 8px 14px; display: inline-flex; align-items: center; box-shadow: 0 3px 0 rgba(27,19,64,.12); max-width: 100%; }
.logo-plate img { display: block; height: 38px; width: auto; max-width: 100%; }
.foot-logo { display: block; height: 44px; width: auto; max-width: 100%; margin-bottom: 14px; }
.thanks { display: grid; gap: 12px; padding-block: 8px; }
.thanks h3 { font-size: 30px; font-weight: 800; }
.thanks p { font-size: 18px; }
.next { background: var(--surface); color: var(--fg); border-radius: 28px; padding: 24px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.next h3 { font-size: 26px; font-weight: 800; }
.next p { color: var(--muted); }
.next p.key { color: var(--fg); font-weight: 700; font-size: 18px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand svg { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 16px var(--body); padding: 14px 22px; border-radius: 999px; text-decoration: none; background: var(--ink); color: #fff; transition: transform .15s ease; min-height: 48px; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn.coral { background: var(--coral); color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.small { padding: 10px 18px; min-height: 40px; font-size: 15px; }
:root[data-theme="dark"] .btn:not(.coral):not(.sun) { background: var(--sun); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.coral):not(.sun) { background: var(--sun); color: var(--ink); } }

/* hero */
.hero { padding-block: 24px 64px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 12.5vw, 96px); font-weight: 800; margin-top: 18px; }
.hero h1 .hl { background: var(--sun); color: var(--ink); padding: 0 .14em; border-radius: .18em; display: inline-block; transform: rotate(-2deg); }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.sticker { font-family: var(--display); font-weight: 800; font-size: 22px; padding: 14px 20px; border-radius: 22px; color: var(--ink); box-shadow: 0 6px 0 rgba(27,19,64,.9); }
.sticker small { display: block; font: 600 13px var(--body); opacity: .8; }
.sticker:nth-child(1) { background: var(--mint); transform: rotate(-3deg); }
.sticker:nth-child(2) { background: var(--coral); transform: rotate(2deg); }
.sticker:nth-child(3) { background: var(--lilac); transform: rotate(-1.5deg); }
.sticker:nth-child(4) { background: var(--sun); transform: rotate(2.5deg); }
.notice { margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 2px solid var(--mint); border-radius: 18px; padding: 14px 16px; font-size: 15px; color: var(--muted); max-width: 66ch; }
.notice b { color: var(--fg); }
.notice .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); margin-top: 7px; box-shadow: 0 0 0 4px rgba(46,230,166,.28); }
.blob { position: absolute; border-radius: 50%; z-index: -1; }
.blob.a { width: 280px; height: 280px; background: var(--lilac); opacity: .55; right: -90px; top: 40px; }
.blob.b { width: 180px; height: 180px; background: var(--sun); opacity: .5; right: 30px; bottom: -40px; }

/* quiz */
.quiz-band { background: var(--blue); color: #fff; }
.quiz-band .lead { color: #E3E8FF; }
.quiz-band .eyebrow { color: var(--sun); }
.quiz-grid { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .quiz-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } .quiz-grid .result { position: sticky; top: 16px; } }
.card { background: var(--surface); color: var(--fg); border-radius: 28px; padding: 24px; min-width: 0; }
.q { display: grid; gap: 10px; padding-block: 16px; border-bottom: 2px solid var(--line); }
.q:first-child { padding-top: 0; }
.q:last-of-type { border-bottom: 0; padding-bottom: 0; }
.q > span, .q > label, .field label { font-weight: 700; }
.q .hint { font-weight: 500; font-size: 14px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; background: var(--bg); min-height: 44px; display: inline-flex; align-items: center; }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .seg input:checked + label { background: var(--sun); border-color: var(--sun); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg input:checked + label { background: var(--sun); border-color: var(--sun); color: var(--ink); } }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=number], input[type=text], input[type=tel], input[type=email], select, textarea { width: 100%; font: 500 16px var(--body); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--fg); min-height: 48px; }
input[type=number] { max-width: 140px; }
.row2 input[type=number], .field input[type=number] { max-width: none; }
.result { border-radius: 28px; padding: 24px; color: var(--ink); min-height: 240px; display: flex; flex-direction: column; gap: 12px; justify-content: center; transition: background .25s; }
.result.ok { background: var(--mint); }
.result.mid { background: var(--sun); }
.result.no { background: var(--coral); }
.result h3 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; }
.result .big { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; }
.result p { font-weight: 500; }
.result .small { font-size: 14px; font-weight: 500; opacity: .85; }
.result .alt { border-top: 2px solid rgba(27,19,64,.25); padding-top: 12px; }
.result .btn { align-self: flex-start; }
.joint { margin-top: 16px; font-size: 14px; color: #E3E8FF; max-width: 70ch; }

/* calc */
.calc-grid { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .calc-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.range-row { display: grid; gap: 6px; padding-block: 12px; }
.range-row .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.range-row label { font-weight: 700; }
.range-row .val { font-family: var(--display); font-weight: 800; font-size: 26px; }
input[type=range] { width: 100%; accent-color: var(--coral); height: 36px; }
.calc-info { display: grid; gap: 6px; background: var(--bg); border: 2px dashed var(--line); border-radius: 18px; padding: 14px 16px; font-size: 15px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.calc-info b { font-weight: 700; }
.calc-info .warn { color: #B3261E; font-weight: 600; }
:root[data-theme="dark"] .calc-info .warn { color: #FF8CA4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-info .warn { color: #FF8CA4; } }
.out { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; justify-content: center; min-width: 0; }
:root[data-theme="dark"] .out { background: #0C0822; border: 2px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .out { background: #0C0822; border: 2px solid var(--line); } }
.out .label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); font-weight: 700; }
.out .pay { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 11vw, 64px); line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; }
.out dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-variant-numeric: tabular-nums; }
.out dt { color: #D7CFFF; }
.out dd { margin: 0; font-weight: 700; text-align: right; }
.fine { font-size: 13px; color: var(--muted); }
.out .fine { color: #BDB4EA; }

/* pillars */
.pillars { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-radius: 28px; padding: 26px 22px; color: var(--ink); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pillar.p1 { background: var(--sun); }
.pillar.p2 { background: var(--mint); }
.pillar.p3 { background: var(--lilac); }
.pillar h3 { font-size: 28px; font-weight: 800; }
.pillar ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-weight: 500; }
.pillar .tag { align-self: flex-start; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }

/* checklist */
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding: 4px 0 4px 34px; min-width: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 5px var(--mint), inset 0 0 0 9px var(--ink); }
.checks li b { font-weight: 700; }
.checks li span { color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 18px 18px 18px 74px; position: relative; min-height: 72px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: var(--ink); font: 800 22px var(--display); display: grid; place-items: center; }
.steps li:nth-child(2)::before { background: var(--sun); }
.steps li:nth-child(3)::before { background: var(--mint); }
.steps li:nth-child(4)::before { background: var(--lilac); }
.steps b { display: block; font-family: var(--display); font-size: 20px; }
.steps span { color: var(--muted); }

/* form */
.form-band { background: var(--coral); color: var(--ink); }
.form-band .lead { color: #4A1B33; }
.form-grid { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .form-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--coral); }
.err { color: #C21F45; font-weight: 600; font-size: 14px; min-height: 20px; margin-bottom: 8px; }
:root[data-theme="dark"] .err { color: #FF8CA4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FF8CA4; } }
.compose { background: var(--surface); color: var(--fg); border-radius: 28px; padding: 24px; display: grid; gap: 14px; min-width: 0; }
.compose h3 { font-size: 26px; font-weight: 800; }
.compose textarea { min-height: 210px; resize: vertical; font-size: 15px; }
.contact-lines { display: grid; gap: 6px; font-weight: 600; }
.contact-lines span { word-break: break-word; user-select: all; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.placeholder { color: var(--muted); }

/* faq */
details { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 4px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 19px; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--accent); flex: none; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 16px; color: var(--muted); }
.faq { margin-top: 28px; }

footer { background: var(--ink); color: #D7CFFF; padding-block: 40px; font-size: 14px; }
:root[data-theme="dark"] footer { background: #0C0822; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer { background: #0C0822; } }
footer .brand { color: #fff; margin-bottom: 14px; }
footer p + p { margin-top: 10px; }
footer a { color: var(--sun); }

/* media */
.media-band { background: var(--surface); border-top: 2px solid var(--line); }
.logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tile { background: #fff; border-radius: 16px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; min-height: 84px; border: 2px solid var(--line); }
.tile img { display: block; height: 64px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.tile:hover img, .tile:active img { filter: none; opacity: 1; }
.media-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot-data { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.foot-data li { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .result { transition: none; } .btn:hover { transform: none; } }
