:root {
    --cobalt: #1D4ED8;
    --coral: #FF5A4A;
    --coral-ink: #D23A2A;
    --cream: #FFF7E6;
    --mint: #CFF5E5;
    --charcoal: #1F1F1F;
    --sunshine: #FFE97A;
    --white: #FFFFFF;
    --navy: #16275E;
    --ink-soft: #4B4B47;
    --line: rgba(31,31,31,.14);
    --max: 1140px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: var(--body); font-size: 16px; line-height: 1.65; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

  .btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 15.5px; line-height: 1; border-radius: 999px; padding: 15px 26px; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
  .btn:active { transform: scale(.97); }
  .btn-primary { background: var(--cobalt); color: var(--white); box-shadow: 0 2px 0 rgba(31,31,31,.25); }
  .btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 5px 0 rgba(31,31,31,.22); }
  .btn-coral { background: var(--coral-ink); color: var(--white); box-shadow: 0 2px 0 rgba(31,31,31,.25); }
  .btn-coral:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 5px 0 rgba(31,31,31,.22); }

  .chip { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); border: 1.5px solid var(--charcoal); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .sticker { display: inline-block; font-weight: 700; border-radius: 12px; padding: 10px 16px; line-height: 1.25; box-shadow: 0 3px 0 rgba(31,31,31,.18); border: 2px solid var(--charcoal); font-family: var(--display); font-size: 16px; }
  .sticker.yellow { background: var(--sunshine); color: var(--charcoal); }

  /* ── Nav ── */
  nav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1.5px solid var(--line); }
  .nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
  .nav-inner .logo { margin-right: auto; }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-links a { text-decoration: none; color: var(--charcoal); font-weight: 500; font-size: 15px; transition: color .15s; }
  .nav-links a:hover { color: var(--cobalt); }
  .nav-links a.active { color: var(--cobalt); font-weight: 700; }
  .nav-cta { padding: 12px 22px; }

  /* ── Hero ── */
  .hero { padding: 72px 0 64px; position: relative; overflow-x: clip; }
  h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 62px); line-height: 1.08; letter-spacing: -.01em; margin: 22px 0 0; max-width: 17ch; }
  h1 em { font-style: italic; color: var(--coral); }
  .hl-mark { position: relative; white-space: nowrap; z-index: 0; }
  .hl-mark::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: 4px; height: 38%; background: var(--mint); z-index: -1; border-radius: 6px; transform: rotate(-1deg); }
  .hl-mark.sun::after { background: var(--sunshine); }
  .hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 50ch; margin: 22px 0 30px; }
  .hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  .hero-stk { position: absolute; right: 9%; top: 110px; transform: rotate(5deg); }
  .hero-squiggle { display: block; margin-top: 10px; }

  /* ── Sections ── */
  section { padding: 80px 0; }
  .eyebrow { display: inline-block; background: var(--cobalt); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 8px; padding: 6px 14px; margin: 0 0 14px; }
  .eyebrow-coral { background: var(--coral-ink); }
  h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.005em; }
  h2 em { font-style: italic; color: var(--coral); }
  .sec-sub { color: var(--ink-soft); font-size: 17px; max-width: 56ch; margin: 0; }

  /* ── Benefits ── */
  .benefits { background: var(--white); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
  .ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
  .ben { border: 1.5px solid var(--charcoal); border-radius: 16px; padding: 26px 26px 28px; background: var(--cream); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
  .ben:hover { transform: translateY(-4px); box-shadow: 0 6px 0 rgba(31,31,31,.16); background: var(--white); }
  .ben .ic { width: 48px; height: 48px; border-radius: 13px; border: 1.5px solid var(--charcoal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
  .ben h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
  .ben p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
  /* Rhythm: a zigzag of wide + narrow cards (span 2 / span 1) across 3 rows.
     9 span-units over a 3-col grid tile cleanly with no trailing hole. The two
     wide focal cards get a coloured head-band fill and larger title. */
  .ben.wide { grid-column: span 2; }
  .ben.feature { background: var(--mint); box-shadow: 0 4px 0 rgba(31,31,31,.18); }
  .ben.feature .ic { background: var(--white) !important; }
  .ben.feature h3 { font-size: 24px; }
  .ben.feature:hover { background: var(--mint); }

  /* ── Expectations ── */
  .expect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px; align-items: start; }
  .expect-list { display: grid; gap: 0; border: 1.5px solid var(--charcoal); border-radius: 16px; background: var(--white); overflow: hidden; }
  .expect { display: flex; gap: 16px; padding: 22px 26px; border-bottom: 1.5px solid var(--line); }
  .expect:last-child { border-bottom: none; }
  .expect .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--charcoal); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
  .expect h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
  .expect p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
  .expect-note { background: var(--sunshine); border: 1.5px solid var(--charcoal); border-radius: 16px; padding: 26px 28px; box-shadow: 0 4px 0 rgba(31,31,31,.18); transform: rotate(.8deg); }
  .expect-note h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
  .expect-note p { margin: 0; font-size: 14.5px; line-height: 1.6; }

  /* ── From sprint to market (after-the-day distribution) ── */
  .market { background: var(--navy); color: var(--cream); border-top: 2px solid var(--charcoal); border-bottom: 2px solid var(--charcoal); }
  .market .eyebrow { background: var(--sunshine); color: var(--charcoal); }
  .market h2 { color: var(--cream); }
  .market h2 em { color: var(--sunshine); }
  .market .sec-sub { color: rgba(255,247,230,.74); }
  .market-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0 0; padding: 0; list-style: none; }
  .market-loop li { padding: 24px 22px; border: 1.5px solid var(--charcoal); border-radius: 16px; background: var(--cream); color: var(--charcoal); box-shadow: 5px 5px 0 var(--cobalt); }
  .market-loop li:nth-child(even) { box-shadow: 5px 5px 0 var(--coral); }
  .market-loop .step-n { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--charcoal); border-radius: 50%; background: var(--mint); font-weight: 800; font-size: 14px; }
  .market-loop h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 14px 0 0; line-height: 1.15; }
  .market-loop p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

  /* Builder FAQ uses the shared .faq styles in global.css unchanged. */

  /* ── Application form ── */
  .apply { background: var(--white); border-top: 1.5px solid var(--line); }
  .apply-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; margin-top: 8px; }
  .apply-side { position: sticky; top: 108px; }
  .apply-side .facts { display: grid; gap: 14px; margin-top: 28px; }
  .apply-side .fact-line { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
  .apply-side .fact-line b { color: var(--cobalt); font-family: var(--display); font-size: 17px; }
  form.app-form { border: 2px solid var(--charcoal); border-radius: 20px; background: var(--cream); padding: 36px 36px 40px; box-shadow: 0 5px 0 rgba(31,31,31,.18); }
  .field { margin-bottom: 22px; }
  .field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
  .field label small { font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
  .field input, .field textarea, .field select { width: 100%; font-family: var(--body); font-size: 15px; padding: 13px 16px; border: 1.5px solid var(--charcoal); border-radius: 12px; background: var(--white); color: var(--charcoal); outline: none; transition: border-color .15s, box-shadow .15s; }
  .field textarea { resize: vertical; min-height: 96px; }
  .field select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231F1F1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
  .form-foot p { margin: 0; font-size: 13px; color: var(--ink-soft); }
  .form-error { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--coral-ink); }
  .app-done { display: none; text-align: center; padding: 60px 30px; }
  .app-done .big-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); border: 2px solid var(--charcoal); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
  .app-done h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 8px; }
  .app-done p { color: var(--ink-soft); margin: 0; }

  /* ── Footer ── */
  footer { background: var(--navy); color: var(--cream); padding: 64px 0 0; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 44px; align-items: start; }
  .foot-brand p { margin: 16px 0 0; font-size: 14.5px; color: rgba(255,247,230,.72); max-width: 30ch; line-height: 1.55; }
  .foot-h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,247,230,.55); margin: 0 0 16px; }
  .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
  .foot-col a { color: var(--cream); text-decoration: none; font-size: 14.5px; font-weight: 500; }
  .foot-col a:hover { color: var(--sunshine); }
  .foot-social { display: flex; align-items: center; gap: 9px; }
  .foot-nl-done { display: none; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--sunshine); }
  .foot-prov p { margin: 0 0 10px; font-size: 14.5px; color: rgba(255,247,230,.72); line-height: 1.55; }
  .foot-prov .flag { font-size: 13px; color: var(--cream); font-weight: 600; }
  .foot-base { border-top: 1px solid rgba(255,247,230,.15); margin-top: 52px; padding: 20px 0; }
  .foot-base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .foot-base p { margin: 0; font-size: 12.5px; color: rgba(255,247,230,.5); }

  /* ── Mobile nav ── */
  .nav-burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--charcoal); border-radius: 12px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
  .nav-burger svg { display: block; }
  .nav-burger .x-icon { display: none; }
  nav.open .nav-burger .bars-icon { display: none; }
  nav.open .nav-burger .x-icon { display: block; }
  .nav-mobile { display: none; border-top: 1.5px solid var(--line); padding: 10px 32px 24px; background: var(--cream); }
  nav.open .nav-mobile { display: block; }
  .nav-mobile a { display: block; padding: 14px 2px; text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: 17px; border-bottom: 1px solid rgba(31,31,31,.1); }
  .nav-mobile a.btn { border-bottom: none; margin-top: 16px; display: flex; justify-content: center; color: var(--white); }

  /* ── Skip link ── */
  .skip-link { position: absolute; left: 16px; top: -200px; z-index: 100; background: var(--cobalt); color: var(--white); font-family: var(--body); font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--charcoal); box-shadow: 0 3px 0 rgba(31,31,31,.25); transition: top .15s ease; }
  .skip-link:focus { top: 16px; }
  .nl-done:focus, .foot-nl-done:focus, .app-done:focus { outline: none; }
  main:focus { outline: none; }

  /* ── Focus-visible rings ── */
  a:focus-visible, button:focus-visible, .btn:focus-visible,
  .nav-links a:focus-visible, .nav-burger:focus-visible, .logo:focus-visible, .skip-link:focus-visible {
    outline: 3px solid var(--cobalt); outline-offset: 2px;
  }
  /* On dark navy surfaces, a cobalt ring is invisible, use sunshine */
  footer a:focus-visible, footer button:focus-visible {
    outline-color: var(--sunshine);
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
    .reveal.in { opacity: 1; transform: none; }
  }

  @media (max-width: 920px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .ben-grid { grid-template-columns: 1fr; }
    .ben.wide { grid-column: auto; }
    .expect-grid, .apply-grid { grid-template-columns: 1fr; }
    .market-loop { grid-template-columns: 1fr 1fr; }
    .apply-side { position: static; }
    .field-row { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero-stk { display: none; }
    /* WCAG 2.5.8, ≥44px touch targets in the footer on tablet/phone.
       min-height (not extra padding) keeps the ul gap clean; gap trimmed so
       44px rows don't look sparse. .foot-col a also matches .foot-social,
       which keeps its own gap:9px for icon+label centering. */
    .foot-col ul { gap: 4px; }
    .foot-col a { min-height: 44px; display: flex; align-items: center; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 22px; }
    .nav-mobile { padding: 10px 22px 24px; }
    .hero { padding: 44px 0 48px; }
    h1 { font-size: clamp(33px, 8.8vw, 44px); }
    /* A wrapped highlight cannot be drawn with one absolutely positioned bar: the
       ::after covers the inline's whole bounding box, so once the phrase breaks
       across lines the wash collapses onto the last fragment. Here the wash becomes
       a per-fragment background instead, cloned onto every line box. The
       single-colour linear-gradient is a flat fill with no blend; it is only a way
       to size the band to the lower part of the text, which background-color cannot do. */
    .hl-mark { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-image: linear-gradient(var(--mint), var(--mint)); background-repeat: no-repeat; background-size: 104% 38%; background-position: -2% calc(100% - 4px); border-radius: 6px; }
    .hl-mark.sun { background-image: linear-gradient(var(--sunshine), var(--sunshine)); }
    .hl-mark::after { content: none; }
    .hero-sub { font-size: 16.5px; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    section { padding: 52px 0; }
    h2 { font-size: clamp(26px, 7.2vw, 34px); }
    .expect { padding: 18px 18px; }
    .market-loop { grid-template-columns: 1fr; }
    .expect-note { transform: none; }
    form.app-form { padding: 24px 20px 28px; }
    .form-foot { flex-direction: column; align-items: stretch; }
    .form-foot .btn { justify-content: center; }
    .foot-grid { grid-template-columns: 1fr; gap: 34px; }
    .foot-base .wrap { flex-direction: column; gap: 6px; }
  }
