/* lysosome.dev — "fluorescence microscopy" palette.
   Dark field like a stained slide under a microscope; each stain encodes a safety tier:
   GFP mint = regenerable, amber = regenerable_expensive, DAPI blue = review,
   LysoTracker red = the brand (the organelle itself). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #110d1a;
  --bg-deep: #0b0812;
  --surface: #1a1526;
  --surface-2: #221b31;
  --line: #2e2643;
  --ink: #eee8f7;
  --muted: #a99fbd;
  --faint: #6f6585;
  --stain: #ff4d7e;
  --stain-ink: #1a0610;
  --regen: #6ef0b0;
  --exp: #ffc15e;
  --review: #92a9ff;
  --glow: 0.55;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f3fa;
    --bg-deep: #ece6f3;
    --surface: #ffffff;
    --surface-2: #f3eef9;
    --line: #e1d9ec;
    --ink: #1b1426;
    --muted: #5f5573;
    --faint: #8d84a0;
    --stain: #d11d54;
    --stain-ink: #ffffff;
    --regen: #0b8a57;
    --exp: #a35f00;
    --review: #3a57d1;
    --glow: 0.2;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f3fa;
  --bg-deep: #ece6f3;
  --surface: #ffffff;
  --surface-2: #f3eef9;
  --line: #e1d9ec;
  --ink: #1b1426;
  --muted: #5f5573;
  --faint: #8d84a0;
  --stain: #d11d54;
  --stain-ink: #ffffff;
  --regen: #0b8a57;
  --exp: #a35f00;
  --review: #3a57d1;
  --glow: 0.2;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--stain) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--stain); }
code { font-family: var(--mono); font-size: 0.86em; }
p code, dd code, li code, summary code, th code {
  padding: 0.08em 0.38em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--stain); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--stain) 35%, transparent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 8px 14px; background: var(--stain); color: var(--stain-ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 700;
  font-stretch: 82%;
}
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 650;
  font-stretch: 86%;
  line-height: 1.02;
}
.eyebrow {
  display: block;
  margin: 0 0 18px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: lowercase;
  color: var(--muted);
}
.lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36em; margin: 26px 0 0; }
.lede code { color: var(--ink); }
.section__lede { color: var(--muted); max-width: 40em; margin: 18px 0 0; }
.fineprint { margin: 14px 0 0; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.eyebrow .dot { margin-right: 0.6em; vertical-align: 0.05em; }
.dot--stain { background: var(--stain); box-shadow: 0 0 10px color-mix(in srgb, var(--stain) calc(var(--glow) * 100%), transparent); }
.dot--exp { background: var(--exp); }

.t-regen { color: var(--regen); }
.t-exp { color: var(--exp); }
.t-review { color: var(--review); }
.t-stain { color: var(--stain); }
.t-dim { color: var(--faint); }
.t-head { color: var(--ink); }

/* ---------- masthead ---------- */
.masthead { padding: 22px 0; }
.masthead__row { display: flex; align-items: center; gap: 24px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 650; font-stretch: 88%; font-size: 1.32rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark__glyph { width: 28px; height: 28px; }
.wordmark--small { font-size: 1.1rem; }
.wordmark--small .wordmark__glyph { width: 22px; height: 22px; }
.nav { margin-left: auto; display: flex; gap: 26px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

.signup { margin-top: 34px; max-width: 520px; }
.signup__row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.signup__row:focus-within { border-color: color-mix(in srgb, var(--stain) 70%, var(--line)); }
.signup__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-size: 1rem;
}
.signup__input::placeholder { color: var(--faint); }
.signup__row .signup__input:focus-visible { outline: none; }
.signup__status { margin: 12px 0 0 18px; min-height: 1.6em; font-size: 0.9rem; color: var(--muted); }
.signup__status[data-state="error"] { color: var(--stain); }
.signup__status[data-state="success"] { color: var(--regen); font-weight: 550; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn--stain { background: var(--stain); color: var(--stain-ink); box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--stain) calc(var(--glow) * 140%), transparent); }
.btn--stain:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--stain) calc(var(--glow) * 160%), transparent); }
.btn:disabled { cursor: progress; opacity: 0.75; transform: none; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] [data-label]::after { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.6em; vertical-align: -0.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.install { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.install__cmd { font-size: 0.86rem; color: var(--ink); overflow-wrap: anywhere; }
.install__cmd .prompt { color: var(--stain); }
.install__copy {
  font: 500 0.74rem var(--mono); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px;
}
.install__copy:hover { color: var(--ink); border-color: var(--faint); }
.install__copy[data-copied] { color: var(--regen); border-color: color-mix(in srgb, var(--regen) 50%, var(--line)); }
.install__note { font: 0.74rem var(--mono); color: var(--faint); }

/* ---------- the cell (signature) ---------- */
.cell { margin: 0; }
.cell__field {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto;
  border-radius: 50%; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--surface-2) 70%, transparent) 0 46%, transparent 72%),
    radial-gradient(circle at 50% 50%, var(--bg) 40%, var(--bg-deep) 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 80px 10px var(--bg-deep);
  container-type: inline-size;
}
.cell__field::after { /* faint reticle, like an eyepiece */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 50%;
  background:
    linear-gradient(var(--line), var(--line)) 50% 6% / 1px 7% no-repeat,
    linear-gradient(var(--line), var(--line)) 50% 94% / 1px 7% no-repeat,
    linear-gradient(var(--line), var(--line)) 6% 50% / 7% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 94% 50% / 7% 1px no-repeat;
}
.cell__membrane {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; z-index: 1;
  border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%;
  background:
    radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--stain) 26%, transparent), transparent 60%),
    radial-gradient(circle, color-mix(in srgb, var(--stain) 14%, var(--bg)) 0 55%, color-mix(in srgb, var(--stain) 30%, var(--bg)) 100%);
  border: 2px solid color-mix(in srgb, var(--stain) 80%, transparent);
  box-shadow:
    0 0 calc(40px * var(--glow) + 10px) color-mix(in srgb, var(--stain) calc(var(--glow) * 90%), transparent),
    inset 0 0 30px color-mix(in srgb, var(--stain) 30%, transparent);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%; scale: 1; }
  33% { border-radius: 55% 45% 47% 53% / 45% 55% 45% 55%; scale: 1.03; }
  66% { border-radius: 44% 56% 52% 48% / 56% 47% 53% 44%; scale: 0.985; }
}

.p {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  padding: 0.28em 0.7em; border-radius: 999px; white-space: nowrap;
  font: 500 clamp(9px, 2.5cqi, 12.5px) / 1.2 var(--mono);
  border: 1px solid currentColor; background: color-mix(in srgb, currentColor 10%, var(--bg));
  box-shadow: 0 0 calc(18px * var(--glow)) color-mix(in srgb, currentColor calc(var(--glow) * 80%), transparent);
  translate: var(--x) var(--y);
  animation-iteration-count: infinite; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  animation-delay: var(--d, 0s);
}
.p--regen { color: var(--regen); animation-name: digest; animation-duration: 12s; }
.p--exp { color: var(--exp); animation-name: deliberate; animation-duration: 16s; }
.p--review { color: var(--review); animation-name: deflect; animation-duration: 14s; }

/* Each particle starts at (--x,--y), measured from the field's center. */
.p1 { --x: -44cqi; --y: -30cqi; --d: -1s; }
.p2 { --x: 0cqi;   --y: -42cqi; --d: -7s; }
.p3 { --x: -46cqi; --y: 14cqi;  --d: -4s; }
.p8 { --x: 24cqi;  --y: -4cqi;  --d: -10s; }
.p4 { --x: 14cqi;  --y: -30cqi; --d: -3s; }
.p5 { --x: -42cqi; --y: -10cqi; --d: -11s; }
.p6 { --x: 30cqi;  --y: 28cqi;  --tx: 15cqi;  --ty: 14cqi; --ex: 26cqi;  --ey: 38cqi; --d: -2s; }
.p7 { --x: -34cqi; --y: 38cqi;  --tx: -24cqi; --ty: 19cqi; --ex: -40cqi; --ey: 34cqi; --d: -8s; }

/* regenerable: drifts in and is broken down */
@keyframes digest {
  0%   { translate: var(--x) var(--y); opacity: 0; scale: 1; }
  8%   { opacity: 1; }
  55%  { translate: calc(-50% + var(--x) * 0.08) calc(-50% + var(--y) * 0.08); opacity: 1; scale: 1; filter: blur(0); }
  72%  { translate: -50% -50%; opacity: 0; scale: 0.3; filter: blur(3px); }
  100% { translate: -50% -50%; opacity: 0; scale: 0.3; }
}
/* expensive: waits at the membrane for a while, then goes in */
@keyframes deliberate {
  0%   { translate: var(--x) var(--y); opacity: 0; scale: 1; }
  8%   { opacity: 1; }
  35%  { translate: calc(-50% + var(--x) * 0.55) calc(-50% + var(--y) * 0.55); opacity: 1; }
  62%  { translate: calc(-50% + var(--x) * 0.5) calc(-50% + var(--y) * 0.5); opacity: 1; scale: 1; filter: blur(0); }
  80%  { translate: -50% -50%; opacity: 0; scale: 0.35; filter: blur(3px); }
  100% { translate: -50% -50%; opacity: 0; scale: 0.35; }
}
/* review: approaches, touches the membrane at (--tx,--ty), drifts away untouched */
@keyframes deflect {
  0%   { translate: var(--x) var(--y); opacity: 0; }
  10%  { opacity: 1; }
  42%  { translate: var(--tx) var(--ty); opacity: 1; }
  50%  { translate: var(--tx) var(--ty); }
  90%  { translate: var(--ex) var(--ey); opacity: 1; }
  100% { translate: var(--ex) var(--ey); opacity: 0; }
}

.cell__legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px;
  font: 0.76rem var(--mono); color: var(--muted);
}
.cell__legend span { display: inline-flex; align-items: center; gap: 7px; }
.chip { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip--regen { background: var(--regen); }
.chip--exp { background: var(--exp); }
.chip--review { background: var(--review); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }

/* terminal */
.term {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.6);
}
.term__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.term__lights { display: flex; gap: 6px; }
.term__lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term__tabs { display: flex; gap: 4px; overflow-x: auto; }
.term__tabs [role="tab"] {
  font: 500 0.8rem var(--mono); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid transparent; border-radius: 7px; padding: 5px 11px;
}
.term__tabs [role="tab"]:hover { color: var(--ink); }
.term__tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.term__label { margin-left: auto; font: 0.7rem var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.term__pane { overflow-x: auto; }
.term__pane pre {
  margin: 0; padding: 22px 24px 26px;
  font: 0.82rem/1.65 var(--mono); color: var(--ink); tab-size: 2;
  min-height: 34em;
}
.term__pane b { font-weight: 650; }

/* finds */
.finds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.find { background: var(--bg); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.find__name { margin: 0; font-family: var(--display); font-weight: 650; font-stretch: 88%; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.1; }
.find__paths { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.find__paths code { font-size: 0.74rem; color: var(--muted); padding: 2px 7px; }
.find__note { margin: 0; font-size: 0.95rem; color: var(--muted); }
.find__tiers { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; font: 500 0.7rem/1 var(--mono); font-style: normal; letter-spacing: 0.01em;
  padding: 5px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.tag--regen { color: var(--regen); }
.tag--exp { color: var(--exp); }
.tag--review { color: var(--review); }

/* safety */
.safety { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.safety .section__head { margin-bottom: 0; position: sticky; top: 32px; }
.rules { margin: 0; display: grid; gap: 0; }
.rules > div { padding: 20px 0 20px 26px; border-bottom: 1px solid var(--line); position: relative; }
.rules > div:first-child { padding-top: 4px; }
.rules > div::before { content: ""; position: absolute; left: 0; top: 30px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--stain); }
.rules > div:first-child::before { top: 14px; }
.rules dt { font-weight: 650; font-size: 1.06rem; }
.rules dd { margin: 4px 0 0; color: var(--muted); }

/* install */
.install-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.installs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.installs li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.installs__via { font: 0.72rem var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.installs code { font-size: 0.84rem; padding: 0; background: none; border: 0; white-space: normal; overflow-wrap: anywhere; }
.install-block__links { margin: 24px 0 0; }
.install-block__links .btn { text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn--ghost:hover { color: var(--ink); border-color: var(--faint); transform: translateY(-1px); }
.btn--ghost svg { width: 16px; height: 16px; color: var(--stain); }
.install__note a { color: inherit; }

/* mac */
.section--mac {
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--stain) calc(var(--glow) * 18%), transparent), transparent 70%),
    var(--bg);
}
.mac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.features li { color: var(--muted); padding-left: 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--stain); }
.features b { color: var(--ink); font-weight: 600; }

.mock { margin: 0; }
.mock__frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--review) 28%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--stain) 26%, transparent), transparent 60%),
    var(--bg-deep);
  padding-bottom: 28px;
}
.mock__menubar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 14px;
  font: 500 0.74rem var(--body); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mock__menus { display: flex; gap: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.mock__menus b { color: var(--ink); }
.mock__tray { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.mock__icon { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 14%, transparent); font-family: var(--mono); }
.mock__icon svg { width: 14px; height: 14px; }
.mock__panel {
  width: min(380px, calc(100% - 28px)); margin: 8px 14px 0 auto; padding: 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.55);
  font-size: 0.8rem;
}
.mock__row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.mock__row b { color: var(--ink); font-weight: 600; }
.mock__bar { display: flex; height: 8px; margin: 9px 0 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg { display: block; height: 100%; }
.seg--other { width: 69%; background: var(--faint); }
.seg--stain { width: 8.3%; background: var(--stain); }
.seg--exp { width: 7.8%; background: var(--exp); }
.seg--regen { width: 3.4%; background: var(--regen); }
.mock__warn { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--exp); font-size: 0.74rem; }
.mock__reclaim { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 4px; padding: 11px 12px; border-radius: 10px; background: color-mix(in srgb, var(--regen) 10%, transparent); border: 1px solid color-mix(in srgb, var(--regen) 35%, transparent); }
.mock__big { display: block; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; color: var(--regen); }
.mock__small { font-size: 0.72rem; color: var(--muted); }
.mock__btn { padding: 6px 12px; border-radius: 7px; background: var(--regen); color: var(--bg-deep); font-weight: 650; font-size: 0.76rem; }
.mock__group { margin: 12px 0 4px; font: 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.mock__list { list-style: none; margin: 0; padding: 0; }
.mock__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.mock__list li:first-child { border-top: 0; }
.mock__item { min-width: 0; }
.mock__item b { display: block; font: 600 0.78rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__item small { display: block; color: var(--muted); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__size { font: 0.74rem var(--mono); color: var(--ink); }
.mock__list .tag { font-size: 0.6rem; padding: 4px 6px; }
.mock__rule { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.7rem; }
.mock__toast { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 11px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 0.74rem; }
.mock__toast b { color: var(--stain); }

/* compare */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-weight: 650; font-stretch: 88%; font-size: 1.15rem; letter-spacing: -0.02em; background: var(--surface); }
.compare thead th small { display: block; font: 0.72rem var(--mono); color: var(--faint); letter-spacing: 0; }
.compare tbody th { font-weight: 500; }
.compare td { width: 19%; white-space: nowrap; }
.compare thead th:last-child, .compare td:last-child { background: color-mix(in srgb, var(--stain) 6%, transparent); }
.yes, .no, .later, .na { font: 500 0.82rem var(--mono); display: inline-flex; align-items: center; gap: 8px; }
.yes { color: var(--ink); }
.yes::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--regen); }
.no { color: var(--faint); }
.no::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); }
.na { color: var(--muted); }
.na::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.later { color: var(--exp); }
.later::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed var(--exp); }

/* join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.signup--card { margin: 0; max-width: none; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: grid; gap: 12px; }
.signup--card .signup__input { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; height: 50px; }
.signup--card .signup__input:focus-visible { outline-offset: 1px; }
.signup--card .signup__status { margin: 0; }
.field-label { font-weight: 600; font-size: 0.92rem; padding: 0; }
.optional { font-weight: 400; color: var(--faint); }
.interests { border: 0; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interests legend { margin-bottom: 8px; }
.interests label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted);
}
.interests label:has(input:checked) { color: var(--ink); border-color: color-mix(in srgb, var(--stain) 60%, var(--line)); background: color-mix(in srgb, var(--stain) 8%, transparent); }
.interests input { accent-color: var(--stain); margin: 0; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 1.4rem var(--mono); color: var(--stain); transition: rotate 0.2s ease; }
.faq__list details[open] summary::after { rotate: 45deg; }
.faq__list details p { margin: 0 0 22px; color: var(--muted); max-width: 44em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__row p { margin: 0; }
.footer__links { margin-left: auto; display: flex; gap: 22px; }
.footer__links a { color: var(--muted); }

/* simple pages (joined / 404) */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.simple .display { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.simple p { color: var(--muted); max-width: 32em; margin: 20px auto 0; }
.simple .btn { margin-top: 30px; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .mac, .join, .safety, .install-block, .faq { grid-template-columns: minmax(0, 1fr); }
  .cell__field { max-width: 420px; }
  .finds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety .section__head { position: static; }
  .nav a:not(:last-child) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .finds { grid-template-columns: minmax(0, 1fr); }
  .signup__row { flex-direction: column; border-radius: 16px; padding: 6px; }
  .signup__row .btn { width: 100%; }
  .signup__status { margin-left: 4px; }
  .term__label { display: none; }
  .term__pane pre { font-size: 0.74rem; padding: 18px 16px 20px; min-height: 0; }
  .installs li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .installs__via { grid-column: 1 / -1; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare { font-size: 0.88rem; }
  .compare td { width: auto; }
  .compare thead th { font-size: 1rem; }
  .yes, .no, .later, .na { font-size: 0.74rem; gap: 6px; }
  .signup--card { padding: 20px; }
  .mock__menus span { display: none; }
  .footer__links { margin-left: 0; }
}
@media (max-width: 400px) {
  .nav { display: none; }
  .theme-toggle { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .p { opacity: 1; }
  .p--regen, .p--exp { translate: calc(-50% + var(--x) * 0.5) calc(-50% + var(--y) * 0.5); }
  .p--review { translate: var(--tx) var(--ty); }
}
