/* Rylnx Payments landing page. Same tokens as the app (style.css), so both themes match.
   Motion: transform/opacity only, one easing family, everything off under prefers-reduced-motion. */
:root {
  --bg: #f4f4f6; --surface: #ffffff; --surface-2: #f7f7f9; --ink: #0d0d12; --text: #24242c; --muted: #6b6b78; --faint: #a0a0ad;
  --line: #e5e5ea; --line-soft: #efeff3;
  --accent: #3b3fd8; --accent-2: #2f33c4; --accent-soft: #eeeffd; --accent-ink: #2f33c4; --on-accent: #fff;
  --ok: #138a55; --ok-soft: #e6f6ee; --bad: #c2343f; --bad-soft: #fcebec;
  --code-bg: #121319; --code-text: #d9dbe8; --code-line: #23242e;
  --glow: rgb(59 63 216 / 16%); --orb-a: rgb(84 88 240 / 22%); --orb-b: rgb(60 207 139 / 12%); --grid: rgb(13 13 18 / 5%);
  --shadow: 0 1px 2px rgb(13 13 18 / 4%), 0 18px 48px rgb(59 63 216 / 8%);
  --shadow-pop: 0 2px 6px rgb(15 15 25 / 6%), 0 30px 80px rgb(20 22 60 / 18%);
  --radius: 22px; --radius-sm: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
  font-family: Prompt, "Leelawadee UI", Tahoma, system-ui, sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--text);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme=dark] {
  --bg: #08080c; --surface: #121219; --surface-2: #0e0e14; --ink: #f3f3f7; --text: #dcdce4; --muted: #9797a6; --faint: #6b6b7a;
  --line: #24242e; --line-soft: #1a1a22;
  --accent: #7175ff; --accent-2: #8487ff; --accent-soft: rgb(113 117 255 / 14%); --accent-ink: #a3a6ff;
  --ok: #3ccf8b; --ok-soft: rgb(60 207 139 / 12%); --bad: #ff6b74; --bad-soft: rgb(255 107 116 / 10%);
  --code-bg: #0b0b10; --code-line: #1f2029;
  --glow: rgb(113 117 255 / 18%); --orb-a: rgb(113 117 255 / 22%); --orb-b: rgb(60 207 139 / 8%); --grid: rgb(255 255 255 / 3.2%);
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 48px rgb(0 0 0 / 30%);
  --shadow-pop: 0 30px 80px rgb(0 0 0 / 55%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { background: var(--bg); }
body { margin: 0; overflow-x: hidden; transition: background-color .4s var(--ease); }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #5458f0, #3ccf8b); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, box-shadow .35s var(--ease); }
.btn:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px var(--glow); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 14px 34px var(--glow); }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 28%) 50%, transparent 70%); transform: translateX(-120%); }
.btn.primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn .arrow { display: inline-flex; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn .icon { transition: transform .5s var(--ease); }
.icon-btn:hover .icon { transform: rotate(25deg); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 500; }
.brand b { font-weight: 700; }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5458f0, #2f33c4); box-shadow: 0 6px 16px rgb(59 63 216 / 30%); }
.mark .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.brand:hover .mark .icon path { stroke-dasharray: 40; animation: beat 1.2s var(--ease); }
@keyframes beat { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.mark.sm { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.mark.sm .icon { width: 15px; height: 15px; }
.nav-links { position: relative; display: none; gap: 2px; margin-left: 12px; }
.nav-links a { position: relative; z-index: 1; text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 10px; font-size: 15px; transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.nav-pill.show { opacity: 1; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (min-width: 960px) { .nav-links { display: flex; } }
@media (max-width: 560px) { .hide-sm { display: none; } .nav-end .btn.primary { min-height: 38px; padding: 0 14px; font-size: 14px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none; }
.hero-bg .grid { position: absolute; inset: 0; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.orb.a { width: 560px; height: 560px; right: -120px; top: -80px; background: var(--orb-a); animation: drift-a 18s ease-in-out infinite alternate; }
.orb.b { width: 420px; height: 420px; left: -140px; top: 260px; background: var(--orb-b); animation: drift-b 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(110px, -40px) scale(.9); } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 96px 0 64px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.eyebrow { color: var(--accent-ink); font-weight: 500; font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 70px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .soft > span { color: transparent; background: linear-gradient(100deg, var(--muted) 20%, var(--accent-ink) 50%, var(--muted) 80%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: sheen 6s ease-in-out 1.6s infinite; font-weight: 600; }
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta.center { justify-content: center; }
.fine { margin-top: 18px; color: var(--faint); font-size: 14px; }
@media (max-width: 560px) { .hero-cta .btn { flex: 1 1 100%; } }

/* page-load sequence: JS adds .ready to <html>; data-i sets the order */
.js .intro, .js .hero h1 .line > span { opacity: 0; }
.js .intro { transform: translateY(16px); }
.js .hero h1 .line > span { transform: translateY(105%); }
.js.ready .intro, .js.ready .hero h1 .line > span { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }

/* ---------- demo stage ---------- */
.stage { position: relative; min-height: 500px; padding: 64px 0 52px; perspective: 1200px; }
.tilt { position: relative; height: 100%; display: grid; place-items: center; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
.sheet { position: relative; width: min(100%, 320px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px 20px 18px; box-shadow: var(--shadow-pop); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.sheet-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.timer { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-soft); transition: color .3s, background-color .3s; }
.stage.paid .timer { color: var(--ok); background: var(--ok-soft); }
.sheet-amount { display: grid; text-align: center; margin: 16px 0 12px; }
.sheet-amount small { color: var(--muted); font-size: 12.5px; }
.sheet-amount strong { font-size: 34px; color: var(--ink); letter-spacing: -.02em; font-weight: 700; line-height: 1.3; }
.sheet-amount em, .mini-out em { font-style: normal; color: var(--accent); }
.qr-wrap { position: relative; width: 196px; margin: 0 auto; aspect-ratio: 1; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.qr { width: 100%; height: 100%; display: block; }
.qr rect { fill: #111218; }
.scan { position: absolute; left: 8px; right: 8px; top: 0; height: 42px; background: linear-gradient(to bottom, transparent, rgb(84 88 240 / 22%) 70%, rgb(84 88 240 / 75%)); border-bottom: 2px solid #5458f0; border-radius: 2px; animation: scan 2.4s ease-in-out infinite; opacity: .9; }
@keyframes scan { 0% { transform: translateY(-30px); } 50% { transform: translateY(170px); } 100% { transform: translateY(-30px); } }
.stage.paid .scan { opacity: 0; transition: opacity .2s; }
.paid-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgb(240 251 245 / 97%); color: #0f6b43; font-weight: 600; opacity: 0; transform: scale(.94); transition: opacity .4s var(--ease), transform .6s var(--spring); }
.stage.paid .paid-overlay { opacity: 1; transform: none; }
.check-draw { width: 58px; height: 58px; fill: none; stroke: #138a55; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check-draw circle { stroke-dasharray: 145; stroke-dashoffset: 145; }
.check-draw path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.stage.paid .check-draw circle { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease) .1s; }
.stage.paid .check-draw path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease) .55s; }
.sheet-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 1.6s var(--ease) infinite; }
.stage.paid .pulse-dot { background: var(--ok); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(84 88 240 / 45%); } 100% { box-shadow: 0 0 0 10px rgb(84 88 240 / 0%); } }
.toast-line { position: absolute; top: 0; right: 0; z-index: 2; width: min(92%, 330px); display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 13.5px;
  opacity: 0; transform: translate3d(0, -22px, 40px) scale(.96); transition: opacity .45s var(--ease), transform .8s var(--spring); }
.toast-line div { display: grid; line-height: 1.45; }
.toast-line b { color: var(--ink); font-weight: 600; }
.toast-line span { color: var(--muted); }
.toast-line time { margin-left: auto; color: var(--faint); font-size: 12px; }
.ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #06c755; color: #fff; }
.stage.notified .toast-line { opacity: 1; transform: translate3d(0, 0, 40px); }
.stat-card { position: absolute; right: -6px; bottom: 40px; z-index: 2; width: 178px; padding: 12px 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); display: grid; font-size: 12px; color: var(--muted); transform: translate3d(0, 0, 30px); }
.stat-card strong { color: var(--ink); font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.35; }
.stat-card b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 28px; margin-top: 6px; overflow: visible; }
.spark path { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.4s var(--ease); vector-effect: non-scaling-stroke; }
.stage.on .spark path { stroke-dashoffset: 0; }
.stat-card.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: translate3d(0, -4px, 30px) scale(1.04); } }
.log { position: absolute; left: 0; bottom: 6px; z-index: 2; list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 16px; background: var(--code-bg); color: var(--code-text); font-size: 13px; box-shadow: var(--shadow-pop); width: min(84%, 300px); border: 1px solid var(--code-line);
  opacity: 0; transform: translate3d(-12px, 10px, 50px); transition: opacity .4s var(--ease), transform .7s var(--spring); }
.log li { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.log li i { margin-left: auto; font-style: normal; color: #7ee2b0; font-size: 12px; }
.dot-ok { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgb(60 207 139 / 16%); color: #3ccf8b; }
.dot-ok .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.stage.paid .log { opacity: 1; transform: translate3d(0, 0, 50px); }
.stage.paid .log li:nth-child(1) { opacity: 1; transform: none; transition-delay: .15s; }
.stage.sent .log li:nth-child(2) { opacity: 1; transform: none; }
.replay { position: absolute; right: 0; bottom: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: color .2s; }
.replay:hover { color: var(--ink); }
.replay .icon { transition: transform .6s var(--ease); }
.replay:hover .icon { transform: rotate(-180deg); }
@media (max-width: 979px) { .stage { max-width: 440px; width: 100%; margin: 0 auto; } }
@media (max-width: 420px) { .stat-card { display: none; } .stage { padding-top: 76px; } }

.banks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.bank-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bank-list b { color: var(--muted); font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: color .25s, border-color .25s, transform .35s var(--ease); }
.bank-list b:hover { color: var(--ink); border-color: var(--faint); transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line-soft); }
@media (min-width: 960px) { .section { padding: 128px 0; } }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head.left { text-align: left; margin: 0; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: -.02em; }
.sec-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* reveal on scroll; --d staggers siblings */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* compare */
.compare { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr auto 1fr; gap: 20px; } }
.cmp { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.cmp h3 { font-size: 18px; margin-bottom: 18px; }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.cmp li > span { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.cmp li > span .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.cmp.old { background: transparent; border-style: dashed; }
.cmp.old h3, .cmp.old li { color: var(--muted); }
.cmp.old li > span { background: var(--bad-soft); color: var(--bad); }
.cmp.new { border-color: transparent; box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.cmp.new li > span { background: var(--ok-soft); color: var(--ok); }
.cmp li { opacity: 1; }
.js .cmp.reveal li { opacity: 0; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .cmp.reveal.in li { opacity: 1; transform: none; }
.js .cmp.reveal.in li:nth-child(2) { transition-delay: .08s; } .js .cmp.reveal.in li:nth-child(3) { transition-delay: .16s; } .js .cmp.reveal.in li:nth-child(4) { transition-delay: .24s; }
.cmp-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--accent); color: #fff; box-shadow: 0 10px 28px var(--glow); }
.cmp-arrow .icon { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (max-width: 899px) { .cmp-arrow .icon { transform: rotate(90deg); animation: none; } }

/* steps */
.steps { position: relative; display: grid; gap: 20px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps-line { display: none; }
@media (min-width: 880px) {
  .steps-line { display: block; position: absolute; left: 16%; right: 16%; top: 112px; height: 2px; background: var(--line); border-radius: 2px; z-index: 0; }
  .steps-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #3ccf8b); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; border-radius: 2px; }
  .steps.in .steps-line span { transform: scaleX(1); }
}
.step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 28px; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.step-art { height: 196px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; }
.num { display: block; font-size: 13px; color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 4px 6px; }
.step h3 { font-size: 21px; margin: 0 4px; }
.step p { color: var(--muted); margin: 8px 4px 0; font-size: 15.5px; }
.mini-form { width: 80%; display: grid; gap: 8px; font-size: 12.5px; }
.mini-form label { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.mini-form label span { color: var(--ink); font-weight: 500; }
.mini-out { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.mini-out strong { font-size: 20px; color: var(--ink); display: inline-flex; align-items: baseline; }
.roll { display: inline-grid; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.roll span { grid-area: 1 / 1; transition: transform .8s var(--spring), opacity .4s; }
.roll span:last-child { transform: translateY(100%); opacity: 0; }
.step.in .roll span:first-child { transform: translateY(-100%); opacity: 0; transition-delay: .9s; }
.step.in .roll span:last-child { transform: none; opacity: 1; transition-delay: .9s; }
.mini-bank { width: 64%; display: grid; justify-items: center; gap: 2px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.mini-bank b { color: var(--ink); font-weight: 600; }
.mini-bank strong { font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.mb-ic { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; margin-bottom: 6px; transform: scale(0); transition: transform .7s var(--spring) .7s; }
.mb-ic .icon { stroke-width: 3; }
.mb-ic .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; }
.step.in .mb-ic { transform: none; }
.step.in .mb-ic .ring { animation: ring 2.2s var(--ease) 1.2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
.mini-match { width: 82%; display: grid; justify-items: center; }
.mm-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.mm-row .icon { color: #06c755; }
.mm-row.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 500; opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .5s var(--ease) 1.4s, transform .7s var(--spring) 1.4s; }
.mm-row.ok .icon { color: var(--ok); }
.step.in .mm-row.ok { opacity: 1; transform: none; }
.mm-link { position: relative; width: 2px; height: 34px; background: var(--line); overflow: hidden; }
.mm-link span { position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); transition: transform .6s var(--ease) .8s; }
.step.in .mm-link span { transform: none; }

/* bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } .tile.wide { grid-column: span 2; } }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%); }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.t-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; transition: transform .6s var(--spring); }
.tile:hover .t-ic { transform: rotate(-8deg) scale(1.08); }
.t-ic .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 19px; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--spring); }
.chips.cycle span.used { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.chips.cycle span.fresh { transform: translateY(-3px); background: var(--accent); color: #fff; border-color: transparent; }

/* developers: dark band in both themes */
.dark-sec { background: #0a0a10; color: #c9cad6; overflow: hidden; }
.dark-sec::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: rgb(113 117 255 / 16%); filter: blur(80px); pointer-events: none; }
.dark-sec h2 { color: #fff; }
.dark-sec .eyebrow { color: #a3a6ff; }
.dark-sec .sec-head > p:not(.eyebrow) { color: #9797a6; }
.dark-sec .ticks li { color: #dcdce4; }
.dark-sec .ticks li > span:first-child { background: rgb(113 117 255 / 16%); color: #a3a6ff; }
.dark-sec .ticks code { background: #15151d; border-color: #24242e; color: #dcdce4; }
.dev-grid { position: relative; display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .dev-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15.5px; }
.ticks li > span:first-child { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; margin-top: 2px; }
.ticks li > span:first-child .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.ticks code { background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.code-card { background: #101017; border-radius: var(--radius); border: 1px solid #23242e; box-shadow: 0 40px 100px rgb(0 0 0 / 50%); overflow: hidden; min-width: 0; }
.code-top { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #1f2029; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b36; }
.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tab-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 10px; background: #22243a; transition: transform .5s var(--ease), width .5s var(--ease); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; color: #8e90a3; font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: color .25s; }
.tabs button[aria-selected=true] { color: #fff; }
.panes { position: relative; display: grid; }
.pane { grid-area: 1 / 1; margin: 0; padding: 24px; overflow-x: auto; color: var(--code-text); font: 13.5px/1.8 ui-monospace, "SFMono-Regular", Consolas, monospace; min-height: 340px; }
.pane.enter { animation: pane-in .6s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.code-card .k { color: #a3a6ff; } .code-card .s { color: #7ee2b0; } .code-card .n { color: #f0b555; } .code-card .c { color: #ff9eb0; } .code-card .m { color: #6b6e85; }

/* pricing */
.plans { display: grid; gap: 20px; max-width: 920px; margin: 0 auto; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; border-radius: var(--radius); padding: 1px; background: var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.plan.feature { background: conic-gradient(from var(--a, 0deg), #5458f0, #3ccf8b, #a3a6ff, #5458f0); animation: spin 6s linear infinite; box-shadow: 0 20px 60px var(--glow); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.plan-in { height: 100%; background: var(--surface); border-radius: calc(var(--radius) - 1px); padding: 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 500; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price strong { font-size: 50px; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan-sub { color: var(--faint); margin-top: 6px; font-size: 14.5px; }
.plan .ticks { margin: 24px 0 28px; flex: 1; }
.calc { max-width: 560px; margin: 40px auto 0; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
.calc label { display: block; color: var(--text); }
.calc output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; margin: 16px 0 10px; accent-color: var(--accent); height: 6px; cursor: pointer; }

/* faq: height animated by JS */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, box-shadow .4s var(--ease); overflow: hidden; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 500; color: var(--ink); position: relative; font-size: 16.5px; transition: color .2s; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--muted); transition: transform .45s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .ans p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* final */
.final { padding: 24px 0 104px; }
.final-in { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 76px 24px; border-radius: 32px; background: #0d0d16; color: #c9cad6; }
.final-glow { position: absolute; z-index: -1; width: 900px; height: 900px; left: 50%; top: -520px; margin-left: -450px; border-radius: 50%; background: conic-gradient(from 0deg, rgb(84 88 240 / 55%), rgb(60 207 139 / 30%), rgb(163 166 255 / 45%), rgb(84 88 240 / 55%)); filter: blur(70px); animation: rotate 16s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.final h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.22; }
.final p { margin-top: 14px; }
.final .hero-cta { margin-top: 30px; }
.btn.on-dark { background: rgb(255 255 255 / 4%); color: #fff; border-color: rgb(255 255 255 / 20%); }
.btn.on-dark:hover { border-color: rgb(255 255 255 / 50%); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.foot nav a:hover { color: var(--ink); }
.foot small { margin-left: auto; color: var(--faint); }
@media (max-width: 640px) { .foot small { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .intro, .js .hero h1 .line > span, .js .cmp.reveal li { opacity: 1; transform: none; }
  .scan { display: none; }
}

/* 2026-12-04: demo label, operator line */
.stage { position: relative; }
.demo-tag { position: absolute; top: -10px; right: 8px; z-index: 3; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: var(--muted, #888); border: 1px solid var(--line, rgb(128 128 128 / 30%)); background: var(--surface, transparent); }
.foot-op { flex-basis: 100%; font-style: normal; font-size: 12.5px; color: var(--muted, #888); }

/* Separator between inline facts: a thin rule instead of a middle dot (2026-12-05) */
.sep { display: inline-block; width: 1px; height: .85em; margin: 0 .6em; vertical-align: -.08em; background: currentColor; opacity: .3; font-style: normal; }
.foot-op span + span::before { content: ''; display: inline-block; width: 1px; height: .85em; margin: 0 .6em; vertical-align: -.08em; background: currentColor; opacity: .3; }


/* Fonts: medium weight base (2026-12-05) */
body { font-weight: 500; }

