/* =====================================================================
   XETRN design system (shared by every artboard; uploaded as an asset)
   Tokens · type · layout · components · motion · responsive · a11y
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
.xt {
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --gap: 12px;
  --shadow-1: 0 1px 2px rgba(17,17,17,.04), 0 2px 6px rgba(17,17,17,.04);
  --shadow-2: 0 1px 2px rgba(17,17,17,.05), 0 8px 20px -6px rgba(17,17,17,.10), 0 24px 48px -16px rgba(17,17,17,.12);
  --shadow-3: 0 2px 4px rgba(0,0,0,.06), 0 18px 36px -10px rgba(0,0,0,.22), 0 60px 90px -30px rgba(0,0,0,.35);
}
.t-light {
  --page: #EBEBE7; --panel: #F8F8F6; --card: #FFFFFF; --sunk: #F1F1ED;
  --hair: rgba(17,17,17,.08); --hair2: rgba(17,17,17,.14);
  --ink: #111111; --ink2: #54544E; --dim: #8D8D87;
  --black: #0B0B0C; --black-hair: #232326; --glass: rgba(248,248,246,.72);
  --peri: #8E9BE8; --peri-ink: #0B1233; --peri-dim: #E7EBFF;
  --share-bg: #FDECE7; --share-fg: #2B0E09; --share-acc: #F06A55; --share-on: #FFFFFF;
  --boot-bg: #2E35E6; --boot-fg: #F2F3FF; --boot-acc: #A9B6FF; --boot-on: #0A0F45;
  --split-bg: #0B1222; --split-fg: #E4F3FF; --split-acc: #2BC4EE; --split-on: #04131D;
  --still-bg: #E2EAFF; --still-fg: #0A1636; --still-acc: #3B6CF0; --still-on: #FFFFFF;
  --icon-ring: inset 0 0 0 1px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.4);
  color-scheme: light;
}
.t-dark {
  --page: #060607; --panel: #0F0F11; --card: #17171A; --sunk: #131316;
  --hair: rgba(255,255,255,.08); --hair2: rgba(255,255,255,.14);
  --ink: #F3F3F0; --ink2: #A6A6A1; --dim: #6C6C68;
  --black: #131315; --black-hair: #26262A; --glass: rgba(15,15,17,.66);
  --peri: #7D8AE0; --peri-ink: #070C26; --peri-dim: #1A1F3D;
  --share-bg: #2A1411; --share-fg: #FFE4DE; --share-acc: #FF8B76; --share-on: #2A0B05;
  --boot-bg: #171B7A; --boot-fg: #E9EBFF; --boot-acc: #9AA8FF; --boot-on: #0A0F45;
  --split-bg: #0C1630; --split-fg: #E4F3FF; --split-acc: #4ED3F5; --split-on: #04131D;
  --still-bg: #0F1B3E; --still-fg: #E2EAFF; --still-acc: #6E93FF; --still-on: #071029;
  --icon-ring: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.18);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.5), 0 12px 28px -8px rgba(0,0,0,.6);
  color-scheme: dark;
}
/* Per-app scope: components read --a-* */
.app-share { --a-bg: var(--share-bg); --a-fg: var(--share-fg); --a-acc: var(--share-acc); --a-on: var(--share-on); }
.app-boot  { --a-bg: var(--boot-bg);  --a-fg: var(--boot-fg);  --a-acc: var(--boot-acc);  --a-on: var(--boot-on); }
.app-split { --a-bg: var(--split-bg); --a-fg: var(--split-fg); --a-acc: var(--split-acc); --a-on: var(--split-on); }
.app-still { --a-bg: var(--still-bg); --a-fg: var(--still-fg); --a-acc: var(--still-acc); --a-on: var(--still-on); }
/* Dark surfaces: anything inside reads ink as light */
.on-black { --ink: #F4F4F1; --ink2: #A6A6A2; --dim: #6E6E6A; --hair: rgba(255,255,255,.1); --hair2: rgba(255,255,255,.18); --card: #18181B; color: var(--ink); }
.on-app { --ink: var(--a-fg); --ink2: color-mix(in srgb, var(--a-fg) 76%, transparent); --dim: color-mix(in srgb, var(--a-fg) 52%, transparent); --hair: color-mix(in srgb, var(--a-fg) 16%, transparent); --hair2: color-mix(in srgb, var(--a-fg) 30%, transparent); color: var(--a-fg); }
.on-peri { --ink: var(--peri-ink); --ink2: color-mix(in srgb, var(--peri-ink) 78%, transparent); --dim: #EEF1FF; --hair: rgba(11,18,51,.18); color: var(--peri-ink); }

/* ---------- 2. Base ---------- */
.xt { font-family: var(--font); background: var(--page); color: var(--ink); min-height: 100vh; padding: 0 0 12px; box-sizing: border-box; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .3s var(--ease), color .3s var(--ease); }
.xt *, .xt *::before, .xt *::after { box-sizing: border-box; }
.xt img { max-width: 100%; }
:where(.xt) a { color: inherit; }
.xt ::selection { background: var(--peri); color: var(--peri-ink); }
.xt a:focus-visible, .xt button:focus-visible, .xt [tabindex]:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 10px; }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background-image: url(/assets/img/grain.png); background-size: 180px; opacity: .55; mix-blend-mode: overlay; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--panel); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- 3. Type ---------- */
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.t-hero { font-size: clamp(3rem, 7.6vw, 7.4rem); line-height: .96; letter-spacing: -.052em; font-weight: 600; margin: 0; text-wrap: balance; }
.t-h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); line-height: .95; letter-spacing: -.05em; font-weight: 600; margin: 0; text-wrap: balance; }
.t-h2 { font-size: clamp(2.3rem, 4.8vw, 4.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0; text-wrap: balance; }
.t-h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; margin: 0; text-wrap: balance; }
.t-lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--ink2); margin: 0; text-wrap: pretty; max-width: 46ch; }
.t-body { font-size: 1.0625rem; line-height: 1.55; color: var(--ink2); margin: 0; text-wrap: pretty; }
.t-small { font-size: .9375rem; line-height: 1.5; color: var(--ink2); margin: 0; }
.dim { color: var(--dim); }
.giant { font-size: clamp(5rem, 19vw, 19rem); line-height: .8; letter-spacing: -.07em; font-weight: 700; margin: 0; white-space: nowrap; }

/* ---------- 4. Layout ---------- */
.wrapx { width: 100%; margin: 0 auto; padding: 0 12px; }
.sec { margin-top: var(--gap); }
.card-sec { background: var(--panel); border-radius: var(--r-xl); padding: clamp(56px, 8vw, 112px) max(clamp(22px, 4vw, 56px), calc((100% - 1640px) / 2)); position: relative; overflow: hidden; }
.card-sec.black { background: var(--black); }
.t-dark .card-sec.black { box-shadow: inset 0 0 0 1px var(--black-hair); }
.card-sec.peri { background: var(--peri); }
.card-sec.app { background: var(--a-bg); }
.bleed { margin-top: var(--gap); background: var(--black); overflow: hidden; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

/* ---------- 5. Header, menu, progress ---------- */
.site-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.site-head { position: sticky; top: 10px; z-index: 50; margin: 10px auto 0; transition: transform .45s var(--ease), opacity .3s; }
.site-head.is-hidden { transform: translateY(calc(-100% - 20px)); }
.site-head-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 10px 0 18px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-1); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); height: 44px; }
.brand-word { font-weight: 700; letter-spacing: .26em; font-size: 15px; }
.logo { width: 26px; height: 26px; overflow: visible; }
.logo .wire { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1s var(--ease) .15s forwards; }
.logo .wire.w2 { animation-delay: .35s; }
.logo .node { fill: currentColor; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease-spring) forwards; }
.logo .node:nth-of-type(1) { animation-delay: .7s; } .logo .node:nth-of-type(2) { animation-delay: .78s; } .logo .node:nth-of-type(3) { animation-delay: .86s; } .logo .node:nth-of-type(4) { animation-delay: .94s; }
.brand:hover .logo .node { fill: var(--peri); transform: scale(1.35); transition: transform .3s var(--ease-spring), fill .3s; }
.brand:hover .logo .wire { stroke: var(--peri); transition: stroke .3s; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav a { position: relative; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: var(--shadow-1); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--hair2); transition: background-color .2s, transform .2s var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn:active { transform: scale(.94); }
.menu-btn { display: none; }
.menu-sheet { position: fixed; inset: 0; z-index: 70; background: var(--panel); padding: 96px 24px 32px; display: flex; flex-direction: column; justify-content: space-between; animation: sheetIn .45s var(--ease) both; }
.menu-sheet nav { display: flex; flex-direction: column; }
.menu-sheet nav a { font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 600; letter-spacing: -.045em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.menu-close { position: absolute; top: 20px; right: 20px; }

/* ---------- 6. Buttons, chips, labels ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .35s var(--ease), background-color .2s, box-shadow .2s, color .2s; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:hover .arr.up { transform: translate(2px, -2px); }
.btn:active { transform: translate(var(--mx, 0), var(--my, 0)) scale(.97); }
.xt .btn-primary { background: var(--ink); color: var(--panel); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-2); }
.xt .btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 30px -10px color-mix(in srgb, var(--ink) 55%, transparent); }
.xt .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.xt .btn-app { background: var(--a-fg); color: var(--a-bg); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: ping 2s var(--ease) infinite; }
.label { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 10px 13px; border-radius: 10px; rotate: var(--rot, 0deg); box-shadow: var(--shadow-2); animation: bob 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s; }
.copy-btn:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.copy-btn.done { background: #2FBF71; color: #04170C; }

/* ---------- 7. App icon tiles ---------- */
.icon { position: relative; display: inline-block; border-radius: 23%; overflow: hidden; flex: none; box-shadow: var(--shadow-2); }
.icon img { display: block; width: 100%; height: 100%; }
.icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--icon-ring); pointer-events: none; }

/* ---------- 8. Android phone + living screens ---------- */
.phone { container-type: inline-size; position: relative; width: var(--pw, 280px); flex: none; }
.phone .bezel { position: relative; padding: 2.4cqw; border-radius: 14.5cqw; background: linear-gradient(160deg, #2A2A2E, #0B0B0C 40%, #1A1A1D); box-shadow: inset 0 0 0 .45cqw #3A3A3F, inset 0 0 0 1.1cqw #0A0A0B, var(--shadow-3); }
.phone .bezel::after { content: ""; position: absolute; right: -.75cqw; top: 21%; width: .9cqw; height: 13%; border-radius: 0 .6cqw .6cqw 0; background: #2A2A2E; }
.phone .bezel::before { content: ""; position: absolute; right: -.75cqw; top: 38%; width: .9cqw; height: 7%; border-radius: 0 .6cqw .6cqw 0; background: #2A2A2E; }
.phone .screen { position: relative; aspect-ratio: 720 / 1560; border-radius: 12.4cqw; overflow: hidden; background: #000; transform: translateZ(0); }
picture { display: contents; }
.phone .screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone .screen::before { content: ""; position: absolute; z-index: 3; top: 2.5cqw; left: 50%; width: 3.6cqw; height: 3.6cqw; margin-left: -1.8cqw; border-radius: 50%; background: #050506; box-shadow: 0 0 0 .5cqw rgba(0,0,0,.25); }
.screen-stack > .screen-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.screen-stack > .screen-layer.on { opacity: 1; transform: none; }
.screen-layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.live { position: absolute; z-index: 2; pointer-events: none; }
.live-radar { left: var(--x); top: var(--y); width: 0; height: 0; }
.live-radar i { position: absolute; left: -11cqw; top: -11cqw; width: 22cqw; height: 22cqw; border-radius: 50%; border: .5cqw solid var(--c, #F06A55); opacity: 0; animation: radar 3s var(--ease) infinite; }
.live-radar i:nth-child(2) { animation-delay: 1s; } .live-radar i:nth-child(3) { animation-delay: 2s; }
.live-ring { left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, var(--c, rgba(255,255,255,.9)) 92%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--t, 3cqw)), #000 calc(100% - var(--t, 3cqw) + .25cqw)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--t, 3cqw)), #000 calc(100% - var(--t, 3cqw) + .25cqw)); animation: spin 3s linear infinite; mix-blend-mode: screen; opacity: .8; }
.live-sweep { left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 3cqw; overflow: hidden; }
.live-sweep::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); animation: sweep 2.8s var(--ease) infinite; }
.live-pulse { left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 3cqw; box-shadow: 0 0 0 .6cqw var(--c, #FFB020); animation: pulseRing 2.2s var(--ease) infinite; }
.live-toast { left: 6%; right: 6%; bottom: 13%; padding: 3.2cqw 4cqw; border-radius: 4cqw; background: rgba(255,255,255,.96); color: #111; font: 600 3.6cqw/1.25 var(--font); box-shadow: 0 4cqw 8cqw rgba(0,0,0,.35); display: flex; gap: 3cqw; align-items: center; animation: toast 6s var(--ease) infinite; }
.live-toast b { display: block; font-size: 3.1cqw; font-weight: 500; color: #555; }
.live-toast .ic { width: 8cqw; height: 8cqw; border-radius: 2.4cqw; background: var(--c, #3B6CF0); flex: none; }

/* ---------- 9. Sections & components ---------- */
/* Hero fan */
.hero { text-align: center; padding: clamp(64px, 9vw, 120px) 20px 0; }
.hero .t-lead { margin: 26px auto 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fan { --px: 0; --py: 0; position: relative; height: clamp(260px, 30vw, 380px); max-width: 960px; margin: clamp(48px, 6vw, 80px) auto 0; perspective: 1200px; }
.fan .ftile { position: absolute; left: var(--l); top: var(--t); width: clamp(120px, 15vw, 220px); aspect-ratio: 1; transform: translate3d(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px), 0) rotate(var(--r)) rotateX(calc(var(--py) * -10deg)) rotateY(calc(var(--px) * 12deg)); transition: transform .6s var(--ease), left .6s var(--ease); animation: fanIn 1s var(--ease) both; animation-delay: var(--delay); text-decoration: none; }
.fan .ftile .icon { width: 100%; height: 100%; box-shadow: var(--shadow-3); }
.fan:hover .ftile { left: var(--l2); }
.fan .ftile:hover { transform: translate3d(0, -18px, 0) rotate(0deg) scale(1.04); z-index: 5; }
.fan .ftile .tip { position: absolute; left: 50%; bottom: -38px; translate: -50% 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.fan .ftile:hover .tip { opacity: 1; }

/* Ticker */
.ticker { background: var(--black); color: #F4F4F1; overflow: hidden; padding: 22px 0; position: relative; }
.ticker.rounded { border-radius: var(--r-lg); }
.ticker-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.ticker-item .icon { width: 38px; height: 38px; box-shadow: none; }
.ticker-item .sep { color: #4A4A48; font-size: 18px; }
.ticker-pause { position: absolute; right: 10px; top: 50%; translate: 0 -50%; z-index: 2; background: rgba(20,20,22,.85); color: #F4F4F1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* Pinned story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; transition: background-color .7s var(--ease), color .7s var(--ease); background: var(--a-bg); color: var(--a-fg); }
.story-sticky { position: sticky; top: 10vh; height: 80vh; display: grid; place-items: center; }
.story-steps { padding: 6vh 0; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: .3; transition: opacity .5s var(--ease); }
.story-step.on { opacity: 1; }
.story-step .icon { width: 64px; height: 64px; }
.story-inline { display: none; }

/* Story: one colour panel per app, stacking as you scroll */
.story-stack { display: flex; flex-direction: column; gap: var(--gap); }
.story-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(84vh, 760px); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px) max(clamp(22px, 4vw, 64px), calc((100% - 1640px) / 2)); background: var(--a-bg); color: var(--a-fg); overflow: hidden; transform-origin: 50% 100%; }
.story-panel .icon { width: 72px; height: 72px; }
.story-panel .story-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.story-panel .phone-wrap { position: relative; display: grid; place-items: center; }
.story-panel .phone-wrap::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a-acc) 40%, transparent), transparent); filter: blur(16px); }
/* As big as the window allows while the whole phone stays in view. */
.story-panel .phone { --pw: clamp(280px, min(26vw, calc((100svh - 120px) / 2.3)), 390px); }

/* Giant scroll type */
.mega { position: relative; padding: clamp(36px, 5vw, 64px) 0; display: flex; flex-direction: column; gap: clamp(4px, 1vw, 12px); }
.mega.paused .mega-row { animation-play-state: paused; }
.mega .ticker-pause { top: auto; bottom: 14px; right: 14px; translate: none; }
.mega-row { display: flex; width: max-content; color: #F4F4F1; font-size: clamp(3.4rem, 10vw, 9.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; white-space: nowrap; animation: marquee 48s linear infinite; }
.mega-row.r2 { color: #5C5C59; animation-direction: reverse; animation-duration: 56s; }
.mega-row span { padding-right: .35em; }
.mega-row .star { color: #F06A55; font-size: .45em; vertical-align: .55em; }
.mega-row.r2 .star { color: #8E9BE8; }

/* App cards (collection) */
.app-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; min-height: 380px; padding: 32px; border-radius: var(--r-lg); background: var(--a-bg); color: var(--a-fg); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.app-card .icon { width: 68px; height: 68px; }
.app-card .phone { --pw: 190px; align-self: end; margin-bottom: -96px; transition: transform .6s var(--ease); }
.app-card:hover .phone { transform: translateY(-18px); }
.app-card .glow { position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a-acc) 45%, transparent), transparent); filter: blur(10px); }
.app-card .bubble { position: absolute; z-index: 6; left: var(--bx, 50%); top: var(--by, 50%); width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--a-fg); color: var(--a-bg); display: grid; place-items: center; font: 600 14px/1 var(--font); transform: scale(0); transition: transform .35s var(--ease-spring); pointer-events: none; }
.app-card:hover .bubble { transform: scale(1); }
.app-card .meta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }

/* Process */
.step-card { background: var(--card); border-radius: var(--r-lg); padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .4s var(--ease), box-shadow .4s; }
.step-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hair2), var(--shadow-2); }
.step-ill { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--sunk); color: var(--ink); }
.step-ill svg { width: 34px; height: 34px; }
.step-ill .draw { stroke-dasharray: 120; stroke-dashoffset: 120; }
.step-card.on .step-ill .draw, .step-card:hover .step-ill .draw { animation: draw 1.2s var(--ease) forwards; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: var(--gap); }
.tile { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .4s var(--ease), box-shadow .4s; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hair2), var(--shadow-2); }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; } .tile.s6 { grid-column: span 6; } .tile.r2 { grid-row: span 2; }
.tile.accent { background: var(--a-bg); color: var(--a-fg); box-shadow: none; }
.tile-ill { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--a-acc) 18%, transparent); color: var(--a-acc); }
.t-dark .tile-ill { color: var(--a-acc); }
.tile-ill svg { width: 28px; height: 28px; }
.demo { border-radius: var(--r-md); background: var(--sunk); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.switch { position: relative; width: 56px; height: 32px; border-radius: 999px; border: 0; background: var(--hair2); cursor: pointer; transition: background-color .3s; flex: none; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--ease-spring); }
.switch[aria-pressed="true"] { background: var(--a-acc); }
.switch[aria-pressed="true"]::after { transform: translateX(24px); }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 64px; }
.bars i { flex: 1; height: 100%; border-radius: 4px 4px 2px 2px; background: var(--a-acc); animation: bar 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.17s); transform-origin: bottom; }
.range { width: 100%; accent-color: var(--a-acc); height: 28px; }

/* Steps 1-2-3 */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.how::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 32px; height: 2px; background: var(--hair2); }
.how .line-fill { position: absolute; left: 16.6%; right: 16.6%; top: 32px; height: 2px; background: var(--a-acc, var(--ink)); transform-origin: 0 50%; transform: scaleX(.001); }
.how-step { position: relative; text-align: center; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.how-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 20px/1 var(--font); background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--a-acc, var(--ink)), var(--shadow-2); position: relative; z-index: 1; }

/* Before / after */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.vs-col { border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.vs-col.before { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); }
.vs-col.after { background: var(--a-bg); color: var(--a-fg); --ink2: color-mix(in srgb, var(--a-fg) 78%, transparent); --hair: color-mix(in srgb, var(--a-fg) 18%, transparent); }
.vs-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.45; }
.vs-item svg { flex: none; margin-top: 2px; }
.before .vs-item { color: var(--ink2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink2) 45%, transparent); }

/* Honest zeros */
.zeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.zero { background: var(--black); padding: 34px 28px; display: flex; flex-direction: column; gap: 10px; }
.zero b { font-size: clamp(4rem, 8vw, 7rem); line-height: .85; letter-spacing: -.06em; font-weight: 600; color: #F4F4F1; }
.zero span { color: #A6A6A2; font-size: 15px; line-height: 1.4; }

/* FAQ */
.faq-item { border-top: 1px solid var(--hair); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; min-height: 44px; background: none; border: 0; color: var(--ink); font: 600 20px/1.3 var(--font); letter-spacing: -.015em; text-align: left; cursor: pointer; }
.faq-q .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair2); transition: transform .35s var(--ease), background-color .2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--ink); color: var(--panel); }
.faq-a { margin: 0 0 24px; max-width: 62ch; animation: rise .4s var(--ease) both; }

/* Notes */
.notes { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.note { --dx: 0px; --dy: 0px; flex: 1 1 240px; max-width: 330px; min-height: 250px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 30px 50px -26px rgba(0,0,0,.75); transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); transition: transform .7s var(--ease-spring); cursor: grab; touch-action: none; user-select: none; }
.note.dragging { transition: none; cursor: grabbing; z-index: 5; }
.note p { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }
.note .grip { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }

/* Badge */
.badge { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(16px, 4vw, 48px); width: clamp(120px, 14vw, 190px); aspect-ratio: 1; }
.badge svg { width: 100%; height: 100%; animation: spin 20s linear infinite; }

/* Footer */
.site-foot { margin-top: var(--gap); background: var(--black); border-radius: var(--r-xl); padding: clamp(48px, 6vw, 80px) max(clamp(22px, 4vw, 56px), calc((100% - 1640px) / 2)) clamp(20px, 3vw, 40px); overflow: hidden; container-type: inline-size; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col a { text-decoration: none; color: #D8D8D4; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.foot-col a:hover { background-size: 100% 1px; }
.foot-word { margin-top: clamp(40px, 6vw, 72px); color: #F4F4F1; font-size: 31.5cqw; line-height: .8; letter-spacing: -.065em; font-weight: 700; white-space: nowrap; text-align: center; user-select: none; }
.foot-word span { display: inline-block; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; animation-delay: 0s; }

/* Gallery */
.gallery { display: flex; gap: 32px; overflow-x: auto; padding: 24px 40px 56px; margin: 0 -40px; scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: safe center; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; }
.gallery figcaption { margin-top: 18px; text-align: center; }

/* Docs list */
.doc-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.doc-link svg { transition: transform .3s var(--ease); }
.doc-link:hover svg { transform: translate(3px, -3px); }

/* Studio tree */
.tree { position: relative; display: flex; flex-direction: column; align-items: center; }
.tree svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tree .wire-path { fill: none; stroke: var(--hair2); stroke-width: 2; }
.tree .wire-live { fill: none; stroke: var(--peri); stroke-width: 2; stroke-dasharray: 8 10; animation: dash 1.6s linear infinite; }
.node-card { position: relative; z-index: 1; border-radius: var(--r-md); padding: 20px 26px; text-align: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-1); transition: transform .35s var(--ease); }
.node-card:hover { transform: translateY(-4px); }

.org { position: relative; width: 100%; max-width: 620px; aspect-ratio: 4 / 3; margin: 0 auto; }
.org svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.org .draw-wire { fill: none; stroke: var(--hair2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards; animation-delay: var(--delay, 0s); }
.org .flow { fill: none; stroke: var(--peri); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 12; animation: dash 1.4s linear infinite; opacity: 0; transition: opacity .6s; }
.org.live .flow { opacity: .9; }
.org .org-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 1; animation: rise .7s var(--ease) both; animation-delay: var(--delay, 0s); }
.org .org-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-2); font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; transition: transform .3s var(--ease); }
.org .org-chip:hover { transform: translateY(-3px); }
.org .org-chip .icon { width: 34px; height: 34px; box-shadow: none; }

.loose-wire .cable { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.6s var(--ease) .2s forwards; }
.loose-wire .spark { animation: spark 1.8s steps(1) infinite; }
@keyframes spark { 0%, 40%, 100% { opacity: 0; } 42%, 52%, 64% { opacity: 1; } 47%, 58% { opacity: .2; } }

/* App page hero trio */
.trio { position: relative; height: clamp(480px, 44vw, 640px); }
.trio > .slot { position: absolute; left: 50%; bottom: -10%; }
.trio > .slot.c { --pw: clamp(210px, 20vw, 290px); translate: -50% 0; z-index: 2; }
.trio > .slot.l { --pw: clamp(160px, 15vw, 230px); translate: -112% 0; bottom: -2%; }
.trio > .slot.r { --pw: clamp(160px, 15vw, 230px); translate: 12% 0; bottom: -2%; }
.trio > .slot .phone { width: var(--pw); }
/* Close-up of a screen at its own pixels, so the app's text reads crisp. */
.trio > .zoom { position: absolute; z-index: 3; left: 0; bottom: 18%; width: clamp(230px, 20vw, 320px); margin: 0; border-radius: 18px; overflow: hidden; background: var(--a-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a-fg) 14%, transparent), var(--shadow-3); }
.trio > .zoom figcaption { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--a-fg); color: var(--a-bg); font-size: 11px; }
.trio > .zoom figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a-acc); }
.trio > .zoom img { display: block; width: 100%; height: auto; }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--a-fg, var(--ink)) 8%, transparent); box-shadow: inset 0 0 0 1px var(--hair); }
.demo-radar { position: relative; height: 150px; border-radius: 16px; background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--a-acc) 22%, transparent), transparent 70%); overflow: hidden; display: grid; place-items: end center; padding-bottom: 18px; }
.demo-radar i { position: absolute; left: 50%; bottom: -60px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; border: 2px solid var(--a-acc); opacity: 0; animation: radar 3s var(--ease) infinite; }
.demo-radar i:nth-child(2) { animation-delay: 1s; } .demo-radar i:nth-child(3) { animation-delay: 2s; }
.demo-radar.off i { animation: none; }
.demo-bar { height: 10px; border-radius: 99px; background: var(--hair2); overflow: hidden; }
.demo-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--a-acc); transition: width .8s var(--ease); }
.badge-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font); }

.sticky-md { position: sticky; top: 120px; }
.tl-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--hair); }

/* Press assets */
.swatch .copy-btn { color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); }
.swatch { border-radius: var(--r-md); padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- 10. Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fanIn { from { opacity: 0; translate: 0 90px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(47,191,113,0); } }
@keyframes radar { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }
@keyframes pulseRing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes toast { 0%, 8% { opacity: 0; transform: translateY(20%); } 14%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: translateY(20%); } }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes sheetIn { from { opacity: 0; clip-path: inset(0 0 100% 0 round 0 0 32px 32px); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes inkUp { from { color: var(--dim); } to { color: var(--ink); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes headShrink { to { height: 54px; } }
@keyframes fanOut { to { opacity: 0; translate: 0 120px; scale: .8; } }
@keyframes megaL { from { transform: translateX(0); } to { transform: translateX(-40%); } }
@keyframes megaR { from { transform: translateX(-40%); } to { transform: translateX(0); } }
@keyframes lineFill { to { transform: scaleX(1); } }
@keyframes spinScroll { from { rotate: 0deg; scale: .85; } to { rotate: 540deg; scale: 1.18; } }

.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .1em; margin-bottom: -.1em; }
.mask > span { display: inline-block; animation: wordUp .95s cubic-bezier(.2, .85, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.rise { animation: rise .8s var(--ease) both; animation-delay: var(--delay, 0s); }
.float { animation: float 7s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.blink { animation: ping 2s var(--ease) infinite; }

@supports (animation-timeline: view()) {
  .site-progress { animation: progress linear both; animation-timeline: scroll(root); }
  .site-head-bar { animation: headShrink linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
  .ink-scroll { animation: inkUp linear both; animation-timeline: view(); animation-range: entry 35% cover 48%; }
  .tilt-in { animation: tiltIn linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  @keyframes tiltIn { from { transform: perspective(1400px) rotateX(28deg) translateY(100px) scale(.92); opacity: .25; } to { transform: none; opacity: 1; } }
  .fan-exit { animation: fanOut linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  .how .line-fill { animation: lineFill linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  .badge svg { animation: spinScroll linear both; animation-timeline: view(); animation-range: cover; }
  .step-ill .draw { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 38%; }
  .fan-exit { animation: fanOut linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  .story-panel { animation: panelIn linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; view-timeline-name: --panel; }
  /* The phone rises and settles perfectly upright before you read it, then holds still:
     a tilted or moving screenshot gets redrawn between pixels and its text goes soft.
     The glow behind it keeps drifting with the scroll. */
  .story-panel .phone-wrap { animation: phoneIn cubic-bezier(.2, .75, .25, 1) both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .story-panel .phone-wrap::before { animation: glowDrift linear both; animation-timeline: --panel; animation-range: cover; }
  .story-copy > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
  .story-copy > :nth-child(2) { animation-range: entry 10% cover 30%; }
  .story-copy > :nth-child(3) { animation-range: entry 15% cover 32%; }
  .story-copy > :nth-child(4) { animation-range: entry 20% cover 34%; }
  .story-copy > :nth-child(5) { animation-range: entry 25% cover 36%; }
  @keyframes panelIn { from { scale: .9; opacity: .3; border-radius: 80px; } to { scale: 1; opacity: 1; border-radius: var(--r-xl); } }
  @keyframes phoneIn { from { translate: 0 160px; rotate: 6deg; scale: .9; } to { translate: 0 0; rotate: 0deg; scale: 1; } }
  @keyframes glowDrift { from { translate: -14% 34%; scale: .75; } to { translate: 14% -34%; scale: 1.2; } }
}
@media (max-width: 900px) {
  .fan { height: 360px; }
  .fan .ftile, .fan:hover .ftile { left: var(--lm); top: var(--tm); width: 44%; }
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile.s4, .tile.s6 { grid-column: span 4; } .tile.s3 { grid-column: span 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .head-cta { display: none; }
  .site-head { top: 8px; }
  .site-head-bar { height: 58px; padding: 0 8px 0 14px; }
  .grid-2, .grid-3, .vs, .story { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .zeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile.s2, .tile.s3, .tile.s4, .tile.s6 { grid-column: auto; } .tile.r2 { grid-row: auto; }
  .app-card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 26px 26px 0; }
  .app-card .phone { --pw: 210px; justify-self: center; margin: 4px 0 -120px; }
  .app-card .bubble { display: none; }
  .fan .ftile { width: clamp(110px, 34vw, 170px); }
  .fan:hover .ftile { left: var(--l); }
  .story-sticky { display: none; }
  .story-panel { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .story-panel .phone { --pw: min(270px, 68vw); }
  .story-step { min-height: 0; opacity: 1; padding: 48px 0; border-top: 1px solid var(--hair); }
  .story-inline { display: block; margin-top: 12px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how::before, .how .line-fill { display: none; }
  .badge { width: 96px; right: 12px; bottom: 12px; opacity: .7; }
  .labels-row { position: static !important; display: flex !important; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  .labels-row .label { position: static !important; }
  .note { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * .4)); max-width: none; }
  .gallery { justify-content: flex-start; padding: 16px 24px 48px; margin: 0 -24px; }
  .hide-sm { display: none !important; }
  .sticky-md { position: static; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .org .org-chip { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 560px) {
  .grid-4, .zeros { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .card-sec { border-radius: 26px; }
  .faq-q { font-size: 18px; }
}
@media (hover: none) {
  .app-card .bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xt *, .xt *::before, .xt *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mask > span, .fan .ftile, .rise, .reveal { opacity: 1 !important; transform: none !important; translate: none !important; }
  .logo .wire { stroke-dashoffset: 0; } .logo .node { transform: none; }
  .step-ill .draw, .loose-wire .cable, .org .draw-wire { stroke-dashoffset: 0; }
}
@media (max-width: 900px) {
  .trio { height: 470px; margin-top: 16px; }
  .trio > .slot.c { --pw: 220px; }
  .trio > .slot.l, .trio > .slot.r { --pw: 160px; }
  .trio > .zoom { left: 0; right: 0; bottom: 5%; width: min(300px, 82%); margin: 0 auto; }
}

/* ---------- 11b. Apps page ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.apps-hero { text-align: center; padding-bottom: 0; }
.apps-hero .glow { position: absolute; z-index: 0; left: 50%; bottom: -30%; width: 90%; aspect-ratio: 2; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 9%, transparent), transparent); pointer-events: none; }
.apps-hero > * { position: relative; }
.apps-hero .eyebrow { justify-content: center; }
.apps-hero .t-lead { margin: 26px auto 0; }
.apps-hero .hero-ctas { justify-content: center; gap: 10px; margin-top: 34px; }
/* The four phones stand upright in a row: still and straight, so every screen is crisp. */
.lineup { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 2.8vw, 48px); margin-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(36px, 4vw, 60px); }
.lineup-item { --pw: clamp(150px, 15.5vw, 250px); position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: var(--lift, 0px); color: var(--ink); text-decoration: none; outline-offset: 10px; border-radius: 28px; }
.lineup-item .phone { z-index: 1; transition: transform .55s var(--ease); }
.lineup-item:hover .phone, .lineup-item:focus-visible .phone { transform: translateY(-14px); }
.lineup-glow { position: absolute; z-index: 0; left: 50%; top: 42%; width: 150%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a-acc) 50%, transparent), transparent); opacity: .28; filter: blur(12px); transition: opacity .55s var(--ease); pointer-events: none; }
.lineup-item:hover .lineup-glow, .lineup-item:focus-visible .lineup-glow { opacity: .85; }
.lineup-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; text-align: left; }
.lineup-meta .icon { width: 44px; height: 44px; }
.lineup-meta b { display: block; font-size: 18px; letter-spacing: -.015em; }
.lineup-meta .mono { display: block; margin-top: 4px; font-size: 11px; color: var(--ink2); }

/* "What do you need to do?" */
.needs { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.need { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(16px, 3vw, 44px); padding: clamp(22px, 3vw, 36px) clamp(10px, 2vw, 30px); border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; transition: color .45s var(--ease); }
.need::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--a-bg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.need:hover, .need:focus-visible { color: var(--a-fg); }
.need:hover::before, .need:focus-visible::before { transform: scaleY(1); }
.need-q { font-size: clamp(1.35rem, 2.7vw, 2.4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.need-a { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.need-a .icon { width: 40px; height: 40px; }
.need .arr-c { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .45; transition: transform .55s var(--ease), opacity .3s; }
.need:hover .arr-c, .need:focus-visible .arr-c { transform: rotate(-45deg); opacity: 1; }

/* App chapters and the switcher that follows you through them */
.chapters { position: relative; margin-top: var(--gap); }
.app-switch { position: sticky; top: 86px; z-index: 30; display: flex; gap: 4px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 5px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-1); transition: top .45s var(--ease); }
.app-switch::-webkit-scrollbar { display: none; }
.site-head.is-hidden ~ main .app-switch { top: 12px; }
.app-switch a { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; color: var(--ink2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s; }
.app-switch a .icon { width: 32px; height: 32px; box-shadow: none; }
.app-switch a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.app-switch a[aria-current="true"] { background: var(--a-bg); color: var(--a-fg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a-acc) 80%, transparent); }
.chapter { display: flex; flex-direction: column; gap: clamp(36px, 4.5vw, 64px); scroll-margin-top: 150px; }
.chapter-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.chapter-id { display: flex; align-items: center; gap: 16px; }
.chapter-id .icon { width: 80px; height: 80px; }
.chapter-id .mono { color: var(--ink2); }
.chapter-name { margin-top: 26px; font-size: clamp(3rem, 6.6vw, 6.4rem); }
.chapter .t-lead { margin: 18px 0 30px; max-width: 30ch; color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.chapter-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: clamp(380px, 37vw, 600px); }
.chapter-stage .phone { position: relative; z-index: 1; }
.chapter-stage .phone.c { --pw: clamp(190px, 16.5vw, 270px); z-index: 2; }
.chapter-stage .phone.s { --pw: clamp(150px, 13vw, 214px); margin-bottom: 5%; }
.chapter-stage .phone.l { margin-right: -4%; }
.chapter-stage .phone.r { margin-left: -4%; }
.chapter-glow { position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a-acc) 42%, transparent), transparent); filter: blur(20px); }
.chapter-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 26px; border-radius: var(--r-md); background: color-mix(in srgb, var(--a-fg) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-fg) 10%, transparent); }
.feat-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 13px; background: var(--a-acc); color: var(--a-on); }
.feat-ico svg { width: 22px; height: 22px; }
.feat b { font-size: 18px; letter-spacing: -.015em; }
.feat > span:last-child { font-size: 15px; line-height: 1.5; color: var(--ink2); }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.compare { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.compare caption { text-align: left; padding-bottom: 18px; color: var(--ink2); }
.compare thead th { text-align: left; vertical-align: bottom; padding: 0 16px 24px; font-weight: 400; }
.compare .app-head { display: flex; flex-direction: column; gap: 10px; }
.compare .app-head .icon { width: 56px; height: 56px; margin-bottom: 6px; }
.compare .app-head b { font-size: 22px; letter-spacing: -.02em; }
.compare .app-head .mono { font-size: 11px; color: var(--ink2); }
.compare tbody th { width: 19%; padding: 20px 16px 20px 0; border-top: 1px solid var(--hair); text-align: left; font: 500 12px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.compare td { padding: 20px 16px; border-top: 1px solid var(--hair); line-height: 1.45; transition: background-color .25s; }
.compare tbody tr:not(.compare-cta):hover td { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.compare-cta td { padding-top: 26px; }
.compare-cta .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- 11c. Pre-register ---------- */
.prereg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.prereg-promises { display: flex; flex-direction: column; gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.prereg-promises li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.prereg-promises .tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--panel); }
.prereg-card { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-3); }
.prereg-form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.prereg-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.prereg-form legend { padding: 0; margin-bottom: 14px; color: var(--ink2); }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick .icon { width: 44px; height: 44px; box-shadow: none; }
.pick-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-name b { font-size: 16px; letter-spacing: -.01em; }
.pick-name .mono { font-size: 10.5px; color: var(--ink2); }
.pick-check { display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair2); color: transparent; transition: background-color .3s, color .3s, box-shadow .3s; }
.pick:hover { box-shadow: inset 0 0 0 1px var(--hair2); }
.pick:has(input:checked) { background: var(--a-bg); color: var(--a-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-fg) 20%, transparent); }
.pick:has(input:checked) .pick-name .mono { color: color-mix(in srgb, var(--a-fg) 75%, transparent); }
.pick:has(input:checked) .pick-check { background: var(--a-acc); color: var(--a-on); box-shadow: none; }
.pick:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field .mono { color: var(--ink2); }
.field input { height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 500 17px/1 var(--font); transition: box-shadow .2s; }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.opt { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.prereg-form .btn-primary { align-self: stretch; min-height: 56px; font-size: 16px; }
.prereg-form .btn-primary[disabled] { opacity: .6; cursor: progress; }
.form-msg { min-height: 1.4em; margin: -8px 0 0; font-size: 15px; font-weight: 600; color: #E5484D; }
.fine { margin: 0; color: var(--ink2); }
.prereg-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 0; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #2FBF71; color: #fff; animation: popIn .6s var(--ease-spring) both; }
.done-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .5s .25s var(--ease) forwards; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tick { to { stroke-dashoffset: 0; } }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: grid; grid-template-columns: minmax(130px, .38fr) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--hair); }
.facts > div:last-child { border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--ink2); padding-top: 4px; }
.facts dd { margin: 0; font-size: 17px; line-height: 1.5; }
@media (max-width: 560px) { .facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

@media (max-width: 900px) {
  .lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; justify-items: center; }
  .lineup-item { --pw: min(170px, 40vw); margin-bottom: 0; }
  .need { grid-template-columns: minmax(0, 1fr) auto; }
  .need-a { grid-column: 1; grid-row: 2; font-size: 15px; }
  .need .arr-c { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .app-switch { top: 80px; }
  .app-switch a { padding: 0 12px 0 6px; font-size: 14px; }
  .chapter-top, .prereg-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter-stage { min-height: 0; padding-top: 12px; }
  .chapter-stage .phone.c { --pw: min(200px, 46vw); }
  .chapter-stage .phone.s { --pw: min(150px, 34vw); }
  .chapter-stage .phone.l { margin-right: -12%; }
  .chapter-stage .phone.r { margin-left: -12%; }
  .chapter-feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .app-switch a { font-size: 0; gap: 0; padding: 0 6px; }
}

/* ---------- 12. Cross-page transitions (live site, Chromium) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
