/* PocketShell website: one stylesheet, no third-party requests, no inline styles (strict CSP). */
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #fbfaf7;
  --bg-2: #f3f1ec;
  --surface: #ffffff;
  --ink: #12171c;
  --text: #2a3239;
  --dim: #5e6872;
  --line: #e3e1da;
  --accent: #0a7f4f;
  --accent-soft: #e3f4ea;
  --mint: #3ce696;
  --on-ink: #fbfaf7;
  --frame: #12171c;
  --shadow: 0 1px 2px rgba(18, 23, 28, 0.06), 0 24px 60px -20px rgba(18, 23, 28, 0.28);
  --warn-bg: #fff6df;
  --warn-line: #ecd596;
  --warn-text: #6b4e08;
  --glow-a: rgba(91, 141, 239, 0.34);
  --glow-b: rgba(60, 230, 150, 0.30);
  --glow-c: rgba(167, 139, 250, 0.22);
  --p1: #0fae6c; --p2: #14a3a8; --p3: #4f7cf0; --p4: #8b6cf0;
  --radius: 20px;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 48px);
  --max: 1120px;
}
:root[data-theme="dark"] {
  --bg: #0b1016;
  --bg-2: #0f1822;
  --surface: #121b24;
  --ink: #f2f5f7;
  --text: #c9d3da;
  --dim: #93a2ad;
  --line: #223140;
  --accent: #3ce696;
  --accent-soft: #10271f;
  --on-ink: #0b1016;
  --frame: #05080b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --warn-bg: #2a2410;
  --warn-line: #5a4a14;
  --warn-text: #f3d79b;
  --glow-a: rgba(91, 141, 239, 0.22);
  --glow-b: rgba(60, 230, 150, 0.16);
  --glow-c: rgba(167, 139, 250, 0.16);
  --p1: #3ce696; --p2: #2fd0c8; --p3: #6f98ff; --p4: #a78bfa;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }
section { padding: clamp(72px, 10vw, 128px) var(--gutter); }
section[id] { scroll-margin-top: 56px; }
.alt { background: var(--bg-2); }
.eyebrow { font: 700 12.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--dim); max-width: 60ch; margin-top: 18px; }
.dim { color: var(--dim); font-size: 15px; }
.dim a { color: var(--accent); }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--dim); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero: centred, particle burst behind the copy, phones rising from the bottom */
.hero { position: relative; isolation: isolate; padding-top: clamp(56px, 8vw, 104px); padding-bottom: 0; overflow: hidden; text-align: center; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.hero .wrap { display: block; }
.hero .copy { max-width: 880px; margin: 0 auto; }
.lockup { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); margin-bottom: clamp(20px, 3vw, 32px); }
.lockup img { width: 38px; height: auto; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--p1), var(--p3) 60%, var(--p4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 22px; }
.badges { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--dim); font-size: 15px; }
.badges b { color: var(--ink); }
.hero-meta { font: 400 12.5px/1.6 var(--mono); color: var(--dim); word-break: break-word; margin: 0; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-start; height: clamp(250px, 36vw, 430px); margin-top: clamp(36px, 5vw, 64px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero-art .phone { flex: 0 0 auto; }
.hero-art .phone.main { width: clamp(190px, 21vw, 262px); position: relative; z-index: 2; }
.hero-art .phone.side { width: clamp(150px, 16vw, 206px); margin-top: 42px; }
.hero-art .phone.side.l { margin-right: -30px; }
.hero-art .phone.side.r { margin-left: -30px; }
@media (max-width: 899px) {
  .hero-art .phone.side { display: none; }
  .hero-art .phone.main { width: min(58vw, 240px); }
}

/* Phone frame */
.phone { background: var(--frame); border-radius: 30px; padding: 7px; box-shadow: var(--shadow); }
.phone img { width: 100%; aspect-ratio: 640 / 1505; border-radius: 24px; background: #0a1117; object-fit: cover; }
.screen { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0a1117; overflow: hidden; }
.screen img { width: 100%; }

/* Facts strip */
.facts { padding-top: 24px; padding-bottom: 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 700 26px/1.1 var(--mono); color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.fact span { color: var(--dim); font-size: 14.5px; line-height: 1.45; display: block; }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Agents row */
.agents { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; text-align: center; }
.agents p { margin: 0 0 16px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.agents .pills { justify-content: center; }
.pills li { font: 400 13.5px/1 var(--mono); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--dim); font-size: 16px; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230a7f4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.checks b { color: var(--ink); font-weight: 650; }

/* Cards, grids */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 16px; margin: 0; }
.card .tagline { font: 700 12.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }

/* Plugin carousel */
.carousel-bar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.carousel-bar .head { margin-bottom: 0; }
.arrows { display: flex; gap: 8px; flex: 0 0 auto; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color 0.15s ease; }
.arrow:hover { border-color: var(--ink); }
.arrow:disabled { opacity: 0.35; cursor: default; }
.no-js .arrows { display: none; }
.plugs { padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(40px, 6vw, 72px); }
.wheel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1); scroll-padding: 0 var(--gutter); }
.wheel::-webkit-scrollbar { display: none; }
.wheel-note { margin-top: 8px; }
.plug { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plug .phone { width: 100%; border-radius: 24px; padding: 6px; box-shadow: none; margin-bottom: 8px; }
.plug .phone img { border-radius: 19px; aspect-ratio: 640 / 1000; object-position: 50% 9%; }   /* 9% skips the ~46px app header that repeats the plugin name */
.plug .phone img[src*="plug-catalog"] { object-position: top; }
.plug h3 { font-size: 18px; }
.plug p { font-size: 14.5px; color: var(--dim); margin: 0; }
.plug .tagline { font: 700 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--dim); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px/32px var(--mono); text-align: center; }
.steps b { color: var(--ink); font-weight: 650; }
.start { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 899px) { .start { grid-template-columns: 1fr; } }
.start .card .checks { margin-top: 8px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; margin: 0 auto; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px; }
.plan .price { font: 700 clamp(38px, 5vw, 52px)/1 var(--mono); color: var(--ink); letter-spacing: -0.03em; margin: 8px 0 6px; }
.plan .price small { font-size: 15px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.plan .checks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -12px; right: 24px; background: var(--mint); color: #04130c; font: 700 11.5px/1 var(--mono); letter-spacing: 0.12em; padding: 7px 12px; border-radius: 999px; text-transform: uppercase; }
.pricing-note { text-align: center; margin-top: 24px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 4px; font: 600 18px/1.4 var(--sans); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dim); font: 400 26px/1 var(--sans); flex: 0 0 auto; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 4px 24px; color: var(--dim); max-width: 64ch; }

/* Closing + footer */
.closing { text-align: center; background: var(--ink); color: var(--on-ink); }
.closing h2 { color: var(--on-ink); }
.closing .lead { margin: 18px auto 32px; color: color-mix(in srgb, var(--on-ink) 72%, transparent); }
.closing .btn-primary { background: var(--on-ink); color: var(--ink); }
.closing .dim { color: color-mix(in srgb, var(--on-ink) 60%, transparent); margin-top: 22px; }
.closing .dim a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 64px var(--gutter) 0; color: var(--dim); font-size: 14.5px; }
.footer .wrap { display: grid; gap: 28px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand p { margin: 0; max-width: 34ch; }
.footer-brand .brand { font-size: 20px; }
.footer-brand .btn { margin-top: 6px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--ink); }
.footer .brand { color: var(--ink); }
.footer .btn-primary, .footer .btn-primary:hover { color: var(--on-ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer h4 { font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.tm { font-size: 12.5px; max-width: 92ch; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer-mark { font-weight: 800; letter-spacing: -0.06em; line-height: 0.78; font-size: clamp(64px, 17.5vw, 260px); text-align: center; white-space: nowrap; margin-top: clamp(28px, 4vw, 56px); padding-bottom: 0; transform: translateY(14%); background: linear-gradient(100deg, var(--p1), var(--p3) 50%, var(--p4), var(--p3), var(--p1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.2; -webkit-mask-image: linear-gradient(#000 20%, transparent 92%); mask-image: linear-gradient(#000 20%, transparent 92%); user-select: none; animation: flow 14s linear infinite; }
@media (max-width: 899px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Reveal on scroll (kept subtle) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.still .reveal { opacity: 1 !important; transform: none !important; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tab { transition: none; }
}

/* Legal / simple pages */
.doc { max-width: 800px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.doc h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin-top: 44px; margin-bottom: 12px; letter-spacing: -0.02em; }
.doc li { margin-bottom: 8px; }
.doc .lead { margin-bottom: 24px; }
.doc .steps { margin: 24px 0; }
.draft { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-text); border-radius: 14px; padding: 14px 18px; font-size: 14px; margin-bottom: 28px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; }

/* Theme toggle */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color 0.15s ease; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.no-js .theme-toggle { display: none; }

/* Soft colour glow behind product shots (antigravity-style) */
.engines figure { position: relative; isolation: isolate; }
.engines figure::before { content: ""; position: absolute; inset: -6% -4%; z-index: -1; border-radius: 40%; background: radial-gradient(closest-side at 30% 40%, var(--glow-a), transparent 72%), radial-gradient(closest-side at 72% 62%, var(--glow-b), transparent 70%), radial-gradient(closest-side at 60% 20%, var(--glow-c), transparent 70%); filter: blur(28px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .engines figure::before { animation: none; } }

/* Brand band: always dark, drifting dot waves behind the mark */
.band { padding: 0 var(--gutter); }
.band-inner { position: relative; isolation: isolate; overflow: hidden; max-width: calc(var(--max) + 120px); margin: 0 auto; border-radius: clamp(22px, 3vw, 36px); background: #05080b; border: 1px solid rgba(255, 255, 255, 0.08); color: #f2f5f7; text-align: center; padding: clamp(72px, 11vw, 140px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 64px); }
.band-inner .fx { z-index: -1; }
.band-inner::before { content: ""; position: absolute; left: 50%; top: 38%; width: min(520px, 90%); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(60, 230, 150, 0.26), rgba(79, 124, 240, 0.12) 55%, transparent 75%); filter: blur(24px); z-index: -1; }
.band-mark { width: clamp(84px, 11vw, 128px); margin: 0 auto 24px; filter: drop-shadow(0 0 28px rgba(60, 230, 150, 0.45)); }
.band .eyebrow { color: #3ce696; }
.band h2 { color: #f2f5f7; font-size: clamp(38px, 7vw, 88px); letter-spacing: -0.04em; }
.band p.sub { color: #9db0bc; font-size: clamp(17px, 1.8vw, 21px); max-width: 52ch; margin: 18px auto 0; }
.maker { margin: clamp(48px, 7vw, 84px) auto 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); max-width: 560px; }
.maker small { display: block; font: 700 11.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #7d8f9b; margin-bottom: 12px; }
.maker strong { display: block; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; color: #f2f5f7; font-weight: 650; }
.maker span { color: #9db0bc; font-size: 15px; }
.by { color: var(--dim); font-size: 14.5px; }
.by b { color: var(--ink); font-weight: 650; }

/* Flowing gradient on the hero headline (and the footer wordmark) */
.hero h1 em { background: linear-gradient(100deg, var(--p1), var(--p3) 25%, var(--p4) 50%, var(--p3) 75%, var(--p1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 7s linear infinite; }
@keyframes flow { to { background-position: 200% 0; } }

/* Hero typing line */
.term-line { display: flex; align-items: center; gap: 10px; width: min(100%, 360px); margin: 28px auto 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 400 15px/1.2 var(--mono); color: var(--ink); text-align: left; box-shadow: 0 1px 2px rgba(18, 23, 28, 0.04); }
.term-line .prompt { color: var(--accent); font-weight: 700; }
.term-line .typed { white-space: nowrap; overflow: hidden; }
.caret { width: 8px; height: 1.15em; background: var(--accent); border-radius: 1px; margin-left: -6px; animation: blink 1s steps(1) infinite; flex: 0 0 auto; }
@keyframes blink { 50% { opacity: 0; } }
.term-line + .cta-row { margin-top: 24px; }


/* What's inside: a stack of big cards. On large screens the section pins and each card is thrown aside on scroll. */
.feat { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.stack { display: grid; gap: 20px; }
.fcard { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.fcard .copy { padding: clamp(28px, 4vw, 56px); align-self: center; }
.fnum { display: block; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.fcard h3 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.025em; line-height: 1.12; }
.fcard .lead { margin-top: 12px; font-size: 17px; }
.fcard .checks { margin-top: 20px; gap: 11px; }
.fcard .checks li { font-size: 15px; }
.fcard .visual { position: relative; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; padding-top: 28px; min-height: 360px; background: radial-gradient(closest-side at 28% 28%, var(--glow-a), transparent 72%), radial-gradient(closest-side at 70% 72%, var(--glow-b), transparent 70%), radial-gradient(closest-side at 78% 18%, var(--glow-c), transparent 70%); }
.fcard:nth-child(even) .visual { background: radial-gradient(closest-side at 70% 28%, var(--glow-c), transparent 72%), radial-gradient(closest-side at 30% 72%, var(--glow-a), transparent 70%), radial-gradient(closest-side at 24% 20%, var(--glow-b), transparent 70%); }
.fcard .visual .phone { width: min(70%, 250px); border-radius: 30px 30px 0 0; margin-bottom: -2px; }
.fcard .visual .phone img { aspect-ratio: 640 / 1100; object-position: top; border-radius: 24px 24px 0 0; }
.fcard .visual .pair { position: relative; align-self: center; width: min(88%, 480px); display: block; padding: 0 0 56px; }
.fcard .visual .pair .screen:nth-child(2) { position: absolute; right: -4%; bottom: 0; width: 44%; }
.fcard .visual .pair .screen:nth-child(2) img { max-height: 190px; object-fit: cover; object-position: top; }
@media (max-width: 899px) {
  .fcard { grid-template-columns: 1fr; }
  .fcard .visual { order: -1; min-height: 300px; }
}

@media (min-height: 520px) and (prefers-reduced-motion: no-preference) {
  .feat.pin-on { padding: 0; }
  /* scroll length = (cards - 0.2) x 85vh; 8 cards */
  .pin-on .pin-track { height: calc(100vh - 62px + 663vh); height: calc(100svh - 62px + 663svh); }
  .pin-on .pin-stage { position: sticky; top: 62px; height: calc(100vh - 62px); height: calc(100svh - 62px); display: flex; align-items: center; padding: 0 var(--gutter); overflow: hidden; }
  .pin-on .pin-stage .wrap { display: grid; gap: 0; }
  .pin-on .head { margin-bottom: 18px; }
  .pin-on .head .lead { display: none; }
  .pin-on .head h2 { font-size: clamp(26px, 3.4vw, 40px); }
  .pin-on .head .eyebrow { margin-bottom: 10px; }
  .pin-on .stack { display: block; position: relative; }
  .pin-on .fcard { position: absolute; inset: 0; will-change: transform, opacity; transform-origin: 50% 100%; }
  .pin-on .fcard::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--surface); opacity: var(--veil, 0); pointer-events: none; }
  .pin-on .fcard .visual { min-height: 0; }
  .pin-on .fcard .visual .phone img { height: 100%; width: 100%; aspect-ratio: auto; }
}
@media (min-width: 900px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .pin-on .stack { height: clamp(380px, calc(100vh - 62px - 150px), 620px); height: clamp(380px, calc(100svh - 62px - 150px), 620px); }
  .pin-on .fcard .copy { padding: clamp(24px, 3.4vw, 48px); }
  .pin-on .fcard .visual .phone { height: calc(100% + 10px); width: auto; aspect-ratio: 640 / 1300; }
  .pin-on .fcard h3 { font-size: clamp(22px, 2.6vw, 32px); }
  .pin-on .fcard .checks { gap: 9px; margin-top: 16px; }
}
@media (min-width: 900px) and (min-height: 600px) and (max-height: 780px) and (prefers-reduced-motion: no-preference) {
  .pin-on .fcard .lead { display: none; }
  .pin-on .fcard .checks li { font-size: 14.5px; }
}
/* Phones: the same throw-aside stack, with a compact card (picture on top, short copy below) that fits one screen */
@media (max-width: 899px) and (min-height: 520px) and (prefers-reduced-motion: no-preference) {
  /* scroll length = (cards - 0.2) x 71vh; 8 cards */
  .pin-on .pin-track { height: calc(100vh - 62px + 554vh); height: calc(100svh - 62px + 554svh); }
  .pin-on .pin-stage { align-items: flex-start; padding-top: 14px; padding-bottom: 12px; }
  .pin-on .head { margin-bottom: 12px; }
  .pin-on .head h2 { font-size: clamp(22px, 6.2vw, 30px); }
  .pin-on .head .eyebrow { margin-bottom: 6px; }
  .pin-on .stack { height: calc(100vh - 62px - 108px - 26px); height: calc(100svh - 62px - 108px - 26px); min-height: 360px; }
  .pin-on .fcard { grid-template-columns: 1fr; grid-template-rows: minmax(130px, 34%) minmax(0, 1fr); border-radius: 22px; }
  .pin-on .fcard .visual { order: -1; padding-top: 14px; align-items: flex-start; }
  .pin-on .fcard .visual .phone { height: 160%; width: auto; aspect-ratio: 640 / 1300; }
  .pin-on .fcard .visual .pair { align-self: flex-start; width: 70%; padding: 0; }
  .pin-on .fcard .visual .pair .screen:nth-child(2) { display: none; }
  .pin-on .fcard .copy { padding: 14px 18px 16px; align-self: start; overflow: hidden; }
  .pin-on .fnum { margin-bottom: 8px; }
  .pin-on .fcard h3 { font-size: clamp(19px, 5.4vw, 24px); }
  .pin-on .fcard .lead { display: none; }
  .pin-on .fcard .checks { margin-top: 12px; gap: 8px; }
  .pin-on .fcard .checks li { font-size: 13.5px; line-height: 1.4; padding-left: 26px; }
  .pin-on .fcard .checks li:nth-child(n+5) { display: none; }
}

/* Plugins: a wheel you turn by swiping, dragging, sideways scrolling, the arrows or the keyboard. Vertical scrolling is left alone. */
.plugs.wheel-on { --wh: clamp(500px, 80vh, 720px); --cw: clamp(180px, min(21vw, calc(var(--wh) * 0.36)), 250px); }
@media (max-width: 700px) { .plugs.wheel-on { --cw: min(54vw, 230px); } }
.wheel-on .carousel-bar .lead { max-width: 56ch; }
.wheel-on .wheel { position: relative; display: block; height: var(--wh); overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 0; scroll-snap-type: none; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: -4px; }
.wheel-on .wheel.dragging { cursor: grabbing; }
.wheel-on .plug { position: absolute; left: 0; top: 0; width: var(--cw); flex: none; will-change: transform, opacity; transform-origin: 50% 50%; box-shadow: var(--shadow); cursor: pointer; }
.wheel-on .plug img { pointer-events: none; -webkit-user-drag: none; }
.wheel-on .plug p { font-size: 13.5px; }
.wheel-on .wheel-note { text-align: center; margin-top: 12px; }

/* Engines */
.eng-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eng { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.eng h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin-bottom: 10px; }
.eng p { margin: 0 0 6px; }
.eng-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.eng-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; }
.eng-stats b { display: block; font: 700 clamp(22px, 2.6vw, 30px)/1.05 var(--mono); color: var(--accent); letter-spacing: -0.03em; }
.eng-stats span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--dim); }
.eng .checks { margin-top: 16px; gap: 11px; }
.eng-note { margin-top: auto !important; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--ink) !important; font-size: 15px; }
.eng .checks + .eng-note { margin-top: 22px !important; }
.bench { margin-top: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.bench h3 { margin-bottom: 14px; }
.bench .table td:first-child { font-family: var(--sans); white-space: normal; }
.bench .table td:nth-child(n+2), .bench .table th:nth-child(n+2) { white-space: nowrap; }
.bench .table b { color: var(--accent); font-family: var(--mono); }
.eng-switch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(32px, 5vw, 64px); }
.eng-switch h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; }
.eng-switch figure { margin: 0; position: relative; isolation: isolate; }
.eng-switch figure::before { content: ""; position: absolute; inset: -6% -4%; z-index: -1; border-radius: 40%; background: radial-gradient(closest-side at 30% 40%, var(--glow-a), transparent 72%), radial-gradient(closest-side at 72% 62%, var(--glow-b), transparent 70%); filter: blur(28px); }
@media (max-width: 899px) { .eng-grid, .eng-switch { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .eng-stats { grid-template-columns: 1fr; } }
