/* Lumen design tokens. Components read only these. */
:root {
  /* canvas → surface → raised: three steps of one neutral, no borders between them */
  --canvas: #ededec;
  --well: #e3e3e1;
  --surface: #f6f6f5;
  --raised: #ffffff;
  --hairline: rgba(14, 14, 16, 0.07);
  --hairline-strong: rgba(14, 14, 16, 0.12);

  --ink: #0e0e10;
  --ink-2: #3a3a3f;
  --ink-3: #8c8c92;
  --ink-4: #b9b9be;
  --on-ink: #ffffff;

  /* meaning colours: solid / tint / marker */
  --lamp: #ff8a1f;
  --lamp-hi: #ffb53d;
  --lamp-lo: #ff6a1a;
  --lamp-tint: #fff3dd;
  --sun-mark: #ffe58a;
  --hl-a: 0.42;

  --iris: #6d5bff;
  --iris-tint: #f1efff;
  --iris-mark: #dcd6ff;

  --mint: #14a86f;
  --mint-tint: #e2f7ec;
  --mint-mark: #bdefd5;

  --sky: #2f7bff;
  --sky-tint: #e7f0ff;
  --sky-mark: #cfe2ff;

  --peach: #f2603d;
  --peach-tint: #ffede6;
  --peach-mark: #ffd5c6;

  --danger: #e5484d;

  /* type */
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-read: "Newsreader", "Iowan Old Style", Georgia, serif;

  /* shape */
  --r-section: 28px;
  --r-card: 18px;
  --r-inner: 12px;
  --r-control: 10px;
  --r-chip: 999px;

  /* depth */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -16px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px -8px rgba(0, 0, 0, 0.12);
  --shadow-pill: 0 1px 1px rgba(0, 0, 0, 0.04), 0 2px 6px -2px rgba(0, 0, 0, 0.08);
  --shadow-tile: 0 10px 18px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --key-ink: linear-gradient(180deg, #2b2b30 0%, #0e0e10 100%);
  --key-lamp: linear-gradient(180deg, var(--lamp-hi) 0%, var(--lamp-lo) 100%);
  --key-iris: linear-gradient(180deg, #8a7bff 0%, #5b48f5 100%);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #111113;
    --well: #1b1b1f;
    --surface: #18181b;
    --raised: #222226;
    --hairline: rgba(255, 255, 255, 0.07);
    --hairline-strong: rgba(255, 255, 255, 0.12);
    --ink: #f4f4f5;
    --ink-2: #c9c9ce;
    --ink-3: #8b8b93;
    --ink-4: #5c5c63;
    --on-ink: #0e0e10;
    --lamp-tint: #3a2a12;
    --sun-mark: rgba(255, 213, 74, 0.38);
    --hl-a: 0.36;
    --iris-tint: #25213f;
    --iris-mark: rgba(140, 125, 255, 0.4);
    --mint-tint: #12291f;
    --mint-mark: rgba(46, 204, 142, 0.34);
    --sky-tint: #142238;
    --sky-mark: rgba(80, 150, 255, 0.36);
    --peach-tint: #34201a;
    --peach-mark: rgba(255, 130, 100, 0.36);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    --shadow-pill: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    --key-ink: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #111113;
  --well: #1b1b1f;
  --surface: #18181b;
  --raised: #222226;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --ink: #f4f4f5;
  --ink-2: #c9c9ce;
  --ink-3: #8b8b93;
  --ink-4: #5c5c63;
  --on-ink: #0e0e10;
  --lamp-tint: #3a2a12;
  --hl-a: 0.36;
  --sun-mark: rgba(255, 213, 74, 0.38);
  --iris-tint: #25213f;
  --iris-mark: rgba(140, 125, 255, 0.4);
  --mint-tint: #12291f;
  --mint-mark: rgba(46, 204, 142, 0.34);
  --sky-tint: #142238;
  --sky-mark: rgba(80, 150, 255, 0.36);
  --peach-tint: #34201a;
  --peach-mark: rgba(255, 130, 100, 0.36);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  --shadow-pill: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --key-ink: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
img,
svg {
  display: block;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
p {
  margin: 0;
}
::selection {
  background: var(--sun-mark);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- type ---------- */
.display {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.lead-in {
  color: var(--ink-3);
}
.payoff {
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 13px;
}
.mono {
  font-family: var(--font-mono);
}

/* ---------- surfaces ---------- */
.surface {
  background: var(--surface);
  border-radius: var(--r-section);
}
.card {
  background: var(--raised);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card-flat {
  background: var(--raised);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.well {
  background: var(--well);
  border-radius: 16px;
}

/* ---------- key buttons ---------- */
.key {
  --key-bg: var(--key-ink);
  --key-fg: var(--on-ink);
  --key-glow: rgba(14, 14, 16, 0.55);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--key-bg);
  color: var(--key-fg);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 2px 4px -1px rgba(0, 0, 0, 0.18),
    0 14px 26px -12px var(--key-glow);
  transition:
    transform 90ms ease,
    box-shadow 160ms var(--ease-out),
    filter 160ms ease;
}
.key:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 3px 6px -1px rgba(0, 0, 0, 0.18),
    0 18px 30px -12px var(--key-glow);
}
.key:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 6px 12px -8px var(--key-glow);
}
.key:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.key--lamp {
  --key-bg: var(--key-lamp);
  --key-fg: #fff;
  --key-glow: rgba(255, 106, 26, 0.65);
}
.key--iris {
  --key-bg: var(--key-iris);
  --key-fg: #fff;
  --key-glow: rgba(91, 72, 245, 0.6);
}
.key--ghost {
  --key-bg: var(--raised);
  --key-fg: var(--ink);
  --key-glow: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 -1px 0 var(--hairline-strong),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 10px 20px -14px var(--key-glow);
}
.key--quiet {
  --key-bg: transparent;
  --key-fg: var(--ink-2);
  box-shadow: none;
}
.key--quiet:hover {
  background: var(--well);
  box-shadow: none;
}
.key--danger {
  --key-bg: linear-gradient(180deg, #f2666a, #d93a3f);
  --key-fg: #fff;
  --key-glow: rgba(229, 72, 77, 0.55);
}
.key--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 9px;
}
.key--lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 12px;
}
.key--icon {
  width: 34px;
  padding: 0;
}

/* ---------- tiles (glossy icon squircles) ---------- */
.tile {
  --tile-bg: var(--key-ink);
  --size: 36px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: calc(var(--size) * 0.26);
  display: inline-grid;
  place-items: center;
  background: var(--tile-bg);
  color: #fff;
  box-shadow: var(--shadow-tile);
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%);
  pointer-events: none;
}
.tile svg {
  width: 52%;
  height: 52%;
  position: relative;
  z-index: 1;
}
:root[data-theme="dark"] .tile--ink {
  --tile-bg: linear-gradient(180deg, #3a3a40, #1e1e22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile--ink {
    --tile-bg: linear-gradient(180deg, #3a3a40, #1e1e22);
  }
}
.tile--lamp { --tile-bg: var(--key-lamp); }
.tile--iris { --tile-bg: var(--key-iris); }
.tile--mint { --tile-bg: linear-gradient(180deg, #3fd39a, #0f9a63); }
.tile--sky { --tile-bg: linear-gradient(180deg, #5b9bff, #2563eb); }
.tile--peach { --tile-bg: linear-gradient(180deg, #ff8a6b, #e24c2b); }
.tile--sun { --tile-bg: linear-gradient(180deg, #ffd65a, #f5a700); }
.tile--xs { --size: 22px; }
.tile--sm { --size: 28px; }
.tile--lg { --size: 52px; }
.tile--xl { --size: 84px; }
.tile--inline {
  --size: 0.92em;
  vertical-align: -0.1em;
  margin: 0 0.12em;
  transform: rotate(-6deg);
}

/* ---------- pills and chips ---------- */
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-control);
  background: var(--raised);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-pill);
}
.chip {
  --c: var(--ink-2);
  --t: var(--well);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-chip);
  font-size: 12px;
  font-weight: 500;
  color: var(--c);
  background: var(--t);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent);
  white-space: nowrap;
}
.chip--sun { --c: #b26a00; --t: var(--lamp-tint); }
.chip--lamp { --c: #c45100; --t: var(--lamp-tint); }
.chip--iris { --c: var(--iris); --t: var(--iris-tint); }
.chip--mint { --c: var(--mint); --t: var(--mint-tint); }
.chip--sky { --c: var(--sky); --t: var(--sky-tint); }
.chip--peach { --c: var(--peach); --t: var(--peach-tint); }
.chip--ink { --c: var(--on-ink); --t: var(--ink); box-shadow: none; }
button.chip {
  border: 0;
  cursor: pointer;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* highlight marks (reader + previews) */
mark,
.mark {
  color: inherit;
  border-radius: 3px;
  padding: 0.05em 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* any highlight colour: style="--hl: r g b" (see colorVar in @lumen/core) */
.hl { --hl: 255 196 0; background: rgb(var(--hl) / var(--hl-a, 0.4)); }
.hl-sun { background: var(--sun-mark); }
.hl-mint { background: var(--mint-mark); }
.hl-iris { background: var(--iris-mark); }
.hl-peach { background: var(--peach-mark); }
.hl-sky { background: var(--sky-mark); }
.swatch-sun { background: #ffd34d; }
.swatch-mint { background: #3fd39a; }
.swatch-iris { background: #8a7bff; }
.swatch-peach { background: #ff8a6b; }
.swatch-sky { background: #5b9bff; }

/* ---------- segmented control ---------- */
.seg {
  position: relative;
  display: inline-flex;
  padding: 5px;
  gap: 2px;
  background: var(--well);
  border-radius: 16px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg__indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: var(--shadow-soft);
  transition:
    left 380ms var(--ease-out),
    width 380ms var(--ease-out);
}
.seg__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--ink-3);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms ease;
}
.seg__btn[aria-selected="true"] {
  color: var(--ink);
}
.seg--sm .seg__btn {
  padding: 6px 12px;
  font-size: 13px;
}

/* ---------- inputs ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.input,
.select,
.textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-control);
  border: 0;
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow:
    inset 0 0 0 1px var(--hairline-strong),
    0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 160ms ease;
}
.textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1.5px var(--lamp),
    0 0 0 4px color-mix(in srgb, var(--lamp) 18%, transparent);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-4);
}

/* ---------- textures ---------- */
.halftone {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-section);
  isolation: isolate;
}
.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mesh);
}
.halftone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.75) 1.1px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 85%);
  mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 85%);
}
.mesh-lamp { --mesh: radial-gradient(80% 90% at 15% 20%, #ffd27a, transparent 60%), radial-gradient(70% 80% at 85% 85%, #ff8f5a, transparent 60%), linear-gradient(135deg, #ffe7b8, #ffb38a); }
.mesh-iris { --mesh: radial-gradient(80% 90% at 20% 15%, #b8adff, transparent 60%), radial-gradient(70% 80% at 85% 80%, #7d6bff, transparent 60%), linear-gradient(135deg, #e3dcff, #a99cff); }
.mesh-mint { --mesh: radial-gradient(80% 90% at 15% 20%, #9ff0c8, transparent 60%), radial-gradient(70% 80% at 85% 85%, #3fc995, transparent 60%), linear-gradient(135deg, #d9fbe9, #84e2b9); }
.mesh-sky { --mesh: radial-gradient(80% 90% at 20% 20%, #a9ccff, transparent 60%), radial-gradient(70% 80% at 80% 85%, #4f8fff, transparent 60%), linear-gradient(135deg, #dceaff, #8db8ff); }
.mesh-peach { --mesh: radial-gradient(80% 90% at 20% 20%, #ffc2ae, transparent 60%), radial-gradient(70% 80% at 85% 85%, #ff7f63, transparent 60%), linear-gradient(135deg, #ffe4d9, #ffad96); }

.gridlines {
  position: relative;
}
.gridlines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 55%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 55%, #000, transparent 75%);
}
.edge-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pop {
  0% { transform: scale(0.88); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.0), var(--shadow-tile); }
  50% { box-shadow: 0 0 0 8px rgba(255, 138, 31, 0.12), var(--shadow-tile); }
}
.reveal {
  opacity: 0;
}
.reveal.is-in {
  animation: rise 700ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.bob {
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.pop {
  animation: pop 420ms var(--ease-spring) both;
}
.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--well) 25%, var(--surface) 50%, var(--well) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .reveal { opacity: 1; }
}

/* ---------- overlays ---------- */
.toast-stack {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  animation: pop 420ms var(--ease-spring) both;
  pointer-events: auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 20, 24, 0.28);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: rise 240ms var(--ease-out) both;
}
.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
  animation: pop 380ms var(--ease-spring) both;
}

.row { display: flex; align-items: center; gap: 10px; }
.stack { display: grid; gap: 12px; }
.spacer { flex: 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 900ms linear infinite; }
code { font-family: var(--font-mono); font-size: 0.92em; }
.stack > *, .modal > * { min-width: 0; }
.modal pre { max-width: 100%; }
.modal:has(pre) { width: min(620px, 100%); }
.consent { position: fixed; right: 16px; bottom: 16px; z-index: 80; border-radius: 20px; box-shadow: var(--shadow-card), 0 18px 48px -12px rgba(14,14,16,.28), 0 0 0 1px var(--hairline); width: min(340px, calc(100vw - 32px)); padding: 14px 16px 14px 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; animation: consent-in 520ms cubic-bezier(.2,1.4,.4,1) both; }
.consent--out { animation: consent-out 420ms ease 1s both; }
.consent__lamp { border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; animation: consent-wiggle 600ms ease; }
.consent__lamp:hover { transform: rotate(-8deg) scale(1.06); transition: transform 160ms ease; }
.consent__body { display: grid; gap: 6px; min-width: 0; }
.consent__title { font-weight: 600; letter-spacing: -0.01em; align-self: center; }
.consent__mark { background: linear-gradient(transparent 55%, var(--sun-mark) 55%) no-repeat; background-size: 0% 100%; animation: consent-mark 700ms ease 450ms forwards; padding: 0 2px; }
.consent__line { min-height: 2.6em; }
.consent__line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes consent-out { to { opacity: 0; transform: translateY(16px); } }
@keyframes consent-mark { to { background-size: 100% 100%; } }
@keyframes consent-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .consent, .consent--out, .consent__lamp, .consent__mark { animation: none; } .consent__mark { background-size: 100% 100%; } }
.owner-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.owner-kpi { padding: 14px; display: grid; gap: 4px; }
.owner-kpi b { font-size: 26px; letter-spacing: -0.02em; }
.owner-bar { display: grid; grid-template-columns: minmax(110px, 200px) 1fr auto; gap: 12px; align-items: center; }
.owner-bar__track { height: 10px; border-radius: 99px; background: var(--paper-2, rgba(127,127,127,.15)); overflow: hidden; }
.owner-bar__track > span { display: block; height: 100%; border-radius: 99px; background: var(--lamp); }
.owner-table { overflow-x: auto; }
.owner-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.owner-table th { text-align: left; font-weight: 500; color: var(--ink-3, inherit); padding: 6px 10px; white-space: nowrap; }
.owner-table td { padding: 10px; border-top: 1px solid var(--line, rgba(127,127,127,.2)); vertical-align: top; }

/* The footer: link grid, then a little stage of floating objects behind a cropped gradient wordmark. */
.foot {
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 40px;
  overflow: hidden;
  position: relative;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  font-size: 13.5px;
  position: relative;
  z-index: 2;
}
.foot__grid h5 { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.foot__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-3); }
.foot__grid a:hover { color: var(--ink); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

.foot-stage {
  position: relative;
  margin-top: 48px;
  isolation: isolate;
}
.foot-stage::before {
  /* lamplight pooled under the wordmark */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: min(1100px, 120%);
  height: 140%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 150, 50, 0.28), rgba(255, 150, 50, 0) 70%);
  z-index: -2;
  pointer-events: none;
}
.foot-stage::after {
  /* halftone dot band, fading upward */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 90%, #000 0%, transparent 70%);
  mask-image: radial-gradient(70% 80% at 50% 90%, #000 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.foot-float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r, 0deg));
  z-index: 1;
  pointer-events: none;
}
.foot-float > * { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.foot-pill {
  display: inline-block;
  font-family: var(--font-read);
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--raised);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--hairline);
  white-space: nowrap;
}
.foot-pill mark { padding: 0 2px; }
@media (max-width: 760px) { .foot-float.hide-sm { display: none; } }
.wordmark {
  font-size: clamp(120px, 27vw, 380px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.8;
  text-align: center;
  margin: 0 0 -0.24em;
  padding-top: 0.32em;
  background: linear-gradient(180deg, #ffb53d 0%, #ff6a1a 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  user-select: none;
  position: relative;
  z-index: 0;
}

/* Server rendered pages: compare, answers, docs, legal, changelog. */
.s-wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.s-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--canvas) 80%, transparent); }
.s-nav__in { height: 64px; display: flex; align-items: center; gap: 26px; }
.s-nav__links { display: flex; gap: 22px; margin: 0 auto; font-size: 13.5px; color: var(--ink-2); }
.s-nav__links a:hover, .s-nav__links a[aria-current] { color: var(--ink); }
@media (max-width: 860px) { .s-nav__links { display: none; } .s-nav__in { justify-content: space-between; } }
.s-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 20px; letter-spacing: -0.04em; color: var(--ink); }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; }
.crumbs a:hover { color: var(--ink); }
.s-hero { padding: clamp(28px, 5vw, 56px); margin-top: 14px; }
.s-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.04em; margin: 16px 0 0; max-width: 900px; }
.s-hero .dek { margin-top: 16px; max-width: 720px; font-size: 16.5px; color: var(--ink-2); }
.s-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 960px) { .s-grid { grid-template-columns: 1fr; } }
.s-main { display: grid; gap: 18px; min-width: 0; }
.s-side { position: sticky; top: 80px; display: grid; gap: 14px; }
.answer-box { background: var(--raised); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow-soft); position: relative; }
.answer-box p { font-size: 17px; line-height: 1.65; color: var(--ink); }
.answer-box .eyebrow { margin-bottom: 8px; display: block; }
.s-panel { background: var(--surface); border-radius: 24px; padding: clamp(18px, 3vw, 28px); }
.s-panel h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 14px; }
.s-panel p + p { margin-top: 10px; }
.s-panel ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.s-panel ol.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--raised); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-pill); }
.s-panel ol.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(150, 60, 0, 0.35); background: radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.35), transparent 60%), var(--key-lamp); box-shadow: 0 8px 16px -6px rgba(255, 106, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.s-panel ol.steps li { align-items: center; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: var(--raised); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.ctable th, .ctable td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.ctable thead th { font-size: 13px; color: var(--ink-3); font-weight: 500; background: var(--surface); }
.ctable thead th.us { color: var(--ink); }
.ctable td:first-child { color: var(--ink); font-weight: 500; width: 30%; }
.ctable td.us { background: color-mix(in srgb, var(--lamp-tint) 55%, transparent); color: var(--ink); }
.ctable tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: 18px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .choose { grid-template-columns: 1fr; } }
.choose ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.s-faq details { background: var(--raised); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-pill); }
.s-faq details + details { margin-top: 8px; }
.s-faq summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq details p { margin-top: 8px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.link-card { background: var(--raised); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-soft); display: grid; gap: 8px; transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.link-card h3 { font-size: 16.5px; letter-spacing: -0.02em; line-height: 1.3; }
.link-card p { font-size: 13.5px; color: var(--ink-3); }
.side-card { background: var(--surface); border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.side-card a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cta-band { margin-top: 18px; padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.updated { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
/* docs prose */
.prose { background: var(--raised); border-radius: 24px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow-soft); min-width: 0; }
.prose h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; margin-bottom: 14px; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; letter-spacing: -0.025em; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--surface); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
.prose pre { background: #121215; color: #e8e8ea; padding: 16px; border-radius: 14px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 18px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.prose blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 3px solid var(--lamp); color: var(--ink-3); }
.prose .mermaid { background: var(--surface); border-radius: 14px; padding: 16px; overflow-x: auto; margin: 0 0 18px; text-align: center; }
.docs-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.docs-nav a:hover { background: var(--raised); color: var(--ink); }
.docs-nav a[aria-current] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); font-weight: 500; }
.docs-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.docs-grid .docs-side { position: sticky; top: 80px; }
@media (max-width: 860px) { .docs-grid { grid-template-columns: 1fr; } .docs-grid .docs-side { position: static; } }

/* question tabs: fixed height, nothing shifts */
.qa { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
.qa__r { position: absolute; opacity: 0; pointer-events: none; }
.qa__list { display: grid; gap: 8px; align-content: start; }
.qa__list label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 14.5px; line-height: 1.35; background: transparent; transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.qa__list label:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); color: var(--ink); }
.qa__n { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--well); color: var(--ink-3); transition: all 180ms ease; }
.qa__panes { display: grid; }
.qa__pane { grid-area: 1 / 1; background: var(--raised); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-soft); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms; }
.qa__pane h3 { font-size: 16.5px; letter-spacing: -0.02em; margin: 6px 0 8px; line-height: 1.3; }
.qa__pane p { font-size: 15px; line-height: 1.65; }
.qa__r:focus-visible ~ .qa__list { outline: none; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }
#qa0:checked ~ .qa__list label:nth-child(1) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa0:checked ~ .qa__list label:nth-child(1) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa0:checked ~ .qa__panes .qa__pane:nth-child(1) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa0:focus-visible ~ .qa__list label:nth-child(1) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa1:checked ~ .qa__list label:nth-child(2) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa1:checked ~ .qa__list label:nth-child(2) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa1:checked ~ .qa__panes .qa__pane:nth-child(2) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa1:focus-visible ~ .qa__list label:nth-child(2) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa2:checked ~ .qa__list label:nth-child(3) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa2:checked ~ .qa__list label:nth-child(3) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa2:checked ~ .qa__panes .qa__pane:nth-child(3) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa2:focus-visible ~ .qa__list label:nth-child(3) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa3:checked ~ .qa__list label:nth-child(4) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa3:checked ~ .qa__list label:nth-child(4) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa3:checked ~ .qa__panes .qa__pane:nth-child(4) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa3:focus-visible ~ .qa__list label:nth-child(4) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa4:checked ~ .qa__list label:nth-child(5) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa4:checked ~ .qa__list label:nth-child(5) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa4:checked ~ .qa__panes .qa__pane:nth-child(5) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa4:focus-visible ~ .qa__list label:nth-child(5) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa5:checked ~ .qa__list label:nth-child(6) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa5:checked ~ .qa__list label:nth-child(6) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa5:checked ~ .qa__panes .qa__pane:nth-child(6) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa5:focus-visible ~ .qa__list label:nth-child(6) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa6:checked ~ .qa__list label:nth-child(7) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa6:checked ~ .qa__list label:nth-child(7) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa6:checked ~ .qa__panes .qa__pane:nth-child(7) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa6:focus-visible ~ .qa__list label:nth-child(7) { outline: 2px solid var(--lamp); outline-offset: 2px; }
#qa7:checked ~ .qa__list label:nth-child(8) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-soft); }
#qa7:checked ~ .qa__list label:nth-child(8) .qa__n { color: #fff; background: var(--key-lamp); box-shadow: 0 6px 12px -5px rgba(255,106,26,.55); }
#qa7:checked ~ .qa__panes .qa__pane:nth-child(8) { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
#qa7:focus-visible ~ .qa__list label:nth-child(8) { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* pricing page */
.price-grid-s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
@media (max-width: 900px) { .price-grid-s { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.price-card h3 { font-size: 18px; }
.price-card .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.price-card li { display: flex; gap: 10px; }
.price-card .tick { color: var(--mint); font-weight: 700; }
.price-card .key { margin-top: auto; }
.price-card--hot { background: var(--ink); color: color-mix(in srgb, var(--on-ink) 75%, transparent); }
.price-card--hot h3, .price-card--hot .amount { color: var(--on-ink); }
.price-card--hot .tick { color: var(--lamp-hi); }
