/* Wesley Ultra: ultra.heywesley.ai. Built on the Wesley brand, "Eye Contact"
   (henry-bot projects/wesley-brand/SYSTEM.md). Day ground with Night bands. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/PlusJakartaSans-Variable.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --ink: #0C1526; --paper: #F4F6FB; --white: #FFFFFF;
  --deep: #2B57C9; --deep-hover: #2449AA; --bright: #4E90E8; --letter: #3161CE;
  --air: #77AAF1; --sky: #9CC4F8; --pupil: #1A2F6B; --done: #4CC38A;
  --sunk: #E9EEF7; --rule: #DCE3EF; --body: #26325A; --muted: #5A6784;
  --ok: #137343; --warn: #995500; --warn-bg: #FFF4E2; --bad: #C8323A;
  --n-sunk: #08101E; --n-raised: #111D33; --n-raised2: #172640; --n-rule: #24324D; --n-body: #D5DEEE; --n-muted: #9AACCF;
  --chassis: linear-gradient(135deg, #2B57C9 0%, #4E90E8 100%);
  --ramp-day: linear-gradient(90deg, #3161CE 0%, #4E90E8 100%);
  --ramp-night: linear-gradient(90deg, #77AAF1 0%, #9CC4F8 100%);
  --display: "Plus Jakarta Sans", "Geist", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --out: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.3, 1.4, .4, 1); --inout: cubic-bezier(.65, 0, .25, 1);
  --elev: 0 1px 2px rgba(26, 47, 107, .06), 0 24px 60px -30px rgba(26, 47, 107, .32);
  --elev-hi: 0 2px 4px rgba(26, 47, 107, .06), 0 40px 90px -40px rgba(26, 47, 107, .45);
  --max: 1200px; --margin: clamp(20px, 5vw, 64px);
  /* a section's screen fits one window: as wide as the window's height allows */
  --pw: clamp(720px, calc((100svh - 250px) * 1.6), 1200px);
  /* the hour: Day by default, Night on .night */
  --bg: var(--paper); --text: var(--ink); --text-body: var(--body); --text-muted: var(--muted); --line: var(--rule);
  --ramp-a: var(--deep); --kick: var(--deep); --card: var(--white);
}
.night {
  --bg: var(--ink); --text: var(--paper); --text-body: var(--n-body); --text-muted: var(--n-muted); --line: var(--n-rule);
  --ramp-a: var(--air); --kick: var(--sky); --card: var(--n-raised);
  background: var(--ink); color: var(--n-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--sky); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }
.wrap { max-width: calc(var(--max) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }

/* ---------- type ---------- */
.h-hero, .h2 { font-family: var(--display); font-weight: 800; color: var(--text); text-wrap: balance; }
.h-hero { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.03; letter-spacing: -0.042em; }
.h2 { font-size: clamp(31px, 3.25vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.lead { font-size: clamp(17.5px, 1.35vw, 19.5px); line-height: 1.6; color: var(--text-body); max-width: 34em; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 14px/1.4 var(--sans); color: var(--kick); margin-bottom: 18px; }
.kicker .num { font: 600 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 7px; background: rgba(43, 87, 201, .09); color: var(--deep); }
.night .kicker .num { background: rgba(156, 196, 248, .12); color: var(--sky); }
.note { margin-top: 18px; font-size: 14.5px; color: var(--text-muted); }
.chip-new, .chip-soon { display: inline-flex; align-items: center; font: 600 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; }
.chip-new { background: rgba(43, 87, 201, .1); color: var(--deep); }
/* Rolling out: an outline, since amber means only "your turn" */
.chip-soon { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--line); margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

/* the Smile: the w of the mark under one word (SYSTEM.md 5.1) */
.pd { margin-left: -.07em; }
.smile { position: relative; display: inline-block; white-space: nowrap; }
.smile svg { position: absolute; left: -0.02em; right: -0.02em; bottom: -0.2em; width: calc(100% + .04em); height: .24em; overflow: visible; pointer-events: none; }
.smile path { fill: none; stroke: var(--ramp-a); stroke-width: .075em; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 12px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .22s var(--out), transform .22s var(--out), box-shadow .22s var(--out), border-color .22s;
}
.btn .arr { display: inline-block; transition: transform .22s var(--out); }
.btn:hover .arr { transform: translateX(3px); }
.btn:hover .arr.down { transform: translateY(3px); }
.btn-primary { background: var(--deep); color: var(--white); box-shadow: 0 10px 24px -12px rgba(43, 87, 201, .7); }
.btn-primary:hover { background: var(--deep-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: #C3CEE2; }
.night .btn-primary { background: var(--ramp-night); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(119, 170, 241, .55); }
.night .btn-ghost { background: transparent; color: var(--paper); border-color: var(--n-rule); }
.night .btn-ghost:hover { border-color: #3A4C6E; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ctas.center { justify-content: center; }

/* ---------- nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ramp-day); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; pointer-events: none; }
.nav-in {
  pointer-events: auto; max-width: 1200px; margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 18px;
  padding: 0 11px 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid rgba(220, 227, 239, .9); box-shadow: 0 12px 34px -20px rgba(26, 47, 107, .4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-height: 44px; }
.lockup { height: 25px; width: auto; display: block; }
.lockup [data-eye] { transition: transform 280ms var(--out); }
.ultra-tag { font: 800 13px/1 var(--display); letter-spacing: -0.01em; color: var(--white); background: var(--deep); padding: 5px 8px 5px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { font: 500 14.5px/1 var(--sans); color: var(--body); text-decoration: none; padding: 10px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav-links a:hover { background: var(--sunk); color: var(--ink); }
.nav-links a.on { color: var(--deep); background: rgba(43, 87, 201, .08); }
.nav-cta { flex: none; }
.nav-menu { display: none; width: 44px; height: 44px; border-radius: 999px; position: relative; }
.nav-menu span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--out); }
.nav-menu span:first-child { top: 18px; } .nav-menu span:last-child { top: 25px; }
.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { pointer-events: auto; max-width: 1200px; margin: 8px auto 0; background: rgba(255, 255, 255, .96); border: 1px solid var(--rule); border-radius: 22px; padding: 8px; box-shadow: var(--elev-hi); display: grid; }
.sheet[hidden] { display: none; }
.sheet a { padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 500; color: var(--ink); }
.sheet a:hover { background: var(--sunk); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--out) calc(var(--i, 0) * 70ms), transform 640ms var(--out) calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.rv .smile svg, .rv.smile svg { clip-path: inset(-80% 104% -80% -6%); }
.rv.in .smile svg { animation: smile-wipe 620ms var(--out) calc(240ms + var(--i, 0) * 70ms) both; }
@keyframes smile-wipe { from { clip-path: inset(-80% 104% -80% -6%); } to { clip-path: inset(-80% -6% -80% -6%); } }

/* ---------- sections ---------- */
.sect { padding: clamp(72px, 8vw, 120px) 0; position: relative; }
.sect.alt { background: #FFFFFF; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.f-say .lead { margin-top: 20px; }
.f-say.center { text-align: center; margin: 0 auto; max-width: 820px; }
.f-say.center .lead { margin-left: auto; margin-right: auto; }
.f-say.center .kicker { justify-content: center; }
.f-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.feats { border-top: 1px solid var(--line); margin-top: 6px; max-width: 31em; } /* about 73 characters a line */
.feats li { padding: 15px 0 15px 28px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--text-body); position: relative; }
.feats li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 11px; height: 11px; border-radius: 3px; background: var(--deep); }
.night .feats li::before { background: var(--sky); }
.feats b { color: var(--text); font-weight: 600; transition: color .3s; }
.feats li[data-step] { cursor: pointer; }
.feats li[data-step]:hover b, .feats li.on b { color: var(--deep); }
.night .feats li[data-step]:hover b, .night .feats li.on b { color: var(--sky); }
.feats li::after { content: ""; position: absolute; left: 2px; bottom: -1px; height: 2px; width: 0; background: var(--deep); }
.night .feats li::after { background: var(--sky); }
.feats li.on::after { width: calc(100% - 2px); transition: width var(--dur, 5600ms) linear; }
.feats li.on.hold::after { transition: none; width: calc(100% - 2px); }
.feats li:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 6px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(96px, 8vw, 112px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; background: radial-gradient(60% 55% at 50% 0%, rgba(119, 170, 241, .22), rgba(244, 246, 251, 0) 70%); pointer-events: none; }
.hero-copy { text-align: center; position: relative; z-index: 2; }
.hero-copy .h-hero { max-width: 15em; margin: 0 auto; }
.hero-copy .lead { margin: 20px auto 0; max-width: 29em; }
.hero-copy .ctas { justify-content: center; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 10px; font: 600 13.5px/1 var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px 8px 10px; margin-bottom: 26px; box-shadow: 0 6px 18px -12px rgba(26, 47, 107, .35); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: live 2.2s var(--out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(76, 195, 138, 0); } }

.stage { position: relative; max-width: 1240px; margin: 28px auto 0; padding: 0 var(--margin); perspective: 1900px; }
.cells {
  position: absolute; left: -8%; right: -8%; top: -60px; height: 640px; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='6' y='6' width='44' height='44' rx='9.7' fill='%232B57C9' fill-opacity='.07'/%3E%3C/svg%3E");
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 75%);
}
.win-tilt { position: relative; z-index: 1; transform-origin: 50% 0%; transform: rotateX(calc(var(--tilt, 9) * 1deg)) scale(var(--sc, .94)); }
.hero-tile { position: absolute; right: -22px; top: -68px; z-index: 3; }
.float { position: absolute; z-index: 4; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px rgba(220, 227, 239, .9), var(--elev-hi); opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(.8); transition: opacity .6s var(--out), transform .7s var(--out); }
.float img { width: 100%; height: auto; }
.float.in { opacity: 1; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1); }
.float.in.settled { transition: opacity .6s var(--out), transform .5s var(--out); }
.f1 { width: clamp(220px, 20vw, 290px); left: -64px; top: 38%; }
.f2 { width: clamp(200px, 18vw, 250px); right: -64px; top: 26%; }
.f3 { width: clamp(240px, 23vw, 330px); left: -40px; bottom: 96px; }
.float > img { animation: bob 5.2s ease-in-out infinite; }
.f2 > img { animation-delay: -1.6s; } .f3 > img { animation-delay: -3.1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.f3 > img { animation: none; }

/* ---------- the character (SYSTEM.md 3.6, 8) ---------- */
.tile { position: relative; display: inline-block; width: 76px; height: 76px; }
.tile svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 12px 22px rgba(43, 87, 201, .35)); animation: breathe 4.2s ease-in-out infinite; }
.tile .eye { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.6s infinite; }
.tile .eye + .eye { animation-delay: 40ms; }
.tile [data-eye] { transition: transform 280ms var(--out); }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5%); } }
@keyframes blink { 0%, 95.5%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.08); } }
.tile::before { content: ""; position: absolute; inset: -6px; border-radius: 27%; padding: 3px; background: conic-gradient(from var(--a), transparent 0deg 230deg, #9CC4F8 300deg, #FFFFFF 340deg, transparent 360deg); -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); opacity: 0; transition: opacity .3s; animation: spin 1.6s linear infinite; }
.tile[data-state="thinking"]::before { opacity: 1; }
@keyframes spin { to { --a: 360deg; } }
.tile .mouth { transition: transform .35s var(--out); transform-box: fill-box; transform-origin: 50% 0%; }
.tile[data-state="thinking"] .mouth { transform: scale(.72, .6); }
.tile .tick { position: absolute; right: -6%; top: -6%; width: 34%; height: 34%; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px var(--white); transform: scale(0); transition: transform .4s var(--spring); display: grid; place-items: center; }
.tile .tick svg { width: 62%; height: 62%; animation: none; filter: none; }
.tile[data-state="done"] .tick { transform: scale(1); transition-delay: .55s; }
.tile[data-state="done"] svg.face { animation: hop .8s var(--spring), breathe 4.2s ease-in-out .8s infinite; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-16%) scale(1.03, .97); } 70% { transform: translateY(0) scale(1.06, .92); } 100% { transform: translateY(0) scale(1); } }
.tile .ring { position: absolute; inset: 0; border-radius: 26%; border: 2px solid var(--done); opacity: 0; pointer-events: none; }
.tile[data-state="done"] .ring { animation: ring 2.6s var(--out) .6s; }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.tile .shine { position: absolute; inset: 0; border-radius: 22%; overflow: hidden; pointer-events: none; }
.tile .shine::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .38) 50%, transparent 58%); transform: translateX(-120%); animation: shine 6.5s ease-in-out infinite 1.2s; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }
.tile-big { width: 132px; height: 132px; }
.tile-big svg { filter: drop-shadow(0 18px 40px rgba(62, 139, 255, .55)); }
.tile.arrive svg.face { animation: arrive .9s var(--spring) both, breathe 4.2s ease-in-out .9s infinite; }
@keyframes arrive { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- player: real screens, a camera and a spotlight ---------- */
.player { margin-top: clamp(40px, 5vw, 64px); }
.pl-win { position: relative; border-radius: 18px; background: var(--white); overflow: hidden; box-shadow: 0 0 0 1px var(--rule), var(--elev-hi); }
.night .pl-win { box-shadow: 0 0 0 1px var(--n-rule), 0 40px 100px -40px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(62, 139, 255, .35); }
.pl-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F7F8FC; border-bottom: 1px solid var(--rule); }
.pl-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #D7DEEA; flex: none; }
.pl-url { margin: 0 auto; display: inline-flex; align-items: center; gap: 7px; max-width: 60%; font: 500 13px/1 var(--sans); color: var(--muted); background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-url svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.pl-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); color: var(--ok); }
.pl-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--done); }
.pl-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F5F6FA; }
.pl-cam { position: absolute; inset: 0; }
.pl-cam img { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; max-width: none; transform-origin: 0 0; opacity: 0; transition: opacity .55s var(--out), transform 1.6s var(--inout); user-select: none; -webkit-user-drag: none; }
.pl-cam img.on { opacity: 1; }
.pl-screen.zoomed .pl-cam { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%); }
.pl-spot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 14px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px var(--deep), 0 0 0 7px rgba(43, 87, 201, .16), 0 0 0 200vmax rgba(12, 21, 38, .06); transition: opacity .35s var(--out); }
.pl-spot.on { opacity: 1; transition: opacity .45s var(--out) .15s; }
.pl-spot::after { content: ""; position: absolute; inset: -2px; border-radius: 15px; border: 2px solid var(--sky); opacity: 0; }
.pl-spot.on::after { animation: pulse 2.4s var(--out) .7s infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.04); } }

.pl-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; padding-top: 18px; }
.pl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; grid-column: 1 / 2; scroll-snap-type: x proximity; padding: 2px; }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab { flex: none; white-space: nowrap; scroll-snap-align: start; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 4px 10px; border-radius: 12px; font: 500 14px/1.2 var(--sans); color: var(--text-muted); background: transparent; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; overflow: hidden; }
.pl-tab .n { font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--sunk); color: var(--muted); transition: background-color .2s, color .2s; }
.pl-tab:hover { color: var(--text); }
.pl-tab.on { background: var(--card); color: var(--text); border-color: var(--line); box-shadow: 0 6px 16px -10px rgba(26, 47, 107, .35); }
.pl-tab.on .n { background: var(--deep); color: var(--white); }
.pl-tab .bar { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--sunk); overflow: hidden; opacity: 0; }
.pl-tab.on .bar { opacity: 1; }
.pl-tab .bar i { display: block; height: 100%; width: 100%; background: var(--ramp-day); transform-origin: 0 50%; transform: scaleX(0); }
.pl-tab.on.run .bar i { animation: fill var(--dur, 5600ms) linear forwards; }
.player.paused .pl-tab.on.run .bar i { animation-play-state: paused; }
/* a strip whose names do not fit shows only the open step's name (ultra.js fit) */
.player.tight .pl-tab:not(.on) .lbl { display: none; }
@keyframes fill { to { transform: scaleX(1); } }
.pl-ctl { display: flex; gap: 6px; grid-column: 2 / 3; }
.pl-ctl button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background-color .2s; }
.pl-ctl button:hover { border-color: #B7C4DC; }
.pl-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pl-ctl .ico-play { display: none; }
.player.paused .pl-ctl .ico-play { display: block; } .player.paused .pl-ctl .ico-pause { display: none; }
.pl-say { grid-column: 1 / -1; font: 500 clamp(18px, 1.6vw, 22px)/1.45 var(--sans); color: var(--text); letter-spacing: -0.01em; min-height: 2.9em; max-width: 36em; display: flex; gap: 12px; align-items: baseline; }
.pl-say .k { font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--deep); flex: none; transform: translateY(-2px); }
.pl-say .t { transition: opacity .3s var(--out), transform .3s var(--out); }
.pl-say .t.swap { opacity: 0; transform: translateY(6px); }
.pl-say .chip-soon { font: 600 12px/1 var(--sans); letter-spacing: 0; vertical-align: 3px; margin-left: 8px; }
.night .pl-bar { background: var(--n-raised2); border-bottom-color: var(--n-rule); }
.night .pl-bar > i { background: #2C3B58; }
.night .pl-url { background: var(--n-raised); border-color: var(--n-rule); color: var(--n-muted); }
.night .pl-tag { color: #5BD69B; }
.night .pl-tab .n { background: var(--n-raised2); color: var(--n-muted); }
.night .pl-tab.on { background: var(--n-raised); border-color: var(--n-rule); box-shadow: none; }
.night .pl-tab.on .n { background: var(--sky); color: var(--ink); }
.night .pl-tab .bar { background: var(--n-raised2); }
.night .pl-tab .bar i { background: var(--ramp-night); }
.night .pl-ctl button { background: var(--n-raised); border-color: var(--n-rule); color: var(--paper); }
.night .pl-say .k { color: var(--sky); }

/* the hero's player: no words under it, the steps centered */
.player-hero { margin-top: 0; }
.player-hero .pl-win { border-radius: 20px; }
.hero-cap { display: flex; justify-content: center; padding-top: 22px; }
.hero-cap .pl-tabs { justify-content: center; }
.hero-cap .pl-tab { background: rgba(255, 255, 255, .6); }
.hero-cap .pl-tab.on { background: var(--white); }

/* ---------- what you get ---------- */
.what .lead { margin-top: 18px; }
.gets { margin-top: 44px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gets li { grid-column: span 2; }
.gets li.big { grid-column: span 3; }
.gets a { position: relative; overflow: hidden; }
.gets .shot { display: block; height: 168px; margin: -22px -22px 10px; overflow: hidden; background: #F5F6FA; border-bottom: 1px solid var(--rule); }
.gets .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--out); }
.gets a:hover .shot img { transform: scale(1.03); }
.gets .go { position: absolute; right: 18px; top: 18px; font: 500 15px/1 var(--sans); font-style: normal; color: var(--muted); transition: transform .3s var(--out), color .3s; }
.gets .big .go { top: auto; bottom: 22px; }
.gets a:hover .go { transform: translateY(3px); color: var(--deep); }
.gets li:not(.big) b { min-height: 2.6em; }
.gets a { display: grid; gap: 6px; height: 100%; padding: 22px 22px 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--rule); text-decoration: none; transition: transform .3s var(--out), box-shadow .3s var(--out), border-color .3s; }
.gets a:hover { transform: translateY(-3px); box-shadow: var(--elev); border-color: #C9D4E8; }
.gets b { font: 700 18px/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); margin-top: 12px; }
.gets span:not(.glyph) { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.glyph { width: 44px; height: 44px; border-radius: 22%; background: var(--deep); display: grid; place-items: center; box-shadow: 0 8px 18px -10px rgba(43, 87, 201, .7); transition: transform .24s var(--out); }
.glyph svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gets a:hover .glyph { transform: rotate(-6deg) scale(1.06); }
.gets a b .chip-soon { font: 600 12px/1 var(--sans); letter-spacing: 0; color: var(--muted); vertical-align: 3px; }

/* ---------- the Floor (SYSTEM.md 6, 11.1) ---------- */
.floor-card { margin-top: clamp(40px, 5vw, 64px); border-radius: 24px; background: var(--n-raised); border: 1px solid var(--n-rule); padding: clamp(18px, 2.4vw, 28px); overflow: hidden; }
.floor-ask { font-size: 15.5px; color: var(--n-body); max-width: 33em; }
.floor-ask .tag { font: 600 12px/1 var(--sans); color: var(--n-muted); margin-right: 10px; padding: 4px 7px; border-radius: 6px; background: var(--n-raised2); }
.floor { position: relative; margin-top: 22px; display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 11), minmax(0, 1fr)); }
.floor .cell { aspect-ratio: 1; border-radius: 22%; background: rgba(156, 196, 248, .055); transition: background-color .5s var(--out), box-shadow .5s; }
.floor .cell.lit { background: rgba(119, 170, 241, .34); box-shadow: 0 0 18px rgba(119, 170, 241, .35); transition: background-color .08s, box-shadow .08s; }
.floor svg.ways { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.floor .way { fill: none; stroke: rgba(156, 196, 248, .45); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.floor .way.run { animation: dash 1s linear infinite; }
.floor .way.back { stroke: #5BD69B; stroke-dasharray: none; opacity: .7; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.floor .sheet-dot { position: absolute; width: 14px; height: 18px; margin: -9px 0 0 -7px; border-radius: 3px; background: #fff; box-shadow: 0 0 14px rgba(156, 196, 248, .9); left: 0; top: 0; opacity: 0; }
.floor .who { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, -50%); width: 160px; text-align: center; pointer-events: none; }
.floor .who .tile { width: 54px; height: 54px; }
.floor .who.boss .tile { width: 72px; height: 72px; }
.floor .who .tile svg { filter: drop-shadow(0 10px 22px rgba(62, 139, 255, .45)); }
.floor .who .nm { font: 600 14px/1.2 var(--sans); color: var(--paper); }
.floor .who .st { font: 400 13px/1.35 var(--sans); color: var(--n-muted); min-height: 2.7em; transition: color .3s; }
.floor .who .st.ok { color: #5BD69B; }
.floor .who .txt { display: flex; flex-direction: column; gap: 3px; }
.floor .who.side { flex-direction: row; align-items: center; text-align: left; gap: 14px; width: 290px; transform: translate(-27px, -50%); }
.floor .who.side .st { min-height: 0; }
.floor-foot { margin-top: 18px; font-size: 13.5px; color: var(--n-muted); }

/* ---------- phones ---------- */
.phone-sect { overflow: hidden; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 2vw, 30px); margin-top: clamp(48px, 6vw, 72px); padding: 0 var(--margin) 12px; }
.ph { width: clamp(150px, 15.5vw, 222px); flex: none; transform: translateY(var(--y, 0)); }
.ph-mid { width: clamp(170px, 17.5vw, 250px); }
.ph-body { border-radius: 15% / 7%; padding: 4.2%; background: #0C1526; box-shadow: 0 0 0 1px #24324D, 0 40px 80px -40px rgba(12, 21, 38, .7), inset 0 0 0 2px #1C2944; }
.ph-body img { width: 100%; height: auto; border-radius: 11.5% / 5.4%; }
.ph figcaption { margin-top: 16px; text-align: center; font: 600 14.5px/1.35 var(--sans); color: var(--ink); }
.ph.rv.in { transform: translateY(var(--y, 0)); }
.ph.rv { transition: opacity 640ms var(--out) calc(var(--i, 0) * 90ms), transform 900ms var(--out) calc(var(--i, 0) * 90ms); }

/* ---------- under the hood ---------- */
.specs { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spec { background: var(--n-raised); border: 1px solid var(--n-rule); border-radius: 18px; padding: 24px; display: grid; gap: 12px; align-content: start; transition: border-color .3s, background-color .3s; }
.spec:hover { border-color: #33476B; background: #13213A; }
.spec.wide { grid-column: span 2; }
.spec h3 { font: 600 15px/1.3 var(--sans); letter-spacing: 0; color: var(--n-muted); }
.spec p { font-size: 15.5px; line-height: 1.55; color: var(--n-body); }
.spec .sub { color: var(--n-muted); font-size: 14.5px; max-width: 36em; }
.spec .big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.spec .big .count { font: 800 clamp(40px, 4vw, 54px)/1 var(--display); letter-spacing: -0.04em; color: var(--paper); font-variant-numeric: tabular-nums; }
.spec .big small { font-size: 14.5px; color: var(--n-muted); margin-right: 12px; }
.cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.cmds code { font: 500 13.5px/1 var(--mono); color: var(--sky); background: var(--n-raised2); border: 1px solid var(--n-rule); border-radius: 7px; padding: 7px 9px; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--n-body); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid #5BD69B; border-bottom: 2px solid #5BD69B; transform: rotate(-45deg); }
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.names span { font: 500 14px/1 var(--sans); color: var(--paper); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--n-rule); background: var(--n-raised2); }

/* ---------- safety ---------- */
.safe-grid { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.safe { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.safe h3 { font-size: 19px; margin-top: 6px; }
.safe p { font-size: 15.5px; color: var(--body); }
.safe.turn { background: var(--warn-bg); border-color: #F2D9AE; }
.safe.turn img { border-radius: 12px; box-shadow: 0 0 0 1px #F2D9AE, 0 14px 30px -18px rgba(153, 85, 0, .5); }
.safe .glyph { width: 40px; height: 40px; }
.safe .glyph svg { width: 22px; height: 22px; }

/* ---------- start ---------- */
.steps-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 40px; font-size: 14.5px; color: var(--n-muted); }
.steps-row li { display: inline-flex; align-items: center; gap: 10px; }
.steps-row .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--n-rule); color: var(--sky); font: 600 13px/1 var(--sans); }

/* ---------- final ---------- */
.final { padding: clamp(110px, 12vw, 170px) 0; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 32%; width: 820px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(62, 139, 255, .32), transparent); pointer-events: none; }
.final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='6' y='6' width='44' height='44' rx='9.7' fill='%239CC4F8' fill-opacity='.05'/%3E%3C/svg%3E");
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(60% 70% at 50% 40%, #000 10%, transparent 70%);
}
.final-in { position: relative; z-index: 1; }
.final-tile { display: flex; justify-content: center; margin-bottom: 36px; }
.final .lead { margin: 20px auto 0; }
.final .ctas { margin-top: 32px; }

/* ---------- footer, dock ---------- */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--n-sunk); color: var(--n-muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot-brand { display: inline-flex; align-items: center; min-height: 44px; }
.foot-brand img { height: 24px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot nav a { font-size: 14px; color: var(--n-body); text-decoration: none; padding: 13px 0; }
.foot nav a:hover { color: var(--paper); }
.foot p { font-size: 13.5px; margin-left: auto; }
.dock { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1300px) {
  .f1, .f3 { left: 0; }
  .f2 { right: 0; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .nav-menu { display: block; }
  .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs, .safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec.wide, .spec.files { grid-column: 1 / -1; }
  .float { display: none; }
  .gets li, .gets li.big { grid-column: span 1; }
  .pl-tab:not(.on) .lbl { display: none; }
}
@media (max-width: 900px) {
  .player-hero .pl-tag { margin-right: 64px; }
  .f-head { grid-template-columns: minmax(0, 1fr); }
  .hero-tile { right: 6px; top: -34px; }
  .stage { margin-top: 44px; } /* the tile clears the beta note above it */
  .tile-hero { width: 60px; height: 60px; }
}

/* ---------- how each feature section is built ----------
   01 and 03: the points beside the heading, the screen under them. 02: side by side. 04: the Floor.
   05: side by side, the screen first. 06: the screen, then the points as cards. */
.sect.feature:not(.split) .player { max-width: var(--pw); margin-left: auto; margin-right: auto; }
.feature.cards .wrap { display: flex; flex-direction: column; }
.feature.cards .f-head { display: contents; }
.feature.cards .f-say { order: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.feature.cards .f-say .kicker { justify-content: center; }
.feature.cards .f-say .lead { margin-left: auto; margin-right: auto; }
.feature.cards .player { order: 2; width: 100%; }
.feature.cards .feats { order: 3; width: 100%; max-width: 31em; margin: 28px auto 0; }
@media (min-width: 1081px) {
  /* three cards, then two wider ones: every line stays under 75 characters */
  .feature.cards .feats { max-width: var(--pw); border-top: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .feature.cards .feats li { grid-column: span 2; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px 42px; background: var(--paper); }
  .feature.cards .feats li:nth-child(n + 4) { grid-column: span 3; }
  .feature.cards .feats li::before { left: 20px; top: 27px; }
  .feature.cards .feats li::after { left: 20px; bottom: 10px; }
  .feature.cards .feats li.on::after { width: calc(100% - 40px); }
}

/* ---------- two sections set side by side on wide screens ---------- */
@media (min-width: 901px) {
  .sect.split .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 4.5vw, 72px); align-items: start; }
  .sect.split .f-head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sect.split .player { margin-top: 0; position: sticky; top: 104px; }
  .sect.split .pl-screen { aspect-ratio: 4 / 3; }
  .sect.split .pl-tab:not(.on) .lbl { display: none; }
  .sect.split.flip .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sect.split.flip .player { order: -1; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav { top: 8px; padding: 0 8px; }
  .nav-in { height: 56px; padding: 0 6px 0 14px; gap: 8px; }
  .lockup { height: 22px; }
  .nav-cta { display: none; }
  .hero { padding-top: 112px; }
  .hero-copy .ctas .btn { flex: 1 1 100%; }
  .badge { margin-bottom: 20px; }
  .stage { padding: 0 14px; }
  .win-tilt { transform: none; }
  .float { display: none; }
  .cells { top: -30px; height: 420px; }
  .pl-win { border-radius: 14px; }
  .pl-bar { height: 36px; padding: 0 10px; }
  .pl-bar > i { width: 8px; height: 8px; }
  .pl-url { max-width: none; font-size: 12px; padding: 6px 10px; margin: 0 0 0 4px; flex: 1; justify-content: center; }
  .pl-tag { display: none; }
  .pl-screen { aspect-ratio: 3 / 4; }
  .player-hero .pl-screen { aspect-ratio: 4 / 5; }
  .pl-cap { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-tabs { margin: 0 -2px; }
  .pl-tab { padding: 0 10px 4px 8px; font-size: 13.5px; }
  .pl-tab .lbl { display: none; }
  .hero-cap .pl-tab.on .lbl { display: inline; }
  .pl-tabs { gap: 4px; }
  .pl-cap { column-gap: 12px; }
  .pl-tab { min-width: 44px; justify-content: center; padding: 0 9px 4px; }
  .pl-ctl button:not(:nth-child(2)) { display: none; }
  .pl-say { font-size: 17.5px; min-height: 4.4em; }
  .gets { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gets a { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .gets a .glyph { grid-row: 1 / 3; }
  .gets .big a .glyph { grid-row: 2 / 4; }
  .gets a > b, .gets a > span:not(.glyph):not(.shot) { grid-column: 2; }
  .gets .shot { grid-column: 1 / -1; margin: -16px -16px 8px; height: 140px; }
  .gets li:not(.big) b { min-height: 0; }
  .gets .go { display: none; }
  .feature .wrap { display: flex; flex-direction: column; }
  .feature .f-head { display: contents; }
  .feature .f-say { order: 1; }
  .feature .floor-card { order: 2; }
  .feature .player { order: 3; margin-top: 32px; }
  .feature .feats { order: 4; margin-top: 28px; }
  .feature.cards .f-say { text-align: left; margin: 0; }
  .feature.cards .f-say .kicker { justify-content: flex-start; }
  .feature.cards .f-say .lead { margin-left: 0; }

  .gets b { margin-top: 0; font-size: 17px; }
  .specs, .safe-grid { grid-template-columns: minmax(0, 1fr); }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 20px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .ph, .ph-mid { width: 64vw; max-width: 270px; scroll-snap-align: center; transform: none; }
  .floor { gap: 5px; }
  .floor .who { width: 110px; }
  .floor .who .tile { width: 40px; height: 40px; }
  .floor .who.boss .tile { width: 52px; height: 52px; }
  .floor .who .nm { font-size: 13px; }
  .floor .who .st { font-size: 12.5px; }
  .floor .who.side { width: 190px; gap: 9px; transform: translate(-20px, -50%); }
  .foot p { margin-left: 0; }
  .steps-row { flex-direction: column; align-items: flex-start; width: fit-content; max-width: 320px; margin-left: auto; margin-right: auto; text-align: left; }
  .steps-row li { align-items: flex-start; }
  .steps-row .n { flex: none; margin-top: -1px; }
  .dock { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; transform: translateY(140%); visibility: hidden; transition: transform .45s var(--out), visibility 0s .45s; }
  .dock .btn { width: 100%; box-shadow: 0 16px 40px -14px rgba(12, 21, 38, .55); }
  body.dock-on .dock { transform: none; visibility: visible; transition: transform .45s var(--out), visibility 0s; }
}

/* ---------- reduced motion: everything in place, the eyes centered ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .rv .smile svg { clip-path: none; }
  .float { opacity: 1; transform: none; }
  .win-tilt { transform: none; }
}
