/* ============================================================
   VouchTrack — Components (LIGHT)
   Hero, live map, explainer player, feature demos, timelines,
   pricing, testimonials, hardware, dashboards.
   ============================================================ */

/* ---------- MapKit animation classes ---------- */
/* fill-box keeps every transform-origin relative to the shape itself,
   not the SVG viewport — without it, scaled pings fly off centre. */
.ck-ping, .ck-sweep, .ck-rise, .ck-drop, .ck-needle,
.ck-float, .ck-shake { transform-box: fill-box; }

.ck-ping      { animation: ckPing 2.4s ease-out infinite; transform-origin: center; }
@keyframes ckPing { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }

.ck-dash      { animation: ckDash 6s linear infinite; }
@keyframes ckDash { to { stroke-dashoffset: -56; } }

.ck-flow      { stroke-dasharray: 26 900; animation: ckFlow 5s linear infinite; }
@keyframes ckFlow { to { stroke-dashoffset: -926; } }

.ck-draw-core, .ck-draw-case { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: ckDraw 8s ease-in-out infinite; }
.ck-draw-case { animation-name: ckDrawCase; }
@keyframes ckDraw     { 0% { stroke-dashoffset: 1000; } 62%,100% { stroke-dashoffset: 0; } }
@keyframes ckDrawCase { 0% { stroke-dashoffset: 1000; } 60%,100% { stroke-dashoffset: 0; } }

.ck-blink { animation: ckBlink 1.3s steps(2) infinite; }
@keyframes ckBlink { 50% { opacity: .25; } }

.ck-float { animation: ckFloat 4s ease-in-out infinite; }
@keyframes ckFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.ck-rise { transform-origin: 50% 100%; animation: ckRise 2.6s ease-in-out infinite alternate; }
@keyframes ckRise { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.ck-sweep { transform-origin: center; animation: ckSpin 3.4s linear infinite; }
@keyframes ckSpin { to { transform: rotate(360deg); } }

.ck-fade { animation: ckFade 3.4s ease-in-out infinite; }
@keyframes ckFade { 0%, 62%, 100% { opacity: 0; } 70%, 92% { opacity: 1; } }

.ck-pulse { animation: ckPulse 2.2s ease-in-out infinite; }
@keyframes ckPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.ck-shake { animation: ckShake .6s ease-in-out infinite; }
@keyframes ckShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

.ck-drop { animation: ckDrop 5.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes ckDrop { 0%,44% { transform: scaleY(1); } 52% { transform: scaleY(.58); } 58%,100% { transform: scaleY(.52); } }

.ck-needle { animation: ckNeedle 5s var(--e-in-out) infinite alternate; }
@keyframes ckNeedle { from { transform: rotate(-56deg); } to { transform: rotate(52deg); } }

.ck-scrub { animation: ckScrub 8s ease-in-out infinite; }
@keyframes ckScrub { 0% { width: 0; } 62%,100% { width: var(--sw, 100px); } }

/* Demos pause until their card scrolls into view */
.demo * { animation-play-state: paused; }
.demo *, .demo { animation-play-state: paused; }
.feat.in-view .demo *, .demo.play *,
.deep__art.in-view .demo *, .hw__img.in-view .demo *,
.sol__bg.in-view .demo * { animation-play-state: running; }
.scene.active .demo *, .map-live .demo * { animation-play-state: running; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 122px; padding-bottom: 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, #f8e9eb 0%, transparent 62%),
    radial-gradient(760px 480px at 96% 8%, #e6fbf3 0%, transparent 60%),
    #ffffff;
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
@media (max-width: 1080px) { .hero-inner { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.04; margin-top: 22px; }
.hero .lead { margin-top: 20px; max-width: 56ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero-trust .t span { font-size: .8rem; color: var(--text-3); }

.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%);
  animation: wordUp .9s var(--e-out) forwards;
  animation-delay: var(--wd, 0ms);
}
@keyframes wordUp { to { transform: translateY(0); } }

/* ---------- MAP PANEL (browser-framed live map) ---------- */
.map-panel {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.map-panel__bar {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative; z-index: 5;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.map-panel__bar .title {
  margin-inline-start: 8px; font-family: var(--font-mono); font-size: .74rem; color: var(--text-3);
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px;
}
.map-panel__bar .chip--live { margin-inline-start: auto; }

.map-stage { position: relative; aspect-ratio: 600 / 420; background: var(--map-land); }
.map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Floating telemetry cards over the map */
.hud {
  position: absolute; z-index: 6;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px; min-width: 124px;
  box-shadow: var(--shadow-md);
  animation: hudFloat 6s ease-in-out infinite;
}
.hud .k { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.hud .v { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-top: 2px; }
.hud .v small { font-size: .6rem; color: var(--text-3); font-weight: 400; margin-inline-start: 3px; }
.hud--1 { top: 11%; right: 4%;  animation-delay: 0s; }
.hud--2 { top: 44%; left: 4%;   animation-delay: -2s; }
.hud--3 { bottom: 21%; left: 4%; animation-delay: -4s; }
@media (max-width: 520px) { .hud--2 { display: none; } }
@keyframes hudFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.spark { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; margin-top: 6px; }
.spark i { width: 3px; height: 100%; background: var(--blue); border-radius: 2px; opacity: .7; animation: sparkPulse 1.4s ease-in-out infinite; }
@keyframes sparkPulse { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.map-alert {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 7; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 99px;
  background: #fff; border: 1px solid #ffcdd2;
  box-shadow: var(--shadow-md);
  color: #c62828; font-size: .82rem; white-space: nowrap;
  animation: alertCycle 12s ease-in-out infinite;
  opacity: 0;
}
.map-alert b { color: var(--text); }
.map-alert .ico { width: 20px; height: 20px; border-radius: 50%; background: var(--danger); display: grid; place-items: center; color: #fff; font-size: .66rem; font-weight: 700; flex: none; }
@keyframes alertCycle {
  0%, 56% { opacity: 0; transform: translate(-50%, 12px); }
  63%, 90% { opacity: 1; transform: translate(-50%, 0); }
  97%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- EXPLAINER PLAYER ---------- */
.player-shell { display: grid; grid-template-columns: 1fr 316px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .player-shell { grid-template-columns: 1fr; } }

.player {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #faf7f7;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 600 / 420;
}
.player-stage { position: absolute; inset: 0; }

.scene {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--e-out);
}
.scene.active { opacity: 1; visibility: visible; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.scene-caption {
  position: absolute; left: 3%; bottom: 15%; max-width: min(44%, 360px);
  z-index: 3; pointer-events: none;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--blue);
  border-radius: 12px;
  padding: 13px 17px;
  box-shadow: var(--shadow-md);
}
.scene-caption .step {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .17em;
  color: var(--blue); text-transform: uppercase;
}
.scene-caption h4 { font-size: clamp(.98rem, 1.7vw, 1.3rem); margin-top: 6px; }
.scene-caption p { margin-top: 6px; font-size: clamp(.72rem, 1.05vw, .86rem); color: var(--text-2); line-height: 1.55; }
.scene.active .scene-caption > * { animation: capIn .65s var(--e-out) backwards; }
.scene.active .scene-caption h4 { animation-delay: .1s; }
.scene.active .scene-caption p { animation-delay: .18s; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 700px) {
  .scene-caption { left: 4%; right: 4%; bottom: 17%; max-width: none; padding: 10px 13px; }
}

/* Product-UI scenes (fuel, temperature, cargo) aren't maps — a floating
   card would sit on top of the chart, so they get a lower-third bar and
   the artwork is lifted into the space above it. */
.scene--widget > svg { inset: 0 0 auto 0; height: 72%; }
.scene--widget .scene-caption {
  left: 0; right: 0; bottom: 52px; max-width: none;
  border-radius: 0; border-inline-start: 0; border-inline-end: 0; border-bottom: 0;
  border-top: 3px solid var(--blue);
  background: #fff; box-shadow: none;
  padding: 12px clamp(16px, 3vw, 28px) 14px;
}
.scene--widget .scene-caption p { max-width: 74ch; }

.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  padding: 22px 16px 12px;
  background: linear-gradient(transparent, rgba(255,255,255,.96) 45%);
  display: flex; align-items: center; gap: 13px;
}
.pc-btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(151,6,23,.8);
  transition: transform .35s var(--e-spring), box-shadow .35s;
}
.pc-btn:hover { transform: scale(1.09); }
.pc-btn svg { width: 14px; height: 14px; }
.pc-btn .ico-pause { display: none; }
.player.playing .pc-btn .ico-play { display: none; }
.player.playing .pc-btn .ico-pause { display: block; }

.pc-track { flex: 1; height: 5px; border-radius: 99px; background: #e6dcdd; position: relative; cursor: pointer; transition: height .2s; }
.pc-track:hover { height: 7px; }
.pc-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 99px; background: var(--blue); }
.pc-fill::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
}
.pc-marks { position: absolute; inset: 0; pointer-events: none; }
.pc-marks i { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }
.pc-time { font-family: var(--font-mono); font-size: .74rem; color: var(--text-2); flex: none; }

.player-badge { position: absolute; top: 14px; right: 14px; z-index: 8; }
.player-quality {
  position: absolute; top: 52px; right: 14px; z-index: 8;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em;
  color: var(--text-3); border: 1px solid var(--line); padding: 3px 8px; border-radius: 5px;
  background: rgba(255,255,255,.9);
}

.chapters { display: flex; flex-direction: column; gap: 7px; }
.chapter {
  display: flex; gap: 12px; align-items: flex-start; text-align: start;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff;
  transition: all .35s var(--e-out); position: relative; overflow: hidden;
}
.chapter:hover { border-color: var(--line-strong); transform: translateX(3px); box-shadow: var(--shadow-xs); }
.chapter.active { border-color: #e6b9bf; background: #fcf6f6; box-shadow: var(--shadow-sm); }
.chapter.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.chapter .n {
  width: 25px; height: 25px; flex: none; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .7rem;
  background: var(--surface-3); color: var(--text-2);
}
.chapter.active .n { background: var(--blue); color: #fff; }
.chapter .t { display: block; font-size: .89rem; font-weight: 600; line-height: 1.35; }
.chapter .d { display: block; font-size: .74rem; color: var(--text-3); margin-top: 3px; font-family: var(--font-mono); }

/* ---------- FEATURE CARDS WITH LIVE DEMOS ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feat-grid { grid-template-columns: 1fr; } }

.feat {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s;
}
.feat:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.feat__demo {
  aspect-ratio: 600 / 420; position: relative; overflow: hidden;
  background: #faf7f7;
  border-bottom: 1px solid var(--line);
}
.feat__demo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat__body { padding: 21px; }
.feat__body h3 { font-size: 1.06rem; }
.feat__body p { margin-top: 9px; font-size: .9rem; color: var(--text-2); }
.feat__meta { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- FEATURE DEEP-DIVE ---------- */
.deep {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(42px, 5.5vw, 76px);
  border-top: 1px solid var(--line);
}
.deep:first-of-type { border-top: 0; }
.deep--flip .deep__art { order: -1; }
@media (max-width: 900px) {
  .deep { grid-template-columns: 1fr; }
  .deep--flip .deep__art { order: 0; }
}
.deep__art {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #faf7f7;
  aspect-ratio: 600 / 420; box-shadow: var(--shadow-md);
}
.deep__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.deep h2 { margin: 14px 0 14px; }
.deep ul.checks { margin-top: 20px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--text-2); }
.checks li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--green); }
.checks li b { color: var(--text); font-weight: 600; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-inline-start: 40px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__prog { position: absolute; left: 14px; top: 8px; width: 2px; height: 0; background: var(--blue); transition: height .2s linear; }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong);
  transition: all .5s var(--e-out);
}
.tl-item.in::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(151,6,23,.16); }
.tl-item .step { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; }
.tl-item h3 { font-size: 1.08rem; margin: 7px 0 7px; }
.tl-item p { color: var(--text-2); font-size: .93rem; max-width: 60ch; }

/* ---------- STATS BAND ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; }

/* ---------- SOLUTION CARDS ---------- */
.sol {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s;
}
.sol:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.sol__bg { position: relative; aspect-ratio: 600 / 420; overflow: hidden; background: #faf7f7; border-bottom: 1px solid var(--line); }
.sol__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sol__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.sol .chip { align-self: flex-start; margin-bottom: 13px; }
.sol h3 { font-size: 1.14rem; }
.sol p { margin-top: 8px; font-size: .9rem; color: var(--text-2); flex: 1; }
/* Base link-with-arrow. This used to exist only inside .sol and .post, so a
   bare .arrow anywhere else rendered its icon at full block width. */
.arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: .88rem; font-weight: 600;
  transition: gap .35s;
}
.arrow svg { width: 16px; height: 16px; flex: none; }
.arrow:hover, .card:hover .arrow { gap: 14px; }

.sol .arrow { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: .88rem; font-weight: 600; transition: gap .35s; }
.sol:hover .arrow { gap: 14px; }

/* ---------- PRICING ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan {
  position: relative; border-radius: var(--r-lg); padding: 30px;
  border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.plan--featured { border-color: #e3b3b9; box-shadow: 0 24px 60px -26px rgba(151,6,23,.5); }
.plan--featured::before {
  content: "Most Popular"; position: absolute; top: -1px; right: 22px;
  padding: 5px 13px; border-radius: 0 0 9px 9px;
  background: var(--grad-brand); color: #fff;
  font-size: .66rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.plan h3 { font-size: 1.12rem; }
.plan .tagline { color: var(--text-3); font-size: .85rem; margin-top: 5px; }
.plan .price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.plan .price span { color: var(--text-3); font-size: .84rem; }
.plan .plan-feats { margin: 20px 0 24px; display: grid; gap: 11px; flex: 1; }
.plan .plan-feats li { display: flex; gap: 10px; font-size: .9rem; color: var(--text-2); }
.plan .plan-feats svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--green); }
.plan .plan-feats li.off { opacity: .45; }
.plan .plan-feats li.off svg { color: var(--text-3); }

.billing-toggle { display: inline-flex; align-items: center; gap: 13px; font-size: .9rem; }
.switch { width: 50px; height: 28px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; cursor: pointer; transition: background .35s, border-color .35s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--e-spring); }
.switch.on { background: var(--blue); border-color: var(--blue); }
.switch.on::after { transform: translateX(22px); }

/* ---------- HARDWARE ---------- */
.hw {
  border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s;
}
.hw:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.hw__img {
  height: 220px; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 40%, #f9eff0, #faf7f7 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hw__img > svg { width: 66%; height: auto; transition: transform .7s var(--e-out); }
.hw:hover .hw__img > svg { transform: translateY(-6px) scale(1.05) rotate(-3deg); }
.hw__body { padding: 22px; }
.hw__body h3 { font-size: 1.04rem; }
.hw__specs { margin-top: 14px; display: grid; gap: 8px; font-size: .85rem; color: var(--text-2); }
.hw__specs li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.hw__specs li b { color: var(--text); font-weight: 600; }

/* ---------- TESTIMONIALS ---------- */
.quote-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.quote {
  flex: 0 0 min(420px, 84vw); scroll-snap-align: start;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff;
  padding: 28px; position: relative; box-shadow: var(--shadow-xs);
}
.quote::before {
  content: "\201C"; position: absolute; top: 6px; right: 20px;
  font-family: var(--font-display); font-size: 4.6rem; line-height: 1;
  color: var(--blue); opacity: .13;
}
.quote p { font-size: .98rem; color: var(--text); line-height: 1.7; }
.quote .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: #fff; background: var(--grad-brand); }
.quote .who b { display: block; font-size: .9rem; font-weight: 600; }
.quote .who span { font-size: .79rem; color: var(--text-3); }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: #f4a445; }
.stars svg { width: 15px; height: 15px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 20% 0%, #f8e9eb 0%, transparent 65%),
    radial-gradient(600px 400px at 88% 100%, #e8fbf2 0%, transparent 60%),
    var(--bg-2);
  padding: clamp(40px, 6vw, 72px) clamp(26px, 5vw, 60px);
  text-align: center;
}

/* ---------- PHONE MOCKUPS ---------- */
.phone {
  width: 254px; aspect-ratio: 9/19; border-radius: 34px;
  border: 9px solid #2b211f; background: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; flex: none;
}
.phone::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 19px; border-radius: 99px; background: #2b211f; z-index: 5;
}
.phone svg { width: 100%; height: 100%; }
.phone-stack { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; perspective: 1200px; }
.phone--tilt-l { transform: rotateY(15deg) rotateZ(-3deg) translateZ(-40px); }
.phone--tilt-r { transform: rotateY(-15deg) rotateZ(3deg) translateZ(-40px); }
@media (max-width: 860px) { .phone--tilt-l, .phone--tilt-r { display: none; } }

/* ---------- DASHBOARD PREVIEW ---------- */
.dash { border-radius: var(--r-lg); border: 1px solid var(--line-strong); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.dash__top { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dash__body { display: grid; grid-template-columns: 196px 1fr; }
@media (max-width: 760px) { .dash__body { grid-template-columns: 1fr; } .dash__side { display: none; } }
.dash__side { border-inline-end: 1px solid var(--line); padding: 14px 10px; background: var(--surface-2); }
.dash__side li { padding: 10px 12px; border-radius: 9px; font-size: .86rem; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.dash__side li.on { background: #fbeff0; color: var(--blue); font-weight: 600; }
.dash__side li svg { width: 16px; height: 16px; }
.dash__main { padding: 16px; display: grid; gap: 13px; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
@media (max-width: 620px) { .dash__kpis { grid-template-columns: repeat(2, 1fr); } }
.dash__kpi { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #fff; }
.dash__kpi .k { font-size: .64rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.dash__kpi .v { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-top: 3px; }
.dash__map { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; position: relative; background: var(--map-land); aspect-ratio: 600/300; }
.dash__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- PARTNERS ---------- */
.partner {
  height: 76px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  color: var(--text-3); font-family: var(--font-display); font-weight: 600;
  transition: all .4s var(--e-out);
}
.partner:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-sm); }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative; padding-top: 158px; padding-bottom: clamp(46px, 6vw, 76px);
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 460px at 15% -20%, #f8e9eb 0%, transparent 62%), #fff;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 18px; }
.page-hero .lead { margin-top: 16px; max-width: 62ch; }
.crumb { font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); letter-spacing: .08em; }
.crumb a:hover { color: var(--blue); }

/* ============================================================
   APP SHOWCASE — real screenshots from the VouchTrack apps
   ============================================================ */
.showcase {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 980px) { .showcase { grid-template-columns: 1fr; } }

/* --- the stepper on the left --- */
.sc-steps { display: grid; gap: 8px; margin-top: 28px; }
.sc-step {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  width: 100%; text-align: start;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent;
  transition: background .4s var(--e-out), border-color .4s, transform .4s var(--e-out);
  overflow: hidden;
}
.sc-step:hover { background: var(--surface-2); }
.sc-step.on { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.sc-step__ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
  transition: background .4s, color .4s, transform .5s var(--e-spring);
}
.sc-step__ico svg { width: 19px; height: 19px; }
.sc-step.on .sc-step__ico { background: var(--blue); color: #fff; transform: scale(1.06); }
.sc-step__txt b { display: block; font-family: var(--font-display); font-size: .98rem; font-weight: 600; }
.sc-step__txt span { display: block; font-size: .86rem; color: var(--text-2); margin-top: 3px; }
.sc-step__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); }
.sc-step.on .sc-step__bar { animation: scFill var(--sc-dur, 4600ms) linear forwards; }
@keyframes scFill { from { width: 0; } to { width: 100%; } }

/* --- the device rig on the right --- */
.sc-rig {
  position: relative; display: grid; place-items: center;
  min-height: clamp(440px, 56vw, 620px);
  perspective: 1400px;
}
.sc-rig::before {
  content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(151,6,23,.14), transparent 68%);
  filter: blur(8px);
}

.sc-phone {
  position: relative; border-radius: 34px; background: #241a17;
  padding: 8px; box-shadow: var(--shadow-lg);
  width: clamp(200px, 26vw, 252px); aspect-ratio: 9 / 19.3;
  transform-style: preserve-3d;
}
.sc-phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 27px; overflow: hidden; background: #f5f2f2;
}
.sc-phone__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.sc-phone::after {
  content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 17px; border-radius: 99px; background: #241a17; z-index: 3;
}

/* main phone — the one that cycles */
.sc-phone--main { z-index: 3; transition: transform .6s var(--e-out); }
.sc-phone--main .sc-phone__screen img {
  opacity: 0; transform: scale(1.04);
  transition: opacity .7s var(--e-out), transform .9s var(--e-out);
}
.sc-phone--main .sc-phone__screen img.on { opacity: 1; transform: scale(1); }

/* flanking phones */
.sc-phone--side {
  position: absolute; z-index: 1;
  width: clamp(150px, 19vw, 190px);
  filter: saturate(.94);
}
.sc-phone--l { left: 2%;  transform: rotateY(19deg) rotateZ(-5deg) translateZ(-90px) translateY(16px); }
.sc-phone--r { right: 2%; transform: rotateY(-19deg) rotateZ(5deg) translateZ(-90px) translateY(-16px); }
.sc-phone--side::after { height: 12px; top: 11px; }
@media (max-width: 620px) { .sc-phone--side { display: none; } .sc-rig::before { width: 100%; } }

/* floating proof cards */
.sc-badge {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: ckFloat 5s ease-in-out infinite;
  white-space: nowrap;
}
.sc-badge b { font-family: var(--font-display); font-size: 1rem; line-height: 1.1; }
.sc-badge span { display: block; font-size: .72rem; color: var(--text-3); }
.sc-badge__ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; }
.sc-badge__ico svg { width: 16px; height: 16px; }
.sc-badge--1 { top: 6%;  left: -2%; animation-delay: 0s; }
.sc-badge--2 { top: 30%; right: -3%; animation-delay: -1.6s; }
.sc-badge--3 { bottom: 7%; left: 4%; animation-delay: -3.2s; }
@media (max-width: 700px) { .sc-badge--2 { display: none; } }

/* store buttons */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--text); color: #fff; border: 1px solid var(--text);
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out), background .3s;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: #2b211f; }
.store-btn--disabled { opacity: .5; filter: grayscale(.6); cursor: not-allowed; pointer-events: none; }
.store-btn--disabled:hover { transform: none; box-shadow: none; }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn .s { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.store-btn .n { display: block; font-family: var(--font-display); font-size: .96rem; font-weight: 600; margin-top: 1px; }

/* app-store credit line */
.sc-note { margin-top: 16px; font-size: .8rem; color: var(--text-3); }

/* ---------- CONTACT SPLIT ---------- */
.split-form { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .split-form { grid-template-columns: 1fr; } }

/* ---------- HELPERS ---------- */
.rel { position: relative; z-index: 2; }
.sticky-side { position: sticky; top: 108px; }
@media (max-width: 900px) { .sticky-side { position: static; } }
.hide-sm { display: initial; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* rating star sits beside a numeral, so keep it optically smaller */
.star { font-size: .62em; color: var(--amber); margin-inline-start: .18em; vertical-align: .18em; }

/* ============================================================
   BLOG — index cards and article layout
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .post-grid { grid-template-columns: 1fr; } }

.post {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s;
}
.post:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.post__art { aspect-ratio: 600 / 340; position: relative; overflow: hidden; background: #faf7f7; border-bottom: 1px solid var(--line); }
.post__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; gap: 10px; align-items: center; font-size: .74rem; color: var(--text-3); font-family: var(--font-mono); }
.post h3 { font-size: 1.08rem; margin: 12px 0 8px; line-height: 1.3; }
.post p { font-size: .9rem; color: var(--text-2); flex: 1; }
.post .arrow { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: .87rem; font-weight: 600; transition: gap .35s; }
.post:hover .arrow { gap: 14px; }
.post--feature { grid-column: span 2; }
@media (max-width: 640px) { .post--feature { grid-column: span 1; } }

/* ---------- article ---------- */
.article-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 960px) { .article-shell { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 108px; }
@media (max-width: 960px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--bg-2); }
}
.toc h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 14px; }
.toc a {
  display: block; padding: 7px 0 7px 14px; font-size: .87rem; color: var(--text-2);
  border-inline-start: 2px solid var(--line); transition: color .3s, border-color .3s, padding .3s;
}
.toc a:hover { color: var(--blue); border-color: var(--line-strong); padding-inline-start: 18px; }
.toc a.on { color: var(--blue); border-color: var(--blue); font-weight: 600; }

.prose { max-width: 72ch; font-size: 1.03rem; line-height: 1.78; color: var(--text-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--text);
  margin-top: 2.2em; padding-top: .3em; scroll-margin-top: 110px;
}
.prose h3 { font-size: 1.16rem; color: var(--text); margin-top: 1.8em; scroll-margin-top: 110px; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul li { list-style: disc; margin-top: .5em; }
.prose ol li { list-style: decimal; margin-top: .5em; }
.prose li::marker { color: var(--blue); }
.prose blockquote {
  border-inline-start: 3px solid var(--blue); padding: 4px 0 4px 20px;
  color: var(--text); font-size: 1.08rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-family: var(--font-mono); font-weight: 500; }
.prose .tbl-scroll { margin-block: 1.4em; }
.prose figure { margin-block: 1.8em; }
.prose figure .deep__art { aspect-ratio: 600/420; }
.prose figcaption { margin-top: 10px; font-size: .82rem; color: var(--text-3); text-align: center; }

/* answer-first summary box — the block answer engines quote */
.answer-box {
  border: 1px solid #e4cfd2; border-inline-start: 4px solid var(--blue);
  background: #fcf6f6; border-radius: var(--r-md);
  padding: 20px 22px; margin-block: 1.6em;
}
.answer-box p { margin: 0; color: var(--text); font-size: 1.02rem; }
.answer-box .k { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }

.key-take { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); padding: 22px 24px; margin-block: 1.8em; }
.key-take h4 { font-size: 1rem; margin-bottom: 12px; }
.key-take ul li { list-style: none; display: flex; gap: 10px; margin-top: 9px; font-size: .94rem; }
.key-take ul { padding-inline-start: 0; }
.key-take svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--green); }

.article-head { border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-top: 18px; max-width: 20ch; }
.article-head h1 { max-width: 24ch; }
.byline { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; font-size: .86rem; color: var(--text-3); }
.byline .dot-sep::before { content: "·"; margin-inline-end: 14px; }

.share-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-row a, .share-row button {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-2);
  transition: all .35s var(--e-out);
}
.share-row a:hover, .share-row button:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.share-row svg { width: 17px; height: 17px; }
.share-row span { font-size: .82rem; color: var(--text-3); margin-inline-end: 4px; }

.reading-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 951; width: 0; background: var(--red); }

/* grouped feature lists inside a plan card */
.plan-group {
  display: block; margin: 18px 0 8px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500;
}
.plan-group:first-child { margin-top: 0; }
.plan .plan-feats li { align-items: flex-start; }
.plan .plan-feats li.inherit {
  background: var(--bg-2); border-radius: 9px; padding: 10px 12px; margin-bottom: 4px;
}
.plan-scroll { max-height: 420px; overflow-y: auto; padding-inline-end: 8px; margin-inline-end: -8px; }
.plan-scroll::-webkit-scrollbar { width: 5px; }
.plan-scroll::-webkit-scrollbar-thumb { background: #ddd0d2; border-radius: 99px; border: 0; }

/* ============================================================
   FLOATING CONTACT DOCK — every regional competitor has one,
   and in Pakistan and the Gulf WhatsApp is where deals start.
   ============================================================ */
.dock {
  position: fixed; right: 20px; bottom: 84px; z-index: 810;
  display: flex; flex-direction: column; gap: 10px;
}
.dock a {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-md);
  transition: transform .4s var(--e-out), box-shadow .4s;
}
.dock a:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
.dock svg { width: 24px; height: 24px; }
.dock .wa   { background: #25d366; }
.dock .call { background: var(--blue); }
.dock .mail { background: var(--text); }

/* label slides out on hover, desktop only */
.dock a span {
  position: absolute; right: 62px; white-space: nowrap;
  background: var(--text); color: #fff;
  font-size: .8rem; font-weight: 600; padding: 7px 13px; border-radius: 8px;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.dock a:hover span { opacity: 1; transform: translateX(0); }
@media (hover: none) { .dock a span { display: none; } }

/* the WhatsApp bubble gets a gentle pulse so it is noticed once */
.dock .wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: dockPing 2.6s ease-out infinite;
}
@keyframes dockPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 640px) {
  .dock { right: 14px; bottom: 78px; gap: 8px; }
  .dock a { width: 46px; height: 46px; }
  .dock svg { width: 21px; height: 21px; }
  .dock .call, .dock .mail { display: none; }   /* keep only WhatsApp on small screens */
}
@media (prefers-reduced-motion: reduce) { .dock .wa::after { animation: none; } }

/* customer login sits in the nav as a quiet secondary action */
.nav-login {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; color: var(--text-2);
  padding: 9px 14px; border-radius: 99px;
  transition: color .3s, background .3s;
}
.nav-login:hover { color: var(--blue); background: #fbeff0; }
.nav-login svg { width: 16px; height: 16px; }
@media (max-width: 1024px) { .nav-login { display: none; } }

/* ============================================================
   RESPONSIVE PASS
   Fixes found by measuring the real layout at 375 / 768 / 1100 /
   1440. Ordered widest-first so each rule narrows the last.
   ============================================================ */

/* ------------------------------------------------------------
   1. NAV OVERFLOW — the important one.

   Measured at 1600px: logo 135 + links 659 + login 114 + call 173
   + demo 155, plus 72px of gaps = 1308px of content. But --maxw
   caps the row at 1240px, so the full set never fitted at any
   viewport width — the CTA was simply pushed off-screen from
   1025px up. Fixed by (a) tightening link padding to reclaim
   ~96px, and (b) shedding one element at a time on real numbers.
   ------------------------------------------------------------ */
.nav-links > li > a { padding: 9px 11px; }      /* 659px -> ~563px */

/* The login label costs ~70px and the icon alone still reads as
   "sign in", so shrink it before removing anything the visitor
   came for. Full nav needs 1244px; --maxw caps the row at 1240px
   until 1600px, which is why this has to start early. */
@media (max-width: 1560px) {
  .nav-login span { display: none; }
  .nav-login { padding: 9px 11px; }
  .nav { gap: 18px; }                            /* last 12px of headroom */
  .nav-links > li > a { padding: 9px 10px; }
}
/* Wordmark "VouchTrack" + tagline is ~187px; never let flex squeeze it under
   the links. Tagline and the call-button label go first (≤1400px). */
.logo, .nav-cta { flex: none; }
@media (max-width: 1400px) {
  .logo-txt small { display: none; }
  .btn--call span { display: none; }
  .btn--call { padding: 11px 13px; }
}
@media (max-width: 1240px) {
  .nav-login { display: none; }
}
@media (max-width: 1240px) {
  .nav-links > li > a { padding: 9px 9px; font-size: .89rem; }
  .nav { gap: 16px; }
}
/* Below this eight links genuinely will not fit (wordmark "VouchTrack"
   + 8 links + icon CTAs need ~1150px of row). Collapse to the burger. */
@media (max-width: 1160px) {
  .nav-links { display: none; }
  .nav-cta .btn--primary { display: none; }
  .burger { display: grid; }
  .btn--call { display: inline-flex; }           /* keep click-to-call */
}
@media (max-width: 560px) {
  .btn--call { display: none; }                  /* the dock covers calling */
}

/* ------------------------------------------------------------
   2. FOOTER TAP TARGETS
   23 footer links measured under 40px tall on mobile. Thumbs need
   room; this also spaces the columns so they stop reading as one
   block when they stack.
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .footer-links li a { padding: 11px 0; font-size: .95rem; }
  .footer-grid { gap: 32px; }
  .footer h4 { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: start; }
  .socials a { width: 46px; height: 46px; }
}

/* ------------------------------------------------------------
   3. EXPLAINER PLAYER ON SMALL SCREENS
   At 375px the stage was 235px tall — the overlay caption covered
   most of the map and the text was unreadable. Below 700px the
   caption moves out of the artwork and sits underneath it.
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  .player { aspect-ratio: auto; }
  .player-stage { position: relative; inset: auto; }
  .scene { position: absolute; inset: 0; }
  .scene:first-child { position: relative; }
  .scene > svg { position: relative; width: 100%; height: auto; aspect-ratio: 600/420; }

  .scene-caption {
    position: static; max-width: none; width: 100%;
    border-radius: 0; border-inline-start: 0; border-top: 3px solid var(--blue);
    box-shadow: none; background: #fff;
    padding: 14px 16px 58px;                    /* room for the controls */
  }
  .scene-caption h4 { font-size: 1.05rem; }
  .scene-caption p  { font-size: .88rem; }
  .scene--widget > svg { height: auto; }
  .player-quality { display: none; }
  .player-badge { top: 10px; right: 10px; }
  .pc-btn { width: 44px; height: 44px; }        /* proper tap target */
}

/* ------------------------------------------------------------
   4. LABEL TEXT LEGIBILITY
   Mono labels sat at 11.5px and below on phones. Nudged up, and
   the eyebrow is allowed to wrap rather than force a wide row.
   ------------------------------------------------------------ */
@media (max-width: 560px) {
  .eyebrow { font-size: .68rem; letter-spacing: .12em; padding: 6px 12px; }
  .tl-item .step, .scene-caption .step, .post__meta { font-size: .72rem; }
  .hud .k, .dash__kpi .k { font-size: .62rem; }
  .chip { font-size: .78rem; }
  .crumb { font-size: .72rem; }
}

/* ------------------------------------------------------------
   5. HERO — three trust stats crowded on a phone
   ------------------------------------------------------------ */
@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero-trust { gap: 20px 26px; margin-top: 30px; }
  .hero-trust .t b { font-size: 1.28rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ------------------------------------------------------------
   6. PRICING — the long grouped feature lists
   A 420px scroll box inside an already-tall card is awkward on a
   phone; let the card grow instead.
   ------------------------------------------------------------ */
@media (max-width: 940px) {
  .plan-scroll { max-height: none; overflow: visible; padding-inline-end: 0; margin-inline-end: 0; }
  .plan { padding: 26px 22px; }
}

/* ------------------------------------------------------------
   7. ARTICLE / SERVICE PAGES
   The sticky table of contents becomes a plain block, and prose
   tables scroll rather than squash.
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .toc { top: auto; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border-inline-start: 0; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-size: .82rem; }
  .toc a:hover, .toc a.on { padding-inline-start: 13px; border-color: var(--blue); }
}
@media (max-width: 640px) {
  .prose { font-size: .98rem; }
  .prose h2 { font-size: 1.32rem; scroll-margin-top: 88px; }
  .prose table { font-size: .86rem; }
  .prose th, .prose td { padding: 10px 11px; }
  .answer-box { padding: 16px 17px; }
  .answer-box p { font-size: .96rem; }
}

/* ------------------------------------------------------------
   8. APP SHOWCASE — the rig needs breathing room on a phone
   ------------------------------------------------------------ */
@media (max-width: 560px) {
  .sc-rig { min-height: 400px; }
  .sc-badge { padding: 8px 11px; }
  .sc-badge b { font-size: .9rem; }
  .sc-badge span span { font-size: .66rem; }
  .sc-badge--1 { left: 0; top: 2%; }
  .sc-badge--3 { left: 0; bottom: 2%; }
  .sc-step { padding: 12px 13px; }
  .store-row .store-btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------
   9. FLOATING DOCK vs BACK-TO-TOP
   Keep them clear of each other and of iOS home-indicator space.
   ------------------------------------------------------------ */
.dock { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.to-top { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .dock { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 12px; }
  .to-top { right: 12px; width: 44px; height: 44px; }
}

/* ------------------------------------------------------------
   10. HORIZONTAL RAILS — make it obvious they scroll
   ------------------------------------------------------------ */
.quote-rail { scroll-padding-inline-start: var(--gut); }
@media (max-width: 640px) {
  .quote { flex-basis: 86vw; padding: 22px; }
  .quote p { font-size: .94rem; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { flex: none; }
}

/* ------------------------------------------------------------
   11. MAP PANEL — HUD cards eat the map on small screens
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .hud { padding: 8px 10px; min-width: 104px; border-radius: 10px; }
  .hud .v { font-size: 1rem; }
  .hud--3 { display: none; }
  /* the panel is short here, so 11% put the speed card on top of the
     LIVE chip in the title bar — push it clear */
  .hud--1 { top: 24%; }
  .hud--2 { top: 56%; }
  .map-alert { font-size: .74rem; padding: 8px 12px; max-width: 92%; white-space: normal; text-align: start; }
  .map-panel__bar .title { display: none; }
}

/* ------------------------------------------------------------
   12. LARGE SCREENS — stop the content stretching thin
   ------------------------------------------------------------ */
@media (min-width: 1600px) {
  :root { --maxw: 1340px; }
  .hero h1 { font-size: 4.4rem; }
}

/* ============================================================
   FLEET SAVINGS CALCULATOR
   ============================================================ */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc > * { min-width: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-xs);
}
.calc__field { margin-bottom: 22px; }
.calc__field:last-child { margin-bottom: 0; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.calc__label span:first-child { font-size: .92rem; font-weight: 600; color: var(--text); }
.calc__label output {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--blue);
}
.calc__hint { display: block; font-size: .8rem; color: var(--text-3); margin-top: 6px; }

.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 99px; background: var(--surface-3); outline: none;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); border: 4px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 4px solid #fff;
  background: var(--blue); box-shadow: var(--shadow-sm); cursor: pointer;
}
.calc input[type="number"] {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; font-size: .96rem;
}
.calc input[type="number"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(151,6,23,.12); }

.calc__opts { display: grid; gap: 10px; margin-top: 4px; }
.calc__opt {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; transition: border-color .3s, background .3s;
}
.calc__opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.calc__opt input { margin-top: 3px; accent-color: var(--blue); width: 17px; height: 17px; flex: none; }
.calc__opt b { display: block; font-size: .92rem; }
.calc__opt span { display: block; font-size: .81rem; color: var(--text-3); margin-top: 2px; }

/* ---- results ---- */
.calc__result {
  background: linear-gradient(165deg, #fcf6f6, #fff);
  border: 1px solid #e4cfd2; border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px); position: sticky; top: 100px;
}
@media (max-width: 900px) { .calc__result { position: static; } }
.calc__headline { font-family: var(--font-display); font-weight: 700; line-height: 1; }
.calc__headline .big {
  display: block; font-size: clamp(2.3rem, 6vw, 3.4rem);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc__headline .cur { font-size: .9rem; color: var(--text-3); font-weight: 500; letter-spacing: .06em; }

.calc__rows { margin: 24px 0 4px; display: grid; gap: 13px; }
.calc__row { font-size: .88rem; }
.calc__row .t { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.calc__row .t b { font-family: var(--font-display); font-weight: 600; }
.calc__track { height: 6px; border-radius: 99px; background: #ece3e4; overflow: hidden; }
.calc__track i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .5s var(--e-out); }

.calc__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media (max-width: 420px) { .calc__split { grid-template-columns: 1fr; } }
.calc__stat { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 14px; }
.calc__stat .k { font-size: .72rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.calc__stat .v { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

.calc__verdict {
  margin-top: 20px; padding: 13px 16px; border-radius: var(--r-md);
  font-size: .89rem; line-height: 1.55;
}
.calc__verdict--good    { background: #edf7ed; border: 1px solid #c8e6c9; color: #2e7d32; }
.calc__verdict--ok      { background: #fbeff0; border: 1px solid #efc9cd; color: #970617; }
.calc__verdict--warn    { background: #fff8e6; border: 1px solid #f6dfae; color: #a15c00; }
.calc__verdict--neutral { background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }

.calc__note { margin-top: 16px; font-size: .78rem; color: var(--text-3); line-height: 1.6; }

/* ============================================================
   GLOSSARY
   ============================================================ */
.gloss-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.gloss-nav a {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-mono); font-size: .84rem; color: var(--text-2);
  transition: all .3s var(--e-out);
}
.gloss-nav a:hover { border-color: var(--blue); color: var(--blue); }
.gloss-nav a.off { opacity: .32; pointer-events: none; }

.gloss-group { margin-bottom: 40px; scroll-margin-top: 100px; }
.gloss-group > h2 {
  font-size: 1.5rem; color: var(--blue); padding-bottom: 10px;
  border-bottom: 2px solid var(--line); margin-bottom: 20px;
}
.gloss-item {
  padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px;
}
.gloss-item:last-child { border-bottom: 0; }
/* Each term is its own anchor target — answer engines link straight to it,
   so the heading must not land under the sticky header. */
.gloss-item { scroll-margin-top: 100px; }
.gloss-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.gloss-item p { color: var(--text-2); font-size: .95rem; max-width: 74ch; }
.gloss-item .also { margin-top: 10px; font-size: .82rem; color: var(--text-3); }
.gloss-item .also a { color: var(--blue); font-weight: 500; }

/* ============================================================
   IOT SIGNAL CHAIN  (assets/js/iot-chain.js)
   Four stages: sense → transmit → decide → act. The packet is
   driven by animateMotion inside the SVG; everything here is the
   frame around it plus the staged card lift.
   ============================================================ */
.chain-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.chain-wrap svg.chain { width: 100%; height: auto; display: block; border-radius: 14px; }

/* the dashes crawl toward the next stage */
.chain-wire { animation: chainFlow 1.1s linear infinite; }
@keyframes chainFlow { to { stroke-dashoffset: -14; } }

/* each card breathes as the packet reaches it — --d is set per card */
.chain-card { animation: chainLift 8s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes chainLift {
  0%, 14%  { transform: translateY(0); }
  4%       { transform: translateY(-5px); }
  100%     { transform: translateY(0); }
}
.chain-alert { animation: chainAlert 8s ease-in-out infinite; }
@keyframes chainAlert {
  0%, 74%   { opacity: 0; }
  80%, 96%  { opacity: 1; }
  100%      { opacity: 0; }
}

/* Below tablet the four-across diagram is unreadable, so it scrolls
   sideways at a legible size rather than shrinking to nothing. */
@media (max-width: 820px) {
  .chain-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chain-wrap svg.chain { width: 900px; max-width: none; }
}
.chain-hint { display: none; margin-top: 10px; font-size: .8rem; color: var(--text-3); }
@media (max-width: 820px) { .chain-hint { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .chain-wire, .chain-card, .chain-alert { animation: none; }
  .chain-alert { opacity: 1; }
  .chain-packet { display: none; }
}

/* ============================================================
   IOT — HOW IT WORKS steps, BENEFITS, SPEC TABLE
   ============================================================ */
.hiw { display: grid; gap: 18px; }
@media (min-width: 860px) { .hiw { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.hiw__step {
  position: relative;
  padding: 24px 24px 24px 68px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color .35s, box-shadow .35s, transform .35s;
}
.hiw__step:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.hiw__step .n {
  position: absolute; inset-inline-start: 22px; top: 24px;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #970617, #c41a2e);
  color: #fff; font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
}
.hiw__step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.hiw__step p { color: var(--text-2); font-size: .93rem; }
.hiw__step .spec {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  color: var(--text-3); text-transform: uppercase;
}

/* benefits — the outcome first, the mechanism underneath */
.bene { display: grid; gap: 16px; }
@media (min-width: 700px) { .bene { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bene { grid-template-columns: repeat(3, 1fr); } }
.bene__item {
  padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.bene__item:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bene__fig {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  line-height: 1.1; color: var(--blue); letter-spacing: -.02em;
}
.bene__item h3 { font-size: .99rem; margin: 10px 0 8px; }
.bene__item p { color: var(--text-2); font-size: .9rem; }
.bene__item .how {
  display: block; margin-top: 12px; font-size: .82rem; color: var(--text-3);
  padding-top: 10px; border-top: 1px solid var(--line);
}

/* specification table */
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table caption { text-align: start; color: var(--text-3); font-size: .85rem; padding-bottom: 12px; }
.spec-table th, .spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th {
  text-align: start; width: 34%; color: var(--text); font-weight: 600;
  background: var(--surface-2);
}
.spec-table td { color: var(--text-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
@media (max-width: 620px) {
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { border-bottom: 0; padding-bottom: 6px; }
  .spec-table td { padding-top: 0; }
}

/* ============================================================
   CODE BLOCKS  (developers.html)
   Illustrative payload shapes, not a live reference — kept
   visually distinct from prose so nobody copy-pastes them as
   working endpoints.
   ============================================================ */
.code {
  background: #1a1211; border-radius: 14px; padding: 18px 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.7;
  color: #e4cfd2; border: 1px solid #2b211f;
}
.code .c { color: #9a8688; }          /* comment  */
.code .k { color: #d9808b; }          /* key      */
.code .s { color: #9fe0a8; }          /* string   */
.code .n { color: #f4a445; }          /* number   */
.code__cap {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.code__cap b { color: var(--blue); font-weight: 600; }

/* capability rows — API and integrations */
.cap-row {
  display: grid; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .cap-row { grid-template-columns: 250px 1fr; align-items: start; } }
.cap-row:last-child { border-bottom: 0; }
.cap-row h3 { font-size: .99rem; }
.cap-row p { color: var(--text-2); font-size: .93rem; }
.cap-row .tag {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-3);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
}
.cap-row .tag--live { background: #eef8ee; color: #3d8c41; }
.cap-row .tag--build { background: #fdf4e8; color: #b9761f; }

/* partner tiers */
.tier {
  padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  display: flex; flex-direction: column;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.tier:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier--featured { border-color: var(--blue); box-shadow: var(--shadow-md); }
.tier__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.tier__for { margin-top: 6px; color: var(--text-3); font-size: .86rem; }
.tier ul { margin-top: 18px; display: grid; gap: 10px; }
.tier ul li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text-2); font-size: .91rem;
}
.tier ul li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--green); }
.tier .btn { margin-top: auto; }
.tier ul + .btn { margin-top: 24px; }

/* Narrow phones: keep the hero eyebrow pill on one line. */
@media (max-width: 420px) {
  .eyebrow { font-size: .6rem; letter-spacing: .08em; padding: 6px 11px; }
}
