/* SaralTrack website
   Layout: one 1200px column on a light ground; full-bleed bands (soft, white, ink, teal) carry their own inner .wrap */
:root {
  --ink: #0B2530;
  --ink-2: #12323E;
  --ink-line: #20434F;
  --on-ink: #B9CCC8;
  --on-ink-2: #8FA8A4;
  --ground: #F3F7F5;
  --ground-2: #E6F0EC;
  --surface: #FFFFFF;
  --line: #DCE4E1;
  --line-2: #C9D5D1;
  --line-3: #EEF2F0;
  --text: #0B2530;
  --muted: #3E5551;
  --muted-2: #5A6C69;
  --teal: #08805F;
  --teal-dark: #065E46;
  --teal-soft: #DDF4EA;
  --teal-mid: #8ED7BC;
  --gold: #FFB224;
  --gold-text: #9A6400;
  --gold-dark: #7A4F00;
  --gold-soft: #FFF1D6;
  --blue: #3366D6;
  --blue-dark: #234A9E;
  --blue-soft: #E4ECFC;
  --red: #C93A2B;
  --red-soft: #FDE7E3;
  --red-on-ink: #FFB4AA;
  --grey: #7D8B88;
  --grey-dark: #4A5856;
  --grey-soft: #EEF0EF;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
  --shadow-lg: 0 40px 80px -40px rgba(11, 37, 48, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; }
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.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: 88px; }
.section-sm { padding-block: 24px 72px; }
.band-soft { background: var(--ground-2); border-top: 1px solid var(--line); }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #fff; }
.band-teal { background: var(--teal); color: #fff; }

/* type */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.eyebrow.muted { color: var(--muted-2); }
.eyebrow.gold { color: var(--gold-text); }
.eyebrow.blue { color: var(--blue); }
.eyebrow.gold-on-ink { color: var(--gold); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(26px, 3vw, 36px); }
.h2-xl { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; }
h3 { font-size: 19px; font-weight: 700; }
.accent { color: var(--teal); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.lead-sm { font-size: 17px; line-height: 1.6; color: var(--muted); }
.lead-sm.on-ink { color: var(--on-ink); }
.lead-sm.on-teal { color: #D3EEE6; font-size: 18px; }
.small { font-size: 13px; }
.muted { color: var(--muted-2); }
.teal-text { color: var(--teal-dark); }
.gold-text { color: var(--gold-dark); }
.blue-text { color: var(--blue); }
.red-text { color: var(--red); }
.plate { font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .01em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F5A000; color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }
.btn-link { background: none; color: var(--muted-2); padding-inline: 10px; }
.btn-link:hover { color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* chips, badges, segmented */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; min-height: 32px; }
.chip .n { font-variant-numeric: tabular-nums; opacity: .8; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.s-moving { --c: var(--teal-dark); --bg: var(--teal-soft); }
.s-idle { --c: var(--gold-dark); --bg: var(--gold-soft); }
.s-parked { --c: var(--blue-dark); --bg: var(--blue-soft); }
.s-offline { --c: var(--grey-dark); --bg: var(--grey-soft); }
.s-red { --c: var(--red); --bg: var(--red-soft); }
.chip.s-moving, .chip.s-idle, .chip.s-parked, .chip.s-offline { background: var(--bg); color: var(--c); border-color: transparent; }
.chip.s-moving[aria-pressed="true"], .chip.s-idle[aria-pressed="true"], .chip.s-parked[aria-pressed="true"], .chip.s-offline[aria-pressed="true"] { background: var(--c); color: #fff; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: var(--bg, var(--grey-soft)); color: var(--c, var(--grey-dark)); white-space: nowrap; }
.seg { display: inline-flex; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-lg button { padding: 8px 20px; font-size: 15px; min-height: 40px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.dot.red { background: #FF6B5B; }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(8, 128, 95, .55); } 100% { box-shadow: 0 0 0 12px rgba(8, 128, 95, 0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(243, 247, 245, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ground); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); display: grid; place-items: center; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo-text span { color: var(--teal); }
.logo-text.on-ink { color: #fff; }
.logo-text.on-ink span { color: var(--gold); }
.main-nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.main-nav a { color: var(--text); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--teal); }
.main-nav a.active { border-bottom-color: var(--teal); color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.link-login { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 6px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.drawer { border-top: 1px solid var(--line); background: var(--surface); }
.drawer-nav { display: flex; flex-direction: column; padding-block: 8px 16px; }
.drawer-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
@media (max-width: 960px) {
  .main-nav, .link-login { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) { .header-actions .btn-ink { padding-inline: 14px; font-size: 14px; } }

/* hero */
.hero-bg { background-image: radial-gradient(#D3DDD9 1px, transparent 1px); background-size: 22px 22px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 64px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ticks li, .check-grid li, .check-list li { display: flex; align-items: center; gap: 8px; }
.ticks li::before, .check-grid li::before, .check-list li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308805F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

.mock { flex: 1 1 580px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-3); }
.mock-title { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); padding: 3px 8px 3px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.live-tag .dot { width: 7px; height: 7px; }
.mock-body { display: flex; height: 420px; }
.vlist { width: 214px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-3); overflow-y: auto; }
.veh-row { text-align: left; border: 0; border-bottom: 1px solid var(--line-3); border-left: 3px solid transparent; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-size: 13px; }
.veh-row:hover { background: #F7FAF9; }
.veh-row.is-selected { background: #F2FAF7; border-left-color: var(--teal); }
.veh-state { font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.veh-place { color: var(--muted-2); }
.veh-empty { padding: 16px; color: var(--muted-2); font-size: 13px; }
.map { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #EAF2EE; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veh { cursor: pointer; transition: opacity .2s; }
.veh-halo { transition: opacity .2s; }
.popup { position: absolute; right: 14px; top: 14px; width: 224px; background: var(--surface); border-radius: 14px; box-shadow: 0 12px 30px -8px rgba(11, 37, 48, .35); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.popup-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.popup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.popup-grid div { background: var(--ground); border-radius: 8px; padding: 7px 8px; display: flex; flex-direction: column; }
.popup-grid span { color: var(--muted-2); font-size: 11px; }
.popup-grid b { font-variant-numeric: tabular-nums; }
.popup-coord { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.map-toast { position: absolute; left: 14px; bottom: 14px; max-width: 300px; margin-right: 14px; background: var(--surface); border-radius: 14px; box-shadow: 0 12px 30px -8px rgba(11, 37, 48, .35); padding: 11px 14px; display: flex; gap: 12px; align-items: center; font-size: 13px; line-height: 1.35; transition: opacity .3s, transform .3s; }
.map-toast.out { opacity: 0; transform: translateY(8px); }
.map-toast div { display: flex; flex-direction: column; min-width: 0; }
.map-toast span:not(.map-toast-icon) { color: var(--muted-2); }
.map-toast-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg); color: var(--c); }
@media (max-width: 760px) {
  .mock-body { flex-direction: column-reverse; height: auto; }
  .map { height: 340px; flex: none; }
  .vlist { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line-3); }
  .veh-row { min-width: 170px; border-bottom: 0; border-left: 0; border-top: 3px solid transparent; border-right: 1px solid var(--line-3); }
  .veh-row.is-selected { border-top-color: var(--teal); }
  .popup { width: 190px; padding: 10px; gap: 8px; right: 10px; top: 10px; }
  .map-toast { left: 10px; bottom: 10px; max-width: 250px; }
}
@media (max-width: 420px) { .map-toast { display: none; } }

/* devices strip */
.devices { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 22px; margin-block: 8px 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.device-names { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--display); font-weight: 600; font-size: 19px; color: #6A7C79; }

/* section heads */
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 680px; }
.sec-head.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.sec-head.split > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.sec-head.split > .tabs { flex-direction: row; max-width: none; }
.sec-head.split > p { max-width: 380px; color: var(--muted); line-height: 1.6; }
.sec-head.center { align-items: center; text-align: center; margin-inline: auto; }
.sec-head.center p { color: var(--muted); font-size: 17px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--teal); }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); line-height: 1.55; }
.imei { align-self: flex-start; font-family: var(--mono); font-size: 13px; background: var(--ground); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fcard { padding: 26px; display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fcard:hover { color: var(--text); transform: translateY(-4px); border-color: var(--teal-mid); box-shadow: 0 22px 40px -28px rgba(11, 37, 48, .45); }
.fcard p { color: var(--muted); line-height: 1.55; flex: 1; }
.fcard .more { font-size: 14px; font-weight: 700; color: var(--teal); }
.ficon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ficon.gold { background: var(--gold-soft); } .ficon.gold svg { stroke: var(--gold-text); }
.ficon.red { background: var(--red-soft); } .ficon.red svg { stroke: var(--red); }
.ficon.blue { background: var(--blue-soft); color: var(--blue); }
.ftext { font-weight: 800; font-size: 18px; }

/* tour */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.tab:hover { border-color: var(--teal); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 80px -50px rgba(11, 37, 48, .5); overflow: hidden; }
.panel { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head > div:first-child { display: flex; flex-direction: column; }
.panel-title { font-size: 17px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel-tools select { font: inherit; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.player { display: flex; gap: 10px; align-items: center; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); border: 0; display: grid; place-items: center; cursor: pointer; }
.play-btn:hover { background: var(--teal-dark); }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--ground); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.stat span { font-size: 12px; color: var(--muted-2); }
.stat b { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .history-grid { grid-template-columns: minmax(0, 1fr); } }
.hist-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-3); aspect-ratio: 300 / 220; max-width: 100%; }
.hist-map svg { width: 100%; height: 100%; display: block; }
.hist-chart { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chart-legend { display: flex; justify-content: space-between; }
.limit-key { color: var(--red); }
#speedChart { width: 100%; height: 140px; display: block; background: #FBFCFC; border: 1px solid var(--line-3); border-radius: 12px; }
.timeline { position: relative; display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #D5DDDA; }
.timeline .seg-drive { background: var(--teal); }
.timeline .seg-idle { background: var(--gold); }
.timeline .seg-stop { background: #D5DDDA; }
.tl-cursor { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--ink); z-index: 1; }
#scrub { width: 100%; accent-color: var(--teal); margin: 2px 0; }
.tl-hours { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k-drive { background: var(--teal); } .k-idle { background: var(--gold); } .k-stop { background: #D5DDDA; }

.table-box { overflow-x: auto; border: 1px solid var(--line-3); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 760px; }
.data-table th { text-align: left; background: #F8FAF9; padding: 0; }
.data-table th button { width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); cursor: pointer; }
.data-table th button:hover { color: var(--text); }
.data-table th[aria-sort="ascending"] button::after { content: " ↑"; color: var(--teal); }
.data-table th[aria-sort="descending"] button::after { content: " ↓"; color: var(--teal); }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--line-3); }
.data-table tfoot td { font-weight: 700; background: #F8FAF9; }

.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.alert-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-3); }
.alert-list li.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: var(--gold-soft); } to { background: transparent; } }
.a-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 13px; background: var(--bg); color: var(--c); }
.a-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-body span { font-size: 13px; color: var(--muted-2); }
.a-time { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.a-empty { color: var(--muted-2); padding: 16px 0; }

/* two-column feature sections */
.two-col { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.two-col.reverse { flex-direction: row-reverse; }
.col-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-demo { flex: 1 1 460px; min-width: 0; }
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.flags li { display: flex; gap: 12px; align-items: flex-start; }
.flag-dot { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); font-weight: 800; font-size: 12px; display: grid; place-items: center; }

.calc { background: var(--ground); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 17px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide, .wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { font: inherit; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--teal); outline: 2px solid var(--teal-soft); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.err { font-size: 13px; color: var(--red); min-height: 0; }
.calc .stat { background: var(--surface); }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .calc-out { grid-template-columns: minmax(0, 1fr); } }
#oStatus.ok { color: var(--teal-dark); } #oStatus.warn { color: var(--gold-text); } #oStatus.bad { color: var(--red); }
.calc-note { font-size: 14px; color: var(--muted); line-height: 1.5; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }

.park-demo { max-width: 460px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.park-status { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.park-status .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.park-p { width: 44px; height: 44px; border-radius: 12px; background: var(--grey-soft); color: var(--grey-dark); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0; transition: background .2s, color .2s; }
.park-p.armed { background: var(--blue-soft); color: var(--blue); }
.park-p.alarm { background: var(--red-soft); color: var(--red); }
.park-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 320 / 190; max-width: 100%; }
.park-map svg { width: 100%; height: 100%; display: block; }
.tow-alert { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 24px 50px -24px rgba(11, 37, 48, .6); }
.tow-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-on-ink); }
.tow-title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; }
.tow-text { font-size: 14px; color: var(--on-ink); }
.park-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.park-log li { display: flex; gap: 10px; }
.park-log time { font-family: var(--mono); font-size: 12px; color: var(--muted-2); padding-top: 2px; flex-shrink: 0; }

.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 28px; }
.industries div { border-top: 3px solid var(--teal); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.industries b { font-size: 17px; }
.industries span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* app */
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; font-size: 15px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 14px; font-weight: 600; font-size: 16px; min-height: 52px; }
.store:hover { background: var(--ink-2); color: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .75; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 270px; max-width: 100%; height: 552px; border-radius: 42px; background: var(--ink); padding: 10px; box-shadow: 0 50px 80px -40px rgba(11, 37, 48, .6); }
.phone-screen { height: 100%; border-radius: 33px; background: var(--ground); overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.ph-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 16px 10px; }
.ph-head b { font-family: var(--display); font-size: 17px; }
.ph-search { margin: 0 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--muted-2); }
.ph-list { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ph-row { display: flex; justify-content: space-between; }
.ph-bar { height: 4px; border-radius: 4px; background: var(--teal-soft); }
.ph-bar i { display: block; width: 62%; height: 100%; border-radius: 4px; background: var(--teal); }
.ph-dark { background: var(--ink); border-color: var(--ink); color: #fff; gap: 4px; }
.ph-kicker { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--red-on-ink); }
.ph-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 6px 14px; background: var(--surface); border-top: 1px solid var(--line); font-size: 10px; font-weight: 600; text-align: center; color: var(--muted-2); }

/* resellers */
.band-ink h2 { color: #fff; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; padding-top: 6px; }
.res-grid div { display: flex; flex-direction: column; gap: 6px; }
.res-grid b { font-size: 17px; }
.res-grid span { color: var(--on-ink); font-size: 15px; line-height: 1.5; }
.billing { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.billing-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.billing-head .small { color: var(--on-ink-2); }
.billing-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.billing-stats div { background: var(--ink); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.billing-stats span { font-size: 12px; color: var(--on-ink-2); }
.billing-stats b { font-family: var(--display); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; }
.billing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.billing-actions input { flex: 1 1 160px; min-width: 0; font: inherit; font-family: var(--mono); font-size: 14px; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ink-line); background: var(--ink); color: #fff; }
.ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.ledger li:last-child { border-bottom: 0; }
.ledger .minus { color: var(--red-on-ink); }
.ledger .plus { color: #8FE3C9; }
.ledger .plate { font-size: 13px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.price { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.price > div:first-child { display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--teal); box-shadow: 0 30px 60px -36px rgba(8, 128, 95, .55); }
.plan-row { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plan-row > div { display: flex; flex-direction: column; }
.badge:empty { display: none; }
.plan { font-size: 18px; }
.amount { font-family: var(--display); font-weight: 800; font-size: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.amount small { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted-2); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
#billingToggle { margin-top: 8px; }

/* faq */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list { flex: 2 1 520px; min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { color: var(--teal); font-size: 24px; line-height: 1; transition: transform .2s; flex-shrink: 0; }
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list p { margin-top: 12px; color: var(--muted); line-height: 1.6; max-width: 60ch; }

/* demo form */
.band-teal h2 { color: #fff; }
.demo-form, .demo-done { background: var(--surface); color: var(--text); border-radius: 22px; padding: 28px; }
.demo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.demo-form .field input, .demo-form .field select { background: #F8FAF9; }
.form-error { color: var(--red); font-size: 14px; }
.demo-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; }
.done-title { font-family: var(--display); font-weight: 800; font-size: 26px; }
.demo-done p { color: var(--muted); line-height: 1.6; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 32px; }
.footer-brand { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols b { color: #fff; }
.footer-cols a { color: var(--on-ink); text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--ink-line); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--on-ink); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(11, 37, 48, .6); max-width: calc(100% - 32px); }

@media (max-width: 600px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 40px 48px; gap: 36px; }
  .two-col { gap: 36px; }
  .panel { padding: 16px; }
  .price, .step, .fcard { padding: 22px; }
  .demo-form, .demo-done { padding: 20px; }
}

/* ===== Multi-page additions ===== */
.btn-on-ink { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-ink:hover { border-color: #fff; color: #fff; }
.btn-on-teal { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-on-teal:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.more-link, .fcard .more { font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: none; }
a.tag { color: var(--text); text-decoration: none; }
a.tag:hover { border-color: var(--teal); color: var(--teal-dark); }
.footer-brand .logo { color: #fff; }
.footer-cta { align-self: flex-start; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-row > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }

/* home hero visual */
.hero-bg { overflow: hidden; }
.hero-visual { position: relative; flex: 1 1 580px; min-width: 0; }
.hero-visual .mock { width: 100%; }
.float-phone { position: absolute; right: -8px; bottom: -84px; width: 166px; height: 284px; border-radius: 30px; background: var(--ink); padding: 7px; box-shadow: 0 30px 60px -20px rgba(11, 37, 48, .55); transform: rotate(4deg); }
.fp-screen { height: 100%; border-radius: 24px; background: var(--ground); overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; font-size: 11px; }
.fp-top { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 13px; }
.fp-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--teal); }
.fp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.fp-speed { font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.fp-sub { color: var(--muted-2); }
.fp-spark { width: 100%; height: 30px; margin-top: 4px; }
.fp-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; text-align: center; font-weight: 700; font-size: 10px; }
.fp-actions span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; }
.fp-actions .fp-park { background: var(--blue); color: #fff; border-color: var(--blue); }
.fp-alert { margin-top: auto; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.fp-kicker { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--red-on-ink); }
@media (max-width: 1180px) { .float-phone { display: none; } }

/* step illustrations */
.step-art { background: var(--ground); border-radius: 14px; padding: 10px; margin-bottom: 4px; }
.step-art svg { display: block; width: 100%; height: auto; max-height: 130px; }
.steps.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* industries */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ind-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ind-card:hover { color: var(--text); transform: translateY(-4px); border-color: var(--teal-mid); box-shadow: 0 22px 40px -28px rgba(11, 37, 48, .45); }
.ind-card b { font-size: 17px; margin-top: 8px; }
.ind-card > span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.ind-art { background: linear-gradient(180deg, #EAF3EF 0%, #F6F9F7 100%); border-radius: 12px; padding: 12px 10px 4px; }
.ind-art svg { display: block; width: 100%; height: auto; }
.ind-art.lg { position: relative; padding: 64px 40px 28px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 80% 10%, #D7EDE5 0, transparent 50%), linear-gradient(180deg, #EAF3EF 0%, #F6F9F7 100%); }
.ind-art.lg.gold-bg { background: radial-gradient(circle at 80% 10%, #FBE6BC 0, transparent 50%), linear-gradient(180deg, #FDF6E6 0%, #FFFBF3 100%); }
.ind-art.lg.blue-bg { background: radial-gradient(circle at 80% 10%, #D6E1F5 0, transparent 50%), linear-gradient(180deg, #EEF2FA 0%, #F7F9FD 100%); }
.art-chip { position: absolute; left: 20px; top: 16px; background: var(--surface); border-radius: 12px; padding: 9px 13px; box-shadow: 0 10px 24px -10px rgba(11, 37, 48, .35); display: flex; flex-direction: column; font-size: 13px; }
.art-chip b { color: var(--teal-dark); }
.art-chip.warn b { color: var(--red); }
.art-chip.blue b { color: var(--blue); }
.art-chip span { color: var(--muted-2); font-size: 12px; }

/* try it */
.try-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.try-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.try-card:hover { color: var(--text); transform: translateY(-4px); border-color: var(--teal-mid); box-shadow: 0 22px 40px -28px rgba(11, 37, 48, .45); }
.try-card p { color: var(--muted); line-height: 1.55; flex: 1; }
.try-card .more { font-size: 14px; font-weight: 700; color: var(--teal); }
.try-art { width: 100%; height: auto; display: block; margin-bottom: 6px; }

/* white-label stack (home) */
.wl-stack { position: relative; height: 300px; max-width: 440px; margin-inline: auto; }
.wl-card { position: absolute; width: 78%; background: var(--surface); color: var(--text); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border-top: 6px solid var(--brand); }
.wl-card:nth-child(1) { left: 0; top: 0; transform: rotate(-4deg); }
.wl-card:nth-child(2) { right: 0; top: 60px; transform: rotate(3deg); }
.wl-card:nth-child(3) { left: 8%; top: 140px; }
.wl-card b { font-size: 18px; }
.wl-card span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.wl-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.wl-caption { color: var(--on-ink-2); text-align: center; margin-top: 12px; }

/* sub-page hero */
.page-hero { background-color: var(--ink); color: #fff; background-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 38%, rgba(11, 37, 48, .55) 62%, rgba(11, 37, 48, 0) 85%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='320' viewBox='0 0 640 320'%3E%3Cg fill='none' stroke='%2320434F' stroke-width='2'%3E%3Cpath d='M0 220 L640 180'/%3E%3Cpath d='M180 0 L230 320'/%3E%3Cpath d='M420 0 L400 320'/%3E%3Cpath d='M0 80 L640 50'/%3E%3Cpath d='M300 320 L640 260'/%3E%3C/g%3E%3Cpath d='M60 260 L90 190 L230 176 L240 110 L410 96 L414 150 L560 140' fill='none' stroke='%2308805F' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='60' cy='260' r='7' fill='%230B2530' stroke='%2308805F' stroke-width='3'/%3E%3Ccircle cx='560' cy='140' r='10' fill='%23FFB224'/%3E%3Ccircle cx='560' cy='140' r='22' fill='none' stroke='%23FFB224' stroke-opacity='.35' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0 0, right -40px center; background-size: 100% 100%, auto 120%; }
.page-hero-inner { padding-block: 56px 64px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 15em; }
.page-hero p { color: var(--on-ink); font-size: 18px; line-height: 1.6; max-width: 36em; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--on-ink-2); }
.crumbs a { color: var(--on-ink); text-decoration: none; }
.crumbs a:hover { color: #fff; }
@media (max-width: 760px) { .page-hero { background-image: none; } }

.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-row { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav-row a { flex-shrink: 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.subnav-row a:hover { background: var(--ground); color: var(--text); }
.subnav-row a.active { background: var(--teal-soft); color: var(--teal-dark); }

/* features page */
.illus-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.illus-card svg { display: block; width: 100%; height: auto; }
.illus-legend { padding: 14px 18px; border-top: 1px solid var(--line-3); }
.k-park { background: var(--blue); } .k-off { background: var(--grey); }
.gauge { position: relative; height: 12px; border-radius: 999px; background: var(--line); }
.gauge-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red) 0%, var(--gold) 45%, var(--teal) 75%); width: 50%; transition: width .3s ease; }
.gauge-mark { position: absolute; left: 76.9%; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--ink); }
.gauge-labels { display: flex; justify-content: space-between; margin-top: -8px; }

/* resellers page */
.brand-tool { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.brand-controls { flex: 1 1 300px; max-width: 380px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.field-label { font-size: 14px; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.brand-preview { --brand: #3366D6; flex: 2 1 520px; min-width: 0; background: var(--ground-2); border-radius: 22px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.bp-login { flex: 0 1 260px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(11, 37, 48, .5); }
.bp-band { height: 64px; background: var(--brand); transition: background .2s; }
.bp-login-body { padding: 0 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bp-logo { width: 56px; height: 56px; margin-top: -28px; border-radius: 16px; background: var(--brand); border: 4px solid var(--surface); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; transition: background .2s; }
.bp-logo.sm { width: 30px; height: 30px; margin: 0; border-width: 0; border-radius: 9px; font-size: 11px; background: rgba(255, 255, 255, .2); }
.bp-name { font-family: var(--display); font-size: 18px; text-align: center; }
.bp-field { align-self: stretch; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--muted-2); }
.bp-btn { align-self: stretch; text-align: center; background: var(--brand); color: #fff; font-weight: 700; border-radius: 10px; padding: 10px; font-size: 14px; transition: background .2s; }
.bp-btn.sm { align-self: flex-start; padding: 7px 14px; font-size: 12px; }
.bp-powered { font-size: 11px; color: var(--muted-2); }
.bp-side { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.bp-sms { background: var(--surface); border-radius: 18px 18px 18px 4px; padding: 14px 16px; box-shadow: 0 16px 30px -24px rgba(11, 37, 48, .5); display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.bp-from { font-size: 12px; color: var(--muted-2); }
.bp-from b { font-family: var(--mono); color: var(--text); }
.bp-mail { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 30px -24px rgba(11, 37, 48, .5); }
.bp-mail-head { background: var(--brand); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; transition: background .2s; }
.bp-mail-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.bill-options { display: flex; flex-direction: column; gap: 12px; }
.bill-opt { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.bill-opt span { color: var(--on-ink); font-size: 15px; line-height: 1.5; }
.tree { display: flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 18px; }
.tree-row { display: flex; justify-content: center; gap: 10px; width: 100%; }
.tree-row.three .node { flex: 1 1 0; min-width: 0; }
.tree-line { width: 2px; height: 26px; background: var(--line-2); }
.node { text-align: center; padding: 12px 14px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.node-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.node-brand { background: var(--teal); color: #fff; border-color: var(--teal); }
.node-soft { background: var(--surface); color: var(--muted-2); font-weight: 600; border-style: dashed; }
@media (max-width: 480px) { .tree-row.three { flex-direction: column; } }

/* pricing page */
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; border-top: 1px solid var(--line-3); text-align: center; }
.compare thead th { border-top: 0; font-size: 15px; background: #F8FAF9; }
.compare th[scope="row"] { text-align: left; font-weight: 500; }
.compare td { color: var(--teal); font-weight: 800; }
.compare td.no { color: var(--line-2); }
.compare .hl { background: var(--teal-soft); }
.compare thead .hl { background: var(--teal); color: #fff; }

/* contact page */
.contact-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.contact-form-col { flex: 3 1 480px; min-width: 0; }
.contact-side { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-title { display: flex; flex-direction: column; font-size: 20px; }
.field textarea { font: inherit; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #F8FAF9; color: var(--text); width: 100%; resize: vertical; }
.field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-soft); outline-offset: 0; }
.contact-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.contact-card > b { font-size: 17px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.next-steps li > span:first-child { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.contact-line { display: flex; gap: 12px; align-items: center; }
.contact-line > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.reseller-note { background: var(--ground-2); }

@media (min-width: 1181px) { .hero { padding-bottom: 110px; } }

/* ===== Visual refresh: richer palette, depth and colour per feature ===== */
:root {
  --emerald: #12B886;
  --violet: #6A45D9;
  --violet-soft: #EEE8FD;
  --coral: #D9533F;
  --coral-soft: #FDE9E4;
  --sky: #1F86C2;
  --sky-soft: #E0F1FA;
  --grad-brand: linear-gradient(135deg, #12B886 0%, #08805F 55%, #0B5E6E 100%);
}

/* header */
.site-header { background: rgba(243, 247, 245, .82); }
.logo-mark { background: var(--grad-brand); box-shadow: 0 8px 18px -8px rgba(8, 128, 95, .8); }
.main-nav a.active { color: var(--teal-dark); border-bottom-color: var(--emerald); }

/* buttons */
.btn-gold { box-shadow: 0 12px 26px -12px rgba(245, 160, 0, .9); }
.btn-gold:hover, .btn-teal:hover, .btn-ink:hover { transform: translateY(-1px); }
.btn-teal { background: var(--grad-brand); border: 0; box-shadow: 0 12px 26px -12px rgba(8, 128, 95, .8); }
.btn-ink { box-shadow: 0 10px 22px -12px rgba(11, 37, 48, .8); }

/* eyebrows get a small marker */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; opacity: .7; }

/* home hero */
.hero-bg {
  background:
    radial-gradient(620px 420px at 88% 18%, rgba(18, 184, 134, .20), transparent 70%),
    radial-gradient(520px 380px at 62% 96%, rgba(255, 178, 36, .18), transparent 70%),
    radial-gradient(420px 320px at 0% 0%, rgba(51, 102, 214, .10), transparent 70%),
    radial-gradient(#CCDAD4 1px, transparent 1px) 0 0 / 22px 22px,
    var(--ground);
}
.hero h1 .accent {
  color: var(--teal);
  background: linear-gradient(transparent 68%, rgba(255, 178, 36, .55) 68%, rgba(255, 178, 36, .55) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pill { box-shadow: 0 6px 16px -10px rgba(11, 37, 48, .4); }
.mock { box-shadow: 0 60px 110px -50px rgba(11, 37, 48, .55), 0 0 0 1px rgba(11, 37, 48, .04); border-color: #D3E0DA; }
.mock-head { background: linear-gradient(180deg, #FFFFFF, #F7FAF9); }
.float-phone { background: linear-gradient(160deg, #1D4250, #0B2530); }

/* device strip as pills */
.device-names { gap: 10px; }
.device-names span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 16px; color: #4F6460; }
.device-names span:last-child { background: var(--teal-soft); border-color: transparent; color: var(--teal-dark); }

/* step cards: numbered chips and tinted art */
.step-n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 20px -10px rgba(8, 128, 95, .8); }
.steps .step:nth-child(1) .step-art { background: linear-gradient(160deg, #DDF4EA, #F3FAF7); }
.steps .step:nth-child(2) .step-art { background: linear-gradient(160deg, #E4ECFC, #F5F8FE); }
.steps .step:nth-child(3) .step-art { background: linear-gradient(160deg, #FFF1D6, #FFFAF0); }
.steps .step:nth-child(4) .step-art { background: linear-gradient(160deg, #EEE8FD, #F8F5FF); }
.steps.four .step:nth-child(2) .step-n { background: linear-gradient(135deg, #4F7FE8, #234A9E); }
.steps.four .step:nth-child(3) .step-n { background: linear-gradient(135deg, #FFC34D, #E08A00); }
.steps.four .step:nth-child(4) .step-n { background: linear-gradient(135deg, #8B6BEA, #5532C2); }

/* feature cards: one colour per feature */
.fcard { position: relative; overflow: hidden; }
.fcard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--tint, var(--teal-soft)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.fcard:hover::after { opacity: .7; }
.fcard > * { position: relative; z-index: 1; }
.ficon { width: 48px; height: 48px; border-radius: 14px; }
.feature-grid .fcard:nth-child(6n+1) { --tint: #DDF4EA; --ic: #08805F; }
.feature-grid .fcard:nth-child(6n+2) { --tint: #EEE8FD; --ic: #6A45D9; }
.feature-grid .fcard:nth-child(6n+3) { --tint: #FFF1D6; --ic: #B86E00; }
.feature-grid .fcard:nth-child(6n+4) { --tint: #E4ECFC; --ic: #3366D6; }
.feature-grid .fcard:nth-child(6n+5) { --tint: #FDE9E4; --ic: #D9533F; }
.feature-grid .fcard:nth-child(6n+6) { --tint: #E0F1FA; --ic: #1F86C2; }
.feature-grid .fcard .ficon { background: linear-gradient(140deg, var(--tint), #FFFFFF); box-shadow: inset 0 0 0 1px rgba(11, 37, 48, .05); color: var(--ic); }
.feature-grid .fcard .ficon svg { stroke: var(--ic); }
.feature-grid .fcard .more { color: var(--ic); }
.feature-grid .fcard:hover { border-color: var(--tint); box-shadow: 0 26px 44px -30px rgba(11, 37, 48, .5); }

/* industries: each card its own sky */
.ind-card:nth-child(1) .ind-art { background: radial-gradient(circle at 86% 22%, rgba(255, 178, 36, .55) 0 14px, transparent 15px), linear-gradient(180deg, #D9F1E7, #F4FBF8); }
.ind-card:nth-child(2) .ind-art { background: radial-gradient(circle at 86% 22%, rgba(255, 255, 255, .9) 0 14px, transparent 15px), linear-gradient(180deg, #FFE7B8, #FFF8EA); }
.ind-card:nth-child(3) .ind-art { background: radial-gradient(circle at 86% 22%, rgba(255, 178, 36, .55) 0 14px, transparent 15px), linear-gradient(180deg, #F3E6D3, #FBF6EE); }
.ind-card:nth-child(4) .ind-art { background: radial-gradient(circle at 86% 22%, rgba(255, 178, 36, .55) 0 14px, transparent 15px), linear-gradient(180deg, #DCE6FB, #F4F7FE); }
.ind-card:nth-child(5) .ind-art { background: radial-gradient(circle at 86% 22%, rgba(255, 255, 255, .9) 0 14px, transparent 15px), linear-gradient(180deg, #E5E0FA, #F7F5FE); }
.ind-art.lg { box-shadow: 0 40px 80px -50px rgba(11, 37, 48, .45); }
.art-chip { box-shadow: 0 14px 30px -12px rgba(11, 37, 48, .4); }

/* bands */
.band-soft { background: linear-gradient(180deg, #E6F0EC 0%, #F3F7F5 100%); }
.band-ink {
  background:
    radial-gradient(700px 420px at 92% 0%, rgba(18, 184, 134, .24), transparent 70%),
    radial-gradient(560px 360px at 0% 100%, rgba(51, 102, 214, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 40px,
    var(--ink);
}
.band-teal {
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(255, 178, 36, .28), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, rgba(18, 184, 134, .35), transparent 70%),
    linear-gradient(120deg, #08805F 0%, #0A6B66 55%, #0B4F63 100%);
}
.band-white { background: var(--surface); }

/* sub-page hero glow */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 320px at 12% 0%, rgba(18, 184, 134, .28), transparent 70%), radial-gradient(420px 260px at 55% 120%, rgba(51, 102, 214, .25), transparent 70%); }
.page-hero-inner { position: relative; }
.crumbs span[aria-current] { color: var(--gold); }

/* tour, demos, panels */
.tour-frame, .illus-card { box-shadow: 0 50px 90px -55px rgba(11, 37, 48, .6); }
.tab[aria-selected="true"] { background: var(--grad-brand); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(8, 128, 95, .8); }
.play-btn { background: var(--grad-brand); box-shadow: 0 10px 20px -10px rgba(8, 128, 95, .8); }
.stat { background: linear-gradient(160deg, #F3F7F5, #EAF2EE); }
.calc { background: linear-gradient(160deg, #FFF8EA 0%, #F3F7F5 60%); border-color: #F0E2C4; }
.park-demo .park-map { box-shadow: 0 30px 60px -40px rgba(11, 37, 48, .5); }
.tow-alert { background: linear-gradient(150deg, #1D4250, #0B2530); }

/* billing + reseller */
.billing { background: linear-gradient(160deg, #163C49 0%, #12323E 100%); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.billing-stats div { background: rgba(11, 37, 48, .7); border: 1px solid var(--ink-line); }
.billing-stats div:first-child b { color: var(--gold); }
.bill-opt { background: rgba(255, 255, 255, .04); }
.brand-preview { background: radial-gradient(420px 260px at 90% 0%, rgba(18, 184, 134, .15), transparent 70%), linear-gradient(160deg, #E6F0EC, #EEF3FB); }
.node-brand { background: var(--grad-brand); border-color: transparent; }
.node-ink { background: linear-gradient(150deg, #1D4250, #0B2530); }

/* pricing */
.price.featured { border: 2px solid transparent; background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(135deg, #12B886, #3366D6) border-box; box-shadow: 0 40px 70px -40px rgba(8, 128, 95, .55); }
.compare thead .hl { background: var(--grad-brand); }
.compare .hl { background: #ECF8F2; }

/* contact */
.contact-line .ficon { background: linear-gradient(140deg, #DDF4EA, #FFFFFF); }
.next-steps li > span:first-child { background: var(--grad-brand); color: #fff; }

/* footer */
.site-footer { background: radial-gradient(600px 300px at 100% 0%, rgba(18, 184, 134, .14), transparent 70%), var(--ink); border-top: 4px solid transparent; border-image: linear-gradient(90deg, #12B886, #FFB224, #3366D6) 1; }

/* ===== Page backgrounds (switchable) ===== */
/* Each theme sets the page ground, the soft band, the hero glows and the dot grid. */
:root, :root[data-bg="aqua"] {
  --ground: #EAF6F6;
  --ground-2: #D8EEEF;
  --page-bg: linear-gradient(180deg, #E6F5F4 0%, #EEF2FC 55%, #EAF6F6 100%);
  --glow-1: rgba(18, 184, 166, .26);
  --glow-2: rgba(91, 141, 239, .20);
  --glow-3: rgba(255, 178, 36, .16);
  --dot: #C3D9DA;
}
:root[data-bg="mint"] {
  --ground: #F3F7F5;
  --ground-2: #E6F0EC;
  --page-bg: #F3F7F5;
  --glow-1: rgba(18, 184, 134, .20);
  --glow-2: rgba(51, 102, 214, .10);
  --glow-3: rgba(255, 178, 36, .18);
  --dot: #CCDAD4;
}
:root[data-bg="sky"] {
  --ground: #EDF3FE;
  --ground-2: #DCE7FC;
  --page-bg: linear-gradient(180deg, #E8F0FF 0%, #F1F5FE 60%, #EDF3FE 100%);
  --glow-1: rgba(79, 130, 240, .26);
  --glow-2: rgba(18, 184, 134, .16);
  --glow-3: rgba(255, 178, 36, .14);
  --dot: #C7D5F0;
}
:root[data-bg="peach"] {
  --ground: #FFF5EC;
  --ground-2: #FDE6D3;
  --page-bg: linear-gradient(180deg, #FFF0E2 0%, #FFF7F0 60%, #FFF5EC 100%);
  --glow-1: rgba(255, 160, 80, .28);
  --glow-2: rgba(18, 184, 134, .14);
  --glow-3: rgba(255, 196, 0, .18);
  --dot: #EED6C2;
}
:root[data-bg="lavender"] {
  --ground: #F3F0FE;
  --ground-2: #E6E0FB;
  --page-bg: linear-gradient(180deg, #EEE9FE 0%, #F5F3FF 60%, #F3F0FE 100%);
  --glow-1: rgba(124, 92, 236, .24);
  --glow-2: rgba(18, 184, 134, .16);
  --glow-3: rgba(255, 178, 36, .14);
  --dot: #D6CEF2;
}

body { background: var(--ground); background-image: var(--page-bg); background-attachment: fixed; }
.site-header { background: color-mix(in srgb, var(--ground) 84%, transparent); }
body::before { background: var(--ground); }
.hero-bg {
  background:
    radial-gradient(620px 420px at 88% 18%, var(--glow-1), transparent 70%),
    radial-gradient(520px 380px at 62% 96%, var(--glow-3), transparent 70%),
    radial-gradient(460px 340px at 0% 0%, var(--glow-2), transparent 70%),
    radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px;
}
.band-soft { background: radial-gradient(600px 300px at 100% 0%, var(--glow-1), transparent 70%), linear-gradient(180deg, var(--ground-2) 0%, var(--ground) 100%); }
.stat { background: linear-gradient(160deg, var(--ground), var(--ground-2)); }
.calc { background: linear-gradient(160deg, #FFF8EA 0%, var(--ground) 60%); }
.brand-preview { background: radial-gradient(420px 260px at 90% 0%, var(--glow-1), transparent 70%), linear-gradient(160deg, var(--ground-2), var(--ground)); }
.step-art { background: var(--ground); }

/* Background picker (demo only; turn off with CONFIG.showBackgroundPicker) */
.bg-picker { position: fixed; z-index: 70; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bg-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(11, 37, 48, .5); }
.bg-toggle .bg-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--page-bg); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.bg-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 24px 50px -20px rgba(11, 37, 48, .5); display: flex; flex-direction: column; gap: 10px; width: 230px; }
.bg-panel b { font-size: 14px; }
.bg-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bg-options button { aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.bg-options button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--teal); }
.bg-name { font-size: 13px; color: var(--muted-2); }

/* ===== Lighter page backgrounds ===== */
:root, :root[data-bg="aqua"] {
  --ground: #F6FBFB;
  --ground-2: #ECF6F6;
  --page-bg: linear-gradient(180deg, #F3FAFA 0%, #F9FBFE 55%, #F6FBFB 100%);
  --glow-1: rgba(18, 184, 166, .13);
  --glow-2: rgba(91, 141, 239, .09);
  --glow-3: rgba(255, 178, 36, .09);
  --dot: #D9E8E8;
}
:root[data-bg="mint"] {
  --ground: #F8FBF9;
  --ground-2: #EEF5F2;
  --page-bg: #F8FBF9;
  --glow-1: rgba(18, 184, 134, .11);
  --glow-2: rgba(51, 102, 214, .06);
  --glow-3: rgba(255, 178, 36, .09);
  --dot: #DCE7E2;
}
:root[data-bg="sky"] {
  --ground: #F6F9FE;
  --ground-2: #EBF1FD;
  --page-bg: linear-gradient(180deg, #F3F7FF 0%, #F9FBFF 60%, #F6F9FE 100%);
  --glow-1: rgba(79, 130, 240, .13);
  --glow-2: rgba(18, 184, 134, .08);
  --glow-3: rgba(255, 178, 36, .08);
  --dot: #DCE5F5;
}
:root[data-bg="peach"] {
  --ground: #FFFAF6;
  --ground-2: #FDF1E7;
  --page-bg: linear-gradient(180deg, #FFF7F0 0%, #FFFBF8 60%, #FFFAF6 100%);
  --glow-1: rgba(255, 160, 80, .14);
  --glow-2: rgba(18, 184, 134, .07);
  --glow-3: rgba(255, 196, 0, .09);
  --dot: #F2E3D6;
}
:root[data-bg="lavender"] {
  --ground: #F9F8FF;
  --ground-2: #F0EDFD;
  --page-bg: linear-gradient(180deg, #F6F3FF 0%, #FBFAFF 60%, #F9F8FF 100%);
  --glow-1: rgba(124, 92, 236, .12);
  --glow-2: rgba(18, 184, 134, .08);
  --glow-3: rgba(255, 178, 36, .08);
  --dot: #E3DEF6;
}

/* ===== Modern touches ===== */
.site-header { transition: box-shadow .25s, background .25s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(11, 37, 48, .35); }
.site-header.scrolled .header-row { padding-block: 10px; }
.header-row { transition: padding .25s; }
.header-actions .btn-ink { white-space: nowrap; }

/* reveal on scroll (only for content below the first screen) */
.reveal-on .rv { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .rv.in { opacity: 1; translate: none; }

/* back to top */
.to-top { position: fixed; z-index: 65; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(11, 37, 48, .6); transition: transform .2s; }
.to-top:hover { transform: translateY(-2px); }
.has-wa .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* WhatsApp button (shown only when CONFIG.whatsappNumber is set) */
.wa-float { position: fixed; z-index: 66; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #1FA855; display: grid; place-items: center; box-shadow: 0 16px 30px -12px rgba(31, 168, 85, .8); }
.wa-float:hover { transform: translateY(-2px); }

/* phone CTA bar */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta { display: flex; gap: 10px; position: fixed; z-index: 64; left: 0; right: 0; bottom: 0; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(11, 37, 48, .4); }
  .m-cta .btn { flex: 1; }
  .m-cta .btn-gold { flex: 1.6; }
  body.has-mcta { padding-bottom: 72px; }
  .has-mcta .to-top, .has-mcta .wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .has-mcta.has-wa .to-top { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .has-mcta .bg-picker { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .bg-toggle { padding: 8px; font-size: 0; gap: 0; }
  .bg-toggle .bg-dot { width: 28px; height: 28px; }
}
@media (max-width: 560px) {
  .header-actions .btn-ink { display: none; }
  .hero .btn-row .btn, .cta-row .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  .cta-row .btn-row { width: 100%; }
}

/* contact form: two even columns */
.demo-form { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ===== Realistic map chrome ===== */
.map { background: #F2EFE8; }
.map-svg { cursor: grab; touch-action: pan-y; }
.map-svg.dragging { cursor: grabbing; }
.map-attr { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 600; color: #6F6A5F; background: rgba(255, 255, 255, .78); padding: 2px 7px; border-radius: 4px; }
.map-ctrl { position: absolute; right: 14px; bottom: 46px; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px -6px rgba(11, 37, 48, .35); }
.map-ctrl button { width: 36px; height: 36px; border: 0; background: #fff; color: #333; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.map-ctrl button + button { border-top: 1px solid #E6E2D8; }
.map-ctrl button:hover { background: #F4F2EC; }
.map-scale { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: #3F3B34; background: rgba(255, 255, 255, .82); padding: 3px 7px; border-radius: 4px; }
.map-scale i { display: block; height: 6px; width: 60px; border: 1.5px solid #3F3B34; border-top: 0; }
/* compact vehicle popup so the map stays visible */
.popup { width: 264px; gap: 8px; padding: 12px; }
.popup-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.popup-grid div { padding: 6px 7px; }
.popup-grid b { font-size: 12px; }
.illus-card svg, .hist-map svg, .park-map svg { background: #F2EFE8; }
@media (max-width: 760px) {
  .popup { width: 220px; }
  .popup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-ctrl { bottom: 44px; right: 10px; }
  .map-scale { right: 10px; bottom: 10px; }
}
.map-ctrl { right: auto; bottom: auto; left: 10px; top: 38px; }
.map-scale { right: auto; bottom: auto; left: 128px; top: 10px; }
@media (max-width: 760px) { .map-ctrl { left: 10px; top: 38px; } .map-scale { left: 122px; top: 10px; } }

/* ===== Industry scenes ===== */
.ind-art, .ind-card:nth-child(n) .ind-art, .ind-art.lg, .ind-art.lg.gold-bg, .ind-art.lg.blue-bg { padding: 0; background: none; overflow: hidden; }
.ind-art { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(11, 37, 48, .06); }
.ind-art.lg { border-radius: 22px; }
.scene-svg { display: block; width: 100%; height: auto; }
.ind-card .ind-art .scene-svg { transition: transform .5s ease; }
.ind-card:hover .ind-art .scene-svg { transform: scale(1.05); }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
.ping2 { animation-delay: 1.2s; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.art-chip { top: 14px; left: 14px; }

/* ===== Try it yourself: live mini demos ===== */
.band-try { background: radial-gradient(640px 320px at 0% 0%, var(--glow-2), transparent 70%), radial-gradient(640px 320px at 100% 100%, var(--glow-3), transparent 70%), linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%); }
.sec-head.split > p { color: var(--muted); }
.try-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.try-card:hover { transform: translateY(-4px); }
.try-preview { position: relative; background: #F2EFE8; border-bottom: 1px solid var(--line); min-height: 258px; display: flex; flex-direction: column; }
.try-bar { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.try-tag, .try-meta { background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(11, 37, 48, .4); white-space: nowrap; }
.try-tag { color: var(--teal-dark); }
.try-tag.gold { color: var(--gold-text); }
.try-tag.blue { color: var(--blue); }
.try-meta { font-family: var(--mono); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.try-map { display: block; width: 100%; height: 200px; }
.try-map.tall { height: 258px; }
.try-strip { background: var(--surface); padding: 8px 12px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-3); }
.try-spark { flex: 1; height: 40px; min-width: 0; }
.try-stats { display: flex; flex-direction: column; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.try-stats b { font-family: var(--display); font-size: 16px; color: var(--text); }
.try-stats .over b { color: var(--red); }
.fuel-prev { background: radial-gradient(260px 160px at 50% 30%, #FFF0CF, transparent 70%), linear-gradient(160deg, #FFF8EA, #FFFDF8); padding: 46px 20px 16px; justify-content: center; }
.fuel-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fm-dial { width: 190px; max-width: 100%; height: auto; }
#fmNeedle { transition: transform .25s ease; }
.fm-readout { display: flex; align-items: baseline; gap: 6px; margin-top: -4px; }
.fm-readout b { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; }
.fm-readout span { font-size: 12px; color: var(--muted-2); }
.fm-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fm-status.ok { background: var(--teal-soft); color: var(--teal-dark); }
.fm-status.warn { background: var(--gold-soft); color: var(--gold-dark); }
.fm-status.bad { background: var(--red-soft); color: var(--red); }
.fm-label { align-self: stretch; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 6px; }
#fmLitres { width: 100%; accent-color: var(--gold); }
.pm-alert { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; background: linear-gradient(150deg, #1D4250, #0B2530); color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; box-shadow: 0 14px 30px -14px rgba(11, 37, 48, .7); }
.pm-kicker { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-on-ink); }
.try-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.try-body p { color: var(--muted); line-height: 1.55; flex: 1; }
.try-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.try-actions .more { font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: none; }
.try-preview { height: 304px; min-height: 0; }
.try-map { height: 248px; }
.try-map.tall { height: 304px; }
.fuel-prev { padding: 44px 20px 14px; }
.fm-dial { width: 170px; }

/* ===== Smaller illustrations ===== */
.ind-art.lg { max-width: 430px; margin-inline: auto; }
.col-demo > .illus-card { max-width: 500px; margin-inline: auto; }
.try-preview { height: 250px; }
.try-map { height: 196px; }
.try-map.tall { height: 250px; }
.fuel-prev { padding: 40px 18px 10px; }
.fm-dial { width: 130px; }
.fm-readout b { font-size: 24px; }
.fm-label { margin-top: 2px; }
.ind-grid .ind-art .scene-svg { max-height: 120px; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Guides and city / industry landing pages (tools/pages.js)
   --------------------------------------------------------------------------- */
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-2); font-weight: 600; }
.guide-meta.on-hero { margin-top: 10px; font-size: 14px; }
.guide-card h3 { font-size: 20px; line-height: 1.25; }
.hero-btns { margin-top: 22px; }
.landing-chips .chip { text-decoration: none; }
.landing-intro { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.landing-included .check-grid { margin-bottom: 28px; }
.related-guides { padding-bottom: 88px; }

.article-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 56px; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.toc ol { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--teal); }
.toc .btn { margin-top: 6px; }

.prose { max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--text); display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 26px; scroll-margin-top: 96px; }
.prose h3 { font-size: 20px; margin-top: 10px; }
.prose p { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose blockquote { margin: 0; padding: 14px 20px; border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 0 12px 12px 0; color: var(--teal-dark); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.prose code { font-family: var(--mono); font-size: 14px; background: var(--grey-soft); padding: 2px 6px; border-radius: 6px; }
.prose .table-box { background: var(--surface); }
.prose .data-table { min-width: 0; font-size: 15px; }
.prose .data-table th { padding: 12px 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.prose .data-table td { vertical-align: top; }
.prose .data-table tr:last-child td strong { color: var(--teal-dark); }
.prose-faq { margin-top: -6px; }
.prose-faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.prose-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.prose-faq summary::-webkit-details-marker { display: none; }
.prose-faq .plus { color: var(--teal); font-size: 24px; line-height: 1; transition: transform .2s; flex-shrink: 0; }
.prose-faq details[open] .plus { transform: rotate(45deg); }
.prose-faq p { margin-top: 10px; color: var(--muted); line-height: 1.6; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .toc { position: static; }
  .toc ol { display: none; }
  .toc .btn { display: none; }
}

/* ---------------------------------------------------------------------------
   Real screens gallery (screenshots of the live app, public/screens/)
   --------------------------------------------------------------------------- */
.screens-grid { display: grid; grid-template-columns: 340px minmax(0, 600px); gap: 32px; align-items: start; justify-content: center; }
.screens-list { display: flex; flex-direction: column; gap: 4px; counter-reset: screen; }
.screen-tab { counter-increment: screen; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: start; text-align: left; padding: 11px 12px; border-radius: 14px; border: 1px solid transparent; border-left: 3px solid transparent; background: transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.screen-tab::before { content: counter(screen, decimal-leading-zero); grid-row: 1 / 3; align-self: center; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted-2); background: var(--ground-2); }
.screen-tab b { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.screen-tab span { font-size: 13px; color: var(--muted-2); line-height: 1.45; margin-top: 2px; }
.screen-tab:hover { background: var(--ground); }
.screen-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); border-left-color: var(--teal); box-shadow: 0 10px 24px -18px rgba(11, 37, 48, .4); }
.screen-tab[aria-selected="true"]::before { background: var(--teal); color: #fff; }
.screen-tab[aria-selected="true"] b { color: var(--teal-dark); }
.screen-frame { margin: 0; position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -50px rgba(11, 37, 48, .6); }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: linear-gradient(180deg, #FFFFFF, #F7FAF9); border-bottom: 1px solid var(--line-3); }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.screen-bar span:nth-child(1) { background: #F2918A; } .screen-bar span:nth-child(2) { background: #F5C66E; } .screen-bar span:nth-child(3) { background: #8ED7BC; }
.screen-bar i { margin-left: 8px; flex: 1; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted-2); background: var(--ground); border-radius: 8px; padding: 3px 10px; max-width: 280px; }
.screen-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--ground); }
.screen-frame figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; line-height: 1.5; }
.screen-frame figcaption .small { color: var(--muted-2); white-space: nowrap; }
@media (max-width: 1100px) { .screens-grid { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 960px) {
  .screens-grid { grid-template-columns: 1fr; gap: 16px; }
  .screens-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .screen-tab { flex: 0 0 auto; min-width: 150px; max-width: 200px; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--surface); scroll-snap-align: start; }
  .screen-tab::before { display: none; }
  .screen-tab span { display: none; }
  .screen-frame { position: static; max-width: 600px; margin-inline: auto; }
}

/* Hero: real screenshot of the app in a browser frame; the interactive live-map demo moved to the Try band */
.hero-shot { background: var(--surface); border: 1px solid #D3E0DA; border-radius: 22px; overflow: hidden; box-shadow: 0 60px 110px -50px rgba(11, 37, 48, .55), 0 0 0 1px rgba(11, 37, 48, .04); }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--ground); }
.try-live { margin-bottom: 20px; }
.try-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.try-live .mock { width: 100%; }
