/* Website Copier — Vercel-inspired system. Tokens mirror panel/panel.css. */
:root {
  color-scheme: dark;
  --canvas: #000000;
  --canvas-soft: #0a0a0a;
  --canvas-soft-2: #1a1a1a;
  --ink: #ededed;
  --body: #a1a1a1;
  --mute: #7d7d7d;
  --hairline: #262626;
  --link: #3291ff;
  --sans: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 100px;
  --shadow-2: 0 0 0 1px rgba(255,255,255,.07);
  --shadow-3: 0 0 0 1px rgba(255,255,255,.07), 0 8px 24px -12px rgba(0,0,0,.9);
  --shadow-4: 0 0 0 1px rgba(255,255,255,.07), 0 8px 16px -4px rgba(0,0,0,.8), 0 24px 48px -12px rgba(0,0,0,.9);
  --page: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #ededed; color: #000; }
a { color: inherit; }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.2px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #ededed; color: #0a0a0a; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.wordmark { font-weight: 600; letter-spacing: -0.03em; font-size: 15px; }
.wm-light { font-weight: 400; color: var(--body); }
.nav-links { display: flex; gap: 2px; margin-left: 24px; }
.nav-links a { text-decoration: none; color: var(--body); font-size: 14px; padding: 8px 12px; border-radius: 9999px; }
.nav-links a:hover { background: var(--canvas-soft-2); color: var(--ink); }

/* ---------- buttons: one pill scale for marketing ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); font-weight: 500; font-size: 16px; line-height: 24px;
  padding: 12px 24px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #ededed; color: #0a0a0a; }
.btn-primary:hover { background: #ffffff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { border-color: #3d3d3d; background: #101010; }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero mesh: hero scale only ---------- */
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 12% -40px, rgba(0,124,240,.34), transparent 70%),
    radial-gradient(640px 340px at 42% -80px, rgba(0,223,216,.28), transparent 70%),
    radial-gradient(600px 320px at 70% -60px, rgba(121,40,202,.27), transparent 70%),
    radial-gradient(520px 300px at 92% -30px, rgba(255,0,128,.24), transparent 70%),
    radial-gradient(480px 260px at 55% 40px, rgba(249,203,40,.20), transparent 70%);
}
.hero-stack { position: relative; overflow: hidden; background: var(--canvas); border-bottom: 1px solid var(--hairline); text-align: center; }
.hero-stack .wrap { position: relative; padding: 88px 24px 96px; }
.hero-stack h1 { font-size: 64px; line-height: 64px; font-weight: 600; letter-spacing: -2.8px; margin: 24px auto; max-width: 16ch; }
.hero-stack h1 .muted { color: var(--mute); font-weight: 400; }
.hero-stack .pill-banner { margin: 0 auto; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stack .lede { font-size: 18px; line-height: 28px; color: var(--body); max-width: 46ch; margin: 0 auto 32px; }
.hero-stack .trust { font-size: 12.5px; color: var(--mute); margin: 16px 0 64px; }
.hero-stack .bento { text-align: left; }
.store-note { font-size: 12.5px; color: var(--mute); margin-top: 14px; }
.buy-note { font-size: 12.5px; color: var(--mute); margin-top: 12px; text-align: center; }
.guarantee { display: flex; gap: 20px; align-items: center; background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 28px 32px; margin-top: 16px; }
.g-num { font-size: 44px; font-weight: 600; letter-spacing: -2px; line-height: 1; flex: 0 0 auto; }
.g-num span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--mute); font-family: var(--mono); }
.guarantee b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 4px; }
.guarantee span:last-child { color: var(--body); font-size: 14.5px; }
.early-tile { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 36px; }
.early-tile .t { font-size: 12px; color: var(--mute); display: block; margin-bottom: 12px; }
.early-big { font-size: 26px; font-weight: 600; letter-spacing: -1px; line-height: 1.25; margin-bottom: 10px; }
.early-tile p { color: var(--body); font-size: 15px; margin-bottom: 22px; }
.plan .was { font-size: 13px; color: var(--mute); margin: -12px 0 20px; }
.plan .was s { color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { font-size: 12.5px; color: var(--body); background: var(--canvas-soft-2); border: 1px solid var(--hairline); border-radius: 9999px; padding: 6px 14px; }
.pill-banner {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--canvas-soft-2); border: 1px solid var(--hairline);
  color: var(--body); font-size: 14px; border-radius: var(--r-pill); padding: 6px 14px;
}
.pill-banner .dot { width: 7px; height: 7px; border-radius: 50%; background: #17a34a; flex: 0 0 7px; }
.shiny {
  background: linear-gradient(110deg, var(--body) 35%, #ffffff 50%, var(--body) 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .shiny { animation: shine-sweep 3.2s linear infinite; }
}
@keyframes shine-sweep { to { background-position: -220% 0; } }
/* ---------- Planar components ---------- */
.announce { background: #ededed; color: #0a0a0a; font-size: 13.5px; text-align: center; padding: 10px 16px; }
.announce a { color: #0a0a0a; font-weight: 600; }
.nav-island-wrap { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.nav-island {
  display: flex; align-items: center; gap: 8px;
  background: rgba(8,8,8,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-3);
  padding: 10px 10px 10px 16px;
}
.nav-island .nav-links { margin-left: 16px; }
.nav-island .btn { margin-left: auto; }
.bento { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; text-align: left; }
.tile {
  background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--shadow-3); overflow: hidden;
}
.tile-demo { grid-row: span 2; }
.tile-side { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile-side .t { font-size: 12px; color: var(--mute); }
.tile-big { font-size: 44px; font-weight: 600; letter-spacing: -1.8px; line-height: 1; }
.tile-note { font-size: 13.5px; color: var(--body); }
.tile-btn { align-self: flex-start; margin-top: 4px; }
.intro .statement { font-size: 32px; line-height: 1.35; font-weight: 600; letter-spacing: -1px; max-width: 30ch; }
.intro .statement .muted { color: var(--mute); font-weight: 400; }
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--canvas); }
.strip .wrap { display: flex; align-items: center; justify-content: center; gap: 20px 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.strip-label { font-size: 13px; color: var(--mute); }
.browser-logos { display: flex; gap: 28px; align-items: center; }
.browser-logos img { display: block; width: 26px; height: 26px; }
.sidebar-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; }
.side-link { text-decoration: none; color: var(--mute); font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: var(--r-sm); border-left: 2px solid var(--hairline); }
.side-link:hover { color: var(--ink); }
.side-link.active { color: var(--ink); border-left-color: var(--ink); background: var(--canvas-soft-2); }
.side-title { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.sidebar-content { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-2); padding: 36px; scroll-margin-top: 110px; }
.feature-row h2 { margin-bottom: 10px; }
.feature-row p { color: var(--body); }
.mini-tile { box-shadow: none; border-radius: var(--r-md); padding: 20px; }
.mini-tile .t { font-size: 12px; color: var(--mute); display: block; margin-bottom: 12px; }
.mini-tile .mode-tabs { margin-bottom: 12px; }
.static-out { min-height: 0; }
.license-chip { display: flex; align-items: center; gap: 12px; background: var(--canvas-soft-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; font-weight: 500; }
.license-chip .g { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--canvas); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 30px; }
.icon-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px 40px; margin-top: 48px; }
.icon-row { display: flex; gap: 14px; align-items: flex-start; }
.boxed-icon { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--canvas-soft-2); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2); }
.boxed-icon svg [stroke] { stroke: #ededed; }
.icon-row b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.icon-row span { font-size: 14px; color: var(--body); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #0a0a0a; color: #ededed; border: 1px solid var(--hairline); font-size: 12px; font-weight: 600; border-radius: 9999px; padding: 4px 14px; white-space: nowrap; }
.plan-featured { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  @property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  .plan-featured::before {
    content: ""; position: absolute; inset: -1px; border-radius: 13px; padding: 1.5px;
    background: conic-gradient(from var(--beam), transparent 0 68%, #50e3c2 82%, #007cf0 92%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: beam-spin 4.5s linear infinite; pointer-events: none;
  }
}
@keyframes beam-spin { to { --beam: 360deg; } }
.big-cta { text-align: left; background: var(--canvas); border-top: 1px solid var(--hairline); }
.big-cta h2 { font-size: 56px; line-height: 1.05; letter-spacing: -2.4px; margin-bottom: 32px; max-width: 14ch; }
.foot-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--canvas-soft-2); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 32px; margin-bottom: 48px;
}
.foot-cta h3 { font-size: 22px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 4px; }
.foot-cta p { color: var(--body); font-size: 14px; }

/* live panel demo: a real component preview, interactive */
.demo {
  background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-4); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); background: var(--canvas-soft-2); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; display: block; }
.demo-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.demo-body { padding: 20px; }
.demo-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.demo-tab {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--body);
  background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: 64px; padding: 7px 14px; cursor: pointer;
}
.demo-tab[aria-selected="true"] { background: #ededed; border-color: #ededed; color: #0a0a0a; }
.demo-out {
  background: #000; color: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; min-height: 172px;
}
.demo-out .k { color: #8f8f8f; }
.demo-out .v { color: #fff; }
.demo-out .ok { color: #50e3c2; }
.demo-go { width: 100%; margin-top: 16px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--canvas); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section h2 { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -1.28px; margin-bottom: 12px; max-width: 24ch; }
.section .sub { color: var(--body); font-size: 16px; max-width: 62ch; margin-bottom: 48px; }

section[id] { scroll-margin-top: 80px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* anatomy: annotation list + live specimen */
.anatomy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: stretch; }
.ana-list { display: flex; flex-direction: column; gap: 12px; }
.ana-item {
  text-align: left; background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 20px; cursor: pointer; box-shadow: var(--shadow-2);
  font-family: var(--sans);
}
.ana-item .t { font-size: 12px; color: var(--mute); display: block; margin-bottom: 6px; }
.ana-item .h { font-size: 17px; font-weight: 600; letter-spacing: -.3px; display: block; margin-bottom: 4px; }
.ana-item .d { font-size: 14px; color: var(--body); display: block; }
.ana-item[aria-pressed="true"] { border-color: var(--ink); box-shadow: var(--shadow-3); }
.specimen { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-4); overflow: hidden; margin: 0; }
.spec-bar { background: var(--canvas-soft-2); border-bottom: 1px solid var(--hairline); padding: 10px 16px; font-size: 12px; color: var(--mute); }
.spec-page { padding: 32px 36px 36px; transition: background .25s ease; }
.spec-kicker { font-size: 11px; color: var(--mute); margin-bottom: 10px; }
.spec-h { font-size: 26px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; margin-bottom: 6px; }
.spec-byline { font-size: 12px; color: var(--mute); margin-bottom: 16px; }
.spec-p { font-size: 15px; color: var(--body); margin-bottom: 14px; max-width: 52ch; }
.spec-img {
  height: 150px; border-radius: var(--r-md); margin: 4px 0 8px;
  background:
    radial-gradient(220px 120px at 20% 20%, rgba(0,124,240,.35), transparent 70%),
    radial-gradient(240px 130px at 70% 30%, rgba(121,40,202,.32), transparent 70%),
    radial-gradient(200px 120px at 85% 90%, rgba(255,0,128,.30), transparent 70%),
    radial-gradient(260px 140px at 40% 100%, rgba(0,223,216,.30), transparent 70%),
    var(--canvas-soft-2);
}
.spec-cap { font-size: 12px; color: var(--mute); margin-bottom: 14px; }
.spec-link { font-size: 14px; font-weight: 500; color: var(--link); }
.spec-page [data-part-region] { border-radius: var(--r-sm); transition: opacity .25s ease, box-shadow .25s ease; }
.spec-page.focusing [data-part-region] { opacity: .28; }
.spec-page.focusing [data-part-region].hl { opacity: 1; box-shadow: 0 0 0 1.5px var(--ink); }

/* modes: tab pills + panel, not equal cards */
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.mode-tab {
  font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 64px; cursor: pointer;
  background: var(--canvas-soft); border: 1px solid var(--hairline); color: var(--body);
}
.mode-tab[aria-selected="true"] { background: #ededed; border-color: #ededed; color: #0a0a0a; }
.mode-meta { font-family: var(--mono); font-size: 12px; color: var(--mute); background: var(--canvas-soft-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 12px; }
.mode-tree { background: #ededed; color: #0a0a0a; border-radius: var(--r-md); padding: 22px; font-size: 13px; line-height: 2; white-space: pre; overflow-x: auto; }
.mode-tree-note { font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.plan { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; font-weight: 600; letter-spacing: -.6px; }
.plan .price { font-size: 48px; font-weight: 600; letter-spacing: -2px; margin: 12px 0 4px; }
.plan .per { color: var(--body); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; margin-bottom: 28px; }
.plan li { padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--body); }
.plan li:last-child { border-bottom: 1px solid var(--hairline); }
.plan .btn { margin-top: auto; }
.plan-featured { background: #ededed; color: #0a0a0a; border-color: #ededed; }
.plan-featured .per, .plan-featured li { color: #525252; }
.plan-featured li { border-color: rgba(0,0,0,.12); }
.plan-featured .btn-secondary { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.plan-featured .btn-secondary:hover { background: #2b2b2b; border-color: #2b2b2b; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; background: var(--canvas-soft-2); border: 1px solid var(--hairline); border-radius: 9999px; padding: 3px 10px; margin-bottom: 12px; color: var(--body); }
.plan-featured .tag { background: rgba(0,0,0,.08); border-color: transparent; color: #0a0a0a; }

/* faq */
.faq { max-width: 760px; }
.faq details { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); margin-bottom: 12px; box-shadow: var(--shadow-2); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 500; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .a { padding: 0 20px 18px; color: var(--body); font-size: 15px; }

/* install */
.install-card { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.install-card ol { margin: 16px 0 24px 20px; color: var(--body); font-size: 15px; }
.install-card ol li { margin-bottom: 8px; }
.code { font-family: var(--mono); font-size: 13px; background: #000; color: #ededed; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px 20px; line-height: 1.8; overflow-x: auto; }

/* footer */
footer { border-top: 1px solid var(--hairline); background: var(--canvas); padding: 64px 0 32px; color: var(--body); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot-brand { margin-bottom: 40px; }
.foot-brand p { color: var(--body); font-size: 14px; margin-top: 12px; max-width: 38ch; }
.foot-grid h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hairline); padding-top: 24px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.foot-base a, .subfooter .copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #3d3d3d; }
.foot-base a:hover, .subfooter .copy a:hover { text-decoration-color: currentColor; }

/* prose pages */
.prose { max-width: 760px; padding: 64px 0 96px; }
.prose h1 { font-size: 40px; letter-spacing: -1.6px; font-weight: 600; margin-bottom: 12px; }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-bottom: 32px; }
.prose h2 { font-size: 22px; letter-spacing: -.5px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--body); margin-bottom: 12px; }
.prose ul { margin-left: 20px; }
/* ---------- subpages: docs system ---------- */
.toc { list-style: none; margin: 0 0 36px; padding: 8px 20px; background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.toc li { padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--hairline); }
.toc li:last-child { border-bottom: 0; }
.toc a { text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--ink); }
.toc .n { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-right: 10px; }
.guide-pager { display: flex; gap: 12px; margin-top: 56px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.guide-pager a { flex: 1; text-decoration: none; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 18px; background: var(--canvas-soft); }
.guide-pager a:hover { border-color: #3d3d3d; }
.guide-pager .dir { font-family: var(--mono); font-size: 11.5px; color: var(--mute); display: block; margin-bottom: 4px; }
.guide-pager .t { font-weight: 600; font-size: 15px; }
.guide-pager .next { text-align: right; }
.related { margin-top: 48px; }
.related h2 { font-size: 20px; letter-spacing: -.4px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px; font-weight: 600; font-size: 14.5px; }
.related-card:hover { border-color: #3d3d3d; transform: translateY(-2px); }
.related-card .go { color: var(--mute); font-weight: 400; }
.cta-strip { margin-top: 56px; background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.cta-strip p { color: var(--body); font-size: 15px; margin: 0; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.subfooter { border-top: 1px solid var(--hairline); margin-top: 96px; padding: 28px 0; }
.subfooter .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.subfooter nav { display: flex; gap: 18px; margin-left: auto; }
.subfooter nav a { text-decoration: none; font-size: 13.5px; color: var(--body); }
.subfooter nav a:hover { color: var(--ink); }
.subfooter .copy { color: var(--mute); font-size: 12.5px; }
.steps { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; text-align: left; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 18px; }
.step .n { font-family: var(--mono); font-size: 12.5px; color: var(--mute); flex: 0 0 20px; padding-top: 2px; }
.step b { display: block; font-size: 15px; }
.step span:last-child { color: var(--body); font-size: 14px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.feedback-grid { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.display-404 { font-size: 88px; font-weight: 600; letter-spacing: -4px; line-height: 1; margin-bottom: 12px; }
.success-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-4); padding: 48px; text-align: center; max-width: 640px; margin: 96px auto; }
.success-mark { width: 48px; height: 48px; border-radius: 50%; background: #17a34a; color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-card h1 { font-size: 32px; letter-spacing: -1.28px; margin-bottom: 10px; }
.success-card p { color: var(--body); margin-bottom: 8px; }
.success-ref { font-family: var(--mono); font-size: 12px; color: var(--mute); background: var(--canvas-soft-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 8px 12px; margin: 16px 0 24px; display: inline-block; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1), filter .6s ease; }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal .icon-row { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.reveal.in .icon-row { opacity: 1; transform: none; }
.reveal.in .icon-row:nth-child(2) { transition-delay: .06s; }
.reveal.in .icon-row:nth-child(3) { transition-delay: .12s; }
.reveal.in .icon-row:nth-child(4) { transition-delay: .18s; }
.reveal.in .icon-row:nth-child(5) { transition-delay: .24s; }
.reveal.in .icon-row:nth-child(6) { transition-delay: .3s; }

/* motion: entrance, drift, hover physics. Gated to no-preference. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stack .pill-banner { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hero-stack h1 { animation: rise .7s .08s cubic-bezier(.16,1,.3,1) both; }
  .hero-stack .lede { animation: rise .7s .14s cubic-bezier(.16,1,.3,1) both; }
  .hero-stack .hero-ctas { animation: rise .7s .2s cubic-bezier(.16,1,.3,1) both; }
  .hero-stack .trust { animation: rise .7s .26s cubic-bezier(.16,1,.3,1) both; }
  .hero-stack .bento { animation: rise .8s .32s cubic-bezier(.16,1,.3,1) both; }
  .hero-mesh { animation: drift 16s ease-in-out infinite alternate; }
  .browser-logos img { transition: transform .25s cubic-bezier(.16,1,.3,1); }
  .browser-logos img:hover { transform: translateY(-2px) scale(1.08); }
  .tile, .plan, .feature-row, .ana-item, .icon-row .boxed-icon { transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease; }
  .tile:hover, .plan:hover, .ana-item:hover { transform: translateY(-3px); border-color: #3d3d3d; }
  .feature-row:hover { border-color: #333; }
  .icon-row:hover .boxed-icon { transform: translateY(-2px); border-color: #3d3d3d; }
  .btn { transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s ease, border-color .2s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .nav-links a, .foot-grid a { transition: color .2s ease, background .2s ease; }
  .demo-tab, .mode-tab { transition: background .2s ease, color .2s ease, border-color .2s ease; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-2%, 3%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal .icon-row { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-mesh, .hero-stack .pill-banner, .hero-stack h1, .hero-stack .lede, .hero-stack .hero-ctas, .hero-stack .trust, .hero-stack .bento { animation: none; }
}

@media (max-width: 960px) {
  .anatomy, .plans, .install-card { grid-template-columns: 1fr; }
  .hero-stack .wrap { padding: 64px 24px; }
  .hero-stack h1 { font-size: 42px; line-height: 44px; letter-spacing: -1.8px; }
  .bento { grid-template-columns: 1fr; }
  .tile-demo { grid-row: auto; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-link { border-left: 0; border: 1px solid var(--hairline); }
  .side-link.active { border-color: var(--ink); }
  .feature-row { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .big-cta h2 { font-size: 40px; }
  .tile-side { padding: 24px; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .icon-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .guide-pager { flex-direction: column; }
  .guide-pager .next { text-align: left; }
  .cta-strip { padding: 28px 24px; }
}
