@layer reset, tokens, base, layout, components, sections, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
  img, svg, iframe { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  fieldset { border: 0; padding: 0; min-width: 0; }
}

@layer tokens {
  :root {
    --navy-950: oklch(0.2 0.07 262);
    --navy-900: oklch(0.26 0.1 262);
    --navy-800: oklch(0.33 0.13 262);
    --blue-600: oklch(0.47 0.18 262);
    --blue-500: oklch(0.56 0.2 260);
    --blue-100: oklch(0.94 0.03 255);
    --blue-50: oklch(0.975 0.012 255);
    --gold: oklch(0.83 0.12 85);
    --gold-deep: oklch(0.7 0.13 75);
    --mint: oklch(0.72 0.15 160);
    --ink: oklch(0.22 0.04 262);
    --ink-soft: oklch(0.45 0.03 262);
    --line: oklch(0.9 0.015 262);
    --paper: oklch(0.99 0.004 85);
    --cream: oklch(0.97 0.02 85);

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "Onest", system-ui, sans-serif;
    --font-script: "Great Vibes", cursive;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 1px 2px oklch(0.2 0.07 262 / 0.06), 0 2px 8px oklch(0.2 0.07 262 / 0.05);
    --shadow: 0 2px 4px oklch(0.2 0.07 262 / 0.04), 0 12px 32px -8px oklch(0.2 0.07 262 / 0.16);
    --shadow-lg: 0 30px 80px -20px oklch(0.2 0.07 262 / 0.35);

    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(72px, 10vw, 140px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: linear(0, 0.18 7%, 0.6 18%, 0.98 31%, 1.08 40%, 1.04 52%, 0.99 66%, 1);
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
    color: var(--navy-950);
  }
  h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); font-weight: 750; }
  h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 720; }
  h3 { font-size: 1.3rem; font-weight: 680; letter-spacing: -0.015em; }
  p { text-wrap: pretty; }
  a { color: var(--blue-600); text-underline-offset: 3px; }
  svg { width: 1.25em; height: 1.25em; flex: none; }
  :focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
  ::selection { background: var(--gold); color: var(--navy-950); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy-900); color: #fff; border-radius: 10px; }
  .skip:focus { top: 12px; }
  .hp { position: absolute; left: -9999px; }
  [hidden] { display: none !important; }
}

@layer layout {
  .wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
  .section { padding-block: var(--section-y); position: relative; }
  .section--after-promises { padding-top: clamp(48px, 6vw, 80px); }
  .section--tint { background: linear-gradient(180deg, var(--blue-50), oklch(0.985 0.008 255)); }
  .section--dark {
    background:
      radial-gradient(60% 80% at 85% 10%, oklch(0.45 0.18 262 / 0.55), transparent 70%),
      radial-gradient(50% 60% at 0% 100%, oklch(0.4 0.14 240 / 0.45), transparent 70%),
      var(--navy-950);
    color: oklch(0.9 0.02 262);
  }
  .section--dark h2, .section--dark h3 { color: #fff; }
  .section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
  .section__head p:last-child { color: var(--ink-soft); font-size: 1.125rem; margin-top: 16px; }
}

@layer components {
  .kicker {
    font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--blue-600); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
  }
  .kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .kicker--light { color: var(--gold); }

  .btn {
    --bg: var(--navy-900); --fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 24px; border-radius: 999px; font-weight: 620; line-height: 1;
    background: var(--bg); color: var(--fg); text-decoration: none; border: 1.5px solid transparent;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background-color 0.2s;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(0.98); }
  .btn svg { transition: transform 0.25s var(--ease-out); }
  .btn:hover svg:last-child { transform: translateX(3px); }
  .btn--primary { --bg: var(--blue-600); box-shadow: 0 8px 24px -8px oklch(0.47 0.18 262 / 0.7), inset 0 1px 0 oklch(1 0 0 / 0.2); }
  .btn--primary:hover { --bg: var(--blue-500); }
  .btn--ghost { --bg: transparent; --fg: var(--navy-900); border-color: var(--line); }
  .btn--ghost:hover { border-color: var(--navy-900); }
  .btn--light { --bg: #fff; --fg: var(--navy-900); }
  .btn--gold { --bg: var(--gold); --fg: var(--navy-950); box-shadow: 0 10px 30px -10px oklch(0.83 0.12 85 / 0.6); }
  .btn--outline-light { --bg: transparent; border-color: oklch(1 0 0 / 0.3); }
  .btn--outline-light:hover { border-color: #fff; }
  .btn--sm { padding: 11px 18px; font-size: 0.95rem; }
  .btn--block { width: 100%; }
  .btn[disabled] { opacity: 0.6; pointer-events: none; }

  .link-btn { display: inline-flex; gap: 8px; align-items: center; font-weight: 620; color: var(--blue-600); padding: 0; }
  .link-btn svg { transition: translate 0.25s var(--ease-out); }
  .link-btn:hover svg { translate: 4px 0; }

  .icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--navy-900); }
  .icon-btn:hover { background: var(--blue-100); }

  .card {
    background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow); border: 1px solid oklch(0.92 0.015 262 / 0.7);
  }

  .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-600); }
  .brand__mark { width: 38px; height: 42px; color: var(--blue-600); }
  .brand__text { display: grid; line-height: 1; }
  .brand__text strong { font-family: var(--font-display); font-weight: 780; letter-spacing: 0.06em; font-size: 1.02rem; color: var(--navy-900); text-transform: uppercase; }
  .brand__text em { font-family: var(--font-script); font-style: normal; font-size: 1.35rem; color: var(--blue-600); margin-top: 2px; }
  .brand--light .brand__mark { color: #fff; --mark-text: var(--navy-900); }
  .brand--light .brand__text strong { color: #fff; }
  .brand--light .brand__text em { color: var(--gold); }

  .ticks { display: grid; gap: 10px; }
  .ticks li { display: flex; gap: 12px; align-items: flex-start; }
  .ticks li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  }

  .stars { color: var(--gold-deep); letter-spacing: 2px; font-size: 0.95rem; }
  .stars--lg { font-size: 1.6rem; color: var(--gold); }

  .check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; flex: none; }
  .check svg { width: 22px; height: 22px; }
  .check--xl { width: 76px; height: 76px; margin-inline: auto; }
  .check--xl svg { width: 40px; height: 40px; }

  .field { display: grid; gap: 7px; }
  .field > span { font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
  .field small { font-weight: 400; color: var(--ink-soft); }
  .field input, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: var(--blue-50); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    field-sizing: content; min-height: 52px;
  }
  .field textarea { resize: vertical; min-height: 96px; }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px oklch(0.56 0.2 260 / 0.15); }
  .field input:user-invalid, .field textarea:user-invalid { border-color: oklch(0.6 0.2 25); }
  .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }

  .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
  .consent input, .check-row input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue-600); flex: none; }
  .check-row { display: flex; gap: 12px; align-items: center; font-weight: 500; }

  .segmented { display: flex; flex-wrap: wrap; gap: 8px; }
  .segmented legend { font-size: 0.9rem; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; padding: 0; width: 100%; }
  .segmented label { position: relative; }
  .segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .segmented span {
    display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    font-size: 0.92rem; font-weight: 560; transition: all 0.2s var(--ease-out); background: #fff;
  }
  .segmented label:has(input:checked) span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
  .segmented label:has(input:focus-visible) span { outline: 3px solid var(--blue-500); outline-offset: 2px; }

  .form-msg { font-size: 0.92rem; font-weight: 560; min-height: 1.2em; }
  .form-msg:empty { display: none; }
  .form-msg[data-state="error"] { color: oklch(0.55 0.2 25); }
  .form-msg[data-state="ok"] { color: oklch(0.5 0.14 160); }
  .secure-note { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--ink-soft); }
  .secure-note svg { color: var(--mint); }

  .status { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
  .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
  .status[data-open="true"] { color: oklch(0.5 0.14 160); }
  .status[data-open="true"] i { background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: ping 2s infinite; }
}

@layer sections {
  /* Topbar */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    background: oklch(0.99 0.004 85 / 0.72);
    backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .topbar[data-scrolled] { border-color: var(--line); box-shadow: 0 8px 30px -20px oklch(0.2 0.07 262 / 0.35); }
  .topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
  .nav { display: flex; gap: 4px; margin-inline: auto; }
  .nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 520; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: background-color 0.2s; }
  .nav a:hover { background: var(--blue-50); }
  .topbar__cta { display: flex; align-items: center; gap: 10px; }
  @media (max-width: 1240px) { .nav { display: none; } .topbar__cta { margin-left: auto; } }
  @media (max-width: 640px) {
    .topbar__cta .btn--primary, .topbar__cta .status { display: none; }
    .tel-link span { display: none; }
    .tel-link { padding: 11px; }
    .brand__text strong { font-size: 0.9rem; }
  }

  /* Hero */
  .hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: clip; }
  .hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(45% 55% at 82% 38%, oklch(0.85 0.08 255 / 0.65), transparent 70%),
      radial-gradient(35% 40% at 12% 0%, oklch(0.93 0.06 85 / 0.7), transparent 70%),
      linear-gradient(180deg, var(--paper), var(--blue-50));
  }
  .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(oklch(0.33 0.13 262 / 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(60% 60% at 70% 40%, #000, transparent 75%);
  }
  .hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  @media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
  .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 0.86rem; font-weight: 560; color: var(--navy-800); margin-bottom: 26px; }
  .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: ping 2.2s infinite; }
  .hero h1 .ink {
    display: inline;
    background: linear-gradient(100deg, var(--blue-600), oklch(0.55 0.2 285) 60%, var(--blue-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-soft); max-width: 58ch; margin-top: 24px; }

  .picker { margin-top: 36px; padding: 18px; border-radius: var(--radius); background: oklch(1 0 0 / 0.75); backdrop-filter: blur(10px); box-shadow: var(--shadow); border: 1px solid oklch(1 0 0 / 0.8); max-width: 620px; }
  .picker__label { font-weight: 650; color: var(--navy-900); margin-bottom: 12px; font-size: 0.95rem; }
  .picker__chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
  @media (max-width: 560px) { .picker__chips { grid-template-columns: repeat(3, 1fr); } }
  .picker__chips button {
    display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px;
    background: var(--blue-50); color: var(--navy-900); font-weight: 600; font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-spring);
  }
  .picker__chips button svg { width: 26px; height: 26px; color: var(--blue-600); transition: color 0.2s; }
  .picker__chips button:hover { background: var(--navy-900); color: #fff; transform: translateY(-3px); }
  .picker__chips button:hover svg { color: var(--gold); }

  .hero__proof { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); margin-top: 32px; }
  .hero__proof li { display: grid; font-size: 0.95rem; color: var(--ink); }
  .hero__proof strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); letter-spacing: -0.02em; }
  .hero__proof span { font-size: 0.82rem; color: var(--ink-soft); }

  .hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
  @media (max-width: 960px) { .hero__visual { max-width: 420px; } }
  .orb {
    position: absolute; inset: 8%; border-radius: 50%;
    background:
      radial-gradient(circle at 35% 30%, oklch(0.6 0.2 260), var(--navy-900) 65%, var(--navy-950));
    box-shadow: var(--shadow-lg), inset 0 -20px 60px oklch(0.15 0.06 262 / 0.6), inset 0 20px 50px oklch(0.75 0.12 255 / 0.4);
    display: grid; place-items: center; container-type: size;
  }
  .orb::before {
    content: ""; position: absolute; inset: -7%; border-radius: 50%;
    border: 1.5px dashed oklch(0.47 0.18 262 / 0.3);
    animation: spin 60s linear infinite;
  }
  .orb__shield { --mark-text: var(--navy-900); width: 42%; height: auto; color: #fff; filter: drop-shadow(0 20px 30px oklch(0.15 0.06 262 / 0.6)); animation: bob 6s ease-in-out infinite; }
  .orbit {
    --r: 54cqw;
    position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px;
    border-radius: 18px; background: #fff; color: var(--blue-600); display: grid; place-items: center;
    box-shadow: var(--shadow);
    transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1));
    animation: bob 5s ease-in-out infinite;
  }
  .orbit svg { width: 28px; height: 28px; }
  .orbit--1 { --a: -125deg; animation-delay: -1s; }
  .orbit--2 { --a: 5deg; animation-delay: -2s; }
  .orbit--3 { --a: 105deg; animation-delay: -3s; }
  .orbit--4 { --a: 195deg; animation-delay: -4s; }
  @media (max-width: 480px) { .orbit { width: 46px; height: 46px; margin: -23px; border-radius: 14px; } .orbit svg { width: 22px; height: 22px; } }

  .float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    border-radius: 18px; background: oklch(1 0 0 / 0.86); backdrop-filter: blur(14px);
    box-shadow: var(--shadow); border: 1px solid oklch(1 0 0 / 0.9);
    font-size: 0.9rem; line-height: 1.25; animation: bob 7s ease-in-out infinite;
  }
  .float-card small { display: block; color: var(--ink-soft); font-size: 0.76rem; }
  .float-card strong { color: var(--navy-950); }
  .float-card--a { left: -6%; bottom: 14%; }
  .float-card--b { right: -4%; top: 4%; display: grid; gap: 2px; padding: 12px 16px; animation-delay: -2s; }
  .float-card--c { right: 0; bottom: -2%; animation-delay: -4s; }
  .float-card .bell { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--cream); color: var(--gold-deep); }
  @media (max-width: 480px) { .float-card { font-size: 0.8rem; } .float-card--a { left: -2%; } .float-card--b { right: -2%; } }

  /* Promises */
  .promises { position: relative; z-index: 2; margin-top: clamp(-56px, -5vw, -32px); padding-bottom: clamp(24px, 4vw, 48px); }
  .promises__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
  }
  .promises__grid li { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; }
  .promises__grid li + li { border-left: 1px solid var(--line); }
  .promises__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
  .promises__icon svg { width: 22px; height: 22px; }
  .promises strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--navy-950); letter-spacing: -0.01em; }
  .promises li span:not(.promises__icon) { display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
  @media (max-width: 960px) { .promises { margin-top: 0; } .hero__visual { animation: none !important; } }
  @media (max-width: 1000px) {
    .promises__grid { grid-template-columns: repeat(2, 1fr); }
    .promises__grid li:nth-child(3) { border-left: 0; }
    .promises__grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  }
  @media (max-width: 560px) {
    .promises__grid { grid-template-columns: 1fr; }
    .promises__grid li + li { border-left: 0; border-top: 1px solid var(--line); }
    .promises__grid li { padding: 18px 20px; }
  }

  /* Bento */
  .bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tile {
    container-type: inline-size;
    position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  }
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
  .tile p { color: var(--ink-soft); }
  .tile .link-btn { margin-top: auto; padding-top: 8px; }
  .tile__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 6px; }
  .tile__icon svg { width: 28px; height: 28px; }
  .tile--hero { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--blue-600), var(--navy-950)); color: #fff; border: 0; overflow: hidden; }
  .tile--hero::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid oklch(1 0 0 / 0.06); }
  .tile--hero h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
  .tile--hero p, .tile--hero .ticks { color: oklch(0.9 0.03 262); }
  .tile--hero .tile__icon { background: oklch(1 0 0 / 0.12); color: var(--gold); }
  .tile--hero .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
  .tile--wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; background: var(--cream); border-color: oklch(0.92 0.03 85); }
  .tile--wide p { color: var(--ink); max-width: 80ch; margin-top: 6px; }
  .tile--wide .tile__icon { background: #fff; color: var(--gold-deep); margin: 0; }
  @container (max-width: 420px) { .tile--wide { flex-direction: column; align-items: flex-start; } }
  @media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--hero { grid-row: auto; } .tile--wide { grid-column: span 2; } }
  @media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile--hero, .tile--wide { grid-column: auto; } .tile--wide { flex-direction: column; align-items: flex-start; } }

  /* Quiz */
  .quiz { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
  .quiz__copy { position: sticky; top: 120px; }
  .quiz__copy p { font-size: 1.125rem; margin-top: 18px; }
  @media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } .quiz__copy { position: static; } }
  .quiz__card { color: var(--ink); }
  .quiz__list { display: grid; gap: 4px; counter-reset: q; }
  .quiz__list li { counter-increment: q; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; }
  .quiz__list li::before { content: counter(q); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; transition: background-color 0.3s, color 0.3s; }
  .quiz__list li:has(input[value="1"]:checked)::before { content: "✓"; background: var(--mint); color: #fff; }
  .quiz__list li:has(input[value="0"]:checked)::before { content: "!"; background: var(--gold); color: var(--navy-950); }
  .quiz__list p { font-weight: 560; color: var(--navy-950); }
  .yn { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .yn label { position: relative; }
  .yn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .yn span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.9rem; font-weight: 560; transition: all 0.2s; }
  .yn label:has(input:checked) span { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
  .yn label:has(input:focus-visible) span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
  .quiz__result { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--blue-50); display: grid; gap: 12px; }
  .quiz__result[hidden] { display: none; }
  @starting-style { .quiz__result { opacity: 0; translate: 0 12px; } }
  .quiz__result { transition: opacity 0.5s, translate 0.5s var(--ease-out); }
  .meter { height: 10px; border-radius: 999px; background: #fff; overflow: hidden; }
  .meter span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--mint)); transition: width 0.8s var(--ease-out); }
  .quiz__score { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-950); }
  .quiz__score b { font-size: 2.4rem; }
  .gaps { display: grid; gap: 8px; }
  .gaps li { display: flex; gap: 10px; align-items: flex-start; font-weight: 520; }
  .gaps li::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy-950); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; margin-top: 2px; }

  /* OC reminder */
  .oc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  .oc__copy p { color: var(--ink-soft); font-size: 1.1rem; margin-block: 18px 24px; }
  @media (max-width: 900px) { .oc { grid-template-columns: 1fr; } }
  .oc__tool { display: grid; gap: 20px; }
  .countdown { display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: var(--radius); background: var(--blue-50); }
  .countdown__ring { position: relative; width: 104px; height: 104px; flex: none; display: grid; place-content: center; text-align: center; line-height: 1; }
  .countdown__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
  .countdown__ring circle { fill: none; stroke: #fff; stroke-width: 10; }
  .countdown__ring .countdown__val { stroke: var(--ring, var(--blue-500)); stroke-linecap: round; stroke-dasharray: var(--fill, 0) 100; transition: stroke-dasharray 0.9s var(--ease-out), stroke 0.3s; }
  .countdown__ring b { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-950); }
  .countdown__ring small { font-size: 0.75rem; color: var(--ink-soft); }
  .countdown__msg { font-weight: 560; color: var(--navy-900); }
  .countdown[data-level="urgent"] { --ring: oklch(0.62 0.2 25); background: oklch(0.96 0.03 25); }
  .countdown[data-level="soon"] { --ring: var(--gold-deep); background: var(--cream); }
  .countdown[data-level="ok"] { --ring: var(--mint); }
  .oc__contact { display: grid; gap: 16px; }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
  .step { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--blue-50); position: relative; overflow: hidden; }
  .step__n { font-family: var(--font-display); font-size: 4.5rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue-500); display: block; margin-bottom: 18px; opacity: 0.6; }
  .step p { color: var(--ink-soft); margin-top: 10px; }

  /* Claim */
  .claim { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  @media (max-width: 900px) { .claim { grid-template-columns: 1fr; } }
  .claim__copy p { font-size: 1.125rem; margin-top: 18px; }
  .claim__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .claim__list { display: grid; gap: 12px; }
  .claim__list li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1); backdrop-filter: blur(6px); }
  .claim__list b { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--navy-950); font-family: var(--font-display); }
  .claim__list strong { display: block; color: #fff; font-size: 1.05rem; }
  .claim__list span { font-size: 0.95rem; }

  /* About */
  .about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
  @media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
  .about__photo { position: relative; }
  .portrait {
    aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: grid; place-items: center;
    background: radial-gradient(circle at 30% 20%, var(--blue-100), var(--cream) 70%);
    color: var(--blue-600); box-shadow: var(--shadow);
  }
  .portrait svg { width: 38%; height: auto; }
  .about__photo figcaption {
    position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 20px; border-radius: var(--radius);
    background: oklch(1 0 0 / 0.85); backdrop-filter: blur(12px); display: grid; font-size: 0.9rem; color: var(--ink-soft);
  }
  .script { font-family: var(--font-script); font-size: 2.2rem; line-height: 1; color: var(--blue-600); }
  .about__copy p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; }
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 32px; }
  .facts div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
  .facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 600; }
  .facts dd { margin: 4px 0 0; font-weight: 620; color: var(--navy-950); }

  /* Reviews */
  .reviews { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
  @media (max-width: 760px) { .reviews { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
  .reviews__score { text-align: center; padding: 28px 36px; border-radius: var(--radius); background: var(--navy-950); color: oklch(0.85 0.03 262); }
  .reviews__big { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -0.04em; }
  .reviews__big small { font-size: 0.5em; color: var(--gold); }
  .reviews__score p { margin-top: 8px; font-size: 0.9rem; }
  .reviews__score strong { color: #fff; }
  .reviews__copy p { color: var(--ink-soft); margin-block: 14px 24px; font-size: 1.08rem; }

  /* FAQ */
  .faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
  @media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
  .faq__list { display: grid; gap: 10px; }
  .faq details { border-radius: var(--radius); background: var(--blue-50); border: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
  .faq details[open] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
  .faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 620; color: var(--navy-950); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-600); font-size: 1.3rem; font-weight: 400; transition: rotate 0.3s var(--ease-out), background-color 0.3s; }
  .faq details[open] summary::after { rotate: 45deg; background: var(--blue-50); }
  .faq details p { padding: 0 24px 22px; color: var(--ink-soft); }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }

  /* Contact */
  .contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
  @media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
  .contact__info > p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 16px; }
  .bigphone { display: inline-flex; align-items: center; gap: 14px; margin-block: 28px; font-family: var(--font-display); font-weight: 780; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); letter-spacing: -0.03em; color: var(--navy-950); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 4px no-repeat; transition: background-size 0.4s var(--ease-out); }
  .bigphone:hover { background-size: 100% 4px; }
  .bigphone svg { width: 0.8em; height: 0.8em; color: var(--blue-600); }
  .contact__list { display: grid; gap: 14px; }
  .contact__list li { display: flex; gap: 14px; align-items: center; }
  .contact__list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
  .contact__list a { color: var(--ink); text-decoration: none; font-weight: 520; }
  .contact__list a:hover { color: var(--blue-600); }
  .callback { display: grid; gap: 18px; }
  .callback h3 { font-size: 1.5rem; }

  /* Footer */
  .footer { background: var(--navy-950); color: oklch(0.8 0.03 262); padding-block: 56px calc(56px + env(safe-area-inset-bottom)); }
  .footer__inner { display: grid; gap: 16px; justify-items: start; }
  .footer a { color: #fff; }
  .footer__small { font-size: 0.85rem; opacity: 0.7; }
  @media (max-width: 760px) { .footer { padding-bottom: 120px; } }

  /* Mobile dock */
  .dock {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 22px;
    background: oklch(0.2 0.07 262 / 0.88); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
    translate: 0 140%; transition: translate 0.5s var(--ease-out);
  }
  .dock[data-visible] { translate: 0 0; }
  .dock a, .dock button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 16px; font-weight: 650; text-decoration: none; }
  .dock__call { background: var(--mint); color: var(--navy-950); }
  .dock__quote { background: #fff; color: var(--navy-950); }
  @media (max-width: 760px) { .dock { display: grid; } }

  /* Quote dialog */
  .quote {
    width: min(640px, 100% - 24px); max-height: min(92dvh, 860px); margin: auto; padding: 0; border: 0;
    border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
    opacity: 0; translate: 0 24px; scale: 0.97;
    transition: opacity 0.35s var(--ease-out), translate 0.45s var(--ease-out), scale 0.45s var(--ease-out), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
  }
  .quote[open] { opacity: 1; translate: 0 0; scale: 1; }
  @starting-style { .quote[open] { opacity: 0; translate: 0 24px; scale: 0.97; } }
  .quote::backdrop { background: oklch(0.2 0.07 262 / 0); backdrop-filter: blur(0); transition: all 0.35s, overlay 0.35s allow-discrete, display 0.35s allow-discrete; }
  .quote[open]::backdrop { background: oklch(0.2 0.07 262 / 0.55); backdrop-filter: blur(6px); }
  @starting-style { .quote[open]::backdrop { background: oklch(0.2 0.07 262 / 0); backdrop-filter: blur(0); } }
  @media (max-width: 600px) {
    .quote { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; translate: 0 100%; scale: 1; }
    @starting-style { .quote[open] { translate: 0 100%; scale: 1; } }
  }
  .quote__form { display: flex; flex-direction: column; max-height: inherit; }
  .quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 28px 16px; }
  .quote__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); view-transition-name: quote-title; }
  .quote__head .kicker { margin-bottom: 6px; }
  .progress { height: 4px; margin-inline: 28px; border-radius: 4px; background: var(--blue-50); overflow: hidden; }
  .progress span { display: block; height: 100%; width: var(--p, 33%); background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); border-radius: inherit; transition: width 0.5s var(--ease-out); }
  .qstep { padding: 24px 28px; overflow-y: auto; display: grid; gap: 16px; view-transition-name: quote-step; }
  .qstep[hidden] { display: none; }
  .choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  @media (max-width: 480px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
  .choice { position: relative; display: grid; justify-items: center; gap: 8px; padding: 20px 8px; border-radius: 18px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.92rem; text-align: center; cursor: pointer; transition: all 0.25s var(--ease-out); }
  .choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .choice svg { width: 30px; height: 30px; color: var(--blue-600); }
  .choice:hover { border-color: var(--blue-500); background: var(--blue-50); }
  .choice:has(input:checked) { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
  .choice:has(input:checked) svg { color: var(--gold); }
  .choice:has(input:focus-visible) { outline: 3px solid var(--blue-500); outline-offset: 2px; }
  .choice--wide { grid-column: 1 / -1; grid-auto-flow: column; justify-content: center; align-items: center; padding: 16px; }
  .details { display: none; gap: 16px; }
  .details.is-active { display: grid; }
  .quote__foot { display: flex; align-items: center; gap: 12px; padding: 16px 28px 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .quote__foot [data-next], .quote__foot [data-submit] { margin-left: auto; }
  .quote__foot .form-msg { flex: 1 1 100%; order: -1; }
  .quote__foot[hidden] { display: none; }
  .qdone { text-align: center; justify-items: center; padding-block: 40px 48px; }
  .qdone p { color: var(--ink-soft); }
}

@layer motion {
  @keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(0.72 0.15 160 / 0.6); } 80%, 100% { box-shadow: 0 0 0 10px oklch(0.72 0.15 160 / 0); } }
  @keyframes bob { 50% { translate: 0 -10px; } }
  @keyframes spin { to { rotate: 360deg; } }
  @keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
      .hero__visual { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
      @keyframes parallax { to { translate: 0 80px; scale: 0.94; } }
    }
  }

  ::view-transition-old(quote-step) { animation: 0.2s ease-in both fade-out; }
  ::view-transition-new(quote-step) { animation: 0.35s var(--ease-out) both slide-in; }
  @keyframes fade-out { to { opacity: 0; translate: -16px 0; } }
  @keyframes slide-in { from { opacity: 0; translate: 24px 0; } }

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