/* PipeAlert — Tin Label design system
   Values are taken from docs/research/design.md §3.2-3.7. Do not invent new ones.
   Spacing must only use: 4 8 12 16 24 32 48 64 96 128 160 */

/* ---------- Tokens ---------- */
:root {
  --paper-0: #FBF8F1;
  --paper-1: #F5F0E4;
  --paper-2: #EDE6D6;
  --paper-3: #E4DBC7;
  --line: #DED5C1;
  --line-strong: #C7BBA1;

  --ink-12: #1C1A15;
  --ink-11: #3B362C;
  --ink-10: #6B6353;
  --ink-9: #8E8674;

  --tobacco: #8A4A22;
  --tobacco-hi: #A85E2C;
  --tobacco-lo: #6B3718;
  --tobacco-tint: #F2E4D3;

  --amber: #C98A2E;        /* decoration only, never text */
  --amber-ink: #8F5C10;    /* text version of amber */
  --amber-tint: #FAF0D8;

  --instock: #256B41;
  --instock-tint: #E3F2DF;
  --soldout: #A63A2C;
  --soldout-tint: #F7E3DC;

  --focus: #8A4A22;

  --ring: 0 0 0 1px #0000000f;
  --card-rest: var(--ring), inset 0 1px 0 #ffffff80;
  --card-hover: var(--ring), 0 1px 2px #0000000a, 0 8px 16px -8px #0000000f;

  --dur-1: 120ms;
  --dur-2: 160ms;
  --dur-3: 240ms;
  --dur-4: 400ms;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.23, 1, .32, 1);
  --ease-inout: cubic-bezier(.77, 0, .175, 1);

  --measure: 1128px;
  --measure-wide: 1280px;
  --gutter: 24px;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper-0: #14120E;
    --paper-1: #1B1813;
    --paper-2: #221E18;
    --paper-3: #2A251E;
    --line: #332D24;
    --line-strong: #4A4133;

    --ink-12: #F3EDE0;
    --ink-11: #CDC5B4;
    --ink-10: #9C9484;
    --ink-9: #6E6759;

    --tobacco: #C9884A;
    --tobacco-hi: #DBA06A;
    --tobacco-lo: #A86C36;
    --tobacco-tint: #2A2018;

    --amber: #E0A94C;
    --amber-ink: #E0A94C;
    --amber-tint: #2A2317;

    --instock: #4FA872;
    --instock-tint: #16281C;
    --soldout: #D4645A;
    --soldout-tint: #2C1A17;

    --focus: #C9884A;
    --ring: 0 0 0 1px #ffffff12;
    --card-rest: var(--ring), inset 0 1px 0 #ffffff0a;
    --card-hover: var(--ring), 0 1px 2px #00000040, 0 8px 16px -8px #00000060;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-0);
  color: var(--ink-11);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tobacco); text-decoration: none; }
a:hover { color: var(--tobacco-hi); }
h1, h2, h3, h4 { margin: 0; color: var(--ink-12); font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

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

/* ---------- Type scale ---------- */
.t-display {
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 0.94;
  font-weight: 620;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  letter-spacing: -0.028em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.06;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.022em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  font-variation-settings: "opsz" 48, "SOFT" 20, "WONK" 1;
  letter-spacing: -0.018em;
}
.t-h4 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 560;
  font-variation-settings: "opsz" 24, "SOFT" 20, "WONK" 1;
  letter-spacing: -0.012em;
}
.t-lede {
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--ink-11);
}
.t-body-sm { font-size: 15px; line-height: 1.6; }
.t-caption { font-size: 13px; line-height: 1.45; color: var(--ink-10); }
.t-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.t-mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-10);
  font-variant-numeric: tabular-nums;
}
.t-mono-lg {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-12);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-wide { max-width: var(--measure-wide); }

section { padding: 128px 0; }
.section-tight { padding: 96px 0; }
.bg-sink { background: var(--paper-1); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ---------- Paper grain (hero + footer only) ---------- */
.paper-grain { position: relative; }
.paper-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .028;
  mix-blend-mode: multiply;
  z-index: 0;
}
.paper-grain > * { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper-0) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-variation-settings: "opsz" 24, "WONK" 1;
  letter-spacing: -0.012em;
  color: var(--ink-12);
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--tobacco);
  box-shadow: 0 0 0 3px var(--tobacco-tint);
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-11); letter-spacing: -0.004em; }
.nav-links a:hover { color: var(--ink-12); }
.nav-cta { display: none; }

@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.004em;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tobacco); color: #FBF8F1; }
.btn-primary:hover { background: var(--tobacco-hi); color: #FBF8F1; }
.btn-primary:active { background: var(--tobacco-lo); }
/* The nav CTA is an <a> inside .nav-links, so `.nav-links a` (0,1,1) sets its
   colour to --ink-11 and beats `.btn-primary` (0,1,0), whatever order the two
   appear in. The result was ink on tobacco: 1.76:1, a button whose label is
   practically invisible, and the one thing in the header a visitor is meant to
   click. Restated here at (0,2,0) so it wins, and on hover too because
   `.nav-links a:hover` carries the same specificity problem. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #FBF8F1; }

.btn-ghost {
  background: transparent;
  color: var(--ink-12);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink-12); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--instock);
  background: var(--instock-tint);
  border: 1px solid color-mix(in srgb, var(--instock) 22%, transparent);
  border-radius: 9999px;
  padding: 6px 12px;
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--instock);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.82); }
}
.hero h1 { max-width: 13ch; }
.hero-lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--ink-11);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-10);
}

/* ---------- Facts block (quotable, sits above the table) ---------- */
.facts {
  border-bottom: 1px solid var(--line);
  background: var(--paper-1);
  padding: 32px 0;
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
  max-width: 1128px;
}
.fact-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-11);
  font-variant-numeric: tabular-nums;
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--tobacco);
}
@media (max-width: 767px) {
  .facts { padding: 24px 0; }
  .fact-list { grid-template-columns: 1fr; gap: 10px; }
  .fact-list li { font-size: 14px; }
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-1);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.stat-value {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-12);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-10);
}

/* ---------- Stock table (GEO asset) ---------- */
.stock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.stock-head h2 { max-width: 20ch; }

.stock-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-11);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] {
  background: var(--tobacco);
  border-color: var(--tobacco);
  color: #FBF8F1;
}
.chip .n {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .7;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Restock feed ----------
   One window, one list, one column: the twenty most recent restocks on a vertical
   timeline, newest at the top. An earlier version drew each event as its own bordered
   card in two columns. That made twenty separate boxes on the first screen, which read
   as twenty unrelated things rather than one history, and it pushed the stock table
   below the fold.

   There is no app eyebrow and no product title on a row any more. The page is already
   PipeAlert; repeating the name twenty times pushed the event text to the right and
   said nothing. A row is now: a bell on the rail, the event, and its time. */
.restock-feed-wrap { margin-bottom: 24px; }
.restock-feed {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-0);
  box-shadow: var(--card-rest);
  /* The window is bounded and scrolls itself. Twenty rows at ~52px is over 1000px;
     unbounded, the table - which is the actual product - becomes something to scroll
     past on a phone. The page stays short, the history stays long. */
  max-height: 356px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* The rail: one continuous line behind the bells, drawn by each item and cancelled on
   the last one, so the list reads as a timeline rather than a stack of cards. */
.restock-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--ink-11);
  transition: background var(--dur-1) var(--ease-out);
}
.restock-item:hover { background: var(--paper-1); }
.restock-item:focus-visible {
  outline: 2px solid var(--tobacco);
  outline-offset: -2px;
}
/* The connecting line, drawn from each row's bell down to the next row's. */
.restock-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 26px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}
.restock-item:last-child::before { content: none; }
/* The bell is the last thing in the DOM and the first thing on the rail. Grid places
   it; the source order is fixed by the character budget tools/verify-landing.mjs
   enforces around class="restock-item" and its <time>. */
.restock-bell {
  grid-column: 1;
  grid-row: 1;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--tobacco);
  background: var(--paper-0);
  position: relative;
  z-index: 1;
}
.restock-item:hover .restock-bell { background: var(--paper-1); }
/* The age. Rewritten in the browser from the datetime attribute, so the static value
   here is only what a reader with JS off sees. */
.restock-item time {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-10);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.restock-body {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-11);
  /* A long blend name wraps rather than widening the row past the window. */
  overflow-wrap: anywhere;
}
/* The price rides inside the body sentence, so it is not a grid child: only the inline
   spacing and the mono digits apply here. */
.restock-price {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--tobacco);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* The one sentence that says what the list is: state changes we observed, not a
   schedule. Small and quiet, under the window, where it is read last. */
.restock-caption {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-10);
}

.table-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-1);
  box-shadow: var(--card-rest);
  overflow: hidden;
  background-image: radial-gradient(#C7BBA1 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  background-position: 0 0;
}
.table-scroll { overflow-x: auto; }
table.stock {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.stock thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-10);
  white-space: nowrap;
}
table.stock tbody tr {
  border-bottom: 1px solid var(--line);
  transition: none;
}
table.stock tbody tr:last-child { border-bottom: 0; }
table.stock tbody tr:hover { background: var(--paper-2); }
table.stock td {
  padding: 11px 16px;
  vertical-align: middle;
}
td.c-blend { color: var(--ink-12); font-weight: 500; }
td.c-blend .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-9);
  margin-left: 6px;
}
td.c-brand { color: var(--ink-10); font-size: 14px; white-space: nowrap; }
td.c-size {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-10);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td.c-status { white-space: nowrap; }
td.c-price {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  color: var(--ink-11);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td.c-price .na { color: var(--ink-9); }

/* ---------- Sites cell ----------
   The cell lists the retailers that carry this blend, and the whole point of it now
   is the difference between a name you can click and a name you cannot. Before this
   block both were the same colour, because the row sets color:var(--ink-11) and
   neither class had a rule of its own: eight live links and a hundred and fifty
   dead names rendered identically.

   The split is driven by the retailer's own status, not by whether a URL exists
   (every listing has one). in_stock and backorder are buyable, so they are links.
   sold_out, delisted and unknown are not, so they are plain text with no anchor at
   all, which also keeps a keyboard user from tabbing into a shop that cannot sell
   them anything. */
td.c-site { font-size: 14px; line-height: 1.5; }
.site-link {
  color: var(--tobacco);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--tobacco-lo);
  transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}
.site-link:hover {
  color: var(--tobacco-hi);
  text-decoration-color: currentColor;
}
.site-link:focus-visible {
  outline: 2px solid var(--tobacco);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Not colour alone: the name is dimmer and unlined, so the difference survives a
   greyscale screenshot and a colour-blind reader.
   --ink-9 (#8E8674) was the first choice and measured 3.41:1 on the paper
   ground, under the 4.5:1 an accessibility audit requires for 13px text, across
   151 names. --ink-10 measures 5.60:1 and is still plainly dimmer than the
   6.42:1 of .site-link above, so the "you can click this / you cannot" split
   survives the correction instead of collapsing into one colour. */
.site-plain { color: var(--ink-10); }
.site-sep { color: var(--ink-9); }

/* 行级时间戳列。等宽数字，右对齐，压低对比度：它是参考信息不是主要内容。 */
td.c-when {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-9);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
td.c-when time { font-style: normal; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: help;
}
.status .dot { width: 6px; height: 6px; border-radius: 9999px; flex: none; }
.status.in { color: var(--instock); }
.status.in .dot { background: var(--instock); }
.status.out { color: var(--soldout); }
.status.out .dot { background: transparent; box-shadow: inset 0 0 0 1px var(--soldout); }
/* backorder：能下单但要等，和 in_stock 不是同一件事，用琥珀色区分 */
.status.back { color: var(--amber-ink); }
.status.back .dot { background: transparent; box-shadow: inset 0 0 0 1px var(--amber-ink); }
/* delisted：零售商不再上架，跟卖完是不同结论。用中性墨色，不做红色警告 */
.status.gone { color: var(--ink-9); }
.status.gone .dot { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-9); }
/* unknown：抓取失败或没读到，绝不猜。虚线点提示「未知」 */
.status.unk { color: var(--ink-9); }
.status.unk .dot { background: transparent; border: 1px dashed var(--ink-9); width: 7px; height: 7px; }
.status.just { animation: pop var(--dur-3) var(--ease-soft) 1; }
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-10);
}
.table-foot a { font-family: var(--font-sans); font-size: 13px; }

/* ---------- Comparison (5/7) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .compare-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
}
.pull {
  border-left: 2px solid var(--amber);
  padding-left: 24px;
}
.pull blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.014em;
  color: var(--ink-12);
}
.pull cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--ink-10);
}
.prose p + p { margin-top: 16px; }
.prose { max-width: 62ch; }
.prose strong { color: var(--ink-12); font-weight: 600; }

.mech-list { margin-top: 32px; border-top: 1px solid var(--line); }
.mech-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mech-item dt { font-size: 15px; color: var(--ink-11); }
.mech-item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-12);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- What you get (4/8) ---------- */
.get-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .get-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
}
.get-list { border-top: 1px solid var(--line-strong); }
.get-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.get-row .label { color: var(--ink-12); font-weight: 500; }
.get-row .sub { margin-top: 2px; font-size: 14px; color: var(--ink-10); font-weight: 400; }
.get-row .val {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-12);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Price ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .price-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
}
.plan {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-1);
  box-shadow: var(--card-rest);
  padding: 32px;
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.plan:hover { box-shadow: var(--card-hover); }
.plan-main { border-color: var(--line-strong); }
.plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-10);
}
.plan-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
/* .amt-quote is the same visual weight as .amt, but a different class on
   purpose. .amt means "we charge this automatically, today, through Stripe", and
   the false-claims gate holds every .amt figure to the Stripe price list. The
   Custom tier is quoted by email and invoiced by hand, so writing it as .amt
   would either make the gate fail on a true price or force the gate to accept
   any $1000 anywhere. A separate class keeps the two claims distinguishable at
   the level of a single line, which is the level the gate scans at. */
.plan-price .amt,
.plan-price .amt-quote {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-12);
  font-variant-numeric: tabular-nums;
}
.plan-price .per { font-size: 14px; color: var(--ink-10); }
.plan-alt {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-10);
  font-variant-numeric: tabular-nums;
}
.plan-features { margin-top: 24px; border-top: 1px solid var(--line); }
.plan-features li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-11);
}
.plan-features li .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-12);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-cta { margin-top: 24px; width: 100%; }

.flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber-ink);
  background: var(--amber-tint);
  border-radius: 9999px;
  padding: 4px 10px;
}
.flag::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--amber);
}

.beta-note {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
}
.beta-note .t-h4 { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
details.faq {
  border-bottom: 1px solid var(--line);
}
details.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 560;
  font-variation-settings: "opsz" 24, "SOFT" 20, "WONK" 1;
  letter-spacing: -0.012em;
  color: var(--ink-12);
  transition: color var(--dur-1) var(--ease-out);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--tobacco); }
details.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-10);
  flex: none;
  line-height: 1.2;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .answer {
  padding: 0 0 24px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-11);
}
details.faq .answer p + p { margin-top: 12px; }

/* ---------- Final CTA ---------- */
.final {
  border-top: 1px solid var(--line);
  padding: 128px 0;
  text-align: left;
}
.final-inner { max-width: 640px; }
.final h2 { max-width: 18ch; }

.signup { margin-top: 32px; }
.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.signup input {
  flex: 1 1 260px;
  height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper-0);
  color: var(--ink-12);
  font-size: 15px;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.signup input::placeholder { color: var(--ink-9); }
.signup input:focus {
  outline: none;
  border-color: var(--tobacco);
  box-shadow: 0 0 0 3px var(--tobacco-tint);
}
.signup-msg {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
  color: var(--ink-10);
}
.signup-msg.err { color: var(--soldout); }
.signup-msg.ok { color: var(--instock); }
.signup-fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-10);
  max-width: 52ch;
}

/* 决策点的三步说明。刻意用编号列表而不是段落：
   访客此刻在问「然后呢」，编号能一眼给出有限的、可预期的步骤数。 */
.next-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  max-width: 56ch;
}
.next-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-11);
}
.next-steps-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-10);
  max-width: 52ch;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-1);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.footer p { font-size: 14px; color: var(--ink-10); }
.footer h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-10);
  margin-bottom: 12px;
}
.footer ul { display: grid; gap: 8px; }
.footer ul a { font-size: 14px; color: var(--ink-11); }
.footer ul a:hover { color: var(--tobacco); }
.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-10);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-10);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive type ---------- */
@media (max-width: 1023px) {
  .t-display { font-size: 52px; line-height: 0.98; letter-spacing: -0.024em; }
  .t-h2 { font-size: 32px; }
  section { padding: 96px 0; }
  .hero { padding: 64px 0 48px; }
  .final { padding: 96px 0; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .t-display { font-size: 40px; line-height: 1.02; letter-spacing: -0.022em; }
  .t-h2 { font-size: 28px; }
  .t-h3 { font-size: 21px; }
  .t-lede, .hero-lede { font-size: 17px; }
  section { padding: 64px 0; }
  .section-tight { padding: 64px 0; }
  .final { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  table.stock { font-size: 14px; }
  table.stock td, table.stock thead th { padding: 10px 12px; }
  .plan { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Display width ---------- */
/* At 76px the headline sets to a single 1051px line, which is far past the 80
   character reading limit and pushes the table below the fold on a laptop. */
.hero-stock .t-display {
  max-width: 13ch;
}
/* ---------- Demo flag, channel note, media figure ---------- */
/* The feed can be filled from in-stock SKUs when no real restock has been observed.
   The flag and the note exist so those rows are never mistaken for measured events:
   without them the synthetic timestamps would read as fact. */
.restock-flag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.restock-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--ink-10);
}

/* The note names the delivery channel. It is body copy, not a caption: same size
   as the paragraph it follows, same 62ch measure. */
.channel-note {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-11);
}

/* A phone screenshot is evidence, not decoration, so it takes a hairline border
   and the paper fill instead of a shadow. */
.media-figure {
  margin: 24px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-1);
}

.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
}

.media-caption {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-10);
}

/* Two notification screenshots side by side, under the pricing cards. The
   images are 1440x720 with ~45px notification text, so they need real width to
   stay readable: one column each at 900px and up. The 420px cap in
   .media-figure img is for a single portrait phone shot and would shrink these
   to the point where the payload text cannot be read, so the row lifts it. */
.shot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.shot-row .media-figure {
  margin: 0;
  min-width: 0;
}

.shot-row .media-figure img {
  max-width: 100%;
}

@media (min-width: 900px) {
  .shot-row { grid-template-columns: 1fr 1fr; gap: 24px; }
}
