/* Fieldyard. Concept: a split world. Field (map, crews) and Yard (machines, meters), joined in one app.
   Spruce bands for the "field at dawn", concrete paper for the yard, survey-flagging orange as the one accent. */
:root {
  /* Radius scale: square by default. 6px on framed screens, 4px on inputs; buttons keep their softer rounding.
     Round only where the real object is round (phones, pills, dots). */
  --r-frame: 6px;
  --r-ctl: 4px;
  --paper: #F1F2EE;
  --paper-2: #E7EAE4;
  --card: #FFFFFF;
  --ink: #16201C;
  --muted: #55615B;
  --line: #D5DBD4;
  --band: #1C3A31;
  --band-2: #234639;
  --band-ink: #EEF3EF;
  --band-muted: #CAD9D1;
  --band-line: #33564A;
  --flag: #BF3E15;
  --flag-text: #B5390F;
  --flag-band: #F6956F;
  --ok-text: #1B6E43;
  --flag-ink: #FFFFFF;
  --ok: #2F8F5B;
  --map-a: #DCE6D9;
  --map-b: #BFD0BB;
  --water: #9CC3D5;
  --road: #8E978F;
  --zone: rgba(191, 62, 21, 0.15);
  --screen: #F6F7F4;
  --screen-line: #E0E5DF;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101613; --paper-2: #151D19; --card: #18201C; --ink: #E7ECE8; --muted: #A6B3AC; --line: #2A3530;
    --band: #0B1E17; --band-2: #12291F; --band-ink: #EEF3EF; --band-muted: #9FB5AA; --band-line: #24443A;
    --flag: #F0683F; --flag-text: #F0683F; --flag-band: #F0683F; --ok-text: #5CC48A; --flag-ink: #1A0D08; --ok: #5CC48A;
    --map-a: #1C2923; --map-b: #2D4137; --water: #2F566A; --road: #56625C; --zone: rgba(240, 104, 63, 0.2);
    --screen: #1B2420; --screen-line: #2E3A34;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--flag); color: var(--flag-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 120px; }
.section-tight { padding-top: 40px; }
.band { background: var(--band); color: var(--band-ink); position: relative; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 0.96; font-weight: 850; letter-spacing: -0.015em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.03; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 105%; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 58ch; }
.eyebrow { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--flag-text); margin: 0; }
.band .eyebrow { color: var(--flag-band); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head h2 { max-width: 20ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s; }
.btn-flag { background: var(--flag); color: var(--flag-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.btn-flag:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.btn-flag:active { transform: translateY(0); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.btn-ghost:hover { border-color: currentColor; transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--band); color: var(--band-ink); transition: box-shadow .3s, background-color .3s; }
.top.scrolled { background: color-mix(in srgb, var(--band) 88%, transparent); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 1px 0 var(--band-line), 0 10px 30px -18px rgba(0, 0, 0, .6); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-name { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; }
.mark-yard { color: #F0683F; }
.mark-flag { transform-box: fill-box; transform-origin: left center; animation: unfurl .7s .3s var(--ease) both; }
@keyframes unfurl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--band-muted); position: relative; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--flag); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover, .nav a.active { color: var(--band-ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
@media (max-width: 1080px) { .nav a:not(.btn) { display: none; } }

/* Load-in animation (CSS only, so it runs without JS) */
.rise { display: inline-block; animation: rise .6s calc(var(--d, 0) * 80ms + 100ms) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Hero: big field-grade headline (Samsara attitude) + the real app up front (Linear) */
.hero { overflow: hidden; background: linear-gradient(to bottom, var(--band) 0, var(--band) calc(100% - clamp(120px, 18vw, 260px)), var(--paper) calc(100% - clamp(120px, 18vw, 260px))); }
.hero-topo { position: absolute; inset: 0 0 auto 0; width: 100%; height: 70%; color: var(--band-line); opacity: .7; pointer-events: none; }
.hero-topo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s calc(var(--i) * 140ms + 200ms) var(--ease) forwards; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(44px, 6vw, 80px) 48px; }
.hero-title { margin-top: 20px; font-size: clamp(38px, 5.6vw, 86px); line-height: .92; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero .lede { color: var(--band-muted); margin-top: 28px; max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.showcase-wrap { position: relative; padding-bottom: 40px; }
.showcase { position: relative; display: block; margin-inline: auto; max-width: 1180px; perspective: 1800px; }
.showcase .browser { position: relative; transform: rotateX(calc(var(--tilt, 12deg) + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) scale(var(--zoom, .97)); transform-origin: 50% 0; transition: transform .1s linear; will-change: transform; }
/* 3D card: soft light that follows the cursor across the screenshot */
.showcase .browser::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: var(--glare, 0); background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .16), transparent 55%); }
.showcase .phone-shot { will-change: transform; }
.showcase .phone-shot { position: absolute; right: -2%; bottom: -6%; width: clamp(110px, 21%, 250px); }
@media (max-width: 640px) { .showcase .phone-shot { right: -4px; bottom: -10%; width: 32%; } .showcase-wrap { padding-bottom: 64px; } }
.shot-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 28px; font-family: var(--mono); }
@media (max-width: 640px) { .shot-note { margin-top: 48px; } }

.browser { margin: 0; border-radius: var(--r-frame); overflow: hidden; background: var(--card); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55), 0 0 0 6px color-mix(in srgb, var(--band-line) 55%, transparent); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 340px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img, .phone-shot img { display: block; width: 100%; height: auto; }
.phone-shot { margin: 0; background: #0E1411; padding: 6px; border-radius: 28px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6), inset 0 0 0 1.5px #2A332F; }
.phone-shot img { border-radius: 22px; }

/* Proof strip (instead of client logos: only facts we can back) */
.proof { border-bottom: 1px solid var(--line); }
.proof-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-block: 36px; }
@media (max-width: 1000px) { .proof-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .proof-row { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.proof-row li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.proof-row b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.pi { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--flag-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* Product tour */
.tour { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
@media (max-width: 960px) { .tour { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 960px) { .tour-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 520px) { .tour-tab { padding: 14px; } .tour-tab strong { font-size: 15px; } .tour-tab span { display: none; } }
.tour-tab { position: relative; overflow: hidden; text-align: left; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 12px; padding: 18px 20px; transition: background-color .25s, border-color .25s; }
.tour-tab strong { display: block; font-size: 17px; font-weight: 600; }
.tour-tab span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.tour-tab:hover { background: var(--paper-2); }
.tour-tab[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35); }
.tour-tab[aria-selected="true"] strong { color: var(--flag-text); }
.tour-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--flag); transform: scaleX(0); transform-origin: left; }
.tour-tab[aria-selected="true"] .tour-bar { transform: scaleX(var(--p, 0)); }
.tour-stage { position: relative; }
.tour-panel { animation: rise .45s var(--ease); }
.tour-phones { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); }
.tour-phones .phone-shot { width: min(46%, 300px); }
.tour-phones .phone-shot:nth-child(2) { margin-top: 48px; }

/* Security */
.secure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
@media (max-width: 1000px) { .secure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .secure-grid { grid-template-columns: minmax(0, 1fr); } }
.secure { border-top: 2px solid var(--ink); padding: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.secure p { color: var(--muted); font-size: 16px; }
.hero-facts { list-style: none; padding: 0; display: flex; gap: 20px 28px; flex-wrap: wrap; margin: 44px 0 0; font-size: 14px; line-height: 1.45; color: var(--band-muted); }
.hero-facts li { border-left: 2px solid var(--flag-band); padding-left: 12px; }
.hero-facts b { display: block; color: var(--band-ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.hero-visual { display: block; }

.split-card { position: relative; border-radius: var(--r-frame); overflow: hidden; border: 1px solid var(--band-line); background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.split-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.split-head-mid { border-top: 1px solid var(--line); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.split-map { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--map-a); }
.split-map svg { display: block; width: 100%; height: 100%; }
.contours path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s calc(var(--i) * 100ms + 400ms) var(--ease) forwards; }
.river { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s .6s var(--ease) forwards; }
.road { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s 1s var(--ease) forwards; }
.zone { stroke-dasharray: 8 6; opacity: 0; animation: fade-in .6s 1.6s forwards, march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
@keyframes fade-in { to { opacity: 1; } }
.zone-ring { transform-box: fill-box; transform-origin: center; animation: ping 2.4s 2s ease-out infinite; opacity: 0; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.pin { position: absolute; font-family: var(--mono); font-size: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); animation: pop .5s var(--ease) both; }
.pin-a { left: 47%; top: 72%; animation-delay: 2s; }
.pin-b { left: 4%; top: 50%; animation-delay: 2.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .pin { font-size: 11px; padding: 3px 6px; } .pin-a { left: auto; right: 4%; top: 78%; } .pin-b { top: 46%; } }
.yard { padding: 6px 16px 14px; }
.yard-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.yard-row:last-child { border-bottom: 0; }
.meter { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.chip { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }
.chip-due { background: color-mix(in srgb, var(--flag) 14%, transparent); color: var(--flag-text); }
@media (max-width: 420px) { .yard-row { gap: 10px; font-size: 14px; } .meter { font-size: 13px; } }
@media (max-width: 340px) { .yard-row { grid-template-columns: minmax(0, 1fr) auto; } .yard-row .chip { grid-column: 1 / -1; justify-self: start; } }
.toast { position: absolute; right: 12px; top: 54px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 8px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; max-width: calc(100% - 28px); }
.toast.show { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }


/* Scroll reveal: only hidden when JS is running and IntersectionObserver is present */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Field / Yard */
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .halves { grid-template-columns: 1fr; } }
.half { padding: 36px 40px 8px 0; }
.half + .half { padding: 36px 0 8px 40px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .half, .half + .half { padding: 32px 0 8px; border-left: 0; } .half + .half { border-top: 1px solid var(--line); } }
.half-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.half-title h3 { font-size: clamp(34px, 4vw, 44px); font-stretch: 122%; font-weight: 850; }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li:hover .ic { background: var(--flag); color: var(--flag-ink); }
.feature-list strong { display: block; font-weight: 600; font-size: 17px; }
.feature-list span { color: var(--muted); font-size: 16px; }
/* Wide screens: both halves share one row grid, so each divider line sits at the same height on both sides */
@media (min-width: 861px) {
  .halves { grid-template-rows: repeat(6, auto); }
  .half { display: grid; grid-row: 1 / span 6; grid-template-rows: subgrid; }
  .half-title { margin-bottom: 24px; }
  .feature-list { display: contents; }
}
.ic { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-ctl); background: var(--paper-2); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background-color .25s, color .25s; }

/* Offline */
.offline-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 112px; }
@media (max-width: 900px) { .offline-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 88px; } }
.offline-inner > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.offline .lede { color: var(--band-muted); }
.sync-wrap { border: 1px solid var(--band-line); border-radius: var(--r-frame); background: color-mix(in srgb, var(--band-2) 70%, transparent); overflow: hidden; }
.signal { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--band-line); font-family: var(--mono); font-size: 14px; font-weight: 600; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 5px; border-radius: 1px; background: var(--band-line); transition: background-color .3s; }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 50%; } .bars i:nth-child(3) { height: 75%; } .bars i:nth-child(4) { height: 100%; }
.signal[data-state="on"] .bars i { background: var(--ok); }
.signal[data-state="on"] .bars i:nth-child(n) { animation: bar-up .4s var(--ease) both; }
.signal[data-state="on"] .bars i:nth-child(2) { animation-delay: .08s; } .signal[data-state="on"] .bars i:nth-child(3) { animation-delay: .16s; } .signal[data-state="on"] .bars i:nth-child(4) { animation-delay: .24s; }
@keyframes bar-up { from { transform: scaleY(0); transform-origin: bottom; } to { transform: none; } }
.signal[data-state="off"] .signal-text { color: var(--band-muted); }
.sync { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 14px; }
.sync-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--band-line); align-items: center; transition: opacity .4s, transform .4s var(--ease); }
.sync-row:last-child { border-bottom: 0; }
.sync-row.pending { opacity: 0; transform: translateX(-12px); }
.sync-time { color: var(--band-muted); font-variant-numeric: tabular-nums; }
.sync-state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--band-ink); transition: background-color .3s; }
.sync-state.saved { background: var(--band-line); }
.sync-state.sent { background: var(--flag); color: var(--flag-ink); animation: flash .5s var(--ease); }
@keyframes flash { from { transform: scale(.85); } to { transform: none; } }
@media (max-width: 420px) { .sync-row { grid-template-columns: 48px minmax(0, 1fr); } .sync-state { grid-column: 2; justify-self: start; } }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; margin-top: 56px; }
@media (max-width: 960px) { .builder { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.builder-controls { display: flex; flex-direction: column; gap: 32px; }
.control-label { font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.control-help { font-size: 15px; margin: -6px 0 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { min-height: 56px; padding: 10px 18px; border-radius: 12px; text-align: left; background: var(--card); color: var(--ink); border: 2px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.3; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.choice:hover { transform: translateY(-2px); border-color: var(--muted); }
.choice small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch { width: 50px; height: 50px; border-radius: 999px; border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.module { text-align: left; padding: 14px 16px; border-radius: 12px; background: var(--card); color: var(--ink); border: 2px solid var(--line); min-height: 86px; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.module:hover { transform: translateY(-2px); }
.module[aria-pressed="true"] { border-color: var(--ink); }
.module[aria-pressed="false"] { background: transparent; color: var(--muted); }
.module[data-base="true"] { cursor: default; }
.module[data-base="true"]:hover { transform: none; }
.module-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 15px; }
.module-name { display: flex; align-items: center; gap: 8px; }
.module-ic { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-desc { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.module .chip { background: var(--line); color: var(--muted); }
.module[aria-pressed="true"] .chip { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }

.phone-col { position: sticky; top: 100px; }
@media (max-width: 960px) { .phone-col { position: static; } }
.phone { position: relative; width: 360px; max-width: 100%; margin: 0 auto; background: #0E1411; border-radius: 46px; padding: 12px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .55), inset 0 0 0 2px #2A332F; }
.notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); background: #0E1411; border-radius: 999px; z-index: 2; }
.screen { background: var(--screen); color: var(--ink); border-radius: 34px; overflow: hidden; min-height: 620px; }
.screen-head { background-color: var(--brand); color: #FFFFFF; padding: 54px 22px 20px; transition: background-color .5s var(--ease); }
.screen-hi { font-size: 12px; opacity: .85; }
.screen-co { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 23px; line-height: 1.15; margin-top: 2px; }
.screen-co.swap { animation: rise .45s var(--ease); }
.screen-by { font-size: 11px; opacity: .75; margin-top: 4px; font-family: var(--mono); }
.screen-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.start { display: flex; align-items: center; justify-content: center; gap: 10px; background-color: var(--brand); color: #FFFFFF; text-align: center; font-weight: 700; font-size: 17px; padding: 18px; border-radius: 14px; transition: background-color .5s var(--ease); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--screen-line); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600; min-height: 58px; animation: pop .35s var(--ease) both; }
.tile-ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--brand); color: #FFFFFF; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background-color .5s var(--ease); }
.start-ic { width: 18px; height: 18px; fill: currentColor; }
.screen-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.units { display: flex; flex-direction: column; gap: 8px; }
.unit { display: flex; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--screen-line); border-radius: 10px; padding: 10px 12px; font-size: 14px; animation: pop .35s var(--ease) both; }
.unit .meter { color: var(--muted); }
.screen-foot { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }

/* Trades */
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trade { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background-color .3s; }
.trade::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--flag); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.trade:hover { background: var(--card); }
.trade:hover::before { transform: scaleX(1); }
.trade p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* Steps */
.handoff { margin-top: 48px; border-top: 1px solid var(--line); }
.handoff-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.handoff-when { font-size: 19px; }
.handoff-body { max-width: 68ch; }
.handoff-body p { color: var(--muted); font-size: 16px; }
.handoff-body p + p { margin-top: 10px; }
.handoff-get { color: var(--ink) !important; }
.handoff-get span { font-weight: 600; color: var(--flag-text); margin-right: 4px; }
@media (max-width: 720px) { .handoff-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; } }

/* Pricing: head to head */
.wrap-wide { max-width: 1320px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2h { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-frame); background: var(--card); overflow: hidden; }
.h2h-ctl { background: var(--band); color: var(--band-ink); padding: clamp(20px, 2.4vw, 26px) clamp(20px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 56px; align-items: start; }
.h2h-fleet { min-width: 0; max-width: 620px; }
.h2h-years { display: flex; flex-direction: column; gap: 18px; }
.years { display: grid; grid-template-columns: repeat(5, 48px); gap: 8px; }
.year-btn { font: inherit; font-weight: 600; font-size: 17px; height: 48px; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.year-btn:hover { border-color: var(--flag); background: rgba(255,255,255,.12); }
.year-btn:active { transform: scale(.94); }
.year-btn[aria-pressed="true"] { background: var(--flag); border-color: var(--flag); color: var(--flag-ink); }
.year-btn:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }
.h2h-body { padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.h2h-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.h2h-col { border-radius: var(--r-ctl); padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; min-width: 0; }
.h2h-col.us { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.h2h-col h3 { font-size: 20px; font-weight: 600; }
.h2h-col.them h3 { color: var(--muted); }
.h2h-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.h2h-col.us .h2h-sub { color: var(--band-muted); }
.h2h-rows { margin-top: 12px; display: flex; flex-direction: column; font-size: 15px; font-variant-numeric: tabular-nums; }
.h2h-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.h2h-col.us .h2h-row { border-color: var(--band-line); }
.h2h-row .mono { font-family: var(--mono); }
.h2h-col.them .h2h-row .roll { color: var(--muted); }
.h2h-inc { color: var(--ok-text); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.h2h-col.us .h2h-inc { color: var(--flag-band); }
.h2h-inc::before { content: ""; width: 8px; height: 14px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-2px); }
.h2h-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.h2h-rows + .h2h-total { margin-top: 0; }
.h2h-total b { font-family: var(--display); font-stretch: 115%; font-weight: 850; font-size: clamp(34px, 3.8vw, 50px); line-height: 1; }
.h2h-col.them .h2h-total b { color: var(--muted); }
.h2h-years-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); }
.h2h-col.us .h2h-years-total { color: var(--band-muted); }
.h2h-years-total .roll { font-family: var(--mono); font-weight: 600; font-size: 17px; }
.h2h-col.us .h2h-years-total .roll { color: var(--band-ink); }
.h2h-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.h2h-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.h2h-strip b { color: var(--ink); }
.h2h-save { display: flex; align-items: center; gap: 22px; padding: 16px 24px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); transition: background .3s, color .3s; }
.h2h-save span { font-weight: 600; }
.h2h-save b { font-family: var(--display); font-stretch: 115%; font-weight: 850; font-size: clamp(32px, 3.6vw, 46px); line-height: 1; }
.h2h-save.is-more { background: color-mix(in srgb, var(--flag) 14%, transparent); color: var(--flag-text); }
.h2h .price-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .h2h-ctl, .h2h-vs, .h2h-foot { grid-template-columns: 1fr; }
  .h2h-save { justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 380px) { .years { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Slot-machine digits */
.roll { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; position: relative; }
.roll-ch, .roll-d { display: inline-block; height: 1.15em; line-height: 1.15em; }
.roll-d { overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.roll-d > span { display: block; transition-property: transform; transition-timing-function: var(--ease); }
.roll-d > span > i { font-style: normal; display: block; height: 1.15em; text-align: center; }
.roll-d.snap > span { transition: none; }
@media (prefers-reduced-motion: reduce) { .roll-d > span { transition: none; } }
.calc-q { font-weight: 600; font-size: 17px; display: block; }
.slider-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.slider-wrap { flex: 1; min-width: 0; }
.slider-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; margin: 0; --fill: 17.24%; }
.slider-row input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--flag) 0 var(--fill), rgba(255,255,255,.16) var(--fill) 100%); }
.slider-row input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.slider-row input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--flag); }
.slider-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--flag); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform .15s; }
.slider-row input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--flag); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.slider-row input[type="range"]:hover::-webkit-slider-thumb, .slider-row input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider-row input[type="range"]:focus-visible { outline: 2px solid var(--flag); outline-offset: 4px; border-radius: 8px; }
.slider-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--band-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.step-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; margin-bottom: 18px; transition: background .15s, border-color .15s; }
.step-btn:hover { background: rgba(255,255,255,.14); border-color: var(--flag); }
.slider-val { font-family: var(--mono); font-weight: 600; font-size: 26px; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.slider-hint { font-size: 14px; color: var(--band-muted); margin-top: 6px; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; font-weight: 600; font-size: 19px; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--flag-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--flag), var(--flag)) center / 100% 2px no-repeat, linear-gradient(var(--flag), var(--flag)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 0 24px; }
.faq details[open] .faq-a { animation: rise .4s var(--ease); }
.faq-a p { color: var(--muted); max-width: 65ch; }

/* Contact */
.contact { overflow: hidden; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; padding-block: 112px; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 88px; } }
.contact-inner > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.contact .lede { color: var(--band-muted); }
.form { display: flex; flex-direction: column; gap: 16px; background: var(--band-2); border: 1px solid var(--band-line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--band-ink); }
.form .opt { font-weight: 400; color: var(--band-muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--band-line); background: var(--band); color: var(--band-ink); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--flag); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag) 30%, transparent); }
.form input[aria-invalid="true"] { border-color: var(--flag); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; font-size: 15px; color: var(--band-muted); }
.form-msg.ok { color: var(--band-ink); }
.form.sent .btn { background: var(--ok); color: #fff; box-shadow: none; }

/* Footer: spruce band with survey contour lines behind it (drawn in main.js) */
.foot { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); border-top: 1px solid var(--band-line); font-size: 15px; }
.foot-topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.foot > .wrap { position: relative; }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-block: 64px 56px; border-bottom: 1px solid var(--band-line); }
.foot-cta h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; max-width: 18ch; text-wrap: balance; }
.foot-cta p { margin: 8px 0 0; color: var(--band-muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .mark { color: var(--band-ink); }
.foot-brand .mark-name { font-size: 19px; }
.foot-brand p { margin: 14px 0 0; color: var(--band-muted); font-size: 14px; max-width: 32ch; }
.foot h3 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a, .foot-legal a { color: var(--band-ink); text-decoration: none; text-underline-offset: 4px; }
.foot ul a:hover, .foot-legal a:hover { text-decoration: underline; text-decoration-color: var(--flag-band); }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--band-line); font-size: 13px; color: var(--band-muted); }

.notfound { min-height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .contours path, .river, .road, .hero-topo path { stroke-dashoffset: 0; }
  .showcase .browser { transform: none; }
  .zone, .pin { opacity: 1; }
}

/* Field-level form errors */
.field-err { font-size: 13px; font-weight: 500; color: var(--flag-band); min-height: 0; }
.field-err:empty { display: none; }
.req { color: var(--flag-band); font-weight: 600; }

/* Mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--band-line); background: transparent; color: var(--band-ink); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .bars3 { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .top-actions { display: flex; align-items: center; gap: 10px; }
  .mobile-nav { border-top: 1px solid var(--band-line); }
  .mobile-nav.open { display: block; animation: rise .22s var(--ease); }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); text-decoration: none; color: var(--band-ink); font-weight: 500; border-bottom: 1px solid var(--band-line); }
  .mobile-nav a:last-child { border-bottom: 0; }
}
@media (min-width: 1081px) { .top-actions { display: contents; } }

.form .lbl { display: block; }
.btn-sm { white-space: nowrap; }
.hero-facts li { flex: 0 1 auto; }
.mark-logo { flex: none; }

@media (max-width: 960px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trades { grid-template-columns: minmax(0, 1fr); } }

/* Mobile header: logo + menu only; "Book a demo" moves into the menu */
.mobile-cta { display: none; }
@media (max-width: 520px) {
  .nav .btn-sm { display: none; }
  .mobile-nav .mobile-cta { display: flex; color: var(--flag-band); font-weight: 600; }
}
@media (max-width: 380px) { .mark-name { font-size: 18px; } }
