/* Layoutie site. Dark or light (system / toggle), monochrome, Inter; one lime accent from the app.
   Also used by /admin (admin.css builds on these tokens and on header/.brand/nav). */
:root {
  --bg: #000;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --text: #fff;
  --muted: #8a8a8a;      /* 6.0:1 on black */
  --body: #c9c9c9;
  --line: #222;
  --accent: #beff46;
  --track: #c23aff;
  --card-line: #161616;
  --soft: rgba(255,255,255,.04);
  --soft-line: #2a2a2a;
  --knob: #1c1c1c;
  --hover-line: #444;
  --accent-ink: #beff46;  /* accent used as text/lines */
  --shadow: rgba(0,0,0,.5);
  --bar: #1a1a1a;
  --bar-text: #9a9a9a;
  --tint-purple: #2a1a35;
  --tint-lime: #1d2a0e;
  --tint-blue: #102230;
  --tint-orange: #3a2008;
  --tint-green: #13261e;
  --radius: 20px;
  color-scheme: dark;
}


/* Light theme: follows the system, or the toggle (data-theme on <html>). /admin pins data-theme="dark". */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fff;
    --surface: #f5f5f7;
    --surface-2: #ececef;
    --text: #0a0a0a;
    --muted: #666;         /* 5.7:1 on white */
    --body: #333;
    --line: #e2e2e6;
    --card-line: #ececf0;
    --soft: rgba(255,255,255,.75);
    --soft-line: #e2e2e6;
    --knob: #e6e6ea;
    --hover-line: #bbb;
    --accent-ink: #3f6b00;
    --shadow: rgba(30,30,60,.14);
    --bar: #ececef;
    --bar-text: #666;
    --tint-purple: #f1e2fb;
    --tint-lime: #ecf8d2;
    --tint-blue: #dfecf8;
    --tint-orange: #fde6d2;
    --tint-green: #dcf2e5;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fff;
  --surface: #f5f5f7;
  --surface-2: #ececef;
  --text: #0a0a0a;
  --muted: #666;         /* 5.7:1 on white */
  --body: #333;
  --line: #e2e2e6;
  --card-line: #ececf0;
  --soft: rgba(255,255,255,.75);
  --soft-line: #e2e2e6;
  --knob: #e6e6ea;
  --hover-line: #bbb;
  --accent-ink: #3f6b00;
  --shadow: rgba(30,30,60,.14);
  --bar: #ececef;
  --bar-text: #666;
  --tint-purple: #f1e2fb;
  --tint-lime: #ecf8d2;
  --tint-blue: #dfecf8;
  --tint-orange: #fde6d2;
  --tint-green: #dcf2e5;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* ---------- Common type ---------- */
h1, h2, h3 { font-weight: 400; margin: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.04em; }
.section-head p { color: var(--muted); font-size: 19px; margin: 12px 0 0; }

/* Pill buttons, as in the template. */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 40px rgba(190,255,70,.08);
}
.pill-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
a.pill-btn:hover { color: var(--text); border-color: var(--hover-line); }
.pill-btn.light { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; justify-content: center; }
.pill-btn.light::before { display: none; }
a.pill-btn.light:hover { color: var(--bg); opacity: .88; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 0; position: relative; }
.hero h1 { font-size: clamp(48px, 8vw, 72px); line-height: 1; letter-spacing: -0.045em; margin: 18px 0 10px; }
.hero .sub { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -0.04em; color: var(--muted); margin: 0 0 18px; }
.hero .lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.35; letter-spacing: -0.03em; max-width: 36em; margin: 0 auto 36px; }

/* The Layoutie app window (Figma FitOverlay → Main Window → "06 Over video"), drawn in HTML/CSS.
   Everything inside .app is sized in em; the em scales with the window width (container query units),
   so the window looks the same at any desktop width. Follows the site theme (06 / 06L). */
.screen-wrap {
  position: relative;
  container-type: inline-size;
  width: min(1180px, calc(100vw - 48px));
  margin: 72px 0 0 50%;
  transform: translateX(-50%);
}
.screen-wrap::before {
  content: "";
  position: absolute;
  inset: -8% 4% 20%;
  background:
    radial-gradient(40% 50% at 30% 60%, rgba(194,58,255,.28), transparent 70%),
    radial-gradient(40% 50% at 72% 40%, rgba(190,255,70,.16), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.app {
  --w-bg: #1e1e1e; --w-toolbar: #262626; --w-side: #2a2a2a; --w-insp: #232323; --w-canvas: #0b0b0b;
  --w-l1: rgba(255,255,255,.85); --w-l2: rgba(255,255,255,.55); --w-l3: rgba(255,255,255,.25);
  --w-fill: rgba(255,255,255,.1); --w-field: rgba(255,255,255,.06); --w-sep: rgba(255,255,255,.1);
  --w-accent: #b300ff; --w-link: #c84dff; --w-accent-subtle: rgba(179,0,255,.22); --w-ok: #32d74b;
  --w-export-bg: #b300ff; --w-export-fg: #fff; --w-knob: #fff; --w-track: rgba(255,255,255,.14);
  font-size: calc(100cqw / 90);   /* 1em ≈ 13px at 1180px */
  letter-spacing: 0;
  line-height: 1.25;
  border-radius: 1.2em;
  overflow: hidden;
  background: var(--w-bg);
  color: var(--w-l1);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1.7em 5.4em rgba(0,0,0,.45);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  -webkit-user-select: none; user-select: none;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .app {
  --w-bg: #fff; --w-toolbar: #f6f6f6; --w-side: #ececec; --w-insp: #f6f6f6; --w-canvas: #dcdcdc;
  --w-l1: rgba(0,0,0,.85); --w-l2: rgba(0,0,0,.5); --w-l3: rgba(0,0,0,.25);
  --w-fill: rgba(0,0,0,.07); --w-field: #fff; --w-sep: rgba(0,0,0,.1);
  --w-link: #a100e6; --w-accent-subtle: rgba(179,0,255,.14); --w-ok: #1fa83a;
  --w-export-bg: #111; --w-knob: #fff; --w-track: rgba(0,0,0,.1);
  border-color: rgba(0,0,0,.12); box-shadow: 0 1.7em 5.4em rgba(30,30,60,.18);
} }
:root[data-theme="light"] .app {
  --w-bg: #fff; --w-toolbar: #f6f6f6; --w-side: #ececec; --w-insp: #f6f6f6; --w-canvas: #dcdcdc;
  --w-l1: rgba(0,0,0,.85); --w-l2: rgba(0,0,0,.5); --w-l3: rgba(0,0,0,.25);
  --w-fill: rgba(0,0,0,.07); --w-field: #fff; --w-sep: rgba(0,0,0,.1);
  --w-link: #a100e6; --w-accent-subtle: rgba(179,0,255,.14); --w-ok: #1fa83a;
  --w-export-bg: #111; --w-knob: #fff; --w-track: rgba(0,0,0,.1);
  border-color: rgba(0,0,0,.12); box-shadow: 0 1.7em 5.4em rgba(30,30,60,.18);
}
.app .tb svg, .app .side svg, .app .transport svg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Toolbar */
.app .tb { height: 4em; display: flex; align-items: center; gap: 1em; padding: 0 1.2em; background: var(--w-toolbar); border-bottom: 1px solid var(--w-sep); }
.app .lights { display: flex; gap: .6em; margin-right: .6em; }
.app .lights i { width: 1em; height: 1em; border-radius: 50%; background: #ff5f57; }
.app .lights i:nth-child(2) { background: #febc2e; }
.app .lights i:nth-child(3) { background: #28c840; }
.app .tb .side-ico { color: var(--w-l2); }
.app .ttl { display: flex; flex-direction: column; min-width: 0; }
.app .ttl b { font-size: 1em; font-weight: 700; white-space: nowrap; }
.app .ttl span { font-size: .77em; color: var(--w-l2); white-space: nowrap; }
.app .seg { margin: 0 auto; display: flex; background: var(--w-fill); border-radius: .5em; padding: .15em; font-size: .95em; }
.app .seg span { padding: .3em 1.8em; border-radius: .4em; color: var(--w-l1); }
.app .seg span.on { background: var(--w-bg); box-shadow: 0 .05em .15em rgba(0,0,0,.25); }
.app .export { background: var(--w-export-bg); color: var(--w-export-fg); border-radius: .45em; padding: .35em 1.2em; font-size: .95em; font-weight: 500; }
.app .pro { font-size: .7em; font-weight: 700; letter-spacing: .06em; color: var(--w-link); background: var(--w-accent-subtle); border: 1px solid rgba(200,77,255,.55); border-radius: .4em; padding: .15em .5em; }
.app .ava { width: 1.85em; height: 1.85em; border-radius: 50%; background: #6e6e73; color: #fff; font-size: .8em; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Body: sidebar · player · inspector */
.app .bd { display: flex; }
.app .side { width: 15em; flex: none; background: var(--w-side); padding: 1.6em .5em; border-right: 1px solid var(--w-sep); }
.app .side h5 { margin: 0 .55em .5em; font-size: .8em; font-weight: 600; color: var(--w-l2); }
.app .side h5 + .it { margin-top: 0; }
.app .side .gap { height: 1.1em; }
.app .it { display: flex; align-items: center; gap: .55em; height: 2.2em; padding: 0 .55em; border-radius: .45em; font-size: .95em; white-space: nowrap; }
.app .it svg { color: var(--w-l2); }
.app .it em { margin-left: auto; font-style: normal; color: var(--w-l3); font-size: .9em; }
.app .it.sel { background: var(--w-fill); }
.app .it.act { background: var(--w-accent-subtle); }
.app .it.act svg { color: var(--w-link); }

.app .player { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--w-canvas); }
.app .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.2em 2.2em; }
.app .stage .frame { width: 100%; }
.app .transport { height: 3.4em; display: flex; align-items: center; gap: 1em; padding: 0 1.2em; background: var(--w-bg); border-top: 1px solid var(--w-sep); font-size: .85em; color: var(--w-l2); }
.app .transport .pause { width: .9em; height: 1em; border-left: .3em solid var(--w-l1); border-right: .3em solid var(--w-l1); }
.app .slider { flex: 1; height: .3em; border-radius: 1em; background: var(--w-track); position: relative; }
.app .slider i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 25%); background: var(--w-accent); border-radius: 1em; }
.app .slider b { position: absolute; left: var(--p, 25%); top: 50%; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; border-radius: 50%; background: var(--w-knob); box-shadow: 0 .1em .3em rgba(0,0,0,.35); }

.app .insp { width: 21em; flex: none; background: var(--w-insp); border-left: 1px solid var(--w-sep); padding: .9em 1.1em 1.4em; font-size: .95em; }
.app .tabs { display: flex; justify-content: space-between; background: var(--w-fill); border-radius: .5em; padding: .15em; font-size: .85em; color: var(--w-l2); }
.app .tabs span { padding: .3em .55em; border-radius: .4em; }
.app .tabs span.on { background: var(--w-bg); color: var(--w-l1); box-shadow: 0 .05em .15em rgba(0,0,0,.25); }
.app .sec { display: flex; justify-content: space-between; align-items: center; margin: 1.6em 0 .9em; font-weight: 700; }
.app .sec i { width: 1.6em; height: 1.6em; border-radius: .4em; background: var(--w-fill); position: relative; }
.app .sec i::after { content: ""; position: absolute; left: .55em; top: .65em; width: .4em; height: .4em; border-left: 1.5px solid var(--w-l1); border-top: 1.5px solid var(--w-l1); transform: rotate(45deg); }
.app .vfile { display: flex; gap: .8em; align-items: center; background: var(--w-fill); border-radius: .6em; padding: .6em .7em; }
.app .vfile .thumb { width: 3.4em; height: 1.9em; border-radius: .25em; background: url("/img/ride-paceline-800.jpg") center / cover; flex: none; }
.app .vfile b { display: block; font-weight: 500; }
.app .vfile span { font-size: .78em; color: var(--w-l2); }
.app .fld { display: grid; grid-template-columns: 6.2em 1fr 1.3em; align-items: center; gap: .6em; margin: .8em 0; }
.app .fld label { text-align: right; color: var(--w-l2); font-size: inherit; margin: 0; display: block; }
.app .fld span { white-space: nowrap; overflow: hidden; background: var(--w-field); border-radius: .4em; padding: .3em .6em; box-shadow: 0 0 0 1px var(--w-sep); }
.app .fld i { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--w-fill); }
.app .note { font-size: .8em; color: var(--w-l2); margin: .5em 0; }
.app .ok { font-size: .82em; color: var(--w-ok); display: flex; align-items: center; gap: .4em; margin: .7em 0; }
.app .ok::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--w-ok); color: var(--w-insp); font-size: .8em; font-weight: 700; }
.app .links { display: flex; gap: 1em; font-size: .82em; color: var(--w-link); flex-wrap: wrap; }
.app .range { --a: 22%; --b: 72%; position: relative; height: .3em; margin: 1.6em .4em .9em; border-radius: 1em; background: var(--w-track); }
.app .range i { position: absolute; left: var(--a); right: calc(100% - var(--b)); top: 0; bottom: 0; background: var(--w-accent); }
.app .range b { position: absolute; top: 50%; width: 1.3em; height: 1.3em; margin: -.65em 0 0 -.65em; border-radius: 50%; background: var(--w-knob); box-shadow: 0 .1em .3em rgba(0,0,0,.35); left: var(--a); }
.app .range b + b { left: var(--b); }

.frame {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #5d6b5a;
  color: #fff;
}
/* Ride photo from the FitOverlay Figma photo library ("Ride · Mountain paceline H"). */
.frame .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* darken the bottom a little so the panel reads on any frame */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
}
.frame .route { position: absolute; z-index: 1; right: 5%; top: 8%; width: 20%; }
.frame .checker {
  position: absolute; z-index: 1;
  left: 5%; top: 9%;
  width: 4.5cqw; height: 11cqw;
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 2.25cqw 2.75cqw;
  transform: skewY(-12deg);
}
.frame .panel {
  position: absolute; z-index: 1;
  left: 4%; bottom: 7%;
  display: flex;
  gap: 3.2cqw;
  padding: 1.6cqw 2.2cqw;
  border-radius: 1.8cqw;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}
.pill {
  display: inline-block;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: .1cqw 1cqw;
  font-size: max(9px, 1.2cqw);
  font-weight: 500;
}
.value { font-size: max(16px, 3.6cqw); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-top: .4cqw; }
.value small { font-size: .45em; margin-left: 3px; font-weight: 600; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.step .art { height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; overflow: hidden; }
.step .body { padding: 22px 22px 28px; }
.step .n { color: var(--muted); font-size: 13px; font-weight: 500; }
.step h3 { font-size: 21px; letter-spacing: -0.02em; margin: 4px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; }

.art-fit { background: radial-gradient(70% 70% at 50% 40%, var(--tint-purple), var(--surface)); }
.file {
  width: 86px; height: 108px;
  border-radius: 10px;
  background: #f4f4f4;
  color: #111;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
  box-shadow: 0 10px 30px var(--shadow);
}
.file.video { background: #1f1f1f; color: #fff; border: 1px solid #333; clip-path: none; font-size: 15px; font-weight: 600; }
.art-fit .plus { color: var(--muted); font-size: 22px; }

.art-kits { background: radial-gradient(70% 70% at 50% 40%, var(--tint-lime), var(--surface)); }
.kit { width: 74px; height: 74px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; box-shadow: 0 10px 30px var(--shadow); }
.kit:nth-child(1) { background: #ff7a00; color: #111; transform: rotate(-8deg) translateY(6px); }
.kit:nth-child(2) { background: var(--accent); color: #111; z-index: 1; width: 86px; height: 86px; }
.kit:nth-child(3) { background: #2f6bff; color: #fff; transform: rotate(8deg) translateY(6px); }

.art-export { background: radial-gradient(70% 70% at 50% 40%, var(--tint-blue), var(--surface)); flex-direction: column; gap: 10px; }
.chip { border: 1px solid var(--soft-line); background: var(--soft); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--body); }
.chip b { color: var(--text); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; padding-top: 88px; }
.stats strong { display: block; font-weight: 400; font-size: clamp(40px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -0.05em; }
.stats span { color: var(--muted); font-size: 16px; }

/* ---------- Features ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fcard { background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; }
.fcard .art { height: 260px; position: relative; overflow: hidden; }
.fcard .body { padding: 22px 24px 26px; }
.fcard h3, .frow h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 6px; }
.fcard p, .frow p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.4; letter-spacing: -0.02em; }
.fcard p a, .frow p a { color: var(--text); }

.art-metrics {
  background: radial-gradient(60% 70% at 30% 30%, var(--tint-purple), var(--surface));
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 26px;
}
.metric { background: var(--soft); border: 1px solid var(--soft-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.metric span { font-size: 12px; color: var(--muted); }
.metric b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.metric b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.metric svg { width: 100%; height: 34px; }

.art-club { background: radial-gradient(60% 70% at 70% 30%, var(--tint-orange), var(--surface)); display: flex; align-items: center; justify-content: center; }
.club-card {
  width: 74%;
  border-radius: 16px;
  background: #ff7a00;
  color: #111;
  padding: 18px 20px;
  box-shadow: 0 20px 50px var(--shadow);
  transform: rotate(-3deg);
}
.club-card .tag { font-size: 12px; font-weight: 700; }
.club-card .name { font-size: 30px; font-weight: 800; line-height: .95; letter-spacing: -0.04em; margin: 8px 0 12px; text-transform: uppercase; }
.club-card .motto { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }

.rows { display: grid; gap: 20px; margin-top: 20px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.frow .text { padding: 0 48px; }
.frow .art { height: 300px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--card-line); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.frow.flip .text { order: 2; }

.art-import { background: radial-gradient(60% 70% at 50% 30%, var(--tint-orange), var(--surface)) !important; flex-direction: column; gap: 10px; padding: 24px; }
.activity { width: 100%; max-width: 340px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--soft); border: 1px solid var(--soft-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.activity b { font-weight: 600; display: block; }
.activity span { color: var(--muted); font-size: 12px; }
.activity em { font-style: normal; font-size: 12px; color: #111; background: var(--accent); border-radius: 999px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }

.art-local { background: radial-gradient(60% 70% at 50% 40%, var(--tint-green), var(--surface)) !important; }
.lock { width: 120px; height: 120px; border-radius: 30px; background: var(--bg); border: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px var(--shadow); }
.lock svg { width: 56px; height: 56px; }

/* ---------- Availability (in place of the template's pricing) ---------- */
.offer {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.offer .label { color: var(--muted); font-size: 14px; }
.offer .big { font-size: 34px; letter-spacing: -0.04em; margin: 4px 0 18px; }
.offer ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.offer li { color: var(--body); font-size: 15px; display: flex; gap: 10px; }
.offer li::before { content: "✓"; color: var(--accent-ink); }
.offer .pill-btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 6px; }
.faq details { background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--knob);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq details p a { color: var(--text); }

/* ---------- Footer ---------- */
footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .brand { color: var(--text); }
.foot .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot h4 { color: var(--text); font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.foot .cols a { display: block; color: var(--muted); text-decoration: none; margin: 0 0 6px; }
.foot .cols a:hover { color: var(--text); }
.copy { text-align: center; margin-top: 48px; font-size: 13px; }
.copy a { color: var(--muted); }

/* ---------- Text pages: privacy, club pack, 404 ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 0 0; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.045em; margin: 0 0 12px; }
.doc h2 { font-size: 24px; letter-spacing: -0.03em; margin: 44px 0 12px; }
.doc p, .doc li, .doc ol { color: var(--body); }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.doc pre { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; color: var(--body); }
.doc .table { overflow-x: auto; margin: 16px 0 24px; background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: 4px 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line); padding: 12px 8px; }
.doc td { color: var(--body); border-bottom: 1px solid var(--line); padding: 12px 8px; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:nth-child(2) { color: var(--muted); font-size: 13px; }
.doc .lede { font-size: 19px; color: var(--body); }

.button { display: inline-block; background: var(--text); color: var(--bg); font-weight: 500; text-decoration: none; border-radius: 999px; padding: 13px 22px; }
.button:hover { color: var(--bg); opacity: .88; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .grid-2, .frow { grid-template-columns: 1fr; }
  .frow .text { padding: 4px 4px 0; order: 2; }
  .frow.flip .text { order: 2; }
  .frow .art { height: 240px; }
  .section { padding-top: 72px; }
  /* tablet: no library sidebar */
  .app { font-size: calc(100cqw / 66); }
  .app .side { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header { flex-wrap: wrap; position: relative; }
  nav .theme-toggle { position: absolute; right: 0; top: 17px; }
  nav { gap: 4px 16px; }
  .hero { padding-top: 40px; }
  .hero .pill-btn { font-size: 14px; padding: 12px 18px; }
  .screen-wrap { margin-top: 48px; width: calc(100vw - 32px); }
  .screen-wrap::before { inset: -10% 0 20%; }
  .frame { aspect-ratio: 4 / 3; }
  .frame .route { width: 26%; }
  /* phone: just the toolbar, the video and the transport bar */
  .app { font-size: 12px; border-radius: 14px; }
  .app .insp, .app .seg, .app .ava, .app .pro, .app .tb .side-ico { display: none; }
  .app .tb { gap: .8em; }
  .app .export { margin-left: auto; }
  .app .stage { padding: 0; }
  .frame .panel { gap: 2.4cqw; padding: 2cqw 2.6cqw; left: 3%; right: 3%; justify-content: space-between; }
  .stats { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; }
  .fcard .art { height: 220px; }
  .art-metrics { padding: 16px; }
  .metric b { font-size: 22px; }
  .foot .cols { gap: 32px; }
  footer { margin-top: 88px; }
  .doc { padding-top: 32px; }

  /* Tables become stacked rows on phones. */
  .doc .table { padding: 4px 14px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { border: 0; padding: 2px 0; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--hover-line); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; } :root:not([data-theme="dark"]) .theme-toggle .moon { display: block; } }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
