/* ══════════════════════════════════════════════════
   entregga driver — landing page styles

   This file is the SINGLE source of truth for color.
   Every hex literal in the project lives in :root below;
   the JSX files reference them only as var(--token)
   through js/tokens.jsx. If you are adding a color,
   add it here first.
══════════════════════════════════════════════════ */

:root {
  /* ── surfaces ── */
  --cream:      #FBF7F1;   /* page background (warm off-white, matches the app) */
  --cream-2:    #F5F0E8;   /* alternating band */
  --surface:    #FFFFFF;   /* cards */
  --line:       #ECE5DB;   /* hairline borders */
  --line-strong:#DFD6C8;   /* borders that need to read on white */

  /* ── text (contrast-checked against --cream) ── */
  --ink:        #2A2724;   /* headings, values          13.9:1 */
  --ink-2:      #211E1B;   /* the video chapter's deeper dark band */
  --ink-soft:   #5C5650;   /* body copy                  6.8:1 */
  --muted:      #6F6862;   /* captions, labels           5.1:1 */

  /* ── brand ── */
  --brand:      #E11D48;   /* crimson: actions + "RASTREANDO" state */
  --brand-deep: #BE123C;   /* small text on light (5.9:1) + hover */
  --brand-tint: #FCE7EC;   /* icon tile background */
  --brand-soft: #F585A5;   /* the kicker crimson that survives on ink */

  /* ── status ── */
  --green:      #0E9F6F;
  --green-tint: #E7F7F0;
  --blue:       #2E6FE8;
  --blue-tint:  #E8F0FE;
  --amber:      #C77A08;
  --amber-tint: #FEF3E2;
  --red:        #D93A40;
  --red-tint:   #FCE9E9;
  --violet:     #6D33D6;
  --violet-tint:#F1EBFE;
  --cyan:       #0E7C99;
  --cyan-tint:  #E3F3F8;

  /* ── third-party brand colors — never remapped ── */
  --wa:         #25D366;

  /* ── radii ── */
  --r-chip:  12px;
  --r-card:  16px;
  --r-btn:   20px;
  --r-phone: 40px;
  --r-pill:  99px;

  /* ── elevation (warm-tinted shadows, not neutral black) ── */
  --sh-card:       0 1px 2px rgba(42,39,36,.04), 0 8px 24px rgba(42,39,36,.05);
  --sh-card-hover: 0 2px 6px rgba(42,39,36,.06), 0 20px 44px rgba(42,39,36,.09);
  --sh-phone:      0 8px 20px rgba(42,39,36,.08), 0 40px 90px rgba(42,39,36,.16);
  --sh-nav:        0 1px 0 var(--line);

  --font-sans: 'Segoe UI', 'Segoe UI Variable', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* ── layout metrics ──
     Height of the fixed navbar. Three things depend on it staying in sync
     (the bar itself, the top of the mobile menu, and scroll-margin-top on
     every anchor target), so it lives here rather than in three places. */
  --nav-h: 72px;

  /* Width of the phone mockup. Sized by width, never transform:scale() —
     a scaled frame keeps its pre-scale layout box and crushes the app's
     11px labels below legibility. */
  --phone-w: 300px;

  /* Single horizontal gutter for the whole page. */
  --sec-pad-x: 32px;

  /* Safe-area insets (notch / home indicator), 0 on everything else. */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ══════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: `clip` (with `hidden` as the legacy fallback) — hidden turns
   body into a scroll container, which silently BREAKS position:sticky for
   every descendant. The sticky scenes depend on clip. */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Anchor targets sit under the fixed navbar without this. */
section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* One gutter for every band of the page (longhand so each section's
   inline `padding: '110px 32px'` keeps owning the vertical rhythm). */
section, footer {
  padding-left:  calc(var(--sec-pad-x) + var(--safe-l)) !important;
  padding-right: calc(var(--sec-pad-x) + var(--safe-r)) !important;
}

/* Kill the 300ms tap delay and the grey flash Android paints over taps. */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Body scroll lock while the mobile menu is open (set from js/layout.jsx). */
body.menu-open { overflow: hidden; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

strong, b { font-weight: 700; }

/* ── Logo ──────────────────────────────────────────
   assets/images/logo.png is pure white + alpha (built for the old dark
   theme). brightness(0) repaints it near-black for the light chrome;
   the dark footer keeps the original white artwork untouched. */
.logo-ink { filter: brightness(0); opacity: .86; }

/* ══════════════════════════════════════════════════
   TYPOGRAPHY — the hierarchy every chapter follows:
   kicker → headline → sub → interface.
══════════════════════════════════════════════════ */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-deep);
}
.h-display {
  font-size: clamp(38px, 5.6vw, 72px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.04; color: var(--ink);
  text-wrap: balance;
}
.h-chap {
  font-size: clamp(30px, 4vw, 52px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.08; color: var(--ink);
  text-wrap: balance;
}
.sub {
  font-size: clamp(15.5px, 1.4vw, 19px); color: var(--ink-soft);
  line-height: 1.65; max-width: 56ch; text-wrap: pretty;
}

/* ══════════════════════════════════════════════════
   BUTTONS — every :hover in this file lives behind
   @media (hover:hover): a touch browser resolves :hover on tap
   and never clears it, stranding buttons in their hover state.
   :active stays ungated — it IS the tap feedback.
══════════════════════════════════════════════════ */
.btn-brand { background: var(--brand); color: #fff; border: none; cursor: pointer; font-family: inherit; font-weight: 600; transition: background .18s, transform .15s, box-shadow .2s; }
.btn-brand:active { transform: scale(.97); transition-duration: .06s; }

.btn-ghost  { background: var(--surface); cursor: pointer; font-family: inherit; font-weight: 600; border: 1.5px solid var(--line-strong); color: var(--ink); transition: border-color .18s, color .18s, background .18s; }

.btn-on-brand { background: #fff; color: var(--brand-deep); border: none; cursor: pointer; font-family: inherit; font-weight: 700; transition: transform .15s, box-shadow .2s; }
.btn-on-brand:active { transform: scale(.97); transition-duration: .06s; }
.btn-ghost-on-brand { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); cursor: pointer; font-family: inherit; font-weight: 600; transition: background .18s, border-color .18s; }

.btn-lg {
  padding: 15px 28px; border-radius: var(--r-btn); font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; min-height: 48px;
}

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before { content: ''; position: absolute; top: 0; left: -100%; width: 55%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-22deg); transition: left .55s ease; pointer-events: none; }

/* ── Nav ─────────────────────────────────────────── */
.nav-lnk { position: relative; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; padding-bottom: 4px; transition: color .2s; }
.nav-lnk::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left center; transition: transform .26s cubic-bezier(.16,1,.3,1); border-radius: 2px; }

.nav-shell { padding-left: calc(var(--sec-pad-x) + var(--safe-l)); padding-right: calc(var(--sec-pad-x) + var(--safe-r)); }
.nav-inner { height: var(--nav-h); }
.nav-toggle { width: 44px; height: 44px; margin-right: -10px; }   /* ≥44px touch target, optically flush */

/* The mobile menu can be taller than a short phone in landscape, so it
   scrolls itself rather than pushing content off an unscrollable overlay. */
.nav-menu {
  top: var(--nav-h);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(26px + var(--safe-b));
}
.nav-scrim { position: fixed; inset: 0; z-index: 997; background: rgba(42,39,36,.28); border: 0; }

/* ── Floating WhatsApp ── */
.wa-fab { transition: transform .2s ease; bottom: calc(24px + var(--safe-b)); right: calc(24px + var(--safe-r)); }

@media (hover: hover) and (pointer: fine) {
  .btn-brand:hover  { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(225,29,72,.28); }
  .btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
  .btn-on-brand:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
  .btn-ghost-on-brand:hover { background: rgba(255,255,255,.14); border-color: #fff; }
  .btn-shine:hover::before { left: 165%; }
  .nav-lnk:hover { color: var(--ink); }
  .nav-lnk:hover::after { transform: scaleX(1); }
  .wa-fab:hover { transform: scale(1.1); }
  .wa-link:hover { opacity: .72; }
  .play-btn:hover { transform: translate(-50%,-50%) scale(1.06); }
  .op-tabs button:hover:not(.on) { border-color: rgba(255,255,255,.45); color: #fff; }
  .tap-tile:hover { background: var(--cream); border-color: var(--line-strong); }
}

/* Kept for the phone mockup's in-app buttons. */
.tap-tile { cursor: pointer; transition: background .2s, border-color .2s; }
.tap-tile:active { background: var(--cream); border-color: var(--line-strong); }

/* ── Scroll reveal ───────────────────────────────── */
.rv {
  opacity:0; transform:translate3d(0,20px,0);
  transition:opacity .88s cubic-bezier(.22,1,.36,1),transform .88s cubic-bezier(.22,1,.36,1);
}
.rv.in { opacity:1; transform:translate3d(0,0,0); }
.rv.in.s1{transition-delay:.05s}.rv.in.s2{transition-delay:.10s}.rv.in.s3{transition-delay:.15s}
.rv.in.s4{transition-delay:.20s}.rv.in.s5{transition-delay:.25s}.rv.in.s6{transition-delay:.30s}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeUp    { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes heroRise  { from{opacity:0;transform:translateY(72px)} to{opacity:1;transform:translateY(0)} }
@keyframes floatY    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes pulseRing { 0%{transform:scale(1);opacity:.75} 100%{transform:scale(2.2);opacity:0} }
@keyframes waPulse   { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }
@keyframes menuSlide { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
@keyframes menuItemIn{ from{opacity:0;transform:translateX(-14px)} to{opacity:1;transform:translateX(0)} }
@keyframes liveBlink { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes tabIn     { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes trackPulse{ 0%,100%{box-shadow:0 0 0 0 rgba(225,29,72,.45)} 50%{box-shadow:0 0 0 12px rgba(225,29,72,0)} }
@keyframes counterTick { from{transform:translateY(8px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes flowDot   { 0%{left:0;opacity:0} 14%{opacity:1} 86%{opacity:1} 100%{left:calc(100% - 8px);opacity:0} }
@keyframes flowDotV  { 0%{top:0;opacity:0} 14%{opacity:1} 86%{opacity:1} 100%{top:calc(100% - 8px);opacity:0} }
@keyframes toastIn   { 0%{opacity:0;transform:translateY(-8px)} 7%,72%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(-4px)} }
@keyframes phoneCopyIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--green); animation:liveBlink 1.3s ease-in-out infinite; }

/* ══════════════════════════════════════════════════
   CHAPTERS — shared skeleton
══════════════════════════════════════════════════ */
.chap { padding-top: 110px; padding-bottom: 110px; position: relative; }
.chap-inner { max-width: 1180px; margin: 0 auto; }
.chap-inner-narrow { max-width: 980px; }
.chap-head {
  max-width: 720px; margin: 0 auto 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.chap-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px;
  align-items: center; max-width: 1060px; margin: 0 auto;
}
.chap-split-rev { grid-template-columns: .95fr 1.05fr; }
.chap-split .h-chap { margin: 14px 0 16px; }
.chap-visual { display: flex; justify-content: center; }

/* Dark chapters — the operation's side of the product. */
.chap-dark { background: var(--ink); }
.chap-dark-2 { background: var(--ink-2); }
.chap-dark .h-chap { color: #fff; }
.chap-dark .sub { color: rgba(255,255,255,.72); }
.chap-dark .kicker { color: var(--brand-soft); }

/* Hard-coded line breaks tuned for wide headlines strand single
   words on a phone. */
.br-md {}

/* ══════════════════════════════════════════════════
   CH.01 — HERO
══════════════════════════════════════════════════ */
.hero-chap {
  background: var(--cream);
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px));
  overflow: hidden;
  position: relative;
}
.hero-chap::before {
  content: none;
}
.hero-copy {
  position: relative; max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-copy .kicker { animation: fadeUp .6s ease both; }
.hero-copy .h-display { animation: fadeUp .7s .06s ease both; }
.hero-copy .sub { animation: fadeUp .7s .14s ease both; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; animation: fadeUp .7s .22s ease both; }

/* The device enters cropped by the fold: the top of the tracking
   screen — live counters running — and nothing else. Curiosity
   does the rest. */
.phone-crop {
  position: relative;
  margin-top: clamp(34px, 6vh, 64px);
  height: clamp(300px, 44vh, 440px);
  overflow: hidden;
  display: flex; justify-content: center;
  pointer-events: none;
}
.phone-crop .phone-frame { animation: heroRise 1.1s cubic-bezier(.16,1,.3,1) .25s both; }

/* ── Phone hardware (shared) ── */
.phone-frame  { width: var(--phone-w); }
.phone-screen { height: calc(var(--phone-w) * 2.1333); }   /* the 300 × 640 frame ratio */

/* The first fold uses documentary field photography and restrained geometry.
   The real product remains the proof, with no portrait/avatar treatment. */
.hero-chap { min-height: auto; display: flex; align-items: center; text-align: left; padding-bottom: clamp(58px, 7vh, 84px); }
.hero-chap::before { left: 76%; top: 8%; width: 660px; height: 660px; opacity: .56; }
.hero-shell {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(460px,520px);
  align-items: center; gap: clamp(30px, 4vw, 56px);
}
.hero-copy { max-width: 590px; margin: 0; align-items: flex-start; }
.hero-copy .h-display { font-size: clamp(42px, 4.9vw, 66px); }
.hero-copy .sub { max-width: 540px; }
.hero-copy .hero-ctas { justify-content: flex-start; }

.hero-product-visual {
  position: relative; width:520px; max-width:100%; height:500px;
  justify-self: center; isolation: isolate; animation: fadeUp .85s .12s ease both;
}
.hero-photo-frame {
  position:absolute; inset:0; z-index:1; overflow:hidden;
  border:1px solid var(--line-strong); border-radius:24px; background:var(--surface);
  box-shadow:0 28px 72px rgba(42,39,36,.16);
}
.hero-field-photo {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 58%;
}
.hero-photo-shade {
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,rgba(42,39,36,.01) 50%,rgba(42,39,36,.58) 100%);
}
.hero-photo-label {
  position:absolute; left:22px; right:22px; bottom:18px; display:flex; align-items:center; gap:10px; color:#fff;
}
.hero-photo-label .live-dot { background:#fff; animation:none; flex-shrink:0; }
.hero-photo-label div { display:flex; flex-direction:column; gap:2px; }
.hero-photo-label strong { font-size:12px; letter-spacing:.01em; }
.hero-photo-label span:last-child { color:rgba(255,255,255,.82); font-size:10px; }
.hero-phone-wrap {
  --phone-w: 238px;
  position:absolute; left:0; bottom:0; z-index:4;
  transform:none; transform-origin:bottom left; pointer-events:none;
}

/* ══════════════════════════════════════════════════
   CH.02 — APP EXPERIENCE
   A restrained Apple-style product reveal: one sticky device, one
   message at a time, and the scroll acting as the user's hand.
══════════════════════════════════════════════════ */
.phone-demo-scene {
  --p: 0; --intro:clamp(0,calc(var(--p) * 8),1);
  position: relative; height: 360vh; color: #fff;
  /* The stage already reserves the navbar height internally. Landing the
     anchor directly on the scene avoids losing another navbar-height of
     usable viewport, which previously clipped the device on phones. */
  scroll-margin-top:0;
  background:
    radial-gradient(circle at 73% 48%, rgba(225,29,72,.17), transparent 27%),
    linear-gradient(145deg, var(--ink) 0%, var(--ink-2) 72%);
}
#experiencia { scroll-margin-top:0; }
.phone-demo-scene::before {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.26;
  background:linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.08) 50%, transparent 50.1%);
}
.phone-demo-stage {
  position:sticky; top:0; z-index:1;
  width:100%; max-width:1240px; height:100vh; height:100svh; margin:0 auto;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.82fr);
  align-items:center; gap:clamp(44px,7vw,112px);
  padding:calc(var(--nav-h) + 26px) var(--sec-pad-x) 34px;
  overflow:hidden;
}
.phone-demo-copy {
  max-width:600px; min-width:0;
}
.phone-demo-copy > .kicker { color:var(--brand-soft); }
.phone-demo-copy-state {
  min-height:270px; padding-top:20px;
  animation:phoneCopyIn .55s cubic-bezier(.16,1,.3,1) both;
}
.phone-demo-step {
  display:block; margin-bottom:12px; color:rgba(255,255,255,.58);
  font-size:12px; font-weight:750; letter-spacing:.12em; text-transform:uppercase;
}
.phone-demo-copy-state .h-chap {
  max-width:590px; color:#fff; margin:0 0 18px;
  font-size:clamp(38px,4.2vw,60px); line-height:1.03;
}
.phone-demo-copy-state p {
  max-width:520px; color:rgba(255,255,255,.68);
  font-size:clamp(15px,1.4vw,18px); line-height:1.65;
}
.phone-demo-progress { display:flex; gap:8px; margin-top:4px; }
.phone-demo-progress span {
  width:28px; height:3px; border-radius:99px; background:rgba(255,255,255,.2);
  transition:width .35s ease, background .35s ease;
}
.phone-demo-progress span.on { width:54px; background:var(--brand-soft); }
.phone-demo-hint {
  display:inline-block; margin-top:18px; color:rgba(255,255,255,.4);
  font-size:11px; letter-spacing:.08em; text-transform:uppercase;
}
.phone-demo-mobile-hint { display:none; }
.phone-demo-device-wrap {
  position:relative; display:flex; align-items:center; justify-content:center; min-width:0; pointer-events:none;
  opacity:var(--intro);
  transform:translate3d(0,calc((1 - var(--intro)) * 24px),0);
  transform-origin:50% 58%; will-change:transform,opacity;
}
.phone-demo-orbit {
  position:absolute; width:min(42vw,520px); aspect-ratio:1; border-radius:50%;
  border:1px solid rgba(255,255,255,.1);
  background:radial-gradient(circle,rgba(225,29,72,.09),transparent 66%);
  opacity:calc(.58 + var(--intro) * .22);
}
.phone-demo-orbit::before,
.phone-demo-orbit::after { content:''; position:absolute; border-radius:50%; border:1px solid rgba(255,255,255,.065); }
.phone-demo-orbit::before { inset:12%; }
.phone-demo-orbit::after { inset:28%; }
.phone-demo-device {
  --phone-w:clamp(260px,min(27vw,37.5vh),340px);
  position:relative; z-index:1;
}
.phone-demo-device .phone-frame { box-shadow:0 24px 56px rgba(0,0,0,.42) !important; }
.phone-demo-screen-state {
  position:absolute; inset:0; z-index:1; opacity:0;
  transform:translate3d(0,9px,0) scale(.997);
  transition:opacity .42s cubic-bezier(.16,1,.3,1),transform .42s cubic-bezier(.16,1,.3,1);
  will-change:opacity,transform;
}
.phone-demo-screen-state.is-active { z-index:2; opacity:1; transform:translate3d(0,0,0) scale(1); }

/* ══════════════════════════════════════════════════
   CH.02 — FLOW
══════════════════════════════════════════════════ */
.flow-grid {
  display: grid; grid-template-columns: 1fr 64px auto 64px 1fr;
  gap: 18px; align-items: center; justify-items: center;
  max-width: 900px; margin: 0 auto;
}
.flow-item { display: flex; flex-direction: column; align-items: center; }
.flow-cap { font-size: 12px; color: var(--muted); margin-top: 12px; font-weight: 600; text-align: center; }
.flow-node {
  width: 56px; height: 56px; border-radius: 17px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(225,29,72,.32);
}
.flow-conn {
  position: relative; width: 100%; height: 2px; align-self: center;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.flow-conn::after {
  content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand);
  animation: flowDot 2.4s ease-in-out infinite;
}

/* Interface fragments — the app reduced to its essence. */
.frag {
  width: 232px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 13px 14px; text-align: left;
}
.frag-head { display: flex; align-items: center; gap: 8px; }
.frag-head strong { font-size: 12.5px; color: var(--ink); }
.frag-badge { width: 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.frag-live { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .06em; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.frag-rows { display: flex; gap: 11px; margin-top: 11px; font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.frag-rows span { display: inline-flex; gap: 4px; align-items: center; }
.frag-dots { display: inline-flex; gap: 4px; }
.frag-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.frag-driver { display: flex; gap: 9px; margin-top: 11px; align-items: center; }
.frag-avatar { width: 28px; height: 28px; border-radius: 9px; background: var(--cream-2); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.frag-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.frag-sub { font-size: 10px; color: var(--muted); margin-top: 1px; }
.frag-ok { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   CH.03 — STICKY SCENE (movimento → informação)
   The section is 3 viewports tall; the stage sticks while
   scroll scrubs --p (set by useScene, no re-renders).
══════════════════════════════════════════════════ */
.scene { position: relative; height: 300vh; }
.scene-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--cream);
}
.mv-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px;
  align-items: center; width: 100%; max-width: 1080px; margin: 0 auto;
}
.mv-copy .h-chap { margin: 14px 0 30px; }
.mv-steps { display: flex; flex-direction: column; gap: 4px; }
.step-line { padding: 12px 0 12px 18px; border-left: 2px solid var(--line); opacity: .35; transition: opacity .35s, border-color .35s; }
.step-line.on { opacity: .68; }
.step-line.cur { opacity: 1; border-color: var(--brand); }
.step-t { font-size: 16px; font-weight: 700; color: var(--ink); }
.step-d { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }

/* Original campaign artwork for the tracking chapter. */
.movement-product-art {
  position:relative; border:1px solid var(--line); border-radius:20px; overflow:hidden;
  background:var(--surface); box-shadow:0 30px 70px rgba(42,39,36,.16);
}
.movement-product-shot { position:relative; height:330px; overflow:hidden; background:#f0f0f0; }
.movement-product-shot img {
  width:100%; height:100%; object-fit:cover; object-position:center; display:block;
  transform:scale(1); transition:filter .35s, transform .55s cubic-bezier(.16,1,.3,1);
}
.movement-product-art[data-step="0"] .movement-product-shot img { transform:scale(1); }
.movement-product-art[data-step="1"] .movement-product-shot img { transform:scale(1.02); }
.movement-product-art[data-step="2"] .movement-product-shot img { transform:scale(1.04); }
.movement-product-art[data-step="3"] .movement-product-shot img { transform:scale(1.01); }
.movement-product-label {
  position:absolute; left:16px; top:16px; display:flex; align-items:center; gap:8px;
  padding:9px 13px; border:1px solid var(--line); border-radius:var(--r-pill);
  background:rgba(255,255,255,.96); box-shadow:var(--sh-card); color:var(--ink); font-size:11px;
}
.movement-product-label .live-dot { width:6px; height:6px; }
.movement-product-metrics {
  position:absolute; left:14px; right:14px; bottom:14px; display:flex; align-items:center;
  justify-content:space-around; gap:8px; padding:11px 14px; border:1px solid var(--line);
  border-radius:14px; background:rgba(255,255,255,.96); box-shadow:var(--sh-card);
  color:var(--muted); font-size:10px;
}
.movement-product-metrics strong { color:var(--ink); font-size:15px; margin-right:3px; }
.movement-product-metrics i { width:1px; height:20px; background:var(--line); }

/* ══════════════════════════════════════════════════
   CH.04 — GEOLOCATION (cinematic map)
══════════════════════════════════════════════════ */
.geo-stage {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-card-hover);
}
.geo-stage > svg { display: block; width: 100%; height: clamp(320px, 56vh, 520px); }
.geo-product-stage { height:clamp(380px, 58vh, 540px); background:#eef0ef; }
.geo-product-shot { position:absolute; inset:0; overflow:hidden; }
.geo-product-shot img {
  width:100%; height:100%; object-fit:cover; object-position:center; display:block;
  filter:saturate(.96) contrast(1.01);
}
.geo-product-shade { position:absolute; inset:0; background:linear-gradient(180deg,transparent 58%,rgba(33,30,27,.16)); pointer-events:none; }
.geo-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-chip);
  padding: 9px 13px; box-shadow: var(--sh-card);
}
.geo-chip-ic { color: var(--brand); display: flex; }
.geo-chip strong { display: block; font-size: 12.5px; color: var(--ink); }
.geo-chip em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.geo-chip-addr { left: 16px; bottom: 16px; }
.geo-chip-time { right: 16px; bottom: 16px; }
.geo-toast {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; gap: 7px; align-items: center;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  padding: 8px 13px; border-radius: var(--r-pill);
  animation: toastIn 4.6s ease both;
}

/* ══════════════════════════════════════════════════
   CH.05 — EVIDENCE
══════════════════════════════════════════════════ */
.evid-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.evid-item { display: flex; gap: 12px; align-items: flex-start; }
.evid-check { width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.evid-item strong { display: block; font-size: 15px; color: var(--ink); }
.evid-item em { font-style: normal; font-size: 13px; color: var(--muted); }

.evidence-product-art {
  position:relative; width:min(620px,100%); background:var(--surface);
  border:1px solid var(--line); border-radius:20px; box-shadow:0 30px 70px rgba(42,39,36,.16);
  overflow:visible;
}
.evidence-product-shot { height:380px; overflow:hidden; border-radius:20px; background:#f0f0f0; }
.evidence-product-shot img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.evidence-product-badge {
  position:absolute; left:-18px; bottom:-22px; display:flex; align-items:center; gap:10px;
  padding:11px 15px 11px 10px; border:1px solid var(--line); border-radius:15px;
  background:#fff; box-shadow:0 16px 36px rgba(42,39,36,.14);
}
.evidence-product-badge > span { width:34px; height:34px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:var(--green); color:#fff; }
.evidence-product-badge div { display:flex; flex-direction:column; gap:2px; }
.evidence-product-badge strong { font-size:11px; color:var(--ink); }
.evidence-product-badge small { font-size:9px; color:var(--muted); }

/* ══════════════════════════════════════════════════
   CH.06 — BACKGROUND (lock screen + diagnostics note)
══════════════════════════════════════════════════ */
.lockscreen {
  position: absolute; inset: 0; padding: 0 12px;
  background:
    radial-gradient(circle at 18% 16%, rgba(225,29,72,.48), transparent 32%),
    radial-gradient(circle at 84% 72%, rgba(14,159,111,.34), transparent 38%),
    linear-gradient(155deg, var(--ink-soft) 0%, var(--ink) 48%, var(--ink-2) 100%);
  display: flex; flex-direction: column; align-items: center;
  isolation: isolate;
}
.lockscreen::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 68% 58%, rgba(0,0,0,.9), transparent 72%);
  mask-image: radial-gradient(circle at 68% 58%, rgba(0,0,0,.9), transparent 72%);
}
.lockscreen::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 150px; height: 150px; right: -76px; bottom: 82px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 30px rgba(255,255,255,.055), 0 0 0 62px rgba(255,255,255,.035);
}
.lock-clock {
  margin-top: 92px; font-size: 58px; font-weight: 700; letter-spacing: -.03em;
  color: #fff; line-height: 1; text-shadow: 0 3px 18px rgba(0,0,0,.22);
}
.lock-date { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 7px; font-weight: 600; }
.notif-card {
  width: 100%; margin-top: 26px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 16px;
  padding: 11px 12px; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--sh-card); text-align: left;
}
.notif-card.notif-dim { opacity: .72; margin-top: 8px; }
.notif-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-ic-green { background: var(--green); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 11.5px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.notif-title em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 10px; }
.notif-text { font-size: 11px; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }

.diag-note {
  margin-top: 30px; max-width: 430px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px 8px; box-shadow: var(--sh-card);
}
.diag-note-head { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.diag-note-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.diag-note-ic { width: 24px; height: 24px; border-radius: 8px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diag-note-ok { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   CH.07 — OPERATION (dark) + CH.08 — VIDEO
══════════════════════════════════════════════════ */
.op-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.op-tabs button {
  padding: 9px 18px; min-height: 44px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: rgba(255,255,255,.66);
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .22s;
}
.op-tabs button.on { background: #fff; border-color: #fff; color: var(--ink); }
.op-frame {
  max-width: 1040px; margin: 0 auto;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.42);
}
.op-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); }
.op-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.op-cap { text-align: center; margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.op-cap strong { color: rgba(255,255,255,.88); }

/* The five captures have different aspect ratios, so the frame keeps a
   FIXED height and letterboxes each one (contain) against its own dark
   chrome — switching tabs must not make the page jump. On mobile the
   frame becomes a pannable viewport instead (see the 760px tier). */
.dash-viewport { height: clamp(340px, 52vh, 560px); }
.dash-viewport img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dash-hint { display: none !important; text-align: center; margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); align-items: center; justify-content: center; gap: 6px; }

.video-stage {
  position: relative; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.75) blur(1px); transform: scale(1.04); }
.video-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.55) 100%); }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 86px; height: 86px; border-radius: 50%; border: none;
  background: #fff; color: var(--brand); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.45); transition: transform .25s;
}
.play-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.32); animation: pulseRing 2.1s ease-out infinite; z-index: -1; }
.play-btn svg { margin-left: 4px; }
.video-caption { position: absolute; left: 18px; bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.75); text-transform: uppercase; }
.video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: rgba(18,16,14,.9); padding: 24px; text-align: center; animation: fadeUp .35s ease;
}
.video-soon-t { font-size: 17px; font-weight: 700; color: #fff; }

/* ══════════════════════════════════════════════════
   CH.09 — ECOSYSTEM + CH.10 — BENEFITS
   Typography and hairlines, deliberately no cards.
══════════════════════════════════════════════════ */
.eco-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  max-width: 1080px; margin: 0 auto;
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.eco-col { padding: 38px 30px; border-left: 1px solid var(--line); }
.eco-col:first-child { border-left: none; }
.eco-num { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.eco-name { font-size: 20px; font-weight: 800; color: var(--ink); margin: 10px 0 8px; letter-spacing: -.01em; }
.eco-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.eco-note { text-align: center; margin: 34px auto 0; font-size: 13.5px; color: var(--muted); max-width: 560px; line-height: 1.6; }

.ben-list { border-bottom: 1px solid var(--line-strong); }
.ben-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: baseline;
  padding: 24px 4px; border-top: 1px solid var(--line-strong);
}
.ben-word { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--ink); letter-spacing: -.015em; display: flex; align-items: baseline; gap: 14px; }
.ben-num { font-size: 11.5px; font-weight: 700; color: var(--brand); letter-spacing: .06em; }
.ben-copy { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════ */
::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:var(--cream-2)}
::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:var(--r-pill);border:3px solid var(--cream-2)}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}

::selection { background: var(--brand-tint); color: var(--brand-deep); }

/* Horizontal tab strip → swipeable rail on phones. */
.tab-scroller { scrollbar-width: none; -ms-overflow-style: none; }
.tab-scroller::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  /* Scenes collapse: no scrubbing, chapter rendered fully revealed. */
  .scene { height: auto !important; }
  .scene-stage { position: relative; height: auto; min-height: 0; padding-top: 96px; padding-bottom: 96px; }
  /* The app walkthrough keeps its scroll steps. Only its continuous
     entrance/transition motion is removed. */
  .phone-demo-device-wrap { opacity:1; transform:none; }
  .step-line { display: block !important; opacity: 1 !important; }
  .movement-product-shot img { transition: none !important; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .nav-toggle { display: none !important; }
}

/* ── Tablet / small laptop ── */
@media (max-width: 1024px) {
  :root { --sec-pad-x: 26px; }
  h1, h2, h3, p { text-wrap: balance; }
  .chap { padding-top: 88px; padding-bottom: 88px; }
  .chap-head { margin-bottom: 44px; }
  .nav-links { display: none !important; }
  .nav-toggle { display: flex !important; align-items: center !important; justify-content: center !important; }

  .hero-chap { text-align: center; }
  .hero-shell { grid-template-columns: 1fr; max-width: 760px; gap: 22px; }
  .hero-copy { align-items: center; margin: 0 auto; }
  .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-ctas { justify-content: center; }
  .hero-product-visual { width:560px; height:420px; }
  .hero-photo-frame { inset:0; }

  .phone-demo-stage { grid-template-columns:minmax(0,1fr) minmax(270px,.8fr); gap:34px; }
  .phone-demo-copy-state { min-height:250px; }
  .phone-demo-copy-state .h-chap { font-size:clamp(34px,5vw,48px); }
  .phone-demo-device { --phone-w:clamp(250px,min(31vw,36vh),300px); }

  .chap-split, .chap-split-rev { grid-template-columns: 1fr; gap: 44px; max-width: 580px; }
  /* Visual leads on a single column — the interface is the argument. */
  .chap-split .chap-visual { order: -1; }

  .flow-grid { grid-template-columns: 1fr; gap: 14px; max-width: 340px; }
  .flow-conn { width: 2px; height: 46px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); justify-self: center; }
  .flow-conn::after { left: -3px; top: 0; animation: flowDotV 2.4s ease-in-out infinite; }

  /* Sticky scene becomes a single column: title → active step → map.
     Inactive step lines hide so the stage always fits one viewport. */
  .scene { height: 260vh; }
  .mv-grid { grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
  .mv-copy { text-align: center; }
  .mv-copy .h-chap { margin: 10px 0 0; }
  .mv-steps { margin-top: 16px; min-height: 84px; }
  .step-line { display: none; }
  .step-line.cur { display: block; }
  .movement-product-shot { height:300px; }

  .eco-grid { grid-template-columns: 1fr; border-bottom: none; }
  .eco-col { border-left: none; border-bottom: 1px solid var(--line-strong); padding: 26px 4px; }

  .ben-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }

  footer { padding-top: 60px !important; padding-bottom: 28px !important; }
}

/* ── Phone ── */
@media (max-width: 760px) {
  :root { --sec-pad-x: 20px; --nav-h: 64px; }
  body { font-size: 15px; }
  .chap { padding-top: 64px; padding-bottom: 64px; }
  .chap-head { margin-bottom: 32px; }
  .chap-split, .chap-split-rev { gap: 34px; }
  /* On phones the message comes before the supporting artwork. */
  .chap-split .chap-visual { order: 0; }
  #automatico .chap-visual { order: 2; }
  #automatico { --phone-w: min(260px, calc(100vw - 72px)); }

  .h-display { font-size: clamp(30px, 9vw, 38px); }
  .h-chap { font-size: clamp(25px, 7vw, 31px); }
  .sub { font-size: 15px; }
  .br-md { display: none !important; }

  .hero-chap { padding-top: calc(var(--nav-h) + 34px); }
  .hero-copy { gap: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .hero-ctas .btn-lg { width: 100%; }
  .phone-crop { height: min(46svh, 380px); margin-top: 28px; }
  .hero-shell { gap: 8px; }
  .hero-copy .h-display { font-size: clamp(30px, 9vw, 38px); }
  .hero-product-visual { width:100%; max-width:430px; height:290px; margin-top:24px; }
  .hero-photo-frame { inset:0; height:auto; border-radius:20px; }
  .hero-field-photo { object-position:50% 56%; }

  .phone-demo-scene { height:320svh; }
  .phone-demo-scene::before { display:none; }
  .phone-demo-stage {
    grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); gap:8px;
    align-items:start; text-align:center;
    padding:calc(var(--nav-h) + 14px) var(--sec-pad-x) 14px;
  }
  .phone-demo-copy { max-width:430px; margin:0 auto; }
  .phone-demo-copy-state { min-height:132px; padding-top:8px; }
  .phone-demo-step { margin-bottom:6px; font-size:10px; }
  .phone-demo-copy-state .h-chap { margin-bottom:8px; font-size:clamp(25px,7vw,31px); line-height:1.06; }
  .phone-demo-copy-state p { max-width:380px; margin:0 auto; font-size:12.5px; line-height:1.45; }
  .phone-demo-progress { justify-content:center; margin-top:0; }
  .phone-demo-progress span { width:21px; }
  .phone-demo-progress span.on { width:38px; }
  .phone-demo-hint { display:none; }
  .phone-demo-mobile-hint {
    position:absolute; z-index:4; left:0; top:54%;
    display:flex; width:28px; flex-direction:column; align-items:center; gap:3px;
    color:rgba(255,255,255,.62); pointer-events:none;
    font-size:9px; font-weight:750; letter-spacing:.08em; text-transform:uppercase;
    opacity:clamp(0,calc(1 - var(--p) * 10),1);
    transition:opacity .28s ease;
  }
  .phone-demo-mobile-hint i {
    color:var(--brand-soft); font-size:17px; font-style:normal; line-height:1;
    animation:phoneScrollCue 1.45s ease-in-out infinite;
  }
  .phone-demo-device-wrap { align-self:start; }
  .phone-demo-orbit { width:min(116vw,460px); }
  .phone-demo-device { --phone-w:min(250px,calc(100vw - 92px),36svh); }

  .frag { width: 100%; max-width: 250px; }

  /* Scroll-scrub is useful on desktop, but makes a phone chapter feel
     artificially long. Mobile gets the complete story in normal flow. */
  .scene { height: auto; }
  .scene-stage {
    position: relative; height: auto; min-height: 0; overflow: visible;
    padding-top: 64px; padding-bottom: 64px; align-items: stretch;
  }
  .mv-grid { gap: 26px; }
  .mv-steps { min-height: 0; gap: 2px; }
  .step-line, .step-line.cur {
    display: block !important; opacity: 1 !important;
    border-color: var(--line-strong);
  }
  .step-line:last-child { border-color: var(--brand); }
  .movement-product-shot { height:clamp(210px,62vw,250px); }
  .movement-product-shot img { object-position:right center; }
  .movement-product-label { left:9px; right:9px; top:9px; border-radius:12px; }
  .movement-product-metrics { left:8px; right:8px; bottom:8px; padding:9px 7px; }
  .movement-product-metrics strong { font-size:13px; }
  .movement-product-metrics span { white-space: nowrap; }
  .geo-product-stage { height:clamp(340px,110vw,440px); }
  .geo-product-shot img { object-position:center; }
  .geo-chip-time { display: none; }
  .geo-chip-addr { left:10px; right:10px; bottom:10px; }
  .evidence-product-shot { height:auto; aspect-ratio:4 / 3; }
  .evidence-product-shot img { object-position:center; }
  .evidence-product-badge { left:8px; right:8px; bottom:-20px; }

  .lock-clock { margin-top: 78px; font-size: 48px; }

  .diag-note { max-width: none; }

  /* Every operation view stays visible without a clipped tab rail. */
  .tab-scroller {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; overflow: visible; margin-left: 0; margin-right: 0; padding: 0;
  }
  .tab-scroller > button {
    width: 100%; min-width: 0; min-height: 44px; padding: 9px 8px;
    white-space: normal; line-height: 1.15;
  }
  .tab-scroller > button:last-child { grid-column: 1 / -1; }

  /* Fit the complete dashboard inside the card; no lateral dragging. */
  .dash-viewport { height: auto; overflow: hidden; }
  .dash-viewport img { width: 100%; min-width: 0; height: auto; object-fit: contain; }
  .dash-hint { display: none !important; }
  .op-cap { margin-top: 14px; font-size: 12.5px; line-height: 1.55; }

  .video-stage { border-radius: 14px; }
  .play-btn { width: 66px; height: 66px; }
  .play-btn svg { width: 22px; height: 22px; }

  .ben-word { font-size: 19px; }
  .eco-name { font-size: 18px; }

  .store-btns { width: 100%; }
  .store-btns button { flex: 1 1 150px; justify-content: center; }

  .foot-grid { flex-direction: column !important; align-items: flex-start !important; gap: 30px !important; }
  .foot-support { text-align: left !important; }
  .foot-bar { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  footer { padding-top: 48px !important; padding-bottom: calc(30px + var(--safe-b)) !important; }

  .wa-fab { width: 52px !important; height: 52px !important; bottom: calc(18px + var(--safe-b)) !important; right: calc(18px + var(--safe-r)) !important; }
}

/* ── Small phone ──
   360dp Android and the 320px SE only. Deliberately NOT 400px: that
   caught 360/375/390/393 too, so the tier meant for the narrowest
   devices was styling nearly every phone on the market. */
@media (max-width: 365px) {
  :root { --sec-pad-x: 16px; --phone-w: min(300px, calc(100vw - 44px)); }
  body { font-size: 14.5px; }
  .chap { padding-top: 56px; padding-bottom: 56px; }
  .h-display { font-size: 28px; }
  .hero-copy .sub { font-size: 14.5px; line-height: 1.55; }
  .hero-product-visual { height:250px; }
  .phone-demo-copy-state { min-height:126px; }
  .phone-demo-device { --phone-w:min(226px,calc(100vw - 72px),35svh); }
  .geo-chip strong { font-size: 11.5px; }
  .geo-chip em { font-size: 9.5px; }
  .evidence-product-badge { padding-right: 9px; gap: 8px; }
  .store-btns button { flex-basis: 100% !important; }
  .wa-fab {
    width: 44px !important; height: 44px !important;
    right: var(--safe-r) !important;
    bottom: calc(8px + var(--safe-b)) !important;
  }
}

/* ── Short portrait phones ──
   Height is the limiting dimension in the sticky product scene. Keep the
   complete device visible and let the screen itself carry the supporting
   detail instead of squeezing both a paragraph and the phone into view. */
@media (max-width: 600px) and (max-height: 700px) and (orientation: portrait) {
  .phone-demo-stage {
    gap:0;
    padding:var(--nav-h) var(--sec-pad-x) 0;
  }
  .phone-demo-copy > .kicker,
  .phone-demo-step { display:none; }
  .phone-demo-copy-state { min-height:0; padding-top:0; }
  .phone-demo-copy-state .h-chap {
    margin-bottom:0; font-size:clamp(21px,6.8vw,24px); line-height:1.03;
  }
  .phone-demo-copy-state p { display:none; }
  .phone-demo-progress { margin-top:2px; }
  .phone-demo-progress span { height:2px; }
  .phone-demo-device { --phone-w:min(247px,calc(100vw - 92px)); }
}

@media (max-width: 600px) and (max-height: 650px) and (orientation: portrait) {
  .phone-demo-device { --phone-w:min(235px,calc(100vw - 92px)); }
}

@media (max-width: 600px) and (max-height: 600px) and (orientation: portrait) {
  .phone-demo-copy { display:none; }
  .phone-demo-device { --phone-w:min(222px,calc(100vw - 72px)); }
}

/* ── Phone / tablet landscape ──
   A horizontal viewport has too little height for the portrait stack. The
   same content becomes a compact two-column product composition. */
@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
  .phone-demo-stage {
    grid-template-columns:minmax(0,1fr) minmax(132px,.52fr);
    grid-template-rows:1fr;
    align-items:center; gap:clamp(16px,4vw,36px); text-align:left;
    padding:calc(var(--nav-h) + 8px) var(--sec-pad-x) 8px;
  }
  .phone-demo-copy { max-width:540px; margin:0; }
  .phone-demo-copy-state { min-height:0; padding-top:6px; }
  .phone-demo-step { margin-bottom:4px; font-size:9px; }
  .phone-demo-copy-state .h-chap {
    margin-bottom:7px; font-size:clamp(22px,3.7vw,31px); line-height:1.03;
  }
  .phone-demo-copy-state p {
    max-width:500px; margin:0; font-size:11.5px; line-height:1.35;
  }
  .phone-demo-progress { justify-content:flex-start; margin-top:5px; }
  .phone-demo-hint { display:none; }
  .phone-demo-mobile-hint {
    position:absolute; z-index:4; left:0; top:auto; bottom:18px;
    display:flex; width:28px; flex-direction:column; align-items:center; gap:3px;
    color:rgba(255,255,255,.62); pointer-events:none;
    font-size:9px; font-weight:750; letter-spacing:.08em; text-transform:uppercase;
    opacity:clamp(0,calc(1 - var(--p) * 10),1);
    transition:opacity .28s ease;
  }
  .phone-demo-mobile-hint i {
    color:var(--brand-soft); font-size:17px; font-style:normal; line-height:1;
    animation:phoneScrollCue 1.45s ease-in-out infinite;
  }
  .phone-demo-device-wrap { align-self:center; }
  .phone-demo-orbit { width:min(42vw,360px); }
  /* Zoom preserves the phone's designed 226px internal canvas instead of
     forcing its labels to reflow into one-word columns. */
  .phone-demo-device { --phone-w:226px; zoom:.58; }
}

@media (max-width: 1024px) and (min-height: 421px) and (max-height: 520px) and (orientation: landscape) {
  .phone-demo-device { zoom:.74; }
}

@keyframes phoneScrollCue {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(4px); }
}
