/* Scanlotz Cloud — public site.
 *
 * Hand-written CSS, no build step. The palette is the Scanlotz identity:
 * a near-black warehouse ground, one yellow that means "this is the action",
 * and white reserved for headings so the eye lands on the sentence first.
 * Mobile-first: every layout starts as one column and widens at 720/1000px.
 */

:root {
  --ink:        #191922;   /* ground */
  --ink-raised: #20202c;   /* cards on ground */
  --ink-sunk:   #131319;   /* wells, code, table stripes */
  --line:       #2e2e3d;
  --amber:      #f7c600;
  --amber-deep: #d9ad00;
  --amber-glow: rgba(247, 198, 0, .16);
  --white:      #ffffff;
  --text:       #c9c9d6;
  --muted:      #8d8da0;
  --green:      #3ddc91;
  --radius:     14px;
  --radius-sm:  9px;
  --wrap:       1140px;
  --shadow:     0 24px 60px -30px rgba(0, 0, 0, .9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

/* Alpine sets this on anything that must not flash before the script runs. */
[x-cloak] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--white); margin: 0 0 .5em; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 7vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -.022em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--amber); text-decoration: none; }
a:hover { color: var(--white); }
ul { margin: 0 0 1.1em; padding-left: 1.1em; }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--amber);
  color: #191922; padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-sunk { background: var(--ink-sunk); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text); }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--amber); display: block;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--amber); color: #191922; }
.btn-accent:hover { background: #ffd426; color: #191922; }
.btn-ghost { border-color: var(--line); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-glow); }
.btn-sm { padding: .6rem 1.05rem; font-size: .93rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 25, 34, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); font-weight: 800; }
.brand:hover { color: var(--white); }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand-text { font-size: 1.06rem; letter-spacing: -.02em; }
.brand-thin { font-weight: 400; color: var(--muted); }

.nav-toggle {
  margin-left: auto; width: 42px; height: 38px; display: grid; align-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 9px; cursor: pointer;
}
.nav-toggle .bar { height: 2px; background: var(--white); border-radius: 2px; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 66px;
  background: var(--ink-raised); border-bottom: 1px solid var(--line);
  padding: .8rem 20px 1.3rem; flex-direction: column; gap: .25rem;
  box-shadow: var(--shadow);
}
.site-nav.open { display: flex; }
/* :not(.btn) matters — a bare `.site-nav a` rule outranks `.btn-accent` and
   would repaint the call-to-action's text grey on yellow. */
.site-nav a:not(.btn) {
  color: var(--text); font-weight: 600; padding: .7rem .25rem; border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover, .site-nav a.current { color: var(--white); }
.site-nav .btn { margin-top: .5rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 1.6rem; margin-left: auto; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .site-nav a:not(.btn) { padding: .3rem 0; }
  .site-nav a.current { box-shadow: inset 0 -2px 0 var(--amber); }
  .site-nav .btn { margin-top: 0; }
  .nav-signin { margin-left: .4rem; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero::before {
  /* A faint amber wash off the top-right corner: depth without an image. */
  content: ""; position: absolute; inset: -40% -30% auto 30%; height: 120%;
  background: radial-gradient(closest-side, rgba(247, 198, 0, .13), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .28;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 span { color: var(--amber); display: inline-block; }
.hero-sub { font-size: 1.15rem; max-width: 34rem; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem; }
.tick { color: var(--amber); font-weight: 800; flex: 0 0 auto; }
.hero-fine { font-size: .88rem; color: var(--muted); margin-top: 1.4rem; }

@media (min-width: 1000px) {
  .hero { padding: 5.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

/* ── The scan panel (hero visual, pure CSS/SVG) ────────────────────────── */
.scan-panel {
  background: linear-gradient(180deg, #232331, #1b1b25);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.scan-head {
  display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem;
  border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted);
}
.scan-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.scan-head .dot.live { background: var(--green); }
.scan-head .spacer { margin-left: auto; font-family: var(--mono); }
.scan-window { position: relative; padding: 1.4rem 1rem 1.2rem; }
.barcode {
  height: 78px; border-radius: 6px; background-color: var(--white);
  background-image: repeating-linear-gradient(90deg,
    #191922 0 3px, transparent 3px 6px, #191922 6px 8px, transparent 8px 13px,
    #191922 13px 17px, transparent 17px 20px, #191922 20px 21px, transparent 21px 26px);
  background-size: 26px 100%;
}
.barcode-digits {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .28em;
  color: var(--muted); text-align: center; margin: .5rem 0 0;
}
.scan-line {
  position: absolute; left: 1rem; right: 1rem; top: 1.4rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  box-shadow: 0 0 18px 3px var(--amber-glow);
  animation: sweep 2.8s ease-in-out infinite;
}
@keyframes sweep { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(76px); } }

.scan-result { border-top: 1px solid var(--line); padding: 1rem; display: grid; gap: .9rem; }
.result-row { display: flex; gap: .9rem; align-items: center; }
.result-thumb {
  width: 46px; height: 46px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, #34344a, #22222f);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--amber); font-weight: 800;
}
.result-name { color: var(--white); font-weight: 700; font-size: .96rem; line-height: 1.3; }
.result-meta { font-size: .8rem; color: var(--muted); }
.result-price { margin-left: auto; text-align: right; white-space: nowrap; }
.result-price b { color: var(--amber); font-size: 1.2rem; display: block; }
.result-price s { color: var(--muted); font-size: .8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 100px; border: 1px solid var(--line);
  color: var(--muted); background: var(--ink-sunk);
}
.chip-amber { color: #191922; background: var(--amber); border-color: var(--amber); }
.chip-green { color: var(--green); border-color: rgba(61, 220, 145, .35); }

/* ── Pipeline strip ────────────────────────────────────────────────────── */
.pipeline { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.pipe-step { background: var(--ink-raised); padding: 1.5rem 1.3rem; }
.pipe-step .num {
  font-family: var(--mono); font-size: .8rem; color: var(--amber); font-weight: 700;
  display: block; margin-bottom: .5rem;
}
.pipe-step h3 { margin-bottom: .35rem; }
.pipe-step p { margin: 0; font-size: .93rem; color: var(--muted); }
@media (min-width: 720px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }

/* ── Feature rows ──────────────────────────────────────────────────────── */
.feature-row { display: grid; gap: 2rem; align-items: center; padding: 3rem 0; }
/* Grid items default to min-width:auto, so one wide child — a code sample, a
   table — widens its track and pushes the whole page sideways on a phone. */
.feature-row > *, .card-grid > *, .plan-grid > *, .hero-grid > *,
.auth-grid > *, .doc-grid > *, .stat-grid > * { min-width: 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
@media (min-width: 1000px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem 0; }
  .feature-row.flip .feature-art { order: -1; }
}
.feature-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem; }

.card-grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--ink-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-glow); color: var(--amber); margin-bottom: 1rem;
}
.card-icon svg { width: 21px; height: 21px; }

/* ── Visuals built from boxes ──────────────────────────────────────────── */
.art {
  background: var(--ink-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow);
}
.art-title {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; margin-bottom: 1rem;
}
.rack { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.bin {
  aspect-ratio: 1 / 1; border-radius: 7px; border: 1px solid var(--line);
  background: var(--ink-sunk); display: grid; place-items: center;
  font-family: var(--mono); font-size: .68rem; color: var(--muted);
}
.bin.full { background: rgba(247, 198, 0, .1); border-color: rgba(247, 198, 0, .4); color: var(--amber); }
.bin.hot { background: var(--amber); border-color: var(--amber); color: #191922; font-weight: 700; }

.drop-chart { display: grid; gap: .7rem; }
.drop-line { display: grid; grid-template-columns: 4.5rem 1fr 3.6rem; gap: .7rem; align-items: center; }
.drop-line span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.drop-bar { height: 10px; border-radius: 100px; background: var(--ink-sunk); overflow: hidden; }
.drop-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); }
.drop-line b { font-family: var(--mono); font-size: .84rem; color: var(--white); text-align: right; }
.drop-line.sold b { color: var(--green); }

.code-block {
  background: var(--ink-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; overflow-x: auto; font-family: var(--mono); font-size: .8rem;
  color: var(--text); line-height: 1.7; margin: 0;
}
.code-block .k { color: var(--amber); }
.code-block .s { color: var(--green); }
.code-block .c { color: var(--muted); }

/* ── Stat band ─────────────────────────────────────────────────────────── */
.stat-grid { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink); padding: 1.6rem 1.3rem; }
.stat b { display: block; color: var(--amber); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.toggle {
  display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line);
  border-radius: 100px; background: var(--ink-sunk); margin: 0 auto 2.5rem;
}
.toggle button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700;
  font-size: .9rem; padding: .5rem 1.1rem; border-radius: 100px; cursor: pointer;
}
.toggle button.on { background: var(--amber); color: #191922; }
.toggle-wrap { display: flex; justify-content: center; }

.plan-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 780px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plan-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative; background: var(--ink-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; display: flex; flex-direction: column;
}
.plan.popular { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), var(--shadow); }
.plan-flag {
  position: absolute; top: -12px; left: 1.5rem; background: var(--amber); color: #191922;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 100px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.plan-blurb { font-size: .92rem; color: var(--muted); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: 1rem 0 .2rem; }
.plan-price b { color: var(--white); font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; }
.plan-price span { color: var(--muted); font-size: .92rem; }
.plan-sub { font-size: .82rem; color: var(--amber); min-height: 1.4em; margin: 0 0 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .55rem; }
.plan ul li { display: flex; gap: .55rem; font-size: .92rem; align-items: flex-start; }
.plan .btn { margin-top: .3rem; }
.plan-spacer { flex: 1 1 auto; }

.enterprise-band {
  display: grid; gap: 1.5rem; background: var(--ink-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
}
@media (min-width: 900px) { .enterprise-band { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.enterprise-band ul { list-style: none; padding: 0; display: grid; gap: .5rem; margin: 0; }
.enterprise-band li { display: flex; gap: .55rem; font-size: .93rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
table.compare th, table.compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--ink-sunk); color: var(--white); font-size: .85rem;
  letter-spacing: .05em; text-transform: uppercase; }
table.compare tbody th { color: var(--text); font-weight: 600; }
table.compare td { color: var(--white); font-variant-numeric: tabular-nums; }
table.compare tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .col-pop { background: var(--amber-glow); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: .7rem; max-width: 48rem; margin-inline: auto; }
.faq details {
  background: var(--ink-raised); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
.faq details[open] { border-color: var(--amber); }
.faq summary {
  cursor: pointer; color: var(--white); font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: .8rem 0 0; font-size: .95rem; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, #242432, #1a1a24);
  border: 1px solid var(--line); border-top-color: rgba(247, 198, 0, .4);
  border-radius: var(--radius); padding: 2.6rem 1.8rem; text-align: center;
}
.cta h2 { margin-bottom: .6rem; }
.cta p { color: var(--muted); max-width: 40rem; margin-inline: auto; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .86rem; font-weight: 700; color: var(--white); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .97rem;
  color: var(--white); background: var(--ink-sunk);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px var(--amber-glow);
}
.field.bad input, .field.bad select, .field.bad textarea { border-color: #ff6b6b; }
.field .err { font-size: .82rem; color: #ff8f8f; }
.field-row { display: grid; gap: 1.05rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.slug-field { display: flex; align-items: stretch; }
.slug-field input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.slug-field .suffix {
  display: flex; align-items: center; padding: 0 .8rem; font-family: var(--mono);
  font-size: .85rem; color: var(--muted); background: var(--ink);
  border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .89rem; }
.check input { width: 18px; height: 18px; margin-top: .15rem; flex: 0 0 auto; accent-color: var(--amber); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  background: var(--ink-sunk); border-radius: var(--radius-sm);
  padding: .9rem 1rem; font-size: .93rem; margin-bottom: 1.2rem;
}
.notice.bad { border-left-color: #ff6b6b; }
.notice.good { border-left-color: var(--green); }
.notice p:last-child { margin-bottom: 0; }

/* ── Auth pages ────────────────────────────────────────────────────────── */
.auth { padding: 3rem 0 4.5rem; }
.auth-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .auth-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: start; } }
.auth-card {
  background: var(--ink-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow);
}
.auth-narrow { max-width: 27rem; margin-inline: auto; }
.auth-foot { font-size: .89rem; color: var(--muted); margin: 1.3rem 0 0; text-align: center; }
.plan-picker { display: grid; gap: .6rem; }
/* Grid rather than flex: the middle column is minmax(0,1fr), which is the one
   formulation that reliably lets the limits line wrap on a narrow phone
   instead of widening the row past the screen. */
.plan-pick {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem; align-items: start; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem;
  background: var(--ink-sunk);
}
.plan-pick input { margin-top: .2rem; accent-color: var(--amber); }
.plan-pick:hover { border-color: var(--amber); }
.plan-pick strong { color: var(--white); display: block; font-size: .95rem; }
.plan-pick small { color: var(--muted); font-size: .82rem; }
.plan-pick .price { color: var(--amber); font-weight: 800; white-space: nowrap; }

.sell-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; margin: 1.6rem 0 0; }
.sell-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; }
.sell-list .tick { font-size: 1.05rem; }
.sell-list strong { color: var(--white); display: block; }
.sell-list span { font-size: .92rem; color: var(--muted); }

/* ── Legal + prose ─────────────────────────────────────────────────────── */
.doc-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .doc-grid { grid-template-columns: 220px 1fr; gap: 3.5rem; } }
.doc-nav { display: grid; gap: .3rem; align-content: start; position: sticky; top: 86px; }
.doc-nav a { padding: .55rem .8rem; border-radius: var(--radius-sm); color: var(--text); font-size: .93rem; }
.doc-nav a.current { background: var(--ink-raised); color: var(--white); box-shadow: inset 2px 0 0 var(--amber); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose li { margin-bottom: .45rem; }
.prose .updated { font-size: .86rem; color: var(--muted); }

/* ── Error page ────────────────────────────────────────────────────────── */
.errpage { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.errcode {
  font-family: var(--mono); font-size: clamp(4rem, 18vw, 8rem); font-weight: 800;
  color: var(--amber); line-height: 1; letter-spacing: -.05em;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-sunk); padding: 3rem 0 1.5rem; margin-top: 1rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }
.foot-brand .brand-mark { width: 30px; height: 30px; margin-bottom: .8rem; }
.foot-tag { color: var(--white); font-weight: 700; margin-bottom: .4rem; }
.foot-note { font-size: .88rem; color: var(--muted); max-width: 30ch; }
.foot-col { display: grid; gap: .45rem; align-content: start; }
.foot-col h2 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .3rem; font-weight: 800;
}
.foot-col a { color: var(--text); font-size: .92rem; }
.foot-col a:hover { color: var(--amber); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.3rem;
  font-size: .84rem; color: var(--muted);
}
.foot-base p { margin: 0; }
.foot-status { display: inline-flex; align-items: center; gap: .45rem; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 145, .16);
}

/* Motion is decoration here; anyone who asked for less gets none of it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
