/* App bubble anatomy. Kept ahead of legacy layers so product components have
   one bounded authority instead of accumulating page-specific overrides. */
@layer rg-bubble-system, fx-authoritative, ridegrade-round-24, ridegrade-round-23, ridegrade-critical-evidence;
@layer rg-bubble-system {
  :is(.ride-bubble,.fs-bubble,.fs-state-mini,.fs-expanded,.expanded-card,.ma-read-row,.hs-read-panel) {
    --rg-tone: #168a52;
    --rg-ink: #172033;
  }
  :is(.tone-yellow,.fs-state-yellow,.ma-read-yellow) { --rg-tone: #9a6a00; }
  :is(.tone-red,.fs-state-red) { --rg-tone: #b3261e; }
  :is(.tone-gray,.fs-state-gray) { --rg-tone: #5e6673; }
  .tone-neutral { --rg-tone: #17365d; }
  [data-ma-demo=offers]:is([data-step="4"],[data-step="5"]) .ma-read-yellow { --rg-tone: #5e6673; }

  :is(.ride-bubble,.fs-bubble) {
    container: rg-read / inline-size;
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 7px !important;
    box-sizing: border-box !important;
    border: 1px solid color-mix(in srgb,var(--rg-tone) 46%,white) !important;
    border-radius: 999px !important;
    color: var(--rg-tone) !important;
    background: #fffdf8 !important;
    box-shadow: 0 1px 3px #17203316 !important;
    overflow: visible !important;
  }
  :is(.ride-bubble,.fs-bubble)[data-rg-route=false] { grid-template-columns: auto minmax(0,1fr) !important; }
  :is(.ride-bubble,.fs-bubble)::before, :is(.ride-bubble,.fs-bubble)::after { display:none !important; }
  :is(.ride-bubble,.fs-bubble,.fs-state-mini)>:is(.bubble-rg,.fs-rg) {
    display: grid !important;
    place-items: center !important;
    flex: none !important;
    box-sizing: border-box !important;
    width: clamp(24px,9cqi,42px) !important;
    height: clamp(24px,9cqi,42px) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 30% !important;
    background: var(--rg-tone,#168a52) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 800 clamp(11px,4cqi,19px)/1 var(--font-ui,var(--font-sans,Manrope)),sans-serif !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }
  :is(.bubble-metrics,.fs-bubble-metrics) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1.22fr .82fr !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: clamp(24px,8cqi,36px) !important;
    height: auto !important;
    padding: 3px 4px !important;
    box-sizing: border-box !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--rg-tone) !important;
    overflow: visible !important;
  }
  :is(.tone-gray,.fs-state-gray) :is(.bubble-metrics,.fs-bubble-metrics) { grid-template-columns: 1.4fr 1.4fr 1fr !important; }
  :is(.metric-chip,.fs-bubble-metrics>span) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--rg-tone) !important;
    font: 800 clamp(10px,3.5cqi,16px)/1.15 var(--font-ui,var(--font-sans,Manrope)),sans-serif !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  :is(.metric-chip,.fs-bubble-metrics>span)+:is(.metric-chip,span) { border-left: 1px solid #e2e8f0 !important; }
  :is(.bubble-metrics,.fs-bubble-metrics)::before,
  :is(.bubble-map,.fs-map-bay)::before {
    content: "";
    display: block !important;
    position: absolute;
    left: -5px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #17203333;
  }
  :is(.bubble-map,.fs-map-bay) {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(24px,8.5cqi,39px) !important;
    height: clamp(24px,8.5cqi,39px) !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #17203324 !important;
    border-radius: 36% !important;
    background: #17203314 !important;
    color: #172033 !important;
  }
  :is(.bubble-map,.fs-map-bay) :is(.rg-icon,.fs-icon,svg) {
    width: clamp(15px,4.6cqi,22px) !important;
    height: clamp(15px,4.6cqi,22px) !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
  }
  .fs-state-mini { color:var(--rg-tone) !important; }
  .fs-state-mini .fs-rg { width:30px !important;height:30px !important;font-size:13px !important; }
  :is(.fs-expanded,.expanded-card) {
    border: 1px solid color-mix(in srgb,var(--rg-tone) 82%,transparent) !important;
    border-left: 5px solid var(--rg-tone) !important;
    border-radius: 18px !important;
    background: #071323 !important;
    color: #fff !important;
    padding: 8px !important;
    box-shadow: 0 2px 5px #17203314 !important;
  }
  :is(.fs-expanded,.expanded-card)::before { display:none !important; }
  :is(.fs-expanded,.expanded-card)>:is(.ride-bubble,.fs-bubble) {
    --rg-ink: #fff;
    background: #182131 !important;
    border-color: #ffffff24 !important;
    box-shadow: none !important;
  }
  :is(.fs-expanded,.expanded-card) :is(.bubble-map,.fs-map-bay) { color:#fff !important;background:#ffffff21 !important;border-color:#ffffff2e !important; }
  :is(.fs-expanded,.expanded-card) :is(.bubble-metrics,.fs-bubble-metrics,.bubble-map,.fs-map-bay)::before { background:#ffffff33 !important; }
  .fs-hero-bubble .fs-expanded-body { margin:0 !important;background:transparent !important;border-radius:0 !important;padding:18px 16px 14px !important; }
  .fs-expanded-title strong,.fs-confidence { color:var(--rg-tone) !important; }
  .fs-expanded li::before { background:var(--rg-tone) !important; }
  .fs-bubble-tools i { border:0 !important;background:none !important; }
  .fs-bubble-tools .fs-icon { color:#d8dee8 !important; }
  .tone-neutral .bubble-rg { background:#e8f4ff !important;color:#17365d !important;-webkit-text-fill-color:#17365d !important; }

  /* Compact live overlays retain the app's individually tinted metric chips. */
  [data-rg-variant=live] :is(.bubble-metrics,.fs-bubble-metrics) { gap:4px !important;padding:3px !important;grid-template-columns:1fr 1.22fr .82fr !important; }
  [data-rg-variant=live] :is(.metric-chip,.fs-bubble-metrics>span) { background:color-mix(in srgb,var(--rg-tone) 12%,white) !important;border:0 !important;border-radius:999px !important;padding:4px 1px !important; }
  :is(.fs-expanded,.expanded-card,.hs-read-panel) :is(.card-controls,.fs-bubble-tools),.explain-copy .card-controls { display:flex !important;gap:9px !important;align-items:center !important;color:#d8dee8 !important; }
  :is(.fs-expanded,.expanded-card,.hs-read-panel) .card-controls .rg-icon,.explain-copy .card-controls svg { width:17px !important;height:17px !important;display:block !important;color:inherit !important;padding:0 !important;background:none !important;border:0 !important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
  .expanded-card :is(.expanded-card-topline>strong,.confidence) { color:var(--rg-tone) !important; }
  .expanded-card .expanded-card-body { padding:14px 12px !important; }
  .expanded-card .expanded-card-body p { font-size:14px !important;line-height:1.45 !important; }
  .expanded-card .confidence { font-size:12px !important;line-height:1.4 !important; }
  .expanded-card .expanded-card-body ul { border-top:1px solid #ffffff33 !important;margin-top:12px !important;padding-top:12px !important; }
  .expanded-card .expanded-card-body li { font-size:13px !important;line-height:1.45 !important; }
  .expanded-card .expanded-card-body li::before { background:var(--rg-tone) !important; }

  /* The How reader is the expanded card, including its attached header. */
  .hs-read-panel { padding:8px !important;border:1px solid color-mix(in srgb,var(--rg-tone) 82%,transparent) !important;border-left:5px solid var(--rg-tone) !important;border-radius:18px !important;background:#071323 !important; }
  .hs-read-panel>.ride-bubble { background:#182131 !important;border-color:#ffffff24 !important;box-shadow:none !important; }
  .hs-read-panel .bubble-map { background:#ffffff21 !important;border-color:#ffffff2e !important;color:#fff !important; }
  .hs-read-panel :is(.bubble-metrics,.bubble-map)::before { background:#ffffff33 !important; }
  .hs-explanation { margin:0 !important;padding:16px 12px !important;border:0 !important;background:none !important;border-radius:0 !important;box-shadow:none !important; }
  .hs-read-topline { display:flex;align-items:center;justify-content:space-between;gap:10px; }
  .hs-verdict { margin:0 !important;color:var(--rg-tone) !important; }
  .hs-read-reason { color:white !important;font-size:16px !important;line-height:1.5 !important;margin:12px 0 8px !important; }
  .hs-confidence { color:var(--rg-tone) !important;font-size:12px !important;margin:0 !important; }
  .hs-explanation ul { border-top:1px solid #ffffff33;padding-top:12px !important;margin-top:14px !important; }
  .hs-factor-dot { width:8px;height:8px;flex:none;border-radius:50%;background:var(--rg-tone); }

  /* Two live app reads share the same capsule, chip, logo and route construction. */
  .ma-read-row { container:rg-read / inline-size;display:grid !important;grid-template-columns:24px minmax(0,1fr) 23px !important;gap:6px !important;align-items:center !important;padding:5px !important;border:1px solid color-mix(in srgb,var(--rg-tone) 46%,white) !important;border-radius:999px !important;background:#fffdf8 !important; }
  .ma-read-mark { width:24px !important;height:24px !important;min-width:0 !important;display:grid !important;place-items:center !important;padding:0 !important;border-radius:30% !important;font:800 11px/1 var(--font-ui,var(--font-sans,Manrope)),sans-serif !important;background:var(--rg-tone) !important;color:#fff !important; }
  .ma-read-metrics { width:100% !important;justify-self:stretch !important;position:relative;display:grid;grid-template-columns:1fr 1.22fr .82fr;gap:3px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;padding:3px;min-width:0; }
  .ma-read-metrics>strong { display:flex !important;align-items:center;justify-content:center;min-width:0;padding:3px 0 !important;background:color-mix(in srgb,var(--rg-tone) 12%,white) !important;border:0 !important;border-radius:999px !important;white-space:nowrap !important;font:800 10px/1.2 var(--font-ui,var(--font-sans,Manrope)),sans-serif !important;color:var(--rg-tone) !important; }
  .ma-read-map { position:relative;display:grid !important;place-items:center !important;width:23px !important;height:23px !important;border-radius:36% !important;border:1px solid #17203324 !important;background:#17203314 !important;color:#172033 !important; }
  .ma-read-map .rg-icon { width:15px !important;height:15px !important; }
  :is(.ma-read-map,.ma-read-metrics)::before { content:'';position:absolute;left:-4px;top:20%;bottom:20%;width:1px;background:#17203333; }
  [data-ma-demo=offers]:is([data-step="4"],[data-step="5"]) .ma-read-yellow { grid-template-columns:24px minmax(0,1fr) !important; }
  [data-ma-demo=offers]:is([data-step="4"],[data-step="5"]) .ma-read-yellow .ma-read-map { display:none !important; }

  /* The animated demo shares the bubble renderer and expanded anatomy. */
  .rg-overlay .ride-bubble { gap:6px !important;padding:4px 5px !important; }
  .rg-overlay .explain-frame { background:#071323 !important;border-color:#168a52 !important;border-left-width:5px !important; }
  .rg-overlay[data-expanded=true] .primary-row .ride-bubble { background:#182131 !important;border-color:#ffffff24 !important; }
  .rg-overlay[data-expanded=true] .primary-row .bubble-map { background:#ffffff21 !important;border-color:#ffffff2e !important;color:#fff !important; }
  .rg-overlay[data-expanded=true] .primary-row .metric-chip { background:transparent !important;border-radius:0 !important; }
  .rg-overlay[data-expanded=true] .primary-row .metric-chip+.metric-chip { border-left:1px solid #e2e8f0 !important; }
  .explain-copy h3 { font-size:17px !important;line-height:1.35 !important;margin:10px 0 8px !important; }
  .explain-copy .verdict>b,.explain-copy .read-confidence { color:#168a52 !important; }
  .explain-copy .read-confidence { font-size:11px;margin:0 0 12px; }
  .explain-copy .read-checks { border-top:1px solid #ffffff33;padding-top:12px; }
  .explain-copy .read-checks>div { font-size:11px !important;line-height:1.4; }
  .explain-copy .read-checks>div>span::before { content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#168a52; }
  .explain-copy .read-basis { font-size:10px !important;line-height:1.4; }

  /* Marketing cards reflow to fit the actual component, never six-pixel text. */
  #trust-studio .hero-side-card .state-row { opacity:1 !important; }
  #trust-studio .hero-side-card .state-row .ride-bubble { min-width:0 !important; }
  #trust-studio .permission-overlay-bubble { width:calc(100% - 20px) !important;max-width:330px; }
  @media(max-width:760px) {
    #trust-studio .hero-side-card { grid-column:1 / -1 !important;grid-row:3 !important;width:100% !important;padding:8px !important; }
    #trust-studio .hero-side-card .state-rows { grid-template-columns:1fr !important;gap:10px !important; }
    #trust-studio .trust-side-heading h3 { font-size:15px !important; }
    #trust-studio .trust-side-heading p { font-size:12px !important; }
    #trust-studio .trust-phone-stack { display:none !important; }
  }

  /* Keep semantic backgrounds exact; lighten only text on the dark card for legibility. */
  :is(.fs-expanded,.expanded-card,.hs-read-panel) { --rg-on-dark:color-mix(in srgb,var(--rg-tone) 60%,white); }
  :is(.fs-expanded-title strong,.fs-confidence,.hs-verdict,.hs-confidence),.expanded-card :is(.expanded-card-topline>strong,.confidence) { color:var(--rg-on-dark) !important; }
  /* App teaching capsules retain their translucent white surface. */
  [data-rg-variant=teaching] :is(.bubble-metrics,.fs-bubble-metrics),
  .rg-overlay[data-expanded=true] .primary-row .bubble-metrics { background:rgb(255 255 255 / .92) !important; }
  [data-rg-variant=live].tone-neutral .bubble-metrics { grid-template-columns:1fr !important; }
  :is(.bubble-map,.fs-map-bay,.ma-read-map) .rg-icon-map-filled .rg-icon-glyph { color:inherit !important; }
  :is(.bubble-map,.fs-map-bay,.ma-read-map) .rg-icon-map-filled path { fill:currentColor !important;stroke:none !important; }
  :is(.expanded-card,.hs-read-panel) .card-controls :is(.rg-icon,.rg-icon-glyph) { color:#d8dee8 !important;stroke:currentColor !important; }
  .card-controls svg { color:inherit !important; }
  .card-controls .rg-icon-accent { display:none !important; }
  .explain-copy .verdict>b,.explain-copy .read-confidence { color:#73b996 !important; }
  /* A source label gets its own row when a phone cannot fit a full read beside it. */
  #rg-home-win .showcase-multi-app-card .multi-app-row { grid-template-columns:1fr !important;gap:3px !important;padding:4px 0 !important; }
  #rg-home-win .showcase-multi-app-card .multi-app-app { display:flex !important;align-items:center !important;gap:5px;width:auto !important; }
  #rg-home-win .showcase-multi-app-card .multi-app-app::after { font:700 10px/1.2 var(--font-ui);color:#172033; }
  #rg-home-win [data-multi-app-row=uber] .multi-app-app::after { content:'Uber'; }
  #rg-home-win [data-multi-app-row=doordash] .multi-app-app::after { content:'DoorDash'; }
  #rg-home-win .showcase-multi-app-card .multi-app-app :is(.app-logo,.platform-icon) { width:18px !important;height:18px !important; }
  #rg-home-win .showcase-multi-app-card .split-phone-overlay { height:auto !important; }
  [data-rg-variant=live].tone-gray .bubble-metrics,[data-rg-variant=live].fs-state-gray .fs-bubble-metrics { grid-template-columns:1.4fr 1.4fr 1fr !important; }
}

/* Compact specimens keep readable text by giving the metrics more of the capsule. */
@layer rg-bubble-system {
  :is(.ride-bubble,.fs-bubble) { gap:4px !important;padding:4px !important; }
  @container rg-read (max-width:260px) {
    :is(.ride-bubble,.fs-bubble) :is(.bubble-metrics,.fs-bubble-metrics) { padding:2px !important;gap:2px !important;grid-template-columns:auto auto auto !important; }
    :is(.ride-bubble,.fs-bubble) :is(.metric-chip,.fs-bubble-metrics>span) { padding-inline:0 !important; }
    :is(.ride-bubble,.fs-bubble)>:is(.bubble-rg,.fs-rg) { width:20px !important;height:22px !important;font-size:11px !important; }
    :is(.bubble-map,.fs-map-bay) { width:20px !important;height:24px !important;min-width:0 !important; }
  }
}

@layer rg-bubble-system {
 @container rg-read (max-width:230px) {
  :is(.tone-gray,.fs-state-gray) :is(.bubble-metrics,.fs-bubble-metrics) {grid-template-columns:1.4fr 1.4fr 1fr !important;}
  :is(.tone-gray,.fs-state-gray) :is(.metric-chip,.fs-bubble-metrics>span) {white-space:normal !important;text-align:center !important;line-height:1.2 !important;}
 }
}

@font-face{font-family:Manrope;src:url('/assets/fonts/manrope_regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url('/assets/fonts/manrope_semibold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Manrope;src:url('/assets/fonts/manrope_bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Manrope;src:url('/assets/fonts/manrope_extrabold.woff2') format('woff2');font-style:normal;font-weight:800;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins_extrabold.woff2') format('woff2');font-style:normal;font-weight:800;font-display:swap}
:root{--font-sans:Manrope,Arial,sans-serif;--font-brand:Poppins,Manrope,sans-serif;--ink:#0c1035;--muted:#617087;--blue:#0867f2;--green:#14935a;--purple:#7047eb;--line:#d9e3ef;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f9fbfd;font-family:var(--font-sans);-webkit-font-smoothing:antialiased}body:before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(110deg,rgba(255,255,255,.93),rgba(255,255,255,.8)),url('/assets/generated/rg-map-atmosphere-1536x1024.webp') center/cover;pointer-events:none}
button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #84b3ff;outline-offset:4px}button{touch-action:manipulation}button:disabled{cursor:default}a{color:inherit}svg.icon{display:inline-block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.study-header{max-width:1232px;margin:auto;height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none}.brand img{width:40px;height:33px;object-fit:contain}.brand strong{font:800 25px var(--font-brand)}.local-label{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:700;color:var(--muted)}.local-label>span{width:6px;height:6px;border-radius:50%;background:var(--blue)}
main{max-width:1160px;margin:auto;padding:0 28px 24px}.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(460px,1.15fr);min-height:652px;align-items:center;gap:22px}.narrative{padding:30px 0 30px 28px}.section-label{font-size:10px;color:var(--muted);font-weight:800;letter-spacing:.12em;margin:0 0 30px}.captions{position:relative;height:265px}.caption{position:absolute;inset:0;opacity:0;pointer-events:none;will-change:transform,opacity}.caption .chapter-number{font-size:11px;font-weight:800;display:flex;align-items:center;gap:10px;color:var(--accent,var(--blue));margin-bottom:15px}.chapter-number:before{content:"";width:25px;height:2px;background:currentColor}.caption h2{font:800 clamp(32px,3.8vw,48px)/1.12 var(--font-brand);margin:0 0 18px;white-space:pre-line}.caption p{font-size:15px;line-height:1.65;color:var(--muted);max-width:350px;margin:0}.caption-tags{display:flex;gap:7px;margin-top:21px;flex-wrap:wrap}.caption-tags span{padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.8);font-size:10px;font-weight:800;color:var(--muted)}.caption-tags span:first-child{color:var(--accent)}.narrative-note{display:flex;gap:8px;align-items:flex-start;color:var(--muted);font-size:10px;line-height:1.55;max-width:335px;padding-top:30px}.narrative-note .icon{width:15px;height:15px;color:var(--green)}
.visual{min-width:0}.scene{position:relative;min-height:650px;display:flex;align-items:center;justify-content:center;isolation:isolate}.scene-orbit{position:absolute;inset:42px 0 24px;border:1px solid #dbe5f3;border-radius:40px;background:linear-gradient(145deg,#f6faff,#edf4fe);z-index:-1;overflow:hidden}.scene-orbit:before{content:"";position:absolute;inset:0;background:url('/assets/generated/rg-map-atmosphere-1536x1024.webp') center/cover;opacity:.28}.scene-label{position:absolute;top:16px;left:50%;transform:translateX(-50%);font-size:8px;font-weight:800;letter-spacing:.14em;color:#7c8ba2;white-space:nowrap}.phone-wrap{width:344px;height:618px;flex:none;position:relative;margin-top:22px}.phone{position:absolute;inset:0;border:9px solid #111927;border-radius:43px;background:#111927;box-shadow:0 30px 55px -20px #172d5455,0 0 0 1px #182338;overflow:hidden}.phone-screen{position:absolute;inset:0;border-radius:34px;overflow:hidden;background:#edf3f5;isolation:isolate}.statusbar{position:absolute;top:13px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;font-size:9px;z-index:10;font-weight:800;color:#142031;pointer-events:none}.statusbar>span{display:flex;gap:5px;align-items:center}.statusbar .icon{height:10px;width:10px;color:#5d6c80}.battery{width:7px;height:11px;border:1.5px solid #667589;border-radius:2px;position:relative}.battery:before{content:"";position:absolute;inset:2px 1px 1px;background:#667589}.gesture-bar{position:absolute;bottom:7px;width:88px;left:50%;margin-left:-44px;height:3px;border-radius:4px;background:#142031;z-index:30}
.map-camera{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform}.route-map{width:100%;height:100%;display:block}.map-street{fill:none;stroke:white;stroke-width:9;stroke-linecap:round}.map-street.muted{stroke:#d6e0e5;stroke-width:4}.route-shadow{fill:none;stroke:#bdcfe7;stroke-width:9;stroke-linecap:round}.route-base,.route-travelled{fill:none;stroke:#0867f2;stroke-width:4;stroke-linecap:round}.route-travelled{stroke:#14935a;stroke-width:4.5}.map-label{fill:#7f909f;font:700 7px Manrope,sans-serif}.map-zone{stroke-width:1.5}.favorite{fill:#11955518;stroke:#14935a}.avoid{fill:#ff4d4d13;stroke:#e6555d;stroke-dasharray:4 3}.zone-label rect{fill:#fff;stroke:#f1c6c7;stroke-width:.6}.zone-label text{font:800 6px Manrope,sans-serif;text-anchor:middle;fill:#b93843}.zone-label.home rect{stroke:#b2d7c4}.zone-label.home text{fill:#0c7d48}
.rg-overlay{position:absolute;left:12px;right:12px;top:54px;height:312px;z-index:20;pointer-events:none}.bubble-slot{position:relative;height:44px;will-change:transform}.bubble-layer{position:absolute;inset:0}.read-row{position:absolute;width:100%;left:0;will-change:transform,opacity}.primary-row{top:0}.second-row{top:95px;opacity:0}.source-label{height:19px;display:flex;gap:5px;align-items:center;font-size:9px;font-weight:800;color:var(--ink);padding:0 2px 3px}.primary-row>.source-label{position:absolute;top:0;width:100%;opacity:0}.source-label .source-icon{width:13px;height:13px;font-size:7px;border-radius:4px}.source-label>span:last-child{margin-left:auto;font-size:7px;color:var(--muted);font-weight:700}.compare-frame{position:absolute;inset:-9px -7px auto;height:174px;border:1.5px solid #b8a3fa;background:rgba(255,255,255,.97);border-radius:20px;box-shadow:0 12px 26px #20345315;transform-origin:top;opacity:0;will-change:transform,opacity}.compare-badge{position:absolute;top:0;left:3px;right:3px;display:flex;justify-content:space-between;align-items:center;font-size:8px;font-weight:800;color:#5d3bbb;opacity:0}.compare-badge>b{font-size:7px;background:#f0eaff;border:1px solid #e0d4ff;padding:2px 5px;border-radius:4px}.ride-bubble{--tone:#14935a;--tint:#f2faf6;--tone-border:#72bfa0;display:grid;grid-template-columns:32px minmax(0,1fr) 29px;gap:5px;align-items:center;box-sizing:border-box;width:100%;height:44px;margin:0;padding:4px 5px;border:1.7px solid var(--tone-border);border-radius:999px;background:#fff;box-shadow:0 4px 12px #173a5810;color:var(--tone);overflow:hidden;font-variant-numeric:tabular-nums}.ride-bubble.tone-yellow{--tone:#b75d00;--tint:#fff8e4;--tone-border:#eda91a}.ride-bubble.tone-gray{--tone:#657085;--tint:#f2f4f7;--tone-border:#aab5c4}.bubble-rg{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:white;background:var(--tone);font-size:12px;font-weight:800}.tone-yellow .bubble-rg{background:#f5a800}.bubble-metrics{height:32px;display:grid;grid-template-columns:1.08fr 1.2fr .95fr;align-items:stretch;min-width:0;border:1px solid #d3e6dc;border-radius:999px;background:var(--tint);overflow:hidden}.tone-gray .bubble-metrics{grid-template-columns:.8fr 1.45fr 1.1fr;border-color:#d9dfe9}.metric-chip{display:flex;align-items:center;justify-content:center;font-size:10.3px;font-weight:800;white-space:nowrap;min-width:0;border-right:1px solid #d7e2dd;line-height:1;padding:0 2px;letter-spacing:0}.metric-chip:last-child{border-right:0}.tone-gray .metric-chip{font-size:8px}.bubble-map{display:grid;place-items:center;width:29px;height:29px;color:var(--tone);border:1px solid var(--tone-border);border-radius:50%;background:var(--tint)}.bubble-map .rg-icon,.bubble-map svg{display:block;width:17px;height:17px;padding:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.explain-frame{position:absolute;left:-7px;right:-7px;top:-8px;height:285px;border:1px solid #339777;border-radius:20px;background:#061424;box-shadow:0 18px 35px #07152333;transform-origin:top;opacity:0;will-change:transform,opacity}.explain-copy{position:absolute;top:58px;left:8px;right:8px;color:#fff;opacity:0;will-change:transform,opacity}.verdict{display:flex;align-items:center;justify-content:space-between}.verdict>b{color:#29d18b;font-size:15px}.verdict>span{font-size:8px;color:#7ce0b4;font-weight:700}.explain-copy h3{font-size:20px;line-height:1.25;margin:11px 0 14px;font-weight:800}.read-checks{display:grid;gap:7px}.read-checks>div{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px;color:#bacad5}.read-checks b{color:#f0f5f8;font-variant-numeric:tabular-nums}.read-basis{font-size:7px;color:#9cabb9;margin:9px 0 12px}
.phone-cue{position:absolute;z-index:22;display:flex;align-items:center;gap:8px;border:1px solid #d9e5f4;border-radius:13px;background:rgba(255,255,255,.97);padding:10px 12px;box-shadow:0 8px 20px #27447210;opacity:0;pointer-events:none;will-change:transform,opacity}.phone-cue .icon{width:20px;height:20px;color:var(--blue)}.phone-cue>span:not(.cue-dot){display:grid;gap:3px}.phone-cue b{font-size:10px;font-weight:800}.phone-cue small{font-size:7.5px;color:var(--muted);line-height:1.35}.rapid-cue{top:114px;left:32px;right:32px}.rapid-cue>strong{font-size:12px;font-weight:800;letter-spacing:.03em;color:var(--blue);margin-left:auto;white-space:nowrap}.rapid-cue>strong[data-value="STRONG"]{color:#0c8249}.quiet-cue{position:absolute;top:177px;left:0;right:0;display:flex;gap:5px;align-items:center;justify-content:center;font-size:8px;color:#66788e;font-weight:700;opacity:0}.quiet-cue .icon{width:12px;height:12px;color:var(--green)}.comparison-cue{top:237px;left:16px;right:16px}.cue-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--purple)}.mode-panel{position:absolute;z-index:21;left:21px;right:21px;top:248px;padding:13px;border:1px solid #dbe4f1;background:#fff;border-radius:16px;box-shadow:0 10px 20px #27344e10;opacity:0;will-change:transform,opacity}.mini-eyebrow{font-size:7px;font-weight:800;letter-spacing:.06em;color:var(--muted)}.mode-switch{height:35px;position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;margin:8px 0 7px;padding:3px;background:#f0f4fa;border-radius:9px}.mode-switch>span{z-index:1;text-align:center;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:4px}.mode-switch .icon{width:12px;height:12px}.mode-selected{position:absolute;left:3px;top:3px;bottom:3px;width:calc(50% - 3px);border:1px solid #ccdffb;background:#fff;border-radius:7px;box-shadow:0 2px 6px #1528490a;will-change:transform}.mode-panel p{font-size:8px;color:var(--muted);margin:0;text-align:center}.zone-cue{bottom:135px;left:15px;right:15px}.zone-cue .icon{color:var(--green)}.driver-cue{top:122px;left:22px;right:22px}.local-cue{top:141px;left:24px;right:24px}.local-cue .icon{color:var(--green)}
.source-offer{position:absolute;left:12px;right:12px;bottom:18px;z-index:5;padding:18px 18px 15px;border-radius:24px;background:#fff;border:1px solid #d8e0e9;box-shadow:0 15px 30px #1a2b4429;overflow:hidden;opacity:0;pointer-events:none;will-change:transform,opacity}.offer-progress{height:4px;position:absolute;top:0;left:0;right:0;background:#e7edf5}.offer-progress>span{display:block;height:100%;background:#111;transform-origin:left}.offer-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#687282;font-weight:700}.offer-top>span:first-child{display:flex;align-items:center;gap:6px;color:#19212e}.source-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:11px;font-weight:800;flex:none;border-radius:7px;font-style:normal}.source-icon.uber{background:#121212;color:#fff}.source-icon.dash{background:#fff0ed;color:#e43721;border:1px solid #edc3ba}.offer-title{display:flex;justify-content:space-between;align-items:center;margin-top:17px;font-size:11px;font-weight:800}.offer-title>b{display:flex;gap:4px;align-items:center;font-size:9px;color:#5d6979}.offer-title .icon{width:12px;height:12px}.offer-price{display:block;font-size:37px;line-height:1.15;font-weight:800;color:#0b1223;margin-top:1px;font-variant-numeric:tabular-nums}.fare-note{display:block;font-size:8px;color:#758191;margin:3px 0 17px}.offer-location{display:flex;gap:11px;align-items:flex-start;margin-top:13px}.offer-location>span:last-child{display:grid;gap:2px}.offer-location b{font-size:10px;line-height:1.3;color:#212c3b}.offer-location small{font-size:8px;line-height:1.4;color:#788492}.point{width:8px;height:8px;border:2px solid #233144;border-radius:50%;flex:none;margin-top:3px}.point.square{border-radius:2px;background:#233144}.source-accept{margin-top:19px;min-height:39px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#101010;color:#fff;font-size:11px;font-weight:800}.dash-payout{text-align:center;display:grid;justify-items:center;gap:3px;margin-top:14px}.dash-payout>span{font-size:11px;font-weight:800}.dash-payout .offer-price{font-size:36px}.dash-payout>small{font-size:8px;color:#667181}.dash-distance{text-align:center;font-size:9px;font-weight:800;margin:12px 0}.dash-offer .offer-location{background:#f8fafc;border:1px solid #e9edf1;border-radius:9px;padding:8px;margin-top:7px}.dash-offer .source-accept{background:#e52612;border-radius:999px;margin-top:13px;position:relative}.dash-offer .source-accept small{position:absolute;right:13px;font-size:8px;min-width:23px;text-align:center;padding:4px;border:1px solid #ffffff66;border-radius:50%}
.mileage-card,.review-card{position:absolute;z-index:12;bottom:23px;left:12px;right:12px;background:#fff;border:1px solid #d8e3ee;border-radius:22px;padding:18px;box-shadow:0 14px 30px #1831531f;opacity:0;will-change:transform,opacity}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;font-weight:800}.card-heading>span{display:flex;align-items:center;gap:6px}.card-heading .icon{color:var(--blue);width:16px;height:16px}.card-heading>small{font-size:7px;color:var(--muted);font-weight:600}.miles-total{display:flex;gap:8px;align-items:center;margin:12px 0}.miles-total>strong{font-size:46px;line-height:1.1;color:var(--blue);font-weight:800;font-variant-numeric:tabular-nums}.miles-total>span{font-size:14px;font-weight:800;line-height:1.2}.miles-total small{font-size:8px;color:var(--muted);font-weight:600}.miles-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:14px}.miles-breakdown>span{display:grid;gap:4px;font-size:8px;color:var(--muted)}.miles-breakdown b{font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}.travel-track{height:3px;background:#e7eef7;border-radius:3px;margin-top:15px;overflow:hidden}.travel-track>span{display:block;height:100%;background:var(--blue);transform-origin:left}.mileage-card>p{font-size:8px;color:var(--muted);margin:9px 0 0}.review-card h3{font-size:22px;line-height:1.22;margin:17px 0 18px;font-weight:800}.review-card .card-heading .icon{color:var(--green)}.ledger-app{display:flex;align-items:center;gap:8px;padding-bottom:14px;border-bottom:1px solid #e1e8ef}.ledger-app>span:nth-child(2){display:grid;gap:2px}.ledger-app b{font-size:10px}.ledger-app small{font-size:7px;color:var(--muted)}.ledger-app>strong{font-size:18px;margin-left:auto;font-variant-numeric:tabular-nums}.ledger{margin:12px 0;display:grid;gap:11px}.ledger>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.ledger dt{font-size:9px;color:var(--muted)}.ledger dd{margin:0;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}.green-text{color:var(--green)}.edit-label{font-size:7px;padding:2px 4px;background:#f2f6fb;border:1px solid #dee6f0;border-radius:4px;color:var(--muted);margin-left:3px}.record-note{font-size:8px;line-height:1.55;color:var(--muted);padding-top:10px;margin:0;border-top:1px solid #e1e8ef}
.tap-finger{position:absolute;top:0;left:0;z-index:35;width:41px;height:49px;opacity:0;pointer-events:none;will-change:transform,opacity;transform-origin:17px 5px}.tap-finger>.icon{width:38px;height:44px;fill:white;stroke:var(--blue);stroke-width:1.5;filter:drop-shadow(0 3px 3px #19355022)}.tap-finger>i{position:absolute;top:-4px;left:6px;width:24px;height:24px;border:2px solid #378cff;border-radius:50%;opacity:0}
.transport{max-width:1010px;margin:12px auto 0;padding:18px 22px 14px;background:rgba(255,255,255,.9);border:1px solid #dde6f1;border-radius:20px;box-shadow:0 12px 30px -20px #1a305536}.chapter-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.chapter-button{border:0;background:transparent;text-align:left;padding:5px 0;color:#8793a4;min-height:44px}.chapter-button>span:first-child{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:800;white-space:nowrap}.chapter-button small{font-size:8px;opacity:.7}.chapter-button>i{position:relative;display:block;height:2px;background:#e8edf5;margin-top:10px;overflow:hidden}.chapter-button>i>b{display:block;height:100%;background:var(--blue);transform-origin:left;transform:scaleX(0)}.chapter-button[aria-current="step"]{color:var(--ink)}.chapter-button[aria-current="step"]>i{background:#dce9ff}.chapter-button[data-chapter="compare"]>i>b{background:var(--purple)}.playback{display:flex;align-items:center;gap:16px;margin-top:15px}.playback-buttons{display:flex;align-items:center;gap:8px}.playback button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid #dbe4f0;background:white;border-radius:10px;padding:0 12px;font-size:10px;color:var(--ink)}.playback button:hover{background:#f4f8ff;border-color:#b8cef0}.playback button .icon{width:13px;height:13px}.playback button>span{font-size:13px;width:12px}.scrubber{flex:1;min-width:30px}.scrubber input{width:100%;height:18px;accent-color:var(--blue);cursor:pointer}.timecode{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.study-disclosure{margin:10px 0 0;font-size:8px;line-height:1.6;color:#758399;text-align:center}.noscript{padding:20px;text-align:center}
/* Quiet initial paint while local fonts load; no wrong-state flashes. */
.rg-overlay,.bubble-layer[data-green],.route-travelled{opacity:0}
.mileage-card{left:auto;width:62%;padding:15px}.mileage-card .card-heading{gap:5px}.mileage-card .card-heading>span{gap:4px}.mileage-card .card-heading>small{font-size:6.5px}
@media(min-width:1500px){.story{grid-template-columns:1fr 1.25fr}.phone-wrap{width:365px;height:658px}.scene{min-height:696px}.captions{height:270px}.caption h2{font-size:50px}.story{min-height:696px}.metric-chip{font-size:11px}}
@media(max-width:900px){main{padding:0 22px 24px}.study-header{padding:0 24px;height:72px}.story{grid-template-columns:minmax(0,1fr) minmax(345px,1.1fr);gap:4px}.narrative{padding-left:0}.caption h2{font-size:34px}.caption p{font-size:13px;max-width:280px}.captions{height:278px}.scene-orbit{inset:43px -3px 23px}.section-label{font-size:9px}.narrative-note{font-size:9px;max-width:265px}.chapter-rail{gap:10px}.chapter-button>span:first-child{font-size:8px;gap:4px}.transport{padding:16px}}
@media(max-width:680px){.study-header{height:66px;padding:0 19px}.brand strong{font-size:20px}.brand img{width:31px;height:27px}.brand{gap:7px}.local-label{font-size:8px;gap:5px}.story{display:flex;flex-direction:column;gap:0;min-height:0}.narrative{width:100%;padding:16px 10px 0;text-align:center}.section-label{font-size:8px;margin-bottom:15px}.captions{height:177px}.caption .chapter-number{justify-content:center;font-size:9px;margin-bottom:9px}.chapter-number:before{width:16px}.caption h2{font-size:30px;line-height:1.14;margin-bottom:10px}.caption p{font-size:11px;line-height:1.5;max-width:315px;margin:auto}.caption-tags{margin-top:12px;justify-content:center;gap:6px}.caption-tags span{font-size:8px;padding:4px 8px}.narrative-note{display:none}.visual{width:100%}.scene{min-height:646px}.scene-orbit{inset:30px -6px 12px;border-radius:29px}.scene-label{display:none}.phone-wrap{margin-top:4px}.transport{margin-top:10px;padding:13px 12px;border-radius:16px}.chapter-rail{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 12px}.chapter-button>span:first-child{font-size:8px}.chapter-button>i{margin-top:6px}.chapter-button{min-height:38px}.playback{gap:10px;margin-top:10px}.playback-buttons{gap:5px}.playback button{padding:0 9px;min-height:38px}.timecode{font-size:8px}.study-disclosure{font-size:7px}main{padding:0 18px 22px}}
@media(max-width:389px){.phone-wrap{width:312px;height:566px}.phone{border-width:8px;border-radius:38px}.phone-screen{border-radius:30px}.scene{min-height:584px}.scene-orbit{inset:25px -7px 10px}.rg-overlay{left:10px;right:10px;top:48px}.ride-bubble{grid-template-columns:28px minmax(0,1fr) 26px;gap:4px;height:40px;padding:3px 4px}.bubble-rg{height:28px;width:28px;font-size:10px;border-radius:8px}.bubble-map{width:26px;height:26px}.bubble-metrics{height:29px}.metric-chip{font-size:9px}.tone-gray .metric-chip{font-size:7px}.bubble-slot{height:40px}.rapid-cue{top:101px;left:24px;right:24px}.quiet-cue{top:162px}.source-offer{padding:15px;left:10px;right:10px}.offer-price{font-size:31px}.offer-title{margin-top:13px}.offer-location{margin-top:10px}.fare-note{margin-bottom:12px}.source-accept{margin-top:14px;min-height:35px}.dash-payout .offer-price{font-size:31px}.dash-payout{margin-top:9px}.dash-distance{margin:8px 0}.dash-offer .offer-location{padding:6px}.explain-frame{height:270px}.explain-copy{top:54px}.explain-copy h3{font-size:18px;margin:10px 0 12px}.comparison-cue{top:224px}.mode-panel{top:230px}.zone-cue{bottom:111px}.phone-cue{padding:9px 10px}.phone-cue b{font-size:9px}.phone-cue small{font-size:7px}.driver-cue{top:112px}.mileage-card,.review-card{padding:15px;bottom:21px;left:10px;right:10px}.review-card h3{font-size:20px;margin:14px 0}.local-cue{top:116px}.ledger{gap:9px}.captions{height:178px}}
@media(max-width:340px){main{padding-left:10px;padding-right:10px}.study-header{padding:0 13px}.phone-wrap{width:294px;height:535px}.scene{min-height:550px}.metric-chip{font-size:8.3px}.source-offer{padding:13px}.offer-location b{font-size:9px}.offer-location small{font-size:7px}.caption h2{font-size:28px}.phone-cue small{font-size:6.6px}.explain-copy{left:5px;right:5px}.verdict>span{font-size:7px}.local-cue{top:105px}.review-card h3{font-size:18px}.ledger{gap:8px}.record-note{font-size:7px}.miles-total>strong{font-size:40px}}
@media(max-width:389px){.mileage-card{left:auto;width:62%;padding:12px}.mileage-card .card-heading{font-size:9px}.mileage-card .card-heading .icon{width:13px;height:13px}.mileage-card .miles-total>strong{font-size:40px}.mileage-card .miles-total{margin:10px 0}.mileage-card .miles-breakdown{gap:7px}.mileage-card .miles-breakdown b{font-size:11px}.mileage-card>p{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Connected-shift v2: real split-screen choreography, five modes, zone proof. */
:root{--red:#d62d37}
.phone-screen{--explain-height:285px}
.chapter-rail{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}
.chapter-button>span:first-child{font-size:9px}
.rg-overlay{will-change:transform,opacity}
.explain-frame,.compare-frame{will-change:height,opacity}
.bubble-layer[data-red]{opacity:0}
.ride-bubble.tone-red{--tone:#d92732;--tint:#fff4f4;--tone-border:#f17077}
.tone-red .bubble-rg{background:#ed2b2b}
.tone-red .bubble-metrics{border-color:#efd4d6}
.tone-red .metric-chip{border-color:#edd4d5}
.tone-gray .bubble-metrics{grid-template-columns:1.08fr 1.2fr .95fr}
.tone-gray .metric-chip{font-size:9.5px}
/* The reading bubble (core congruence audit c5): neutral, never a verdict colour, one word, as the app draws it. */
.ride-bubble.tone-neutral{--tone:#17365d;--tint:#eef5ff;--tone-border:#b9cce4}
.tone-neutral .bubble-rg{background:#e8f4ff;color:#17365d}
.tone-neutral .bubble-metrics{grid-template-columns:1fr;border-color:#d6e3f2}
.tone-neutral .metric-chip{color:#17365d}
.tone-neutral .bubble-map{visibility:hidden}
.primary-row{isolation:isolate}
/* Each split-screen row names its own verdict word; no row is flagged as the better offer. */
.row-verdict{opacity:0}
.source-label>.row-verdict:last-child{font-size:7px;font-weight:800;letter-spacing:.04em}
.source-label>.row-verdict.is-strong{color:#0c8249}
.source-label>.row-verdict.is-caution{color:#9e6600}

.split-screen{position:absolute;top:34px;bottom:15px;left:0;right:0;display:grid;grid-template-rows:minmax(0,1fr) 8px minmax(0,1fr);background:#111927;opacity:0;z-index:3;pointer-events:none;will-change:opacity}
.split-app-pane{position:relative;overflow:hidden;background:#edf2f4;opacity:0;will-change:transform,opacity}
.split-app-map{position:absolute;inset:0;width:100%;height:100%;opacity:.82}
.dash-pane .split-app-map{transform:rotate(180deg);opacity:.65}
.split-app-chrome{position:absolute;top:8px;left:14px;right:14px;display:flex;align-items:center;gap:6px;font-size:10px;color:#172333}
.split-app-chrome>.source-icon{width:18px;height:18px;border-radius:5px;font-size:9px}
.split-app-chrome small{font-size:7px;margin-left:auto;font-weight:700;color:#65758a}
.split-source-card{position:absolute;top:40px;left:14px;right:14px;padding:11px 12px;background:#fff;border:1px solid #d8e1ea;border-radius:14px;box-shadow:0 5px 15px #253b5118}
.split-source-card>div{display:flex;align-items:center;justify-content:space-between;gap:7px}
.split-source-card strong{font-size:25px;line-height:1.08;color:#101a29;font-weight:800;font-variant-numeric:tabular-nums}
.split-source-card>div>span{font-size:7px;color:#69778a;font-weight:700;display:flex;align-items:center;gap:3px}
.split-source-card .icon{width:10px;height:10px}
.split-source-card p{font-size:9px;line-height:1.45;color:#425167;margin:8px 0}
.split-accept{display:grid;place-items:center;min-height:28px;background:#111;color:#fff;border-radius:7px;font-size:9px;font-weight:800}
.dash-pane .split-app-chrome{top:85px}
.dash-pane .split-source-card{top:110px}
.dash-pane .split-accept{background:#e52612;border-radius:99px}
.split-divider{position:relative;display:grid;place-items:center;background:#111927;z-index:1}
.split-divider>i{display:block;width:24px;height:2px;border-radius:4px;background:#6d798d}
.split-setup,.app-picker{position:absolute;z-index:25;left:50%;width:188px;margin-left:-94px;border:1px solid #d6e1ee;border-radius:17px;background:#fff;box-shadow:0 16px 32px #2030472b;opacity:0;pointer-events:none;will-change:transform,opacity}
.split-setup{top:121px;padding:12px}
.split-setup>div{display:flex;gap:6px;align-items:center;font-size:10px;margin-bottom:10px}
.split-setup>div>small{font-size:7px;margin-left:auto;color:#69798d}
.split-setup .source-icon{height:20px;width:20px;font-size:9px}
.split-setup>span{height:38px;display:flex;gap:9px;align-items:center;padding:0 10px;background:#f0f5fc;border-radius:9px;font-size:11px;font-weight:800}
.split-setup>span>.icon{height:18px;width:18px;color:var(--blue)}
.app-picker{bottom:66px;padding:14px}
.app-picker>div{display:flex;align-items:center;gap:9px;background:#f7f9fc;border:1px solid #e1e8f1;padding:12px 10px;border-radius:12px;margin-top:10px;font-size:11px}
.app-picker>div>.icon{height:16px;width:16px;margin-left:auto;color:#657489}

.mode-panel{top:135px;left:16px;right:16px;padding:16px;pointer-events:none;border-radius:20px}
.mode-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}
.mode-heading .mini-eyebrow{font-size:8px}
.mode-heading>small{font-size:7px;color:var(--blue);font-weight:700}
.mode-options{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;isolation:isolate}
.mode-option{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 4px;border:1px solid #e0e7ef;border-radius:9px;background:transparent;color:#586980;font-size:9px;font-weight:800;transition:color .4s ease,border-color .4s ease}
.mode-option .icon{height:14px;width:14px}
.mode-option[data-mode-option="custom"]{grid-column:1/-1}
.mode-option[aria-pressed="true"]{color:#0867f2;border-color:#9cbfeb}
.mode-option:hover{border-color:#89b5ef}
.mode-option:focus-visible{outline:2px solid #0867f2;outline-offset:2px}
.mode-selected{left:0;top:0;bottom:auto;z-index:-1;border:1px solid #a2c4f4;background:#edf5ff;border-radius:9px;box-shadow:0 3px 7px #24569209;will-change:transform,width,height}
.mode-details{position:relative;height:112px;margin-top:14px}
.mode-detail{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;text-align:center;opacity:0;will-change:transform,opacity}
.mode-detail>strong{font-size:23px;font-weight:800;line-height:1.25;color:var(--blue);font-variant-numeric:tabular-nums}
.mode-detail>small{font-size:7px;color:#738297;margin-top:2px}
.mode-detail>b{font-size:10px;margin-top:13px;line-height:1.4}
.mode-detail>p{font-size:8px;color:#68798e;margin-top:4px;line-height:1.5}
.mode-panel>.mode-trust{font-size:7px;border-top:1px solid #e6edf4;padding-top:11px;color:#67768c;margin:0}
body[data-playing="false"] .mode-selected{transition:transform .65s var(--ease),width .65s var(--ease),height .65s var(--ease)}
body[data-playing="false"] .mode-detail{transition:opacity .45s ease,transform .45s var(--ease)}

.avoid-route-line{stroke:#df3945;stroke-width:3.5;stroke-linecap:round;fill:none}
.avoid-app-pin{font:800 5.5px Manrope,sans-serif;fill:#fff;text-anchor:middle}
[data-zone-halo]{transform-box:fill-box;transform-origin:center;will-change:transform,opacity}
.zone-cue{top:113px;bottom:auto;left:14px;right:14px;border-color:#efc7ca;box-shadow:0 8px 20px #5e172614}
.zone-cue .icon{color:#d92732;height:19px;width:19px}
.zone-cue b{font-size:9px;color:#c82631}
.zone-cue small{font-size:7.5px}
.avoid-offer{padding:15px 16px}
.avoid-offer .dash-payout{gap:2px;margin-top:10px}
.avoid-offer .dash-payout>span{font-size:10px}
.avoid-offer .offer-price{font-size:31px}
.avoid-offer .dash-distance{margin:8px 0}
.avoid-offer .offer-location{background:transparent;border:0;border-radius:0;padding:0;margin-top:9px}
.avoid-offer .source-accept{min-height:35px;margin-top:13px}

@media(max-width:900px){.chapter-button>span:first-child{font-size:8px}.chapter-rail{gap:8px}}
@media(max-width:680px){.chapter-rail{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 10px}.chapter-button>span:first-child{font-size:8px}.chapter-button small{font-size:7px}}
@media(max-width:389px){.phone-screen{--explain-height:270px}.tone-gray .metric-chip{font-size:8.5px}.split-source-card{top:31px;padding:8px 10px}.split-source-card strong{font-size:22px}.split-source-card p{font-size:8px;margin:6px 0}.split-accept{min-height:25px;font-size:8px}.split-source-card>div>span{font-size:6.5px}.split-app-chrome{font-size:9px}.dash-pane .split-source-card{top:110px}.mode-panel{top:117px;left:12px;right:12px;padding:14px}.mode-heading{margin-bottom:10px}.mode-option{font-size:8.5px;gap:4px}.mode-details{height:105px}.mode-detail>strong{font-size:21px}.mode-detail>b{font-size:9px;margin-top:11px}.mode-detail>p{font-size:7px}.zone-cue{top:99px;left:10px;right:10px;padding:9px}.zone-cue b{font-size:8px}.zone-cue small{font-size:6.7px}.avoid-offer{padding:12px 14px}.avoid-offer .offer-price{font-size:29px}.avoid-offer .offer-location b{font-size:9px}.avoid-offer .offer-location small{font-size:7px}.better-row-highlight{height:67px}.source-label>.better-indicator:last-child{font-size:6px}.split-setup{top:111px}.app-picker{bottom:46px}}
@media(max-width:340px){.split-source-card{top:30px}.split-source-card strong{font-size:20px}.split-source-card>div>span{font-size:6px}.split-app-chrome small{font-size:6px}.split-source-card p{font-size:7.5px}.mode-panel{top:113px;padding:12px}.mode-details{height:99px}.mode-option{font-size:8px}.mode-detail>strong{font-size:20px}.mode-detail>b{font-size:8.5px}.mode-panel>.mode-trust{font-size:6.5px}.zone-cue small{font-size:6.3px}.zone-cue b{font-size:7.5px}.chapter-rail{gap:4px 8px}.chapter-button>span:first-child{font-size:7px}}

/* Mileage accumulates into a reviewable month; deduction is never tax saved. */
.chapter-rail{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.history-street{stroke:#fff;stroke-width:6;stroke-linecap:round;fill:none}
.history-route{stroke-width:2.5;stroke-linecap:round;fill:none;opacity:0}
.mileage-tracker{will-change:transform,opacity;pointer-events:none}
.mileage-tracker text{font-family:var(--font-sans);font-size:8px;font-weight:800;fill:white;letter-spacing:0}
.mileage-summary,.tax-card{position:absolute;z-index:13;bottom:23px;left:12px;right:12px;padding:18px;background:#fff;border:1px solid #d8e3ee;border-radius:22px;box-shadow:0 14px 30px #1831531f;opacity:0;pointer-events:none;will-change:transform,opacity}
.period-tabs{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:3px;background:#f2f6fb;border:1px solid #e3eaf3;border-radius:11px;margin-top:17px}
.period-tabs>i{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border:1px solid #c7dbf5;border-radius:8px;background:white;box-shadow:0 2px 5px #27445f09;z-index:-1;will-change:transform}
.period-tabs>button{background:none;border:0;min-height:44px;font:800 10px Manrope,sans-serif;color:#66778f;border-radius:8px;padding:5px}
.period-tabs>button[aria-pressed=true]{color:var(--blue)}
.period-tabs>button:focus-visible,.export-actions>a:focus-visible{outline:2px solid #0867f2;outline-offset:2px}
.summary-period{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:10px}
.summary-period>span{font-size:7px;color:#78869a}
.aggregate-total{display:flex;align-items:center;gap:10px;margin:9px 0 12px;font-variant-numeric:tabular-nums}
.aggregate-total>strong{font-size:49px;line-height:1.15;letter-spacing:-2px;color:var(--blue);font-weight:800}
.aggregate-total>span{font-size:11px;font-weight:700;line-height:1.5;color:#52647d}
.summary-stats{display:flex;justify-content:space-between;gap:7px;padding:10px 0;font-size:8px;color:#61728a;border-top:1px solid #e5ecf4;border-bottom:1px solid #e5ecf4}
.summary-stats b{font-size:11px;color:#293b53;font-variant-numeric:tabular-nums}
.summary-explainer{font-size:8px;line-height:1.65;color:#728197;margin:11px 0 0}
.tax-card{bottom:38px;padding:18px}
.tax-card h3{font-size:22px;line-height:1.22;margin:18px 0 15px;font-weight:800;letter-spacing:-.6px}
.tax-rate{display:flex;align-items:center;gap:5px;flex-wrap:wrap;background:#f5f8fc;border:1px solid #e1e9f3;border-radius:9px;padding:10px 9px;font-size:8px;color:#5f7087}
.tax-rate>b{color:var(--ink);font-size:11px;margin-left:auto}
.tax-rate>small{font-size:7px;padding-left:4px}
.deduction-row{padding:14px 0 0;margin-top:2px}
.deduction-label{display:flex;align-items:center;gap:8px;font-size:7px;color:#7c899d;font-weight:800;letter-spacing:.3px}
.deduction-label>b{font-size:9px;color:#51637a;letter-spacing:0}
.deduction-row>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}
.deduction-row>div>span{font-size:8px;color:#6c7a8e;font-variant-numeric:tabular-nums}
.deduction-row>div>strong{font-size:24px;letter-spacing:-.5px;line-height:1.2;font-weight:800;color:#5b6d83;font-variant-numeric:tabular-nums}
.deduction-row>i{display:block;overflow:hidden;height:4px;border-radius:5px;background:#eaf0f6;margin-top:8px}
.deduction-row>i>b{display:block;height:100%;width:100%;transform-origin:left;background:#96a4b6;border-radius:5px}
.deduction-row.after>i>b{background:#109b5d}
.deduction-row.after>div>strong{color:#0d8b54}
.deduction-row.after .deduction-label{color:#0d8b54}
.tax-note{font-size:8px;line-height:1.65;margin:16px 0 0;color:#64758b}
.tax-note>b{display:block;color:#2b4059;font-size:9px;margin-bottom:3px}
.export-card{padding:18px;bottom:23px}
.export-card h3{margin:17px 0 14px}
.export-summary{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.export-summary>strong{font-size:36px;line-height:1.1;font-weight:800;color:var(--blue);letter-spacing:-1.2px}
.export-summary>span{font-size:8px;line-height:1.7;color:#66788d}
.export-summary>span>b{font-weight:800;color:#2e435d}
.export-preview{border:1px solid #e0e8f2;border-radius:11px;overflow:hidden;background:#fbfcfe}
.export-preview>div{display:flex;align-items:center;gap:7px;padding:10px 9px}
.export-preview>div+div{border-top:1px solid #e5ecf4}
.export-preview .source-icon{height:21px;width:21px;font-size:9px;border-radius:6px}
.export-preview>div>span:nth-child(2){display:grid;gap:2px;min-width:0}
.export-preview b{font-size:8px}
.export-preview small{font-size:6.5px;color:#708097}
.export-preview strong{margin-left:auto;white-space:nowrap;font-size:9px;font-variant-numeric:tabular-nums}
.record-fields{display:flex;align-items:center;gap:5px;font-size:7px;line-height:1.5;color:#65758b;margin:12px 0}
.record-fields .icon{color:var(--green);width:12px;height:12px;flex:none}
.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:13px}
.export-actions>a{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;border:1px solid #d4e1f2;background:#f5f8fd;border-radius:10px;color:#0867f2;text-decoration:none;font-size:9px;font-weight:800}
.export-actions>a:first-child{background:#0867f2;border-color:#0867f2;color:white}
.export-actions .icon{width:15px;height:15px}
.export-actions>a:hover{filter:brightness(.97)}
.export-card .record-note{font-size:7px;line-height:1.65}
.tax-source{font-size:8px;line-height:1.7;text-align:center;color:#758399;margin:4px 0 0}
.tax-source a{color:#496b9b;text-underline-offset:2px}
.local-cue{top:54px;left:18px;right:18px}
@media(max-width:900px){.chapter-rail{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 10px}.chapter-button>span:first-child{font-size:8px;gap:4px}}
@media(max-width:680px){.captions{height:205px}.tax-source{font-size:7px}}
@media(max-width:389px){.mileage-summary,.tax-card{left:10px;right:10px;padding:15px;bottom:21px}.tax-card{bottom:30px}.tax-card h3{font-size:20px;margin:15px 0 12px}.tax-rate{padding:9px 8px}.tax-rate>small{font-size:6.5px}.deduction-row>div>strong{font-size:23px}.tax-note{font-size:7.5px;margin-top:13px}.tax-note>b{font-size:8px}.export-card{padding:15px}.export-card h3{font-size:20px;margin:13px 0}.export-preview>div{padding:9px 8px}.record-fields{font-size:6.5px}.export-summary{margin-bottom:12px}.export-summary>strong{font-size:32px}.export-card .record-note{font-size:6.5px}.summary-period{margin-top:15px}.aggregate-total>strong{font-size:45px}}
@media(max-width:340px){.tax-card{padding:14px}.tax-card h3{font-size:19px}.tax-rate{gap:3px;font-size:7px}.tax-rate>b{font-size:10px}.tax-rate>small{font-size:6px}.deduction-label>b{font-size:8px}.tax-note{font-size:7px}.export-card h3{font-size:18px}.export-preview b{font-size:7.5px}.export-preview small{font-size:6px}.record-fields{font-size:6px}.export-actions>a{font-size:8px}.export-summary>span{font-size:7px}.export-card .record-note{font-size:6px}.summary-stats{font-size:7px}.summary-stats b{font-size:10px}.aggregate-total>strong{font-size:42px}}
@media(max-width:389px){.local-cue{top:44px}}
@media(max-width:340px){.local-cue{top:35px}.chapter-button>span:first-child{font-size:7px}}

/* Part of the multi-app caption, so the pill shares its existing fade/slide.
   Inline placement adds no extra header row to the compact homepage demo. */
.caption-pro-plus {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline-start: 7px;
  padding: 3px 8px;
  border: 1px solid #e0d4ff;
  border-radius: 999px;
  background: #f0eaff;
  color: #5d3bbb;
  font: 800 10px/1.3 var(--font-sans);
  white-space: nowrap;
}

/* Shared responsive geometry. Fixed caption slots used to let longer copy
   collide with the phone/trust note in the full-size demonstration. */
.captions { display: grid; height: auto; min-width: 0; }
.caption { position: relative; inset: auto; grid-area: 1 / 1; align-self: start; min-width: 0; }
.scene {
  --phone-width: 344px;
  --phone-height: 618px;
  --phone-scale: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: start center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: calc(var(--phone-height) * var(--phone-fit, var(--phone-scale)));
}
.phone-wrap {
  width: var(--phone-width);
  height: var(--phone-height);
  margin: 0;
  transform: scale(var(--phone-fit, var(--phone-scale)));
  transform-origin: center top;
}
.mode-details { display: grid; height: auto; min-height: 112px; }
.mode-detail { position: relative; inset: auto; grid-area: 1 / 1; }
@media (max-width: 389px) {
  .scene { --phone-width: 312px; --phone-height: 566px; }
  .mode-details { min-height: 105px; }
}
@media (max-width: 340px) {
  .scene { --phone-width: 294px; --phone-height: 535px; }
  .mode-details { min-height: 99px; }
}

/* Expanded demo: one contained map card, a full-size phone, and controls
   that wrap instead of overflowing. The home stylesheet supplies its own
   compact presentation after these shared rules. */
body:not([data-home-embed]) .study-header {
  height: auto;
  min-height: 76px;
  gap: 12px 20px;
  padding: 16px 24px;
  flex-wrap: wrap;
}
body:not([data-home-embed]) main { max-width: 1180px; padding: 0 24px 24px; }
body:not([data-home-embed]) .story {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 410px);
  gap: 28px;
  min-height: 0;
  padding: 28px;
  border: 1px solid #dbe5f3;
  border-radius: 28px;
  background: linear-gradient(145deg, #f6faff, #edf4fe);
  overflow: hidden;
  transition: border-color 450ms var(--ease), box-shadow 450ms var(--ease);
}
body:not([data-home-embed]) .story::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/generated/rg-map-atmosphere-1536x1024.webp') center / cover;
  opacity: .28;
  pointer-events: none;
}
body:not([data-home-embed]) main:has([data-chapter="compare"][aria-current="step"]) .story {
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px #7047eb55;
}
body:not([data-home-embed]) .scene-orbit,
body:not([data-home-embed]) .scene-label { display: none; }
body:not([data-home-embed]) .narrative { padding: 0; min-width: 0; }
body:not([data-home-embed]) .caption h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.14; }
body:not([data-home-embed]) .caption p { font-size: 14px; line-height: 1.6; max-width: 390px; }
body:not([data-home-embed]) .narrative-note { padding-top: 24px; }
body:not([data-home-embed]) .section-label { margin-bottom: 22px; }
body:not([data-home-embed]) .visual { width: 100%; min-width: 0; }
body:not([data-home-embed]) .transport { max-width: none; padding: 16px 20px; }
body:not([data-home-embed]) .chapter-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 16px; }
body:not([data-home-embed]) .chapter-button { min-width: 0; min-height: 44px; }
body:not([data-home-embed]) .chapter-button > span:first-child { white-space: normal; font-size: 11px; line-height: 1.35; }
body:not([data-home-embed]) .playback button { min-height: 44px; font-size: 11px; }
body:not([data-home-embed]) .study-disclosure,
body:not([data-home-embed]) .tax-source { font-size: 11px; line-height: 1.6; }
@media (min-width: 901px) {
  body:not([data-home-embed]) .scene { --phone-scale: 1.08; }
}
@media (max-width: 900px) {
  body:not([data-home-embed]) .story { display: flex; flex-direction: column; gap: 24px; padding: 24px; }
  body:not([data-home-embed]) .narrative { text-align: center; }
  body:not([data-home-embed]) .caption .chapter-number,
  body:not([data-home-embed]) .caption-tags { justify-content: center; }
  body:not([data-home-embed]) .caption p { margin-inline: auto; }
  body:not([data-home-embed]) .narrative-note { display: none; }
}
@media (max-width: 480px) {
  body:not([data-home-embed]) main { padding-inline: 12px; }
  body:not([data-home-embed]) .story { padding: 20px 10px; border-radius: 22px; }
  body:not([data-home-embed]) .caption h2 { font-size: 28px; }
  body:not([data-home-embed]) .caption p { font-size: 12px; }
  body:not([data-home-embed]) .transport { padding: 12px; }
  body:not([data-home-embed]) .chapter-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not([data-home-embed]) .playback { flex-wrap: wrap; }
  body:not([data-home-embed]) .playback-buttons { flex: 1; }
  body:not([data-home-embed]) .scrubber { flex-basis: 100%; order: 3; }
}

/* Paired live reads are two plain capsules, without source or verdict headers. */
.second-row{top:52px}
