/* Roue website. No framework, no external fonts. Light and dark. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --bg-alt: #f3f1ed;
  --surface: #ffffff;
  --surface-2: #f4f2ef;
  --text: #1d1b22;
  --muted: #5d5966;
  --border: #e3e0da;
  --ink: #1e1a26;
  --ink-text: #ffffff;
  --link: #1a5fb4;
  --focus: #1c71d8;
  --shadow: 0 1px 2px rgb(30 26 38 / 6%), 0 8px 24px rgb(30 26 38 / 8%);
  --shadow-lg: 0 2px 6px rgb(30 26 38 / 8%), 0 24px 60px rgb(30 26 38 / 18%);

  --image: #26a269;
  --video: #c01c28;
  --audio: #9141ac;
  --document: #1c71d8;
  --custom: #c64600;
  --success: #26a269;

  --panel-bg: #fafafa;
  --panel-head: #ebebeb;
  --panel-tile-hover: rgb(53 132 228 / 14%);
  --accent: #3584e4;

  --radius: 18px;
  --font: system-ui, -apple-system, "Cantarell", "Inter", "Segoe UI", "Noto Sans", Ubuntu, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", "Source Code Pro", "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --bg-alt: #1a1820;
    --surface: #211e28;
    --surface-2: #2a2733;
    --text: #f2f0f5;
    --muted: #aaa5b4;
    --border: #36323f;
    --ink: #f2f0f5;
    --ink-text: #141218;
    --link: #8cbcff;
    --focus: #78aeed;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 40%), 0 24px 60px rgb(0 0 0 / 50%);

    --image: #57e389;
    --video: #ff7b7b;
    --audio: #dc8add;
    --document: #78aeed;
    --custom: #ffa348;
    --success: #57e389;

    --panel-bg: #2b2930;
    --panel-head: #232127;
    --panel-tile-hover: rgb(120 174 237 / 18%);
    --accent: #78aeed;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.36em;
}
pre code { background: none; border: 0; padding: 0; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center-row { justify-content: center; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-nav a:hover { background: var(--surface-2); }
.top-nav a[aria-current] { background: var(--surface-2); }

/* ---------- buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- hero ---------- */

.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 64px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.pill {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 22px;
}
.wheel-text {
  background: linear-gradient(95deg, var(--document) 0%, var(--audio) 38%, var(--video) 68%, #e5a50a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.lede kbd { font-size: 0.75em; }

.install {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.install code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 0.9rem;
  scrollbar-width: thin;
}
.install code::before { content: "$ "; color: var(--muted); }
.copy {
  flex: none;
  font: 600 0.88rem var(--font);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.copy:hover { background: var(--bg-alt); }
.copy.done { color: var(--success); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #33d17a, #3584e4, #c061cb, #ed333b, #33d17a);
  filter: blur(70px);
  opacity: 0.33;
  animation: spin 28s linear infinite;
}
@media (prefers-color-scheme: dark) { .glow { opacity: 0.28; } }

/* The animated wheel. Sized in container units so it scales as one piece;
   SVG text scales with the wheel. One 8 s loop: a file glides onto JPG,
   the slice lights up, the hub confirms, a notification follows. */
.wheel-demo {
  --wd-slice: #ffffff;
  --wd-edge: rgb(0 0 0 / 8%);
  --wd-hub: #242429;
  --wd-hot: #26a269;
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  container-type: inline-size;
  font-family: var(--font);
}
@media (prefers-color-scheme: dark) {
  .wheel-demo { --wd-slice: #303036; --wd-edge: rgb(255 255 255 / 8%); }
}
.wd-stage {
  position: absolute;
  left: 0;
  top: 2cqw;
  width: 100cqw;
  height: 100cqw;
  transform-origin: 50% 50%;
}
.wd-wheel {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1.6cqw 3cqw rgb(0 0 0 / 22%));
}
.wd-slice > path { fill: var(--wd-slice); stroke: var(--wd-edge); stroke-width: 1; }
.wd-wheel text { text-anchor: middle; fill: var(--text); }
.wd-t { font-size: 14.5px; font-weight: 700; }
.wd-s { font-size: 11px; fill-opacity: 0.6; }
.wd-ico { color: var(--image); }
.wd-more .wd-ico { color: var(--muted); }
.wd-ico .o { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wd-ico .f { fill: currentColor; }
.wd-ico .k { fill: none; stroke: var(--wd-slice); stroke-width: 1.6; stroke-linecap: round; }
.wd-hub { fill: var(--wd-hub); stroke: rgb(255 255 255 / 14%); stroke-width: 3; }
.wd-wheel .wd-hub-text text { fill: #fff; }
.wd-ht { font-size: 15px; font-weight: 700; }
.wd-hs { font-size: 10.5px; fill-opacity: 0.75; }
.wd-ok { fill: #33d17a; }
.wd-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
}
.wd-hover,
.wd-done { opacity: 0; }
@container (max-width: 380px) {
  .wd-t { font-size: 15.5px; }
  .wd-s { font-size: 12px; }
  .wd-hs { font-size: 11.5px; }
  .wd-note { font-size: 3.4cqw; }
  .wd-note-buttons span { font-size: 3cqw; }
}

.wd-file {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.4cqw 2.6cqw 1.4cqw 1.4cqw;
  border-radius: 2.2cqw;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(0 0 0 / 6%);
  font-size: 2.9cqw;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(60cqw, 86cqw);
  transform-origin: 0 0;
  opacity: 0;
}
.fic {
  display: grid;
  place-items: center;
  width: 5.6cqw;
  height: 6.6cqw;
  border-radius: 1.1cqw;
  color: #fff;
  font-size: 1.6cqw;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.fic.heic { background: #865e3c; }
.cursor { position: absolute; left: -1.7cqw; top: -2.1cqw; width: 3.6cqw; }

.wd-note {
  position: absolute;
  left: 50%;
  top: 1cqw;
  width: min(78cqw, 100%);
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding: 2.6cqw 3cqw;
  border-radius: 3.4cqw;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(0 0 0 / 6%);
  font-size: 3cqw;
  line-height: 1.25;
  transform: translate(-50%, -4cqw);
  opacity: 0;
}
.wd-note img { flex: none; width: 9cqw; height: 9cqw; }
.wd-note-text { display: flex; flex-direction: column; gap: 1.4cqw; min-width: 0; }
.wd-note-text b { font-weight: 700; }
.wd-note-buttons { display: flex; gap: 1.4cqw; }
.wd-note-buttons span {
  padding: 0.8cqw 2.2cqw;
  border-radius: 1.6cqw;
  background: var(--surface-2);
  font-size: 2.6cqw;
  font-weight: 650;
}

/* timeline: 8 s loop */
.wd-file { animation: wd-drag 8s cubic-bezier(.45, .05, .3, 1) infinite; }
.wd-target { animation: wd-pop 8s ease infinite; }
.wd-target > path { animation: wd-fill 8s ease infinite; }
.wd-target text { animation: wd-ink 8s ease infinite; }
.wd-target .wd-ico { animation: wd-icon 8s ease infinite; }
.wd-idle { animation: wd-idle 8s ease infinite; }
.wd-hover { animation: wd-hover 8s ease infinite; }
.wd-done { animation: wd-done 8s ease infinite; }
.wd-tick { animation: wd-tick 8s ease infinite; }
.wd-stage { animation: wd-close 8s ease infinite; }
.wd-note { animation: wd-note 8s ease infinite; }

@keyframes wd-drag {
  0%, 4% { transform: translate(60cqw, 86cqw); opacity: 0; }
  9% { transform: translate(60cqw, 86cqw); opacity: 1; }
  32% { transform: translate(54cqw, 32.6cqw) scale(0.92); opacity: 1; }
  40% { transform: translate(54cqw, 32.6cqw) scale(0.92); opacity: 1; }
  45%, 100% { transform: translate(54cqw, 32.6cqw) scale(0.4); opacity: 0; }
}
@keyframes wd-pop {
  0%, 29% { transform: translate(0, 0); }
  32%, 58% { transform: translate(0, -8px); }
  64%, 100% { transform: translate(0, 0); }
}
@keyframes wd-fill {
  0%, 29% { fill: var(--wd-slice); }
  32%, 58% { fill: var(--wd-hot); }
  64%, 100% { fill: var(--wd-slice); }
}
@keyframes wd-ink {
  0%, 29% { fill: var(--text); }
  32%, 58% { fill: #fff; }
  64%, 100% { fill: var(--text); }
}
@keyframes wd-icon {
  0%, 29% { color: var(--image); }
  32%, 58% { color: #fff; }
  64%, 100% { color: var(--image); }
}
@keyframes wd-idle {
  0%, 29% { opacity: 1; }
  31%, 92% { opacity: 0; }
  96%, 100% { opacity: 1; }
}
@keyframes wd-hover {
  0%, 29% { opacity: 0; }
  32%, 42% { opacity: 1; }
  44%, 100% { opacity: 0; }
}
@keyframes wd-done {
  0%, 43% { opacity: 0; }
  46%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes wd-tick {
  0%, 45% { stroke-dashoffset: 22; }
  51%, 100% { stroke-dashoffset: 0; }
}
@keyframes wd-close {
  0%, 58% { transform: scale(1); opacity: 1; }
  64%, 86% { transform: scale(0.88); opacity: 0; }
  94%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes wd-note {
  0%, 61% { transform: translate(-50%, -4cqw); opacity: 0; }
  66%, 84% { transform: translate(-50%, 0); opacity: 1; }
  89%, 100% { transform: translate(-50%, -2cqw); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- strip ---------- */

.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 0 auto;
  padding-block: 18px;
  list-style: none;
  font-weight: 650;
  font-size: 0.95rem;
}
.strip-list li { display: inline-flex; align-items: center; gap: 8px; }
.strip-list svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

/* ---------- sections & cards ---------- */

.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cards.uses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card p:last-child { margin-bottom: 0; }
.card code { white-space: nowrap; }
.card p { color: var(--muted); }

.way-art {
  height: 142px;
  margin: -6px -6px 22px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.way-art.keys { gap: 8px; color: var(--muted); font-weight: 700; }
.way-art.keys kbd { font-size: 1rem; padding: 0.35em 0.7em; box-shadow: var(--shadow); }
.way-art.menu { gap: 0; }
.ctx {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  min-width: 132px;
}
.ctx span { padding: 4px 10px; border-radius: 7px; display: flex; justify-content: space-between; }
.ctx .hl { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 650; }
.ctx i { font-style: normal; opacity: 0.6; }
.mini-wheel {
  --wd-slice: #ffffff;
  --wd-edge: rgb(0 0 0 / 10%);
  flex: none;
  width: 112px;
  height: 112px;
  margin: 26px 0 0 -16px;
  overflow: visible;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / 18%));
}
@media (prefers-color-scheme: dark) {
  .mini-wheel { --wd-slice: #303036; --wd-edge: rgb(255 255 255 / 10%); }
}
.mw-slice { fill: var(--wd-slice); stroke: var(--wd-edge); stroke-width: 3; }
.mw-slice.mw-lit { fill: #26a269; transform: translate(7px, 7px); }
.mw-hub { fill: #242429; stroke: rgb(255 255 255 / 14%); stroke-width: 6; }
.way-art.term {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 18px;
  background: #1d1b22;
  color: #e8e6ee;
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
}
.way-art.term b { color: #8f8a99; font-weight: 500; }
.way-art.term .ok { color: #57e389; }

.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.chip.image { color: var(--image); background: color-mix(in srgb, var(--image) 12%, transparent); }
.chip.video { color: var(--video); background: color-mix(in srgb, var(--video) 11%, transparent); }
.chip.audio { color: var(--audio); background: color-mix(in srgb, var(--audio) 12%, transparent); }
.chip.document { color: var(--document); background: color-mix(in srgb, var(--document) 12%, transparent); }
.arrow { color: var(--muted); font-weight: 700; }
.tile-ref { font-size: 0.9rem; }
.card .tile-ref b { color: var(--text); }

/* presets showcase */
.kinds {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-bottom: 36px;
}
.kind {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 14px;
}
.kind::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--c);
}
.kind-image { --c: var(--image); }
.kind-video { --c: var(--video); }
.kind-audio { --c: var(--audio); }
.kind-document { --c: var(--document); }
.kind-custom { --c: var(--custom); }
.kind h3 { display: flex; align-items: center; gap: 8px; }
.kind .dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.kind ul { list-style: none; margin: 0; padding: 0; }
.kind li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.kind li:first-child { border-top: 0; }
.pname { font-weight: 600; }
.pext { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

/* tutorial */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
  margin: 0 0 36px;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 62px 22px 22px;
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ink-text);
  font-weight: 800;
  font-size: 0.95rem;
}
.steps p { color: var(--muted); margin-bottom: 0.6em; }
.steps pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 0.82rem;
}

/* demo video */
.demo-video { margin: 0 auto; max-width: 1040px; }
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #0d0f17;
  box-shadow: var(--shadow-lg);
}
.demo-video figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

/* screenshots */
.shots { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .shots { grid-template-columns: 1.6fr 1fr; } }
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

/* split + code card */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split h2 { margin-bottom: 0.4em; }
.split p { color: var(--muted); }
.code-card {
  margin: 0;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: #1d1b22;
  color: #e8e6ee;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}
.code-card .c { color: #8f8a99; }
.code-card .k { color: #8cbcff; }
.code-card .s { color: #8ff0a4; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}
.card .ticks li { color: var(--text); }
.tag {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 99px;
  padding: 3px 9px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0;
}

/* privacy */
.privacy { padding: 60px 0; }
.privacy-inner {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  max-width: 980px;
}
@media (min-width: 760px) { .privacy-inner { grid-template-columns: auto 1fr; gap: 36px; } }
.privacy-icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, #33d17a, #3584e4, #c061cb, #ed333b, #33d17a);
}
.privacy-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.privacy p { color: var(--muted); }
.privacy p:last-child { margin-bottom: 0; }

/* faq */
.faq { border-top: 1px solid var(--border); margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 4px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: rotate 160ms ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 4px 18px; margin: 0; color: var(--muted); }

/* final */
.final { text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final img { margin-bottom: 18px; filter: drop-shadow(0 12px 24px rgb(0 0 0 / 18%)); }
.final p { color: var(--muted); font-size: 1.1rem; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-alt); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer-grid > div:first-child { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { margin-bottom: 10px; }
.footer-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.footer-row a { color: var(--link); }

/* ---------- docs ---------- */

.docs .site-footer { padding: 28px 0; }
.docs-layout { display: grid; gap: 0 40px; padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 900px) { .docs-layout { grid-template-columns: 220px minmax(0, 1fr); } }
@media (min-width: 1240px) { .docs-layout { grid-template-columns: 220px minmax(0, 1fr) 200px; } }

.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}
.docs-nav a:hover { background: var(--surface-2); }
.docs-nav a[aria-current="page"] { background: var(--surface-2); color: var(--link); font-weight: 700; }
.docs-list { position: sticky; top: 86px; display: none; }
.docs-menu { margin-bottom: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.docs-menu summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.docs-menu ul { padding: 0 8px 10px; }
@media (min-width: 900px) {
  .docs-list { display: block; }
  .docs-menu { display: none; }
}

.docs-toc { display: none; }
@media (min-width: 1240px) {
  .docs-toc { display: block; position: sticky; top: 86px; align-self: start; font-size: 0.88rem; }
  .docs-toc p { font-weight: 750; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; color: var(--muted); margin-bottom: 8px; }
  .docs-toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
  .docs-toc a { display: block; padding: 4px 12px; color: var(--muted); text-decoration: none; }
  .docs-toc a:hover { color: var(--text); }
}

.docs-main { min-width: 0; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 850; letter-spacing: -0.03em; margin-bottom: 0.6em; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; padding-top: 0.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose h2, .prose h3 { scroll-margin-top: 80px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose li > p { margin: 0; }
.prose .anchor {
  margin-left: 0.35em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.86rem;
}
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--border); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.prose td code { white-space: nowrap; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
}

.pager { display: flex; gap: 14px; margin-top: 48px; max-width: 760px; }
.pager a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}
.pager a span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.pager a:hover { border-color: var(--link); }
.pager .next { text-align: right; margin-left: auto; }
.edit-link { margin-top: 24px; font-size: 0.9rem; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hide-sm { display: none !important; }
  .top-nav a { padding: 8px 10px; }
  .section { padding: 60px 0; }
  .card { padding: 22px; }
  .privacy-inner { padding: 26px; }
  .cta-row .btn { width: 100%; }
  .pager { flex-direction: column; }
  .prose table { min-width: 560px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wd-target { transform: translate(0, -8px); }
  .wd-target > path { fill: var(--wd-hot); }
  .wd-target text { fill: #fff; }
  .wd-target .wd-ico { color: #fff; }
  .wd-idle { opacity: 0; }
  .wd-done { opacity: 1; }
  .wd-tick { stroke-dashoffset: 0; }
}
