  :root{
    --ink:#20262B;
    --ink-soft:#5B5F5A;
    --paper:#ECEAE0;
    --paper-raised:#F5F3EA;
    --green:#2F5D3A;
    --green-soft:#DDE6DA;
    --red:#A23B2E;
    --red-soft:#F1E0DC;
    --amber:#B8791E;
    --line: rgba(32,38,43,0.14);
    --max: 980px;
    --narrow: 680px;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --ink:#EDEBE1; --ink-soft:#B7B9AF; --paper:#181B1D; --paper-raised:#212427;
      --green:#7FBF8E; --green-soft:#233128; --red:#E08A7B; --red-soft:#3A2521;
      --amber:#E0AE63; --line: rgba(237,235,225,0.16);
    }
  }
  :root[data-theme="dark"]{
    --ink:#EDEBE1; --ink-soft:#B7B9AF; --paper:#181B1D; --paper-raised:#212427;
    --green:#7FBF8E; --green-soft:#233128; --red:#E08A7B; --red-soft:#3A2521;
    --amber:#E0AE63; --line: rgba(237,235,225,0.16);
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:"Newsreader", Georgia, serif; font-size:19px; line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,nav,.btn{ font-family:"Space Grotesk", system-ui, sans-serif; }
  .mono{ font-family:"IBM Plex Mono", ui-monospace, monospace; }
  a{ color:var(--green); text-decoration-color:var(--line); text-underline-offset:3px; }
  a:hover{ color:var(--amber); }
  p{ margin:0 0 18px; }

  .wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }
  .narrow{ max-width:var(--narrow); }
  section{ padding:80px 0; }
  section + section{ border-top:1px solid var(--line); }
  @media (max-width:600px){ .wrap{ padding:0 16px; } section{ padding:56px 0; } }

  /* NAV */
  nav{ border-bottom:1px solid var(--line); }
  nav .wrap{ display:flex; justify-content:space-between; align-items:center; height:64px; }
  .brand{ font-weight:700; font-size:20px; color:var(--ink); text-decoration:none; letter-spacing:-0.01em; }
  .brand small{ font-weight:500; font-size:13px; color:var(--ink-soft); margin-left:8px; }
  nav .links a{ color:var(--ink-soft); text-decoration:none; font-size:15px; margin-left:22px; }
  nav .links a:hover{ color:var(--ink); }
  @media (max-width:860px){ nav .links a.minor{ display:none; } }
  @media (max-width:600px){ nav .links a:not(.cta-link){ display:none; } }

  .btn{
    display:inline-block; background:var(--green); color:var(--paper-raised);
    padding:13px 22px; border-radius:2px; text-decoration:none; font-weight:600; font-size:16px;
  }
  .btn:hover{ background:var(--ink); color:var(--paper-raised); }
  .btn.ghost{ background:transparent; color:var(--ink); border:1px solid var(--line); }
  .btn.ghost:hover{ border-color:var(--ink); color:var(--ink); }

  /* HERO */
  .hero{ padding:72px 0 80px; }
  .hero-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:56px; align-items:center; }
  @media (max-width:820px){ .hero-grid{ grid-template-columns:1fr; gap:40px; } }
  .pill{
    display:inline-flex; align-items:center; gap:8px; font-family:"IBM Plex Mono", monospace;
    font-size:13px; color:var(--green); background:var(--green-soft); padding:5px 12px; border-radius:20px; margin-bottom:22px;
  }
  .pill::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--green); }
  h1{ font-size:clamp(36px, 5.4vw, 56px); line-height:1.05; font-weight:700; margin:0 0 24px; letter-spacing:-0.02em; }
  .hero-sub{ font-size:21px; color:var(--ink-soft); margin:0 0 32px; max-width:46ch; }
  .hero-sub b{ color:var(--ink); font-weight:500; }
  .hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
  /* landowner page: the offer in three ticks under the buttons */
  .hero-terms{ list-style:none; margin:26px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px 22px; font-family:"IBM Plex Mono", monospace; font-size:14px; }
  .hero-terms li::before{ content:"✓ "; color:var(--green); font-weight:600; }
  .hero-terms a{ color:var(--ink); text-decoration:none; }
  .hero-terms a:hover{ color:var(--amber); }

  /* INVOICE MOCK */
  .invoice{
    background:var(--paper-raised); border:1px solid var(--line); border-radius:3px;
    padding:26px 24px; font-family:"IBM Plex Mono", monospace; font-size:14px; line-height:1.5;
    box-shadow:0 1px 0 var(--line), 0 18px 40px -24px rgba(0,0,0,0.25);
  }
  .invoice-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:18px; }
  .invoice-head b{ font-family:"Space Grotesk", sans-serif; font-size:17px; }
  .invoice-head span{ color:var(--ink-soft); font-size:12px; }
  .invoice-row{ display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px dashed var(--line); }
  .invoice-row span:first-child{ color:var(--ink-soft); }
  .invoice-total{ display:flex; justify-content:space-between; padding-top:14px; font-size:18px; font-weight:600; }
  .invoice-total span:last-child{ color:var(--green); }
  .invoice-sub{ margin-top:22px; padding-bottom:4px; border-bottom:1px solid var(--line); font-size:12px; color:var(--ink-soft); }
  .invoice-foot{ margin-top:16px; font-size:12px; color:var(--ink-soft); }
  .invoice-link{ display:inline-block; margin-top:10px; font-size:13px; }
  .invoice-note{ font-size:12px; color:var(--ink-soft); margin-top:10px; text-align:right; font-family:"Newsreader", serif; font-style:italic; }


  /* BELIEF */
  .belief{ background:var(--green-soft); padding:64px 0; }
  .belief .statement{
    font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:clamp(26px, 3.4vw, 38px);
    line-height:1.25; letter-spacing:-0.01em; max-width:30ch; margin:0 0 20px;
  }
  .belief .statement em{ font-style:normal; color:var(--green); }
  .belief .sub{ font-size:19px; color:var(--ink-soft); max-width:60ch; margin:0; }

  /* SECTION HEADS */
  .eyebrow{ font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--ink-soft); margin-bottom:10px; letter-spacing:0.02em; }
  h2{ font-size:clamp(28px, 3.6vw, 36px); line-height:1.15; font-weight:600; margin:0 0 14px; letter-spacing:-0.01em; }
  .lede{ color:var(--ink-soft); font-size:19px; margin:0 0 40px; max-width:58ch; }

  /* CONTRAST */
  .contrast{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
  .contrast > div{ background:var(--paper); padding:28px 26px; }
  .contrast .ours{ background:var(--green-soft); }
  .contrast h3{ font-size:15px; margin:0 0 4px; font-weight:600; color:var(--ink-soft); }
  .contrast .ours h3{ color:var(--green); }
  .contrast .amount{ font-family:"Space Grotesk", sans-serif; font-size:44px; font-weight:700; line-height:1.1; margin:6px 0 10px; }
  .contrast .theirs .amount{ color:var(--red); }
  .contrast .ours .amount{ color:var(--green); }
  .contrast p{ font-size:16px; color:var(--ink-soft); margin:0; }
  @media (max-width:640px){ .contrast{ grid-template-columns:1fr; } }

  /* ICONS: inline SVG line drawings in a round chip */
  .icon{ display:flex; align-items:center; justify-content:center; flex:none;
         width:56px; height:56px; border-radius:50%; background:var(--green-soft); color:var(--green); }
  .icon svg{ width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }

  /* FLOW (landowner page): one step per row, icons joined by arrows down the left;
     the titles form one column to skim, the detail sits to the right */
  .flow{ list-style:none; margin:0; padding:0; }
  h2 + .flow{ margin-top:32px; }
  .flow li{ position:relative; display:grid; grid-template-columns:56px 1fr; column-gap:24px; min-height:104px; }
  .flow .row{ display:grid; grid-template-columns:minmax(0, 300px) 1fr; column-gap:32px; border-top:1px solid var(--line); padding:14px 0 28px; }
  .flow li:last-child .row{ border-bottom:1px solid var(--line); }
  .flow h3{ font-size:22px; margin:0; font-weight:600; line-height:1.3; }
  .flow p{ font-size:16px; color:var(--ink-soft); margin:0; padding-top:3px; max-width:52ch; }
  .flow li:not(:last-child)::after{ content:""; position:absolute; left:27px; top:64px; bottom:8px; border-left:2px solid var(--green); }
  .flow li:nth-child(3)::after{ border-left:2px dashed var(--amber); }
  .flow li:nth-child(2)::before, .flow li:nth-child(3)::before{
    content:""; position:absolute; left:23px; top:-18px; width:10px; height:10px; box-sizing:border-box;
    border:solid var(--green); border-width:2px 2px 0 0; transform:rotate(135deg);
  }
  .flow .branch .icon{ background:color-mix(in srgb, var(--amber) 16%, transparent); color:var(--amber); }
  /* driver page: the side route is help, not a warning, so it stays green */
  .flow-help li:nth-child(3)::after{ border-left-color:var(--green); }
  .flow-help .branch .icon{ background:var(--green-soft); color:var(--green); }
  @media (max-width:700px){
    .flow .row{ grid-template-columns:1fr; }
    .flow h3{ font-size:20px; margin-bottom:6px; }
  }


  /* DEMO */
  .tabs{ display:inline-flex; border:1px solid var(--line); border-radius:3px; overflow:hidden; margin-bottom:32px; }
  .tabs button{
    font:600 15px "Space Grotesk", sans-serif; background:transparent; color:var(--ink-soft);
    border:0; padding:11px 18px; cursor:pointer;
  }
  .tabs button + button{ border-left:1px solid var(--line); }
  .tabs button[aria-selected="true"], .tabs button[aria-pressed="true"]{ background:var(--ink); color:var(--paper); }
  .timeline{ border-left:2px solid var(--line); margin-left:8px; }
  .event{ position:relative; padding:0 0 28px 28px; display:grid; grid-template-columns:1fr auto; gap:6px 24px; }
  .event::before{
    content:""; position:absolute; left:-7px; top:6px; width:12px; height:12px; border-radius:50%;
    background:var(--paper); border:2px solid var(--green);
  }
  .event.warn::before{ border-color:var(--amber); }
  .event .when{ grid-column:1 / -1; font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--ink-soft); }
  .event h3{ font-size:18px; margin:0; font-weight:600; }
  .event p{ font-size:16px; color:var(--ink-soft); margin:4px 0 0; max-width:52ch; }
  .event .owed{ font-family:"IBM Plex Mono", monospace; font-size:15px; text-align:right; white-space:nowrap; }
  .event .owed small{ display:block; font-size:12px; color:var(--ink-soft); }
  .event .owed b{ font-weight:600; }
  .event.done .owed b{ color:var(--green); }
  .breakdown{ font-family:"IBM Plex Mono", monospace; font-size:14px; margin-top:10px; max-width:340px; }
  .breakdown div{ display:flex; justify-content:space-between; padding:3px 0; border-bottom:1px dashed var(--line); }
  .breakdown div:last-child{ border-bottom:0; font-weight:600; }
  .demo-foot{ margin-top:8px; padding:20px 22px; background:var(--green-soft); border-radius:3px; font-size:17px; }
  .demo-foot b{ font-family:"Space Grotesk", sans-serif; }
  @media (max-width:560px){
    .event{ grid-template-columns:1fr; }
    .event .owed{ text-align:left; }
  }



  /* example tariff on the driver page: the left side of the sign, as text */
  .tariff-ex{ border:1px solid var(--line); border-radius:3px; padding:18px 20px; margin:-12px 0 32px; background:var(--paper-raised);
              display:grid; grid-template-columns:minmax(0, 280px) 1fr; gap:28px; align-items:start; }
  @media (max-width:600px){ .tariff-ex{ grid-template-columns:1fr; gap:18px; } }
  .tx-label{ font-family:"IBM Plex Mono", monospace; font-size:12px; color:var(--ink-soft); letter-spacing:0.04em; }
  .tx-head{ font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:22px; margin:4px 0 2px; }
  .tx-q{ font-family:"IBM Plex Mono", monospace; font-size:11px; font-weight:600; color:var(--green); letter-spacing:0.06em; margin-top:12px; }
  .tx-when{ font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:18px; }
  .tx-rows{ margin-top:4px; border-top:2px solid var(--ink); font-family:"Space Grotesk", sans-serif; font-size:16px; }
  .tx-rows div{ display:flex; justify-content:space-between; gap:12px; padding:5px 2px; border-bottom:1px solid var(--line); }
  .tx-rows b{ font-weight:700; }
  .tariff-ex p{ font-size:16px; color:var(--ink-soft); margin:0; }
  .tariff-ex p b{ color:var(--green); }

  /* RULES */
  .rules{ margin-top:48px; border-top:2px solid var(--ink); }
  .rules h3{ font-size:20px; margin:20px 0 6px; font-weight:600; }
  .rules > p{ color:var(--ink-soft); font-size:17px; margin:0 0 12px; }
  .rule{ display:grid; grid-template-columns:150px 1fr; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); font-size:17px; }
  .rule .k{ font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--ink-soft); padding-top:3px; }
  .rule.never .k{ color:var(--red); }
  @media (max-width:520px){ .rule{ grid-template-columns:1fr; gap:2px; } }


  /* SIGN */
  .sign-fig{ margin:48px 0 0; display:grid; gap:20px; max-width:760px; }
  .sign-fig img{ width:100%; height:auto; border:1px solid var(--line); border-radius:4px; box-shadow:0 18px 40px -24px rgba(0,0,0,0.35); }
  .sign-fig figcaption h3{ font-size:20px; margin:0 0 8px; font-weight:600; }
  .sign-fig figcaption p{ font-size:16px; color:var(--ink-soft); margin:0 0 10px; }

  /* BENEFITS */
  .benefits{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
  @media (max-width:820px){ .benefits{ grid-template-columns:1fr 1fr; } }
  @media (max-width:520px){ .benefits{ grid-template-columns:1fr; } }
  .benefit{ background:var(--paper-raised); padding:26px 24px; }
  .benefit .icon{ width:44px; height:44px; margin-bottom:16px; }
  .benefit .icon svg{ width:24px; height:24px; }
  .benefit h3{ font-size:18px; margin:0 0 8px; font-weight:600; }
  .benefit p{ font-size:16px; color:var(--ink-soft); margin:0; }
  /* TERMS (landowner page): the three ways to be paid, in the benefits grid */
  @media (max-width:820px){ .options{ grid-template-columns:1fr; } }
  .options .benefit{ display:flex; flex-direction:column; }
  .options .benefit .suits{ margin-top:auto; padding-top:16px; font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--green); }
  .grid-note{ font-size:16px; color:var(--ink-soft); margin:16px 0 0; max-width:62ch; }

  /* FREE COUNT (landowner page): what the landowner gets | an example report */
  .trial-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:48px; align-items:start; }
  @media (max-width:820px){ .trial-grid{ grid-template-columns:1fr; gap:32px; } }

  /* HANDLED LIST */
  .handled{ display:grid; grid-template-columns:1fr 1fr; gap:0 48px; }
  @media (max-width:640px){ .handled{ grid-template-columns:1fr; } }
  .handled-row{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
  .handled-row .tick{ color:var(--green); font-family:"IBM Plex Mono", monospace; font-weight:600; flex:none; }
  .handled-row b{ font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:17px; display:block; }
  .handled-row span.d{ font-size:15px; color:var(--ink-soft); }

  /* FAQ */
  details{ border-bottom:1px solid var(--line); padding:18px 0; }
  details:first-of-type{ border-top:1px solid var(--line); }
  summary{ cursor:pointer; font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:18px; list-style:none; display:flex; justify-content:space-between; gap:16px; }
  summary::-webkit-details-marker{ display:none; }
  summary::after{ content:"+"; font-family:"IBM Plex Mono", monospace; color:var(--ink-soft); }
  details[open] summary::after{ content:"–"; }
  details p{ margin:12px 0 0; color:var(--ink-soft); font-size:17px; max-width:64ch; }

  /* PILOT CTA */
  .pilot{ background:var(--ink); color:var(--paper); }
  .pilot h2{ color:var(--paper); }
  .pilot .lede{ color:color-mix(in srgb, var(--paper) 72%, transparent); }
  .pilot-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:48px; align-items:start; }
  @media (max-width:760px){ .pilot-grid{ grid-template-columns:1fr; } }
  .pilot ul, .pilot ol{ margin:0; padding:0; list-style:none; }
  .pilot li{ padding:10px 0; border-bottom:1px solid color-mix(in srgb, var(--paper) 18%, transparent); font-size:17px; }
  .pilot li::before{ content:"→ "; color:var(--green); font-family:"IBM Plex Mono", monospace; }
  .contact-card{ border:1px solid color-mix(in srgb, var(--paper) 22%, transparent); padding:26px; border-radius:3px; }
  .contact-card .who{ font-family:"Space Grotesk", sans-serif; font-weight:700; font-size:22px; }
  .contact-card .role{ font-size:15px; color:color-mix(in srgb, var(--paper) 65%, transparent); margin-bottom:16px; }
  .contact-card .line{ font-family:"IBM Plex Mono", monospace; font-size:15px; }
  .contact-card a{ color:var(--paper); }
  .pilot .btn{ background:var(--paper); color:var(--ink); margin-top:20px; }
  .pilot .btn:hover{ background:var(--green-soft); }
  .contact-card .more{ display:block; margin-top:16px; font-family:"Space Grotesk", sans-serif; font-size:15px; }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]) .pilot{ background:var(--paper-raised); color:var(--ink); }
    :root:not([data-theme="light"]) .pilot h2{ color:var(--ink); }
    :root:not([data-theme="light"]) .pilot .lede,
    :root:not([data-theme="light"]) .contact-card .role{ color:var(--ink-soft); }
    :root:not([data-theme="light"]) .contact-card a{ color:var(--ink); }
  }

  /* trod, the company Tessera belongs to, set in its wordmark: four letters cut
     from EB Garamond (fonts/trod-wordmark.woff2, OFL, see fonts/OFL.txt), so the
     name reads the same here as on trod.uk */
  @font-face{ font-family:"trod wordmark"; font-weight:500; font-display:swap; src:url(../fonts/trod-wordmark.woff2) format("woff2"); }
  .trod{ font-family:"trod wordmark", Georgia, serif; font-weight:500; font-style:normal; font-size:1.15em; letter-spacing:-0.01em; }

  footer{ padding:36px 0 56px; color:var(--ink-soft); font-size:14px; }
  footer .wrap{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
  footer a{ color:var(--ink-soft); }
  footer .legal{ flex-basis:100%; font-size:13px; }

  /* VISITORS (landowner page): what Tessera sets | what the landowner sets */
  .realms{ display:grid; grid-template-columns:1.4fr 1fr; gap:24px; align-items:start; }
  @media (max-width:760px){ .realms{ grid-template-columns:1fr; } }
  .realms > div{ background:var(--paper-raised); border:1px solid var(--line); border-radius:3px; padding:22px 24px 6px; }
  .realms > .yours{ background:var(--green-soft); }
  .realms .yours .facts-head{ color:var(--green); }
  .realms .facts li:last-child{ border-bottom:0; }
  .facts{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
  .facts li{ padding:14px 0; border-bottom:1px solid var(--line); font-size:17px; color:var(--ink-soft); }
  .facts li b{ color:var(--ink); font-family:"Space Grotesk", sans-serif; font-weight:600; }
  .facts-head{ font-size:18px; font-weight:600; margin:0 0 10px; }
  .sign-fig .btn{ margin-top:10px; }
  .sign-tabs{ justify-self:start; margin:0; border:0; border-radius:0; overflow:visible; flex-wrap:wrap; gap:8px; }
  .sign-tabs button, .sign-tabs button + button{ border:1px solid var(--line); border-radius:3px; }
  .sign-tabs[hidden]{ display:none; }

  /* DRIVER PAGE */
  .grace-box{ margin-top:28px; padding:22px 24px; border:1px solid var(--line); border-radius:3px; background:var(--paper-raised); }
  .grace-box h3{ font-size:20px; margin:0 0 8px; font-weight:600; }
  .grace-box p{ font-size:17px; color:var(--ink-soft); margin:0 0 12px; }
  .soon{ display:inline-block; font-family:"IBM Plex Mono", monospace; font-size:13px; color:var(--amber); border:1px solid var(--amber); padding:3px 10px; border-radius:20px; margin-top:6px; }
  .prose-block p{ font-size:18px; max-width:62ch; }

  /* HOME */
  .home-hero{ padding:88px 0 72px; }
  .home-hero h1{ max-width:none; }
  .home-hero .hero-sub{ max-width:52ch; }
  .doors{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:12px; }
  @media (max-width:700px){ .doors{ grid-template-columns:1fr; } }
  .door{ display:flex; flex-direction:column; gap:8px; padding:26px 24px; border:1px solid var(--line); border-radius:4px;
         background:var(--paper-raised); color:var(--ink); text-decoration:none; transition:border-color .15s, transform .15s; }
  .door:hover{ border-color:var(--ink); transform:translateY(-2px); color:var(--ink); }
  .door.primary{ background:var(--green-soft); border-color:var(--green); }
  .door-k{ font-family:"IBM Plex Mono", monospace; font-size:12px; color:var(--ink-soft); letter-spacing:0.03em; }
  .door.primary .door-k{ color:var(--green); }
  .door-t{ font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:22px; line-height:1.25; }
  .door-d{ font-size:16px; color:var(--ink-soft); }
  .door-go{ font-family:"Space Grotesk", sans-serif; font-weight:600; font-size:15px; color:var(--green); margin-top:auto; padding-top:6px; }
