/* Perch: base system (tokens, type, header, footer, buttons, motion) + landing. App pages live in app.css. */
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-800.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jbmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jbmono-500.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  /* Graphite + meter green. One accent, used sparingly: it means "live / billing / go". */
  --bg: #08090b;
  --bg2: #0c0e11;
  --surface: #121519;
  --surface2: #181c21;
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .13);
  --text: #eceef1;
  --text2: #b4bac3;
  --muted: #7d858f;
  --accent: #3ee0a1;
  --accent-hi: #7af0c2;
  --accent-ink: #03150d;
  --accent-dim: rgba(62, 224, 161, .14);
  --warn: #f3b950;
  --danger: #ff8473;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100dvh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.break { overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r); z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(62, 224, 161, .3); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

/* Ambient background: two slow light pools + grain. Fixed, behind everything, transform-only motion. */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #11161a 0%, var(--bg) 60%); }
.ambient::before, .ambient::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; will-change: transform; }
.ambient::before { left: -20vmax; top: -30vmax; background: radial-gradient(circle, rgba(62, 224, 161, .16), transparent 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.ambient::after { right: -30vmax; top: 10vmax; background: radial-gradient(circle, rgba(110, 140, 170, .14), transparent 60%); animation: drift-b 32s ease-in-out infinite alternate; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, 16vmax, 0) scale(.92); } }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 600 .97rem/1 var(--body); letter-spacing: -.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .25s; touch-action: manipulation; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lamp { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 22px -8px rgba(62, 224, 161, .55); }
.btn-lamp:hover { background: var(--accent-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 30px -8px rgba(62, 224, 161, .7); }
.btn-ghost { background: rgba(255, 255, 255, .035); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 132, 115, .38); }
.btn-danger:hover { border-color: var(--danger); background: rgba(255, 132, 115, .07); }
.btn-lamp[disabled] { background: rgba(255, 255, 255, .06); color: var(--muted); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arr { transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.linkish { background: none; border: 0; padding: 0 2px; color: var(--accent-hi); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

/* Header: a floating pill nav */
.top { position: sticky; top: 0; z-index: 10; padding: 10px 12px 0; }
.top-in { max-width: 1160px; margin: 0 auto; padding: 7px 7px 7px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 999px; background: rgba(14, 16, 19, .72); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 800 1.12rem var(--display); letter-spacing: -.02em; }
.brand .mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { color: var(--text2); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav > a:not(.btn):hover, .nav > a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 6px; }
.x-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text); border: 1px solid var(--line); }
.x-btn:hover { border-color: var(--line2); }
@media (max-width: 520px) {
  .top { padding: 8px 8px 0; }
  .nav > a[href="/#pricing"] { display: none; }
  .nav > a:not(.btn) { padding: 9px 9px; }
  .nav .btn { margin-left: 2px; padding: 0 14px; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 36px 20px 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 380px; }
.foot-brand .mark { width: 30px; height: 30px; flex: none; }
.foot-brand p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.foot-nav a { color: var(--text2); text-decoration: none; font-size: .92rem; min-height: 36px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--text); }

/* Scroll reveals (only when JS + motion are on) */
.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

main { flex: 1 0 auto; }
.foot { flex: none; }
/* Shared section rhythm */
.sec { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--text2); font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Landing ===== */
.pulse-dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(62, 224, 161, .8); }
.pulse-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: dot-ping 2.2s var(--ease-out) infinite; }
@keyframes dot-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 110px); overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); letter-spacing: -.045em; line-height: 1; margin-bottom: 22px; }
.hero h1 span { color: var(--muted); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--text2); max-width: 48ch; }
.opening { display: flex; gap: 12px; align-items: baseline; margin: 26px 0 0; color: var(--muted); font-size: .9rem; max-width: 50ch; }
.opening .pulse-dot { top: -1px; }

/* The meter: a machined instrument. Depth comes from layered gradients, bevels and a cast shadow. */
.meter { margin: 0; position: relative; }
.meter-glow { position: absolute; left: 50%; top: 38%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(62, 224, 161, .16), rgba(62, 224, 161, .05) 45%, transparent 70%); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
.meter.is-live .meter-glow { animation-duration: 4.5s; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); } }
.meter-stage { position: relative; transform-style: preserve-3d; transform: perspective(1100px) rotateX(5deg) rotateY(-7deg); will-change: transform; max-width: 540px; margin: 0 auto; }
.meter-body { position: relative; transform-style: preserve-3d; padding: 18px 18px 16px; border-radius: 26px; background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 28%),
    linear-gradient(160deg, #23282e 0%, #15191d 46%, #0d0f12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .8), inset 1px 0 0 rgba(255, 255, 255, .04), 0 0 0 1px #050607, 0 2px 0 1px #050607, 0 30px 60px -24px rgba(0, 0, 0, .95), 0 60px 120px -40px rgba(0, 0, 0, .9);
  animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }
.meter-shadow { position: absolute; left: 12%; right: 12%; bottom: -34px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(4px); animation: shadow 8s ease-in-out infinite; pointer-events: none; }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .75; } }
.screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #59616a, #1a1d21 70%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .08); }
.screw::after { content: ""; position: absolute; left: 1.5px; right: 1.5px; top: 4px; height: 1px; background: rgba(0, 0, 0, .7); transform: rotate(var(--sr, 35deg)); }
.s1 { left: 10px; top: 10px; } .s2 { right: 10px; top: 10px; --sr: -20deg; } .s3 { left: 10px; bottom: 10px; --sr: 70deg; } .s4 { right: 10px; bottom: 10px; --sr: 10deg; }
.meter-top { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 12px; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9aa2ab; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05); color: var(--text2); }
.meter:not(.is-live) .live-tag .pulse-dot { background: var(--warn); box-shadow: 0 0 10px rgba(243, 185, 80, .7); }
.meter:not(.is-live) .live-tag .pulse-dot::after { border-color: var(--warn); }

.meter-window { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px; border-radius: 14px; background: linear-gradient(180deg, #050607, #0a0c0e 50%, #050607); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .07); cursor: ns-resize; touch-action: pan-y; transform: translateZ(12px); user-select: none; -webkit-user-select: none; overflow: hidden; }
.drums { display: flex; align-items: center; font: 500 clamp(21px, 6.6vw, 40px)/1 var(--mono); color: #f3f5f7; }
.drum { position: relative; width: .74em; height: 1.32em; overflow: hidden; border-radius: 3px; background: linear-gradient(180deg, #0b0d10, #1b1f24 50%, #0b0d10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.drum + .drum { margin-left: 2px; }
.drum::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .85)); pointer-events: none; }
.strip { display: flex; flex-direction: column; will-change: transform; }
.strip span { height: 1.32em; display: grid; place-items: center; }
.drum.fast .strip { filter: blur(1.4px); }
.drum[data-place="0"], .drum[data-place="1"], .drum[data-place="2"] { color: #9aa2ab; }
.drums .dot { width: .34em; text-align: center; color: var(--accent); }
.drums .gap { width: .2em; }
.unit { align-self: flex-end; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; color: var(--accent); padding-bottom: 6px; }
.glass { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 34%, transparent 35%, transparent 70%, rgba(255, 255, 255, .03) 100%); pointer-events: none; }
.meter.scrubbing .meter-window { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(62, 224, 161, .45), 0 0 24px -6px rgba(62, 224, 161, .45); }

/* The disc: a brushed-metal rotor seen edge-on through a slot, turning at the billed rate. */
.disc-well { position: relative; transform: translateZ(6px); height: clamp(50px, 7vw, 64px); margin: 14px 4px 0; border-radius: 12px; overflow: hidden; background: #040506; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .07); }
.disc-persp { position: absolute; left: 50%; top: -112px; width: 300px; height: 300px; margin-left: -150px; perspective: 520px; }
.disc { position: absolute; inset: 0; border-radius: 50%; transform: rotateX(74deg); will-change: transform;
  background: radial-gradient(circle, #0b0d10 0 13%, transparent 13.5%), repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .05) 0 1deg, rgba(0, 0, 0, .06) 1deg 2deg), conic-gradient(from 20deg, #8d969f, #3c4248 18%, #c9d0d6 30%, #4a5157 46%, #9aa3ab 62%, #33393e 78%, #b8c0c7 90%, #8d969f);
  box-shadow: 0 0 0 2px #1d2125; }
.disc-mark { position: absolute; left: 50%; top: 0; width: 14px; height: 30%; margin-left: -7px; background: linear-gradient(180deg, var(--accent), rgba(62, 224, 161, .2)); border-radius: 0 0 6px 6px; box-shadow: 0 0 14px rgba(62, 224, 161, .8); }
.well-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 40%, transparent 70%, rgba(0, 0, 0, .55)), linear-gradient(90deg, rgba(0, 0, 0, .9), transparent 22%, transparent 78%, rgba(0, 0, 0, .9)); pointer-events: none; }
.meter-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 10px 0; font: 500 .74rem/1.3 var(--mono); color: #9aa2ab; }
.meter-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Controls: size switch + run-time dial */
.meter-controls { max-width: 540px; margin: 52px auto 0; display: grid; gap: 18px; }
.sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); min-width: 0; }
.sw-opt { position: relative; cursor: pointer; }
.sw-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw-opt > span { display: grid; gap: 3px; justify-items: center; padding: 9px 4px; border-radius: 10px; transition: background-color .25s, box-shadow .25s, color .25s; color: var(--text2); }
.sw-opt b { font-weight: 700; font-size: .92rem; }
.sw-opt em { font: 400 .68rem/1 var(--mono); font-style: normal; color: var(--muted); }
.sw-opt:hover > span { background: rgba(255, 255, 255, .04); }
.sw-opt input:checked + span { background: linear-gradient(180deg, #23292f, #181c20); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(62, 224, 161, .35), 0 6px 16px -8px rgba(0, 0, 0, .8); }
.sw-opt input:checked + span em { color: var(--accent); }
.sw-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dial-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.dial-head label { font-size: .86rem; color: var(--text2); font-weight: 600; }
.dial-head output { font: 500 .9rem var(--mono); color: var(--accent); }
.dial input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; padding: 0; border: 0; box-shadow: none; min-height: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.dial input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), #23282e var(--fill, 0%)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.dial input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: #23282e; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.dial input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.dial input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #f4f6f8, #a9b1b9 60%, #6d757d); box-shadow: 0 0 0 1px #050607, 0 4px 10px rgba(0, 0, 0, .7), inset 0 -2px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease-out); }
.dial input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #f4f6f8, #a9b1b9 60%, #6d757d); box-shadow: 0 0 0 1px #050607, 0 4px 10px rgba(0, 0, 0, .7); }
.dial input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.dial input[type=range]:focus-visible { outline: none; }
.dial input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent), 0 4px 10px rgba(0, 0, 0, .7); }
.dial-ticks { display: flex; justify-content: space-between; font: 400 .72rem/1 var(--mono); color: #9aa2ab; padding: 0 2px; }
.meter.is-burn .sw { opacity: .55; }
.meter.is-burn .sw:hover, .meter.is-burn .sw:focus-within { opacity: 1; }
.meter-say { margin: 0; min-height: 3.2em; color: var(--text2); font-size: .92rem; }

/* Steps rail */
.steps-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.rail { list-style: none; margin: 0; padding: 0; position: relative; }
.rail::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(180deg, var(--accent), rgba(62, 224, 161, .1)); transform-origin: top; }
.js .rail::before { transform: scaleY(0); transition: transform 1.6s var(--ease-out) .2s; }
.js .rail.in::before { transform: scaleY(1); }
.rail li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 0 0 36px; position: relative; }
.rail li:last-child { padding-bottom: 0; }
.node { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 .74rem var(--mono); color: var(--accent); background: radial-gradient(circle at 50% 30%, #1d2227, #0c0e11); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--line2), 0 0 0 6px var(--bg); position: relative; z-index: 1; }
.rail h3 { margin: 10px 0 6px; font-size: 1.18rem; }
.rail p { color: var(--text2); margin: 0; }

/* Night watch */
.watch-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.duties { margin: 8px 0 0; }
.duties div { padding: 18px 0; border-top: 1px solid var(--line); }
.duties dt { font-weight: 700; font-size: 1.06rem; margin-bottom: 4px; }
.duties dd { margin: 0; color: var(--text2); }
.scope { position: relative; border-radius: var(--r-lg); padding: 18px; background: linear-gradient(180deg, #0f1215, #08090b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.scope::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); pointer-events: none; }
.beat { width: 100%; height: auto; }
.beat-grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; fill: none; }
.beat-line, .beat-glow { fill: none; stroke: var(--accent); stroke-linejoin: round; stroke-linecap: round; }
.js .beat-line, .js .beat-glow { stroke-dasharray: 1300; stroke-dashoffset: 1300; }
.beat-line { stroke-width: 2.5; }
.beat-glow { stroke-width: 9; opacity: .18; filter: blur(4px); }
.js .scope.in .beat-line, .js .scope.in .beat-glow { animation: draw 3s var(--ease-out) .3s forwards; }
.beat-tag path { stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.beat-tag text { font: 500 13px var(--mono); fill: var(--muted); }
.beat-tag text + text { fill: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Rates */
.rate-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rate { display: grid; grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.rate:hover { background: rgba(255, 255, 255, .02); }
.rate-name b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.rate-name span { color: var(--muted); font-size: .92rem; }
.rate-spec { font: 400 .85rem var(--mono); color: var(--text2); }
.rate-price { text-align: right; color: var(--muted); font-size: .88rem; }
.rate-price b { font: 500 1.35rem var(--mono); color: var(--text); letter-spacing: -.02em; }
.rate-price span { display: block; font-size: .8rem; }
.rate-disc { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(from 20deg, #8d969f, #3c4248 18%, #c9d0d6 30%, #4a5157 46%, #9aa3ab 62%, #33393e 78%, #b8c0c7 90%, #8d969f); box-shadow: 0 0 0 1px #050607, 0 6px 14px -4px rgba(0, 0, 0, .8), inset 0 0 0 5px rgba(0, 0, 0, .25); position: relative; animation: turn 2.5s linear infinite; }
.rate-disc span { position: absolute; left: 50%; top: 3px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.rate-disc::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #0b0d10; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9); }
.rd0 { animation-duration: 5s; } .rd1 { animation-duration: 2.5s; } .rd2 { animation-duration: 1.25s; }
@keyframes turn { to { transform: rotate(360deg); } }
.note { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
.selfpay { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--line); }
.selfpay h3 { font-size: 1.25rem; }
.selfpay p { color: var(--text2); margin: 0; }
.flow { width: 100%; height: auto; }
.flow text { font: 500 10.5px var(--mono); fill: var(--text2); }
.fl-box { fill: #101317; stroke: rgba(255, 255, 255, .14); }
.fl-on { stroke: rgba(62, 224, 161, .55); }
.fl-path { stroke: rgba(255, 255, 255, .1); stroke-width: 2; }
.fl-dots { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 13; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }

/* FAQ */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.04rem; position: relative; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--text2), var(--text2)) center / 12px 1.5px no-repeat, linear-gradient(var(--text2), var(--text2)) center / 1.5px 12px no-repeat; transition: transform .35s var(--ease-out); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--accent-hi); }
.qa details p { color: var(--text2); margin: 0 0 22px; max-width: 62ch; }

/* Closing */
.end-cta { text-align: center; overflow: hidden; isolation: isolate; }
.end-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 2; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(62, 224, 161, .12), transparent 70%); pointer-events: none; z-index: -1; }
.end-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.end-cta p { color: var(--text2); margin-bottom: 28px; }

@media (max-width: 900px) {
  .hero-in, .steps-in, .watch-in, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .hero-in { gap: 44px; }
  .selfpay { grid-template-columns: minmax(0, 1fr); }
  .rate { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 16px; }
  .rate-spec { grid-column: 2; grid-row: 2; }
  .rate-price { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 520px) {
  .hero .cta-row .btn { flex: 1 1 auto; padding: 0 16px; }
  .opening { margin-top: 20px; }
  .meter-body { padding: 14px 12px 12px; border-radius: 22px; }
  .meter-window { padding: 13px 6px; gap: 6px; }
  .drum + .drum { margin-left: 1px; }
  .unit { font-size: .6rem; }
  .meter-controls { margin-top: 44px; }
  .rate { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; }
  .rate-disc { width: 40px; height: 40px; }
  .rate-disc::after { inset: 13px; }
  .rate-price { grid-column: 2; grid-row: auto; text-align: left; }
  .rate-spec { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .meter-body, .meter-shadow, .meter-glow, .rate-disc { animation: none !important; }
}
