/* Prose font (Inter) + product/mono font (Lilex). @import must precede all rules. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Lilex — self-hosted from @fontsource/lilex. URLs resolve relative to this
   stylesheet (served at /landing/styles.css → /landing/fonts/...). */
@font-face { font-family: "Lilex"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lilex/lilex-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lilex"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/lilex/lilex-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lilex"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/lilex/lilex-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lilex"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lilex/lilex-latin-700-normal.woff2") format("woff2"); }

/* ─── Design tokens (light defaults) ──────────────────────────────────────────
   Ported from docs/design/landing-reference (assets/landing.css + README). Short
   var names match the reference so its CSS ports verbatim. Runtime theming
   overrides these under html[data-*]. NOTE: plain CSS — Tailwind deferred (plan §13.7). */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Lilex", ui-monospace, "SF Mono", Menlo, monospace;

  --page: #f4f0e8;
  --bg: #fbf9f3;
  --bg-2: #f8f4ea;
  --text: #1d1a14;
  --muted: #857d6c;
  --subtle: #c5beac;
  --border: #e9e2d2;
  --border-strong: #d8d0bb;
  --soft: #f2ecdc;
  --input: #f7f3e8;
  --accent: #2e7a4f;
  --on-accent: #ffffff;

  --radius: 10px;
  --radius-lg: 14px;
  --row-pad: 16px;
  --section-gap: 120px;

  --shadow-sm: 0 1px 0 rgba(20, 15, 5, 0.03);
  --shadow: 0 1px 0 rgba(20, 15, 5, 0.02), 0 12px 32px -12px rgba(40, 30, 10, 0.10);
  --shadow-lg: 0 1px 0 rgba(20, 15, 5, 0.03), 0 28px 64px -22px rgba(40, 30, 10, 0.18);
}

html[data-theme="dark"] {
  --page: #100e0a;
  --bg: #1a1813;
  --bg-2: #161410;
  --text: #ece5d2;
  --muted: #8a8273;
  --subtle: #4b463c;
  --border: #2a2620;
  --border-strong: #3a352c;
  --soft: #221e17;
  --input: #15120e;
  --accent: #79c39a;
  --on-accent: #100e0a;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1px 0 rgba(0, 0, 0, 0.4), 0 40px 80px -22px rgba(0, 0, 0, 0.65);
}

/* Accent variants (light / dark pairs) */
html[data-accent="ink"] { --accent: #1d1a14; }
html[data-accent="blue"] { --accent: #2b5fb8; }
html[data-accent="rust"] { --accent: #b8552e; }
html[data-theme="dark"][data-accent="ink"] { --accent: #ece5d2; }
html[data-theme="dark"][data-accent="green"] { --accent: #79c39a; }
html[data-theme="dark"][data-accent="blue"] { --accent: #8aaee6; }
html[data-theme="dark"][data-accent="rust"] { --accent: #e0916e; }

/* Density */
html[data-density="compact"] { --row-pad: 12px; --section-gap: 88px; }

/* ─── Base ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ─── Top nav ───────────────────────────────────────────────────────────────── */
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--page) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}
nav.top > .wrap {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
@media (max-width: 720px) { .nav-links { display: none; } }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--soft); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 14px; height: 14px; display: block; }
.icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: block; }
html[data-theme="dark"] .icon-btn .moon { display: none; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn .arrow { transition: transform 0.2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(2px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--soft); opacity: 1; }
.btn--sm { padding: 7px 12px; font-size: 12.5px; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
section.hero { padding: 88px 0 64px; }
@media (max-width: 640px) { section.hero { padding: 56px 0 40px; } }
.hero .kicker {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero .kicker .badge {
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(40px, 5.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--text);
  text-wrap: balance;
  max-width: 16ch;
}
.hero h1 .light { color: var(--muted); font-weight: 400; }
.hero p.tag {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  max-width: 54ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero p.tag .dim { color: var(--muted); }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-row .note { font-size: 12.5px; color: var(--muted); }
.hero-marks {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 12.5px;
}
.hero-marks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-marks .ck { color: var(--accent); }

.hero-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 100px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  width: max-content;
  font-family: var(--font-mono);
}
.hero-demo:hover { background: var(--soft); color: var(--text); }
.hero-demo .hd-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: hd-pulse 2.6s ease-in-out infinite;
}
.hero-demo .hd-l { font-family: var(--font-sans); }
.hero-demo .hd-ar { color: var(--accent); }
@keyframes hd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-demo .hd-dot { animation: none; }
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
footer.foot {
  border-top: 1px solid var(--border);
  padding: 56px 0 56px;
  background: var(--bg-2);
}
.capture-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .capture-wrap { grid-template-columns: 1fr; gap: 24px; } }
.capture-wrap .pitch .h {
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.2;
  max-width: 22ch;
}
.capture-wrap .pitch .s {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 40ch;
}
form.capture {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
@media (max-width: 720px) { form.capture { justify-self: start; } }
form.capture input {
  flex: 1;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  min-width: 0;
}
form.capture input:focus { border-color: var(--accent); }
form.capture input::placeholder { color: var(--subtle); }
form.capture button {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0 18px;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}
form.capture button:hover { opacity: 0.9; }
form.capture .done {
  flex: 1;
  display: flex; align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.meta-row {
  display: flex; flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.meta-row a { color: var(--muted); text-decoration: none; }
.meta-row a:hover { color: var(--text); }
.meta-row .dot { color: var(--subtle); }
.meta-row .spacer { flex: 1; }
.meta-row .wordmark { font-size: 13px; }

/* ─── Product surfaces keep the app's monospace ──────────────────────────────── */
.editor, .editor *,
.inv-preview, .inv-preview *,
.window .titlebar .url {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

/* ─── Section heads ──────────────────────────────────────────────────────────── */
.section-head {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .lhs { max-width: 38ch; }
.section-head h2 {
  font-size: 12px;
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.section-head h2::before { content: ""; width: 14px; height: 1px; background: var(--subtle); }
.section-head .lead {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
  font-weight: 500;
}
.section-head .rhs { font-size: 13px; color: var(--muted); max-width: 40ch; line-height: 1.55; }
.section-head .rhs b { color: var(--text); font-weight: 500; }

section.block { padding: var(--section-gap) 0; }

/* ─── Window chrome for editor mock ──────────────────────────────────────────── */
.window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window .titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.window .titlebar .dots { display: inline-flex; gap: 6px; }
.window .titlebar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
}
.window .titlebar .url {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  max-width: 380px;
  margin: 0 auto;
}
.window .titlebar .url .lock { font-size: 10px; }
.window .titlebar .url b { color: var(--text); font-weight: 500; }

/* ─── Editor mock ────────────────────────────────────────────────────────────── */
.editor { display: grid; grid-template-columns: 280px 1fr; min-height: 540px; }
@media (max-width: 800px) { .editor { grid-template-columns: 1fr; min-height: unset; } }
.editor .ed-side {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 18px 18px 16px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .editor .ed-side { border-right: none; border-bottom: 1px solid var(--border); }
}
.editor .ed-side .ed-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.editor .ed-side .ed-brand .who {
  font-size: 12px; color: var(--text); font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.3; max-width: 12ch;
}
.editor .ed-side .ed-brand .lang { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.editor .ed-side .ed-brand .lang b { color: var(--text); }
.editor .ed-side .ed-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin: 16px 0 10px;
}
.editor .ed-side .ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor .ed-side .field { display: flex; flex-direction: column; gap: 4px; }
.editor .ed-side .field--wide { grid-column: 1 / -1; }
.editor .ed-side .field label { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.editor .ed-side .field input,
.editor .ed-side .field .sel {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--text);
  height: 28px;
  display: flex;
  align-items: center;
}
.editor .ed-side .field .sel { justify-content: space-between; }
.editor .ed-side .field .sel::after { content: "▾"; color: var(--muted); font-size: 9px; }
.editor .ed-side .field .placeholder { color: var(--subtle); }
.editor .ed-side .lineitem {
  display: grid;
  grid-template-columns: 1fr 36px 56px 32px;
  gap: 6px;
  margin-bottom: 8px;
}
.editor .ed-side .lineitem .field input { padding: 6px 8px; font-size: 11px; }
.editor .ed-side .lineitem .field label { display: none; }
.editor .ed-side .add-row {
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  padding: 8px;
  font-size: 11px;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px;
}
.editor .ed-side .note-box {
  border: 1px solid var(--border);
  background: var(--input);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--subtle);
  min-height: 50px;
}
.editor .ed-side .side-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
}
.editor .ed-side .side-foot .dl {
  flex: 1;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.editor .ed-side .side-foot .ic {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: var(--input);
}
.editor .ed-side .side-foot .ic svg { width: 12px; height: 12px; }

/* Editor preview pane */
.editor .ed-preview {
  background: var(--bg);
  padding: 36px 40px;
  display: flex; align-items: flex-start; justify-content: center;
}
@media (max-width: 800px) { .editor .ed-preview { padding: 24px 22px; } }
.editor .inv-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 28px 22px;
  width: 100%;
  max-width: 500px;
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.editor .inv-preview .iv-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.editor .inv-preview .iv-head .from .name {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--text);
}
.editor .inv-preview .iv-head .from .meta {
  color: var(--muted); font-size: 10.5px; margin-top: 4px; line-height: 1.55;
}
.editor .inv-preview .iv-head .right { text-align: right; }
.editor .inv-preview .iv-head .right .label {
  font-size: 18px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent);
}
.editor .inv-preview .iv-head .right .no {
  color: var(--muted); font-size: 10.5px; margin-top: 4px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.editor .inv-preview .iv-bill {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 18px;
}
.editor .inv-preview .iv-bill .label {
  font-size: 9.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px;
}
.editor .inv-preview .iv-bill .v { font-size: 11.5px; color: var(--text); }
.editor .inv-preview .iv-bill .right { text-align: right; }
.editor .inv-preview table.lines {
  width: 100%; border-collapse: collapse; margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.editor .inv-preview table.lines th {
  text-align: left; font-weight: 400; color: var(--muted);
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0 0 8px; border-bottom: 1px solid var(--border);
}
.editor .inv-preview table.lines th.r,
.editor .inv-preview table.lines td.r { text-align: right; }
.editor .inv-preview table.lines td { padding: 10px 0; color: var(--text); font-size: 11.5px; }
.editor .inv-preview table.lines td.qty,
.editor .inv-preview table.lines td.rate { color: var(--muted); }
.editor .inv-preview .iv-totals {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px;
  width: max-content; margin-left: auto;
  font-variant-numeric: tabular-nums; font-size: 11.5px;
}
.editor .inv-preview .iv-totals .l { color: var(--muted); text-align: right; }
.editor .inv-preview .iv-totals .v { text-align: right; color: var(--text); }
.editor .inv-preview .iv-totals .grand-l,
.editor .inv-preview .iv-totals .grand-v {
  padding-top: 8px; border-top: 1px solid var(--border); font-weight: 500;
}
.editor .inv-preview .iv-totals .grand-v { font-size: 16px; color: var(--accent); }

/* Caption */
.editor-caption {
  margin: 22px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 60ch;
}
.editor-caption b { color: var(--text); font-weight: 500; }

/* ─── Product surface: templates stack keeps mono ────────────────────────────── */
.t-stack, .t-stack * { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "ss01" 1; }

/* ─── 03 Sixty — story strip ─────────────────────────────────────────────────── */
.story {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
@media (max-width: 960px) { .story { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .story { grid-template-columns: repeat(2, 1fr); } }
.story li {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 170px;
}
.story .t {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
}
.story .c {
  font-size: 11.5px; color: var(--text); line-height: 1.4;
  letter-spacing: -0.005em; margin-top: auto;
}
.story .f {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  min-height: 64px; position: relative; overflow: hidden; font-family: var(--font-mono);
}
.story .f-empty .cur {
  width: 1.5px; height: 18px; background: var(--text); display: inline-block;
  animation: cur-blink 1s steps(2) infinite;
}
@keyframes cur-blink { 50% { opacity: 0; } }
.story .f-rows { flex-direction: column; align-items: stretch; gap: 5px; padding: 14px 12px; }
.story .f-rows i { display: block; height: 4px; border-radius: 2px; background: var(--border-strong); }
.story .f-rows i:nth-child(1) { width: 70%; }
.story .f-rows i:nth-child(2) { width: 90%; background: var(--accent); opacity: 0.5; }
.story .f-rows i:nth-child(3) { width: 60%; }
.story .f-tot { flex-direction: column; gap: 2px; }
.story .f-tot .v {
  font-size: 22px; color: var(--text); font-weight: 500;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.story .f-tot .l { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.story .f-link { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 10px 12px; }
.story .f-link .u { font-size: 10px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .f-link .u b { color: var(--accent); font-weight: 500; }
.story .f-link .cp {
  font-size: 9px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--border));
  border-radius: 4px; padding: 2px 5px; width: max-content;
}
.story .f-chat { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 12px; }
.story .f-chat .bb {
  height: 8px; background: var(--soft); border: 1px solid var(--border);
  border-radius: 4px 4px 4px 1px; width: 65%; display: block;
}
.story .f-chat .bb.me {
  background: var(--accent); border-color: var(--accent);
  border-radius: 4px 4px 1px 4px; align-self: flex-end; width: 50%;
}
.story .f-chat .un {
  height: 22px; background: var(--bg); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 3px; margin-top: 2px; display: block;
}
.story .f-done { color: var(--accent); }
.story .f-done svg { width: 28px; height: 28px; }

/* ─── 04 Pillars ─────────────────────────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.pillar {
  background: var(--bg); padding: 36px 36px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center;
}
.pillar:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.pillar:nth-child(even) .pillar-copy { order: 2; }
@media (max-width: 800px) {
  .pillar, .pillar:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .pillar:nth-child(even) .pillar-copy { order: 0; }
}
.pillar-copy .step {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px;
}
.pillar-copy .step .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--soft); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 11px; letter-spacing: 0; font-weight: 500;
}
.pillar-copy h3 {
  font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 12px;
  color: var(--text); text-wrap: balance; font-weight: 500;
}
.pillar-copy p {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 18px;
  max-width: 38ch; text-wrap: pretty;
}
.pillar-copy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pillar-copy li { font-size: 13px; color: var(--text); position: relative; padding-left: 15px; line-height: 1.5; }
.pillar-copy li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.pillar-copy li code { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pillar-copy li .dim { color: var(--muted); }
.pillar-copy .lill { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pillar-copy .lill b { color: var(--text); font-weight: 500; }
.pillar-visual {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; align-items: center; justify-content: center;
  min-height: 320px; position: relative; overflow: hidden;
}

/* Visual: templates stack */
.t-stack { position: relative; width: 220px; height: 280px; }
.t-stack .t-card {
  position: absolute; inset: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-sm); padding: 16px 16px;
  font-size: 8px; line-height: 1.4; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px; transform-origin: center;
}
.t-stack .t-card.t1 { transform: rotate(-6deg) translateX(-30px) translateY(8px); }
.t-stack .t-card.t2 { transform: rotate(-2deg) translateX(-12px) translateY(2px); }
.t-stack .t-card.t3 { transform: rotate(2deg)  translateX(12px)  translateY(-2px); }
.t-stack .t-card.t4 { transform: rotate(6deg)  translateX(30px)  translateY(-8px); box-shadow: var(--shadow); }
.t-mini-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.t-mini-head .nm { color: var(--text); font-weight: 500; font-size: 10px; letter-spacing: 0.04em; }
.t-mini-head .nu { color: var(--muted); font-size: 8px; }
.t-mini-lines { display: flex; flex-direction: column; gap: 3px; }
.t-mini-lines i { display: block; height: 3px; background: var(--border); border-radius: 1px; }
.t-mini-lines i:nth-child(1) { width: 86%; }
.t-mini-lines i:nth-child(2) { width: 64%; }
.t-mini-lines i:nth-child(3) { width: 78%; }
.t-mini-lines i:nth-child(4) { width: 50%; }
.t-mini-total {
  margin-top: auto; border-top: 1px solid var(--border); padding-top: 5px;
  display: flex; justify-content: space-between; color: var(--text); font-weight: 500; font-size: 9px;
}

/* Visual: phone whatsapp unfurl */
.phone {
  width: 220px; height: 360px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 22px 12px 14px; box-shadow: var(--shadow);
  position: relative; display: flex; flex-direction: column; gap: 8px;
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--border-strong); border-radius: 100px;
}
.phone .chat-head {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px;
  border-bottom: 1px solid var(--border); font-size: 10px;
}
.phone .chat-head .avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--soft); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 500; color: var(--text);
}
.phone .chat-head .who { display: flex; flex-direction: column; line-height: 1.2; }
.phone .chat-head .who .nm { color: var(--text); font-weight: 500; font-size: 10.5px; }
.phone .chat-head .who .st { color: var(--muted); font-size: 9px; }
.phone .bubbles { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px; flex: 1; }
.phone .bubble {
  background: var(--soft); border: 1px solid var(--border); border-radius: 10px 10px 10px 2px;
  padding: 7px 9px; font-size: 10px; color: var(--text); max-width: 80%;
}
.phone .bubble.me {
  align-self: flex-end; background: var(--accent); color: var(--on-accent);
  border-color: var(--accent); border-radius: 10px 10px 2px 10px;
}
.phone .unfurl {
  align-self: flex-end; max-width: 90%; background: var(--bg);
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 7px 9px; display: flex; flex-direction: column; gap: 2px;
}
.phone .unfurl .ti { font-size: 10px; color: var(--text); font-weight: 500; letter-spacing: -0.005em; }
.phone .unfurl .amt { color: var(--text); }
.phone .unfurl .ds { font-size: 8.5px; color: var(--muted); line-height: 1.4; }
.phone .unfurl .dom { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.phone .timestamp { text-align: center; font-size: 8.5px; color: var(--subtle); letter-spacing: 0.04em; }

/* Visual: notifications stack */
.notif-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
.notif {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; box-shadow: var(--shadow-sm);
}
.notif .ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--accent);
}
.notif .ico svg { width: 12px; height: 12px; }
.notif .lines { line-height: 1.3; min-width: 0; }
.notif .lines .t {
  font-size: 12px; color: var(--text); font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif .lines .s { font-size: 10.5px; color: var(--muted); }
.notif .when { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.notif.paid .ico { color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, var(--soft)); }

/* ─── Product surface: template swatches keep mono ───────────────────────────── */
.tpl .swatch, .tpl .swatch * { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "ss01" 1; }

/* ─── 05 Templates ───────────────────────────────────────────────────────────── */
.templates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .templates { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .templates { grid-template-columns: repeat(2, 1fr); } }
.tpl {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer;
}
.tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl .swatch {
  aspect-ratio: 3 / 4; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 10px; display: flex; flex-direction: column; gap: 5px;
  font-size: 6px; color: var(--muted); overflow: hidden;
}
.tpl .swatch i { display: block; height: 2px; background: var(--border-strong); border-radius: 1px; }
.tpl .swatch .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tpl .swatch .h .lg { color: var(--text); font-weight: 500; font-size: 8px; letter-spacing: 0.04em; }
.tpl .swatch .h .num { color: var(--muted); font-size: 6px; }
.tpl .swatch .grid { display: flex; flex-direction: column; gap: 2px; }
.tpl .swatch .total {
  margin-top: auto; display: flex; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 4px; color: var(--text); font-weight: 500; font-size: 7px;
}
.tpl .meta { display: flex; justify-content: space-between; align-items: baseline; }
.tpl .meta .n { font-size: 12px; color: var(--text); font-weight: 500; letter-spacing: -0.005em; }
.tpl .meta .x { font-size: 10px; color: var(--muted); }
/* style variants */
.tpl.modern .swatch .h .lg { letter-spacing: -0.01em; }
.tpl.classic .swatch { text-align: center; }
.tpl.classic .swatch .h { flex-direction: column; align-items: center; gap: 2px; }
.tpl.classic .swatch .h::after { content: ""; width: 60%; height: 1px; background: var(--border-strong); margin-top: 4px; }
.tpl.minimal .swatch i { background: var(--border); }
.tpl.minimal .swatch .total { border-top: none; }
.tpl.compact .swatch .grid { gap: 1px; }
.tpl.compact .swatch i { height: 1.5px; }
.tpl.elegant .swatch { padding: 14px 12px; gap: 7px; }
.tpl.elegant .swatch .h .lg { letter-spacing: 0.08em; text-transform: uppercase; }
.tpl.elegant .swatch i:nth-child(odd) { background: var(--border); }

/* ─── 06 Locales ─────────────────────────────────────────────────────────────── */
.locales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 720px) { .locales { grid-template-columns: 1fr; } }
.loc {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.loc-mini {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.loc-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.loc-head .loc-c { font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.loc-head .loc-flag { font-size: 18px; color: var(--accent); font-weight: 500; }
.loc-rows { display: flex; justify-content: space-between; font-size: 11px; color: var(--text); padding: 2px 0; }
.loc-rows span:last-child { color: var(--muted); }
.loc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.loc-total span:first-child { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.loc-total span:last-child { font-size: 14px; color: var(--accent); font-weight: 500; }
.loc-cap { font-size: 11.5px; color: var(--muted); text-align: center; font-family: var(--font-mono); letter-spacing: 0.02em; }
.loc-cap b { color: var(--text); font-weight: 500; }
.loc-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 22px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono);
}
.loc-strip .lts {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  padding-right: 6px; border-right: 1px solid var(--border); margin-right: 6px;
}
.loc-strip .ltc {
  font-size: 11px; color: var(--text); padding: 3px 8px; border-radius: 100px;
  background: var(--soft); border: 1px solid var(--border); letter-spacing: 0.04em;
}
.loc-strip .lt-more { background: transparent; color: var(--muted); border-style: dashed; }

/* ─── 07 Inside / surfaces ───────────────────────────────────────────────────── */
.surfaces { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .surfaces { grid-template-columns: 1fr; } }
.surface { display: flex; flex-direction: column; gap: 16px; }
.surface-mock {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; min-height: 280px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.surface-mock--phone { background: var(--bg-2); padding: 30px 20px; align-items: center; justify-content: center; }
.mock-head {
  background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.mock-title { font-size: 12px; color: var(--text); font-weight: 500; }
.mock-sub { font-size: 11px; color: var(--muted); }
.mock-body { padding: 12px 18px; flex: 1; }
.mock-body--split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; padding: 0; }
@media (max-width: 560px) { .mock-body--split { grid-template-columns: 1fr; } }
.split-col { padding: 14px 18px; }
.split-col + .split-col { border-left: 1px solid var(--border); }
@media (max-width: 560px) { .split-col + .split-col { border-left: none; border-top: 1px solid var(--border); } }
.split-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.surface-cap h4 { font-size: 14px; color: var(--text); font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.surface-cap p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; text-wrap: pretty; }

/* History list */
.hist { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); }
.hist li {
  display: grid; grid-template-columns: 54px 60px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 11.5px;
}
.hist li:last-child { border-bottom: none; }
.hist .st { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 6px; border-radius: 100px; text-align: center; font-weight: 500; line-height: 1; }
.hist .st-paid { background: color-mix(in oklab, var(--accent) 16%, var(--soft)); color: var(--accent); }
.hist .st-viewed { background: var(--soft); color: var(--text); }
.hist .st-sent { background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); }
.hist .st-draft { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); }
.hist .no { color: var(--muted); }
.hist .who { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist .col-right { text-align: right; display: flex; flex-direction: column; gap: 1px; align-items: flex-end; }
.hist .amt { color: var(--text); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.hist .when { color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.hist .is-current { background: var(--soft); margin: 0 -18px; padding: 9px 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Activity timeline */
.activity { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.activity::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.activity .ev { position: relative; padding: 0 0 14px 26px; }
.activity .ev:last-child { padding-bottom: 0; }
.activity .ev::before { content: ""; position: absolute; left: 4px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--subtle); }
.activity .ev.paid::before { background: var(--accent); border-color: var(--accent); }
.activity .ev.view::before { border-color: var(--text); }
.activity .ev.send::before { background: var(--text); border-color: var(--text); }
.activity .ev-when { display: block; font-size: 10px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; margin-bottom: 1px; font-family: var(--font-mono); }
.activity .ev-title { display: block; font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: -0.005em; }
.activity .ev-sub { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 1px; }

/* Senders & clients */
.sav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sav li { display: flex; align-items: center; padding: 8px 9px; border-radius: 7px; font-size: 12.5px; color: var(--text); gap: 10px; min-height: 32px; }
.sav li.is-default { background: var(--soft); }
.sav li .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.sav li .dot--alt { background: var(--subtle); }
.sav li .initial { width: 22px; height: 22px; border-radius: 50%; background: var(--soft); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--text); font-weight: 500; flex-shrink: 0; font-family: var(--font-mono); }
.sav li .lbl { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sav li .sbadge { margin-left: auto; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 2px 7px; border-radius: 100px; flex-shrink: 0; }
.sav li .smuted { margin-left: auto; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.sav li.add { color: var(--muted); border: 1px dashed var(--border-strong); background: transparent; justify-content: center; font-size: 11.5px; margin-top: 4px; }

/* Expiry control surface */
.exp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); }
.exp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 11.5px; color: var(--text); min-height: 32px; }
.exp-list li.is-on { background: var(--soft); }
.exp-list .rd { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--subtle); background: var(--bg); flex-shrink: 0; position: relative; }
.exp-list .is-on .rd { border-color: var(--accent); }
.exp-list .is-on .rd::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); }
.exp-list .lbl { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.exp-list .exp-meta { margin-left: auto; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0; }
.exp-list .exp-input { margin-left: auto; font-size: 10.5px; color: var(--text); background: var(--input); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-family: var(--font-mono); flex-shrink: 0; }
.exp-status { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-2); font-size: 11px; font-family: var(--font-mono); }
.exp-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.exp-status .t { color: var(--text); }
.exp-status .t b { font-weight: 500; }
.exp-status .t-muted { margin-left: auto; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

/* OG link-preview surface */
.og-card { display: grid; grid-template-columns: 88px 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); margin-bottom: 14px; font-family: var(--font-mono); }
.og-thumb { background: var(--bg-2); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; justify-content: center; min-height: 76px; }
.og-thumb .og-tag { font-size: 8px; letter-spacing: 0.16em; color: var(--accent); font-weight: 600; }
.og-thumb .og-num { font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.og-thumb .og-amt { font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.og-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; justify-content: center; min-width: 0; }
.og-meta .og-ti { font-size: 11.5px; font-weight: 500; color: var(--text); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-meta .og-ds { font-size: 10.5px; color: var(--muted); }
.og-meta .og-ds b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.og-meta .og-dom { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1px; }
.og-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-2); }
.og-toggle-lbl { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.og-toggle-lbl .tl-t { font-size: 12px; color: var(--text); font-weight: 500; letter-spacing: -0.005em; }
.og-toggle-lbl .tl-s { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }
.og-switch { width: 28px; height: 16px; border-radius: 100px; background: var(--subtle); position: relative; flex-shrink: 0; transition: background 0.15s ease; }
.og-switch i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,0.15); transition: left 0.15s ease; }
.og-switch.is-on { background: var(--accent); }
.og-switch.is-on i { left: 14px; }
.og-diff { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; padding: 0 2px; }
.og-diff .d-row { display: inline-flex; align-items: baseline; gap: 2px; }
.og-diff .d-old { color: var(--muted); }
.og-diff .d-old s { color: var(--muted); }
.og-diff .d-new { color: var(--text); font-weight: 500; }

/* Recipient phone view (Inside) */
.phone-recipient { width: 240px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; font-family: var(--font-mono); }
.pr-status { display: flex; justify-content: space-between; font-size: 9.5px; padding: 10px 16px 4px; color: var(--muted); letter-spacing: 0.02em; }
.pr-status .pr-icons { letter-spacing: -1px; font-size: 7px; color: var(--text); }
.pr-chrome { font-size: 9.5px; color: var(--muted); background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5px 16px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-chrome .lock { font-size: 9px; }
.pr-doc { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.pr-doc-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--border); gap: 8px; }
.pr-from { font-size: 10.5px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; text-transform: uppercase; max-width: 14ch; line-height: 1.2; }
.pr-label { font-size: 8.5px; color: var(--muted); text-align: right; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }
.pr-rows { display: flex; flex-direction: column; gap: 4px; }
.pr-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--text); }
.pr-row span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-total { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); }
.pr-total span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.pr-due { font-size: 8.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; text-align: right; }
.pr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.pr-btn { border: none; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 8px 0; font-size: 10.5px; font-family: var(--font-sans); cursor: pointer; font-weight: 500; }
.pr-btn--ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); }

/* ─── 08 Recipient walkthrough ───────────────────────────────────────────────── */
.recip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .recip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recip { grid-template-columns: 1fr; } }
.recip li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.r-num { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.r-mock { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; min-height: 140px; padding: 18px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.r-cap h5 { font-size: 13.5px; color: var(--text); margin: 0 0 3px; letter-spacing: -0.01em; font-weight: 500; }
.r-cap p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; text-wrap: pretty; }
.r-bub { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px 12px; width: 100%; max-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.r-b-ti { font-size: 11px; color: var(--text); font-weight: 500; letter-spacing: -0.005em; }
.r-b-ds { font-size: 9.5px; color: var(--muted); }
.r-b-amt { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.r-doc { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 12px; width: 100%; max-width: 170px; display: flex; flex-direction: column; gap: 6px; position: relative; box-shadow: var(--shadow-sm); }
.r-d-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.r-d-tag { font-size: 9.5px; letter-spacing: 0.14em; color: var(--accent); font-weight: 600; }
.r-d-no { font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.r-d-i { display: flex; flex-direction: column; gap: 3px; }
.r-d-i i { display: block; height: 3px; background: var(--border); border-radius: 1.5px; }
.r-d-i i:nth-child(1) { width: 82%; }
.r-d-i i:nth-child(2) { width: 60%; }
.r-d-i i:nth-child(3) { width: 70%; }
.r-d-t { font-size: 14px; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; padding-top: 4px; border-top: 1px solid var(--border); }
.r-doc.r-done .r-d-tag { color: var(--accent); }
.r-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-family: var(--font-mono); font-weight: 600; font-size: 16px; letter-spacing: 0.18em; color: var(--accent); border: 2px solid var(--accent); padding: 2px 7px; border-radius: 4px; opacity: 0.92; background: color-mix(in oklab, var(--bg) 70%, transparent); }
.r-pay { display: flex; flex-direction: column; gap: 8px; align-items: stretch; width: 100%; max-width: 170px; }
.r-btn { background: var(--accent); color: var(--on-accent); border: none; border-radius: 7px; padding: 9px 12px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: default; }
.r-btn--ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); }
.r-or { font-size: 10px; color: var(--muted); text-align: center; font-family: var(--font-mono); }

/* ─── 09 Workshop (ported from design reference) ─────────────────────────────── */
.workshop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .workshop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .workshop { grid-template-columns: 1fr; } }

.wk {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 360px;
}
.wk-mock {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  min-height: 180px;
  padding: 22px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.wk-foot {
  padding: 18px 22px 22px;
  display: flex; flex-direction: column;
  gap: 6px;
  flex: 1;
}
.wk-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
  width: max-content;
}
.wk-tag .d {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.wk-tag--later .d { background: var(--subtle); }
.wk-tag--maybe .d {
  background: transparent;
  border: 1px solid var(--subtle);
  width: 5px; height: 5px;
}
.wk-tag--you .d { background: var(--text); }

.wk-foot h4 {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}
.wk-foot p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}

/* --- Reminders mock --- */
.rm-card {
  width: 100%;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.rm-card .rm-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rm-card .rm-ico svg { width: 11px; height: 11px; }
.rm-card .rm-t {
  font-size: 11.5px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.rm-card .rm-s {
  font-size: 10px;
  color: var(--muted);
}
.rm-card .rm-when {
  font-size: 9.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.rm-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: 260px;
  font-family: var(--font-mono);
}
.rm-rules .rule {
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
  letter-spacing: 0.02em;
}
.rm-rules .rule.on {
  color: var(--text);
  background: var(--soft);
  border-color: var(--border-strong);
}

/* mock parent flex column for reminders */
.wk-mock:has(.rm-card) {
  flex-direction: column;
  gap: 0;
  padding: 26px 18px;
}

/* --- Convert to receipt mock --- */
.rc-flip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 320px;
}
.rc-doc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  min-height: 110px;
}
.rc-doc.rc-inv { transform: rotate(-2deg); }
.rc-doc.rc-rct { transform: rotate(2deg); }
.rc-doc .rc-h {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.rc-doc .rc-i { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.rc-doc .rc-i i {
  display: block;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}
.rc-doc .rc-i i:nth-child(1) { width: 82%; }
.rc-doc .rc-i i:nth-child(2) { width: 64%; }
.rc-doc .rc-i i:nth-child(3) { width: 76%; }
.rc-doc .rc-t {
  margin-top: auto;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.rc-doc .rc-sub {
  font-size: 8.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -2px;
}
.rc-stamp {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.88;
}
.rc-arrow {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-arrow svg { width: 18px; height: 18px; }

/* --- Pay buttons + QR mock --- */
.pay-mock {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.pay-total .l {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pay-total .v {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pay-row {
  display: flex;
  gap: 8px;
}
.pay-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: default;
  text-align: left;
  line-height: 1;
}
.pay-btn .k {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.pay-btn--brand { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pay-btn--brand .k {
  background: color-mix(in oklab, var(--on-accent) 18%, transparent);
  color: var(--on-accent);
}
.pay-btn--brand2 .k { background: #5b8def; color: #fff; }
.pay-qr {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 4px;
  flex-shrink: 0;
}
.pay-qr svg { width: 100%; height: 100%; display: block; }

/* --- Saved line items mock --- */
.kit {
  width: 100%;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-family: var(--font-mono);
}
.kit-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-2);
}
.kit-h .kit-ct {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 9px;
}
.kit-list {
  list-style: none; margin: 0; padding: 4px 4px;
  display: flex; flex-direction: column; gap: 1px;
}
.kit-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  color: var(--text);
  align-items: center;
}
.kit-list li.hover { background: var(--soft); }
.kit-list .nm {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.kit-list .px {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.kit-list .star {
  color: var(--accent);
  font-size: 10px;
}
.kit-add {
  padding: 7px 11px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  background: var(--bg-2);
  text-align: center;
  letter-spacing: 0.02em;
}

/* --- Threaded notes mock --- */
.thread {
  width: 100%;
  max-width: 250px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 11px 8px;
  display: flex; flex-direction: column;
  gap: 7px;
  box-shadow: var(--shadow-sm);
}
.th-head {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.th-head .th-dot { color: var(--subtle); }
.th-msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.th-msg.th-them .av {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 9px;
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.th-msg .bub {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 9px 9px 9px 3px;
  padding: 6px 9px;
  font-size: 10.5px;
  color: var(--text);
  max-width: 86%;
  line-height: 1.35;
}
.th-msg.th-you { justify-content: flex-end; }
.th-msg.th-you .bub {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  border-radius: 9px 9px 3px 9px;
}
.th-reply {
  margin-top: 2px;
  display: flex; align-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 10px;
  color: var(--muted);
  gap: 6px;
}
.th-reply .th-input { flex: 1; }
.th-reply .th-send {
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
}

/* --- Tell me / ask card --- */
.wk-ask {
  background: var(--soft);
  border-style: dashed;
  border-color: var(--border-strong);
}
.wk-mock--ask {
  background: transparent;
  border-bottom-color: var(--border-strong);
  border-bottom-style: dashed;
}
.ask {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
}
.ask .ask-q {
  font-size: 22px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: "Inter", -apple-system, sans-serif;
}
.ask .ask-arrow {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.ask-mail {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent);
  text-underline-offset: 2px;
}
.ask-mail:hover { text-decoration-color: var(--accent); }

/* ---------- Free vs Account ---------- */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier.tier--account {
  border-color: var(--accent);
  background: var(--bg);
  position: relative;
}
.tier.tier--account::before {
  content: "Coming soon";
  position: absolute;
  top: -10px; right: 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.tier .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.tier .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.tier .price {
  font-size: 14px;
  color: var(--muted);
}
.tier .price b { color: var(--text); font-weight: 500; }
.tier ul {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.tier li {
  font-size: 13px;
  color: var(--text);
  position: relative;
  padding-left: 23px;
  line-height: 1.5;
}
.tier li svg {
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px; height: 13px;
  color: var(--accent);
}
.tier li .dim { color: var(--muted); }
.tier .cta {
  margin-top: auto;
  padding-top: 18px;
}


/* Workshop — new card mocks (late fees, partial payments, public sender) */
.late {
  width: 100%;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}
.late-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.late-pct {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, var(--bg-2));
  padding: 2px 6px;
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.late-row {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  color: var(--text);
  padding: 2px 0;
}
.late-row .v { color: var(--text); }
.late-row.dim .lbl { color: var(--muted); }
.late-row.dim .v { color: var(--accent); }
.late-row.tot {
  font-weight: 500;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.late-row.tot .v { font-size: 12.5px; }

/* Partial payments */
.split {
  width: 100%;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}
.split-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.split-paid {
  display: block;
  height: 100%;
  background: var(--accent);
}
.split-meta {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.split-meta b { color: var(--text); font-weight: 500; }
.split-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.split-r {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--text);
  padding: 2px 0;
}
.split-r .sd {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--subtle);
  background: var(--bg);
  display: inline-block;
}
.split-r .sd.ok { background: var(--accent); border-color: var(--accent); }
.split-r .sd.next { border-color: var(--text); }
.split-r .v { color: var(--muted); }
.split-r .sd.ok ~ .v { color: var(--accent); }

/* Public sender page */
.profile {
  width: 100%;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
}
.pf-url {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 6px 11px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pf-url b { color: var(--text); font-weight: 500; }
.pf-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}
.pf-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.pf-n {
  font-size: 11.5px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.pf-sub {
  font-size: 9.5px;
  color: var(--muted);
}
.pf-list {
  list-style: none; margin: 0; padding: 4px 4px 6px;
  display: flex; flex-direction: column;
  gap: 1px;
}
.pf-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  font-size: 10.5px;
  color: var(--text);
  border-radius: 5px;
}
.pf-list li:hover { background: var(--soft); }
.pf-no {
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pf-lbl { color: var(--text); }
.pf-go {
  color: var(--accent);
  font-size: 12px;
}

/* Workshop mock: flex-direction fixes for new mocks */
.wk-mock:has(.late),
.wk-mock:has(.split),
.wk-mock:has(.profile) {
  align-items: stretch;
  padding: 22px 22px;
}
.wk-mock:has(.late) .late,
.wk-mock:has(.split) .split,
.wk-mock:has(.profile) .profile {
  margin: 0 auto;
}

.surface-cap h4 {
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 500;
}
.surface-cap p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}

/* ─── 10 Plans / 11 Roadmap / 14 FAQ (ported from reference) ─────────────────── */
/* ---------- Free vs Account ---------- */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier.tier--account {
  border-color: var(--accent);
  background: var(--bg);
  position: relative;
}
.tier.tier--account::before {
  content: "Coming soon";
  position: absolute;
  top: -10px; right: 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.tier .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.tier .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.tier .price {
  font-size: 14px;
  color: var(--muted);
}
.tier .price b { color: var(--text); font-weight: 500; }
.tier ul {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.tier li {
  font-size: 13px;
  color: var(--text);
  position: relative;
  padding-left: 23px;
  line-height: 1.5;
}
.tier li svg {
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px; height: 13px;
  color: var(--accent);
}
.tier li .dim { color: var(--muted); }
.tier .cta {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- Roadmap ---------- */
.road {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) { .road { grid-template-columns: 1fr; } }
.road-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
}
.road-col .col-head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.road-col .col-head .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.road-col .col-head .lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.road-col .col-head .ct {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.road-col.later .col-head .dot { background: var(--subtle); }
.road-col.maybe .col-head .dot { background: transparent; border: 1px solid var(--subtle); }
.road-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.road-col li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.road-col li .why {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.road-col.maybe li { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }
.faq .q {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.faq .a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Privacy callout / 12 Lately / 13 Alternatives (ported from reference) ──── */
/* ============================================================
   Privacy callout (inside Plans)
   ============================================================ */
.privacy-cal {
  margin-top: 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: flex-start;
}
.pc-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.pc-icon svg { width: 16px; height: 16px; }
.pc-t {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.pc-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
  max-width: 72ch;
}

/* ============================================================
   Lately (changelog)
   ============================================================ */
.lately-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.lately-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.lately-list li:last-child { border-bottom: none; }
@media (max-width: 560px) {
  .lately-list li { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
}
.lt-when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}
.lt-body { display: flex; flex-direction: column; gap: 3px; }
.lt-tag {
  display: inline-block;
  width: max-content;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border);
  margin-bottom: 3px;
  font-family: var(--font-mono);
}
.lt-tag--feat {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-2));
  border-color: color-mix(in oklab, var(--accent) 25%, var(--border));
}
.lt-tag--fix { color: var(--muted); }
.lt-tag--polish { color: var(--muted); border-style: dashed; }
.lt-tag--lang { color: var(--text); }
.lt-body h5 {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.lt-body p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 60ch;
}

/* ============================================================
   Alternatives (Not for you)
   ============================================================ */
.alts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .alts { grid-template-columns: 1fr; } }
.alt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alt-name {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.alt-when {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.alt p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 6px;
  text-wrap: pretty;
}
.alt-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.alt-go:hover { text-decoration: underline; text-underline-offset: 2px; }
.alt-go span { font-size: 11px; }
.alt-go--plain {
  color: var(--muted);
  font-style: italic;
}
.alt-go--plain:hover { text-decoration: none; }

/* ─── Iter 7 polish: mobile nav, a11y ────────────────────────────────────────── */
.nav-burger { display: none; }
.nav-menu { display: none; }
@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .cta-desktop { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: calc(100% + 6px); right: 20px; left: 20px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 10px; box-shadow: var(--shadow-lg); z-index: 60;
  }
  .nav-menu.open a:not(.btn) {
    padding: 10px 12px; border-radius: 8px; color: var(--text);
    text-decoration: none; font-size: 14px;
  }
  .nav-menu.open a:not(.btn):hover { background: var(--soft); }
  .nav-menu.open .btn { justify-content: center; margin-top: 4px; }
}

/* Skip to content */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: 8px; text-decoration: none; font-size: 13px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* Visible focus ring (keyboard) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .story .f-empty .cur { animation: none; }
}

/* Email-capture error (spans the capture grid) */
.capture-error {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #c0552e;
  margin-top: -36px;
  margin-bottom: 12px;
}
html[data-theme="dark"] .capture-error { color: #e0916e; }
