/* =========================================================================
   Quarley landing page
   Design system: see DESIGN-BLUEPRINT.md
   ========================================================================= */

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #2B8FFD;
}

:root {
  /* colour */
  --night: #06090F;
  --night-2: #0A0F18;
  --ink: #191C1B;
  --ink-2: #121417;
  --ink-muted: #5C625F;
  --paper: #F4F5F1;
  --paper-2: #FFFFFF;
  --line-ink: rgba(15, 56, 42, .10);
  --white: #FFFFFF;
  --white-80: rgba(255, 255, 255, .8);
  --white-66: rgba(255, 255, 255, .66);
  --white-40: rgba(255, 255, 255, .58);
  --white-16: rgba(255, 255, 255, .16);
  --white-08: rgba(255, 255, 255, .08);
  --trip: #2B8FFD;
  --owed: #E8A63D;
  --credit: #54C07E;
  --glass-bg: rgba(14, 20, 30, .40);
  --glass-line: rgba(255, 255, 255, .14);

  /* type */
  --f-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-app: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --brand-grad: linear-gradient(100deg, #2B8FFD 0%, #20B6EE 55%, #1FCFC2 100%);
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --gutter: clamp(16px, 4.6vw, 72px);
  --maxw: 1320px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-enter: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--white);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--night); }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--white); color: var(--ink); border-radius: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, white);
}
.eyebrow--dim { color: var(--white-40); }
.eyebrow--ink { color: var(--ink-muted); }

.display {
  margin: 14px 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 86px);
  line-height: 1;
  letter-spacing: -.04em;
}
.display em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display--ink { color: var(--ink); }
.display--ink em { background: linear-gradient(100deg, #1F6FE0, #0FA3A0); -webkit-background-clip: text; background-clip: text; }
.display--xl { font-size: clamp(34px, 7.4vw, 120px); }

.lede { max-width: 30em; margin: 24px 0 0; font-size: clamp(15px, 1.15vw, 17px); color: var(--white-66); }
.lede--ink { color: var(--ink-muted); }
.fine { margin: 18px 0 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--white-40); }
.fine--center { text-align: center; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), opacity .8s var(--ease-out), translate .8s var(--ease-out);
}
.nav.is-solid { background: rgba(10, 14, 22, .72); border-color: rgba(255, 255, 255, .08); }
.nav.is-light { background: rgba(255, 255, 255, .78); border-color: rgba(0, 0, 0, .06); color: var(--ink); }
.nav__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; }
.nav__mark svg { width: 24px; height: 24px; }
.nav__links { display: flex; }
.nav__links a, .nav__cta {
  white-space: nowrap;
  padding: 10px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav__links a:hover { background: rgba(255, 255, 255, .12); }
.nav.is-light .nav__links a:hover { background: rgba(0, 0, 0, .05); }
.nav__cta { background: var(--white); color: var(--ink); margin-left: 4px; }
.nav__cta:hover { background: color-mix(in srgb, var(--accent) 30%, white); }
.nav.is-light .nav__cta { background: var(--ink-2); color: var(--white); }

/* =========================================================================
   HERO SCENE
   ========================================================================= */
.scene { position: relative; height: 300vh; --accent: var(--trip); transition: --accent .9s ease; }
.scene[data-step="1"] { --accent: var(--owed); }
.scene[data-step="2"] { --accent: var(--credit); }
.scene__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- backdrop ---------- */
.backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.sky { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.sky.is-on { opacity: 1; }
.sky--0 { background:
  radial-gradient(70% 38% at 50% 44%, rgba(98, 160, 255, .55), transparent 70%),
  linear-gradient(180deg, #040A18 0%, #0B2554 26%, #1D4C9A 40%, #4E86D6 45.5%, #0E2140 53%, #05080F 100%); }
.sky--1 { background:
  radial-gradient(70% 38% at 50% 44%, rgba(255, 170, 80, .55), transparent 70%),
  linear-gradient(180deg, #0B0806 0%, #2B1608 24%, #6A360F 40%, #C98A44 45.5%, #22140A 53%, #07060A 100%); }
.sky--2 { background:
  radial-gradient(70% 38% at 50% 44%, rgba(84, 192, 126, .40), transparent 70%),
  linear-gradient(180deg, #03080A 0%, #071C19 26%, #0F4237 40%, #4FA77C 45.5%, #0A1D18 53%, #04070A 100%); }

.map-plane {
  position: absolute; left: 50%; top: 45.5%;
  width: max(160vw, 1500px);
  aspect-ratio: 975 / 610;
  translate: -50% 0;
  perspective: 1100px;
  perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 70%, transparent 100%);
}
.map-cam {
  position: absolute; inset: 0;
  transform-origin: calc(var(--fx, .5) * 100%) calc(var(--fy, .5) * 100%);
  transform: rotateX(var(--tilt, 56deg)) translate(calc((.5 - var(--fx, .5)) * 100%), calc((.14 - var(--fy, .5)) * 100%)) scale(var(--fs, 1));
  transition: transform 1.8s var(--ease-io), transform-origin 1.8s var(--ease-io);
  will-change: transform;
}
.map { width: 100%; height: 100%; overflow: visible; }
.map .st { fill: rgba(255, 255, 255, .025); stroke: none; transition: fill .9s ease; }
.map .st.is-lit { fill: color-mix(in srgb, var(--accent) 20%, transparent); }
.map .st.is-credit { fill: rgba(84, 192, 126, .26); }
.map .st.is-owed { fill: rgba(232, 166, 61, .34); }
.map .borders { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: .5; vector-effect: non-scaling-stroke; }
.map .route-base { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.map .route-glow { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; opacity: .22; vector-effect: non-scaling-stroke; }
.map .route-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map .truck { fill: var(--white); }
.map .truck-ring { fill: none; stroke: var(--white); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out infinite; }
.map .fuel-pin { opacity: 0; transition: opacity .6s ease .6s; }
.scene[data-step="1"] .map .fuel-pin { opacity: 1; }
.map .fuel-pin circle { fill: var(--owed); }
.map .fuel-pin .halo { fill: none; stroke: var(--owed); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ping 1.8s ease-out infinite; }
.map .st-label { font-family: var(--f-mono); font-size: 7px; letter-spacing: .12em; fill: rgba(255, 255, 255, .55); text-anchor: middle; opacity: 0; transition: opacity .6s ease; }
.map .st-label.is-lit { opacity: 1; }

@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.haze {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 58%, transparent 40%, rgba(4, 6, 10, .55) 100%),
    linear-gradient(90deg, rgba(4, 6, 10, .55) 0%, transparent 34%, transparent 70%, rgba(4, 6, 10, .35) 100%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- corner, caption ---------- */
.corner {
  position: absolute; z-index: 6; top: 38px; right: var(--gutter);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -.03em;
}
.corner .qi { width: 26px; height: 26px; }
.caption {
  position: absolute; z-index: 6; left: var(--gutter); bottom: 44px; margin: 0;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--white-80);
}

/* ---------- copy ---------- */
.copy {
  position: absolute; z-index: 5;
  left: var(--gutter); top: 74px;
  width: min(460px, 36vw);
}
.copy__step { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; pointer-events: none; }
.copy__step.is-active { opacity: 1; pointer-events: auto; }
.copy__step.is-leaving { opacity: 0; translate: 0 -14px; filter: blur(6px); transition: opacity .38s ease, translate .45s var(--ease-out), filter .38s ease; }

.headline {
  margin: 18px 0 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: .94;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.headline .ln { display: block; }
.headline .ch { display: inline-block; white-space: pre; }
.copy__step.is-entering .ch {
  animation: letter-in .55s var(--ease-enter) both;
  animation-delay: calc(var(--i) * 28ms + 120ms);
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(28px) scale(1.08); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.sub { margin: 22px 0 0; max-width: 25em; font-size: 15px; line-height: 1.55; color: var(--white-66); }
.copy__step.is-entering .sub,
.copy__step.is-entering .panel,
.copy__step.is-entering .tag,
.copy__step.is-entering .eyebrow { animation: rise .6s var(--ease-enter) both; }
.copy__step.is-entering .eyebrow { animation-delay: 40ms; }
.copy__step.is-entering .sub { animation-delay: 380ms; }
.copy__step.is-entering .panel { animation-delay: 480ms; }
.copy__step.is-entering .tag { animation-delay: 580ms; }
@keyframes rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.panel {
  margin-top: 26px; width: min(280px, 100%);
  padding: 14px 16px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.panel__head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white-80); }
.panel__head b { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.panel__bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 12px; }
.panel__bars i { flex: 1; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .14); transform-origin: bottom; transform: scaleY(var(--h, .1)); transition: transform .7s var(--ease-out), background .4s ease; }
.panel__bars i.is-lit { background: var(--accent); }
.panel__spark { width: 100%; height: 38px; margin-top: 12px; overflow: visible; }
.panel__spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; }
.copy__step.is-active .panel__spark path { animation: draw 1.6s var(--ease-out) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.panel__ledger { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 12px; }
.panel__ledger i { flex: 1; height: 100%; border-radius: 3px; background: var(--credit); transform-origin: bottom; transform: scaleY(0); }
.panel__ledger i.is-owed { background: var(--owed); }
.copy__step.is-active .panel__ledger i { animation: grow .8s var(--ease-out) forwards; }
.panel__ledger i:nth-child(n) { animation-delay: calc(500ms + var(--n, 0) * 60ms); }
@keyframes grow { to { transform: scaleY(var(--h)); } }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 14px 0 0; padding: 9px 16px 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }

/* ---------- phone (CSS 3D) ---------- */
.stage {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  perspective: 1800px;
  pointer-events: none;
}
.phone-tilt {
  --pw: clamp(232px, 19.5vw, 296px);
  width: var(--pw); height: calc(var(--pw) * 2.05);
  margin-top: 4vh;
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
}
.phone {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  --r: calc(var(--pw) * .165);
}
.phone__front, .phone__back, .phone__slices i {
  position: absolute; inset: 0;
  border-radius: var(--r);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.phone__front {
  transform: translateZ(5px);
  padding: calc(var(--pw) * .035);
  background: linear-gradient(145deg, #3a3d42, #101114 40%, #1c1e22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -20px rgba(0, 0, 0, .7);
}
.phone__back {
  transform: rotateY(180deg) translateZ(5px);
  background: radial-gradient(120% 80% at 30% 10%, #2b2f36, #121418 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone__slices i { background: #24272c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset; }
.phone__cam {
  position: absolute; top: 5%; left: 7%; width: 40%; aspect-ratio: 1; border-radius: 28%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
}
.phone__cam i { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a4a66, #05070a 60%); border: 3px solid #1a1c20; }
.phone__cam i:nth-child(1) { top: 8%; left: 8%; }
.phone__cam i:nth-child(2) { bottom: 8%; left: 8%; }
.phone__cam i:nth-child(3) { top: 31%; right: 8%; }
.phone__logo { position: absolute; left: 50%; top: 50%; width: 26%; translate: -50% -50%; }

.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--r) * .8);
  overflow: hidden;
  background: #F8FAF7;
  color: var(--ink);
  font-family: var(--f-app);
  font-size: calc(var(--pw) * .042);
  container-type: inline-size;
}
.island { position: absolute; z-index: 3; top: 2.2%; left: 50%; width: 32%; height: 4.2%; translate: -50% 0; border-radius: 99px; background: #000; }
.status { position: absolute; z-index: 2; top: 2.6%; left: 9%; right: 8%; display: flex; justify-content: space-between; font-weight: 700; font-size: .95em; }
.status__icons { display: flex; gap: .35em; align-items: center; }
.status__icons i:nth-child(1) { width: 1.05em; height: .7em; background: linear-gradient(90deg, var(--ink) 0 18%, transparent 18% 27%, var(--ink) 27% 45%, transparent 45% 54%, var(--ink) 54% 72%, transparent 72% 81%, var(--ink) 81%); -webkit-mask: linear-gradient(to top right, #000 50%, transparent 50%); mask: linear-gradient(to top right, #000 50%, transparent 50%); }
.status__icons i:nth-child(2) { width: .95em; height: .7em; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(circle at 50% 100%, var(--ink) 0 22%, transparent 23% 40%, var(--ink) 41% 58%, transparent 59% 75%, var(--ink) 76%); }
.status__icons i:nth-child(3) { width: 1.6em; height: .75em; border-radius: .22em; border: 1.5px solid rgba(25, 28, 27, .45); box-shadow: inset 0 0 0 1.5px #F8FAF7; background: var(--ink); }

.scr {
  position: absolute; inset: 0;
  padding: 18% 7% 6%;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
}
.scr.is-active { opacity: 1; visibility: visible; }
.scr__top { display: flex; justify-content: space-between; align-items: center; }
.scr__brand { display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-display); font-weight: 600; font-size: 1.02em; letter-spacing: -.02em; }
.scr__brand svg { width: 1.25em; height: 1.25em; }
.scr__pill { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 99px; background: #E8F1FF; color: #1D5FC4; font-size: .72em; font-weight: 700; }
.scr__pill i { width: .5em; height: .5em; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.scr__pill--amber { background: #FFF0D4; color: #9A5B00; }
.scr__pill--green { background: #D1FAE5; color: #006C48; }
.scr__title { margin: .9em 0 0; font-size: 1.55em; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.scr__meta { margin: .25em 0 0; font-size: .78em; color: #717974; font-weight: 500; }
.scr__btn { margin-top: auto; display: block; padding: .95em; border-radius: 1em; background: #121417; color: #fff; font-weight: 700; font-size: .88em; text-align: center; }

/* trip screen */
.tripmap { position: relative; margin-top: .9em; border-radius: 1.1em; background: #121417; aspect-ratio: 1.12; overflow: hidden; }
.tripmap__svg { width: 100%; height: 100%; }
.tripmap__svg .st { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .14); stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .6s ease; }
.tripmap__svg .st.is-lit { fill: rgba(43, 143, 253, .22); }
.tripmap__svg .route-base { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.tripmap__svg .route-line { fill: none; stroke: #2B8FFD; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tripmap__svg .truck { fill: #fff; stroke: #2B8FFD; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tripmap__badge { position: absolute; top: .7em; left: .7em; padding: .25em .6em; border-radius: .5em; background: rgba(255, 255, 255, .12); color: #fff; font-family: var(--f-mono); font-size: .72em; font-weight: 600; letter-spacing: .12em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; margin-top: .8em; }
.stats div { padding: .6em .7em; border-radius: .8em; background: #fff; border: 1px solid var(--line-ink); }
.stats small { display: block; font-size: .64em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #717974; }
.stats b { font-size: 1.08em; font-weight: 800; font-variant-numeric: tabular-nums; }
.jur { list-style: none; margin: .8em 0 0; padding: 0; display: grid; gap: .35em; }
.jur li { display: flex; align-items: center; gap: .6em; padding: .45em .6em; border-radius: .8em; background: #fff; border: 1px solid var(--line-ink); font-size: .84em; animation: row-in .5s var(--ease-enter) both; }
.jur__ab { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: #F2F4F1; font-weight: 800; font-size: .86em; }
.jur__name { flex: 1; font-weight: 700; line-height: 1.15; }
.jur__name small { display: block; font-weight: 500; color: #717974; font-size: .82em; }
.jur b { font-variant-numeric: tabular-nums; font-weight: 800; }
.jur b.is-credit { color: #006C48; }
.jur b.is-owed { color: #B76E00; }
@keyframes row-in { from { opacity: 0; translate: 0 6px; } }
@keyframes field-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

/* fuel screen */
.receipt { position: relative; margin-top: .9em; padding: .9em; border-radius: 1.1em; background: #E9ECE7; overflow: hidden; }
.receipt__paper {
  padding: .9em .9em 1.1em;
  background: #fff;
  font-family: var(--f-mono); font-size: .66em; line-height: 1.75; color: #2a2d2b;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .25);
  rotate: -1.2deg;
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent);
  mask-image: linear-gradient(180deg, #000 90%, transparent);
}
.receipt__paper p { display: flex; justify-content: space-between; margin: 0; padding: 0 .3em; border-radius: .3em; }
.receipt__paper .r-center { justify-content: center; font-weight: 600; }
.receipt__paper .r-dim { color: #8a8f8c; }
.receipt__paper .r-big { font-weight: 700; font-size: 1.15em; }
.receipt__paper hr { border: 0; border-top: 1px dashed #c9ccc9; margin: .5em 0; }
.scr--fuel.is-live .r-hit { animation: hit .5s ease both; animation-delay: calc(900ms + var(--d) * 350ms); }
@keyframes hit { from { background: transparent; box-shadow: none; } to { background: rgba(232, 166, 61, .18); box-shadow: 0 0 0 1px rgba(232, 166, 61, .7) inset; } }
.receipt__beam { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(232, 166, 61, .35) 80%, #E8A63D); border-bottom: 2px solid #E8A63D; opacity: 0; }
.scr--fuel.is-live .receipt__beam { animation: beam 1.8s var(--ease-io) .2s both; }
@keyframes beam { 0% { opacity: 0; translate: 0 -100%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; translate: 0 420%; } }
.fields { list-style: none; padding: 0; margin: .8em 0 0; display: grid; gap: .35em; }
.fields li { display: flex; justify-content: space-between; align-items: center; padding: .55em .75em; border-radius: .8em; background: #fff; border: 1px solid var(--line-ink); font-size: .84em; opacity: 0; }
.fields li span { color: #414844; font-weight: 600; }
.fields li b { font-weight: 800; font-variant-numeric: tabular-nums; }
.fields li b::after { content: ''; display: inline-block; width: .55em; height: .9em; margin-left: .55em; border: solid #006C48; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -.15em; }
.scr--fuel.is-live .fields li { animation: field-in .5s var(--ease-enter) both; animation-delay: calc(1100ms + var(--d) * 350ms); }

/* review screen */
.ring { position: relative; width: 74%; margin: .9em auto 0; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 7; }
.ring__track { stroke: #E7E9E6; }
.ring__arc { stroke: #121417; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scr--review.is-live .ring__arc { animation: ring 1.6s var(--ease-out) .3s forwards; }
@keyframes ring { to { stroke-dashoffset: .28; } }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label small { font-size: .62em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #717974; }
.ring__label b { font-size: 1.6em; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring__label em { justify-self: center; margin-top: .3em; padding: .2em .6em; border-radius: 99px; background: #D1FAE5; color: #006C48; font-style: normal; font-weight: 700; font-size: .66em; }
.jur--money { margin-top: .9em; }

/* ---------- chips ---------- */
.chips { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.chipset { position: absolute; inset: 0; }
.chip {
  position: absolute;
  left: calc(50% + var(--x) * 1vw);
  top: calc(50% + 2vh + var(--y) * 1vh);
  transform: translate(-50%, -50%) translate3d(calc(var(--mx, 0) * var(--z) * -1px), calc(var(--my, 0) * var(--z) * -1px), 0);
}
.chip__card {
  min-width: 112px;
  padding: 11px 15px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 22%, rgba(12, 18, 28, .32));
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
  opacity: 0;
}
.chip__card small { display: block; font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--white-66); }
.chip__card b { display: block; margin-top: 3px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chipset.is-active .chip__card {
  animation:
    chip-in .7s var(--ease-enter) calc(var(--i) * 90ms + 420ms) both,
    chip-float var(--f) ease-in-out calc(var(--i) * 90ms + 1120ms) infinite;
}
.chipset.is-leaving .chip__card { opacity: 1; animation: chip-out .35s ease both; animation-delay: calc(var(--i) * 40ms); }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chip-out { to { opacity: 0; transform: translateY(-10px) scale(.97); filter: blur(4px); } }
@keyframes chip-float { 0%, 100% { opacity: 1; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(6px, -8px); } }

/* ---------- pips ---------- */
.pips {
  position: absolute; z-index: 7; right: var(--gutter); top: 50%; translate: 0 -50%;
  display: grid; gap: 6px;
}
.pip {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding: 8px 0 8px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  color: var(--white-40);
  transition: color .3s var(--ease-out);
}
.pip i { width: 14px; height: 1px; background: currentColor; transition: width .5s var(--ease-out), background .5s var(--ease-out); }
.pip:hover { color: var(--white-80); }
.pip.is-active { color: var(--white); }
.pip.is-active i { width: 30px; background: var(--accent); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; z-index: 60; left: 0; top: 0;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0; scale: .6;
  transition: opacity .3s ease, scale .4s var(--ease-out);
}
.cursor svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cursor.is-on { opacity: 1; scale: 1; }
.cursor.is-hover { scale: .45; background: rgba(255, 255, 255, .5); }

/* ---------- load sequence ---------- */
body.is-loading .backdrop { opacity: 0; }
.backdrop { transition: opacity 1.4s ease; }
body.is-loading .phone-tilt { opacity: 0; translate: 0 70px; rotate: x 22deg; }
.phone-tilt { transition: opacity 1s ease .25s, translate 1.4s var(--ease-out) .25s, rotate 1.4s var(--ease-out) .25s; }
body.is-loading .pips, body.is-loading .caption, body.is-loading .corner, body.is-loading .nav { opacity: 0; translate: 0 8px; }
body.is-loading .nav { translate: -50% -8px; }
.pips, .caption, .corner { transition: opacity .8s ease 1.1s, translate .8s var(--ease-out) 1.1s; }
.pips { translate: 0 -50%; }
body.is-loading .pips { translate: 8px -50%; }

/* =========================================================================
   LEDGER
   ========================================================================= */
.ledger { position: relative; padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); background: var(--night); }
.ledger__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.ledger__table { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--white-16); }
.lg-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 2fr) 72px; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--white-08);
  font-size: 14px;
  opacity: 0; translate: 0 12px;
  transition: opacity .6s ease, translate .8s var(--ease-out);
  transition-delay: calc(var(--n) * 70ms);
}
.lg-row.is-in { opacity: 1; translate: 0 0; }
.lg-row__ab { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--white-66); }
.lg-row__name { color: var(--white-80); }
.lg-row__bar { height: 6px; border-radius: 6px; background: var(--white-08); overflow: hidden; }
.lg-row__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: var(--brand-grad); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--n) * 70ms + 200ms); }
.lg-row.is-in .lg-row__bar i { transform: scaleX(1); }
.lg-row__mi { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lg-row--total { border-bottom: 0; padding-top: 18px; }
.lg-row--total .lg-row__name, .lg-row--total .lg-row__mi { color: var(--white); font-weight: 700; }

/* reveal helpers */
[data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .9s ease, translate 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; translate: 0 0; }
.rl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rl > span { display: block; translate: 0 105%; transition: translate 1.1s var(--ease-out); transition-delay: calc(var(--n) * 90ms); }
.is-in .rl > span { translate: 0 0; }

/* =========================================================================
   HOW
   ========================================================================= */
.how { padding: clamp(80px, 10vw, 140px) 0 clamp(120px, 14vw, 200px); background: var(--night); }
.how__rows { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; }
.how__row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr); gap: 24px; align-items: baseline;
  padding: clamp(28px, 4vw, 48px) 0;
}
.how__row::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--white-16);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out);
}
.how__row.is-in::before { transform: scaleX(1); }
.how__num { display: block; overflow: hidden; font-family: var(--f-display); font-weight: 300; font-size: clamp(64px, 9vw, 140px); line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--white-40); }
.how__num span { display: block; translate: 0 100%; transition: translate 1.2s var(--ease-out) .1s; }
.how__row.is-in .how__num span { translate: 0 0; }
.how__row h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -.035em; opacity: 0; translate: 0 14px; transition: opacity .8s ease .25s, translate 1s var(--ease-out) .25s; }
.how__row p { margin: 0; max-width: 30em; color: var(--white-66); font-size: clamp(15px, 1.2vw, 17px); opacity: 0; translate: 0 14px; transition: opacity .8s ease .4s, translate 1s var(--ease-out) .4s; }
.how__row.is-in h3, .how__row.is-in p { opacity: 1; translate: 0 0; }
.how__row:hover .how__num { -webkit-text-stroke-color: #20B6EE; }

/* =========================================================================
   PRICING + FAQ (paper)
   ========================================================================= */
.pricing, .faq { background: var(--paper); color: var(--ink); }
.pricing { position: relative; padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 110px); border-radius: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0 0; margin-top: -1px; }
.pricing__head { max-width: 720px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px 26px; border-radius: 22px;
  background: var(--paper-2); border: 1px solid var(--line-ink);
  opacity: 0; translate: 0 24px;
  transition: opacity .8s ease, translate 1s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tier:nth-child(2) { transition-delay: .08s; }
.tier:nth-child(3) { transition-delay: .16s; }
.tier.is-in { opacity: 1; translate: 0 0; }
.tier:hover { box-shadow: 0 24px 50px -30px rgba(15, 56, 42, .35); }
.tier h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tier__who { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; min-height: 2.9em; }
.tier__price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 28px; }
.tier__price b { font-family: var(--f-display); font-weight: 600; font-size: 64px; line-height: .9; letter-spacing: -.05em; }
.tier__price span { color: var(--ink-muted); font-size: 14px; }
.tier--pop { background: var(--ink-2); color: var(--white); border-color: var(--ink-2); }
.tier--pop .tier__who, .tier--pop .tier__price span { color: var(--white-66); }
.tier__badge { position: absolute; top: 24px; right: 24px; padding: 5px 10px; border-radius: 99px; background: rgba(84, 192, 126, .18); color: var(--credit); font-size: 11px; font-weight: 700; }
.btn {
  margin-top: auto;
  display: block; padding: 14px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 700; text-align: center; text-decoration: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), translate .25s var(--ease-out);
}
.btn:hover { translate: 0 -1px; }
.btn--ghost { background: #EEF0EC; color: var(--ink); }
.btn--ghost:hover { background: #E2E5E0; }
.btn--solid { background: var(--white); color: var(--ink); }
.btn--solid:hover { background: #DFF5E8; }
.includes { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 32px 0 0; padding: 0; color: var(--ink-muted); font-size: 14px; }
.includes li { display: flex; align-items: center; gap: 8px; }
.includes li::before { content: ''; width: 6px; height: 10px; border: solid #006C48; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }

.faq { padding: clamp(64px, 8vw, 120px) 0 clamp(120px, 14vw, 200px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.acc { border-top: 1px solid var(--line-ink); }
.acc__item { border-bottom: 1px solid var(--line-ink); }
.acc__item h3 { margin: 0; }
.acc__item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; letter-spacing: -.01em;
}
.acc__item button i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #E9ECE7; transition: background .3s var(--ease-out), rotate .5s var(--ease-out); }
.acc__item button i::before, .acc__item button i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); translate: -50% -50%; border-radius: 2px; transition: rotate .5s var(--ease-out); }
.acc__item button i::after { rotate: 90deg; }
.acc__item button:hover i { background: #DDE2DC; }
.acc__item button[aria-expanded="true"] i { background: var(--ink-2); rotate: 180deg; }
.acc__item button[aria-expanded="true"] i::before, .acc__item button[aria-expanded="true"] i::after { background: var(--white); }
.acc__item button[aria-expanded="true"] i::after { rotate: 0deg; }
.acc__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease-out), visibility 0s linear .55s; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0; padding: 0 64px 26px 0; color: var(--ink-muted); max-width: 40em; opacity: 0; translate: 0 -6px; transition: opacity .4s ease, translate .5s var(--ease-out); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease-out), visibility 0s; }
.acc__item.is-open .acc__panel p { opacity: 1; translate: 0 0; transition-delay: .12s; }
.acc__panel a { color: var(--ink); text-underline-offset: 3px; }

/* =========================================================================
   CLOSE + FOOTER
   ========================================================================= */
.close { position: relative; overflow: hidden; background: var(--night); padding-top: clamp(110px, 14vw, 200px); border-radius: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0 0; margin-top: calc(clamp(24px, 3vw, 44px) * -1); }
.close::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(84, 192, 126, .18), transparent 70%); pointer-events: none; }
.close__route { position: absolute; left: 0; right: 0; top: 40%; height: 300px; pointer-events: none; }
.close__route svg { width: 100%; height: 100%; }
.close__route path { fill: none; stroke: var(--credit); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; transition: stroke-dashoffset 2.6s var(--ease-io); }
.close.is-in .close__route path { stroke-dashoffset: 0; }
.close__inner { position: relative; display: grid; justify-items: center; text-align: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 48px;
  padding: 12px 24px 12px 20px; border-radius: 16px;
  background: var(--white); color: var(--ink); text-decoration: none;
  transition: translate .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.store:hover { translate: 0 -2px; box-shadow: 0 18px 40px -16px rgba(84, 192, 126, .55); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: grid; text-align: left; font-size: 20px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(96px, 12vw, 160px); padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--white-08); color: var(--white-40); font-size: 13px; }
.foot__word { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--white); }
.foot__word svg { width: 30px; height: 30px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; color: var(--white-66); transition: color .2s ease; }
.foot a:hover { color: var(--white); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .copy { width: min(340px, 33vw); }
  .ledger__grid, .faq__grid { grid-template-columns: 1fr; }
  .how__row { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); }
  .how__row p { grid-column: 2; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav { top: 10px; }
  .corner, .caption, .tag, .sub, .eyebrow:not(.eyebrow--dim):not(.eyebrow--ink) { display: none; }

  .copy { left: 16px; right: 16px; top: calc(64px + 2svh); width: auto; }
  .copy__step { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .headline { margin: 0; font-size: clamp(34px, 10.2vw, 56px); line-height: 1; }
  .headline .ln { display: inline; }
  .headline .ln + .ln::before { content: ' '; white-space: pre; }
  .panel { margin-top: 14px; width: min(300px, 86vw); padding: 10px 14px; }
  .panel__bars, .panel__spark, .panel__ledger { height: 26px; margin-top: 8px; }

  .phone-tilt { --pw: min(62vw, 272px); margin-top: 38svh; }
  .stage { place-items: start center; }
  .chip { left: calc(50% + var(--x) * var(--sx, 1.35vw)); top: calc(50% + 15svh + var(--y) * .8svh); }
  .chip__card { min-width: 76px; padding: 7px 10px 8px; border-radius: 12px; }
  .chip__card small { font-size: 8px; letter-spacing: .16em; }
  .chip__card b { font-size: 14px; }

  .pips { right: 4px; gap: 0; }
  .pip { padding: 8px; gap: 6px; }
  .pip span { display: none; }

  .map-plane { top: 30%; width: 300vw; }

  .lg-row { grid-template-columns: 34px minmax(0, 1fr) 64px; }
  .lg-row__bar { display: none; }
  .how__row { grid-template-columns: 1fr; gap: 10px; }
  .how__row p { grid-column: auto; }
  .tiers { grid-template-columns: 1fr; }
  .tier__who { min-height: 0; }
  .acc__panel p { padding-right: 0; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0ms !important; }
  .map-cam { transition: none !important; }
  .cursor { display: none; }
  .chipset.is-active .chip__card { animation: none !important; opacity: 1; }
  .copy__step.is-entering .ch { animation: none !important; }
  .rl > span, .how__num span { translate: 0 0; }
  body.is-loading .phone-tilt { translate: 0 0; rotate: none; }
}
