/* LedgerDesk website. Plain CSS, no build step.
   Fonts are self-hosted subsets (SIL OFL 1.1, licences beside them).
   The rupee sign lives in its own tiny file, fetched only when a page uses it. */

@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-400-normal-rupee.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20B9;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-600-normal-rupee.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+20B9;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-normal-rupee.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+20B9;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f4f5f4;
  --paper-2: #eaecea;
  --sheet: #ffffff;
  --ink: #111413;
  --ink-2: #4b5350;
  --ink-3: #6c7471;
  --rule: #d5d9d6;
  --rule-strong: #b3b9b5;
  --accent: #0b6b4c;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe6;
  --tag: #6a5200;
  --tag-bg: #f6edcf;
  --focus: #0b6b4c;
  --shadow: 0 1px 0 rgba(17, 20, 19, .04), 0 12px 32px -18px rgba(17, 20, 19, .28);

  --f-sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0f0e;
    --paper-2: #151817;
    --sheet: #121514;
    --ink: #e9ecea;
    --ink-2: #a3aba7;
    --ink-3: #828a86;
    --rule: #252a28;
    --rule-strong: #39403d;
    --accent: #6fd8a6;
    --accent-ink: #062016;
    --accent-soft: #14271f;
    --tag: #f0d48a;
    --tag-bg: #2a2412;
    --focus: #6fd8a6;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

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

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--f-serif);
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.012em;
}
.display em, .h2 em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.eyebrow, .mono {
  font-family: var(--f-mono); font-weight: 500;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.num { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--ink-2); }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--paper); }
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid var(--b);
  background: var(--b); color: var(--paper);
  font: 600 1rem/1 var(--f-sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--paper); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-accent { --b: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { margin-bottom: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero .lede { margin: 26px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta-line { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.meta-line span { white-space: nowrap; }
.meta-line a { color: var(--ink-2); }

.stage { position: relative; }
.stage-canvas {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08; max-height: 560px;
}
.stage-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.gst-card {
  position: relative; margin-top: 10px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px 14px;
}
.gst-card .row-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  font: 500 .82rem/1 var(--f-sans); color: var(--ink-2); background: transparent; border: 0;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; min-height: 34px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lines { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 4px; column-gap: 16px; font-size: .95rem; }
.lines dt { color: var(--ink-2); }
.lines dd { margin: 0; text-align: right; }
.lines .tax { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lines .tax[hidden] { display: none; }
.lines .total { border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 4px; color: var(--ink); font-weight: 600; }
.lines dd.total { font-size: 1.15rem; }
.gst-card .note { margin: 10px 0 0; font-size: .8rem; color: var(--ink-3); }
.swap-in { animation: swap .45s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 520px; width: 100%; }
  .stage-canvas { aspect-ratio: 1 / .9; }
}

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 26px 22px 24px 0; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.facts .big { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; display: block; margin-bottom: 8px; color: var(--ink); }
.facts p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 20px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* tags: what is in the download today vs. later */
.tag {
  display: inline-block; vertical-align: .12em; margin-left: 6px;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--tag); background: var(--tag-bg); padding: 5px 7px 4px; border-radius: 4px; white-space: nowrap;
}
.tag-test { color: var(--accent); background: var(--accent-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .9rem; color: var(--ink-2); margin: 0; }
.legend .tag { margin-left: 0; margin-right: 6px; }

/* ---------- feature ledger ---------- */
.ledger { border-top: 1px solid var(--ink); }
.ledger-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding: 30px 0 34px; border-bottom: 1px solid var(--rule); }
.ledger-group > header { position: relative; }
.ledger-group .idx { font-family: var(--f-mono); font-weight: 500; font-size: .8rem; color: var(--ink-3); display: block; margin-bottom: 8px; }
.ledger-group h3 { font-family: var(--f-serif); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.05; }
.ledger-group > header p { margin: 12px 0 0; color: var(--ink-2); font-size: .95rem; max-width: 22em; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.items li { padding-top: 14px; border-top: 1px dotted var(--rule-strong); }
.items h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.items p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.callout { grid-column: 1 / -1; margin: 6px 0 0; padding: 14px 16px; border-left: 2px solid var(--ink); background: var(--paper-2); font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .ledger-group { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .items { grid-template-columns: 1fr; gap: 18px; }
}

/* reveal on scroll: JS adds .pre only to blocks still below the fold, so nothing visible ever blinks */
.reveal.pre { opacity: 0; transform: translateY(14px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; } }

/* ---------- screens ---------- */
.screens-bg { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  font: 500 .95rem/1 var(--f-sans); color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 14px 14px 13px; border-bottom: 2px solid transparent; margin-bottom: 0; min-height: 44px; white-space: nowrap; flex: none;
}
@media (max-width: 480px) { .tabs button { padding: 14px 10px 13px; font-size: .9rem; } }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.frame {
  border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden;
  background: var(--sheet); box-shadow: var(--shadow);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--rule); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); display: block; }
.frame-bar span { margin-left: 10px; font: 500 .72rem/1 var(--f-mono); color: var(--ink-3); letter-spacing: .03em; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.panel[hidden] { display: none; }
.panel img { width: 100%; aspect-ratio: 1600 / 965; object-fit: cover; object-position: top left; }
.panel.swap-in img { animation: swap .45s var(--ease) both; }
.caption { margin: 16px 0 0; font-size: .9rem; color: var(--ink-2); max-width: 60em; }

/* ---------- invoice ---------- */
.invoice-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.paper {
  background: #fff; border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow);
  transform: rotate(-.6deg); transition: transform .6s var(--ease);
}
.paper:hover { transform: rotate(0); }
@media (prefers-reduced-motion: reduce) { .paper, .paper:hover { transform: none; transition: none; } }
.notes { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
.notes li::before { content: counter(n, decimal-leading-zero); font: 500 .8rem/1.9 var(--f-mono); color: var(--ink-3); }
.notes h3 { font-size: 1rem; font-weight: 600; font-family: var(--f-sans); }
.notes p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .invoice-grid { grid-template-columns: 1fr; } .paper { max-width: 560px; } }

/* ---------- offline / backup ---------- */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.three > div { padding: 24px 24px 8px 0; }
.three > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.three .big { font-family: var(--f-mono); font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; display: block; margin-bottom: 10px; }
.three h3 { margin-bottom: 8px; }
.three p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 820px) {
  .three { grid-template-columns: 1fr; }
  .three > div, .three > div + div { padding: 22px 0 6px; border-left: 0; }
  .three > div + div { border-top: 1px solid var(--rule); }
}

/* ---------- phone ---------- */
.phone-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.roadmap { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.roadmap li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.roadmap .state { font: 500 .74rem/1.9 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.roadmap .state.now { color: var(--accent); }
.roadmap h3 { margin-bottom: 4px; }
.roadmap p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .phone-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .roadmap li { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.price-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.price-box > div { padding: clamp(22px, 4vw, 40px); }
.price-box > div + div { border-left: 1px solid var(--rule); }
.price-box .big { font-family: var(--f-serif); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; display: block; margin: 10px 0 14px; }
.price-box ul { margin: 0 0 22px; padding-left: 1.1em; color: var(--ink-2); }
.price-box li { margin-bottom: 6px; }
@media (max-width: 760px) {
  .price-box { grid-template-columns: 1fr; }
  .price-box > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: .92rem; color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot small { display: block; margin-top: 8px; color: var(--ink-3); font-size: .82rem; }

/* ---------- inner pages ---------- */
.page { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.page-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head .lede { margin-top: 18px; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--f-serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; margin: 2.2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 600; font-size: 1.05rem; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose code, .prose kbd { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: .05em .35em; }
.draft {
  border: 1px dashed var(--tag); background: var(--tag-bg); color: var(--tag);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 32px; max-width: 720px;
  font-size: .95rem;
}
.draft strong { font-family: var(--f-mono); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; font-size: .78rem; display: block; margin-bottom: 4px; }

.dl-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--ink); border-radius: var(--radius); background: var(--sheet); max-width: 860px; }
.dl-card h2 { font-family: var(--f-serif); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.05; }
.dl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 14px 0 0; font-size: .95rem; }
.dl-card dt { color: var(--ink-3); }
.dl-card dd { margin: 0; }
@media (max-width: 680px) { .dl-card { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; max-width: 760px; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 3.2rem; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 2rem; height: 2rem; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 500 .85rem/1 var(--f-mono); }
.steps h3 { font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

.mock-dialog {
  margin: 14px 0 4px; max-width: 420px; border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden;
  background: #0b5394; color: #fff; font-family: "Segoe UI", var(--f-sans); font-size: .9rem;
}
.mock-dialog .body { padding: 18px 20px 6px; }
.steps .mock-dialog p { color: #fff; }
.mock-dialog .t { font-size: 1.35rem; font-weight: 300; margin: 0 0 10px; line-height: 1.2; }
.mock-dialog .u { text-decoration: underline; }
.mock-dialog .foot-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; }
.mock-dialog .foot-btns span { border: 1px solid #fff; padding: 6px 18px; font-size: .85rem; }
.mock-dialog .hl { outline: 2px solid #ffd54a; outline-offset: 2px; }

.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .big { font-family: var(--f-mono); font-weight: 500; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; letter-spacing: -.04em; color: var(--ink-3); }

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* small spacing helpers (no inline styles, so the CSP can stay strict) */
.m-0 { margin: 0; }
.mt-6 { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin: 0 0 8px; }
.mb-28 { margin-bottom: 28px; }
.ml-0 { margin-left: 0; }
.pb-0 { padding-bottom: 0; }
.my-lede { margin: 18px 0 28px; }
.foot-name { color: var(--ink); }
