/* --- minimal reset (was provided by the artifact host; now explicit) --- */
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

  :root {
    color-scheme: light;
    --ground: #F6F7F5;
    --surface: #FFFFFF;
    --ink: #1A2530;
    --ink-soft: #55636F;
    --border: #E4E8E4;
    /* Header ground per theme; the logo swaps to its dark-ground variant to match (see .logo .u-dark) */
    --head-bg: #FFFFFF;
    --head-border: #E4E8E4;
    --navy: #123A5C;
    --navy-deep: #0B2740;
    --navy-ink: #FFFFFF;
    --navy-ink-soft: #B9C7D6;
    --navy-ink-faint: #8397A8;
    --green: #6FB92C;
    --green-press: #5AA01E;
    --green-quiet: rgba(111, 185, 44, 0.12);
    --focus: #123A5C;
    --dot: rgba(111, 185, 44, 0.16);
    --maxw: 1120px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --ground: #0C171F;
      --surface: #172A38;
      --ink: #E9EFF1;
      --ink-soft: #9DB0BC;
      --border: #2A3E4C;
      --head-bg: #0B2740;
      --head-border: rgba(255, 255, 255, 0.09);
      --navy: #0E3355;
      --navy-deep: #0A2338;
      --green-quiet: rgba(111, 185, 44, 0.16);
      --focus: #8FD35A;
      --dot: rgba(111, 185, 44, 0.20);
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --ground: #0C171F;
    --surface: #172A38;
    --ink: #E9EFF1;
    --ink-soft: #9DB0BC;
    --border: #2A3E4C;
    --head-bg: #F1F4F1;
    --head-border: #D3D9D3;
    --navy: #0E3355;
    --navy-deep: #0A2338;
    --green-quiet: rgba(111, 185, 44, 0.16);
    --focus: #8FD35A;
    --dot: rgba(111, 185, 44, 0.20);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; margin: 0; line-height: 1.15; text-wrap: balance; }
  p { margin: 0; }
  a { color: var(--green-press); text-decoration: none; }
  a:hover { text-decoration: underline; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  .eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--green);
  }
  .band { padding: clamp(56px, 8vw, 92px) 0; }
  .band--light { background: var(--ground); }
  .band--surface { background: var(--surface); border-block: 1px solid var(--border); }
  .band--navy {
    background: var(--navy); color: var(--navy-ink);
    background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
  }
  .band--navy h2, .band--navy h3 { color: var(--navy-ink); }
  .band--navy .lead { color: var(--navy-ink-soft); }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px;
    padding: 13px 24px; border-radius: 7px; border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, background .12s ease;
  }
  .btn:hover { text-decoration: none; transform: translateY(-1px); }
  .btn--primary { background: var(--green); color: #06210A; }
  .btn--primary:hover { background: var(--green-press); }
  .btn--ghost { background: transparent; color: var(--navy-ink); border-color: rgba(255,255,255,0.28); }
  .btn--ghost:hover { border-color: var(--navy-ink); }

  /* Header */
  .site-head {
    position: sticky; top: 0; z-index: 20;
    background: var(--head-bg);
    border-bottom: 1px solid var(--head-border);
  }
  .site-head .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
  .logo-link { display: inline-flex; align-items: center; }
  .logo { height: 48px; width: auto; display: block; }
  .logo--foot { height: 25px; align-self: flex-start; }
  @media (max-width: 520px) { .logo { height: 22px; } }
  /* header logo swaps with the header ground: full-colour on light, recoloured on dark */
  .logo .u-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo .u-light { display: none; }
    :root:not([data-theme="light"]) .logo .u-dark { display: inline; }
  }
  :root[data-theme="light"] .logo .u-light { display: inline; }
  :root[data-theme="light"] .logo .u-dark { display: none; }
  :root[data-theme="dark"] .logo .u-light { display: none; }
  :root[data-theme="dark"] .logo .u-dark { display: inline; }

  /* Hero */
  .hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 700; }
  .hero .lead { font-size: 18px; color: var(--navy-ink-soft); max-width: 46ch; }
  .hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
  .hero .newsletter-note { font-size: 14px; color: var(--navy-ink-faint); }
  .hero .newsletter-note a { color: var(--navy-ink); text-decoration: underline; text-underline-offset: 3px; }
  .hero .stack { display: flex; flex-direction: column; gap: 22px; }
  .blueprint { width: 100%; height: auto; display: block; background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 24px; }

  /* Generic section head */
  .sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; margin-bottom: 40px; }
  .sec-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 600; }
  .lead { font-size: 17px; color: var(--ink-soft); }
  .more { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 14px; }
  .band--navy .more { color: var(--green); }
  .more-row { margin-top: 32px; }

  /* Cards */
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 26px; display: flex; flex-direction: column; gap: 12px;
  }
  .band--navy .card { background: var(--navy-deep); border-color: rgba(255,255,255,0.10); }
  .card .tag { width: 34px; height: 34px; border-radius: 8px; background: var(--green-quiet); display: grid; place-items: center; }
  .card .tag svg { width: 19px; height: 19px; }
  .card h3 { font-size: 17px; font-weight: 600; }
  .band--navy .card h3 { color: var(--navy-ink); }
  .card p { font-size: 15px; color: var(--ink-soft); }
  .band--navy .card p { color: var(--navy-ink-soft); }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
  .step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--green); }
  .step .k { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--green-press); }
  .step h3 { font-size: 17px; font-weight: 600; }
  .step p { font-size: 15px; color: var(--ink-soft); }

  /* Proof */
  .proof { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
  .stat-row { display: flex; gap: 32px; flex-wrap: wrap; }
  .stat .n { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--navy-ink); }
  .stat .l { font-size: 13px; color: var(--navy-ink-faint); max-width: 18ch; }
  .proof blockquote { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--navy-ink); line-height: 1.35; }
  .proof cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--navy-ink-faint); }
  .proof cite a { color: var(--green); font-weight: 600; }

  /* Different deal */
  .deal { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
  .deal ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
  .deal li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: var(--ink-soft); }
  .deal li b { color: var(--ink); font-weight: 600; }
  .deal .check { color: var(--green-press); font-weight: 700; }

  /* Newsletter section */
  .newsletter-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
  .newsletter-band .sec-head, .deal .sec-head { margin-bottom: 0; }

  /* Closing CTA */
  .close { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .close h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; }

  .signup { background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
  .signup label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-ink-faint); }
  .signup .field { display: flex; gap: 10px; flex-wrap: wrap; }
  .signup input, .signup textarea {
    flex: 1 1 200px; min-width: 0; padding: 12px 14px; border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04);
    color: var(--navy-ink); font: inherit; font-size: 15px;
  }
  .signup textarea { width: 100%; resize: vertical; min-height: 76px; }
  .signup input::placeholder, .signup textarea::placeholder { color: var(--navy-ink-faint); }
  .signup .fine { font-size: 13px; color: var(--navy-ink-faint); }
  .signup .ok { color: var(--green); font-weight: 600; }
  .signup .err { color: #FF9B8A; font-weight: 500; }
  .signup button[disabled] { opacity: 0.6; cursor: default; transform: none; }
  .signup--bare { background: transparent; border: 0; padding: 0; }

  /* Contact modal (progressive: JS uses showModal(); :target is the no-JS fallback) */
  .modal { width: 100%; max-width: none; height: 100%; max-height: 100%; margin: 0; padding: 20px; border: 0; background: transparent; overflow: auto; place-items: center; }
  .modal[open] { display: grid; }
  .modal:not([open]) { display: none; }
  .modal:target { display: grid; position: fixed; inset: 0; z-index: 200; background: rgba(6, 16, 26, 0.62); }
  .modal::backdrop { background: rgba(6, 16, 26, 0.62); }
  .modal-card {
    position: relative; width: 100%; max-width: 460px;
    background: var(--navy); border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px; padding: 30px;
    background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px); background-size: 26px 26px;
  }
  .modal-card h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--navy-ink); padding-right: 32px; }
  .modal-card .modal-sub { color: var(--navy-ink-soft); font-size: 14px; margin: 8px 0 18px; }
  .modal-x {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
    display: grid; place-items: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--navy-ink-soft); font-size: 22px; line-height: 1;
    cursor: pointer; text-decoration: none;
  }
  .modal-x:hover { background: rgba(255, 255, 255, 0.08); color: var(--navy-ink); }
  @media (prefers-reduced-motion: no-preference) {
    .modal[open] .modal-card, .modal:target .modal-card { animation: modalIn .16s ease-out; }
    @keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
  }

  /* Footer */
  /* bg is pinned (not themed) so the logo's punched counters, filled #0B2740, match it */
  .site-foot { background: #0B2740; color: var(--navy-ink-soft); padding: 44px 0; }
  .site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
  .site-foot a { color: var(--navy-ink-soft); }
  .site-foot .cols { display: flex; gap: 44px; flex-wrap: wrap; font-size: 14px; }
  .site-foot .cols div { display: flex; flex-direction: column; gap: 8px; }
  .site-foot .fine { font-size: 12px; color: var(--navy-ink-faint); max-width: 34ch; }
  .site-foot address { font-style: normal; line-height: 1.5; }
  .foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 34ch; }

  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .grid-3, .steps { grid-template-columns: 1fr; }
    .proof, .deal, .newsletter-band { grid-template-columns: 1fr; }
    .blueprint { order: -1; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }
