/* Driftline landing. Brand: ink #0A0A0A, paper #FAFAFA, lime #C6F432 (on light: #5E8C00). */

@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0A0A0A;
  --ink-2: #111211;
  --ink-3: #181A17;
  --line: rgba(250, 250, 250, 0.09);
  --line-2: rgba(250, 250, 250, 0.16);
  --paper: #FAFAFA;
  --mute: #9A9D96;
  --mute-2: #6E716A;
  --lime: #C6F432;
  --lime-deep: #5E8C00;
  --red: #FF6A4D;
  --amber: #FFB547;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); transform: translateY(-1px); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: .98; }
h2 { font-size: clamp(40px, 6.4vw, 84px); }
h2 .dim, h1 .dim { color: var(--mute-2); }
.lede { color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 12px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lime); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 10px 40px -10px rgba(198, 244, 50, .45); }
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost::after { background: var(--paper); }
.btn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
.btn.lime { --bg: var(--lime); }
.btn.lime::after { background: var(--paper); }
.btn.lime:hover { box-shadow: 0 10px 40px -10px rgba(250, 250, 250, .35); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 10, 10, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.logo svg { width: 28px; height: 28px; }
.logo .blip { transition: transform .6s var(--ease); transform-origin: center; transform-box: fill-box; }
.logo:hover .blip { transform: translate(2px, -2px); }
.nav ul { display: flex; gap: 30px; list-style: none; font-size: 14.5px; color: var(--mute); }
.nav ul a { transition: color .2s; }
.nav ul a:hover { color: var(--paper); }
@media (max-width: 820px) { .nav ul { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); padding: 132px 0 72px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { /* fade the field into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 0;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); margin: 26px 0 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
.hero h1 em { font-style: normal; color: var(--lime); }
@keyframes rise { to { transform: translateY(0); } }
.hero .lede, .hero .ctas, .hero .eyebrow, .hero .fine { opacity: 0; animation: fade .9s var(--ease) .45s forwards; }
.hero .eyebrow { animation-delay: .1s; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation-delay: .55s; }
.hero .fine { margin-top: 18px; font-size: 13.5px; color: var(--mute-2); animation-delay: .65s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 112px; } }

/* editor card */
.editor {
  position: relative; border-radius: 18px; background: rgba(17, 18, 17, .82);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; animation: fade 1s var(--ease) .35s forwards;
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
}
.editor .bar { border-radius: 18px 18px 0 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.editor .dots { display: flex; gap: 6px; margin-right: 8px; }
.editor .dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--line-2); }
.editor .tab { color: var(--paper); }
.editor .tab small { color: var(--mute-2); }
.editor .code { position: relative; padding: 16px 0 18px; overflow-x: auto; }
.editor .ln { display: grid; grid-template-columns: 44px 1fr; white-space: pre; padding-right: 18px; }
.editor .ln > b { font-weight: 400; color: var(--mute-2); text-align: right; padding-right: 16px; user-select: none; }
.editor .k { color: #C792EA; } .editor .s { color: #E6E8D8; } .editor .f { color: #8BD5FF; } .editor .c { color: var(--mute-2); } .editor .p { color: var(--mute); }
.editor .hit { position: relative; transition: background .5s; }
.editor .hit.on { background: rgba(255, 181, 71, .09); box-shadow: inset 2px 0 0 var(--amber); }
.editor .hit .model { border-radius: 4px; transition: background .4s, color .4s; }
.editor .hit.on .model { background: rgba(255, 181, 71, .18); color: var(--amber); }
.editor .scan {
  position: absolute; left: 0; right: 0; height: 26px; top: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(198, 244, 50, .12), transparent);
  border-bottom: 1px solid rgba(198, 244, 50, .55); opacity: 0;
}
.annot {
  margin: 4px 16px 0 44px; border-radius: 10px; border: 1px solid rgba(255, 181, 71, .35);
  background: rgba(255, 181, 71, .07); padding: 11px 14px; font-family: var(--body); font-size: 13px; line-height: 1.5;
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; white-space: normal;
  max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; border-width: 0;
  transition: max-height .6s var(--ease), opacity .5s .1s, padding .6s var(--ease), border-width .1s;
}
.annot.show { max-height: 160px; opacity: 1; padding-top: 11px; padding-bottom: 11px; border-width: 1px; }
.annot .ic { width: 18px; height: 18px; border-radius: 5px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; margin-top: 1px; }
.annot strong { display: block; font-weight: 600; color: var(--paper); }
.annot span { color: #E7D9BF; }
.annot code { font-size: 12px; color: var(--paper); }
.editor .status { display: flex; justify-content: flex-start; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--mute-2); font-size: 11.5px; }
.editor .status .live { color: var(--lime); display: inline-flex; align-items: center; gap: 7px; }
.editor .status .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,244,50,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(198,244,50,0); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }

.countdown {
  position: absolute; right: -16px; bottom: -26px; z-index: 2;
  background: var(--lime); color: var(--ink); border-radius: 12px; padding: 10px 14px 9px;
  font-family: var(--display); line-height: 1; box-shadow: 0 18px 50px -12px rgba(198, 244, 50, .5);
  transform: rotate(3deg); opacity: 0; animation: pop .8s var(--ease) 1.6s forwards;
}
.countdown b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.countdown small { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
@keyframes pop { from { opacity: 0; transform: rotate(3deg) scale(.7); } to { opacity: 1; transform: rotate(3deg) scale(1); } }
@media (max-width: 560px) { .countdown { right: 10px; bottom: -30px; } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; position: relative; background: var(--ink); }
.ticker .head { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 22px 0 var(--gutter); background: linear-gradient(90deg, var(--ink) 75%, transparent); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.ticker .track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .item { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; font-family: var(--mono); font-size: 13px; color: var(--mute); white-space: nowrap; border-right: 1px solid var(--line); }
.ticker .item b { color: var(--paper); font-weight: 500; }
.ticker .item .d { color: var(--mute-2); }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--amber); flex: none; }
.dot.gone { background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(96px, 13vw, 168px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .eyebrow { margin-bottom: 22px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); position: relative; }
.step + .step { padding-left: 32px; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 12.5px; color: var(--lime); }
.step h3 { font-size: clamp(28px, 2.6vw, 36px); margin: 56px 0 14px; }
.step p { color: var(--mute); font-size: 16px; max-width: 26em; }
.step .glyph { position: absolute; top: 34px; right: 32px; width: 46px; height: 46px; }
.step:last-child .glyph { right: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step h3 { margin-top: 36px; }
  .step .glyph, .step:last-child .glyph { right: 0; }
}

/* install */
.install { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.install h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 18px; }
.install p { color: var(--mute); }
.install ul { list-style: none; margin-top: 26px; display: grid; gap: 12px; font-size: 15.5px; }
.install li { display: flex; gap: 12px; color: var(--mute); }
.install li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; flex: none; border-radius: 4px; background: var(--lime); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.5L11 4.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.5L11 4.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.install li b { color: var(--paper); font-weight: 500; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

.yaml { border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.yaml .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--mute); }
.copy { font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border-radius: 7px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background .2s; }
.copy:hover { color: var(--ink); background: var(--paper); }
.copy.done { color: var(--ink); background: var(--lime); box-shadow: none; }
.yaml pre { padding: 18px 20px 22px; overflow-x: auto; font-size: 13px; line-height: 1.75; color: var(--paper); }
.yaml .y-k { color: #8BD5FF; } .yaml .y-c { color: var(--mute-2); } .yaml .y-s { color: var(--lime); }

/* ---------- drift tests ---------- */
.light { background: var(--paper); color: var(--ink); }
.light .eyebrow { color: #55584F; }
.light .eyebrow::before { background: var(--lime-deep); }
.light .lede { color: #4D5048; }
.light h2 .dim { color: #A2A59C; }
.light ::selection { background: var(--ink); color: var(--lime); }

.cases { display: grid; gap: 18px; }
.case {
  display: grid; grid-template-columns: 220px 1fr 1fr 180px; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 0 rgba(10,10,10,.06), 0 0 0 1px rgba(10,10,10,.07);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.case:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(10,10,10,.25), 0 0 0 1px rgba(10,10,10,.1); }
.case > div { padding: 22px 22px 24px; min-width: 0; }
.case .meta { border-right: 1px solid #ECECE8; }
.case .meta b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.case .meta span { display: block; font-family: var(--mono); font-size: 11.5px; color: #6B6E66; line-height: 1.6; overflow-wrap: anywhere; }
.case .meta .arrow { color: #A2A59C; }
.case .ans { border-right: 1px solid #ECECE8; font-size: 14.5px; line-height: 1.55; }
.case .ans small { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #8A8D84; margin-bottom: 10px; }
.case .ans p { overflow-wrap: anywhere; }
.case .ans code { font-size: 12.5px; }
.case del { background: #FFE3DC; color: #9C2A12; text-decoration: none; border-radius: 3px; padding: 0 2px; }
.case ins { background: #EAF8C4; color: #3A5A00; text-decoration: none; border-radius: 3px; padding: 0 2px; }
.case .score { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: #FBFBF9; }
.case .score .num { font-family: var(--display); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.meter { height: 6px; border-radius: 6px; background: #ECECE8; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1.4s var(--ease) .2s; }
.case.in .meter i { width: var(--w); }
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; width: max-content; }
.tag.same { background: #EAF8C4; color: #3A5A00; } .tag.same + * i, .case.same .meter i { background: var(--lime-deep); }
.tag.changed { background: #FFF1D6; color: #8A5300; } .case.changed .meter i { background: #E89A12; }
.tag.broken { background: #FFE3DC; color: #9C2A12; } .case.broken .meter i { background: #E5492B; }
@media (max-width: 1000px) {
  .case { grid-template-columns: 1fr 1fr; }
  .case .meta { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #ECECE8; }
  .case .score { grid-column: 1 / -1; flex-direction: row; align-items: center; border-top: 1px solid #ECECE8; }
  .case .score .meter { flex: 1; }
}
@media (max-width: 600px) {
  .case { grid-template-columns: 1fr; }
  .case .ans { border-right: 0; border-bottom: 1px solid #ECECE8; }
  .case .score { flex-wrap: wrap; }
}
.legend { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: #55584F; }
.legend .tag { margin-right: 8px; }
.note { margin-top: 16px; font-size: 13px; color: #8A8D84; }

/* ---------- timeline ---------- */
.timeline { position: relative; }
.tl-axis { position: relative; height: 1px; background: var(--line-2); margin: 0 0 0; }
.tl-axis .today { position: absolute; top: -5px; width: 11px; height: 11px; border-radius: 3px; background: var(--lime); transform: translateX(-50%); }
.tl-axis .today::after { content: "Today"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.tl-months { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--mute-2); }
.tl-rows { margin-top: 56px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tl-row {
  display: grid; grid-template-columns: 170px 120px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .3s;
}
.tl-row:hover { background: linear-gradient(90deg, rgba(198,244,50,.04), transparent 70%); }
.tl-row .date { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.tl-row .who { font-family: var(--mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.tl-row .ids { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-row .ids code { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--ink-3); color: #D9DBD3; border: 1px solid var(--line); }
.tl-row .ids code.more { background: transparent; color: var(--mute); }
.tl-row .rel { font-family: var(--mono); font-size: 12.5px; color: var(--amber); white-space: nowrap; }
.tl-row.past .rel { color: var(--red); }
.tl-row.past .date { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.tl-row.far .rel { color: var(--mute); }
@media (max-width: 860px) {
  .tl-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .tl-row .ids { grid-column: 1 / -1; }
  .tl-row .who { grid-row: 2; }
}
.src { margin-top: 26px; font-size: 13.5px; color: var(--mute-2); }
.src a { color: var(--mute); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.src a:hover { color: var(--paper); }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.trust h2 { font-size: clamp(38px, 5.2vw, 70px); }
.flow { border-radius: 20px; border: 1px solid var(--line); background: var(--ink-2); padding: 28px; font-family: var(--mono); font-size: 12.5px; }
.flow .box { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flow .box.you { border-color: rgba(198,244,50,.5); background: rgba(198,244,50,.05); }
.flow .box b { font-weight: 500; color: var(--paper); }
.flow .box span { color: var(--mute-2); text-align: right; }
.flow .pipe { height: 30px; margin-left: 26px; border-left: 1px dashed var(--line-2); position: relative; }
.flow .pipe::after { content: ""; position: absolute; left: -3px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: travel 2.4s linear infinite; }
@keyframes travel { from { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: 100%; opacity: 0; } }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.facts b { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.04em; color: var(--lime); }
.facts span { font-size: 14px; color: var(--mute); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.billing { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); margin-top: 28px; position: relative; }
.billing button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 9px; font-size: 14px; color: var(--mute); transition: color .3s; }
.billing button[aria-pressed="true"] { color: var(--ink); }
.billing .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 9px; background: var(--paper); transition: transform .45s var(--ease), width .45s var(--ease); }
.billing em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--lime-deep); margin-left: 4px; }
.billing button:not([aria-pressed="true"]) em { color: var(--lime); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; }
.plan { border-radius: 22px; border: 1px solid var(--line-2); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; background: var(--ink-2); }
.plan.pro { background: var(--lime); color: var(--ink); border-color: var(--lime); position: relative; overflow: hidden; }
.plan .name { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.plan .price { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 6vw, 76px); letter-spacing: -0.05em; line-height: 1; margin: 30px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.plan .price small { font-size: 17px; letter-spacing: -0.01em; font-weight: 500; opacity: .7; }
.plan .per { font-size: 14px; opacity: .7; min-height: 1.6em; }
.plan ul { list-style: none; margin: 30px 0 36px; display: grid; gap: 12px; font-size: 15.5px; flex: 1; }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; flex: none; border-radius: 4px; background: currentColor; opacity: .85; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.5L11 4.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.5L11 4.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan li.muted { opacity: .55; }
.plan.free li { color: var(--mute); }
.plan.free li b { color: var(--paper); font-weight: 500; }
.plan.pro .btn { --bg: var(--ink); --fg: var(--paper); }
.plan.pro .btn::after { background: var(--paper); }
.plan.pro .btn:hover { color: var(--ink); box-shadow: 0 10px 40px -10px rgba(10,10,10,.5); }
.plan .btn { justify-content: center; width: 100%; }
.plan.pro .mark-bg { position: absolute; right: -40px; top: -40px; width: 220px; opacity: .14; pointer-events: none; }
.plan .small-print { margin-top: 14px; font-size: 12.5px; opacity: .65; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq h2 { font-size: clamp(40px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--paper), var(--paper)) center/14px 2px no-repeat, linear-gradient(var(--paper), var(--paper)) center/2px 14px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); background: linear-gradient(var(--lime), var(--lime)) center/14px 2px no-repeat, linear-gradient(var(--lime), var(--lime)) center/2px 14px no-repeat; }
.faq details p { color: var(--mute); padding: 0 40px 26px 0; max-width: 40em; }
.faq details p code { color: var(--paper); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- closing ---------- */
.closing { padding: clamp(110px, 16vw, 210px) 0; text-align: center; overflow: hidden; position: relative; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(52px, 10vw, 150px); letter-spacing: -0.05em; line-height: .92; }
.closing h2 em { font-style: normal; color: var(--lime); }
.closing .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 46px; }
.closing { isolation: isolate; }
.closing .wrap { position: relative; z-index: 1; }
.closing .blocks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; -webkit-mask: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask: radial-gradient(ellipse at center, #000 20%, transparent 75%); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a:hover { color: var(--paper); }
footer .legal { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute-2); }

/* ---------- legal pages ---------- */
.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(44px, 7vw, 76px); margin: 22px 0 14px; }
.doc .updated { color: var(--mute-2); font-family: var(--mono); font-size: 12.5px; margin-bottom: 48px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; line-height: 1.2; }
.doc p, .doc li { color: #C9CBC4; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0 0 20px; display: grid; gap: 8px; }
.doc a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker .track { animation: none; width: auto; overflow-x: auto; padding-left: 120px; }
  .ticker .item[aria-hidden] { display: none; }
}

/* grid children may shrink below their content (long code lines scroll instead of stretching the page) */
.hero .wrap > *, .sec-head > *, .install > *, .trust > *, .faq > *, .plans > *, .steps > * { min-width: 0; }
@media (max-width: 760px) { .plan.pro .mark-bg { width: 140px; right: -30px; top: -30px; opacity: .1; } }
