/* ==========================================================================
   Zimpreneur — design system stylesheet
   Ported from the "Zimpreneur Design System" Claude Design project.
   Order mirrors the source: fonts → colors → typography → spacing → effects
   → base elements → components → ui kit layouts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* --- tokens/colors.css --------------------------------------------------- */
:root {
  /* base */
  --ink: #121316; --ink-soft: #5C6166; --paper: #FFFFFF; --paper-soft: #F6F6F3;
  --line: #121316; --line-soft: #E6E6E1;
  /* brand */
  --brand-yellow: #FFDE59; --brand-yellow-deep: #F2C400;
  /* pastels (card fills) */
  --pastel-lavender: #E9E3F9; --pastel-sky: #DCF0FA; --pastel-lime: #F3F8CE;
  --pastel-pink: #F8E3EE; --pastel-gray: #ECECE7;
  /* section band */
  --band-lilac: #E7E2F6;
  /* semantic status (legacy greens kept for money figures) */
  --good: #108A48; --warn: #B98A00;
  /* semantic aliases */
  --surface-page: var(--paper); --surface-card: var(--paper);
  --surface-band: var(--band-lilac); --surface-soft: var(--paper-soft);
  --text-body: var(--ink); --text-muted: var(--ink-soft); --text-on-dark: #FFFFFF;
  --accent: var(--brand-yellow);
  --btn-bg: var(--ink); --btn-fg: #FFFFFF;
  /* category fills */
  --cat-guide: var(--pastel-lavender); --cat-money: var(--pastel-lime);
  --cat-opportunity: var(--pastel-sky); --cat-tools: var(--pastel-gray);
  --cat-software: var(--pastel-pink);

  /* --- tokens/typography.css --- */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --text-hero: clamp(2.6rem, 5.5vw, 3.9rem);
  --text-h2: 2.15rem; --text-h3: 1.3rem; --text-body-size: 1.04rem;
  --text-small: .9rem; --text-tiny: .78rem;
  --track-tight: -0.03em; --track-caps: .12em;
  --leading-tight: 1.1; --leading-body: 1.65;

  /* --- tokens/spacing.css --- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --radius-card: 14px; --radius-btn: 8px; --radius-pill: 999px; --radius-tile: 20px;
  --wrap-max: 1280px; --narrow-max: 700px;

  /* --- tokens/effects.css --- */
  --border-card: 1px solid var(--ink);
  --border-soft: 1px solid var(--line-soft);
  --shadow-card: 0 1px 2px rgba(18,19,22,.05), 0 8px 24px rgba(18,19,22,.06);
  --hover-lift: translateY(-2px);
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur: .15s;
}

/* --- tokens/base.css ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--surface-page); color: var(--text-body);
  font-family: var(--font-body); line-height: var(--leading-body);
  margin: 0; font-size: var(--text-body-size);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-yellow-deep);
  text-decoration-thickness: 2px;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display); letter-spacing: var(--track-tight);
  text-wrap: balance; line-height: var(--leading-tight);
}
h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 600; }
h3 { font-size: var(--text-h3); font-weight: 600; }

.eyebrow {
  font-family: var(--font-display); font-size: var(--text-tiny);
  letter-spacing: var(--track-caps); text-transform: uppercase;
  font-weight: 600; color: var(--ink);
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.star { color: var(--brand-yellow-deep); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }
.ok { font-weight: 600; color: var(--good); }
.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;
}

/* --- layout -------------------------------------------------------------- */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 24px 72px; }
.narrow { max-width: var(--narrow-max); }
.hero-section { padding: 56px 0 12px; }
.page-head { padding: 48px 0 8px; }
.section { margin: 56px 0; }
.section-tight { margin: 48px 0; }

/* --- navigation/Wordmark ------------------------------------------------- */
/* The real brand lockup, per the design system. Height is the control; width
   follows the 4.72:1 artwork so nothing reflows while the image loads. */
.wordmark { display: inline-block; line-height: 0; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark img { height: 2.32rem; width: auto; display: block; }

/* --- navigation/NavTabs -------------------------------------------------- */
.mast {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.tabs a {
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--ink-soft); background: none; text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.tabs a:hover { background: var(--paper-soft); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--brand-yellow); }

/* --- navigation/Footer --------------------------------------------------- */
.ft {
  margin-top: 72px; border-top: 1px solid var(--line-soft); padding-top: 20px;
  font-size: .82rem; color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* --- actions/Button ------------------------------------------------------ */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-btn); padding: 12px 24px; cursor: pointer;
  border: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--dur) var(--ease), transform .1s;
  line-height: 1.2; background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none;
}
.btn:hover { background: #2A2C30; color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.sm { padding: 8px 16px; font-size: .85rem; }
.btn.yellow { background: var(--brand-yellow); color: var(--ink); }
.btn.yellow:hover { background: var(--brand-yellow-deep); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--paper-soft); color: var(--ink); }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* arrow in a bordered circle — the system's stand-in for an icon set */
.arrow-circle {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  font-size: .8rem; vertical-align: middle;
}

/* --- actions/SegmentedToggle --------------------------------------------- */
.segmented {
  display: inline-flex; border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill); background: var(--paper-soft);
  padding: 4px; flex-wrap: wrap;
}
.segmented a, .segmented button {
  font-family: var(--font-display); font-size: .88rem; font-weight: 600;
  border: none; cursor: pointer; padding: 9px 18px;
  border-radius: var(--radius-pill); background: none; color: var(--ink-soft);
  text-decoration: none;
}
.segmented a:hover, .segmented button:hover { text-decoration: none; }
.segmented [aria-pressed="true"], .segmented [aria-current="page"] {
  background: var(--ink); color: #fff;
}

/* --- display/Chip -------------------------------------------------------- */
.chip {
  display: inline-block; font-family: var(--font-display); font-size: .72rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--brand-yellow);
  border: 1px solid transparent; padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.chip.outline { background: transparent; border-color: var(--ink); }
.chip.neutral { background: var(--paper-soft); }
.chip.guide { background: var(--cat-guide); }
.chip.money { background: var(--cat-money); }
.chip.opportunity { background: var(--cat-opportunity); }
.chip.tools { background: var(--cat-tools); }
.chip.software { background: var(--cat-software); }

/* --- display/Card -------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.card {
  border: var(--border-card); border-radius: var(--radius-card);
  overflow: hidden; background: var(--surface-card);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease);
}
.card:hover { transform: var(--hover-lift); }
.card .cover { height: 170px; position: relative; background: var(--cat-guide); }
.card .cover.guide { background: var(--cat-guide); }
.card .cover.money { background: var(--cat-money); }
.card .cover.opportunity { background: var(--cat-opportunity); }
.card .cover.tools { background: var(--cat-tools); }
.card .cover.software { background: var(--cat-software); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card .cover .chip { position: absolute; left: 16px; bottom: 12px; }
.card .body {
  padding: 18px 20px 20px; display: flex; flex-direction: column;
  gap: 8px; flex: 1;
}
.card .body h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.card .body p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.card .meta { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--ink-soft); }

/* StatCard */
.stat {
  border: var(--border-card); border-radius: var(--radius-card);
  padding: 20px 22px; background: var(--pastel-lavender);
}
.stat.lavender { background: var(--pastel-lavender); }
.stat.lime { background: var(--pastel-lime); }
.stat.sky { background: var(--pastel-sky); }
.stat.pink { background: var(--pastel-pink); }
.stat .label { font-family: var(--font-display); font-size: .85rem; font-weight: 500; }
.stat .value {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  letter-spacing: var(--track-tight); margin: 4px 0;
}
.stat p { margin: 0; font-size: .82rem; color: var(--ink-soft); }

/* pastel feature tile — home value props, systems teasers, tool cards */
.tile {
  border: 1px solid var(--ink); border-radius: var(--radius-card);
  padding: 22px 24px; background: var(--paper-soft);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease);
}
a.tile:hover, .tile.linked:hover { transform: var(--hover-lift); text-decoration: none; }
.tile.guide { background: var(--cat-guide); }
.tile.money { background: var(--cat-money); }
.tile.opportunity { background: var(--cat-opportunity); }
.tile.tools { background: var(--cat-tools); }
.tile.software { background: var(--cat-software); }
.tile .kicker {
  font-family: var(--font-display); font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.tile .statement {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 1.05rem; line-height: 1.45;
}
.tile h3 { margin: 0 0 8px; }
.tile p { margin: 0 0 14px; font-size: .94rem; color: var(--ink-soft); }
.tile .more {
  margin-top: auto; padding-top: 8px; font-family: var(--font-display);
  font-size: .85rem; font-weight: 600;
}
.tile.dim { opacity: .65; }

/* --- display/Shelf ------------------------------------------------------- */
.shelf {
  border: var(--border-card); border-radius: var(--radius-card);
  background: var(--surface-card); padding: 20px 22px;
}
.shelf h3 {
  margin: 0 0 10px; font-size: .8rem; letter-spacing: var(--track-caps);
  text-transform: uppercase; font-family: var(--font-display); font-weight: 600;
}
.shelf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shelf a { font-size: .94rem; line-height: 1.45; }
.shelf .soon { font-size: .8rem; color: var(--ink-soft); }

/* --- display/Callout ----------------------------------------------------- */
.callout {
  border: 1px solid var(--line-soft); border-left: 4px solid var(--brand-yellow-deep);
  border-radius: 8px; background: var(--paper-soft); padding: 16px 20px;
}
.callout.good { border-left-color: var(--good); }
.callout .t {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-yellow-deep);
  margin-bottom: 6px; font-family: var(--font-display);
}
.callout.good .t { color: var(--good); }
.callout p { margin: 0; }

/* --- display/Band -------------------------------------------------------- */
.band {
  background: var(--band-lilac); border-radius: var(--radius-tile);
  padding: 32px 34px; margin: 44px 0;
}
.band.soft { background: var(--paper-soft); border: 1px solid var(--line-soft); }
.band.yellow { background: var(--brand-yellow); border: 1px solid var(--ink); }
.band.tile-pad { padding: 40px 40px 44px; }
.band h2 { margin: 12px 0 20px; }

/* two-column yellow marketplace band on the home page */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.top { align-items: start; }

/* --- contact channels ---------------------------------------------------- */
.channels { display: grid; gap: 16px; }
.channel {
  border: 1px solid var(--ink); border-radius: var(--radius-card); padding: 20px 24px;
}
.channel h3 { margin: 0 0 6px; }
.channel p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.channel .value {
  margin: 10px 0 0; font-family: var(--font-mono); font-weight: 600; color: var(--ink);
}

/* --- content/LedgerTable ------------------------------------------------- */
.ledger-scroll { overflow-x: auto; }
.ledger-scroll table, table.ledger {
  width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 440px;
}
.ledger-scroll caption, table.ledger caption {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  text-align: left; color: var(--ink-soft); padding-bottom: 8px; font-weight: 600;
}
.ledger-scroll th, table.ledger th {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  text-align: left; color: var(--ink-soft); font-weight: 700;
  padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
}
.ledger-scroll td, table.ledger td {
  padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.ledger-scroll td.n, table.ledger td.n {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ledger-scroll tr.total td, table.ledger tr.total td {
  border-top: 2px solid var(--ink); border-bottom: none; font-weight: 700;
}
.ledger-scroll tr.total td + td, table.ledger tr.total td + td {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* --- content/Steps ------------------------------------------------------- */
.steps {
  list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px;
  max-width: var(--narrow-max); counter-reset: step;
}
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps .n {
  font-weight: 700; color: #fff; background: var(--ink);
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  display: grid; place-items: center; font-size: .85rem;
  font-family: var(--font-display);
}
.steps h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* --- content/Faq --------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; font-family: var(--font-display);
}
.faq p { color: var(--ink-soft); font-size: .95rem; }

/* --- content/Calculator -------------------------------------------------- */
.calc {
  border: var(--border-card); border-radius: var(--radius-card);
  background: var(--surface-card); box-shadow: var(--shadow-card);
  padding: 24px 26px; max-width: 540px;
}
.calc h3 { margin: 0 0 2px; font-size: 1.2rem; }
.calc .sub { font-size: .8rem; color: var(--ink-soft); margin-bottom: 16px; }
.calc label {
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  display: grid; grid-template-columns: 1fr 120px; align-items: center;
  gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.calc input {
  font-family: var(--font-mono); font-size: .95rem; text-align: right;
  padding: 8px 12px; border: 1px solid var(--line-soft);
  background: var(--paper-soft); color: var(--ink);
  border-radius: 8px; width: 120px;
}
.calc input:focus { border-color: var(--ink); }
.calc .out {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 18px; gap: 10px;
}
.calc .out + .out { margin-top: 4px; }
.calc .out .k {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.calc .out .v {
  font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--good);
}
.calc .out + .out .v { font-size: 1.1rem; }
.calc .out .v.neg { color: var(--warn); }
.calc .fine { font-size: .74rem; color: var(--ink-soft); margin: 12px 0 0; }

/* --- forms/Field & NewsletterForm ---------------------------------------- */
.field {
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  display: grid; gap: 6px; font-family: var(--font-display);
}
.field input, .field textarea, .field select {
  font: inherit; font-family: var(--font-body); font-weight: 400;
  padding: 11px 14px; border: 1px solid var(--line-soft);
  background: var(--surface-card); color: var(--ink); border-radius: 8px;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.form-stack { display: grid; gap: 14px; max-width: 460px; }

.newsletter { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.newsletter input {
  font: inherit; padding: 12px 16px; border: 1px solid var(--line-soft);
  background: var(--surface-card); color: var(--ink);
  border-radius: var(--radius-btn); flex: 1; min-width: 220px;
}
.newsletter input:focus { border-color: var(--ink); }

/* --- marketplace/Deal ---------------------------------------------------- */
.deals { display: grid; gap: 18px; margin: 14px 0; }
.deal {
  border: var(--border-card); border-radius: var(--radius-card);
  background: var(--surface-card); box-shadow: var(--shadow-card);
  padding: 20px 24px;
}
.deal .head {
  display: flex; justify-content: space-between; gap: 10px;
  align-items: baseline; flex-wrap: wrap;
}
.deal .head h3 { margin: 0; font-size: 1.12rem; }
.deal .kind {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill);
  white-space: nowrap; font-family: var(--font-display);
  color: var(--ink); background: var(--pastel-sky);
}
.deal .kind.sale { background: var(--pastel-lime); }
.deal .loc {
  font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft);
  margin: 4px 0 12px; text-transform: uppercase;
}
.deal .figs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px;
}
.deal .figs .v {
  font-family: var(--font-mono); font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: 1.1rem;
}
.deal .figs .k {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.deal .vetted {
  font-size: .74rem; font-weight: 600; color: var(--good); margin-top: 12px;
  text-transform: uppercase; letter-spacing: .04em;
}

/* --- marketplace/Stage --------------------------------------------------- */
.road { display: grid; gap: 20px; margin: 32px 0; }
.stage {
  border: var(--border-card); border-radius: var(--radius-card);
  background: var(--surface-card); box-shadow: var(--shadow-card);
  padding: 22px 24px; display: grid; grid-template-columns: 86px 1fr; gap: 18px;
}
.stage .ph {
  font-size: .72rem; font-weight: 800; letter-spacing: var(--track-caps);
  text-transform: uppercase; padding-top: 4px; font-family: var(--font-display);
}
.stage h3 { margin: 0 0 4px; font-size: 1.1rem; }
.stage .tag {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-yellow-deep); font-weight: 700;
}
.stage p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* --- systems ------------------------------------------------------------- */
.systems { display: grid; gap: 32px; margin: 36px 0; }
.system {
  border: 1px solid var(--ink); border-radius: var(--radius-tile);
  padding: 36px 40px; display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: center; background: var(--paper-soft);
}
/* every other system puts the video first, as in the design */
.system:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.system.guide { background: var(--cat-guide); }
.system.money { background: var(--cat-money); }
.system.opportunity { background: var(--cat-opportunity); }
.system.tools { background: var(--cat-tools); }
.system.software { background: var(--cat-software); }
.system h2 { margin: 0 0 10px; }
.system .copy > p { margin: 0 0 16px; color: var(--ink-soft); }
.system ul {
  margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px;
}
.system ul li { font-size: .94rem; display: flex; gap: 10px; align-items: baseline; }
.system ul li .tick { font-weight: 700; }
.system .media { min-width: 0; }
.system iframe {
  width: 100%; aspect-ratio: 16/9; border: 1px solid var(--ink);
  border-radius: var(--radius-card); display: block;
}
.video-slot {
  aspect-ratio: 16/9; border: 1px solid var(--ink); border-radius: var(--radius-card);
  background: var(--paper); display: grid; place-items: center; text-align: center;
}
.video-slot .play {
  width: 56px; height: 56px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  margin: 0 auto 10px; font-size: 1.1rem;
}
.video-slot .t { font-family: var(--font-display); font-size: .85rem; font-weight: 600; }
.video-slot .s { font-size: .8rem; color: var(--ink-soft); }

/* --- article ------------------------------------------------------------- */
.article-layout {
  display: grid; grid-template-columns: 200px minmax(0, 680px);
  gap: 56px; justify-content: center; padding: 48px 0;
}
.toc { position: sticky; top: 24px; align-self: start; padding-top: 120px; }
.toc a {
  display: block; padding: 7px 0 7px 14px; font-size: .88rem;
  font-family: var(--font-display); border-left: 2px solid var(--line-soft);
  color: var(--ink-soft); text-decoration: none;
}
.toc a:hover { text-decoration: none; color: var(--ink); }
.toc a.active { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }

.article h1 { margin: 0 0 10px; font-size: 2.6rem; }
.article .chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.byline .avatar {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--pastel-lavender); border: 1px solid var(--ink);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: .85rem; flex-shrink: 0; overflow: hidden;
}
.byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline .who { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.byline .who span { font-weight: 400; color: var(--ink-soft); }
.byline .when { font-size: .8rem; color: var(--ink-soft); }
.feature-image {
  height: 280px; border: 1px solid var(--ink); border-radius: var(--radius-card);
  margin-bottom: 24px; overflow: hidden; position: relative;
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.08rem; line-height: 1.75; margin: 24px 0; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-yellow);
  color: var(--ink-soft);
}
.prose > * + .calc, .prose > * + .faq, .prose > * + .steps { margin-top: 24px; }

/* --- misc ---------------------------------------------------------------- */
.count { font-size: .78rem; color: var(--ink-soft); margin: 10px 0 4px; }
.empty { color: var(--ink-soft); margin: 20px 0; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; padding-top: 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { border-left: none; border-bottom: 2px solid var(--line-soft); padding: 6px 10px; }
  .toc a.active { border-bottom-color: var(--ink); }
  .split, .split.reverse, .system { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .system .media { order: 2; }
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px 48px; }
  .wordmark img { height: 1.9rem; }
  .band, .band.tile-pad { padding: 26px 22px; }
  .system { padding: 26px 22px; }
  .article h1 { font-size: 2rem; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .calc label { grid-template-columns: 1fr 96px; }
  .calc input { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover, a.tile:hover, .tile.linked:hover { transform: none; }
}

@media print {
  .mast, .ft, .toc, .btn { display: none; }
}
