/* Modmoth: one stylesheet for the landing page, the privacy page and the dashboard.
   body.site = landing and privacy; body.app = the signed-in dashboard (no scripts there).
   A white page, black dots drifting slowly up to the right, and the moth's colours as the only accent. */
:root {
  --bg:#ffffff; --ink:#0a0a0f; --text:#24232c; --soft:#52515f; --mute:#7d7c8a;
  --line:rgba(10,10,20,.10); --line2:rgba(10,10,20,.18); --field:#ffffff;
  --violet:#5b3df5; --ok:#0a9b6a; --blurple:#5865F2;
  --holo:linear-gradient(100deg,#7df3ff 0%,#a890ff 36%,#ff8fd0 68%,#ffe29a 100%);
  --holo-ink:linear-gradient(100deg,#0a9fc4 0%,#5b3df5 38%,#e23c9c 72%,#e08a12 100%);
  --font:"Segoe UI Variable Display","Segoe UI Variable Text",system-ui,-apple-system,"SF Pro Display","Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --mono:ui-monospace,"Cascadia Code",Consolas,"SF Mono",Menlo,monospace;
  --dot:30px;
  color-scheme:light;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:88px; -webkit-text-size-adjust:100%; background:var(--bg); }
body { margin:0; color:var(--text); font:16.5px/1.6 var(--font); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
/* the dots: one layer, a little larger than the screen, sliding one step of the grid up and to the right, over and over */
body::before { content:""; position:fixed; z-index:-2; pointer-events:none; inset:calc(-1*var(--dot)); opacity:.34;
  background-image:radial-gradient(circle at center,#000 0 1.15px,transparent 1.7px); background-size:var(--dot) var(--dot);
  animation:dots 5.5s linear infinite; will-change:transform; }
@keyframes dots { to { transform:translate3d(var(--dot),calc(-1*var(--dot)),0); } }
/* a soft white breath over the dots where the page begins and ends, so text never fights them */
body::after { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(70vmax 46vmax at 28% 30%,rgba(255,255,255,.86),rgba(255,255,255,0) 70%); }
a { color:var(--violet); text-underline-offset:3px; text-decoration-thickness:1px; }
a:hover { color:var(--ink); }
:focus-visible { outline:2px solid var(--violet); outline-offset:3px; border-radius:6px; }
::selection { background:rgba(91,61,245,.22); }
code { font:.86em var(--mono); background:rgba(91,61,245,.07); border:1px solid rgba(91,61,245,.18); border-radius:7px; padding:.12em .45em; color:#3a23c8; white-space:nowrap; }
h1,h2,h3 { color:var(--ink); font-weight:650; letter-spacing:-.025em; line-height:1.08; margin:0; text-wrap:balance; }
p { margin:0 0 14px; }
b { color:var(--ink); }
.holo-text { background:var(--holo-ink); background-size:220% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:holo-slide 9s ease-in-out infinite alternate; }
@keyframes holo-slide { from { background-position:0% 0; } to { background-position:100% 0; } }

/* ---- the bar at the top ---- */
.nav { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px clamp(16px,4vw,40px); border-bottom:1px solid transparent; transition:background .35s, border-color .35s; }
.nav.scrolled, .app .nav { background:rgba(255,255,255,.8); -webkit-backdrop-filter:blur(16px) saturate(1.4); backdrop-filter:blur(16px) saturate(1.4); border-bottom-color:var(--line); }
.brand { display:inline-flex; align-items:center; gap:9px; color:var(--ink); text-decoration:none; font-weight:680; font-size:19px; letter-spacing:-.02em; }
.brand img { width:30px; height:34px; display:block; }
.nav nav { display:flex; align-items:center; gap:clamp(10px,2.4vw,26px); font-size:14.5px; }
.nav nav a:not(.btn) { color:var(--soft); text-decoration:none; }
.nav nav a:not(.btn):hover { color:var(--ink); }
.who { color:var(--mute); }

/* ---- buttons: each has a bevel, a lit top edge and a dark foot, and sinks when pressed ---- */
.btn, .app button { --foot:#c9c8d6; position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font:650 16px/1 var(--font); letter-spacing:-.01em; text-decoration:none; cursor:pointer; white-space:nowrap;
  padding:15px 22px; border-radius:14px; border:1px solid var(--line2); color:var(--ink);
  background:linear-gradient(180deg,#ffffff,#f1f0f6);
  box-shadow:inset 0 1px 0 #fff, inset 0 -3px 0 rgba(10,10,30,.07), 0 2px 0 var(--foot), 0 14px 26px -14px rgba(20,20,60,.35);
  transition:transform .12s ease, box-shadow .12s ease, filter .2s ease; }
.btn:hover, .app button:hover { color:var(--ink); transform:translateY(-1px); filter:brightness(1.03); }
.btn:active, .app button:active { transform:translateY(2px); box-shadow:inset 0 1px 0 #fff, inset 0 -1px 0 rgba(10,10,30,.07), 0 0 0 var(--foot), 0 6px 12px -10px rgba(20,20,60,.35); }
.btn.sm { padding:10px 14px; font-size:14px; border-radius:11px; gap:8px; }
/* Discord's own mark, white and unaltered, on Discord's blurple; the bevel belongs to the button */
.btn.discord { --foot:#2c3486; color:#fff; border-color:#3a43ad;
  background:linear-gradient(180deg,#6f7bf8 0%,#5865F2 52%,#4954d8 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 -3px 0 rgba(20,24,96,.55), 0 2px 0 var(--foot), 0 16px 30px -12px rgba(88,101,242,.75); }
.btn.discord:hover { color:#fff; filter:brightness(1.07); }
.btn.discord:active { box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(20,24,96,.55), 0 0 0 var(--foot), 0 8px 14px -10px rgba(88,101,242,.7); }
.dlogo { width:24px; height:18.2px; flex:none; display:block; margin:0 2px 0 0; }
.btn.sm .dlogo { width:20px; height:15.2px; }
/* the main button: black, with the moth's colours along its lit edge */
.btn.holo, .app button { --foot:#000; color:#fff; border-color:#000;
  background:linear-gradient(180deg,#2b2a36 0%,#0e0e14 55%,#000 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34), inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -3px 0 rgba(0,0,0,.6), 0 2px 0 var(--foot), 0 16px 30px -12px rgba(10,10,30,.6); }
.btn.holo { overflow:hidden; }
.btn.holo::before { content:""; position:absolute; left:-1px; right:-1px; top:-1px; height:3px; background:var(--holo); }
.btn.holo:hover, .app button:hover { color:#fff; filter:brightness(1.25); }
.btn.holo:active, .app button:active { box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.6), 0 0 0 var(--foot), 0 8px 14px -10px rgba(10,10,30,.6); }

/* ---- cards ---- */
.card, .app section, .server, .flash { background:rgba(255,255,255,.9); border:1px solid var(--line); border-radius:22px;
  box-shadow:inset 0 1px 0 #fff, 0 1px 2px rgba(20,20,60,.05), 0 26px 50px -34px rgba(20,20,60,.32); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.tag { display:inline-flex; align-items:center; gap:8px; font:650 12px/1 var(--font); letter-spacing:.14em; text-transform:uppercase; color:var(--ink); margin:0 0 20px; }
.tag::before { content:""; width:7px; height:7px; border-radius:50%; background:#000; }
.lead { font-size:clamp(17px,1.5vw,20px); color:var(--soft); max-width:33em; }
.note, small { font-size:13.5px; line-height:1.5; color:var(--mute); }

/* ================= landing and privacy ================= */
#moth { position:fixed; left:0; top:0; width:100vw; height:100vh; height:100lvh; z-index:0; pointer-events:none; }
.site main, .site footer, .nav { position:relative; }
.site main { z-index:1; }
.wrap { width:min(1160px, 100% - 2*clamp(16px,4vw,40px)); margin-inline:auto; }
.hero { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); align-items:center; gap:clamp(16px,3vw,48px);
  min-height:calc(100svh - 62px); padding:clamp(8px,2vh,28px) 0 clamp(36px,7vh,80px); }
.hero h1 { font-size:clamp(30px,4.5vw,62px); letter-spacing:-.04em; line-height:1.0; margin-bottom:22px; }
.cta { display:flex; flex-wrap:wrap; gap:14px; margin:28px 0 18px; }
.stage { position:relative; height:min(78vh,700px); min-width:0; }
/* the light the moth carries: its own colours, soft, behind it */
.stage::before { content:""; position:absolute; inset:10% 6% 16%; border-radius:50%; z-index:-1; opacity:.55;
  background:conic-gradient(from 200deg,#7df3ff,#a890ff,#ff8fd0,#ffe29a,#7df3ff); filter:blur(60px); animation:breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform:scale(1.08) rotate(14deg); opacity:.4; } }
.moth-still { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:5%; transition:opacity .9s ease; filter:drop-shadow(0 18px 26px rgba(60,40,160,.25)); }
.moth-on .moth-still { opacity:0; }
/* the scroll hint sits at the bottom middle of the whole first screen, clear of the moth */
.hero { position:relative; }
/* pinned to the bottom of the screen itself, so it shows on short screens too; it fades once the page has moved.
   It needs the script (which marks the bar as scrolled), so without scripts it is simply not shown. */
.scroll-cue { display:none; }
.js .scroll-cue { display:block; position:fixed; z-index:3; left:50%; bottom:clamp(10px,2.4vh,26px); translate:-50% 0; width:24px; height:38px; transition:opacity .4s ease; border:1.5px solid rgba(10,10,20,.55); border-radius:13px; background:#fff; box-shadow:0 6px 14px -8px rgba(20,20,60,.4); }
.nav.scrolled ~ main .scroll-cue { opacity:0; }
.scroll-cue::after { content:""; position:absolute; left:50%; top:8px; width:3px; height:7px; margin-left:-1.5px; border-radius:2px; background:#000; animation:cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform:translateY(0); opacity:0; } 30% { opacity:1; } 80% { transform:translateY(12px); opacity:0; } 100% { opacity:0; } }

@media (min-width:901px) and (max-height:720px) { .hero { padding-top:0; } .hero h1 { font-size:clamp(30px,4.2vw,52px); margin-bottom:14px; } .hero .lead { font-size:16.5px; } .hero .cta { margin:18px 0 12px; } .hero .stage { height:min(70vh,560px); } }
.band { padding:clamp(56px,10vh,120px) 0; }
.band > .wrap > h2, .head h2 { font-size:clamp(28px,3.6vw,46px); letter-spacing:-.035em; margin-bottom:14px; }
.head { max-width:44em; margin-bottom:clamp(26px,4vh,44px); }
.head p { color:var(--soft); font-size:18px; margin:0; }

/* the example conversation */
.demo { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(22px,4vw,60px); align-items:center; }
.chat { padding:20px 22px; font-size:15.5px; line-height:1.5; }
.chat-top { display:flex; align-items:center; gap:8px; color:var(--mute); font-size:13.5px; padding:0 0 14px; margin:0 0 16px; border-bottom:1px solid var(--line); }
.chat-top b { color:var(--soft); font-weight:600; }
.msg { display:grid; grid-template-columns:42px minmax(0,1fr); gap:13px; margin:0 0 18px; }
.msg:last-child { margin:0; }
.av { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:700; color:#0d0a1c; background:linear-gradient(135deg,#ffd9a0,#ff9fb8); }
.av.bot { background:radial-gradient(circle at 50% 35%,#2a2158,#0f0b24); }
.av.bot img { width:26px; height:30px; }
.msg .name { font-weight:650; color:var(--ink); display:flex; align-items:center; gap:7px; margin-bottom:2px; }
.msg .name i { font:700 10px/1 var(--font); font-style:normal; letter-spacing:.04em; background:var(--blurple); color:#fff; border-radius:4px; padding:3px 5px; }
.msg p { margin:0 0 6px; }
.file { display:inline-flex; align-items:center; gap:9px; margin-top:4px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#f6f5fa; font:13px var(--mono); color:var(--soft); }
.file::before { content:""; width:12px; height:15px; border-radius:2px; background:#000; }
.answer { border-left:3px solid; border-image:linear-gradient(180deg,#0a9fc4,#5b3df5,#e23c9c) 1; padding:2px 0 2px 13px; }

/* what it does */
.grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }
.grid .card { grid-column:span 2; padding:26px 24px 22px; position:relative; overflow:hidden; transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.grid .card.wide { grid-column:span 3; }
.grid .card.full { grid-column:span 6; --k:.9; }
.grid .card::after { content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--holo); opacity:0; transition:opacity .35s; }
.grid .card:hover { transform:translateY(-4px); border-color:var(--line2); box-shadow:inset 0 1px 0 #fff, 0 1px 2px rgba(20,20,60,.05), 0 34px 60px -34px rgba(20,20,60,.45); }
.grid .card:hover::after { opacity:1; }
.card h3 { font-size:20px; letter-spacing:-.02em; margin:16px 0 9px; }
.card p { color:var(--soft); margin:0; font-size:15.5px; }
.ico { width:44px; height:44px; border-radius:13px; display:grid; place-items:center; color:#fff; background:linear-gradient(180deg,#2b2a36,#000);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 0 rgba(0,0,0,.6), 0 10px 18px -10px rgba(10,10,30,.6); }
.ico svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* how to start */
.steps { list-style:none; margin:0; padding:0; counter-reset:step; display:grid; gap:12px; }
.steps li { counter-increment:step; display:grid; grid-template-columns:54px minmax(0,1fr); gap:16px; align-items:center; padding:16px 20px; }
.steps li::before { content:counter(step); font:700 26px/1 var(--font); letter-spacing:-.04em; color:var(--ink); text-align:center; }
.steps p { margin:0; }

/* what it cannot do */
.two { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(22px,4vw,60px); align-items:start; }
.limits { list-style:none; margin:0; padding:8px 24px; }
.limits li { display:grid; grid-template-columns:26px minmax(0,1fr); gap:13px; padding:15px 0; border-top:1px solid var(--line); font-size:15.5px; }
.limits li:first-child { border-top:0; }
.limits li::before { content:""; width:22px; height:22px; margin-top:1px; border-radius:50%; background:#000 linear-gradient(#fff,#fff) center/10px 1.6px no-repeat; }
.trial { padding:26px 24px; margin-top:16px; }
.trial h3 { font-size:20px; margin-bottom:9px; }
.trial p { color:var(--soft); margin:0; }

/* the last call */
.final { text-align:center; padding:clamp(40px,8vh,90px) 0 clamp(60px,10vh,120px); }
.final .stage { height:min(46vh,400px); width:min(100%,520px); margin:0 auto 6px; }
.final h2 { font-size:clamp(30px,4.6vw,58px); letter-spacing:-.04em; margin-bottom:14px; }
.final .lead { margin-inline:auto; }
.final .cta { justify-content:center; }

.site footer { z-index:1; border-top:1px solid var(--line); padding:30px 0 44px; color:var(--mute); font-size:14px; background:rgba(255,255,255,.8); }
.site footer .wrap { display:flex; flex-wrap:wrap; gap:14px 34px; justify-content:space-between; align-items:flex-start; }
.site footer p { margin:0; max-width:46em; }
.site footer nav { display:flex; gap:20px; }

/* things rise into place as they are reached; without scripts they are simply there */
.js .reveal { opacity:0; transform:translateY(26px) scale(.985); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.9,.25,1.12); transition-delay:var(--d,0s); }
.js .reveal.in { opacity:1; transform:none; }
/* scroll physics: the script measures how fast the page is moving and lets each piece trail behind by its own weight,
   then spring back when the page stops (--drag is a length, --k the weight of a piece) */
.drag { translate:0 calc(var(--drag,0px) * var(--k,1)); will-change:translate; }
.grid .card:nth-child(3n+1), .steps li:nth-child(odd) { --k:.55; }
.grid .card:nth-child(3n+2), .steps li:nth-child(even) { --k:1.1; }
.grid .card:nth-child(3n) { --k:1.6; }
.head.drag { --k:.35; } .chat.drag { --k:1.3; } .limits.drag { --k:.8; } .trial.drag { --k:1.4; } .hero-copy.drag { --k:.25; } .final .drag { --k:.6; }

/* privacy page */
.prose { width:min(780px, 100% - 32px); margin:clamp(20px,5vh,56px) auto 80px; padding:clamp(24px,4vw,48px); position:relative; z-index:1; }
.prose h1 { font-size:clamp(28px,4.4vw,42px); letter-spacing:-.035em; margin-bottom:20px; }
.prose h2 { font-size:22px; margin:38px 0 12px; }
.prose ul { padding-left:20px; margin:0 0 14px; }
.prose li { margin-bottom:8px; }
.prose li::marker { color:#000; }

/* ================= the dashboard (no scripts) ================= */
.app .nav { position:sticky; }
.app main { position:relative; z-index:1; width:min(900px, 100% - 32px); margin:0 auto; padding:34px 0 90px; }
.app h1 { font-size:clamp(28px,5vw,44px); letter-spacing:-.035em; margin:0 0 20px; }
.app h2 { font-size:21px; margin:0 0 16px; }
.app h3 { font-size:15px; letter-spacing:0; color:var(--soft); margin:18px 0 6px; }
.dev { background:#000; color:#fff; text-align:center; font-size:13px; font-weight:600; padding:6px 16px; position:relative; z-index:1; }
.tabs { position:sticky; top:59px; z-index:5; display:flex; flex-wrap:wrap; gap:4px; padding:10px; margin:0 0 20px; border:1px solid var(--line); border-radius:16px;
  background:rgba(255,255,255,.86); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); box-shadow:0 18px 30px -26px rgba(20,20,60,.4); }
.tabs a { white-space:nowrap; font-size:14px; text-decoration:none; padding:7px 12px; border-radius:10px; color:var(--soft); }
.tabs a:hover { background:#000; color:#fff; }
.app section { padding:24px 22px 14px; margin:0 0 18px; scroll-margin-top:140px; }
.app section:target { border-color:#000; }
.app label { display:block; font-weight:600; font-size:14.5px; color:var(--ink); margin:0 0 17px; }
.app small { display:block; margin-top:5px; font-weight:400; }
.app input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), .app textarea, .app select { display:block; width:100%; margin-top:7px; padding:11px 12px; font:15px/1.4 var(--font);
  color:var(--ink); background:var(--field); border:1px solid var(--line2); border-radius:11px; box-shadow:inset 0 2px 4px rgba(10,10,30,.06); transition:border-color .2s, box-shadow .2s; }
.app input::placeholder, .app textarea::placeholder { color:#a3a2b0; }
.app input[type=file] { display:block; margin-top:7px; font-size:14px; color:var(--soft); max-width:100%; }
.app input[type=file]::file-selector-button { font:600 13px var(--font); color:var(--ink); background:#f3f2f8; border:1px solid var(--line2); border-radius:9px; padding:7px 11px; margin-right:10px; cursor:pointer; }
.app textarea { resize:vertical; }
.app input:focus, .app textarea:focus, .app select:focus { outline:none; border-color:#000; box-shadow:inset 0 2px 4px rgba(10,10,30,.06), 0 0 0 3px rgba(91,61,245,.22); }
.app input[type=checkbox], .app input[type=radio] { accent-color:#000; width:17px; height:17px; flex:none; margin:3px 0 0; }
/* a tick or radio with its sentence: the box sits in the left margin and the text wraps as one paragraph beside it */
.check { font-weight:400 !important; display:block !important; position:relative; padding-left:28px; margin-bottom:11px !important; }
.check input { position:absolute; left:0; top:3px; margin:0 !important; }
.app button { padding:12px 18px; font-size:15px; border-radius:12px; }
.app button.ghost, .btn.ghost { --foot:#c9c8d6; color:var(--ink); border-color:var(--line2); background:linear-gradient(180deg,#ffffff,#f1f0f6);
  box-shadow:inset 0 1px 0 #fff, inset 0 -3px 0 rgba(10,10,30,.07), 0 2px 0 var(--foot), 0 14px 26px -14px rgba(20,20,60,.35); }
.app button.ghost:hover, .btn.ghost:hover { color:var(--ink); filter:brightness(1.03); }
.app button.ghost:active { box-shadow:inset 0 1px 0 #fff, inset 0 -1px 0 rgba(10,10,30,.07), 0 0 0 var(--foot), 0 6px 12px -10px rgba(20,20,60,.35); }
.row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 0; border-top:1px solid var(--line); margin:0 !important; font-weight:400 !important; }
.app label.row, .app form.row { display:flex; }
.app form + form, .app form + p, .app p + form { margin-top:18px; }
.row:first-of-type { border-top:0; }
.row span { min-width:0; overflow-wrap:anywhere; }
.row select { width:auto !important; max-width:60%; margin:0 !important; }
.row small { display:inline; }
.row button { padding:9px 13px; font-size:13.5px; flex:none; }
.flash { border-color:var(--ok); border-radius:14px; padding:12px 16px; margin:0 0 18px; color:var(--ink); }
.server { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px; margin:0 0 12px; border-radius:18px; text-decoration:none; color:var(--ink); transition:transform .2s, border-color .2s; }
.server:hover { transform:translateY(-2px); border-color:#000; }
.server span { color:var(--violet); font-size:14px; white-space:nowrap; }
.bar { height:12px; background:#f1f0f6; border:1px solid var(--line2); border-radius:8px; overflow:hidden; margin:0 0 14px; }
.bar i { display:block; height:100%; background:#000; border-radius:8px; }
.app ul { padding-left:20px; }
.app .hero { min-height:0; padding:clamp(20px,5vh,56px) 0 30px; }
.app .hero h1 { font-size:clamp(30px,5vw,54px); }
.app .stage { height:min(54vh,460px); }

/* ---- narrower screens ---- */
@media (max-width:900px) {
  .hero { grid-template-columns:1fr; gap:0; min-height:0; align-items:start; padding-top:0; }
  .hero .stage { order:-1; height:clamp(190px,34svh,330px); }
  .hero h1 { margin-bottom:14px; }
  .cta { margin:20px 0 14px; }
  .js .scroll-cue { display:none; }
  .demo, .two { grid-template-columns:1fr; }
  .grid .card, .grid .card.wide { grid-column:span 3; }
  .grid .card.full { grid-column:span 6; }
  .nav nav a.hide-s { display:none; }
  body::after { background:radial-gradient(120vmax 70vmax at 50% 46%,rgba(255,255,255,.86),rgba(255,255,255,0) 70%); }
}
@media (max-width:560px) {
  body { font-size:16px; }
  :root { --dot:26px; }
  .grid .card, .grid .card.wide, .grid .card.full { grid-column:span 6; }
  .cta .btn { flex:1 1 100%; }
  .nav .btn { flex:none; }
  .steps li { grid-template-columns:34px minmax(0,1fr); gap:10px; padding:14px 16px; }
  .row { flex-direction:column; align-items:stretch; }
  .row select { max-width:100% !important; width:100% !important; }
  .tabs { position:static; }
  code { white-space:normal; overflow-wrap:anywhere; }
  .who { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .js .reveal { opacity:1; transform:none; }
  .drag { translate:none; }
}

/* pricing */
.plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
.plan { padding:28px 26px 24px; display:flex; flex-direction:column; }
.plan:nth-child(1) { --k:.55; } .plan:nth-child(2) { --k:1.1; } .plan:nth-child(3) { --k:1.6; }
.plan h3 { margin:0 0 14px; font-size:18px; }
.plan .price { font:680 clamp(34px,4vw,48px)/1 var(--font); letter-spacing:-.04em; color:var(--ink); margin:0 0 16px; }
.plan .price small { font-size:15px; font-weight:500; letter-spacing:0; color:var(--mute); }
.plan ul { list-style:none; margin:18px 0 0; padding:16px 0 0; border-top:1px solid var(--line); display:grid; gap:9px; font-size:15px; }
.plan li { display:flex; gap:10px; align-items:center; color:var(--ink); }
.plan li::before { content:""; width:7px; height:7px; border-radius:50%; background:#000; flex:none; }
.plan.dark { background:linear-gradient(180deg,#22212c,#08080c); border-color:#000; position:relative; overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 30px 60px -30px rgba(10,10,30,.7); }
.plan.dark::before { content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--holo); }
.plan.dark h3, .plan.dark .price, .plan.dark li { color:#fff; }
.plan.dark p, .plan.dark .price small { color:#b9b8c8; }
.plan.dark ul { border-top-color:rgba(255,255,255,.16); }
.plan.dark li::before { background:var(--holo); }
.models { width:100%; border-collapse:collapse; font-size:15px; }
.models th { text-align:left; font:650 12px/1 var(--font); letter-spacing:.1em; text-transform:uppercase; color:var(--mute); padding:0 0 10px; }
.models td { padding:11px 0; border-top:1px solid var(--line); color:var(--ink); vertical-align:top; }
.models td:last-child { text-align:right; white-space:normal; }
.models small { display:block; }
@media (max-width:900px) { .plans { grid-template-columns:1fr; } }

/* documentation page */
.doc { width:min(1100px, 100% - 2*clamp(16px,4vw,40px)); margin:clamp(20px,5vh,56px) auto 80px; display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(20px,4vw,56px); position:relative; z-index:1; }
.doc aside { position:sticky; top:86px; align-self:start; display:grid; gap:2px; font-size:14.5px; padding:14px; }
.doc aside a { color:var(--soft); text-decoration:none; padding:7px 10px; border-radius:9px; }
.doc aside a:hover { background:#000; color:#fff; }
.doc article > header { margin:0 0 26px; }
.doc article h1 { font-size:clamp(30px,4.6vw,50px); letter-spacing:-.04em; margin:0 0 14px; }
.doc section { padding:clamp(22px,3vw,34px); margin:0 0 16px; scroll-margin-top:86px; }
.doc section h2 { font-size:23px; margin:0 0 12px; display:flex; gap:12px; align-items:baseline; }
.doc section h2 span { font:700 13px/1 var(--mono); color:var(--mute); }
.doc section p:last-child, .doc section ul:last-child { margin-bottom:0; }
.doc ul { padding-left:20px; margin:0 0 14px; }
.doc li { margin-bottom:7px; }
.doc li::marker { color:#000; }
.tip { border-left:3px solid #000; padding:2px 0 2px 14px; color:var(--soft); margin:14px 0 0; }
.cmds { width:100%; border-collapse:collapse; font-size:15px; }
.cmds td { padding:10px 0; border-top:1px solid var(--line); vertical-align:top; }
.cmds tr:first-child td { border-top:0; }
.cmds td:first-child { white-space:nowrap; padding-right:18px; }
@media (max-width:900px) { .doc { grid-template-columns:1fr; } .doc aside { position:static; grid-template-columns:1fr 1fr; } }
@media (max-width:560px) { .cmds td { display:block; padding:0 0 10px; border:0; } .cmds td:first-child { padding:10px 0 3px; border-top:1px solid var(--line); } .cmds tr:first-child td:first-child { border-top:0; } }
