/* ===== base ===== */
/* ============================================================
   PhoneUse — design system
   Lab-bench craft: graphite machine parts, signal orange,
   USB-cable blue, status-LED green, paper, tape and ink.
   Blue = cloud phone. Orange = real phone. Green = done/pass.
   ============================================================ */
/* Self-hosted heading face so desktop and mobile use the same serif. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/source-serif-4-medium.woff2) format('woff2');
}
:root {
  /* paper + ink */
  --paper: #F2F1EC;
  --paper-2: #E9E7E0;
  --paper-3: #DDDAD1;
  --card: #FDFDFB;
  --ink: #121314;
  --ink-2: #2B2E31;
  --mute: #6C6963;
  --mute-2: #716D66;   /* still used as text in places: keep ≥4.5:1 on paper */
  --line: rgba(18, 19, 20, .09);
  --line-2: rgba(18, 19, 20, .16);

  /* graphite (dark surfaces, the machine) */
  --graphite: #131517;
  --graphite-2: #1B1E21;
  --graphite-3: #25292D;
  --graphite-4: #33383D;
  --on-dark: #F2F1EC;
  --on-dark-mute: #8D9196;
  --line-dark: rgba(255, 255, 255, .08);

  /* signal orange = real phone, primary action */
  --signal: #FF4F14;
  --signal-2: #FF7A45;
  --signal-ink: #B93306;
  --signal-wash: #FFE7DC;
  /* cable blue = cloud phone */
  --cable: #8FC3E6;
  --cable-ink: #246A9B;
  --cable-wash: #E3F0F8;
  /* status LED green = done / pass / live */
  --led: #2FBF63;
  --led-wash: #DCF4E4;
  /* craft */
  --tape: rgba(236, 224, 188, .92);
  --receipt: #FBFAF5;
  --dot: #E5BFB2;   /* page dot grid (Figma: 1.54px dots every 19.4px) */

  --f-display: 'Host Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;   /* every section headline */
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-hand: 'Gochi Hand', 'Comic Sans MS', cursive;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-1: 0 1px 2px rgba(18, 19, 20, .05), 0 10px 28px -14px rgba(18, 19, 20, .16);
  --shadow-2: 0 2px 4px rgba(18, 19, 20, .05), 0 24px 60px -24px rgba(18, 19, 20, .28);
  --shadow-paper: 0 1px 1px rgba(40, 30, 10, .05), 0 14px 32px -12px rgba(40, 30, 10, .22);
  --card-edge: 0 0 #0000;   /* cards have no stroke; the dark theme swaps in a faint rim so they don't sink into the page */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
  --focus: var(--signal-ink);   /* focus ring: ≥3:1 on paper in both themes */

  color-scheme: light;
}

/* ---------- dark theme (nav toggle / ?theme=dark). Same system, night lighting.
   Paper objects (receipts, tape, invoices) stay paper — they're physical things. ---------- */
:root[data-theme="dark"] {
  --paper: #0D0E10;
  --paper-2: #18191C;
  --paper-3: #26282C;
  --card: #141518;
  --ink: #EEEDE8;
  --ink-2: #CFCEC8;
  --mute: #9C9EA2;
  --mute-2: #85888E;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --graphite: #131518;
  --graphite-2: #1A1C20;
  --graphite-3: #25282C;
  --graphite-4: #33373C;
  --line-dark: rgba(255, 255, 255, .09);
  --signal-ink: #FF7340;
  --signal-wash: rgba(255, 79, 20, .14);
  --cable-ink: #8FC3E6;
  --cable-wash: rgba(143, 195, 230, .12);
  --led-wash: rgba(47, 191, 99, .16);
  --dot: rgba(229, 191, 178, .1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .4), 0 28px 64px -24px rgba(0, 0, 0, .8);
  --shadow-paper: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 36px -12px rgba(0, 0, 0, .7);
  --card-edge: 0 0 0 1px rgba(255, 255, 255, .06);
  color-scheme: dark;
}
:root[data-theme="dark"] body::after { mix-blend-mode: soft-light; opacity: .5; }
:root[data-theme="dark"] .btn--ink:hover { background: #fff; }
:root[data-theme="dark"] .stamp { mix-blend-mode: screen; }
:root[data-theme="dark"] .receipt { color: #121314; --line-2: rgba(18, 19, 20, .16); }
:root[data-theme="dark"] .scribble { stroke: var(--ink); }
:root[data-theme="dark"] .tape { color: #2b2620; }
/* smooth theme flips (only while switching, so normal hovers keep their own timing) */
:root.theme-anim, :root.theme-anim *, :root.theme-anim *::before, :root.theme-anim *::after { transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s, box-shadow .5s !important; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; /* clears the fixed nav */ }
body {
  margin: 0;
  /* pale orange dot grid on the page itself, so every card and panel sits on top of it */
  background: var(--paper) radial-gradient(circle at 1px 1px, var(--dot) .5px, #0000 .9px) 0 0 / 19.4px 19.4px;
  color: var(--ink);
  font: 400 16px/1.55 var(--f-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-dark, .card--dark { --focus: var(--signal); }
.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; }

/* paper grain over everything — subtle, fixed, never intercepts input */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .24;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- type ---------- */
/* Display headlines: medium serif, tight tracking and leading. */
.t-hero {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(54px, 8.5vw, 122px);
  line-height: 1;
  letter-spacing: -.048em;
}
.t-h2 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.048em;
  text-wrap: balance;
}
/* Card / item titles: same serif face with gentler tracking. */
.t-h3 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(22px, 1.85vw, 27px);
  line-height: 1.15;
  letter-spacing: -.022em;
}
.t-lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--mute);
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.t-body { font-size: 15px; line-height: 1.55; color: var(--mute); }
.t-mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
/* Accented words inherit the heading's serif face. */
.serif { font: inherit; letter-spacing: inherit; }
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .01em; }
.on-dark { color: var(--on-dark); }
.on-dark .t-lede, .on-dark .t-body { color: var(--on-dark-mute); }

/* eyebrow:  04 UNDETECTABLE  (number signal-ink, label signal; on dark: number signal, label mute) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 11.5px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 22px;
}
.eyebrow b { color: var(--signal-ink); font-weight: 700; }
.on-dark .eyebrow { color: var(--on-dark-mute); }
.on-dark .eyebrow b { color: var(--signal); }
.eyebrow b + i { display: none; }   /* the old dash: markup still has it */

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--f-mono);   /* Figma: every button label is Geist Mono Medium, -4 % */
  letter-spacing: -.04em;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s var(--ease-out), color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -8px rgba(18,19,20,.5); }
.btn--ink:hover { background: #000; }
/* fill is a deeper orange so the white label clears 4.5:1; the --signal glow keeps the pop */
.btn--signal { background: #D23A04; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 24px -10px rgba(255,79,20,.7); }
.btn--signal:hover { background: #BD3407; }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: var(--card-edge), var(--shadow-1); }
.btn--glass { background: rgba(255,255,255,.07); color: var(--on-dark); box-shadow: 0 0 0 1px var(--line-dark) inset; }
.btn--glass:hover { background: rgba(255,255,255,.12); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* small meta row under CTAs:  No credit card · Billed by the minute · Cancel anytime */
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 11.5px/1.4 var(--f-mono); color: var(--mute); letter-spacing: .02em; }
.meta-row span + span::before { content: '·'; margin-right: 14px; opacity: .7; }
@media (max-width: 520px) { .meta-row { gap: 4px 16px; } .meta-row span + span::before { content: none; } }

/* ---------- surfaces ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--card-edge), var(--shadow-1);
}
.card--dark { background: var(--graphite-2); color: var(--on-dark); box-shadow: 0 0 0 1px var(--line-dark), 0 30px 60px -30px rgba(0,0,0,.5); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font: 500 11.5px/1 var(--f-display);
  color: var(--ink-2);
  white-space: nowrap;
}
.card--dark .chip, .on-dark .chip { background: var(--graphite-3); color: var(--on-dark); }
/* status dots */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--led); display: inline-block; flex: none; }
.dot--live { background: var(--signal); box-shadow: 0 0 0 0 rgba(255,79,20,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,79,20,0); } 100% { box-shadow: 0 0 0 0 rgba(255,79,20,0); } }
/* icon tile (32–40px rounded square holding a 18px stroke icon) */
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); flex: none; }
.icon-tile svg { width: 19px; height: 19px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- craft ---------- */
/* masking tape label, handwritten. Rotate per instance with --rot. */
.tape {
  --rot: -2deg;
  display: inline-block;
  padding: 7px 16px 6px;
  background: var(--tape);
  color: #2b2620;
  font: 400 19px/1 var(--f-hand);
  transform: rotate(var(--rot));
  box-shadow: 0 1px 2px rgba(60, 45, 10, .18);
  /* torn ends: notches down both short edges */
  -webkit-mask: radial-gradient(3px at 0 50%, transparent 98%, #000) -1px 0 / 51% 7px repeat-y,
        radial-gradient(3px at 100% 50%, transparent 98%, #000) 100% 0 / 51% 7px repeat-y;
  mask: radial-gradient(3px at 0 50%, transparent 98%, #000) -1px 0 / 51% 7px repeat-y,
        radial-gradient(3px at 100% 50%, transparent 98%, #000) 100% 0 / 51% 7px repeat-y;
}
/* rubber stamp. Rotate with --rot. Colour with --ink-c. */
.stamp {
  --rot: -9deg;
  --ink-c: var(--signal);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px 5px;
  border: 2.5px solid var(--ink-c);
  border-radius: 8px;
  color: var(--ink-c);
  font: 700 22px/1 var(--f-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(var(--rot));
  mix-blend-mode: multiply;
  -webkit-mask: 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'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask: 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'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp.is-stamped { animation: stamp .42s var(--ease-out) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(var(--rot)) scale(1.9); } 60% { opacity: 1; transform: rotate(var(--rot)) scale(.94); } 100% { opacity: 1; transform: rotate(var(--rot)) scale(1); } }
/* thermal receipt with zig-zag torn edges top + bottom */
.receipt {
  position: relative;
  background: var(--receipt);
  color: var(--ink);
  font: 400 12.5px/1.6 var(--f-mono);
  padding: 26px 22px;
  filter: drop-shadow(0 14px 22px rgba(40, 30, 10, .16)) drop-shadow(0 1px 1px rgba(40, 30, 10, .08));
  --zz: 7px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top 0 left 50% / calc(2 * var(--zz)) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zz)) 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--zz)) 51% repeat-x;
}
.receipt hr { border: 0; border-top: 1.5px dashed var(--line-2); margin: 12px 0; }
/* white-bordered sticker (photos, badges). Rotate with --rot. */
.sticker {
  --rot: 3deg;
  background: #fff;
  padding: 6px;
  border-radius: 20px;
  transform: rotate(var(--rot));
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 12px 26px -10px rgba(30, 25, 10, .35);
}
.sticker > * { border-radius: 14px; overflow: hidden; }
/* hand-drawn annotation arrow container: put an inline SVG path with class="scribble" inside */
.scribble { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.96); }
/* main.js marks off-screen sections: park their CSS loops (pulses, shimmers) so they stop costing style recalcs */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- real app icons (glyphs: Simple Icons CC0 + LobeHub icons MIT, vendored in assets/icons) ----------
   <span class="app app--whatsapp" role="img" aria-label="WhatsApp"></span>   size with --s (default 48px) */
.app {
  --s: 48px;
  --bg: #111;
  --fg: #fff;
  --g: 56%;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  flex: none;
  border-radius: 23%;
  background: var(--bg);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .12);
  overflow: hidden;
}
.app::before, .app::after { content: ''; position: absolute; inset: calc((100% - var(--g)) / 2); background: var(--fg); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.app::after { display: none; }
.app--whatsapp { --bg: linear-gradient(#5FFC7B, #25D366 55%, #1EBE57); --icon: url(assets/icons/whatsapp.svg); --g: 62%; }
.app--instagram { --bg: radial-gradient(circle at 30% 107%, #FDF497 0, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); --icon: url(assets/icons/instagram.svg); }
.app--tiktok { --bg: #010101; --icon: url(assets/icons/tiktok.svg); --g: 54%; }
.app--tiktok::before { background: #25F4EE; transform: translate(-3%, -3%); }
.app--tiktok::after { display: block; background: #FE2C55; transform: translate(3%, 3%); mix-blend-mode: screen; }
.app--tiktok { isolation: isolate; }
.app--uber { --bg: #000; --icon: url(assets/icons/uber.svg); --g: 66%; }
.app--ubereats { --bg: #142328; --fg: #06C167; --icon: url(assets/icons/ubereats.svg); --g: 70%; }
.app--zomato { --bg: #E23744; --icon: url(assets/icons/zomato.svg); --g: 74%; }
.app--swiggy { --bg: #FC8019; --icon: url(assets/icons/swiggy.svg); --g: 50%; }
.app--imessage { --bg: linear-gradient(#5BF675, #0CBD2A); --icon: url(assets/icons/imessage.svg); --g: 62%; }
.app--tinder { --bg: linear-gradient(135deg, #FD267A, #FF6036); --icon: url(assets/icons/tinder.svg); }
.app--paypal { --bg: #fff; --fg: #003087; --icon: url(assets/icons/paypal.svg); --g: 52%; }
.app--chase { --bg: #117ACA; --icon: url(assets/icons/chase.svg); --g: 52%; }
.app--revolut { --bg: #191C1F; --icon: url(assets/icons/revolut.svg); --g: 46%; }
.app--venmo { --bg: #008CFF; --icon: url(assets/icons/venmo.svg); --g: 50%; }
.app--cashapp { --bg: #00D632; --icon: url(assets/icons/cashapp.svg); --g: 58%; }
.app--doordash { --bg: #FF3008; --icon: url(assets/icons/doordash.svg); --g: 60%; }
.app--lyft { --bg: #FF00BF; --icon: url(assets/icons/lyft.svg); --g: 58%; }
.app--airbnb { --bg: #fff; --fg: #FF5A5F; --icon: url(assets/icons/airbnb.svg); }
.app--spotify { --bg: #191414; --fg: #1ED760; --icon: url(assets/icons/spotify.svg); --g: 60%; }
.app--snapchat { --bg: #FFFC00; --fg: #fff; --icon: url(assets/icons/snapchat.svg); }
.app--snapchat::before { filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 .5px #000); }
.app--youtube { --bg: #fff; --fg: #FF0000; --icon: url(assets/icons/youtube.svg); --g: 62%; }
.app--reddit { --bg: #FF4500; --icon: url(assets/icons/reddit.svg); --g: 64%; }
.app--telegram { --bg: linear-gradient(#2AABEE, #229ED9); --icon: url(assets/icons/telegram.svg); --g: 60%; }
.app--discord { --bg: #5865F2; --icon: url(assets/icons/discord.svg); }
.app--gmail { --bg: #fff; --fg: #EA4335; --icon: url(assets/icons/gmail.svg); }
.app--maps { --bg: #fff; --fg: #4285F4; --icon: url(assets/icons/googlemaps.svg); }
.app--duolingo { --bg: #58CC02; --icon: url(assets/icons/duolingo.svg); --g: 62%; }
.app--phonepe { --bg: #5F259F; --icon: url(assets/icons/phonepe.svg); --g: 60%; }
.app--paytm { --bg: #fff; --fg: #20336B; --icon: url(assets/icons/paytm.svg); --g: 70%; }
.app--x { --bg: #000; --icon: url(assets/icons/x.svg); --g: 50%; }
.app--notion { --bg: #fff; --fg: #000; --icon: url(assets/icons/notion.svg); --g: 60%; }
.app--github { --bg: #181717; --icon: url(assets/icons/github.svg); --g: 60%; }
.app--python { --bg: #fff; --fg: #3776AB; --icon: url(assets/icons/python.svg); --g: 60%; }
.app--android { --bg: #fff; --fg: #3DDC84; --icon: url(assets/icons/android.svg); --g: 62%; }
.app--apple { --bg: #000; --icon: url(assets/icons/apple.svg); --g: 50%; }
.app--google { --bg: #fff; --fg: #4285F4; --icon: url(assets/icons/google.svg); --g: 58%; }
.app--chrome { --bg: #fff; --fg: #4285F4; --icon: url(assets/icons/googlechrome.svg); --g: 66%; }
/* AI clients */
.app--claude { --bg: #D97757; --icon: url(assets/icons/claude-mono.svg); --g: 58%; }
.app--codex { --bg: #fff; --icon: url(assets/icons/codex.svg); --g: 66%; }
.app--codex::before { background: none; -webkit-mask: none; mask: none; background: var(--icon) center / contain no-repeat; }
.app--openai { --bg: #000; --icon: url(assets/icons/openai.svg); --g: 60%; }
.app--cursor { --bg: #0A0A0A; --icon: url(assets/icons/cursor.svg); --g: 58%; }
.app--windsurf { --bg: #0B100F; --fg: #58E5BB; --icon: url(assets/icons/windsurf.svg); --g: 60%; }
.app--mcp { --bg: #fff; --fg: #000; --icon: url(assets/icons/mcp.svg); --g: 60%; }
.app--copilot { --bg: #000; --icon: url(assets/icons/githubcopilot.svg); --g: 60%; }
.app--gemini { --bg: #fff; --icon: url(assets/icons/gemini.svg); --g: 62%; }
.app--gemini::before { -webkit-mask: none; mask: none; background: var(--icon) center / contain no-repeat; }

/* ===== nav ===== */
.nv {
  --nv-a: .72;   /* glass fill alpha (touch screens: near opaque, no blur; see the end) */
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  pointer-events: none;
}
.nv-bar {
  pointer-events: auto;
  width: min(1280px, 100% - 24px);
  margin-inline: auto;
  height: 60px;
  padding: 0 10px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 999px;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), width .5s var(--ease-out);
}
.nv.is-scrolled .nv-bar {
  width: min(1080px, 100% - 24px);
  background: rgba(246, 245, 241, var(--nv-a));
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -18px rgba(18, 19, 20, .3);
}
.nv-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 19px; letter-spacing: -.035em; justify-self: start; }
.nv-logo svg { width: 16.5px; height: 23px; }
.nv-links { display: flex; gap: 4px; }
.nv-links a, .nv-demo {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;   /* never "Book a / demo": the actions column takes its full width and the links give way */
  transition: background-color .2s, color .2s;
}
.nv-links a:hover, .nv-demo:hover { background: rgba(18, 19, 20, .06); color: var(--ink); }
.nv-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nv .btn { --h: 43px; padding: 0 21px; } /* Figma: 129 × 43 signal pill, Geist Mono 14 (.btn--sm) */
.nv-theme { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nv-theme:hover { background: rgba(18, 19, 20, .06); color: var(--ink); }
.nv-theme .ico { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform .5s var(--ease-spring), opacity .3s; }
.nv-moon { opacity: 1; }
.nv-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .nv-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .nv-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .nv-theme:hover, :root[data-theme="dark"] .nv-links a:hover, :root[data-theme="dark"] .nv-demo:hover { background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .nv.is-scrolled .nv-bar, :root[data-theme="dark"] .nv-sheet { background: rgba(20, 21, 24, var(--nv-a)); }
/* over dark surfaces (Build bento, closing end card): dark glass, light ink — same as the dark theme bar */
.nv.nv--on-dark { --ink: #EEEDE8; --ink-2: #CFCEC8; --paper: #0D0E10; --line: rgba(255, 255, 255, .08); }
.nv.nv--on-dark .nv-bar, .nv.nv--on-dark .nv-sheet { color: var(--ink); background: rgba(20, 21, 24, var(--nv-a)); }
.nv--on-dark .nv-theme:hover, .nv--on-dark .nv-links a:hover, .nv--on-dark .nv-demo:hover, .nv--on-dark .nv-sheet a:hover { background: rgba(255, 255, 255, .08); }
.nv-menu { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.nv-menu span { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out); }
.nv-menu span:first-child { top: 17px; }
.nv-menu span:last-child { top: 23px; }
.nv-menu[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nv-menu[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nv-sheet {
  pointer-events: auto;
  width: min(1080px, 100% - 24px);
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 24px;
  background: rgba(246, 245, 241, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  display: grid;
}
.nv-sheet[hidden] { display: none; }
.nv-sheet a { padding: 14px 16px; border-radius: 14px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.nv-sheet a:hover { background: rgba(18, 19, 20, .05); }

@media (max-width: 860px) {
  .nv-bar { grid-template-columns: 1fr auto; padding-left: 16px; }
  .nv-links, .nv-demo { display: none; }
  .nv-menu { display: block; }
  :root[data-theme="dark"] .nv .nv-bar { background: rgba(20, 21, 24, var(--nv-a)); }
  .nv .nv-bar { background: rgba(246, 245, 241, var(--nv-a)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line); }
}
/* touch screens: the bar sits over the page on every frame of a scroll, so a blur behind it is redone each frame
   (a whole extra pass for a phone GPU). A near-opaque fill reads the same over the paper. */
@media (pointer: coarse) {
  .nv { --nv-a: .96; }
  .nv .nv-bar, .nv.is-scrolled .nv-bar, .nv .nv-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* the theme switch (nav.js): a view transition cross-fades the page at the old pace */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }

/* ===== hero ===== */
.hr {
  --hr-pb: 85px; /* bottom padding; the agent log sits on the same line */
  position: relative;
  min-height: max(760px, 100svh);
  padding-top: max(112px, 25svh);   /* client: copy a touch higher than Figma's 264-of-900 so it centres against the machine */
  padding-bottom: var(--hr-pb);
  display: flex;
  flex-direction: column;
  overflow: clip;
  isolation: isolate;
}
/* ---------- the machine ---------- */
.hr-stage {
  /* camera framing, read by hero.js: zoom out (radius ×), film shift (fraction of canvas) */
  --hr-zoom: 1.15;
  --hr-shift-x: .076;   /* Figma: the machine sits 40px further right than the stage's centre */
  --hr-shift-y: -.07;
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(68vw, 1180px);
}
.hr-stage::before { /* warm pool of light under the machine */
  content: '';
  position: absolute;
  inset: 14% 4% 6% 10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  z-index: -1;
}
.hr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); touch-action: pan-y; }
.hr.is-ready .hr-canvas { opacity: 1; transition-delay: .15s; } /* once the poster has all but gone (below) */
/* the poster holds the stage while three.js and the model load (and stays when there is no 3D). Framed like the
   canvas: the machine sits at the film shift, its size follows the stage height over --hr-zoom (measured fits:
   machine ≈ .81 × height/zoom wide, centred on the shift), so it never jumps when the 3D fades in over it */
.hr-poster {
  position: absolute;
  left: calc((.5 + var(--hr-shift-x)) * 100%);
  top: calc((.5 + var(--hr-shift-y)) * 100%);
  height: calc(94.85% / var(--hr-zoom));
  width: auto;
  max-width: none;
  transform: translate(-50%, -51%);
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
/* out before the canvas fades in: the poster is drawn from a slightly different angle, so a cross-fade shows two machines */
.hr.is-ready .hr-poster { opacity: 0; }
.hr.no-webgl .hr-poster { opacity: 1; }
.hr.no-webgl .hr-canvas { visibility: hidden; } /* a lost context paints an opaque placeholder */
.hr.no-webgl .hr-tape, .hr.no-webgl .hr-note { display: none; } /* they are pinned to the 3D model */
.hr-tape, .hr-note {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  will-change: transform;
  z-index: 2;
}
.hr.is-ready .hr-tape, .hr.is-ready .hr-note { opacity: 1; transition-delay: .9s; }
.hr-tape { --rot: -6deg; font-size: 18px; white-space: nowrap; }
.hr-note { width: 170px; pointer-events: none; }
.hr-note { display: flex; align-items: flex-end; gap: 4px; width: auto; }
.hr-note .hand { display: block; font-size: 22px; line-height: 1; color: var(--ink-2); transform: rotate(-4deg) translateY(14px); white-space: nowrap; }
.hr-note svg { width: 74px; flex: none; overflow: visible; }
.hr-note .scribble { stroke-dasharray: 120; stroke-dashoffset: 120; }
.hr.is-ready .hr-note .scribble { animation: hr-draw 1.1s var(--ease-out) 1.4s forwards; }
.hr.is-ready .hr-note .scribble + .scribble { animation-delay: 2.2s; }
@keyframes hr-draw { to { stroke-dashoffset: 0; } }

/* ---------- copy ---------- */
.hr-grid { position: relative; z-index: 3; flex: 1; display: grid; grid-template-columns: minmax(0, 620px) 1fr; align-items: start; pointer-events: none; }
.hr-grid > * { pointer-events: auto; }
.hr-copy { padding-left: 20px; }   /* Figma: copy indented 20px from the wrap (x 120 at 1440) */
.hr-title { font-size: clamp(54px, 7.3vw, 105px); line-height: .96; letter-spacing: -.04em; margin-bottom: 20px; }   /* Figma: 105 / 96 %, -4 % */
.hr-title .serif { color: var(--signal); }
/* Give serif ascenders and descenders room in the reveal mask without changing line spacing. */
.hr-title { display: grid; }   /* grid: the lines' negative margins add up instead of collapsing */
.hr-line { display: block; overflow: clip; padding-block: .14em .24em; margin-block: -.14em -.24em; }
.hr-line > span { display: inline-block; transform: translateY(135%); transition: transform 1.1s var(--ease-out); }
.hr-line:nth-child(2) > span { transition-delay: .08s; }
.hr-line:nth-child(3) > span { transition-delay: .16s; }
.hr.is-in .hr-line > span { transform: none; }
.hr-lede { max-width: 529px; margin-bottom: 29px; font-size: 18px; line-height: 1.72; letter-spacing: 0; color: var(--ink-2); }   /* Figma: 18 / 170 %, which it renders on a 31px pitch (box 93 tall) */
.hr-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* Figma: mono labels, 50px pills, ghost without a shadow */
.hr-ctas .btn { --h: 50px; padding-inline: 21px; gap: 6px; font: 500 15px/1 var(--f-mono); letter-spacing: -.02em; }
.hr-ctas .btn--ink { letter-spacing: -.04em; }   /* Figma: label 93px wide */
.hr-ctas .btn--ghost { padding-inline: 20px; gap: 7px; font: 400 16px/1 var(--f-mono); box-shadow: var(--card-edge); }   /* Figma: this label is 16 regular */
.hr-ctas .btn--ghost .ico { width: 16px; height: 16px; }
/* agent chips in the lede: quiet filled pills carrying each tool's own app tile, centred on the text line */
.hr-lede { line-height: 1.95; }
.hr-nw { white-space: nowrap; }   /* a chip keeps its comma (or "or") on its line */
.hr-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 5px; margin-block: -4px; border-radius: 10px; background: var(--card); box-shadow: 0 1px 1px rgba(18, 19, 20, .05), 0 0 0 1px rgba(18, 19, 20, .045); color: var(--ink); font-weight: 500; letter-spacing: -.01em; vertical-align: middle; }
.hr-chip .app { --s: 22px; border-radius: 6px; box-shadow: none; }
.hr-chip .app--codex { --bg: var(--paper-2); --g: 76%; }
:root[data-theme="dark"] .hr-chip { background: var(--paper-3); box-shadow: none; }
.hr-lede, .hr-ctas { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hr.is-in .hr-lede { opacity: 1; transform: none; transition-delay: .3s; }
.hr.is-in .hr-ctas { opacity: 1; transform: none; transition-delay: .4s; }

/* ---------- live agent log: a quiet console under the machine, 5 columns wide, its right edge 100px in from the wrap's (Figma x 723-1240).
   Four lines (the task + three steps); empty steps keep their row, so the box never changes height ---------- */
.hr-log {
  position: absolute;
  z-index: 3;
  --hr-col: calc(min(var(--wrap), 100% - 2 * var(--gutter)) / 12);
  bottom: var(--hr-pb);
  right: calc(max(var(--gutter), (100% - var(--wrap)) / 2) + var(--hr-col) * 12 / 12.4);   /* 100px of 1240 */
  width: calc(var(--hr-col) * 5);
  /* client: no card behind it — transparent, typed like code */
  font: 400 12px/1.6 var(--f-mono);
  color: var(--mute);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 1s;
}
.hr.is-ready .hr-log { opacity: 1; }
.hr-log-head { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .04em; color: var(--mute-2); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.hr-log-head .dot { width: 6px; height: 6px; }
.hr-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.hr-log-task, .hr-steps li { position: relative; padding-left: 20px; min-height: 1.6em; }
.hr-log-task { color: var(--ink); text-wrap: pretty; }
.hr-log-task b { position: absolute; left: 1px; color: var(--signal); font-weight: 500; }
.hr-steps li { color: var(--ink-2); text-wrap: pretty; }
.hr-steps li::before { content: '·'; position: absolute; left: 2px; color: var(--mute-2); }
.hr-steps li.is-active::before { content: '▸'; color: var(--signal); }
.hr-steps li.is-done::before { content: '✓'; color: var(--led); }
.hr-caret { display: inline-block; width: .6em; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--ink); animation: hr-blink 1s steps(1) infinite; }
@keyframes hr-blink { 50% { opacity: 0; } }

/* ---------- responsive ---------- */
/* past the design width the machine follows the viewport's right edge, not the wrap: keep the log under it (200px of the stage's 979 at 1440) */
@media (min-width: 1441px) {
  .hr-log { right: calc(min(68vw, 1180px) * .2043); }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .hr-stage { --hr-zoom: 1.28; --hr-shift-y: -.09; }
}
/* short laptop screens: compress the copy and lift the machine so copy and log fit above the fold */
@media (min-width: 901px) and (max-height: 820px) {
  .hr { --hr-pb: 56px; min-height: max(620px, 100svh); padding-top: max(96px, 22svh); }
  .hr-stage { --hr-zoom: 1.28; --hr-shift-y: -.09; }
  .hr-title { font-size: clamp(54px, min(7.3vw, 11.7vh), 105px); }
  .hr-lede { margin-bottom: 24px; }
}
/* no bleed: the whole machine fits. Its size follows the stage height, so cap that by the width */
@media (min-width: 901px) and (max-width: 1100px) {
  .hr-stage { width: 66vw; bottom: auto; height: min(100%, 75vw); --hr-zoom: 1.42; --hr-shift-x: .04; --hr-shift-y: -.1; }
  .hr-grid { grid-template-columns: minmax(0, 540px) 1fr; }
  .hr-copy { padding-left: 0; }
  .hr-lede { max-width: 410px; }
}
@media (max-width: 900px) {
  .hr { min-height: 0; padding-top: 108px; --hr-pb: 48px; }
  .hr-grid { display: contents; }
  .hr-copy { order: 1; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 0; }
  .hr-stage { order: 2; position: relative; inset: auto; width: 100%; height: min(112vw, 560px); margin-top: -8px; --hr-zoom: 1.06; --hr-shift-x: 0; --hr-shift-y: .02; }
  .hr-log { order: 3; position: relative; right: auto; bottom: auto; width: min(100% - 2 * var(--gutter), 420px); margin: -24px auto 0; }
  .hr-note { display: none; }
}
/* tablet: a centred stack, not the phone layout enlarged */
@media (min-width: 641px) and (max-width: 900px) {
  .hr-copy { text-align: center; }
  .hr-title { font-size: clamp(64px, 11.5vw, 100px); }
  .hr-lede { max-width: 560px; margin-inline: auto; text-wrap: balance; }
  .hr-ctas { justify-content: center; }
}
@media (max-width: 520px) {
  .hr-title { font-size: clamp(50px, 15vw, 64px); }
  .hr-ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-line > span, .hr-lede, .hr-ctas, .hr-log { transform: none; opacity: 1; }
  .hr-caret { animation: none; }
  .hr-note .scribble { stroke-dashoffset: 0; }
}

/* ---------- dark theme ---------- */
:root[data-theme="dark"] .hr-stage::before { background: radial-gradient(closest-side, rgba(143, 195, 230, .10), rgba(255, 79, 20, .04) 60%, transparent); }

/* ===== wall ===== */
/* ============================================================
   01 — The wall
   Headline with live app tiles; two counter-rotating 3D rings of
   phone-only apps; the agent's path stopping above them; three iOS
   notifications floating over the rings, from the apps at the front.
   ============================================================ */
.wl {
  --R: 640;           /* ring radius, px (JS reads this) */
  --draw: 0;          /* agent path drawn 0..1 (JS) */
  --dash: 0;          /* dashed continuation 0..1 (JS) */
  --s: 1;             /* ring scale */
  --scene-top: 200px; /* stage top -> top ring's front edge */
  --gap-y: 240px;     /* top ring -> bottom ring: 82px of clear air between the fronts */
  --po: -150px;       /* eye height (perspective origin), above the top ring = seen from above */
  --stage-h: 688px;
  --nw: 336px;        /* notification width */
  --stop: 108px;      /* the agent's dot halts this far above the cards (JS reads this) */
  --bleed: 72px;      /* room above/below the ring mask so lifted cards and glows aren't cut */
  --wl-cut: #fff;     /* ring around the headline tiles and the dot */
  --pb: clamp(64px, 8vw, 120px);
  padding-top: clamp(64px, 7vw, 100px);
  padding-bottom: var(--pb);
  overflow-x: clip;
}

/* ---------- headline ---------- */
.wl-head { text-align: center; }
.wl-title {
  max-width: 16.4em;
  margin-inline: auto;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.048em;
  text-wrap: balance;
}

/* inline cluster of app tiles, sitting on the baseline */
.wl-tiles {
  display: inline-flex;
  vertical-align: -.12em;
  margin: 0 .112em 0 .018em; /* after a real space, so the heading reads "runs on apps" */
}
/* empty first flex item: puts the cluster's baseline on its bottom edge */
.wl-tiles::before { content: ''; }
.wl-slot {
  display: block;
  position: relative;
  width: .944em;
  height: .944em;
  perspective: 3.2em;
}
.wl-slot + .wl-slot { margin-left: -.167em; }   /* a straight, overlapping row; later tiles on top */
.wl-flip { display: block; width: 100%; height: 100%; transform-style: preserve-3d; backface-visibility: hidden; }
.wl-slot .app {
  --s: 100%;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1),
    0 0 0 max(2px, .049em) var(--wl-cut), 0 .05em .14em -.02em rgba(30, 22, 8, .35);
}

/* "stops cold": the headline face in signal ink, typed in */
.wl-cold {
  display: inline-grid;
  color: var(--signal-ink);
}
.wl-cold > * { grid-area: 1 / 1; text-align: left; }
.wl-ghost { opacity: 0; }

/* ---------- stage ---------- */
.wl-stage {
  position: relative;
  height: var(--stage-h);
  margin-top: clamp(28px, 3.4vw, 44px);
}
/* soft lift of light behind the rings */
.wl-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--scene-top) + 150px * var(--s));
  width: min(1100px, 130%);
  aspect-ratio: 2.1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* contact shadow under the bottom ring */
.wl-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--scene-top) + (var(--gap-y) + 168px) * var(--s));
  width: calc(900px * var(--s));
  height: calc(70px * var(--s));
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(60, 45, 20, .16), rgba(60, 45, 20, 0));
  pointer-events: none;
}
/* the rings fade out toward the sides instead of being cut */
.wl-rings {
  position: absolute;
  inset: calc(var(--bleed) * -1) calc(var(--gutter) * -1);
  z-index: 1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.wl-3d {
  position: absolute;
  left: 50%;
  top: calc(var(--scene-top) + var(--bleed));
  width: 0;
  height: 0;
  perspective: 1600px;
  perspective-origin: 0 var(--po);
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.wl-ring {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--R) * -1px));
}
.wl-ring--b { top: var(--gap-y); }

/* ---------- cards: real buttons placed on the ring ---------- */
.wl-c {
  --a: 0;
  --lift: 0px;
  position: absolute;
  left: 0;
  top: 0;
  width: 158px;
  height: 158px;
  margin: 0 0 0 -79px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: rotateY(calc(var(--a) * 1deg)) translateZ(calc(var(--R) * 1px + var(--lift)));
  transition: transform .6s var(--ease-spring);
}
.wl-c--m { width: 336px; margin-left: -168px; }
.wl-c:focus { outline: none; }
.wl-c.is-on { --lift: 46px; }
/* far side: already at opacity 0; stays focusable so Tab can bring it round */
.wl-c.is-back { pointer-events: none; }

.wl-f {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 15px;
  border-radius: inherit;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #232427, #18191B);
  font-family: var(--f-display);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 0 .5px rgba(255, 255, 255, .06),
    0 1px 2px rgba(20, 15, 5, .08),
    0 28px 48px -22px rgba(30, 22, 8, .45);
  transition: box-shadow .45s var(--ease-out);
}
.wl-f--light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 15, 5, .06), 0 28px 48px -22px rgba(30, 22, 8, .38);
}
/* dark theme: widgets go night-mode like iOS. Dark cards lift off the near-black page with a hairline;
   light widgets become a lighter graphite so the ring keeps its two-tone rhythm.
   (Placed before the .is-src / .is-on rules so their orange rings still win.) */
:root[data-theme="dark"] .wl-f {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(255, 255, 255, .075),
    0 1px 2px rgba(0, 0, 0, .4),
    0 28px 48px -22px rgba(0, 0, 0, .9);
}
:root[data-theme="dark"] .wl-f--light { background: linear-gradient(180deg, #2B2C31, #222327); }
:root[data-theme="dark"] .wl-snap { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .4), 0 28px 48px -22px rgba(0, 0, 0, .9); }
:root[data-theme="dark"] .wl-uber { background: linear-gradient(180deg, #232428, #17181B); }
:root[data-theme="dark"] .wl-tt { background: linear-gradient(180deg, #1C1C20, #131316); }

/* the card the notifications are coming from */
.wl-c.is-src .wl-f {
  box-shadow:
    inset 0 0 0 .5px rgba(255, 255, 255, .1),
    0 0 0 2px var(--signal),
    0 0 0 7px rgba(255, 79, 20, .16),
    0 26px 48px -18px rgba(255, 79, 20, .5);
}
.wl-c.is-on .wl-f,
.wl-c:focus-visible .wl-f {
  box-shadow:
    inset 0 0 0 .5px rgba(255, 255, 255, .1),
    0 0 0 2.5px var(--signal),
    0 0 0 9px rgba(255, 79, 20, .2),
    0 40px 64px -20px rgba(255, 79, 20, .55);
}

/* widget anatomy */
.wl-h { position: relative; display: flex; align-items: center; gap: 7px; min-height: 24px; }
.wl-h .app { --s: 24px; border-radius: 6px; }
.wl-hn { font: 600 12.5px/1 var(--f-display); letter-spacing: -.01em; opacity: .62; white-space: nowrap; }
.wl-hm { margin-left: auto; font: 500 11.5px/1 var(--f-display); opacity: .55; }
.wl-eta { margin-left: auto; font: 500 13px/1 var(--f-display); opacity: .62; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-eta b { font-size: 30px; font-weight: 600; letter-spacing: -.04em; margin-right: 2px; }
.wl-c:not(.wl-c--m) .wl-eta b { font-size: 24px; }
.wl-uber .wl-eta, .wl-zom .wl-eta { opacity: 1; }
.wl-uber .wl-eta small, .wl-eta { color: inherit; }
.wl-t { display: block; font: 600 16px/1.15 var(--f-display); letter-spacing: -.02em; margin-top: 8px; }
.wl-c:not(.wl-c--m) .wl-t { font-size: 15px; }
.wl-s { display: block; font: 500 11px/1.35 var(--f-display); opacity: .6; margin-top: auto; font-variant-numeric: tabular-nums; }
.wl-big { display: flex; align-items: baseline; gap: 5px; font: 600 30px/1 var(--f-display); letter-spacing: -.045em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.wl-big small { font: 500 12px/1 var(--f-display); letter-spacing: 0; opacity: .6; }
.wl-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font: 500 11.5px/1 var(--f-display);
  opacity: .58;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Uber: ride ETA */
.wl-uber { background: linear-gradient(180deg, #1E1F22, #111214); padding: 15px 18px; }
.wl-route { position: relative; display: block; height: 4px; margin: 20px 4px 0 0; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.wl-route-fill { position: absolute; inset: 0 24% 0 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, .2), #fff); }
.wl-route-car { position: absolute; left: 76%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
.wl-route-end { position: absolute; right: -4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, .7); background: #121315; }
/* the ping: a disc grows out from under the car and fades (transform + opacity, so the compositor runs it;
   white over the white car leaves the car as it is) */
.wl-route-car::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; background: rgba(255, 255, 255, .4); opacity: 0; }
.wl-stage.is-live .wl-route-car { box-shadow: none; }
.wl-stage.is-live .wl-route-car::before { animation: wl-ping 2s var(--ease-out) infinite; }
@keyframes wl-ping { 0% { opacity: 1; transform: scale(.4375); } 80%, 100% { opacity: 0; transform: none; } }

/* Messages: OTP bubble */
.wl-bubble {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 9px 11px 10px;
  border-radius: 16px 16px 16px 5px;
  background: #E9E9EB;
  font: 500 11.5px/1.2 var(--f-display);
  color: var(--ink-2);
}
.wl-bubble b { font: 600 21px/1 var(--f-display); letter-spacing: .01em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* WhatsApp: chat list */
.wl-wa { background: linear-gradient(180deg, #102028, #0B141A); }
.wl-chat { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.wl-chat + .wl-chat { margin-top: 9px; }
.wl-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font: 600 14px/1 var(--f-display);
  font-style: normal;
  background: linear-gradient(160deg, var(--c1), var(--c2));
}
.wl-chat-b { flex: 1; min-width: 0; display: grid; gap: 3px; }
.wl-chat-b b { font: 600 13px/1 var(--f-display); }
.wl-chat-b span { font: 500 11.5px/1.2 var(--f-display); opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-block: .2em; margin-block: -.2em; }
.wl-chat em { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font: 700 11px/1 var(--f-display); font-style: normal; color: #0B141A; background: #25D366; }

/* Instagram: a post */
.wl-ig { background: linear-gradient(180deg, #8C98DD 0%, #D9A2C4 42%, #FFC59B 70%, #FFD9A8 100%); }
.wl-ig .wl-hn { opacity: 1; text-shadow: 0 1px 6px rgba(40, 20, 60, .35); }
.wl-sun { position: absolute; left: 58%; top: 50%; width: 44px; height: 44px; border-radius: 50%; background: #FFF0C9; box-shadow: 0 0 30px 8px rgba(255, 233, 180, .7); }
.wl-hill { position: absolute; border-radius: 50%; }
.wl-hill--b { left: -30%; right: 20%; top: 64%; height: 70%; background: #6F6FA6; }
.wl-hill--a { left: 15%; right: -45%; top: 72%; height: 70%; background: #2E3058; }
.wl-ig-cap { position: relative; display: grid; margin-top: auto; font: 500 11px/1.3 var(--f-display); color: rgba(255, 255, 255, .85); }
.wl-ig-cap b { font-size: 13px; font-weight: 600; color: #fff; }

/* Airbnb: door code */
.wl-bnb .wl-t { margin-top: 10px; }
.wl-bnb .wl-big { margin-top: 6px; color: #E61E4D; }

/* Chase: device-bound approval */
.wl-bank { background: linear-gradient(170deg, #17396B, #0C2140); }
.wl-bank .wl-s { margin-top: 5px; }
.wl-btns { display: flex; gap: 8px; margin-top: auto; }
.wl-btns i { flex: 1; display: grid; place-items: center; height: 32px; border-radius: 10px; font: 600 12.5px/1 var(--f-display); font-style: normal; background: rgba(255, 255, 255, .12); }
.wl-btns .is-pri { background: #fff; color: #0C2140; }

/* Tinder: a match */
.wl-tinder { background: linear-gradient(170deg, #2A1A24, #171215); }
.wl-pair { display: flex; margin-top: 12px; }
.wl-pair i { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2.5px #211619; }
.wl-pair i + i { margin-left: -9px; }
.wl-tinder .wl-t { margin-top: 9px; background: linear-gradient(90deg, #FF7854, #FD267D); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Snapchat */
.wl-snap { background: #FFFC00; color: #121314; box-shadow: 0 1px 2px rgba(20, 15, 5, .06), 0 28px 48px -22px rgba(30, 22, 8, .38); }
.wl-snap .app { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.wl-snaps { display: flex; gap: 5px; margin-top: 9px; }
.wl-snaps i { width: 13px; height: 13px; border-radius: 3px; background: var(--c); }

/* Zomato: order status */
.wl-zom { padding: 15px 18px; }
.wl-zom .wl-eta b { color: #E23744; }
.wl-steps { display: flex; gap: 5px; margin-top: 16px; }
.wl-steps i { position: relative; flex: 1; height: 5px; border-radius: 3px; background: #F0E3E4; overflow: hidden; }
.wl-steps .is-done { background: #E23744; }
.wl-steps .is-now::after { content: ''; position: absolute; inset: 0 45% 0 0; border-radius: inherit; background: #E23744; }
.wl-stage.is-live .wl-steps .is-now::after { animation: wl-cook 2.4s var(--ease-in-out) infinite alternate; }
@keyframes wl-cook { from { transform: translateX(-30%); } }

/* TikTok */
.wl-tt { background: #0E0E10; }
.wl-spark { display: block; width: 100%; height: 26px; margin-top: 8px; overflow: visible; }
.wl-spark path { fill: none; stroke: #FE2C55; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(-1.5px -1px 0 #25F4EE); }

/* Swiggy */
.wl-swg .wl-t { margin-top: 10px; }
.wl-swg .wl-big { margin-top: 6px; color: #FC8019; }
.wl-swg .wl-big small { color: var(--ink); }

/* Paytm: UPI PIN */
.wl-paytm .wl-t { max-width: 15em; }
.wl-paytm .wl-hm { color: #00BAF2; opacity: 1; font-weight: 700; letter-spacing: .04em; }
.wl-pin { display: flex; gap: 10px; margin-top: 14px; }
.wl-pin i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #B9C3D3; }
.wl-pin .is-on { background: #002E6E; box-shadow: none; }

/* Venmo */
.wl-venmo .wl-t { margin-top: 10px; }
.wl-venmo .wl-big { margin-top: 6px; color: #0074D4; }

/* Telegram: in-app login code */
.wl-tg { background: linear-gradient(170deg, #1F2C3A, #131B24); }
.wl-tg .wl-t { margin-top: 10px; }
.wl-code-n { display: block; margin-top: 5px; font: 500 26px/1 var(--f-mono); letter-spacing: .03em; color: #6CC1F2; font-variant-numeric: tabular-nums; }
.wl-tag { align-self: flex-start; margin-top: auto; padding: 5px 8px; border-radius: 7px; font: 600 10.5px/1 var(--f-display); background: rgba(42, 171, 238, .16); color: #8FD0F6; }

/* Google: sign-in prompt, number match */
.wl-goo { background: linear-gradient(180deg, #202124, #151618); padding: 14px 18px; }
.wl-goo .wl-s { margin-top: 5px; }
.wl-match { display: flex; gap: 10px; margin-top: auto; }
.wl-match i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 15px/1 var(--f-display); font-style: normal; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .1); }
.wl-match .is-pick { background: #8AB4F8; color: #0B1A33; }

/* Lyft: scooter */
.wl-lyft { background: linear-gradient(170deg, #2B0F2C, #170A18); }
.wl-lyft .wl-big { color: #FF5CD6; margin-top: 8px; }

/* ---------- the agent's path ---------- */
.wl-path { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wl-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wl-wire path {
  fill: none;
  stroke: url(#wl-wire-g);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--draw));
}
.wl-path-head {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2.5px var(--wl-cut), 0 0 0 7px rgba(255, 79, 20, .16), 0 6px 14px -4px rgba(255, 79, 20, .7);
  opacity: min(1, calc(var(--draw) * 6));
  /* transform is written by JS on this element only, so a frame never restyles the whole stage */
}
/* where the agent would go next: from under the dot, behind the rings, on past the section into the turn.
   It is a stage child (not in .wl-path) so the cards cover it; it parts around the caption. */
.wl-path-dash {
  --top: calc(var(--ay) * 1px - var(--stop) + 13px);
  --gap: calc(var(--scene-top) + (var(--gap-y) + 158px) * var(--s) + 22px - var(--top));   /* caption top - 12px, dash coords */
  position: absolute;
  left: calc(var(--ax) * 1px - 1.5px);
  top: var(--top);
  bottom: calc(var(--pb) * -1 - 150px);
  width: 3px;
  background: repeating-linear-gradient(180deg, rgba(168, 164, 156, .55) 0 7px, transparent 7px 13px);
  -webkit-mask: linear-gradient(#000 var(--gap), transparent 0 calc(var(--gap) + 46px), #000 0);
  mask: linear-gradient(#000 var(--gap), transparent 0 calc(var(--gap) + 46px), #000 0);
  opacity: var(--dash);
  transition: opacity .35s var(--ease-out);
}
.wl-stage.is-hit .wl-path-head { animation: wl-bump .5s var(--ease-out); }
@keyframes wl-bump {
  0% { translate: 0 0; }
  30% { translate: 0 -5px; }
  55% { translate: 0 1px; }
  100% { translate: 0 0; }
}
/* hand annotation (craft) */
.wl-note-hand {
  position: absolute;
  left: calc(var(--ax) * 1px + 58px);
  top: calc(var(--ay) * 1px - var(--stop) - 74px);
  margin: 0;
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-2);
  transform: rotate(-4deg);
  opacity: 0;
  transition: opacity .5s var(--ease-out) .15s;
}
.wl-note-hand svg { position: absolute; left: -62px; top: 16px; width: 64px; height: 30px; overflow: visible; }
.wl-stage.is-hit .wl-note-hand { opacity: 1; }
.wl-stage.is-focus .wl-note-hand,
.wl-stage.is-focus .wl-path-dash { opacity: 0; transition-delay: 0s; }
.wl-stage.is-focus .wl-path-head { animation: wl-land 1.4s var(--ease-out) infinite; }
@keyframes wl-land {
  0% { box-shadow: 0 0 0 2.5px var(--wl-cut), 0 0 0 0 rgba(255, 79, 20, .45), 0 6px 14px -4px rgba(255, 79, 20, .7); }
  70%, 100% { box-shadow: 0 0 0 2.5px var(--wl-cut), 0 0 0 16px rgba(255, 79, 20, 0), 0 6px 14px -4px rgba(255, 79, 20, .7); }
}

/* ---------- caption under the rings ---------- */
.wl-can {
  position: absolute;
  left: 50%;
  top: calc(var(--scene-top) + (var(--gap-y) + 158px) * var(--s) + 34px);
  z-index: 3;
  display: grid;
  width: min(560px, 100%);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  color: var(--mute);
  text-wrap: balance;
}
.wl-can > * { grid-area: 1 / 1; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.wl-can b { font-weight: 600; color: var(--signal-ink); }
.wl-can-v { color: var(--ink); }
.wl-can-on { opacity: 0; transform: translateY(6px); }
.wl-stage.is-focus .wl-can-idle { opacity: 0; transform: translateY(-6px); }
.wl-stage.is-focus .wl-can-on { opacity: 1; transform: none; }

/* ---------- iOS notifications: liquid glass over the rings ----------
   One even frost from rim to rim (no inner platter: it read as a box inside the glass), enough that the text
   reads over a dark card while the cards stay visible behind it. The thick edge is light: a
   specular rim (::before, a gradient border cut out with mask-composite) whose glint drifts slowly,
   plus an inner bevel from inset shadows. With .is-lens (JS: desktop Chromium with headroom) the
   glass also refracts: an SVG lens in backdrop-filter bends the cards behind into the rim. Everywhere
   else it is the same glass without the bend, and .is-flat (JS: low-end devices, slow frames) and
   phones bake the frost into the fill instead. Backdrop passes run only while the stage is on
   screen (JS: .is-vis). */
@property --wl-l { syntax: '<angle>'; inherits: false; initial-value: 120deg; }
.wl-notes { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.wl-n {
  --frost: blur(7px) saturate(1.8) brightness(1.06);   /* the even frost (v3) */
  --glass: rgba(255, 255, 255, .42);
  --flat: rgba(255, 255, 255, .58);   /* the glass with no backdrop pass: a touch more tint for the frost's lift */
  position: absolute;
  width: var(--nw);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 16px 13px 12px;
  border-radius: 22px;
  text-align: left;
  pointer-events: auto;
  isolation: isolate;
  background: var(--glass);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, .85),
    inset 0 -1px 1.5px rgba(255, 255, 255, .4),
    0 0 0 .5px rgba(30, 22, 8, .07),
    0 3px 10px -4px rgba(30, 22, 8, .1),
    0 24px 34px -14px rgba(18, 18, 20, .18);
  opacity: 0;
  transform: translateY(-14px) scale(.92);
  transition:
    opacity .45s var(--ease-out),
    transform .9s var(--ease-spring),
    box-shadow .3s var(--ease-out);
  transition-delay: calc(var(--i) * .42s + .15s);
}
.wl-notes.is-on .wl-n { opacity: 1; transform: none; }
.wl-stage.is-vis .wl-n { -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
/* the lens: refract first, then the same frost (JS sets --wl-lens to this note's own filter) */
.wl-notes.is-lens .wl-n { backdrop-filter: var(--wl-lens) var(--frost); }
.wl-notes.is-flat .wl-n { background: var(--flat); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* specular rim: brightest where the light (--wl-l) hits a corner and the one opposite it */
.wl-n::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.25px;
  border-radius: inherit;
  background: conic-gradient(from var(--wl-l, 120deg), #fff, rgba(255, 255, 255, .22) 22%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .22) 78%, #fff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* the glint drifts like light on a tilting phone. Desktop pointers only: it repaints the rims every
   frame, time a phone needs for the rings. (.is-live only exists with motion allowed.) */
@media (hover: hover) and (pointer: fine) {
  .wl-stage.is-live .wl-n::before { animation: wl-sheen 9s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -3s); }
}
@keyframes wl-sheen { from { --wl-l: 95deg; } to { --wl-l: 175deg; } }
/* top right of the top ring, left between the rings, bottom right on the bottom ring; offsets from the
   rings' centre line follow the ring scale, and no card comes closer than 8px to the window edge */
.wl-n--1 { top: calc(var(--scene-top) - 71px * var(--s)); left: min(50% + 323px * var(--s), 50% + 50vw - 8px - var(--nw)); }
.wl-n--2 { top: calc(var(--scene-top) + 100px * var(--s)); left: max(50% - 312px * var(--s) - var(--nw), 50% - 50vw + 8px); }
.wl-n--3 { top: calc(var(--scene-top) + 298px * var(--s)); left: min(50% + 271px * var(--s), 50% + 50vw - 8px - var(--nw)); }
.wl-n-ico .app { --s: 38px; border-radius: 9px; }
.wl-n-body { flex: 1; min-width: 0; }
.wl-n p { margin: 0; }
.wl-n-top { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px !important; padding-top: 1px; }
.wl-n-top span + span { text-transform: none; letter-spacing: 0; font-size: 12px; }
/* title and text in the iPhone's own face, as in the design; Host Grotesk where SF isn't available */
.wl-n-title, .wl-n-text { font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, var(--f-display); }
.wl-n-title { font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -.012em; color: var(--ink); font-variant-numeric: tabular-nums; }
.wl-n-text { font-weight: 400; font-size: 14px; line-height: 1.32; letter-spacing: -.005em; color: var(--ink-2); margin-top: 1px !important; text-wrap: pretty; }

:root[data-theme="dark"] .wl { --wl-cut: var(--paper); }
:root[data-theme="dark"] .wl-stage::before { background: radial-gradient(closest-side, rgba(150, 165, 190, .075), rgba(150, 165, 190, 0)); }
:root[data-theme="dark"] .wl-stage::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
:root[data-theme="dark"] .wl-bubble { background: #3A3B40; }
:root[data-theme="dark"] .wl-steps i { background: rgba(226, 55, 68, .22); }
:root[data-theme="dark"] .wl-steps .is-done { background: #F04E5A; }
:root[data-theme="dark"] .wl-steps .is-now::after { background: #F04E5A; }
:root[data-theme="dark"] .wl-zom .wl-eta b { color: #FF5C68; }
:root[data-theme="dark"] .wl-pin i { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
:root[data-theme="dark"] .wl-pin .is-on { background: #00BAF2; box-shadow: none; }
:root[data-theme="dark"] .wl-bnb .wl-big { color: #FF5A7E; }
:root[data-theme="dark"] .wl-venmo .wl-big { color: #4DB1FF; }
:root[data-theme="dark"] .wl-path-dash { background: repeating-linear-gradient(180deg, rgba(140, 143, 149, .55) 0 7px, transparent 7px 13px); }
/* dark glass: a smoked tint, the rim and bevel at night strength */
:root[data-theme="dark"] .wl-n {
  --frost: blur(8px) saturate(1.6) brightness(.9);
  --glass: rgba(30, 32, 37, .5);
  --flat: rgba(30, 32, 37, .66);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, .2),
    inset 0 -1px 1.5px rgba(255, 255, 255, .08),
    0 0 0 .5px rgba(0, 0, 0, .5),
    0 3px 10px -4px rgba(0, 0, 0, .5),
    0 22px 44px -20px rgba(0, 0, 0, .9);
}
:root[data-theme="dark"] .wl-n::before { background: conic-gradient(from var(--wl-l, 120deg), rgba(255, 255, 255, .55), rgba(255, 255, 255, .07) 22%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .07) 78%, rgba(255, 255, 255, .55)); }

@media (prefers-reduced-motion: reduce) {
  .wl-c, .wl-can > * { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .wl { --s: .88; --nw: 300px; --stage-h: 650px; }
}
@media (max-width: 1023px) {
  /* rings in a fixed box; caption and notifications stack under it */
  .wl { --s: .72; --scene-top: 132px; --po: -110px; --stage-h: auto; --stop: 48px; }
  .wl-stage { height: auto; display: grid; justify-items: center; padding-top: calc(var(--scene-top) + (var(--gap-y) + 172px) * var(--s)); }
  .wl-can { position: relative; left: auto; top: auto; width: min(560px, 100%); transform: none; padding: 0 8px; }
  .wl-notes { position: relative; inset: auto; display: grid; gap: 10px; width: min(420px, 100%); margin-top: 22px; }
  .wl-n { position: relative; inset: auto; width: auto; }
  /* over plain paper the frost only lifted the paper to near white and blurred its dots away: the same,
     baked into the fill, with no backdrop pass for a phone's GPU to redo on every scrolled frame */
  .wl-stage .wl-notes .wl-n { --flat: rgba(255, 255, 252, .94); background: var(--flat); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme="dark"] .wl-stage .wl-notes .wl-n { --flat: rgba(17, 19, 23, .94); }
  /* the dash ends under the bottom ring: caption and notifications stack below it */
  .wl-path-dash { bottom: auto; height: calc(var(--stop) - 13px + (var(--gap-y) + 158px) * var(--s)); -webkit-mask: none; mask: none; }
  .wl-note-hand { font-size: 19px; left: calc(var(--ax) * 1px + 44px); }
}
@media (max-width: 640px) {
  .wl { --s: .54; --scene-top: 104px; --po: -90px; --stop: 40px; }
  .wl-rings { -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .wl-note-hand { left: calc(var(--ax) * 1px + 24px); top: calc(var(--ay) * 1px - var(--stop) - 56px); font-size: 16px; }
  .wl-note-hand svg { left: -40px; top: 11px; width: 42px; height: 22px; }
  .wl-can { font-size: 14px; }
  .wl-br:last-of-type { display: none; }   /* the three design lines fit down to here; keep the sentence break */
}

/* reduced transparency: solid cards that keep the rim (last, and the selectors outrank the lens, the flat
   glass and the dark glass) */
@media (prefers-reduced-transparency: reduce) {
  .wl-stage .wl-notes .wl-n { background: #FAF9F6; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme="dark"] .wl-stage .wl-notes .wl-n { background: #222327; }
}

/* ===== turn ===== */
/* 02 — The turn: "So we gave agents a phone." A night panel: the rack wall behind a lone iPhone, seen head-on.
   Scrolling grows it to full bleed, the rack wall fades, the machine assembles around the phone as a dark ghost and
   the camera flies in; then scroll walks the three steps. Always night, whatever the site theme (as in the design). */
.tn { position: relative; --p: 0; padding-bottom: min(5vw, 72px); }   /* the design's 72px of paper between the night panel and Undetectable */
.tn-track { height: 520vh; position: relative; }
.tn-sticky {
  --tn-edge: 4.24vw;   /* the intro panel's side inset: 61px at 1440 */
  --tn-r: 37px;
  --tn-in: calc(1 - var(--tn-k, 0));   /* 1 = the intro panel, 0 = full bleed */
  /* the intro panel is exactly as tall as the ending panel (--tn-panel, measured by turn.js; one screen without it).
     Taller than the screen: so is the stage, which pins once its foot meets the screen's (its top --tn-hid scrolled away);
     shorter: the stage is one screen and the panel a card centred in it, --tn-pad above and below.
     "One screen" is the large viewport (lvh): with Safari's toolbar collapsed the stage still covers the screen (svh left
     a strip of paper under it); --tn-bar lifts the bottom UI clear of the toolbar while it shows (0 elsewhere) */
  --tn-hid: max(0px, var(--tn-panel, 100lvh) - 100lvh);
  --tn-pad: max(0px, (100lvh - var(--tn-panel, 100lvh)) / 2);
  --tn-bar: calc(100lvh - 100dvh);
  position: sticky; top: calc(-1 * var(--tn-hid)); height: calc(100lvh + var(--tn-hid)); overflow: clip; overflow-clip-margin: 90px;
}
/* the panel's soft drop shadow (the design's, same as the ending panel's): the stage's clip-path would cut it off.
   It stays at the intro panel and fades as the panel grows (gone at full bleed): no layout, so no layout shift per frame */
.tn-sticky::before { content: ''; position: absolute; inset: var(--tn-pad) var(--tn-edge); border-radius: var(--tn-r); box-shadow: 0 40px 80px -50px rgba(18, 19, 20, .6); opacity: var(--tn-in); }
.tn-stage {
  /* the night tokens, scoped to the stage */
  --paper: #0D0E10;
  --card: #141518;
  --ink: #EEEDE8;
  --ink-2: #CFCEC8;
  --mute: #9C9EA2;
  --mute-2: #85888E;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  color-scheme: dark;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #131517;
  clip-path: inset(calc(var(--tn-pad) * var(--tn-in)) calc(var(--tn-edge) * var(--tn-in)) round calc(var(--tn-r) * var(--tn-in)));
}
.tn-bleed .tn-stage { clip-path: none; }   /* full bleed (turn.js): the same look without a clip pass every frame */
/* faint cable-blue and signal glows behind the steps (static: no moving background here) */
.tn-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--tn-steps, 0);
  background:
    radial-gradient(60% 50% at 72% 58%, rgba(143, 195, 230, .10), transparent 70%),
    radial-gradient(40% 40% at 20% 20%, rgba(255, 79, 20, .07), transparent 70%);
}
/* the rack wall at night (closing.js), only behind the intro: sized to the panel */
.tn-rack {
  position: absolute; left: 0; top: var(--tn-pad); width: 100%; height: calc(100% - 2 * var(--tn-pad));
  opacity: var(--tn-rack, 1);
  -webkit-mask: radial-gradient(90% 100% at 50% 40%, #000 60%, transparent 100%);
  mask: radial-gradient(90% 100% at 50% 40%, #000 60%, transparent 100%);
}
/* one screen tall, at the stage's foot: the machine is framed to what's on screen (turn.js places the intro phone in the panel) */
.tn-canvas { position: absolute; left: 0; top: var(--tn-hid); width: 100%; height: 100lvh; opacity: 0; transition: opacity 1s var(--ease-out); }
.tn.is-ready .tn-canvas { opacity: 1; }

/* intro title — over the lone iPhone, then lifts away */
.tn-intro {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: calc(var(--tn-pad) + var(--tn-panel, 100lvh) * .103);
  text-align: center;
  opacity: var(--tn-intro, 1);
  transform: translateY(calc((1 - var(--tn-intro, 1)) * -60px));
  pointer-events: none;
}
.tn-intro .eyebrow { display: flex; justify-content: center; margin-bottom: 30px; }
.tn-title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(52px, 7.4vw, 106px);
  line-height: 1;
  letter-spacing: -.048em;
  color: #FDFDFB;
  max-width: 11ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* steps column */
.tn-layout { position: relative; z-index: 3; height: 100%; display: flex; align-items: flex-start; padding-top: calc(var(--tn-hid) + max(88px, 50svh - 265px)); pointer-events: none; }
.tn-steps {
  width: min(440px, 40%);
  opacity: var(--tn-steps, 0);
  transform: translateY(calc((1 - var(--tn-steps, 0)) * 30px));
  pointer-events: auto;
}
.tn-steps-off .tn-steps { pointer-events: none; }
.tn-kicker { font-family: var(--f-head); font-size: clamp(30px, 3vw, 44px); font-weight: 500; letter-spacing: -.048em; line-height: 1.02; margin-bottom: 30px; max-width: 12ch; color: var(--ink); }
.tn-list { display: grid; gap: 8px; }
.tn-step { padding: 14px 0 14px 18px; border-left: 2px solid var(--line-2); transition: border-color .4s; }
.tn-step.is-active { border-left-color: var(--signal); }
.tn-step-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-head); font-size: clamp(21px, 1.75vw, 25px); font-weight: 500; letter-spacing: -.022em;
  color: #8A9096;
  transition: color .4s;
  text-align: left;
  position: relative;
}
.tn-step-head::before { content: ''; position: absolute; inset: -9px -6px; } /* ≥44px tap target */
.tn-step.is-active .tn-step-head, .tn-step.is-done .tn-step-head { color: var(--ink); }
.tn-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--f-mono); background: var(--graphite-3); color: var(--on-dark-mute); transition: background-color .4s, color .4s; flex: none; }
.tn-step.is-active .tn-num { background: var(--signal); color: #fff; }
.tn-step.is-done .tn-num { background: var(--ink); color: var(--paper); }
.tn-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .6s var(--ease-out), opacity .5s var(--ease-out), margin .6s var(--ease-out);
}
.tn-body-in { min-height: 0; overflow: hidden; padding: 0 4px 0 2px; margin: 0 -4px 0 -2px; }
.tn-step.is-active .tn-body { grid-template-rows: 1fr; opacity: 1; margin-top: 16px; }
.tn-body-in > :first-child { margin-top: 6px; }

/* step 1 — agents */
.tn-agents { display: flex; gap: 12px; padding: 4px 2px 6px; }
.tn-agents li { display: grid; justify-items: center; gap: 7px; font-size: 12px; color: var(--mute); transition: color .3s; }
.tn-tile { --s: 56px; border-radius: 16px; transition: transform .4s var(--ease-spring), box-shadow .3s; overflow: visible; }
.tn-agents li.is-picked { color: var(--ink); }
.tn-agents li.is-picked .tn-tile { transform: translateY(-3px); box-shadow: 0 0 0 2.5px #111315, 0 0 0 4.5px var(--signal), 0 0 28px -4px rgba(255, 79, 20, .6); }
.tn-agents li { position: relative; }
.tn-agents li.is-picked::after {
  content: ''; position: absolute; left: calc(50% + 19px); top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 2px #111315;
}

/* step 2 — the prompt (like the wireframe's claude card) */
.tn-prompt { position: relative; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line-dark) inset; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 22px; padding: 18px 22px 22px; }
.tn-prompt-from { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--f-mono); color: var(--mute); margin-bottom: 12px; }
.tn-prompt-from .ico { color: #D97757; width: 17px; height: 17px; }
.tn-prompt-text { font-size: 17.5px; line-height: 1.45; letter-spacing: -.012em; color: var(--ink); padding-right: 40px; min-height: 2.9em; }
.tn-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--signal); vertical-align: -.15em; margin-left: 2px; animation: tn-blink 1s steps(1) infinite; }
@keyframes tn-blink { 50% { opacity: 0; } }
.tn-send { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform .3s var(--ease-spring), background-color .3s; }
.tn-send .ico { width: 16px; height: 16px; }
.tn-prompt.is-sent .tn-send { background: var(--signal); color: #fff; transform: scale(1.08); }
.tn-prompt.is-sent .tn-caret { display: none; }

/* step 3 — the log + receipt */
.tn-log { display: grid; gap: 9px; font: 400 13px/1.3 var(--f-mono); color: #8A9096; padding-top: 2px; }
.tn-log li { position: relative; padding-left: 28px; transition: color .3s; }
.tn-log li::before { content: ''; position: absolute; left: 0; top: -2px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--graphite-4) inset; transition: background-color .3s, box-shadow .3s; }
.tn-log li::after { content: ''; position: absolute; left: 5.5px; top: 2.5px; width: 7px; height: 4px; border: solid var(--paper); border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) scale(0); transition: transform .35s var(--ease-spring); }
.tn-log li.is-done { color: var(--ink-2); }
.tn-log li.is-done::before { background: var(--ink); box-shadow: none; }
.tn-log li.is-done:last-child::before { background: var(--led); }
.tn-log li.is-done:last-child::after { border-color: #fff; }
.tn-log li.is-done::after { transform: rotate(-45deg) scale(1); }
.tn-receipt {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--graphite-2); box-shadow: 0 0 0 1px var(--line-dark);
  font: 400 12px/1.3 var(--f-mono); color: var(--mute);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  width: max-content; max-width: 100%;
}
.tn-receipt b { color: var(--ink); font-weight: 500; }
/* a little receipt card: the title on top, the facts below — chunks never split */
.tn-receipt-meta > span { white-space: nowrap; }
.tn-receipt-meta > span:first-child { display: block; margin-bottom: 3px; }
.tn-receipt-meta > span + span + span::before { content: '· '; }
.tn-receipt-meta .dot { vertical-align: 1px; }
.tn-receipt.is-in { opacity: 1; transform: none; }
.tn-shots { display: flex; }
.tn-shots i { width: 22px; height: 40px; border-radius: 5px; border: 1.5px solid var(--graphite-2); margin-left: -6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); background: linear-gradient(160deg, #9ccbb7, #2f6b5e); }
.tn-shots i:first-child { margin-left: 0; }
.tn-shots i:nth-child(2) { background: linear-gradient(160deg, #f2f2f2 40%, #ddd); }
.tn-shots i:nth-child(3) { background: radial-gradient(circle at 50% 55%, #d9532b 0 27%, #1e1b19 28% 34%, transparent 35%), linear-gradient(#6b4127, #8a5a35); }
.tn-shots i:nth-child(4) { background: radial-gradient(circle at 50% 30%, #34C759 0 18%, transparent 19%), linear-gradient(#a8703f, #3d2414); }

/* progress rail (inside the intro panel, it rides up by --tn-pad: a transform, which is no layout shift) */
.tn-rail { position: absolute; z-index: 3; left: 50%; bottom: calc(28px + var(--tn-bar)); transform: translate(-50%, calc(-1 * var(--tn-pad) * var(--tn-in))); display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(27, 30, 33, .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line-dark); font: 500 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--mute); opacity: var(--tn-steps, 0); }
.tn-rail-label { white-space: nowrap; }
.tn-rail b { color: var(--ink); font-weight: 500; }
.tn-rail-bars { display: flex; gap: 4px; }
.tn-rail-bars i { width: 34px; height: 3px; border-radius: 3px; background: var(--graphite-4); overflow: hidden; }
.tn-rail-bars b { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--f, 0)); }

/* touch screens: no blur redone every frame over the moving machine; over the scrim a denser fill reads the same */
@media (pointer: coarse) {
  .tn-prompt, .tn-rail { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tn-rail { background: rgba(27, 30, 33, .86); }
}

/* a scrim between the lit machine and the copy, there only while the steps are */
.tn-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--tn-steps, 0);
  background: linear-gradient(90deg, rgba(17, 19, 21, .86) 0 34%, rgba(17, 19, 21, 0) 56%);
}

/* no WebGL: the display alone, flat in a bezel, beside the steps */
.tn-flat {
  position: absolute; z-index: 1; top: calc(50% + var(--tn-hid) / 2); right: 13%; height: min(74svh, 680px); width: auto; aspect-ratio: 428 / 926;
  transform: translateY(-50%); border: 10px solid #0b0c0d; border-radius: 54px;
  box-shadow: 0 0 0 1.5px #3c4a40, 0 40px 70px -30px rgba(0, 0, 0, .55); opacity: var(--tn-steps, 0);
}

/* ---------- small or short screens: one step at a time ----------
   every step shares one grid cell, so the list is always as tall as its tallest step: switching never moves anything */
@media (max-width: 900px), (max-height: 640px) {
  .tn-step { grid-area: 1 / 1; align-self: start; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), border-color .4s; }
  .tn-step.is-active { opacity: 1; pointer-events: auto; transition-delay: .12s; }
  .tn-body { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; transition: none; }
  .tn-agents { flex-wrap: wrap; gap: 10px; }
  .tn-tile { --s: 50px; border-radius: 14px; }
  .tn-step-head { font-size: 19px; }   /* stays under the 22px kicker */
}
@media (max-height: 640px) {
  .tn-layout { padding-top: calc(var(--tn-hid) + 72px); }
  .tn-kicker { font-size: 22px; max-width: none; margin-bottom: 8px; }
  .tn-intro { top: calc(var(--tn-pad) + 72px); }
  .tn-title { font-size: max(40px, min(8vw, 14vh)); }
}
/* ---------- portrait phones and tablets: same pin, stacked — the iPhone up top, the step below it ---------- */
@media (max-width: 900px) and (orientation: portrait) {
  .tn-track { height: 420vh; }
  .tn-sticky { --tn-edge: 12px; --tn-r: 28px; }
  .tn-intro { top: max(92px, var(--tn-pad) + var(--tn-panel, 100lvh) * .13); padding-inline: 20px; }
  .tn-title { font-size: clamp(46px, 13vw, 72px); }
  .tn-layout { position: absolute; left: 0; right: 0; bottom: calc(72px + var(--tn-bar)); transform: translateY(calc(-1 * var(--tn-pad) * var(--tn-in))); height: auto; display: block; padding-top: 0; }
  .tn-steps { width: auto; max-width: 480px; }
  .tn-kicker { font-size: 22px; max-width: none; margin-bottom: 12px; }
  .tn-rail { bottom: calc(22px + var(--tn-bar)); }
  .tn-flat { top: calc(var(--tn-hid) + max(84px, 11svh)); right: auto; left: 50%; height: 38svh; transform: translateX(-50%); border-width: 7px; border-radius: 34px; }
  .tn-stage::after { background: linear-gradient(0deg, rgba(17, 19, 21, .9) 0 34%, rgba(17, 19, 21, 0) 58%); }
}

/* ===== undetectable ===== */
/* 04 — Undetectable: camera-feed panel (3D machine mounts into .ud-canvas) + inspection tag */
.ud {
  --ud-in: 32px;                       /* HUD inset from the panel edge */
  --ud-chip: 28px;                     /* part-chip height; the hint + tip sit relative to it */
  --ud-pass: #1A7F40;                  /* LED green darkened for text on the paper tag (4.6:1+) */
  --ud-glass: rgba(19, 21, 23, .56);
  --ud-mark: rgba(255, 255, 255, .4);
}
.ud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

/* ---------- camera panel ---------- */
.ud-panel { position: sticky; top: 120px; min-width: 0; order: -1; margin-top: 7px; }   /* 7px: the eyebrow's offset in its line box, so the tops match */
.ud-screen {
  position: relative;
  width: 100%;          /* definite width so min-height can't widen it via aspect-ratio */
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1 / 1.02;
  min-height: 560px;
  border-radius: var(--r-xl);
  color: var(--on-dark);
  background:
    radial-gradient(90% 70% at 50% 42%, #23272b 0%, rgba(35, 39, 43, 0) 70%),
    var(--graphite);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .55),
    0 1px 0 rgba(255, 255, 255, .07) inset,
    0 2px 4px rgba(18, 19, 20, .06),
    0 40px 80px -36px rgba(18, 19, 20, .55);
}
.ud-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: pan-y; }   /* sideways drags turn the machine, vertical ones scroll */

/* lens: scanlines + vignette + crop marks, above the 3D, never takes input */
.ud-fx {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255, 255, 255, .022) 2px 3px),
    radial-gradient(120% 95% at 50% 45%, transparent 52%, rgba(0, 0, 0, .5) 100%);
}
.ud-fx::before {
  content: '';
  position: absolute;
  inset: 16px;
  --a: 16px; --t: 1.5px;
  background:
    linear-gradient(var(--ud-mark) 0 0) top left / var(--a) var(--t),
    linear-gradient(var(--ud-mark) 0 0) top left / var(--t) var(--a),
    linear-gradient(var(--ud-mark) 0 0) top right / var(--a) var(--t),
    linear-gradient(var(--ud-mark) 0 0) top right / var(--t) var(--a),
    linear-gradient(var(--ud-mark) 0 0) bottom left / var(--a) var(--t),
    linear-gradient(var(--ud-mark) 0 0) bottom left / var(--t) var(--a),
    linear-gradient(var(--ud-mark) 0 0) bottom right / var(--a) var(--t),
    linear-gradient(var(--ud-mark) 0 0) bottom right / var(--t) var(--a);
  background-repeat: no-repeat;
}
/* slow refresh band rolling down the feed; runs only while visible (.is-live) */
.ud-sweep {
  position: absolute; left: 0; right: 0; top: 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .028) 70%, transparent);
  transform: translateY(-100%);
  animation: ud-sweep 7.5s linear infinite paused;
}
.ud.is-live .ud-sweep { animation-play-state: running; }
@keyframes ud-sweep { to { transform: translateY(300%); } }
/* app-side scan: one green scan line with a soft trail crosses the feed while the checks run */
.ud-scanline {
  position: absolute; inset: 0;
  opacity: 0;
  background: linear-gradient(to bottom, transparent 62%, rgba(47, 191, 99, .06) 90%, rgba(47, 191, 99, .2) 99.3%, rgba(140, 240, 175, .9) 99.3%);
}
.ud.is-scanning .ud-scanline { animation: ud-scanline var(--ud-scan-t, 2.9s) linear both; }
@keyframes ud-scanline {
  0% { opacity: 0; transform: translateY(-100%); }
  8%, 92% { opacity: 1; }
  100% { opacity: 0; transform: none; }
}
/* clear: the crop marks lock green */
.ud.is-clear { --ud-mark: rgba(47, 191, 99, .8); }

/* ---------- HUD ---------- */
.ud-hud {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .04em;
  --focus: var(--signal);   /* rings on the dark feed */
}
.ud-glass {
  background: var(--ud-glass);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
/* touch screens: the glass sits over a live 3D feed, so its blur would be redone every frame. A denser fill over
   the dark feed reads the same */
@media (pointer: coarse) {
  .ud { --ud-glass: rgba(19, 21, 23, .8); }
  .ud-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.ud-live {
  position: absolute; top: var(--ud-in); left: var(--ud-in);
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px 0 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.ud-live .dot { margin-right: 1px; }
.ud-tc {
  position: absolute; top: calc(var(--ud-in) + 9px); right: calc(var(--ud-in) + 4px);
  display: flex; gap: 12px;
  color: var(--on-dark-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ud-tc-time { color: var(--on-dark); }

.ud-hint {
  position: absolute; left: calc(var(--ud-in) + 4px); bottom: calc(var(--ud-in) + var(--ud-chip) / 2 - 6px);
  display: flex; align-items: center; gap: 8px;
  color: var(--on-dark-mute);
  transition: opacity .3s;
}
.ud-hint .ico { width: 13px; height: 13px; stroke-width: 1.6; }
.ud-hint-touch { display: none; }
@media (hover: none) {
  .ud-hint-mouse { display: none; }
  .ud-hint-touch { display: inline; }
}

.ud-legend {
  position: absolute; right: var(--ud-in); bottom: var(--ud-in);
  display: flex; gap: 6px;
  pointer-events: auto;
}
.ud .ud-chip {
  gap: 7px;
  height: var(--ud-chip); padding: 0 11px;
  background: var(--ud-glass);
  color: var(--on-dark-mute);
  font-size: 12px;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.ud-chip:hover { color: var(--on-dark); }
.ud-chip i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .45;
  transition: background-color .2s, box-shadow .3s, opacity .2s;
}
.ud .ud-chip.is-on {
  color: #fff;
  background: rgba(255, 79, 20, .2);
  box-shadow: 0 0 0 1px rgba(255, 122, 69, .55) inset;
}
.ud-chip.is-on i { background: var(--signal-2); opacity: 1; box-shadow: 0 0 0 3px rgba(255, 79, 20, .22), 0 0 10px var(--signal); }

/* part tooltip: bottom-left, above the hint */
.ud-tip {
  position: absolute; left: var(--ud-in); bottom: calc(var(--ud-in) + var(--ud-chip) + 14px);
  width: min(330px, calc(100% - 2 * var(--ud-in)));
  padding: 14px 16px 15px;
  border-radius: 16px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(.98);
  transform-origin: 0 100%;
  transition: opacity .22s, transform .4s var(--ease-out), visibility 0s .4s;
}
.ud.has-part .ud-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ud-tip-name { display: flex; align-items: baseline; gap: 10px; font: 500 18px/1.2 var(--f-head); letter-spacing: -.02em; color: var(--on-dark); }
.ud-tip-name b { font-weight: inherit; }   /* Use the shipped medium weight without faux bold. */
.ud-tip-k { font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--signal-2); }
.ud-tip-text { margin-top: 6px; font: 400 13.5px/1.45 var(--f-display); letter-spacing: -.003em; color: #BFC2C6; text-wrap: pretty; }

/* app-side scan readout: top-right, under the timecode. Hidden until the scan starts. */
.ud-scan {
  position: absolute; top: calc(var(--ud-in) + 40px); right: var(--ud-in);
  width: 268px;
  border-radius: 14px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .3s, transform .5s var(--ease-out), visibility 0s .5s;
}
.ud.is-scanning .ud-scan, .ud.is-clear .ud-scan { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* folds to the verdict bar. max-height, not grid rows 1fr → 0fr: Chrome sizes the box ahead of the
   shrinking row there and flashes an empty band mid-fold. 200px > the full readout (188px). */
.ud-scan-body { max-height: 200px; overflow: hidden; transition: max-height .55s var(--ease-out), visibility 0s; }
.ud-scan.is-folded .ud-scan-body { max-height: 0; visibility: hidden; transition: max-height .55s var(--ease-out), visibility 0s .55s; }
.ud-scan-head {
  display: flex; justify-content: space-between;
  padding: 13px 14px 10px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-mute);
}
.ud-scan-n { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.ud-scan-list { padding: 0 14px 8px; }
.ud-scan-list li {
  display: flex; align-items: center; gap: 9px;
  height: 21px;
  color: var(--on-dark-mute);
  transition: color .2s;
}
/* status LED: ring = pending, orange blink = checking, green = clear */
.ud-scan-list li::before {
  content: ''; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: .55;
}
.ud-scan-list b { display: none; margin-left: auto; font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--led); }
.ud-scan-list li.is-run { color: var(--on-dark); }
.ud-scan-list li.is-run::before { background: var(--signal-2); box-shadow: 0 0 8px var(--signal); opacity: 1; animation: ud-blink .42s steps(2) infinite; }
.ud-scan-list li.is-run::after { content: 'checking…'; margin-left: auto; color: var(--on-dark-mute); }
.ud-scan-list li.is-ok { color: #D5D7DA; }
.ud-scan-list li.is-ok::before { background: var(--led); box-shadow: 0 0 0 3px rgba(47, 191, 99, .18); opacity: 1; }
.ud-scan-list li.is-ok b { display: block; }
@keyframes ud-blink { 50% { opacity: .3; } }

/* verdict bar: appears when clear, toggles the readout */
.ud-verdict {
  display: none; align-items: center; gap: 9px;
  width: 100%; height: 38px; padding: 0 12px 0 14px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .08);
  color: var(--on-dark);
  font: inherit; letter-spacing: inherit; text-align: left;
  pointer-events: auto; cursor: pointer;
  transition: box-shadow .4s, border-radius .4s;
}
.ud.is-clear .ud-verdict { display: flex; animation: ud-verdict .5s var(--ease-out); }
.ud-verdict .dot { box-shadow: 0 0 0 3px rgba(47, 191, 99, .2), 0 0 10px var(--led); }
.ud-verdict b { color: var(--led); font-weight: 700; }
.ud-verdict .ico { width: 14px; height: 14px; margin-left: auto; color: var(--on-dark-mute); transform: rotate(180deg); transition: transform .4s var(--ease-out), color .2s; }
.ud-verdict:hover .ico { color: var(--on-dark); }
.ud-scan.is-folded .ud-verdict { border-radius: 14px; box-shadow: 0 0 0 transparent; }
.ud-scan.is-folded .ud-verdict .ico { transform: none; }
@keyframes ud-verdict { from { opacity: 0; } }

/* no WebGL (inspect.js tags the panel): a still of the machine; chips + tip still work, the hover hint goes */
.ud-panel.no-webgl .ud-canvas { background: url(assets/model/phoneuse-poster.webp) 50% 54% / 84% auto no-repeat; }
.ud-panel.no-webgl .ud-hint { display: none; }

/* masking tape stuck half over the top edge */
.ud-tape { position: absolute; top: -15px; right: 11%; z-index: 4; --rot: 4deg; }

/* Figma: 116px under the tag, not the usual 128 */
.ud { padding-bottom: calc(var(--section-y) * .9); }

/* ---------- copy ---------- */
/* Figma: 69/75, greedy wrap ("A real iPhone, tapped / by a robot.") */
.ud .t-h2 { font-size: clamp(38px, 4.8vw, 69px); line-height: 1.085; text-wrap: wrap; }
.ud-lede { margin-top: 24px; max-width: 33em; }

/* ---------- inspection tag ---------- */
.ud-sheet { position: relative; margin-top: 36px; border-radius: 20px; container-type: inline-size; }
.ud-sheet-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 22px 0 50px;
  border-radius: 20px 20px 0 0;
  background: var(--ink);
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark);
}
.ud-sheet-id { color: var(--on-dark-mute); }
/* punched hole through the tag, with a metal eyelet */
.ud-hole {
  position: absolute; left: 20px; top: 50%;
  width: 11px; height: 11px; margin-top: -5.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, .45),
    0 0 0 2.5px #A4A8AD,
    0 0 0 3.5px #3C4146,
    0 1px 0 3.5px rgba(255, 255, 255, .1);
}

.ud-rows { padding: 8px 8px 6px; }
.ud-row {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px; line-height: 1.35;
  transition: background-color .2s;
}
.ud-row + .ud-row::before {
  content: '';
  position: absolute; top: 0; left: 14px; right: 14px;
  height: 1px; background: var(--line);
}
.ud-row dt { color: var(--mute); transition: color .2s; }
.ud-row dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.ud-row[data-part] { cursor: default; }
.ud-row.is-on { background: rgba(255, 231, 220, .75); }
/* consecutive active rows (the four phone rows) read as one block */
.ud-row.is-on + .ud-row.is-on { border-top-left-radius: 0; border-top-right-radius: 0; }
.ud-row.is-on:has(+ .ud-row.is-on) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ud-row.is-on::before, .ud-row.is-on + .ud-row::before { opacity: 0; }
.ud-row.is-on dt { color: var(--ink-2); }
.ud-row--pass dd { color: var(--ud-pass); font-weight: 700; }   /* pass = green, as everywhere else */

.ud-sheet-foot {
  padding: 15px 22px 17px;
  border-top: 1.5px dashed var(--line-2);
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute-2);
}
.ud-stamp {
  position: absolute; right: 24px; bottom: 10px;
  --rot: -12deg; --ink-c: var(--led);
  padding: 8px 16px 6px;
  font-size: 28px;
}
.ud-stamp:not(.is-stamped) { opacity: 0; }
/* the tag takes the hit when the stamp lands */
.ud-sheet:has(.ud-stamp.is-stamped) { animation: ud-hit .4s .2s var(--ease-out); }
@keyframes ud-hit { 30% { transform: translateY(2px) rotate(-.2deg); } }

/* ---------- dark theme ----------
   The feed panel is dark in both themes: at night it gets a hairline rim, a top-lit edge and a soft
   halo so it still reads as a lit screen on the near-black page. The inspection tag is a physical
   paper tag, so it stays paper: light tokens are re-pinned on it and its shadows go deep. */
:root[data-theme="dark"] .ud-screen {
  background:
    radial-gradient(90% 70% at 50% 42%, #282c31 0%, rgba(40, 44, 49, 0) 70%),
    #16181B;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .11),
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 0 0 6px rgba(255, 255, 255, .018),
    0 40px 90px -40px rgba(0, 0, 0, .95),
    0 0 110px -30px rgba(190, 205, 220, .14);
}
:root[data-theme="dark"] .ud-tape { box-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .ud-sheet {
  --card: #F7F6F1;
  --ink: #121314; --ink-2: #2B2E31;
  --mute: #6C6963; --mute-2: #9A968E;
  --line: rgba(18, 19, 20, .09); --line-2: rgba(18, 19, 20, .16);
  --signal-ink: #D23A04;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 24px 50px -18px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(242, 241, 236, .1);
}
/* the black header band would melt into the page: lift it a touch and give it a lit top edge */
:root[data-theme="dark"] .ud-sheet-head { background: #1D2024; box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 0 0 1px rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .ud-stamp { mix-blend-mode: multiply; }   /* base screens stamps at night; this one is on paper */

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ud { --ud-in: 24px; }
}
/* drop secondary text when its panel / sheet gets narrow (each queries its own container) */
@container (max-width: 460px) { .ud-sm-hide { display: none; } }
/* narrow panel: legend gets its own row, hint sits above it, the tip replaces the hint */
@container (max-width: 560px) {
  .ud-legend { left: var(--ud-in); right: var(--ud-in); gap: 5px; }
  .ud .ud-chip { padding: 0 10px; gap: 6px; }
  .ud-hint { bottom: calc(var(--ud-in) + var(--ud-chip) + 14px); }
  .ud.has-part .ud-hint { opacity: 0; }
  .ud-tip { bottom: calc(var(--ud-in) + var(--ud-chip) + 10px); width: auto; right: var(--ud-in); }
  /* scan readout spans the panel under the LIVE row; while scanning it shows only the check in progress */
  .ud-scan { top: calc(var(--ud-in) + 36px); left: var(--ud-in); width: auto; }
  .ud:not(.is-clear) .ud-scan-list li:not(.is-run) { display: none; }
  .ud.is-clear .ud-scan:not(.is-opened) .ud-scan-list li:not(:last-child) { display: none; }   /* auto run folds from the last row */
  /* opened by hand it needs the panel down to the bottom inset (it reaches the chips below ~390 wide):
     hint + chips step aside until it's folded again; a part tip takes over from it */
  .ud:not(.has-part) .ud-scan.is-opened:not(.is-folded) ~ :is(.ud-hint, .ud-legend) { opacity: 0; visibility: hidden; }
  .ud.has-part .ud-scan { opacity: 0; visibility: hidden; }
}
@media (max-width: 900px) {
  /* touch: the chips are the obvious way to inspect a part, so give them a real target */
  .ud { --ud-chip: 40px; }
  .ud button.chip { padding-inline: 14px; }
  .ud-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .ud-panel { position: relative; top: auto; margin-top: 0; }
  .ud-screen { aspect-ratio: 4 / 3; min-height: 0; }
  .ud-copy { max-width: 620px; }
  .ud-stamp { right: 38px; }   /* the stamp slams in at 1.9×: this far in, it never pokes past the viewport */
}
@media (max-width: 640px) {
  .ud { --ud-in: 24px; }
  .ud-grid { gap: 44px; }
  .ud-screen { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .ud-fx::before { inset: 10px; --a: 11px; }
  .ud-hud { font-size: 10.5px; }
  .ud-live { height: 26px; padding: 0 10px 0 9px; gap: 7px; }
  .ud-tc { top: calc(var(--ud-in) + 8px); right: calc(var(--ud-in) + 2px); }
  .ud .ud-chip { font-size: 11.5px; }
  /* phone: four equal 40px chips across the panel */
  .ud-legend li { flex: 1 1 0; }
  .ud button.chip { width: 100%; justify-content: center; padding-inline: 8px; }
  .ud-hint { left: calc(var(--ud-in) + 2px); }
  .ud-tip { padding: 12px 14px 13px; }
  .ud-tip-text { font-size: 13px; }
  .ud-tape { right: 22px; top: -13px; font-size: 17px; }
  .ud-sheet { margin-top: 30px; }
  .ud-sheet-head { padding: 0 16px 0 44px; }
  .ud-hole { left: 17px; }
  .ud-rows { padding: 6px 4px 4px; }
  .ud-row { padding: 11px 12px; font-size: 14px; }
  .ud-row + .ud-row::before { left: 12px; right: 12px; }
  .ud-sheet-foot { padding: 15px 16px 17px; }
  .ud-stamp { font-size: 24px; }
}

/* ===== why ===== */
/* ============================================================
   05 — Why PhoneUse: comparison table
   The PhoneUse column is a physical orange tab pulled out of the card.
   Three routes: browser agents, emulators, PhoneUse (the BYO-phone column is gone).
   ============================================================ */
.wy {
  --wy-pu: 20%;            /* width of each value column (label column = 40%) */
  --wy-no: #B9B5AC;        /* light grey × */
  --wy-row: 68px;
  --wy-tab-top: 30px;      /* how far the tab rises above the table */
  padding-bottom: calc(var(--section-y) * 1.39);   /* design leaves ~178px under the legend */
}

/* ---------- header ---------- */
.wy-head { max-width: 780px; margin-bottom: 67px; }
.wy-title { font-size: clamp(38px, 4.8vw, 69px); line-height: 1.085; }   /* design: 69 / 74.88 */
.wy-title .serif { display: block; }
.wy-lede { max-width: 480px; margin-top: 28px; }

/* ---------- board (anchor for the annotation) ---------- */
.wy-board { position: relative; }

/* ---------- card + table ---------- */
.wy-card { padding: 14px; }
.wy-grid { position: relative; }

.wy-tab {
  position: absolute;
  z-index: 0;
  top: calc(-1 * var(--wy-tab-top));
  bottom: -8px;
  right: 3px;
  width: calc(var(--wy-pu) - 6px);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 120px),
    linear-gradient(180deg, #FF5A20, var(--signal) 45%, #F4480F);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(120, 30, 0, .18),
    0 2px 3px rgba(210, 58, 4, .18),
    0 22px 44px -18px rgba(255, 79, 20, .62);
  transform: translateY(10px);
  transition: transform 1.1s var(--ease-spring) .1s;
}
.wy.is-on .wy-tab { transform: none; }

.wy-table {
  position: relative;
  z-index: 1;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.wy-table .wy-col-label { width: 40%; }
.wy-table th, .wy-table td {
  padding: 0 12px;
  text-align: center;
  vertical-align: middle;
  font-weight: 400;
  /* hairline as a background so the row tint and the line share one shape */
  background: no-repeat bottom / 100% 1px linear-gradient(var(--line), var(--line));
  transition: background-color .3s var(--ease-out);
}
.wy-table tbody tr:last-child > * { background-image: none; }
.wy-table .wy-pu { color: #fff; background-image: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .2)); background-size: calc(100% - 6px) 1px; }   /* line stops at the tab's 3px inset instead of poking past it */

/* column headers */
.wy-table thead > tr > * { height: 112px; padding-bottom: 19px; vertical-align: bottom; background-image: linear-gradient(var(--line-2), var(--line-2)); }
.wy-table thead .wy-pu { background-image: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)); }
.wy-table thead .wy-corner { text-align: left; vertical-align: bottom; padding: 0 0 20px 18px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.wy-ch { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 84px; }
.wy-ch .ico { flex: none; width: 19px; height: 19px; color: var(--mute); margin-bottom: auto; } /* icons share one row; labels sit on the bottom line even when one wraps */
.wy-cn { font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.wy-cs { font: 500 10px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2); }
.wy-pu .wy-ch .ico { color: #fff; }
.wy-pu .wy-cn { color: #fff; font-size: 16px; }
.wy-pu .wy-cs { color: rgba(255, 255, 255, .78); }
.wy-pu .wy-cs { margin-top: 9px; }

/* scribble ellipse around "PhoneUse" */
.wy-cn--pu { position: relative; }
.wy-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 146px; height: 44px;
  transform: translate(-50%, -50%) rotate(-3deg);
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.wy-ring path, .wy-arrow path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.wy-ring path { transition: stroke-dashoffset .9s var(--ease-in-out) 1.2s; }
.wy.is-on .wy-ring path, .wy.is-on .wy-arrow path { stroke-dashoffset: 0; }

/* rows */
.wy-table tbody > tr > * { height: var(--wy-row); }
.wy-table tr > :first-child { border-radius: 14px 0 0 14px; }
.wy-table tbody th { text-align: left; padding-left: 18px; }
.wy-table tbody tr:is(:hover, :focus-within) > :not(.wy-pu) { background-color: var(--paper); }
.wy-table tbody th:focus-visible { outline-offset: -2px; }
.wy-rl { display: flex; align-items: baseline; gap: 14px; }
.wy-idx { flex: none; width: 20px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: var(--mute-2); font-variant-numeric: tabular-nums; }
.wy-lt {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -.01em;
  transition: transform .4s var(--ease-out);
}
.wy-note {
  position: absolute;
  left: 0; top: 100%;
  margin-top: 3px;
  width: max-content;
  max-width: 100%;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--mute);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.wy-table tbody tr:is(:hover, :focus-within) .wy-lt { transform: translateY(-9px); }
.wy-table tbody tr:is(:hover, :focus-within) .wy-note { opacity: 1; transform: none; }
.wy-table tbody tr:is(:hover, :focus-within) .wy-idx { color: var(--signal-ink); }

/* marks */
.wy-i { display: block; margin: auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wy-i--yes { color: var(--ink); }
.wy-i--no { color: var(--wy-no); width: 18px; height: 18px; stroke-width: 1.9; }
.wy-i--partly { color: var(--mute-2); }

/* PhoneUse checks: ring pops, white check draws, one row after another */
.wy-ok {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s var(--ease-out) calc(.55s + var(--i) * .14s), transform .55s var(--ease-spring) calc(.55s + var(--i) * .14s), background-color .3s;
}
.wy-ok svg { width: 20px; height: 20px; }
.wy-ok path {
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .45s var(--ease-out) calc(.7s + var(--i) * .14s);
}
.wy.is-on .wy-ok { opacity: 1; transform: none; }
.wy.is-on .wy-ok path { stroke-dashoffset: 0; }
.wy-table tbody tr:is(:hover, :focus-within) .wy-ok { background-color: rgba(255, 255, 255, .28); }

/* ---------- hand-written annotation ---------- */
.wy-anno {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 34px);
  right: calc(105px + var(--wy-pu) / 2);   /* arrow tip lands on the ring's left edge, whatever the column width */
  pointer-events: none;
}
.wy-anno-t {
  display: block;
  font-size: 23px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transform: rotate(-4deg);
  opacity: 0;
  translate: 0 6px;
  transition: opacity .5s var(--ease-out) 1.85s, translate .6s var(--ease-out) 1.85s;
}
.wy.is-on .wy-anno-t { opacity: 1; translate: 0 0; }
.wy-arrow {
  position: absolute;
  left: calc(100% + 2px);
  top: 2px;
  width: 50px; height: 120px;
  max-width: none;
  overflow: visible;
}
.wy-arrow path:first-child { transition: stroke-dashoffset .6s var(--ease-in-out) 2.15s; }
.wy-arrow path + path { transition: stroke-dashoffset .25s var(--ease-out) 2.7s; }

/* ---------- legend + hint ---------- */
.wy-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 26px;
  padding: 0 17px 0 32px;
  font: 400 11.5px/1.4 var(--f-mono);
  letter-spacing: .02em;
  color: var(--mute);
}
.wy-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.wy-legend li { display: inline-flex; align-items: center; gap: 8px; }
.wy-legend .wy-i { width: 15px; height: 15px; margin: 0; }
.wy-legend .wy-i--no { width: 13px; height: 13px; }
.wy-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--mute-2); }
.wy-hint .ico { width: 13px; height: 13px; }
@media (hover: none) { .wy-hint { display: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .wy { --wy-row: 64px; }
  .wy-idx { display: none; }
  .wy-table { font-size: 14px; }
  .wy-table th, .wy-table td { padding: 0 8px; }
  .wy-table tbody th, .wy-table thead .wy-corner { padding-left: 16px; }
  .wy-cn { font-size: 13.5px; }
  .wy-cs { display: none; }
  .wy-table thead > tr > * { height: 96px; }
  .wy-ch { height: 66px; }
}
@media (max-width: 900px) {
  .wy-note { font-size: 12.5px; }
  .wy-ring { width: calc(100% + 28px); height: 38px; }
}

/* ---------- phone: the same table, swiping sideways as one piece; notes always show (no hover) ---------- */
@media (max-width: 759.98px) {
  .wy-head { margin-bottom: 78px; }
  .wy-lede { margin-top: 20px; }
  /* edge-to-edge scroller; its top padding holds the annotation and the tab that rises above the card */
  .wy-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin: -64px calc(-1 * var(--gutter)) -20px;
    padding: 64px var(--gutter) 20px;
  }
  .wy-scroll-in { position: relative; width: max(100%, 540px); }
  .wy-table tbody th { padding-block: 12px; }
  .wy-note { position: static; display: block; width: auto; max-width: none; opacity: 1; transform: none; }
  .wy-table tbody tr:is(:hover, :focus-within) .wy-lt { transform: none; }

  .wy-anno { bottom: calc(100% + 16px); right: calc(84px + var(--wy-pu) / 2); }
  .wy-anno { opacity: 0; transition: opacity .4s var(--ease-out); }
  .wy-scroll.is-end .wy-anno { opacity: 1; }
  .wy-anno-t { font-size: 20px; }
  .wy-arrow { width: 45px; height: 108px; top: 0; }

  .wy-foot { padding-inline: 4px; margin-top: 20px; }
}
@media (max-width: 400px) { .wy-anno-t { font-size: 18px; } }

/* ---------- dark theme: night lighting. × recedes, rows lift instead of sink, the orange tab glows. ---------- */
:root[data-theme="dark"] .wy { --wy-no: #575A60; }
:root[data-theme="dark"] .wy-card { box-shadow: var(--card-edge), inset 0 1px 0 rgba(255, 255, 255, .045), var(--shadow-2); }
:root[data-theme="dark"] .wy-table tbody tr:is(:hover, :focus-within) > :not(.wy-pu) { background-color: rgba(255, 255, 255, .035); }
:root[data-theme="dark"] .wy-tab {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(120, 30, 0, .18),
    0 2px 3px rgba(0, 0, 0, .35),
    0 0 46px -12px rgba(255, 79, 20, .3),
    0 26px 56px -20px rgba(255, 79, 20, .7);
}

/* ===== build ===== */
/* ============================================================
   06 · Build — dark developer panel with a live bento
   ============================================================ */
.bd {
  --win: #0D0F11;
  --code-key: #E8E6DF;
  --code-str: #F3C78A;
  --code-mute: #686E75;
  --code-id: #AEB3B9;
  --bd-card: var(--graphite-2);
  padding-block: clamp(24px, 4vw, 56px);
}

/* ---------- panel ---------- */
.bd-panel {
  position: relative;
  isolation: isolate;
  margin-inline: clamp(12px, 1.2vw, 16px);
  padding-block: clamp(72px, 9vw, 132px) clamp(16px, 6vw, 86px);
  border-radius: 40px;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(143, 195, 230, .085), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(255, 79, 20, .05), transparent 70%),
    var(--graphite);
  overflow: hidden;
}
/* faint dot grid, strongest behind the header, fading under the bento */
.bd-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .11) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(110% 75% at 50% 0%, #000 25%, transparent 80%);
  mask: radial-gradient(110% 75% at 50% 0%, #000 25%, transparent 80%);
}
.bd-wrap { width: min(var(--wrap), 100% - 2 * clamp(16px, 4vw, 56px)); margin-inline: auto; }

/* the panel grows to full width as it scrolls in (native scroll timeline, no JS) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bd-panel {
      animation: bd-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    @keyframes bd-grow {
      from { transform: scale(.935); border-radius: 64px; }
      to { transform: none; border-radius: 40px; }
    }
    /* touch screens: transform only, so the compositor runs the grow (a radius in the keyframes repaints the whole
       tall panel on every scrolled frame); the corners keep the radius the grow ends on */
    @media (pointer: coarse) {
      .bd .bd-panel { animation-name: bd-grow-t; border-radius: 40px; }
      @keyframes bd-grow-t { from { transform: scale(.935); } }
    }
  }
}

/* ---------- header ---------- */
.bd-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(40px, 3.82vw, 55px);
}
.bd .eyebrow { color: var(--on-dark-mute); }
.bd-head-r { padding-top: 6px; }
/* Figma: 69px, -3.8 % tracking, 74.88 line-height — a touch looser than the global .t-h2 */
.bd-head .t-h2 { font-size: clamp(38px, 4.8vw, 69px); line-height: 1.085; letter-spacing: -.038em; color: #FDFDFB; }
.bd-docs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark);
  padding-bottom: 3px;
}
.bd-docs .ico { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.bd-docs:hover .ico { transform: translateX(3px); }

/* ---------- bento ---------- */
.bd-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 340px 300px 384px;
  grid-template-areas:
    "code code run"
    "code code chat"
    "clients fleet fleet";
}
.bd-code { grid-area: code; }
.bd-run { grid-area: run; }
.bd-chat { grid-area: chat; }
.bd-clients { grid-area: clients; }
.bd-fleet { grid-area: fleet; }

.bd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  /* no hard stroke: a hairline that fades from the top edge to nothing (Figma: white 8 % → 1.6 %, inside, over the card fill) */
  border: 1px solid transparent;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .025), transparent 70%) padding-box,
    linear-gradient(var(--bd-card), var(--bd-card)) padding-box,
    linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .016)) border-box var(--bd-card);
  border-radius: 22px;
  /* no spread: Figma drops the -40 spread on these unclipped frames, so the design shows the full halo that now outlines the card */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 30px 60px rgba(0, 0, 0, .7);
  transition: opacity .8s var(--ease-out) calc(var(--d, 0) * 90ms), transform .9s var(--ease-out) calc(var(--d, 0) * 90ms);
}
.bd-stage { position: relative; flex: 1; min-height: 0; padding: 16px 16px 0; }
.bd-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px 18px;
}
.bd-label { font: 500 17px/1.2 var(--f-head); letter-spacing: -.02em; color: var(--on-dark); }
.bd-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--on-dark-mute);
  transition: color .2s;
}
.bd-more:hover { color: var(--on-dark); }
.bd-more .ico { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.bd-more:hover .ico { transform: translateX(3px); }

/* shared dark "window" surface */
.bd-win, .bd-term {
  background: var(--win);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* ---------- 1 · code ---------- */
.bd-code .bd-stage { padding: 18px 18px 0; }
.bd-code::before { /* soft warm light behind the editor */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 45% at 85% 100%, rgba(255, 79, 20, .07), transparent 70%);
}
.bd-tape { position: absolute; z-index: 3; top: -18px; left: 45%; --rot: 3.5deg; font-size: 18px; }
.bd-win { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.bd-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--line-dark);
}
.bd-lights { display: flex; gap: 7px; }
.bd-lights i { width: 10px; height: 10px; border-radius: 50%; background: #2C3135; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.bd-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.bd-tabs button {
  height: 26px;
  padding: 0 13px;
  border-radius: 999px;
  font: 500 12.5px/1 var(--f-display);
  color: var(--on-dark-mute);
  transition: background-color .25s var(--ease-out), color .2s;
}
.bd-tabs button:hover { color: var(--on-dark); }
.bd-tabs button[aria-selected="true"] { background: var(--on-dark); color: var(--graphite); }
.bd-tabs button:focus-visible { outline-offset: 1px; }
.bd-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font: 500 12.5px/1 var(--f-display);
  color: var(--on-dark-mute);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: color .2s, box-shadow .2s, background-color .2s;
}
.bd-copy:hover { color: var(--on-dark); background: rgba(255, 255, 255, .05); }
.bd-copy .ico { width: 14px; height: 14px; }
.bd-copy.is-copied { color: var(--led); box-shadow: inset 0 0 0 1px rgba(47, 191, 99, .45); }

.bd-src {
  flex: 1;
  min-height: calc(12 * 1.7em + 40px);
  overflow: auto;
  overscroll-behavior-x: contain;
  padding: 20px 20px 20px 0;
  font: 400 13.5px/1.7 var(--f-mono);
  color: var(--code-id);
  scrollbar-width: thin;
  scrollbar-color: var(--graphite-4) transparent;
}
/* right-edge fade while code is hidden to the right; the scroll timeline is inactive (no fade) when nothing overflows */
@property --bd-fade { syntax: '<length>'; inherits: false; initial-value: 0px; }
@supports (animation-timeline: scroll()) {
  .bd-src {
    -webkit-mask: linear-gradient(to left, transparent, #000 var(--bd-fade));
    mask: linear-gradient(to left, transparent, #000 var(--bd-fade));
    animation: bd-fade linear both;
    animation-timeline: scroll(self inline);
  }
  @keyframes bd-fade { from { --bd-fade: 36px; } to { --bd-fade: 0px; } }
}
.bd-src:focus-visible { outline-offset: -2px; border-radius: 0; }
.bd-lines { min-width: max-content; }
.bd-row { display: flex; white-space: pre; }
.bd-n {
  position: sticky;
  left: 0;
  flex: none;
  width: 52px;
  padding-right: 20px;
  text-align: right;
  color: #3F454B;
  background: var(--win);
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.bd-t-s { color: var(--code-str); }
.bd-t-k { color: var(--code-key); }
.bd-t-p { color: var(--code-mute); }
.bd-t-c { color: var(--code-mute); }
.bd-t-kw { color: var(--cable); }
.bd-t-fn { color: #fff; }
.bd-caret {
  display: inline-block;
  width: .62em;
  height: 1.2em;
  margin-left: 1px;
  vertical-align: -.22em;
  background: var(--code-key);
  border-radius: 1px;
}
.bd-lines.is-idle .bd-caret { animation: bd-blink 1.05s steps(1) infinite; }
@keyframes bd-blink { 50% { opacity: 0; } }

.bd-tools {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 12px 10px;
  padding: 12px 4px 0;
  border-top: 1px dashed var(--line-dark);
}
.bd-tools-k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  font: 400 11px/1 var(--f-mono);
  letter-spacing: .02em;
  color: #5D6369;
  white-space: nowrap;
  transition: color .3s;
}
.bd-tools-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--graphite-4); transition: background-color .3s; }
.bd-tools ul { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-tools li {
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  font: 400 11.5px/1 var(--f-mono);
  color: var(--cable);
  background: rgba(143, 195, 230, .12);   /* filled, no outline (Figma's solid-blue chips hide their labels: kept readable) */
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.bd-tools .bd-more-tools { color: var(--on-dark-mute); background: none; box-shadow: inset 0 0 0 1px var(--line-dark); }
.bd-code.is-ready .bd-tools-k { color: var(--on-dark-mute); }
.bd-code.is-ready .bd-tools-k i { background: var(--led); }
.bd-code.is-ready .bd-tools li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms); }

.bd-prompt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 12px 12px;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 79, 20, .1);   /* no outline; Figma's solid-orange bar hides the text: kept as a wash */
  font: 400 13px/1.5 var(--f-mono);
  color: var(--signal-2);
  text-wrap: pretty;
}
.bd-chev { color: var(--signal); font-weight: 500; }
.bd-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--line-dark);
  font: 400 11px/1 var(--f-mono);
  letter-spacing: .02em;
  color: #5D6369;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bd-conn { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; transition: color .3s; }
.bd-conn i { width: 6px; height: 6px; border-radius: 50%; background: var(--graphite-4); transition: background-color .3s, box-shadow .4s; }
.bd-conn.is-on { color: var(--on-dark-mute); }
.bd-conn.is-on i { background: var(--led); box-shadow: 0 0 0 3px rgba(47, 191, 99, .16); }

/* ---------- 2 · run ---------- */
.bd-term {
  border-color: transparent;   /* Figma: the terminal lost its stroke; the editor keeps one */
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 16px 14px;
  font: 400 12px/1.72 var(--f-mono);
  color: var(--on-dark-mute);
}
.bd-term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 11.5px;
}
.bd-path { margin-right: auto; color: var(--on-dark); }
.bd-meter { width: 54px; height: 4px; border-radius: 2px; background: var(--graphite-3); overflow: hidden; }
.bd-meter i { display: block; height: 100%; width: 100%; background: var(--on-dark-mute); transform-origin: 0 50%; transform: scaleX(.1615); transition: transform .6s var(--ease-out); }
.bd-pct { font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.bd-ask { display: flex; gap: 10px; color: var(--on-dark); margin-bottom: 8px; }
.bd-ask span { color: var(--signal); }
.bd-log { transition: opacity .45s; }
.bd-log.is-out { opacity: 0; }
.bd-log li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 10px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.bd-log li.is-in { opacity: 1; transform: none; }
.bd-log li > div { display: flex; flex-wrap: wrap; column-gap: 10px; min-width: 0; }
.bd-mk { font-style: normal; color: var(--code-mute); text-align: center; }
.bd-tool { color: var(--cable); font-weight: 400; }
.bd-res { color: var(--on-dark); }
.bd-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.bd-shimmer {
  background: linear-gradient(90deg, var(--code-mute) 35%, var(--on-dark) 50%, var(--code-mute) 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bd-shim 1.6s linear infinite;
}
.bd-shimmer.is-done { animation: none; background: none; color: var(--code-mute); }
@keyframes bd-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
.bd-prog { color: var(--on-dark); flex: 1; display: flex; align-items: baseline; gap: 8px; }
.bd-lead {
  flex: 1;
  min-width: 12px;
  height: 1px;
  align-self: center;
  margin-top: 2px;
  background: radial-gradient(circle, var(--code-mute) .8px, transparent 1.1px) 0 50% / 5px 2px repeat-x;
  height: 2px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.5s linear;
}
.is-go .bd-lead { clip-path: inset(0); }
.bd-ok { color: var(--led); }
.bd-done { color: var(--on-dark-mute); font-variant-numeric: tabular-nums; }
.is-finished .bd-done { color: var(--led); }

/* ---------- 3 · chat ---------- */
.bd-chat .bd-stage { display: flex; flex-direction: column; gap: 10px; }
.bd-msgs {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 32%);
  mask: linear-gradient(to bottom, transparent, #000 32%);
}
.bd-list { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; }
.bd-msg {
  max-width: 86%;
  padding: 9px 13px 10px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.42;
  letter-spacing: -.005em;
  animation: bd-pop .45s var(--ease-out) both;
}
.bd-msg.is-me { align-self: flex-end; background: var(--graphite-3); color: var(--on-dark); border-bottom-right-radius: 6px; }
.bd-msg.is-ai { align-self: flex-start; background: #121416; color: #C9CCD0; box-shadow: inset 0 0 0 1px var(--line-dark); border-bottom-left-radius: 6px; }
@keyframes bd-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.bd-dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.bd-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--on-dark-mute); animation: bd-bounce 1s var(--ease-in-out) infinite; }
.bd-dots i:nth-child(2) { animation-delay: .15s; }
.bd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bd-bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.bd-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 5px 0 15px;
  border-radius: 999px;
  background: var(--win);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 13.5px;
  color: var(--on-dark);
  white-space: nowrap;
  overflow: hidden;
}
.bd-draft { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.bd-draft:not(:empty) { flex: 1; }
.bd-draft.is-long { justify-content: flex-end; -webkit-mask: linear-gradient(to right, transparent, #000 22px); mask: linear-gradient(to right, transparent, #000 22px); }
.bd-draft:not(:empty)::after { content: ''; flex: none; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--signal); }
.bd-ph { color: #5D6268; }
.bd-draft:not(:empty) + .bd-ph { display: none; }
.bd-send {
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--graphite-3);
  color: var(--on-dark-mute);
  transition: background-color .2s, color .2s;
}
.bd-send .ico { width: 15px; height: 15px; }
.bd-input.is-typing .bd-send { background: var(--on-dark); color: var(--graphite); }

/* ---------- 4 · clients ---------- */
.bd-clients .bd-stage { padding: 22px 22px 0; display: flex; flex-direction: column; }
.bd-ctitle { font: 500 18px/1.25 var(--f-head); letter-spacing: -.02em; color: var(--on-dark); margin-bottom: 14px; }
.bd-clist { flex: 1; display: flex; flex-direction: column; border-bottom: 1px solid var(--line-dark); }
.bd-clist li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  border-top: 1px solid var(--line-dark);
  font-size: 14.5px;
}
/* real app tile with a presence dot on its corner */
.bd-cico { position: relative; display: inline-grid; flex: none; }
.bd-cico .app, .bd-api { --s: 26px; transition: filter .4s, opacity .4s; }
.bd-cico .app { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3); }
.bd-api {
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 23%;
  background: var(--graphite-4);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.bd-api .ico { width: 15px; height: 15px; }
.bd-sdot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 2px var(--bd-card);
  transition: background-color .35s;
}
.bd-cname { color: var(--on-dark); font-weight: 500; letter-spacing: -.01em; transition: color .35s; }
.bd-ctype { margin-left: auto; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-mute); }
.bd-lat { width: 40px; text-align: right; font: 400 12px/1 var(--f-mono); color: var(--on-dark); font-variant-numeric: tabular-nums; transition: opacity .35s; }
.bd-clist li.is-off .bd-sdot { background: var(--graphite-4); }
.bd-clist li.is-off .app, .bd-clist li.is-off .bd-api { filter: grayscale(1); opacity: .4; }
.bd-clist li.is-off .bd-cname { color: var(--on-dark-mute); }
.bd-clist li.is-off .bd-lat { opacity: 0; }

/* ---------- 5 · fleet ---------- */
.bd-fleet .bd-stage { padding: 0; display: flex; }
.bd-globe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.bd-fmeta { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 26px 6px 22px; pointer-events: none; }
.bd-count { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--on-dark-mute); }
.bd-count b {
  font: 600 40px/1 var(--f-display);
  letter-spacing: -.04em;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.bd-legend { display: grid; grid-template-columns: auto auto auto auto; align-items: center; gap: 12px 0; width: max-content; max-width: 100%; margin-top: 20px; font: 400 11.5px/1.2 var(--f-mono); letter-spacing: .03em; color: var(--on-dark-mute); }
.bd-legend li { display: contents; }
.bd-legend i { width: 7px; height: 7px; border-radius: 50%; margin-right: 10px; }
.bd-legend b { font-weight: 400; color: var(--on-dark); font-variant-numeric: tabular-nums; padding-inline: 12px 16px; text-align: right; }
.bd-lk { color: var(--on-dark); }
.bd-legend .is-cloud { background: var(--cable); box-shadow: 0 0 8px rgba(143, 195, 230, .7); }
.bd-legend .is-real { background: var(--signal); box-shadow: 0 0 8px rgba(255, 79, 20, .7); }

/* ---------- dark theme: the panel is already dark, so lift it off the near-black page ---------- */
:root[data-theme="dark"] .bd { --bd-card: #1C1F23; }
:root[data-theme="dark"] .bd-panel {
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(143, 195, 230, .11), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(255, 79, 20, .06), transparent 70%),
    #16181B;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .075), inset 0 1px 0 rgba(255, 255, 255, .06), 0 60px 140px -70px rgba(143, 195, 230, .16);
}
:root[data-theme="dark"] .bd-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .bd-tape { box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 18px -8px rgba(0, 0, 0, .75); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 368px 384px;
    grid-template-areas:
      "code code"
      "run chat"
      "clients fleet";
  }
  .bd-code .bd-stage { min-height: 470px; }
  .bd-ld { display: none; }
  .bd-legend { grid-template-columns: auto auto auto; }
}
@media (max-width: 900px) {
  .bd-head { grid-template-columns: 1fr; align-items: start; }
  .bd-head .t-h2 { max-width: 12ch; }
  /* touch-size controls */
  .bd-tabs button, .bd-copy, .bd-more { min-height: 40px; }
  .bd-foot { padding-block: 4px 6px; }
  .bd-docs { position: relative; }
  .bd-docs::after { content: ''; position: absolute; inset: -7px -4px; }
}
@media (max-width: 720px) {
  .bd-panel { border-radius: 28px; }
  .bd-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "code" "run" "chat" "clients" "fleet";
  }
  .bd-run { height: 392px; }
  .bd-chat { height: 360px; }
  .bd-code .bd-stage { min-height: 0; padding: 14px 12px 0; }
  .bd-src { font-size: 12px; min-height: calc(12 * 1.7em + 32px); padding-block: 16px; }
  .bd-n { width: 38px; padding-right: 14px; }
  .bd-lights { display: none; }
  .bd-bar { padding-left: 10px; gap: 10px; }
  .bd-tabs button { padding: 0 11px; }
  .bd-prompt { font-size: 12px; margin: 0 10px 10px; padding: 11px 13px; }
  .bd-term { font-size: 11.5px; }
  .bd-status { gap: 12px; }
  .bd-status > span:nth-child(3) { display: none; }
  .bd-tools { gap: 10px; margin-inline: 10px; }
  .bd-tools ul { flex-wrap: nowrap; overflow: hidden; -webkit-mask: linear-gradient(to right, #000 75%, transparent); mask: linear-gradient(to right, #000 75%, transparent); }
  .bd-tools li { flex: none; }
  .bd-fleet { height: 480px; }
  .bd-stage { padding: 12px 12px 0; }
  .bd-clients .bd-stage { padding: 20px 20px 0; }
  .bd-foot { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-shimmer { animation: none; background: none; color: var(--code-mute); }
}
/* touch screens: the shimmer is a background sweep, which only the main thread can paint; 15 steps a second instead
   of every frame (the soft band still reads as a sweep) */
@media (pointer: coarse) {
  .bd-shimmer { animation-timing-function: steps(24); }
}

/* ===== usecases ===== */
/* ============================================================
   07 · Built for — use-case bento   (.uc-)
   ============================================================ */
.uc {
  /* the redesign tightens this section (Figma 55 / 81.5 at 1440, was 128 / 128) */
  padding-block: clamp(44px, 3.8vw, 55px) clamp(64px, 5.66vw, 81.5px);
  --uc-well: #F6F5F1;
  --uc-green: #1C8545;          /* LED green, darkened for text on light */
  --uc-ios: #0A84FF;
  --uc-ios-grey: #E9E9EB;
}

/* ---------- header ---------- */
.uc-head { margin-bottom: clamp(40px, 5vw, 64px); }
.uc-head .t-h2 { max-width: 14.5em; font-size: clamp(38px, 4.8vw, 69px); line-height: 1.085; }   /* Figma: 69 / 74.88 */
.uc-lede { max-width: 480px; margin-top: 24px; }

/* ---------- grid ---------- */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.uc-card--social { grid-column: span 7; }
.uc-card--imsg { grid-column: span 5; }
.uc-card--sms, .uc-card--apps, .uc-card--qa { grid-column: span 4; }
.uc-card--sandbox { grid-column: span 12; }

/* ---------- card ---------- */
.uc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  /* keep the reveal transitions from base.css, add the hover lift on `translate` */
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms), calc(var(--d, 0) * 80ms), 0s, 0s;
}
.uc-card:hover { translate: 0 -2px; box-shadow: var(--card-edge), var(--shadow-2); }
.uc-card.card--dark:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 36px 70px -30px rgba(0, 0, 0, .6); }

.uc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.uc-tile { transition: rotate .45s var(--ease-spring); }
.uc-card:hover .uc-tile { rotate: -8deg; }
.card--dark .uc-tile { background: var(--graphite-3); color: var(--signal); box-shadow: inset 0 0 0 1px var(--line-dark); }

.uc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.uc-tag .uc-k + .uc-k { margin-left: -3px; }
.card--dark .uc-tag { color: var(--on-dark-mute); }
.uc-k { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.uc-k--real { background: var(--signal); }
.uc-k--cloud { background: var(--cable-ink); }

.uc-card .t-h3 { margin-bottom: 8px; }
.uc-card .t-body { max-width: 46ch; text-wrap: pretty; }

/* ---------- prompt chip ---------- */
.uc-prompt {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--paper-2);
  font: 400 12px/1.45 var(--f-mono);
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.uc-prompt > span { flex: 1; min-width: 0; text-wrap: balance; }
.card--dark .uc-prompt { background: var(--graphite-3); color: var(--on-dark); }
.uc-spark { width: 14px; height: 14px; flex: none; fill: var(--signal); }
.uc-enter { width: 14px; height: 14px; color: var(--mute-2); opacity: .8; transition: translate .3s var(--ease-out), color .2s; }
.card--dark .uc-enter { color: var(--on-dark-mute); }
.uc-card:hover .uc-enter { translate: -2px 0; color: var(--signal); }

/* ---------- visual well ---------- */
.uc-vis {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  min-height: 204px;
  margin: 22px 0 16px;
  border-radius: 16px;
  background: var(--uc-well);
  overflow: hidden;
  isolation: isolate;
}
.uc-vis--dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(18, 19, 20, .085) 1px, transparent 1.5px);
  background-size: 14px 14px;
  background-position: 7px 7px;
}
.card--dark .uc-vis { background-color: var(--graphite); }
.uc-stage { position: relative; min-width: 0; transition: opacity .45s var(--ease-out); }
.uc-vis.is-fade .uc-stage { opacity: 0; }
.uc-vis.is-snap .uc-stage, .uc-vis.is-snap .uc-stage *, .uc-vis.is-snap .uc-stage *::before, .uc-vis.is-snap .uc-stage *::after { transition: none !important; animation: none !important; }

/* shared green check svg */
.uc-done svg, .uc-verified svg, .uc-px-ok svg {
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================
   1 · Social — Reel + comment thread
   ========================================================= */
.uc-social .uc-stage { display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 14px; }
.uc-reel {
  position: relative;
  flex: none;
  width: 100px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #1A1C24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 30px -14px rgba(0, 0, 0, .8);
}
.uc-reel-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.uc-reel-label { position: absolute; top: 8px; left: 9px; display: flex; align-items: center; gap: 4px; font: 600 9.5px/1 var(--f-display); color: #fff; letter-spacing: -.01em; }
.uc-reel-label svg { width: 10px; height: 10px; fill: currentColor; }
.uc-reel-side { position: absolute; right: 7px; bottom: 30px; display: flex; flex-direction: column; gap: 9px; }
.uc-reel-side svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.uc-reel-side svg.is-fill { fill: #fff; stroke: none; }
.uc-reel-who {
  position: absolute; left: 8px; bottom: 10px;
  display: flex; flex-direction: column; gap: 3px;
  font: 600 9.5px/1 var(--f-display); color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.uc-reel-who span { display: flex; align-items: center; gap: 3px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.uc-reel-who svg { width: 8px; height: 8px; fill: #fff; }
.uc-reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .22); }
.uc-reel-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(.38); }
.uc-card.is-live .uc-reel-bar i { animation: uc-reelbar 9s linear infinite; }
@keyframes uc-reelbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.uc-thread { flex: 1; min-width: 0; }
.uc-thread-head {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 0 8px 8px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-mute);
}
.uc-thread-title { display: inline-flex; align-items: center; gap: 8px; }
.uc-srcs { display: inline-flex; gap: 3px; margin-block: -3px; }
.uc-srcs .app { --s: 16px; }
.uc-count { font-variant-numeric: tabular-nums; transition: color .3s; white-space: nowrap; }
.uc-count b { font-weight: 500; color: var(--on-dark); }
.uc-social.is-all .uc-count, .uc-social.is-all .uc-count b { color: var(--led); }
.uc-cmts { display: flex; flex-direction: column; gap: 2px; }
.uc-cmt {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 0 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background-color .35s;
}
.uc-cmt.is-active { background: rgba(255, 255, 255, .055); }
.uc-av {
  align-self: start;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--av); color: var(--graphite);
  font: 650 10px/22px var(--f-display); text-align: center;
}
.uc-cmt-main { min-width: 0; }
.uc-cmt-text, .uc-reply {
  font-size: 12.5px; line-height: 17px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uc-cmt-text { color: rgba(242, 241, 236, .82); }
.uc-cmt-text b { font-weight: 600; color: var(--on-dark); margin-right: 6px; }
.uc-reply {
  margin-top: 1px;
  color: var(--on-dark-mute);
  opacity: 0;
  transition: opacity .25s;
}
.uc-reply svg { display: inline-block; vertical-align: -2px; margin-right: 5px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.uc-reply b { margin-right: 5px; font-weight: 600; color: var(--signal-2); }
.uc-reply-text { color: rgba(242, 241, 236, .72); }
.uc-ghost { color: transparent; }
/* zero-width caret so typing never reflows the line */
.uc-caret { display: inline-block; width: 0; height: 12px; margin-left: 1px; vertical-align: -2px; border-left: 1.5px solid var(--signal-2); margin-right: -2.5px; opacity: 0; }
.uc-cmt.is-typing .uc-reply, .uc-cmt.is-replied .uc-reply { opacity: 1; }
.uc-cmt.is-typing .uc-caret { opacity: 1; }
.uc-done {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px 0 8px;
  border-radius: 999px;
  background: rgba(47, 191, 99, .12);
  font: 500 10px/1 var(--f-mono); color: var(--led);
  white-space: nowrap;
  opacity: 0; transform: translateY(3px) scale(.85);
  transition: opacity .3s, transform .45s var(--ease-spring);
}
.uc-done svg { width: 10px; height: 10px; }
.uc-cmt.is-replied .uc-done { opacity: 1; transform: none; }

/* =========================================================
   2 · iMessage
   ========================================================= */
/* white well on a white card: the one well that keeps its hairline */
.uc-imsg { --uc-well: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.uc-imsg .uc-stage { display: flex; flex-direction: column; padding: 12px 18px 14px; }
.uc-im-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uc-im-who { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.uc-im-av {
  position: relative;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(#A9ADB6, #848891); color: #fff;
  font: 600 10px/22px var(--f-display); text-align: center;
}
.uc-im-av .app { --s: 12px; position: absolute; right: -4px; bottom: -3px; box-shadow: 0 0 0 1.5px var(--uc-well); }
.uc-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: 7px;
  background: var(--paper-2);
  font: 500 10.5px/1 var(--f-mono); color: var(--mute);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.uc-trigger svg { width: 11px; height: 11px; fill: currentColor; }
.uc-imsg.is-trig .uc-trigger { background: var(--signal-wash); color: var(--signal-ink); box-shadow: 0 0 0 3px rgba(255, 79, 20, .08); }
.uc-im-past { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; }
.uc-im-past .uc-im-meta { margin-bottom: 6px; }
.uc-im-meta { margin: 10px 0 8px; text-align: center; font: 500 10px/1 var(--f-display); color: #8E8E93; letter-spacing: .01em; }

.uc-bub {
  position: relative;
  max-width: 76%;
  padding: 7px 12px 8px;
  border-radius: 17px;
  font-size: 13px; line-height: 1.3; letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(8px) scale(.94);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-spring);
}
.uc-bub::before, .uc-bub::after { content: ''; position: absolute; bottom: 0; height: 18px; }
.uc-bub--me { align-self: flex-end; background: var(--uc-ios); color: #fff; transform-origin: 100% 100%; }
.uc-bub--me::before { right: -7px; width: 20px; background: var(--uc-ios); border-bottom-left-radius: 16px 14px; }
.uc-bub--me::after { right: -10px; width: 10px; background: var(--uc-well); border-bottom-left-radius: 10px; }
.uc-bub--them { align-self: flex-start; background: var(--uc-ios-grey); color: #111; transform-origin: 0 100%; }
.uc-bub--them::before { left: -7px; width: 20px; background: var(--uc-ios-grey); border-bottom-right-radius: 16px 14px; }
.uc-bub--them::after { left: -10px; width: 10px; background: var(--uc-well); border-bottom-right-radius: 10px; }
.uc-imsg.is-sent .uc-bub--me, .uc-bub--past { opacity: 1; transform: none; }
.uc-bub--past { filter: saturate(.55) brightness(1.08); }

.uc-im-status { position: relative; align-self: flex-end; height: 12px; width: 70px; margin: 4px 2px 8px 0; font: 500 10px/12px var(--f-display); color: #8E8E93; text-align: right; }
.uc-im-status > span { position: absolute; right: 0; top: 0; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.uc-im-status b { font-weight: 600; }
.uc-imsg.is-delivered .uc-im-del { opacity: 1; }
.uc-imsg.is-read .uc-im-del { opacity: 0; }
.uc-imsg.is-read .uc-im-read { opacity: 1; }

.uc-im-them { display: grid; justify-items: start; }
.uc-im-them > * { grid-area: 1 / 1; }
.uc-im-dots { display: flex; gap: 4px; align-items: center; height: 32px; padding: 0 13px; }
.uc-im-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9A9AA0; }
.uc-card.is-live .uc-im-dots i { animation: uc-dots 1.1s ease-in-out infinite; }
.uc-im-dots i:nth-child(2) { animation-delay: .15s !important; }
.uc-im-dots i:nth-child(3) { animation-delay: .3s !important; }
@keyframes uc-dots { 0%, 60%, 100% { opacity: .45; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.uc-imsg.is-typing .uc-im-dots { opacity: 1; transform: none; }
.uc-imsg.is-replied .uc-im-dots { opacity: 0; transform: scale(.9); transition-duration: .15s; }
.uc-imsg.is-replied .uc-im-reply { opacity: 1; transform: none; }

/* =========================================================
   3 · SMS and 2FA
   ========================================================= */
.uc-sms .uc-stage { display: grid; place-items: center; padding: 76px 14px 12px; }
.uc-notif {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 11px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line), 0 12px 26px -14px rgba(18, 19, 20, .4);
  opacity: 0;
  transform: translateY(calc(-100% - 16px));
  transition: transform .7s var(--ease-spring), opacity .3s;
}
.uc-sms.is-notif .uc-notif { opacity: 1; transform: none; }
.uc-notif-app { --s: 26px; }
.uc-notif-body { flex: 1; min-width: 0; }
.uc-notif-top { display: flex; justify-content: space-between; font: 600 11px/15px var(--f-display); color: var(--ink); }   /* Figma rows: 15 + 17 */
.uc-notif-top span { font-weight: 400; color: var(--mute-2); }
.uc-notif-msg { font-size: 12px; line-height: 17px; color: var(--ink-2); text-wrap: pretty; }
.uc-notif-msg b { font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.uc-otp { display: flex; flex-direction: column; align-items: center; }
.uc-otp-label { margin-bottom: 9px; font: 500 10.5px/1 var(--f-mono); color: var(--mute); letter-spacing: .01em; }
.uc-otp-boxes { display: flex; gap: 6px; }
.uc-otp-box {
  position: relative;
  width: 34px; height: 42px;
  border-radius: 9px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(18, 19, 20, .04);
  overflow: hidden;
  transition: box-shadow .2s;
}
.uc-otp-box:nth-child(3) { margin-right: 6px; }
.uc-otp-box.is-focus { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 3px rgba(18, 19, 20, .06); }
.uc-otp-box.is-focus:not(.is-filled)::after {
  content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 1.5px; margin-left: -.75px;
  background: var(--ink);
}
.uc-card.is-live .uc-otp-box.is-focus::after { animation: uc-blink 1s steps(1) infinite; }
@keyframes uc-blink { 50% { opacity: 0; } }
.uc-otp-reel { display: flex; flex-direction: column; transition: transform .6s var(--ease-out); }
.uc-otp-reel i { display: grid; place-items: center; height: 42px; flex: none; font: 600 19px/1 var(--f-display); font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink); }
.uc-sms.is-verified .uc-otp-box { box-shadow: inset 0 0 0 1.5px var(--led); }
.uc-verified {
  display: flex; align-items: center; gap: 5px;
  height: 16px; margin-top: 11px;
  font: 600 12px/1 var(--f-display); color: var(--uc-green);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .45s var(--ease-spring);
}
.uc-verified svg { width: 13px; height: 13px; padding: 2px; border-radius: 50%; background: var(--led); color: #fff; box-sizing: content-box; }
.uc-sms.is-verified .uc-verified { opacity: 1; transform: none; }

/* =========================================================
   4 · Mobile-only apps — food reorder
   ========================================================= */
.uc-food .uc-stage { display: grid; place-items: center; padding: 14px; }
.uc-order {
  width: 100%; max-width: 300px;
  padding: 12px 12px 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(18, 19, 20, .35);
}
.uc-order-head { display: flex; align-items: center; gap: 9px; min-height: 30px; margin-bottom: 8px; }
.uc-order-logo { position: relative; width: 28px; height: 28px; flex: none; border-radius: 8px; background: #F3E2C4; color: #7A4A12; font: 700 10px/28px var(--f-display); text-align: center; letter-spacing: .02em; }
.uc-order-logo .app { --s: 16px; position: absolute; right: -6px; bottom: -6px; box-shadow: 0 0 0 2px var(--card); }
.uc-order-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uc-order-name b { font: 600 12.5px/1.15 var(--f-display); letter-spacing: -.01em; }
.uc-order-name span { padding-block: 2px; margin-block: -2px; font-size: 10.5px; line-height: 1.2; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-order-eta {
  flex: none; height: 22px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--led-wash); color: var(--uc-green);
  font: 500 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums;
  opacity: 0; transform: scale(.85);
  transition: opacity .3s, transform .45s var(--ease-spring);
}
.uc-order-eta b { font-weight: 600; }
.uc-food.is-ordered .uc-order-eta { opacity: 1; transform: none; }
.uc-order-items { border-top: 1px dashed var(--line-2); padding-top: 6px; }
.uc-order-items li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; align-items: center; gap: 8px; height: 22px; font-size: 12px; color: var(--ink-2); }
.uc-order-items li > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-order-items em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--mute); }
.uc-order-items li > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.uc-veg { position: relative; width: 10px; height: 10px; border: 1.25px solid var(--uc-green); border-radius: 2px; }
.uc-veg::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--uc-green); }

.uc-order-act { position: relative; height: 40px; margin-top: 8px; }
.uc-order-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--ink); color: var(--paper);
  font: 600 12.5px/1 var(--f-display); letter-spacing: -.005em; font-variant-numeric: tabular-nums;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.uc-food.is-tap .uc-order-btn { animation: uc-press .36s var(--ease-out); }
@keyframes uc-press { 45% { transform: scale(.95); } }
.uc-food.is-ordered .uc-order-btn { opacity: 0; transform: scale(.97); pointer-events: none; }
.uc-tap { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; pointer-events: none; }
.uc-tap::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--signal); }
.uc-food.is-tap .uc-tap { animation: uc-tap .7s var(--ease-out) forwards; }
@keyframes uc-tap { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

.uc-track {
  --p: 0;
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 4px;
  opacity: 0;
  transition: opacity .35s .12s;
}
.uc-food.is-ordered .uc-track { opacity: 1; }
.uc-track::before, .uc-track::after { content: ''; position: absolute; top: 9px; left: 16.67%; right: 16.67%; height: 2px; border-radius: 2px; background: var(--paper-3); }
.uc-track::after { background: var(--led); transform-origin: left; transform: scaleX(var(--p)); transition: transform .7s var(--ease-in-out); }
.uc-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 10.5px/1 var(--f-display); color: var(--mute-2); white-space: nowrap; transition: color .3s; }
.uc-track li::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
  background: var(--card); border: 2px solid var(--paper-3);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.uc-track li.is-done { color: var(--ink-2); }
.uc-track li.is-done::before { background: var(--led); border-color: var(--led); }
.uc-track li.is-now { color: var(--ink); }
.uc-track li.is-now::before { border-color: var(--led); box-shadow: 0 0 0 4px rgba(47, 191, 99, .16); }

/* =========================================================
   5 · Testing and QA — 40-device sweep
   ========================================================= */
.uc-qa .uc-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.uc-qa-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px 6px; width: min(100%, 268px); }
.uc-dev {
  position: relative;
  aspect-ratio: 10 / 17;
  border-radius: 4px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.25px var(--line-2);
  transition: background-color .3s, box-shadow .3s;
}
.uc-dev::before { content: ''; position: absolute; top: 3px; left: 50%; width: 5px; height: 1.5px; margin-left: -2.5px; border-radius: 1px; background: var(--line-2); }
/* status LED */
.uc-dev::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--led);
  opacity: 0; transform: scale(.2);
  transition: opacity .2s, transform .45s var(--ease-spring), background-color .2s;
}
.uc-dev.is-run:not(.is-pass, .is-flaky) { background: var(--cable-wash); box-shadow: inset 0 0 0 1.25px rgba(42, 121, 176, .35); transition-delay: var(--w, 0s); }
.uc-dev.is-pass { background: var(--led-wash); box-shadow: inset 0 0 0 1.25px rgba(47, 191, 99, .5); }
.uc-dev.is-flaky { background: var(--signal-wash); box-shadow: inset 0 0 0 1.25px rgba(255, 79, 20, .55); }
.uc-dev.is-pass::after, .uc-dev.is-flaky::after { opacity: 1; transform: none; }
.uc-dev.is-flaky::after { background: var(--signal); }
.uc-dev.is-retry::after { animation: uc-retry .3s ease-in-out 3 alternate; }
@keyframes uc-retry { to { opacity: .2; transform: scale(.6); } }
.uc-qa-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 268px); height: 28px; }
.uc-qa-meta { font: 500 11.5px/1 var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.uc-qa-meta b { font-weight: 500; color: var(--ink); }
.uc-qa.is-done .uc-qa-meta b { color: var(--uc-green); }
.uc-stamp {
  --rot: -9deg;
  --ink-c: var(--uc-green);
  padding: 4px 9px 3px;
  border-width: 2px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
}
.uc-stamp.is-stamped { opacity: 1; }

/* =========================================================
   6 · Agent sandboxes — wide strip of Pixels
   ========================================================= */
.uc-card--sandbox { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 32px; padding: 24px; }
.uc-sb-text { display: flex; flex-direction: column; padding: 4px 0 0; }
.uc-sb-text .uc-prompt { margin-top: auto; }
.uc-sb-text .t-body { margin-bottom: 28px; }
/* wrapper carries position + (dark) shadow: the tape's own mask would clip a shadow on itself */
.uc-sb-tape { position: absolute; z-index: 2; top: -15px; right: 72px; display: flex; }
.uc-sb-tape .tape { --rot: 2.5deg; font-size: 17px; }
.uc-sb { margin: 0; min-height: 0; }
.uc-sb .uc-stage { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 26px 28px 18px; }
.uc-sb-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 16px; }
.uc-px { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.uc-px-body {
  position: relative;
  width: 100%; max-width: 66px;
  aspect-ratio: 9 / 19;
  padding: 3px;
  border-radius: 11px;
  background: var(--card);
  box-shadow: 0 0 0 1.5px var(--ink-2), 0 10px 18px -12px rgba(18, 19, 20, .35);
}
.uc-px-body::after { content: ''; position: absolute; right: -3.5px; top: 24%; width: 2px; height: 16%; border-radius: 2px; background: var(--ink-2); }
.uc-px-screen { position: relative; height: 100%; border-radius: 8px; overflow: hidden; background: #E6E3DA; }
.uc-px-screen::before { content: ''; position: absolute; z-index: 4; top: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink-2); }
.uc-px-dirty { position: absolute; inset: 0; padding: 14px 5px 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: start; }
.uc-px-dirty i { aspect-ratio: 1; border-radius: 3px; }
.uc-px-note, .uc-px-dlg { position: absolute; left: 4px; right: 4px; border-radius: 4px; background: #fff; box-shadow: 0 2px 6px rgba(18, 19, 20, .15); }
.uc-px-note { top: 12px; height: 12px; }
.uc-px-note::before { content: ''; position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--signal); }
.uc-px-note::after { content: ''; position: absolute; left: 11px; right: 5px; top: 5px; height: 2px; border-radius: 1px; background: var(--paper-3); }
.uc-px-dlg { top: 42%; height: 26px; }
.uc-px-dlg::before { content: ''; position: absolute; left: 5px; right: 9px; top: 6px; height: 2px; border-radius: 1px; background: #D9534F; opacity: .8; }
.uc-px-dlg::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 12px; height: 5px; border-radius: 2px; background: var(--paper-3); }
.uc-px-clean {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(#FDFDFB, #F4F3EE);
  clip-path: inset(0 0 100% 0);
}
.uc-px.is-wiping .uc-px-clean { clip-path: inset(0 0 0 0); transition: clip-path .8s linear; }
.uc-px-ok { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--led); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .5s var(--ease-spring); }
.uc-px-ok svg { width: 10px; height: 10px; }
.uc-px-clean em { font: 500 8.5px/1 var(--f-mono); font-style: normal; color: var(--mute); letter-spacing: .04em; opacity: 0; transition: opacity .3s .1s; }
.uc-px.is-clean .uc-px-ok { opacity: 1; transform: none; }
.uc-px.is-clean .uc-px-clean em { opacity: 1; }
.uc-px-scan {
  position: absolute; inset: 0; z-index: 3;
  border-bottom: 1.5px solid var(--cable-ink);
  background: linear-gradient(to bottom, rgba(143, 195, 230, 0) 55%, rgba(143, 195, 230, .55));
  transform: translateY(-101%);
  pointer-events: none;
}
.uc-px.is-wiping .uc-px-scan { animation: uc-scan .8s linear forwards; }
@keyframes uc-scan { 0% { transform: translateY(-101%); opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.uc-px-id { font: 500 9.5px/1 var(--f-mono); color: var(--mute-2); letter-spacing: .03em; transition: color .3s; }
.uc-px.is-clean .uc-px-id { color: var(--ink-2); }
.uc-sb-status { display: flex; align-items: center; justify-content: center; gap: 9px; font: 500 11.5px/1.3 var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums; text-align: center; }
.uc-sb-status b { font-weight: 500; color: var(--ink); }
.uc-sb-dot { background: var(--mute-2); transition: background-color .3s; }
.uc-sb-dot.dot--live { background: var(--cable-ink); animation: none; }
.uc-card.is-live .uc-sb-dot.dot--live { animation: uc-pulse 1.4s ease-in-out infinite; }
@keyframes uc-pulse { 50% { opacity: .35; } }
.uc-sb.is-done .uc-sb-dot { background: var(--led); }
.uc-sb.is-done .uc-sb-state { color: var(--uc-green); }

/* ---------- dark theme: night lighting, same objects ---------- */
:root[data-theme="dark"] .uc {
  --uc-well: #101114;
  --uc-green: #3FCF75;
  --uc-ios-grey: #2C2C2E;
}
/* sheets inside wells (order card, OTP boxes, device tiles) sit a step above the well */
:root[data-theme="dark"] .uc-vis { --card: #1B1D21; }
:root[data-theme="dark"] .uc-vis--dots { background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px); }
/* the one graphite card: lifted tone, hairline and a top light so it still reads as the feature tile */
:root[data-theme="dark"] .uc-card--social { background: linear-gradient(#212429, #1A1C20 42%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .85); }
:root[data-theme="dark"] .uc-card--social:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(255, 255, 255, .17), 0 36px 70px -30px rgba(0, 0, 0, .9); }
:root[data-theme="dark"] .uc-social { background-color: #0F1013; }
/* iMessage: iOS dark mode */
:root[data-theme="dark"] .uc-imsg { --uc-well: #000; }
:root[data-theme="dark"] .uc-bub--them { color: #fff; }
:root[data-theme="dark"] .uc-bub--past { filter: saturate(.55) brightness(.78); }
:root[data-theme="dark"] .uc-im-av { background: linear-gradient(#8C9099, #5E626A); }
/* SMS: dark glass notification */
:root[data-theme="dark"] .uc-notif { background: rgba(40, 42, 47, .86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--line-2), 0 16px 30px -12px rgba(0, 0, 0, .75); }
:root[data-theme="dark"] .uc-otp-box { box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .uc-otp-box.is-focus { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 3px rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .uc-sms.is-verified .uc-otp-box { box-shadow: inset 0 0 0 1.5px var(--led); }
/* food */
:root[data-theme="dark"] .uc-order-logo { background: #3A2E1E; color: #EFCF9C; }
:root[data-theme="dark"] .uc-order { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px var(--line-2), 0 18px 34px -16px rgba(0, 0, 0, .8); }
/* QA */
:root[data-theme="dark"] .uc-dev.is-run:not(.is-pass, .is-flaky) { box-shadow: inset 0 0 0 1.25px rgba(143, 195, 230, .4); }
/* sandbox: graphite Pixels with dark home screens */
:root[data-theme="dark"] .uc-px-body { background: #22252A; box-shadow: 0 0 0 1.5px #3A3E45, inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 20px -12px rgba(0, 0, 0, .85); }
:root[data-theme="dark"] .uc-px-body::after { background: #3A3E45; }
:root[data-theme="dark"] .uc-px-screen { background: #191B1F; }
:root[data-theme="dark"] .uc-px-screen::before { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .uc-px-dirty i { filter: brightness(.78) saturate(.85); }
:root[data-theme="dark"] .uc-px-note, :root[data-theme="dark"] .uc-px-dlg { background: #34373D; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .uc-px-note::after, :root[data-theme="dark"] .uc-px-dlg::after { background: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .uc-sb-tape { filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .42)); }
:root[data-theme="dark"] .uc-px-clean { background: linear-gradient(#202328, #191B1F); }

/* ---------- responsive ---------- */
/* narrow Social card (half width at 901–1024, phone width): wrap the thread, swap the pill for a green dot */
@media (max-width: 640px), (min-width: 901px) and (max-width: 1024px) {
  .uc-done, .uc-today { display: none; }
  .uc-cmt { grid-template-columns: 22px minmax(0, 1fr); }
  .uc-cmt-text, .uc-reply { white-space: normal; }
  .uc-cmt-text { margin-bottom: 2px; }
  .uc-cmt.is-replied .uc-reply::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 1px; border-radius: 50%; background: var(--led); }
}
@media (max-width: 1024px) {
  .uc-card--social, .uc-card--imsg { grid-column: span 6; }
  .uc-card { padding: 22px; }
  .uc-sb-row { gap: 12px; }
  .uc-sb .uc-stage { padding: 24px 22px 16px; }
}
@media (max-width: 900px) {
  .uc-card--social { grid-column: span 12; }
  .uc-card--imsg, .uc-card--sms, .uc-card--apps, .uc-card--qa { grid-column: span 6; }
  .uc-card--sandbox { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .uc-sb-text .t-body { margin-bottom: 0; }
  .uc-sb-text .uc-prompt { order: 2; margin-top: 0; }
  .uc-sb-text { display: contents; }
  .uc-sb { order: 1; margin: 22px 0 16px; }
  .uc-sb-text .uc-card-top, .uc-sb-text .t-h3, .uc-sb-text .t-body { order: 0; }
}
@media (max-width: 640px) {
  .uc-grid { gap: 12px; }
  .uc-card--imsg, .uc-card--sms, .uc-card--apps, .uc-card--qa { grid-column: span 12; }
  .uc-card { padding: 20px; }
  .uc-vis { margin: 18px 0 14px; }
  .uc-social .uc-stage { gap: 12px; padding: 12px; }
  .uc-reel { width: 78px; }
  .uc-cmt { padding: 6px 6px; gap: 0 8px; grid-template-columns: 20px minmax(0, 1fr); }
  .uc-av { width: 20px; height: 20px; line-height: 20px; }
  .uc-thread-head { padding: 0 6px 6px; }
  .uc-sb-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 12px; }
  .uc-px-body { max-width: 52px; }
  .uc-sb .uc-stage { padding: 22px 18px 16px; }
  .uc-sb-tape { top: -11px; right: 20px; }
  .uc-sb-tape .tape { font-size: 16px; }
  .uc-sb-snap { display: none; }
  .uc-enter { display: none; }
  .uc-prompt > span { text-wrap: pretty; }
}

/* touch screens: the SMS banner's fill is 92% opaque, so its blur barely shows, but it costs a backdrop pass on
   every frame that anything under it moves; the fill alone (a touch deeper in dark) */
@media (pointer: coarse) {
  .uc-notif { -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme="dark"] .uc-notif { background: rgba(40, 42, 47, .93); }
}

/* ===== proof ===== */
/* ============================================================
   08 · Proof — three faux screen recordings   (.pf-)
   Each card is a paused "video": a scripted HTML reenactment,
   sized in container units so it scales as one picture.
   ============================================================ */
.pf {
  --pf-r: 24px;
  --pf-ios-blue: #3B82F6;
  padding-block: min(var(--section-y), 67px) 36px;   /* tighter than the default section rhythm (Figma 84:11625) */
}
.pf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- header ---------- */
.pf-head { display: grid; justify-items: center; text-align: center; }
.pf-lede { margin-top: 22px; max-width: 54ch; }

/* ---------- grid ---------- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 4.69vw, 67.5px);
}
.pf-item { position: relative; margin: 0; min-width: 0; }

/* ---------- player shell ---------- */
.pf-player {
  position: relative;
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  border-radius: var(--pf-r);
  overflow: hidden;
  isolation: isolate;
  background: var(--graphite);
  color: var(--on-dark);
  box-shadow: 0 1px 2px rgba(18, 19, 20, .18), 0 34px 60px -34px rgba(18, 19, 20, .6);
}
/* rim layer: no stroke in light (client: strokes off the cards); the dark theme draws a faint rim here */
.pf-player::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  pointer-events: none;
}
.pf-scene { position: absolute; inset: 0; overflow: hidden; }
.pf-amb { position: absolute; inset: 0; }
.pf-amb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, .1) .7px, transparent 1.1px) 50% 50% / 3.4cqw 3.4cqw;
  -webkit-mask: radial-gradient(64% 52% at 50% 50%, #000 30%, transparent);
  mask: radial-gradient(64% 52% at 50% 50%, #000 30%, transparent);
  opacity: .8;
}
.pf-player--cloud .pf-amb {
  background:
    radial-gradient(44% 38% at 50% 46%, rgba(143, 195, 230, .26), transparent 72%),
    radial-gradient(80% 50% at 50% 108%, rgba(42, 121, 176, .32), transparent 70%),
    linear-gradient(180deg, #15181b, #101214);
}
.pf-player--story .pf-amb {
  background:
    radial-gradient(44% 38% at 50% 52%, rgba(255, 112, 52, .28), transparent 72%),
    radial-gradient(80% 50% at 50% 108%, rgba(196, 64, 24, .34), transparent 70%),
    linear-gradient(180deg, #17151a, #111013);
}

/* chip, top-left */
.pf-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(16, 18, 20, .58);
  color: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.pf-chip .dot { background: var(--cable); box-shadow: 0 0 8px rgba(143, 195, 230, .7); }
.pf-chip--real .dot { background: var(--signal); box-shadow: 0 0 8px rgba(255, 79, 20, .7); }

/* controls: timecode + scrubber */
.pf-ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 9px;
  padding: 0 16px 15px;
  pointer-events: none;
}
.pf-ctrl::before {
  content: '';
  position: absolute;
  inset: -48px 0 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 9, 10, .74), rgba(8, 9, 10, .3) 55%, rgba(8, 9, 10, 0));
  transition: opacity .45s;
}
.pf-tc {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .92);
  transition: opacity .45s, transform .45s var(--ease-out);
}
.pf-bar {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
}
.pf-bar i { position: absolute; inset: 0; transform-origin: 0 50%; }
.pf-buf { background: rgba(255, 255, 255, .26); transform: scaleX(var(--b, 0)); transition: transform .6s var(--ease-out); }
.pf-prog { background: #fff; transform: scaleX(var(--p, 0)); }
.pf-player.is-playing .pf-ctrl::before,
.pf-player.is-playing .pf-tc { opacity: 0; }
.pf-player.is-playing .pf-tc { transform: translateY(4px); }

/* play / pause: the whole card is the button, the circle is the visual */
.pf-play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(8, 9, 10, .12);
  transition: background-color .4s;
  -webkit-tap-highlight-color: transparent;
}
.pf-play:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; border-radius: var(--pf-r); }
.pf-play-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .12), 0 14px 30px -10px rgba(0, 0, 0, .7);
  transition: opacity .35s, transform .45s var(--ease-out);
}
.pf-play-ico svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; }
.pf-play-ico .pf-i-play { translate: 1.5px 0; }
.pf-play-ico .pf-i-pause,
.pf-player.is-playing .pf-play-ico .pf-i-play { display: none; }
.pf-player.is-playing .pf-play-ico .pf-i-pause { display: block; }
.pf-player.is-playing .pf-play { background: transparent; }
.pf-player.is-playing .pf-play-ico { opacity: 0; transform: scale(.86); }
.pf-play:focus-visible .pf-play-ico { opacity: 1; transform: none; }
@media (hover: hover) {
  .pf-player:hover .pf-play-ico { transform: scale(1.06); }
  .pf-player.is-playing:hover .pf-play-ico { opacity: 1; transform: none; }
  .pf-player.is-playing:hover .pf-ctrl::before,
  .pf-player.is-playing:hover .pf-tc { opacity: 1; transform: none; }
}

/* ---------- caption ---------- */
.pf-cap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 0 2px;
}
.pf-title { font: 500 18px/1.3 var(--f-head); letter-spacing: -.02em; color: var(--ink); }
.pf-tag { display: block; margin-top: 5px; font: 400 12px/1.4 var(--f-mono); letter-spacing: .01em; color: var(--mute); }
.pf-dur {
  flex: none;
  padding: 6px 10px 5px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 500 12px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(18, 19, 20, .25);
}

/* ---------- craft: the "unedited" sticker on the middle card ---------- */
.pf-sticker {
  --rot: 8deg;
  position: absolute;
  top: -20px;
  right: -14px;
  z-index: 8;
  padding: 5px;
  border-radius: 16px;
  pointer-events: none;
}
.pf-sticker > span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 15px 9px;
  border-radius: 11px;
  background: var(--signal);
  color: #fff;
}
.pf-sticker > span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .1));
}
.pf-sticker b { font: 700 15px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.pf-sticker small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .88; }
.pf-item.is-in .pf-sticker { animation: pf-slap .6s var(--ease-out) .6s both; }
@keyframes pf-slap {
  0% { opacity: 0; transform: rotate(calc(var(--rot) + 16deg)) scale(1.5); }
  60% { opacity: 1; transform: rotate(var(--rot)) scale(.96); }
  100% { opacity: 1; transform: rotate(var(--rot)) scale(1); }
}

/* ============================================================
   Scene engine states
   ============================================================ */
.pf .pf-fx-fade { opacity: 0; transition: opacity .35s var(--ease-out); }
.pf .pf-fx-pop { opacity: 0; transform: scale(.8); transition: opacity .2s, transform .45s var(--ease-spring); }
.pf .pf-fx-rise { opacity: 0; transform: translateY(var(--rise, 35%)); transition: opacity .3s, transform .5s var(--ease-out); }
.pf .pf-fx-slide { transform: translateX(100%); transition: transform .5s var(--ease-out); }
.pf .pf-fx-out { opacity: 0; transform: translateX(-22%); transition: opacity .4s, transform .5s var(--ease-out); }
.pf .pf-fx-zoom { opacity: 0; transform: scale(.94); transition: opacity .3s, transform .45s var(--ease-out); }
.pf .is-on:is(.pf-fx-fade, .pf-fx-pop, .pf-fx-rise, .pf-fx-slide, .pf-fx-out, .pf-fx-zoom) { opacity: 1; transform: none; }
.pf-player.is-cut,
.pf-player.is-cut * { transition: none !important; }
.pf-measuring [data-on] { transform: none !important; }

/* moving things: a full-size layer translated by --x/--y (% of its parent) */
.pf-trk {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  transform: translate(calc(var(--x, 0) * 1%), calc(var(--y, 0) * 1%));
}
/* "show taps" touch indicator */
.pf-touch > i {
  position: absolute;
  left: -5cqw;
  top: -5cqw;
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  background: rgba(42, 121, 176, .2);
  box-shadow: 0 0 0 .55cqw rgba(42, 121, 176, .55);
  opacity: 0;
  transform: scale(1.4);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.pf-touch.is-down > i { opacity: 1; transform: none; transition: none; }

/* typing caret */
.pf .is-typing::after {
  content: '';
  display: inline-block;
  width: max(1px, .07em);
  height: 1em;
  margin-left: .06em;
  vertical-align: -.14em;
  background: currentColor;
}

/* ============================================================
   Shared phone parts (units inside .pf-dev = % of the phone)
   ============================================================ */
.pf-dev {
  position: absolute;
  left: 26cqw;
  top: 12.5cqw;
  width: 48cqw;
  aspect-ratio: 9 / 19.5;
  padding: 1.25cqw;
  border-radius: 7.4cqw;
  background: #08090A;
  container-type: inline-size;
  box-shadow: 0 0 0 .35cqw #2B3036, 0 0 0 .55cqw #0B0C0D, 0 4cqw 8cqw -2cqw rgba(0, 0, 0, .7);
}
.pf-dev--ios {
  border-radius: 8cqw;
  box-shadow: 0 0 0 .45cqw #8B877F, 0 0 0 .65cqw #3D3B38, 0 4cqw 8cqw -2cqw rgba(0, 0, 0, .7);
}
.pf-scr {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 12.5cqw;
  background: #fff;
  color: #1F1F1F;
  font: 400 5cqw/1.3 var(--f-display);
  letter-spacing: -.01em;
}
.pf-dev--ios .pf-scr { border-radius: 14cqw; }
.pf-sb {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10cqw;
  padding: 0 7cqw;
  font-size: 4.3cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pf-sb--light { color: #fff; height: 14cqw; padding: 1cqw 8cqw 0 11cqw; }
.pf-sb-r { display: flex; align-items: center; gap: 1.6cqw; }
.pf-sb svg { width: 4.4cqw; height: 4.4cqw; fill: currentColor; color: inherit; }
.pf-bat { position: relative; display: block; width: 6.6cqw; height: 3.3cqw; border-radius: 1cqw; box-shadow: inset 0 0 0 .45cqw currentColor; }
.pf-bat::after { content: ''; position: absolute; inset: .9cqw 2cqw .9cqw .9cqw; border-radius: .3cqw; background: currentColor; }
.pf-punch {
  position: absolute;
  top: 3cqw;
  left: 50%;
  z-index: 7;
  width: 4.2cqw;
  height: 4.2cqw;
  margin-left: -2.1cqw;
  border-radius: 50%;
  background: #0A0A0B;
  box-shadow: 0 0 0 .5cqw #1C1C1E;
}
.pf-island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  z-index: 7;
  width: 30cqw;
  height: 8.6cqw;
  margin-left: -15cqw;
  border-radius: 99px;
  background: #000;
}
.pf-gbar {
  position: absolute;
  left: 50%;
  bottom: 2.2cqw;
  z-index: 9;
  width: 34cqw;
  height: 1.3cqw;
  margin-left: -17cqw;
  border-radius: 9px;
  background: rgba(0, 0, 0, .78);
}
.pf-gbar--light { background: rgba(255, 255, 255, .88); }

/* ============================================================
   1 · Notes app on an Android cloud phone   (.pf-n-)
   ============================================================ */
.pf-n { color: #37352F; }
.pf-n-home, .pf-n-page { position: absolute; inset: 10cqw 0 0; background: #fff; }
.pf-n-home { padding: 3cqw 6cqw 0; }
.pf-n-top { display: flex; align-items: center; justify-content: space-between; height: 12cqw; }
.pf-n-ws { display: flex; align-items: center; gap: 2.6cqw; font-size: 6.2cqw; font-weight: 650; letter-spacing: -.02em; }
.pf-n-ws i {
  width: 7.6cqw;
  height: 7.6cqw;
  border-radius: 1.8cqw;
  background: #2A2D31;
  color: #fff;
  font: 700 4.4cqw/7.6cqw var(--f-display);
  font-style: normal;
  text-align: center;
}
.pf-n-tools { display: flex; align-items: center; gap: 2.4cqw; }
.pf-n-tools .ico { width: 6.4cqw; height: 6.4cqw; stroke-width: 2.2; }
.pf-n-plus { display: grid; place-items: center; width: 10.4cqw; height: 10.4cqw; border-radius: 3cqw; background: #F1F1EF; }
.pf-n-lbl { margin: 6cqw 0 1.2cqw; font-size: 4.2cqw; font-weight: 600; color: #9B9A97; letter-spacing: .01em; }
.pf-n-list li { display: flex; align-items: center; gap: 3.2cqw; height: 11.4cqw; font-size: 5.5cqw; white-space: nowrap; }
.pf-n-list li i {
  position: relative;
  flex: none;
  width: 5cqw;
  height: 6.2cqw;
  border-radius: .8cqw;
  box-shadow: inset 0 0 0 .5cqw #B4B3AF;
}
.pf-n-list li i::after {
  content: '';
  position: absolute;
  inset: 1.9cqw 1.3cqw auto;
  height: 2cqw;
  border-block: .45cqw solid #C9C8C4;
}
.pf-n-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 3.4cqw 6cqw 8cqw;
  border-top: 1px solid #EDEDEB;
  color: #A5A4A0;
}
.pf-n-tabs .ico { width: 6.4cqw; height: 6.4cqw; stroke-width: 2; }
.pf-n-tabs .is-cur { color: #37352F; }

.pf-n-crumb {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 12cqw;
  padding: 0 5cqw 0 4cqw;
  font-size: 4.4cqw;
  color: #9B9A97;
  white-space: nowrap;
}
.pf-n-crumb .ico { flex: none; width: 6cqw; height: 6cqw; stroke-width: 2.2; color: #37352F; }
.pf-n-crumb span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-block: .2em; margin-block: -.2em; } /* room for ascenders/descenders inside the ellipsis mask */
.pf-n-crumb b { font-weight: 500; color: #37352F; }
.pf-n-crumb em { font-style: normal; font-weight: 600; color: var(--cable-ink); }
.pf-n-cover {
  height: 25cqw;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(50% 90% at 10% 100%, rgba(42, 121, 176, .55), transparent 70%),
    linear-gradient(120deg, #D9ECF7, #8FC3E6 55%, #5E9FCB);
}
.pf-n-body { padding: 0 6.4cqw; }
.pf-n-h {
  position: relative;
  min-height: 1.15em;
  margin-top: 6cqw;
  font-size: 7.8cqw;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: #1F1F1F;
}
.pf-n-ph { position: absolute; left: 0; top: 0; color: #CFCECB; }
.pf-n-props { display: grid; margin: 3.6cqw 0 0; font-size: 4.6cqw; }
.pf-n-props div { display: flex; align-items: center; height: 8.4cqw; }
.pf-n-props dt { width: 24cqw; color: #9B9A97; }
.pf-n-props dd { display: flex; align-items: center; gap: 1.6cqw; margin: 0; }
.pf-n-pill { padding: .9cqw 2.2cqw; border-radius: 1.2cqw; background: var(--cable-wash); color: var(--cable-ink); font-weight: 600; }
.pf-n-bot { width: 5.4cqw; height: 5.4cqw; border-radius: 50%; background: radial-gradient(circle, var(--cable) 0 26%, var(--graphite) 30%); }
.pf-n-call {
  display: flex;
  gap: 2.4cqw;
  margin-top: 4cqw;
  padding: 3cqw 3.6cqw;
  border-radius: 1.8cqw;
  background: #F4F3F0;
  font-size: 4.3cqw;
  line-height: 1.4;
  color: #4A4945;
}
.pf-n-call .ico { flex: none; width: 5.2cqw; height: 5.2cqw; margin-top: .3cqw; stroke-width: 2.2; color: var(--cable-ink); }
.pf-n-call b { font-weight: 650; color: #37352F; }
.pf-n-todo { margin-top: 3.6cqw; padding-top: 2.4cqw; border-top: 1px solid #EDEDEB; }
.pf-n-todo li { display: flex; align-items: center; gap: 2.8cqw; height: 11cqw; font-size: 5.3cqw; white-space: nowrap; }
.pf-n-todo b { flex: none; width: 8.6cqw; font: 500 3.7cqw/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: #9B9A97; }
.pf-n-todo li span { transition: color .25s; }
.pf-n-box {
  position: relative;
  flex: none;
  width: 5.4cqw;
  height: 5.4cqw;
  border-radius: 1.2cqw;
  box-shadow: inset 0 0 0 .55cqw #B4B3AF;
  transition: background-color .18s, box-shadow .18s;
}
.pf-n-box::after {
  content: '';
  position: absolute;
  left: 1.85cqw;
  top: .75cqw;
  width: 1.6cqw;
  height: 3cqw;
  border: solid #fff;
  border-width: 0 .7cqw .7cqw 0;
  opacity: 0;
  transform: rotate(45deg) scale(.4);
  transition: opacity .15s, transform .35s var(--ease-spring);
}
.pf-n-box.is-on { background: var(--cable-ink); box-shadow: none; }
.pf-n-box.is-on::after { opacity: 1; transform: rotate(45deg); }
.pf-n-box.is-on ~ span { color: #A5A4A0; text-decoration: line-through; text-decoration-color: #C9C8C4; }
.pf-n-add { display: flex; align-items: center; gap: 2.8cqw; height: 11cqw; font-size: 5cqw; color: #B4B3AF; }
.pf-n-add .ico { width: 5.4cqw; height: 5.4cqw; stroke-width: 2.2; }
.pf-n-snack {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 8cqw;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 4cqw 4.6cqw;
  border-radius: 2.6cqw;
  background: #2F3237;
  color: #fff;
  font-size: 4.7cqw;
  font-weight: 500;
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .25);
}
.pf-n-snack svg { width: 5.4cqw; height: 5.4cqw; color: var(--led); }

/* ============================================================
   2 · Story composer on a real iPhone   (.pf-s-)
   ============================================================ */
.pf-s { background: #5A331D; color: #fff; }
.pf-s-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(100deg, transparent 0 33cqw, rgba(0, 0, 0, .28) 33cqw 33.7cqw),
    repeating-linear-gradient(100deg, rgba(0, 0, 0, .07) 0 .6cqw, transparent .6cqw 3.2cqw),
    linear-gradient(100deg, #6E4026, #8C5733 40%, #77452A 70%, #5F3720);
}
.pf-s-bread {
  position: absolute;
  left: 60cqw;
  top: 16cqw;
  width: 52cqw;
  height: 36cqw;
  border-radius: 46% 54% 42% 58% / 52% 46% 54% 48%;
  background: radial-gradient(ellipse at 46% 46%, #F4DDA8 0 40%, #E3B86C 58%, #B97831 74%, #874B1A 90%);
  transform: rotate(16deg);
  box-shadow: 0 2cqw 4cqw rgba(40, 14, 0, .45);
}
.pf-s-napkin {
  position: absolute;
  left: -20cqw;
  top: 168cqw;
  width: 64cqw;
  height: 70cqw;
  border-radius: 3cqw;
  background:
    repeating-linear-gradient(90deg, transparent 0 8cqw, rgba(176, 64, 40, .55) 8cqw 9cqw, transparent 9cqw 10.6cqw, rgba(176, 64, 40, .55) 10.6cqw 11.6cqw, transparent 11.6cqw 22cqw),
    #ECE4D3;
  transform: rotate(24deg);
  box-shadow: 0 1.5cqw 3cqw rgba(40, 14, 0, .35);
}
.pf-s-handle {
  position: absolute;
  left: 74cqw;
  top: 136cqw;
  width: 15cqw;
  height: 60cqw;
  border-radius: 5cqw;
  background: linear-gradient(90deg, #121010, #2E2A27 45%, #151312);
  transform: rotate(-36deg);
  box-shadow: 1.5cqw 2cqw 4cqw rgba(30, 10, 0, .5);
}
.pf-s-pan {
  position: absolute;
  left: 2cqw;
  top: 60cqw;
  width: 96cqw;
  aspect-ratio: 1;
  padding: 6.5cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #1A1716 0 82%, #403A36 86%, #151211 91%, #2B2623 100%);
  box-shadow: 0 3cqw 7cqw rgba(30, 10, 0, .55);
}
.pf-s-sauce {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 58%, rgba(120, 22, 6, .55) 0 3cqw, transparent 3.4cqw),
    radial-gradient(circle at 74% 70%, rgba(120, 22, 6, .5) 0 4cqw, transparent 4.4cqw),
    radial-gradient(circle at 60% 18%, rgba(255, 150, 80, .45) 0 3cqw, transparent 3.4cqw),
    radial-gradient(circle at 16% 32%, rgba(255, 150, 80, .35) 0 2.4cqw, transparent 2.8cqw),
    radial-gradient(circle at 38% 34%, #F26C34, #D2441E 45%, #A92E13 80%, #7E200C);
  box-shadow: inset 0 0 5cqw rgba(60, 10, 0, .65);
}
.pf-s-egg {
  position: absolute;
  left: var(--ex);
  top: var(--ey);
  width: 30cqw;
  height: 25cqw;
  margin: -12.5cqw 0 0 -15cqw;
  border-radius: 52% 48% 56% 44% / 50% 58% 42% 50%;
  background: radial-gradient(circle at 50% 48%, #FFFDF6 0 42%, #F4EBD8 72%, #E3D4B6);
  transform: rotate(var(--er));
  box-shadow: 0 .8cqw 1.6cqw rgba(90, 20, 0, .4);
}
.pf-s-egg::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12cqw;
  height: 12cqw;
  margin: -6.5cqw 0 0 -6cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFF4C8 0 9%, #FFD24A 24%, #F5A623 62%, #DD860F);
  box-shadow: 0 .5cqw 1cqw rgba(150, 70, 0, .35);
}
.pf-s-herbs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 44%, #4E7E2C 0 1.1cqw, transparent 1.3cqw),
    radial-gradient(circle at 52% 22%, #5D8F33 0 .9cqw, transparent 1.1cqw),
    radial-gradient(circle at 80% 56%, #4E7E2C 0 1.2cqw, transparent 1.4cqw),
    radial-gradient(circle at 62% 84%, #5D8F33 0 1cqw, transparent 1.2cqw),
    radial-gradient(circle at 30% 82%, #3F6E24 0 .8cqw, transparent 1cqw),
    radial-gradient(circle at 84% 30%, #5D8F33 0 .9cqw, transparent 1.1cqw),
    radial-gradient(circle at 40% 54%, #4E7E2C 0 .8cqw, transparent 1cqw),
    radial-gradient(circle at 70% 26%, #F3EEE2 0 1.3cqw, transparent 1.5cqw),
    radial-gradient(circle at 24% 66%, #F3EEE2 0 1.1cqw, transparent 1.3cqw),
    radial-gradient(circle at 56% 62%, #F3EEE2 0 1.2cqw, transparent 1.4cqw),
    radial-gradient(circle at 86% 74%, #F3EEE2 0 .9cqw, transparent 1.1cqw);
}
.pf-s-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent 20%, transparent 76%, rgba(0, 0, 0, .5));
}

.pf-s-chrome { position: absolute; inset: 0; z-index: 3; }
.pf-s-tools {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  top: 16cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pf-s-tools > span { display: flex; align-items: center; gap: 4.2cqw; }
.pf-s-tools .ico { width: 6.8cqw; height: 6.8cqw; stroke-width: 2.1; filter: drop-shadow(0 .3cqw .8cqw rgba(0, 0, 0, .45)); }
.pf-s-tools b { font: 700 5cqw/1 var(--f-display); text-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .45); }
.pf-s-bottom {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 6.5cqw;
  display: flex;
  align-items: center;
  gap: 2.2cqw;
}
.pf-s-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  height: 10cqw;
  padding: 0 3cqw 0 1.6cqw;
  border-radius: 99px;
  background: rgba(18, 18, 20, .62);
  font-size: 3.5cqw;
  font-weight: 600;
  white-space: nowrap;
}
.pf-s-av { flex: none; width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: linear-gradient(135deg, #F3C6A5, #B9754C); box-shadow: 0 0 0 .5cqw #fff; }
.pf-s-cf { position: relative; flex: none; width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: #1FBF4F; }
.pf-s-cf::after {
  content: '';
  position: absolute;
  inset: 1.4cqw;
  background: #fff;
  clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 36%);
}
.pf-s-go { display: grid; place-items: center; flex: none; width: 10cqw; height: 10cqw; margin-left: auto; border-radius: 50%; background: #fff; color: #111; }
.pf-s-go .ico { width: 5.2cqw; height: 5.2cqw; stroke-width: 2.4; }
.pf-s-press { position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .28); opacity: 0; transition: opacity .25s; }
.pf-s-press.is-on { opacity: 1; transition: none; }

.pf-s-tray {
  --rise: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 58%;
  padding: 3cqw 5cqw;
  border-radius: 7cqw 7cqw 0 0;
  background: rgba(26, 26, 28, .94);
}
.pf-s-grab { display: block; width: 10cqw; height: 1.2cqw; margin: 0 auto 4cqw; border-radius: 9px; background: rgba(255, 255, 255, .3); }
.pf-s-search {
  display: block;
  height: 8.6cqw;
  margin-bottom: 6cqw;
  padding-left: 4cqw;
  border-radius: 2.6cqw;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  font-size: 3.8cqw;
  line-height: 8.6cqw;
}
.pf-s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5cqw 2cqw; justify-items: center; }
.pf-s-grid span {
  padding: 2.1cqw 2.2cqw;
  border-radius: 2cqw;
  background: #fff;
  color: var(--c1);
  font: 800 3.1cqw/1 var(--f-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pf-s-tag { z-index: 4; }
.pf-s-tag > span { position: absolute; left: 0; top: 0; translate: -50% -50%; }
.pf-s-tilt {
  display: block;
  padding: 2.6cqw 3.8cqw;
  border-radius: 2.8cqw;
  background: #fff;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .3);
  white-space: nowrap;
  transition: transform .45s var(--ease-spring), box-shadow .3s;
}
.pf-s-tilt b {
  font: 800 6.4cqw/1 var(--f-display);
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #FF7A45, #E5306B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pf-s-tilt .is-typing::after { background: #E5306B; }
.pf-s-tag.is-down .pf-s-tilt { transform: scale(1.08) rotate(-2deg); box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, .4); }
.pf-s-tilt.is-on { transform: rotate(-6deg); }

.pf-s-view { position: absolute; inset: 0; z-index: 3; }
.pf-s-seg { position: absolute; left: 4cqw; right: 4cqw; top: 15.5cqw; height: .9cqw; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .35); }
.pf-s-seg i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--k, 0)); }
.pf-s-who { position: absolute; left: 4cqw; top: 19.5cqw; display: flex; align-items: center; gap: 2.4cqw; font-size: 4cqw; text-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .4); }
.pf-s-who b { font-weight: 650; }
.pf-s-who span { color: rgba(255, 255, 255, .72); }
.pf-s-toast {
  position: absolute;
  left: 50%;
  bottom: 20cqw;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 2.8cqw 4.4cqw 2.8cqw 2.8cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .96);
  color: #111;
  font-size: 4cqw;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .35);
}
.pf-s-toast svg { width: 5.4cqw; height: 5.4cqw; padding: 1cqw; border-radius: 50%; background: var(--led); color: #fff; }
.pf-s .pf-touch > i { background: rgba(255, 255, 255, .38); box-shadow: 0 0 0 .55cqw rgba(255, 255, 255, .8), 0 0 4cqw rgba(0, 0, 0, .3); }

/* ============================================================
   3 · Overhead camera on the rack   (.pf-c-, phone screens .pf-i-)
   world is 100cqw × 125cqw
   ============================================================ */
.pf-cam { background: #26292C; }
.pf-c-world {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 46% 46%, rgba(255, 255, 255, .08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    #2A2D30;
}
.pf-c-ext {
  position: absolute;
  background: linear-gradient(90deg, #141618, #2E3236 20%, #1C1F22 40%, #0B0C0E 50%, #1C1F22 60%, #2E3236 80%, #141618);
  box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .4);
}
.pf-c-ext--l { left: 2cqw; top: 0; bottom: 0; width: 8cqw; }
.pf-c-ext--t {
  left: 0;
  right: 0;
  top: 2.4cqw;
  height: 8cqw;
  background: linear-gradient(180deg, #141618, #2E3236 20%, #1C1F22 40%, #0B0C0E 50%, #1C1F22 60%, #2E3236 80%, #141618);
}
.pf-c-cable { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(1cqw 1.4cqw 1cqw rgba(0, 0, 0, .45)); }
.pf-c-cable path { fill: none; stroke: #9CC6E2; stroke-width: 2.6; stroke-linecap: round; }
.pf-c-cradle {
  position: absolute;
  left: 21.5cqw;
  top: 12cqw;
  width: 49cqw;
  height: 92.5cqw;
  border-radius: 6.4cqw;
  background: #121315;
  box-shadow: inset 0 0 0 .5cqw #24272A, 0 1.6cqw 3cqw rgba(0, 0, 0, .5);
}
.pf-c-cradle i { position: absolute; width: 9cqw; height: 9cqw; border-radius: 2cqw; background: linear-gradient(135deg, #4A4F55, #2C3034); box-shadow: 0 .6cqw 1.2cqw rgba(0, 0, 0, .5); }
.pf-c-cradle i:nth-child(1) { left: -1.5cqw; top: -1.5cqw; }
.pf-c-cradle i:nth-child(2) { right: -1.5cqw; top: -1.5cqw; }
.pf-c-cradle i:nth-child(3) { left: -1.5cqw; bottom: -1.5cqw; }
.pf-c-cradle i:nth-child(4) { right: -1.5cqw; bottom: -1.5cqw; }
.pf-c-phone {
  position: absolute;
  left: 25cqw;
  top: 15cqw;
  width: 42cqw;
  height: 86cqw;
  padding: 1.2cqw;
  border-radius: 6.4cqw;
  background: #060606;
  container-type: inline-size;
  box-shadow: 0 0 0 .45cqw #7C7974, 0 0 0 .62cqw #3A3835, 0 1.2cqw 2.4cqw rgba(0, 0, 0, .5);
}
.pf-c-phone > .pf-scr { opacity: .9; }
.pf-c-world { filter: saturate(.72) contrast(1.04); }
.pf-c-phone::after {
  content: '';
  position: absolute;
  inset: 1.1cqw;
  z-index: 2;
  border-radius: 5.4cqw;
  background: linear-gradient(116deg, transparent 32%, rgba(255, 255, 255, .1) 44%, transparent 58%);
  pointer-events: none;
}
.pf-c-rail {
  position: absolute;
  left: 86cqw;
  top: 0;
  bottom: 0;
  width: 8.5cqw;
  background:
    radial-gradient(circle, #2A2D30 0 .7cqw, transparent .9cqw) 50% 6cqw / 100% 16cqw repeat-y,
    linear-gradient(90deg, #6C7177, #C3C8CD 26%, #8A8F95 46%, #5B6066 50%, #8A8F95 54%, #B4B9BE 76%, #666B71);
  box-shadow: -.8cqw 0 2cqw rgba(0, 0, 0, .45);
}

/* the gantry: arm + carriage + stylus share --x/--y from .pf-c-rig */
.pf-c-rig { position: absolute; inset: 0; z-index: 3; }
.pf-c-rig > i { position: absolute; inset: 0; }
.pf-c-tip, .pf-c-arm, .pf-c-tipsh, .pf-c-armsh { transform: translate(calc(var(--x, 0) * 1%), calc(var(--y, 0) * 1%)); }
.pf-c-car { transform: translateY(calc(var(--y, 0) * 1%)); }
.pf-c-arm > i {
  position: absolute;
  left: 0;
  top: -2.4cqw;
  width: 100cqw;
  height: 4.8cqw;
  border-radius: 1cqw;
  background: linear-gradient(#474C52, #2A2E33 38%, #0F1113 50%, #2A2E33 62%, #1B1E21);
  box-shadow: inset 0 0 0 .3cqw rgba(0, 0, 0, .35);
}
.pf-c-armsh > i {
  position: absolute;
  left: 2cqw;
  top: .2cqw;
  width: 100cqw;
  height: 4.8cqw;
  border-radius: 2cqw;
  background: rgba(0, 0, 0, .42);
  filter: blur(1.2cqw);
}
.pf-c-car > i {
  position: absolute;
  left: 81.5cqw;
  top: -7.5cqw;
  width: 18cqw;
  height: 15cqw;
  border-radius: 1.6cqw;
  background:
    radial-gradient(circle at 2.4cqw 2.4cqw, #8A8F95 0 .8cqw, transparent 1cqw),
    radial-gradient(circle at calc(100% - 2.4cqw) 2.4cqw, #8A8F95 0 .8cqw, transparent 1cqw),
    radial-gradient(circle at 2.4cqw calc(100% - 2.4cqw), #8A8F95 0 .8cqw, transparent 1cqw),
    radial-gradient(circle at calc(100% - 2.4cqw) calc(100% - 2.4cqw), #8A8F95 0 .8cqw, transparent 1cqw),
    linear-gradient(135deg, #3E434A, #1C1F23);
  box-shadow: 1.4cqw 2cqw 3cqw rgba(0, 0, 0, .55), inset 0 0 0 .3cqw rgba(255, 255, 255, .07);
}
.pf-c-car > i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.6cqw;
  height: 1.6cqw;
  margin: -.8cqw;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 1.6cqw 0.4cqw rgba(47, 191, 99, .6);
}
.pf-c-tip > i {
  position: absolute;
  left: -4.6cqw;
  top: -4.6cqw;
  width: 9.2cqw;
  height: 9.2cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #15171A 0 1.1cqw, transparent 1.3cqw), radial-gradient(circle at 36% 32%, #737980, #3A3F45 48%, #1B1E21 82%);
  box-shadow: 0 0 0 .5cqw #111315, inset 0 0 0 .4cqw rgba(255, 255, 255, .06);
  transition: transform .09s ease-out;
}
.pf-c-tipsh > i {
  position: absolute;
  left: -2.6cqw;
  top: -1.8cqw;
  width: 9.2cqw;
  height: 9.2cqw;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  filter: blur(1.5cqw);
  transition: transform .09s ease-out, filter .09s, opacity .09s;
}
.pf-c-rig.is-down .pf-c-tip > i { transform: scale(.88); }
.pf-c-rig.is-down .pf-c-tipsh > i { transform: translate(-1.6cqw, -2.4cqw) scale(.86); filter: blur(.5cqw); background: rgba(0, 0, 0, .7); }
.pf-c-tip b {
  position: absolute;
  left: -5.5cqw;
  top: -5.5cqw;
  width: 11cqw;
  height: 11cqw;
  border-radius: 50%;
  box-shadow: 0 0 0 .45cqw rgba(255, 255, 255, .85);
  opacity: 0;
  transform: scale(1.7);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.pf-c-rig.is-down .pf-c-tip b { opacity: .9; transform: scale(.8); transition: none; }

.pf-c-vig {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(115% 92% at 50% 44%, transparent 48%, rgba(0, 0, 0, .58) 100%);
  pointer-events: none;
}
.pf-c-grain {
  position: absolute;
  inset: -40%;
  z-index: 4;
  opacity: .2;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 200px 200px;
  pointer-events: none;
}
.pf-player.is-playing .pf-c-grain { animation: pf-grain .5s steps(5) infinite; }
@keyframes pf-grain { to { transform: translate(-90px, 55px); } }
.pf-c-hud {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 18, 20, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.pf-c-hud i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px rgba(255, 79, 20, .9); }
.pf-c-hud span { margin-left: 5px; color: rgba(255, 255, 255, .62); }
.pf-player.is-playing .pf-c-hud i { animation: pf-blink 1.2s steps(1) infinite; }
@keyframes pf-blink { 50% { opacity: .15; } }

/* vision overlay: what the camera model "sees" before each tap */
.pf-cv {
  position: absolute;
  inset: -2.4cqw;
  z-index: 3;
  border-radius: 3cqw;
  box-shadow: 0 0 0 .55cqw var(--signal), 0 0 5cqw rgba(255, 79, 20, .35);
  pointer-events: none;
}
.pf-cv::before {
  content: attr(data-l);
  position: absolute;
  left: -.6cqw;
  bottom: calc(100% + 1.4cqw);
  padding: 1.3cqw 1.8cqw;
  border-radius: 1.2cqw;
  background: var(--signal);
  color: #fff;
  font: 500 4.4cqw/1 var(--f-mono);
  letter-spacing: 0;
  white-space: nowrap;
}

/* iPhone screens seen by the camera (units = % of the phone) */
.pf-i { border-radius: 14cqw; background: #2C3442; color: #111; }
.pf-i .pf-island { top: 3cqw; width: 28cqw; height: 8cqw; margin-left: -14cqw; }
.pf-i-home { position: absolute; inset: 0; background: linear-gradient(165deg, #7A8BA0, #4A576C 55%, #2F3747); }
.pf-i-apps { position: absolute; left: 8cqw; right: 8cqw; top: 22cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10cqw 7cqw; }
.pf-i-apps i, .pf-i-dock > i { position: relative; aspect-ratio: 1; border-radius: 26%; background: var(--c); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .1); }
.pf-i-home::after { content: ''; position: absolute; left: 50%; bottom: 34cqw; width: 20cqw; height: 5.4cqw; margin-left: -10cqw; border-radius: 9px; background: rgba(255, 255, 255, .22); }
.pf-i-dock {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 4cqw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7cqw;
  padding: 4.6cqw 5.4cqw;
  border-radius: 9cqw;
  background: rgba(255, 255, 255, .22);
}
/* the real Messages tile fills its dock slot; the slot stays unclipped for the vision box */
.pf-i-msg > .app { position: absolute; inset: 0; width: auto; height: auto; border-radius: inherit; }
/* the iMessage glyph is a rounded square with the bubble cut out: draw it full-bleed in green over white so the bubble reads white, like the real icon */
.pf-i-msg > .app--imessage { --bg: #fff; --fg: linear-gradient(#5BF675, #0CBD2A); --g: 106%; }
.pf-i-list, .pf-i-thread { position: absolute; inset: 0; background: #fff; }
.pf-i-list { padding-top: 50cqw; }
.pf-i-title { position: absolute; left: 6cqw; top: 21cqw; font-size: 10cqw; font-weight: 750; letter-spacing: -.035em; }
.pf-i-search { position: absolute; left: 6cqw; right: 6cqw; top: 36cqw; height: 8.4cqw; border-radius: 3cqw; background: #EEEEF0; }
.pf-i-row { position: relative; display: flex; align-items: center; gap: 3cqw; height: 19cqw; padding: 0 5cqw; }
.pf-i-row + .pf-i-row::before { content: ''; position: absolute; left: 20cqw; right: 0; top: 0; border-top: .3cqw solid #E8E8EA; }
.pf-i-av { flex: none; width: 12cqw; height: 12cqw; border-radius: 50%; background: linear-gradient(#B4B8C0, #8C9099); }
.pf-i-row span { display: grid; flex: 1; min-width: 0; font-size: 4cqw; color: #8E8E93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-block: .3em; margin-block: -.3em; }
.pf-i-row b { font-size: 4.8cqw; font-weight: 650; color: #111; }
.pf-i-row em { align-self: flex-start; margin-top: 4cqw; font-style: normal; font-size: 3.4cqw; color: #8E8E93; }
.pf-i-row .pf-cv { inset: 1cqw 2cqw; }

.pf-i-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqw;
  padding: 14cqw 0 3cqw;
  background: #F6F6F7;
  border-bottom: .3cqw solid #E2E2E5;
  font-size: 3.8cqw;
}
.pf-i-head .pf-i-av { width: 11cqw; height: 11cqw; }
.pf-i-head b { font-weight: 550; }
.pf-i-msgs { position: absolute; left: 4cqw; right: 4cqw; top: 40cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 2cqw; font-size: 4.3cqw; }
.pf-i-in, .pf-i-out { max-width: 76%; padding: 2.4cqw 3.6cqw; border-radius: 5cqw; line-height: 1.25; }
.pf-i-in { background: #E9E9EB; color: #111; }
.pf-i-out { align-self: flex-end; background: var(--pf-ios-blue); color: #fff; }
.pf-i-msgs em { align-self: flex-end; margin-top: -1cqw; font-style: normal; font-size: 3.2cqw; color: #8E8E93; }
.pf-i-msgs .pf-i-day { align-self: center; margin: 0 0 1cqw; font-size: 3.2cqw; }
.pf-i-dots { display: flex; gap: 1.2cqw; margin-top: -12.2cqw; padding: 3.4cqw 4cqw; }
.pf-i-dots i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #9A9AA0; }
.pf-player.is-playing .pf-i-dots i { animation: pf-blink 1s infinite; }
.pf-player.is-playing .pf-i-dots i:nth-child(2) { animation-delay: .15s; }
.pf-player.is-playing .pf-i-dots i:nth-child(3) { animation-delay: .3s; }
.pf-i-input { position: absolute; left: 3cqw; right: 3cqw; bottom: 67cqw; display: flex; align-items: center; gap: 2cqw; height: 10cqw; }
.pf-i-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  padding: 0 3.6cqw;
  border-radius: 99px;
  box-shadow: inset 0 0 0 .35cqw #D4D4D8;
  font-size: 4.3cqw;
}
.pf-i-ph { position: absolute; left: 3.6cqw; color: #B0B0B5; }
.pf-i-send { position: relative; flex: none; width: 8.4cqw; height: 8.4cqw; border-radius: 50%; background: #C7C7CC; transition: background-color .2s; }
.pf-i-send.is-on { background: var(--pf-ios-blue); }
.pf-i-send::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.6cqw;
  height: 2.6cqw;
  margin: -.9cqw 0 0 -1.3cqw;
  border: solid #fff;
  border-width: .7cqw 0 0 .7cqw;
  transform: rotate(45deg);
}
.pf-i-send .pf-cv { inset: -2cqw; border-radius: 50%; }
.pf-i-send .pf-cv::before { left: auto; right: -.6cqw; }
.pf-i-kb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2.6cqw;
  padding: 2.6cqw 1cqw 12cqw;
  background: #D1D4DA;
}
.pf-i-kb div { display: flex; justify-content: center; gap: 1.3cqw; }
.pf-i-kb b {
  display: grid;
  place-items: center;
  flex: 0 0 8.5cqw;
  height: 10.4cqw;
  border-radius: 1.4cqw;
  background: #fff;
  box-shadow: 0 .4cqw 0 #8F939B;
  font: 400 4.6cqw/1 var(--f-display);
  color: #111;
}
.pf-i-kb .pf-i-fn { flex-basis: 12cqw; background: #ADB2BB; font-size: 3.2cqw; }
.pf-i-kb div:last-child .pf-i-fn:last-child { flex-basis: 22cqw; }
.pf-i-kb .pf-i-sp { flex-basis: 46cqw; font-size: 3.2cqw; color: #555; }

/* small cards (tablet 3-up, mobile carousel): drop the phone below the chip */
@container (max-width: 360px) {
  .pf-dev { left: 28cqw; top: 16cqw; width: 44cqw; }
}

/* carousel position dots (≤860 only) — lit = mostly in view */
.pf-dots { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .pf-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 28px) / 2.25); /* two cards + a peek of the third */
    gap: 14px;
    margin-top: clamp(28px, 6vw, 48px);
    margin-inline: calc(-1 * var(--gutter));
    padding: 26px var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pf-grid::-webkit-scrollbar { display: none; }
  .pf-item { scroll-snap-align: start; }
  .pf-sticker { top: -18px; right: -6px; }
  .pf-dots { display: flex; justify-content: center; margin-top: 14px; }
  .pf-dots button { display: grid; place-items: center; width: 24px; height: 24px; }
  .pf-dots button::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--mute-2);
    transition: width .35s var(--ease-out), background-color .35s;
  }
  .pf-dots button.is-on::before { width: 18px; background: var(--ink); }
}
@media (max-width: 640px) {
  .pf-grid { grid-auto-columns: min(80%, 340px); }
  .pf-cap { margin-top: 14px; }
  .pf-title { font-size: 17px; }
  .pf-sticker { padding: 4px; border-radius: 13px; }
  .pf-sticker > span { gap: 4px; padding: 8px 11px 7px; border-radius: 9px; }
  .pf-sticker b { font-size: 12.5px; }
  .pf-sticker small { font-size: 8.5px; }
}

/* ============================================================
   Dark theme — night lighting. Players lift off the near-black
   page (lighter base, hairline, a faint glow in their own colour);
   phone screens are recordings, so they keep the app's palette.
   ============================================================ */
:root[data-theme="dark"] .pf-player {
  --pf-glow: rgba(255, 79, 20, .1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 34px 70px -34px rgba(0, 0, 0, .95), 0 30px 90px -40px var(--pf-glow);
}
:root[data-theme="dark"] .pf-player--cloud { --pf-glow: rgba(143, 195, 230, .16); }
:root[data-theme="dark"] .pf-player::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .pf-player--cloud .pf-amb {
  background:
    radial-gradient(44% 38% at 50% 46%, rgba(143, 195, 230, .24), transparent 72%),
    radial-gradient(80% 50% at 50% 108%, rgba(42, 121, 176, .3), transparent 70%),
    linear-gradient(180deg, #1B1F23, #13161A);
}
:root[data-theme="dark"] .pf-player--story .pf-amb {
  background:
    radial-gradient(44% 38% at 50% 52%, rgba(255, 112, 52, .26), transparent 72%),
    radial-gradient(80% 50% at 50% 108%, rgba(196, 64, 24, .32), transparent 70%),
    linear-gradient(180deg, #1E1B21, #161418);
}
:root[data-theme="dark"] .pf-scr { --cable-ink: #2A79B0; --cable-wash: #E3F0F8; }
:root[data-theme="dark"] .pf-dev .pf-scr { filter: brightness(.93); }
:root[data-theme="dark"] .pf-play-ico { color: #121314; }
:root[data-theme="dark"] .pf-dur { box-shadow: 0 0 0 1px var(--line-2), 0 6px 14px -8px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .pf-sticker { box-shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 16px 30px -10px rgba(0, 0, 0, .85); }

/* touch screens: the chip and the camera HUD sit over a playing recording, so a blur behind them is redone on
   every frame; a deeper fill instead */
@media (pointer: coarse) {
  .pf-chip, .pf-c-hud { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 18, 20, .78); }
}

/* ===== pricing ===== */
/* ============================================================
   09 — Pricing  (.pr-)   Figma 92:4197. Absorbed "Pick a phone": the API line, the cloud/real switch.
   ============================================================ */
.pr { padding-block: min(var(--section-y), 27px) min(var(--section-y), 13px); }   /* tight, like the design: proof above ends with its own 36px. Captions → eyebrow: 62px box / 70px ink, as in Figma */

/* ---------- header ---------- */
.pr .pr-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.pr .pr-head .t-lede { max-width: 510px; margin-top: 22px; }

/* ---------- one API line (above the cards) ---------- */
.pr .pr-api {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  font: 400 13px/1.4 var(--f-mono);
  color: var(--mute);
  text-align: center;
}
.pr .pr-api > span:first-child { text-wrap: balance; }
.pr .pr-api-code { display: inline-flex; align-items: center; gap: 8px; }
.pr .pr-api-code .ico { width: 14px; height: 14px; color: var(--mute-2); }
.pr .pr-api code {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  font: 500 12.5px/1 var(--f-mono);
}
.pr .pr-c-cloud { color: var(--cable-ink); }
.pr .pr-c-real { color: var(--signal-ink); }

/* ---------- plan cards ---------- */
.pr .pr-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin-inline: auto;
  padding-block: 48px 25px;   /* top: room for the tape; the featured card overhangs by 24 / 25 */
}
.pr .pr-plan {
  --pr-c: var(--cable-ink);
  --pr-spot: rgba(42, 121, 176, .07);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  min-width: 0;
}
/* pointer spotlight (x.ai-style), painted between card bg and content */
.pr .pr-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--pr-spot), transparent 62%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
.pr .pr-plan:hover::before { opacity: 1; }
.pr .pr-plan--fleet { --pr-c: var(--ink-2); --pr-spot: rgba(18, 19, 20, .045); }

.pr .pr-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr .pr-name { font: 500 20px/1.2 var(--f-head); letter-spacing: -.02em; }
.pr .pr-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.pr .pr-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--cable-ink); flex: none; }
.pr .pr-plan--real .pr-dot { width: 11px; height: 11px; background: var(--signal); }
/* enterprise = both kinds of phone */
.pr .pr-plan--fleet .pr-dot { background: conic-gradient(var(--cable-ink) 0 50%, var(--signal) 0); transform: rotate(45deg); }

.pr .pr-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 40px;
  font-variant-numeric: tabular-nums;
}
.pr .pr-amt { font: 500 52px/1.44 var(--f-head); letter-spacing: -.048em; }
.pr .pr-unit { font: 500 15px/1 var(--f-display); color: var(--mute); letter-spacing: -.01em; }
.pr .pr-desc { min-height: 2.9em; font-size: 14.5px; line-height: 1.45; color: var(--mute); text-wrap: pretty; }

.pr .pr-checks {
  display: grid; gap: 13px;
  margin: 22px 0 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pr .pr-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.pr .pr-checks .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--pr-c); stroke-width: 2.2; flex: none; }
.pr .pr-cta { --h: 46px; margin-top: auto; align-self: flex-start; padding-inline: 21px; gap: 6px; }
.pr .pr-cta.btn--ghost { background: var(--paper-2); box-shadow: none; }
.pr .pr-cta.btn--ghost:hover { background: var(--paper-3); }

/* ---------- cloud: Unlimited | Per session ---------- */
.pr .pr-plan--cloud { padding-top: 10px; }
.pr .pr-plan--cloud .pr-price { margin-top: 32px; }
.pr .pr-seg {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 -16px 18px;
  padding: 3px;
  border-radius: 999px;
  background: #ECECEC;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .02);
}
/* the orange thumb slides under the labels */
.pr .pr-seg::before {
  content: '';
  position: absolute; inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #D23A04;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 10px 24px -10px rgba(255, 79, 20, .7);
  transition: transform .4s var(--ease-out);
}
.pr .pr-plan--cloud[data-mode="session"] .pr-seg::before { transform: translateX(100%); }
.pr .pr-seg-btn {
  position: relative;
  height: 36px;
  border-radius: 999px;
  font: 500 14px/1 var(--f-mono);
  letter-spacing: -.04em;
  color: var(--ink);
  transition: color .3s;
}
.pr .pr-seg-btn[aria-pressed="true"] { color: #fff; }
.pr .pr-seg-btn[aria-pressed="false"]:hover { color: var(--signal-ink); }
.pr .pr-seg-btn:focus-visible { outline-offset: 1px; }

/* both price blocks share one grid cell, so the card never changes height when you switch */
.pr .pr-modes { display: grid; }
.pr .pr-mode {
  grid-area: 1 / 1;
  display: flex; flex-direction: column;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s;
}
.pr .pr-plan--cloud:not([data-mode="session"]) .pr-mode--session,
.pr .pr-plan--cloud[data-mode="session"] .pr-mode--unlimited {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;   /* off the a11y tree too */
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}

/* ---------- featured: real phone ---------- */
.pr .pr-plan--real {
  --pr-c: var(--signal-2);
  --pr-spot: rgba(255, 79, 20, .14);
  margin-block: -24px -25px;
  padding-block: 44px 42px;
  background-image:
    radial-gradient(120% 55% at 50% -12%, rgba(255, 79, 20, .2), transparent 62%),
    linear-gradient(180deg, #202427, #16191B 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 122, 69, .35),
    0 0 0 1px rgba(255, 255, 255, .06),
    0 34px 70px -28px rgba(255, 79, 20, .5),
    0 30px 60px -30px rgba(0, 0, 0, .55);
}
.pr .pr-plan--real .pr-tag,
.pr .pr-plan--real .pr-unit,
.pr .pr-plan--real .pr-desc { color: var(--on-dark-mute); }
.pr .pr-plan--real .pr-amt { color: #fff; letter-spacing: -.018em; }   /* Figma: the $89 is tracked looser than the other prices */
.pr .pr-plan--real .pr-checks { border-top-color: var(--line-dark); }
.pr .pr-plan--real .pr-checks li { color: var(--on-dark); }
.pr .pr-plan--real .pr-cta { --h: 44px; }   /* Figma: 44 here, 46 on the light cards */
.pr .pr-tape { position: absolute; top: -13px; right: 19px; z-index: 2; font-size: 18px; }

/* ---------- the switch: device="cloud" <-> device="real" ---------- */
.pr .pr-switch { margin-top: 37px; display: flex; justify-content: center; }
.pr .pr-pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 18px;
  padding: 10px 26px 10px 22px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--card-edge), var(--shadow-2);   /* no stroke, like the cards */
}
.pr .pr-line { display: inline-flex; align-items: center; font: 400 14px/30px var(--f-mono); color: var(--ink); white-space: nowrap; }
.pr .pr-p { color: var(--mute-2); }
.pr .pr-arg { color: var(--mute); }
.pr .pr-valwrap { position: relative; display: inline-flex; }
.pr .pr-val {
  --w: 7;
  position: relative;
  height: 30px; width: calc(var(--w) * 1ch + 16px);
  padding: 0 8px; margin: 0 1px;
  border-radius: 8px;
  font: inherit; text-align: left;
  background: var(--cable-wash);
  box-shadow: inset 0 0 0 1px rgba(42, 121, 176, .22);
  transition: width .55s var(--ease-out), background-color .5s, box-shadow .5s;
}
.pr .pr-val:hover { box-shadow: inset 0 0 0 1px rgba(42, 121, 176, .5); }
/* 40px-tall touch target around the 30px inline chip; the reel window clips instead of the button so this isn't cut */
.pr .pr-val::before { content: ''; position: absolute; inset: -5px -4px; }
.pr .pr-win { display: block; height: 30px; overflow: hidden; }
.pr .pr-reel { display: block; transform: translateY(calc(var(--p, 0) * -30px)); transition: transform .75s cubic-bezier(.3, 1.4, .5, 1); }
.pr .pr-reel.is-snap { transition: none; }
.pr .pr-reel span { display: block; height: 30px; color: var(--cable-ink); }
.pr .pr-reel span:nth-child(even) { color: var(--signal-ink); }
.pr[data-on="real"] .pr-val { --w: 6; background: var(--signal-wash); box-shadow: inset 0 0 0 1px rgba(210, 58, 4, .22); }
.pr[data-on="real"] .pr-val:hover { box-shadow: inset 0 0 0 1px rgba(210, 58, 4, .5); }
.pr .pr-sep { width: 1px; height: 20px; background: var(--line-2); }
.pr .pr-switch-tag { font: 400 15px/1.3 var(--f-display); letter-spacing: -.01em; color: var(--mute); }

/* hand-drawn hint under the toggle */
.pr .pr-note {
  position: absolute; left: 50%; top: calc(100% + 6px);
  display: flex; align-items: flex-end; gap: 2px;
  font-size: 19px; line-height: 1; color: var(--ink-2); white-space: nowrap;
  transform: rotate(-4deg); transform-origin: 0 0;
  transition: opacity .4s;
  pointer-events: none;
}
.pr .pr-note svg { width: 30px; height: 24px; flex: none; margin-bottom: 4px; }
.pr.is-touched .pr-note { opacity: 0; }

/* ---------- dark theme: night lighting on the same bench ---------- */
:root[data-theme="dark"] .pr .pr-plan {
  --pr-spot: rgba(143, 195, 230, .08);
  box-shadow: var(--card-edge), inset 0 1px 0 rgba(255, 255, 255, .035), var(--shadow-1);
}
:root[data-theme="dark"] .pr .pr-plan--fleet { --pr-spot: rgba(255, 255, 255, .045); }
/* graphite card on a near-black page: lift the tone, add a hairline + the orange glow */
:root[data-theme="dark"] .pr .pr-plan--real {
  --pr-spot: rgba(255, 79, 20, .16);
  background-image:
    radial-gradient(120% 55% at 50% -12%, rgba(255, 79, 20, .24), transparent 62%),
    linear-gradient(180deg, #25292D, #1A1D20 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 122, 69, .4),
    0 0 0 1px rgba(255, 255, 255, .1),
    0 30px 70px -34px rgba(255, 79, 20, .34),
    0 30px 60px -30px rgba(0, 0, 0, .8);
}
:root[data-theme="dark"] .pr .pr-seg { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .pr .pr-cta.btn--ghost { background: var(--paper-3); }
:root[data-theme="dark"] .pr .pr-cta.btn--ghost:hover { background: var(--graphite-4); }
:root[data-theme="dark"] .pr .pr-val { box-shadow: inset 0 0 0 1px rgba(143, 195, 230, .28); }
:root[data-theme="dark"] .pr .pr-val:hover { box-shadow: inset 0 0 0 1px rgba(143, 195, 230, .55); }
:root[data-theme="dark"] .pr[data-on="real"] .pr-val { box-shadow: inset 0 0 0 1px rgba(255, 115, 64, .32); }
:root[data-theme="dark"] .pr[data-on="real"] .pr-val:hover { box-shadow: inset 0 0 0 1px rgba(255, 115, 64, .6); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  /* stacked: cloud, the featured real phone, enterprise */
  .pr .pr-plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 20px; padding-block: 36px 0; }
  .pr .pr-plan--real { margin-block: 0; padding-block: 28px 26px; }
  .pr .pr-desc { min-height: 0; }
  .pr .pr-cta { margin-top: 0; }
}
@media (max-width: 640px) {
  .pr .pr-head { margin-bottom: 32px; }
  .pr .pr-price { margin-top: 26px; }
  .pr .pr-api { font-size: 12px; }
  .pr .pr-plan { padding-inline: 20px; }
  .pr .pr-plan--cloud { padding-top: 8px; }
  .pr .pr-seg { margin-inline: -12px; }
  .pr .pr-cta { align-self: stretch; }
  .pr .pr-switch { margin-top: 32px; }
  .pr .pr-pill { border-radius: 22px; padding: 12px 18px 14px; flex-direction: column; gap: 6px; }
  .pr .pr-sep { display: none; }
  .pr .pr-switch-tag { font-size: 14px; text-align: center; }
  .pr .pr-note { display: none; }
}
@media (max-width: 360px) {
  .pr .pr-line { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr .pr-plan::before { display: none; }
  .pr .pr-seg::before, .pr .pr-mode { transition: none !important; }
}

.pr-enterprise{display:block;text-align:center;font-size:12px;margin-top:14px;color:var(--mute);text-decoration:underline;text-underline-offset:4px}
.pr-plan--real .pr-enterprise{color:#c3c7c6}

/* ===== closing ===== */
/* ============================================================
   closing — FAQ, ending CTA panel (#start), footer + signature bar
   ============================================================ */
.cl-qa { padding-bottom: 0; }   /* the ending panel's margin sets the gap below the FAQ */

/* ---------------- Book a call ---------------- */
.bk { padding-bottom: 0; scroll-margin-top: 80px; }
.bk-head { max-width: 800px; margin: 0 auto 44px; text-align: center; }
.bk-title { font-size: clamp(44px, 5.1vw, 76px); line-height: 1.04; text-wrap: balance; }
.bk-accent { color: var(--signal-ink); }
.bk-lede { max-width: 680px; margin: 24px auto 0; }
.bk-calendar-frame {
  position: relative;
  min-width: 0;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--card-edge), var(--shadow-1);
  overflow: hidden;
}
.bk-calendar { width: 100%; min-height: 620px; }
.bk-calendar iframe { display: block; width: 100%; }
.bk-loading { position: absolute; top: 32px; left: 24px; right: 24px; text-align: center; pointer-events: none; }
.bk-loading[hidden] { display: none; }
.bk-fallback { margin-top: 20px; text-align: center; }
@media (max-width: 760px) {
  .bk-head { margin-bottom: 30px; }
  .bk-title { font-size: clamp(40px, 8.5vw, 64px); }
  .bk-lede { margin-top: 20px; }
  .bk-br { display: none; }
  .bk-calendar { min-height: 780px; }
  .bk-calendar-frame { border-radius: var(--r-md); }
  .bk-fallback { font-size: 13px; }
}

/* ---------------- FAQ ---------------- */
.cl-faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.cl-faq__head { position: sticky; top: 120px; }
.cl-faq__head .t-h2 { margin-bottom: 28px; }
.cl-faq__more { font-size: 16px; }
.cl-link {
  padding-block: 10px;   /* inline: grows the tap target to ~40px without moving the line */
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--line-2);
  text-underline-offset: 5px;
  transition: color .2s, text-decoration-color .2s, text-underline-offset .25s var(--ease-out);
}
.cl-link:hover { color: var(--signal-ink); text-decoration-color: var(--signal); text-underline-offset: 7px; }

/* craft: tape label + marker arrow pointing back at the demo link */
.cl-note { position: relative; height: 70px; margin-top: 4px; pointer-events: none; }   /* decorative; never covers the demo link */
.cl-note__arrow { position: absolute; left: 118px; top: 0; width: 52px; height: 44px; overflow: visible; }
.cl-note .tape { position: absolute; left: 172px; top: 30px; white-space: nowrap; }

.cl-faq__list { display: grid; gap: 10px; padding-top: 8px; }   /* first card top lines up with the eyebrow */
.cl-q {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--card-edge);   /* Figma: closed cards are flat, only the open one lifts */
  overflow: hidden;
  transition:
    box-shadow .35s var(--ease-out),
    opacity .8s var(--ease-out) calc(var(--d, 0) * 70ms),
    transform .9s var(--ease-out) calc(var(--d, 0) * 70ms);
}
.cl-q[open]:not(.is-closing) { box-shadow: var(--card-edge), var(--shadow-1); }
.cl-q > summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 30px;
  gap: 14px;
  align-items: start;
  padding: 22px 22px 22px 24px;
  list-style: none;
  cursor: pointer;
  font: 500 19.5px/1.35 var(--f-head);
  letter-spacing: -.018em;
  text-wrap: balance;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.cl-q > summary::-webkit-details-marker { display: none; }
.cl-q > summary:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.cl-q__n {
  padding-top: 7px;
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .04em;
  color: var(--mute-2);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.cl-q[open]:not(.is-closing) .cl-q__n { color: var(--signal); }

/* + / − : both bars spin half a turn and settle flat */
.cl-pm {
  position: relative;
  width: 30px; height: 30px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: background-color .35s var(--ease-out), box-shadow .35s;
}
.cl-pm::before, .cl-pm::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.6px;
  margin: -.8px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease-out), background-color .35s;
}
.cl-pm::after { transform: rotate(90deg); }
.cl-q > summary:hover .cl-pm { box-shadow: 0 0 0 1px var(--line-2) inset; }
.cl-q[open]:not(.is-closing) .cl-pm { background: var(--ink); box-shadow: none; }
.cl-q[open]:not(.is-closing) .cl-pm::before,
.cl-q[open]:not(.is-closing) .cl-pm::after { background: var(--paper); transform: rotate(180deg); }

.cl-a { padding: 0 66px 26px 64px; }
.cl-a p { max-width: 60ch; font-size: 15.5px; line-height: 1.62; color: var(--mute); text-wrap: pretty; }
.cl-q[open]:not(.is-closing) .cl-a { animation: cl-a-in .6s var(--ease-out) both; }
.cl-q.is-closing .cl-a { opacity: 0; transition: opacity .18s; }
@keyframes cl-a-in { from { opacity: 0; transform: translateY(-6px); } }

.cl-k { font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.cl-k::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 7px 1px 1px;
  border-radius: 50%;
  background: var(--cable);
  box-shadow: 0 0 0 3px var(--cable-wash);
}
.cl-k--real::before { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash); }
.cl-code { padding: 2px 7px 3px; border-radius: 6px; font: 500 .86em/1 var(--f-mono); white-space: nowrap; }
.cl-code--cloud { background: var(--cable-wash); color: var(--cable-ink); }
.cl-code--real { background: var(--signal-wash); color: var(--signal-ink); }
.cl-num { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------- ENDING (#start) ---------------- */
.cl-end {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: var(--section-y) clamp(12px, 1.1vw, 16px) 0;
  padding: clamp(112px, 9.9vw, 148px) var(--gutter) clamp(120px, 11.15vw, 164px);   /* Figma @1440: 142 / 160, panel 862 */
  border-radius: 40px;
  background:
    radial-gradient(120% 70% at 50% 0%, #1A1D20 0%, rgba(26, 29, 32, 0) 60%),
    var(--graphite);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -50px rgba(18, 19, 20, .6);
  text-align: center;
  transform-origin: 50% 0;
  --cl-pool: 19, 21, 23;   /* panel base colour, shared by the dark pool + meta halo */
}
.cl-rack {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  -webkit-mask: radial-gradient(78% 92% at 50% 34%, #000 52%, transparent 100%);
  mask: radial-gradient(78% 92% at 50% 34%, #000 52%, transparent 100%);
}
/* dark pool behind the copy so it always reads */
.cl-end::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(var(--cl-pw, 38%) var(--cl-ph, 26%) at 50% var(--cl-py, 66%), rgba(var(--cl-pool), .94) 40%, rgba(var(--cl-pool), 0) 100%);
}
.cl-end__corner {
  position: absolute;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 11px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  font-variant-numeric: tabular-nums;
}
.cl-end__corner i { width: 14px; height: 1px; background: currentColor; opacity: .5; }
.cl-end__corner--l { left: 36px; }
.cl-end__corner--r { right: 36px; }
.cl-end__in { display: flex; flex-direction: column; align-items: center; max-width: 1000px; margin-inline: auto; }
.cl-end .eyebrow { margin-bottom: 32px; color: var(--on-dark-mute); }
.cl-end__title { line-height: 1.024; color: var(--on-dark); text-wrap: balance; }   /* Figma: 122 / 124.9 */
.cl-end__lede { max-width: 33ch; margin-top: 30px; }
.cl-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(40px, 6.25vw, 90px); }   /* design: the CTAs sit well clear of the lede */
/* Figma: 44px pills (the mono label comes from .btn) */
.cl-ctas .btn { --h: 44px; padding-inline: 16px; gap: 6px; }
.cl-ctas .cl-copy { padding-inline: 18px; }
.cl-end__meta { justify-content: center; margin-top: 28px; color: var(--on-dark-mute); text-shadow: 0 0 6px rgb(var(--cl-pool)), 0 0 2px rgb(var(--cl-pool)); }
.cl-copy__ok { display: none; }
.cl-copy.is-copied .cl-copy__i { display: none; }
.cl-copy.is-copied .cl-copy__ok { display: block; color: var(--led); }

/* ---------------- FOOTER ---------------- */
.cl-foot { padding-block: clamp(56px, 4.9vw, 70px) clamp(28px, 3.4vw, 44px); }
.cl-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
}
.cl-logo { display: inline-flex; align-items: center; gap: 8px; font: 600 22px/1 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.cl-logo__i { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.cl-brand__line { max-width: 30ch; margin-top: 18px; }
.cl-brand__c { margin-top: 26px; color: var(--mute); }
.cl-cols { display: grid; grid-template-columns: repeat(3, minmax(132px, auto)); gap: 36px clamp(32px, 5.5vw, 96px); }
.cl-col__h { margin-bottom: 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.cl-col ul { display: grid; gap: 12px; }
.cl-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.cl-col a:hover { color: var(--ink); text-decoration-color: var(--line-2); }
.cl-col .dot { box-shadow: 0 0 0 3px var(--led-wash); }

/* ---------------- SIGNATURE: T-slot extrusion, laser-etched ---------------- */
.cl-sig { container-type: inline-size; margin-top: clamp(56px, 7vw, 96px); }
.cl-bar {
  --h: max(72px, 13.2cqi);
  --mx: 32%;
  position: relative;
  height: var(--h);
  display: grid;
  place-items: center;
  border-radius: calc(var(--h) * .05);
  background:
    radial-gradient(18% 130% at var(--mx) 0%, rgba(255, 255, 255, .075), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='160'%3E%3Cfilter id='b' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003125 .85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .34 0 0 0 -.13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 640px 160px,
    linear-gradient(180deg, #50565C 0, #2C3034 1.6%, #1F2225 5%, #1A1C1F 48%, #151719 90%, #0D0E0F 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .7),
    inset 2px 0 0 rgba(0, 0, 0, .35),
    inset -2px 0 0 rgba(0, 0, 0, .35),
    var(--cl-drop, 0 2px 2px rgba(30, 22, 8, .16), 0 26px 40px -22px rgba(30, 22, 8, .5), 0 60px 90px -50px rgba(30, 22, 8, .4));
}
.cl-slot {
  position: absolute;
  left: 0; right: 0;
  height: 6%;
  background: linear-gradient(180deg, #020303 0%, #070809 40%, #121416 72%, #1B1E21 88%, #090A0B 100%);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .075);
}
.cl-slot--t { top: 8%; }
.cl-slot--b { bottom: 8%; }
.cl-bolt {
  --s: calc(var(--h) * .3);
  position: absolute;
  top: 50%;
  width: var(--s); height: var(--s);
  margin-top: calc(var(--s) / -2);
  border-radius: 50%;
  background:
    conic-gradient(from 10deg, rgba(255, 255, 255, .1), transparent 18%, rgba(255, 255, 255, .06) 42%, transparent 62%, rgba(255, 255, 255, .09) 86%, rgba(255, 255, 255, .1)),
    radial-gradient(circle at 42% 30%, #646A70 0%, #33373B 38%, #1A1D1F 72%, #0F1112 100%);
  box-shadow:
    0 0 0 calc(var(--s) * .07) #08090A,
    0 0 0 calc(var(--s) * .07 + 1px) rgba(255, 255, 255, .07),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -2px 4px rgba(0, 0, 0, .55);
  transform: rotate(var(--r));
}
.cl-bolt::after {
  content: '';
  position: absolute;
  inset: 29%;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  background: linear-gradient(180deg, #000 0%, #0B0C0D 55%, #2A2E32 100%);
}
.cl-bolt--l { left: calc(var(--h) * .3); --r: 14deg; }
.cl-bolt--r { right: calc(var(--h) * .3); --r: -23deg; }
.cl-micro {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 1em;
  transform: translateY(-50%);
  font: 500 max(10px, calc(var(--h) * .068))/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7F858A;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .05);
  white-space: nowrap;
}
.cl-micro--l { left: calc(var(--h) * .82); }
.cl-micro--r { right: calc(var(--h) * .82); }
.cl-led {
  position: relative;
  width: max(6px, calc(var(--h) * .052));
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #E2FFEC 0%, #63E290 32%, var(--led) 62%, #1C7D40 100%);
  box-shadow: 0 0 0 2px #070808, 0 0 0 3px rgba(255, 255, 255, .06);
}
.cl-led::after {
  content: '';
  position: absolute;
  inset: -260%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 191, 99, .55) 0%, rgba(47, 191, 99, .16) 32%, rgba(47, 191, 99, 0) 66%);
  animation: cl-breathe 3.4s ease-in-out infinite;
}
@keyframes cl-breathe { 50% { opacity: .45; } }

.cl-mark { position: relative; display: block; height: calc(var(--h) * .58); }
.cl-mark svg { width: auto; height: 100%; overflow: visible; font: 600 128px/1 var(--f-display); letter-spacing: -.045em; }  /* inherited by the <use> clones */
.cl-laser { position: absolute; inset: -6% 0; opacity: 0; pointer-events: none; }
.cl-laser::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #FFE9DC 18%, #fff 50%, #FFE9DC 82%, transparent);
  box-shadow: 0 0 8px 2px rgba(255, 122, 69, .85), 0 0 26px 7px rgba(255, 79, 20, .45);
}
/* etch-in, armed by JS so the mark is never hidden without it */
.cl-bar.is-armed .cl-mark svg { clip-path: inset(-12% 100% -12% 0); }
.cl-bar.is-armed.is-etched .cl-mark svg {
  animation: cl-etch 1.9s cubic-bezier(.45, .05, .5, .95) .15s both, cl-cool 3.2s ease-out .15s both;
}
.cl-bar.is-armed.is-etched .cl-laser { animation: cl-laser 1.9s cubic-bezier(.45, .05, .5, .95) .15s both; }
@keyframes cl-etch { from { clip-path: inset(-12% 100% -12% 0); } to { clip-path: inset(-12% 0 -12% 0); } }
@keyframes cl-cool {
  0%, 45% { filter: drop-shadow(0 0 6px rgba(255, 110, 50, .55)) brightness(1.25); }
  100% { filter: drop-shadow(0 0 0 rgba(255, 110, 50, 0)) brightness(1); }
}
@keyframes cl-laser {
  0% { opacity: 0; transform: translateX(-100%); }
  5%, 93% { opacity: 1; }
  100% { opacity: 0; transform: translateX(0); }
}

/* ---------------- dark theme: same objects, night lighting ---------------- */
/* the ending panel is lifted off the near-black page: lighter graphite, hairline rim, faint cable-blue glow */
:root[data-theme="dark"] .cl-end {
  --cl-pool: 27, 29, 33;
  background:
    radial-gradient(120% 70% at 50% 0%, #272A30 0%, rgba(39, 42, 48, 0) 60%),
    rgb(var(--cl-pool));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 0 0 1px rgba(255, 255, 255, .07),
    0 40px 120px -40px rgba(143, 195, 230, .12),
    0 30px 60px -30px rgba(0, 0, 0, .8);
}
/* the extrusion keeps its look; its shadow becomes a black contact shadow + a hairline rim so it lifts off the page */
:root[data-theme="dark"] .cl-bar { --cl-drop: 0 0 0 1px rgba(255, 255, 255, .05), 0 2px 3px rgba(0, 0, 0, .6), 0 26px 40px -22px rgba(0, 0, 0, .85), 0 60px 90px -50px rgba(0, 0, 0, .7); }
/* tape is paper: the mask eats its own shadow, so cast it from the wrapper */
:root[data-theme="dark"] .cl-note { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)) drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
:root[data-theme="dark"] .cl-q[open]:not(.is-closing) { box-shadow: var(--card-edge), inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-1); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .cl-faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cl-faq__head { position: static; }
  .cl-faq__list { padding-top: 0; }
  .cl-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .cl-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* touch targets: 40px rows, no gap, so the list keeps roughly its desktop pitch */
  .cl-col__h { margin-bottom: 8px; }
  .cl-col ul { gap: 0; }
  .cl-col a { min-height: 40px; }
}
@media (max-width: 640px) {
  .cl-note { height: 62px; }
  .cl-note__arrow { left: 104px; }
  .cl-note .tape { left: 156px; font-size: 17px; }
  .cl-q > summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 12px; padding: 18px 16px 18px 18px; font-size: 17.5px; }
  .cl-q__n { display: none; }
  .cl-pm { width: 28px; height: 28px; margin-top: -2px; }
  .cl-a { padding: 0 18px 20px; }
  .cl-a p { font-size: 15px; }
  .cl-end { margin-top: 96px; border-radius: 28px; padding-block: 104px 96px; }
  .cl-end__title { font-size: clamp(44px, 13.4vw, 64px); }
  .cl-end__corner { top: 22px; font-size: 10px; letter-spacing: .08em; }
  .cl-end__corner--l { left: 22px; }
  .cl-end__corner--r { display: none; }
  .cl-end__lede { margin-top: 22px; }
  .cl-ctas { flex-direction: column; align-self: stretch; margin-top: 32px; }
  .cl-ctas .btn { width: 100%; }
  .cl-end__meta { gap: 8px 18px; }
  .cl-end__meta span + span::before { content: none; }
  .cl-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .cl-micro { display: none; }
}


/* ---------------- conveyor on top of the extrusion: machines ride past like a ticker ---------------- */
.cl-line {
  --u-w: clamp(118px, 13.6cqi, 170px);         /* one machine, sprite frame is 340×240 */
  --u-h: calc(var(--u-w) * 240 / 340);
  --slot: calc(var(--u-w) * 1.08);
  --belt: clamp(9px, 1cqi, 12px);
  position: relative;
  height: calc(var(--u-h) + var(--belt));
  margin: 0 calc(var(--belt) * .4) calc(var(--belt) * -.5);
  z-index: 1;
}
.cl-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cl-set, .cl-set + .cl-set { display: flex; position: absolute; left: 0; bottom: 0; height: 100%; width: max-content; }
.cl-track > .cl-set { animation: cl-ticker var(--cl-dur, 48s) linear infinite; }
.cl-track > .cl-set + .cl-set { left: var(--cl-w, 0px); }
@keyframes cl-ticker { to { transform: translateX(calc(-1 * var(--cl-w, 0px))); } }
.cl-slot-u {
  position: relative;
  width: var(--slot);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* the belt rides with the machines: ribs are part of every slot */
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 12px) left bottom / 100% var(--belt) no-repeat,
    linear-gradient(#2a2d31, #141618) left bottom / 100% var(--belt) no-repeat;
}
.cl-unit {
  display: block;
  width: var(--u-w);
  height: var(--u-h);
  margin-bottom: calc(var(--belt) - 3px);
  background: var(--sprite) 0 0 / calc(var(--u-w) * 40) var(--u-h) no-repeat;
  animation: cl-work 5s steps(40) infinite;
  animation-delay: var(--ph, 0s);
}
@keyframes cl-work { to { background-position-x: calc(var(--u-w) * -40); } }
.cl-roller {
  position: absolute;
  bottom: calc(var(--belt) * -.25);
  width: calc(var(--belt) * 1.6);
  height: calc(var(--belt) * 1.6);
  border-radius: 50%;
  background: conic-gradient(#3a3f44 0 25%, #1b1d20 0 50%, #3a3f44 0 75%, #1b1d20 0);
  box-shadow: inset 0 0 0 2px #0e0f10, 0 2px 4px rgba(0, 0, 0, .3);
  animation: cl-roll 1.1s linear infinite;
}
.cl-roller--l { left: calc(var(--belt) * -.7); }
.cl-roller--r { right: calc(var(--belt) * -.7); }
@keyframes cl-roll { to { transform: rotate(-1turn); } }
.cl-line.is-paused .cl-set, .cl-line.is-paused .cl-unit, .cl-line.is-paused .cl-roller { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .cl-track > .cl-set, .cl-unit, .cl-roller { animation: none; }
  .cl-unit { background-position-x: calc(var(--u-w) * -6); }
}
