/* ============================================================
   echohive — "The Open Ledger" homepage concept (Fable)
   Self-contained design system. No web fonts, no build step.
   Type: system serif for display, system sans for text,
         system mono for dates/durations/access labels.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper: #f5f2eb;
  --paper-2: #ebe7dc;
  --card: rgba(255, 253, 248, .72);
  --ink: #16171a;
  --ink-2: #2c2e34;
  --muted: #575b63;
  --rule: #d8d2c4;
  --rule-2: #bfb8a7;
  --accent: #1e40af;

  --ai: #1e40af;
  --mk: #a15c00;
  --mi: #2f6b4f;

  --dark: #14151a;
  --dark-2: #1c1e25;
  --dark-rule: rgba(255, 255, 255, .16);
  --dark-muted: #b9bdc7;

  --serif: "Iowan Old Style", Charter, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --head-h: 72px;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 6px;
}
html.is-compact { --head-h: 56px; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; }
img, video { display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sec-dark :focus-visible { outline-color: #fff; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 12px 16px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- shared text styles ---------- */
.meta {
  font: 500 13px/1.5 var(--mono);
  letter-spacing: .01em;
  color: var(--muted);
}
.fine {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 72ch;
}
.sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 36px;
}
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font: 600 13px/1.6 var(--sans);
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.tag-free { background: var(--ink); color: var(--paper); }
.tag-mem { border: 1px solid var(--rule-2); color: var(--ink); }
.swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--ink);
  flex: none;
}
.swatch.ai { background: var(--ai); }
.swatch.mk { background: var(--mk); }
.swatch.mi { background: var(--mi); }

.text-link {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.text-link:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 15px/1.25 var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-meta {
  font: 500 13px/1 var(--mono);
  opacity: .8;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
}
.btn-ghost .btn-meta { background: var(--paper-2); }
.btn-ghost:hover .btn-meta { background: rgba(255, 255, 255, .14); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 235, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--head-h);
  transition: height .25s ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font: 500 23px/1 var(--serif);
  letter-spacing: -.01em;
  transition: font-size .25s ease;
}
.brand-mark { color: var(--ink); flex: none; }
.is-compact .brand { font-size: 20px; }

.ledger-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.ledger-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font: 500 15px/1 var(--sans);
  border-radius: 4px;
  position: relative;
}
.ledger-nav a:hover { color: var(--accent); }
.ledger-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 8px;
  height: 2px;
  background: var(--ink);
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.btn-head { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: transparent;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 92px) 0 clamp(36px, 5vw, 64px);
  background-image: radial-gradient(rgba(22, 23, 26, .11) 1px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: center top;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 500 14px/1.4 var(--sans);
  color: var(--muted);
  letter-spacing: .01em;
}
.kicker-tag {
  font: 600 13px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--ink);
  padding: 5px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--paper);
}
h1 {
  font: 400 clamp(38px, 5.4vw, 70px)/1.02 var(--serif);
  letter-spacing: -.022em;
  margin: 18px 0 22px;
  max-width: 16ch;
}
h1 em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 28px;
}
.hero .cta-row { margin-bottom: 22px; }
.trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 14px;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; }
.trust li + li::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rule-2);
  margin: 0 12px;
}

.hero-media {
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 24px 48px -30px rgba(22, 23, 26, .35);
}
.media-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.media-title { font: 600 14px/1.5 var(--sans); color: var(--ink); }
.hero-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.sample-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease;
}
.sample-row:hover { background: var(--paper-2); }
.sample-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sample-copy strong { font: 600 17px/1.3 var(--sans); }
.sample-go {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 18px;
  flex: none;
}
.sample-row:hover .sample-go { background: var(--ink); color: var(--paper); }

/* ---------- doors ---------- */
.doors-wrap { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doors a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "sw title arrow" "sw sub arrow";
  column-gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 16px 20px 16px 0;
  color: var(--ink);
  text-decoration: none;
}
.doors a + a { border-left: 1px solid var(--rule); padding-left: 20px; }
.doors .swatch { grid-area: sw; margin-top: 2px; align-self: start; }
.doors b { grid-area: title; font: 600 16px/1.3 var(--sans); }
.doors span { grid-area: sub; font-size: 14px; color: var(--muted); }
.doors em {
  grid-area: arrow;
  font-style: normal;
  font-size: 18px;
  color: var(--muted);
  transition: transform .15s ease, color .15s ease;
}
.doors a:hover em { transform: translateX(4px); color: var(--ink); }
.doors a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections with running heads ---------- */
.sec { border-top: 1px solid var(--rule); padding: clamp(56px, 8vw, 96px) 0; }
.doors-wrap + .sec { border-top: 0; }
.sec-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px clamp(32px, 5vw, 80px);
  align-items: start;
}
.rh {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: 600 14px/1.4 var(--sans);
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 8px;
}
.rh span {
  font: 500 14px/1 var(--mono);
  letter-spacing: 0;
  color: var(--ink);
  padding: 5px 6px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
}
h2 {
  font: 400 clamp(30px, 3.6vw, 46px)/1.08 var(--serif);
  letter-spacing: -.018em;
  margin: 0 0 18px;
  max-width: 24ch;
}
h2 em { font-style: italic; }
h3 { font: 600 20px/1.3 var(--sans); }

/* ---------- 01 ledger ---------- */
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 14px clamp(16px, 3vw, 40px);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.row-num { font: 500 14px/1 var(--mono); color: var(--muted); padding-top: 7px; }
.row-area h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-area p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.row-lesson {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
.lesson {
  font: 600 17px/1.3 var(--sans);
  color: var(--ink);
  text-decoration: none;
}
.lesson:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-lesson .more { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.row-lesson .more a { color: var(--ink); }
.ledger + .fine { margin-top: 22px; }

/* ---------- 02 what's inside / how people use it / why ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}
.facts > div {
  padding: 22px 24px 8px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--card);
}
.facts h3 {
  font: 600 14px/1.4 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.facts ul { list-style: none; padding: 0; counter-reset: step; }
.facts li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
}
.facts .inside li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--ink);
}
.facts .use li { counter-increment: step; }
.facts .use li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 13px;
  font: 500 13px/1.5 var(--mono);
  color: var(--muted);
}

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 40px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}
.why h3 { margin-bottom: 8px; }
.why p { color: var(--ink-2); font-size: 16px; max-width: 64ch; }

/* ---------- 03 sunday lab (dark band) ---------- */
.sec-dark { background: var(--dark); color: var(--paper); border-top: 0; }
.sec-dark + .sec { border-top: 0; }
.sec-dark .rh { color: var(--dark-muted); }
.sec-dark .rh span { color: var(--paper); border-color: var(--dark-rule); }
.sec-dark .sub, .sec-dark .fine, .sec-dark .meta { color: var(--dark-muted); }
.sec-dark h2, .sec-dark h3 { color: var(--paper); }
.sec-dark a { color: var(--paper); }
.sec-dark .text-link:hover { color: #fff; border-color: #fff; }

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.lab-diagram {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 24px;
  border: 1px solid var(--dark-rule);
  border-radius: 8px;
  color: var(--dark-muted);
}
.lab-nodes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}
.lab-nodes li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font: 500 14px/1 var(--mono);
  color: var(--paper);
}
.lab-lines { width: 100%; height: 84px; display: block; margin: 12px 0; color: var(--dark-muted); }
.lab-sink {
  justify-self: center;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--dark-rule);
  border-radius: 999px;
  font: 500 14px/1.3 var(--sans);
  color: var(--paper);
  background: var(--dark-2);
  text-align: center;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7fe0a8;
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.session {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
  border: 1px solid var(--dark-rule);
  border-radius: 8px;
  background: var(--dark-2);
}
.session h3 { font: 400 26px/1.2 var(--serif); }
.session h3 a { text-decoration: none; }
.session h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.session p { color: var(--dark-muted); font-size: 16px; }
.session .text-link { align-self: flex-start; margin-top: 8px; }
.lab-grid + .fine { margin-top: 24px; }

/* ---------- 04 membership table ---------- */
.table-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: transparent;
  font: 600 14px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.toggle::before {
  content: "";
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  flex: none;
  transition: background-color .15s ease;
}
.toggle[aria-pressed="true"] { border-color: var(--ink); }
.toggle[aria-pressed="true"]::before { background: var(--ink); }

.tiers { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.tiers th, .tiers td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
}
.tiers thead th {
  vertical-align: bottom;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.tiers thead th + th { border-left: 1px solid var(--rule); }
.tiers tbody th { font-weight: 500; color: var(--ink); width: 30%; }
.tiers tbody td { color: var(--ink-2); }
.tiers tbody td + td { border-left: 1px solid var(--rule); }
.tiers td.yes { font-weight: 600; color: var(--ink); }
.tiers td.no { color: var(--muted); }
.tiers tr[hidden] { display: none; }
.tier-name { display: block; font: 600 18px/1.3 var(--sans); }
.tier-price {
  display: block;
  font: 400 40px/1 var(--serif);
  letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.tier-price small {
  font: 500 14px/1 var(--mono);
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}
.tier-for {
  display: block;
  font: 400 15px/1.45 var(--sans);
  color: var(--muted);
  max-width: 28ch;
}
.tiers tfoot td { border-bottom: 0; padding-top: 20px; padding-bottom: 0; }
.tiers tfoot td + td { border-left: 1px solid var(--rule); }
.tiers tfoot .btn { width: 100%; }
.tiers + .fine { margin-top: 22px; }

/* ---------- 05 consulting ---------- */
.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 28px clamp(28px, 4vw, 56px);
  align-items: start;
}
.consult-copy p { color: var(--ink-2); max-width: 60ch; }
.consult-copy p + p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.consult-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--card);
}
.consult-price { font: 400 44px/1 var(--serif); letter-spacing: -.02em; }
.consult-price small { font: 500 14px/1 var(--mono); color: var(--muted); margin-left: 4px; }
.consult-note { font-size: 15px; color: var(--muted); line-height: 1.5; }
.consult-card .btn { margin-top: 10px; align-self: flex-start; }

/* ---------- 06 experiments ---------- */
.app-kind { text-transform: uppercase; letter-spacing: .06em; }

/* featured playground: copy column + two study artworks */
.app-feature {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px clamp(24px, 3vw, 40px);
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 20px;
}
.app-feature-copy { display: flex; flex-direction: column; gap: 10px; }
.app-feature-copy h3 { font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; }
.app-feature-copy h3 a { color: var(--ink); text-decoration: none; }
.app-feature-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-feature-copy p { color: var(--ink-2); font-size: 16px; }
.app-feature-copy .meta { margin-top: auto; }

.studies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.study {
  display: block;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
}
.study img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--dark-2);
}
.study-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 13px;
  border-top: 1px solid var(--rule);
}
.study-cap b { font: 600 16px/1.3 var(--sans); }
.study:hover .study-cap b { text-decoration: underline; text-underline-offset: 3px; }

/* four more apps: typographic cards with line glyphs (no screenshots available locally) */
.apps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.app {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.app:hover { border-color: var(--ink); background: var(--paper); }
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 36px;
}
.glyph { flex: none; color: var(--ink); }
.app-title { font: 600 19px/1.25 var(--sans); }
.app:hover .app-title { text-decoration: underline; text-underline-offset: 3px; }
.app-desc { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.app-go { color: var(--ink); padding-top: 8px; border-top: 1px solid var(--rule); }
.app-go::after { content: " →"; }
.apps + .fine { margin-top: 22px; }

/* ---------- 07 field notes ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: 28px clamp(28px, 4vw, 56px);
  align-items: start;
}
.notes { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.note a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta meta" "title go" "excerpt go";
  gap: 6px 20px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.note-meta { grid-area: meta; display: flex; justify-content: space-between; gap: 12px; }
.note-num { color: var(--ink); }
.note-title {
  grid-area: title;
  font: 400 26px/1.2 var(--serif);
  letter-spacing: -.012em;
}
.note a:hover .note-title { text-decoration: underline; text-underline-offset: 4px; }
.note-excerpt { grid-area: excerpt; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.note-go {
  grid-area: go;
  align-self: end;
  font: 600 14px/1 var(--sans);
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 4px;
}
.notes-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--card);
  position: sticky;
  top: calc(var(--head-h) + 24px);
}
.notes-aside p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.notes-aside .btn { margin-top: 4px; }

/* ---------- 08 a personal note ---------- */
.personal-body { max-width: 66ch; }
.personal-body p { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.personal-body p + p { margin-top: 18px; }

/* ---------- 08 faq ---------- */
.faq { border-top: 1px solid var(--ink); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 18px 0;
  font: 500 17px/1.4 var(--sans);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  font: 400 22px/1 var(--serif);
  color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: -4px 0 20px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- closing ---------- */
.closing {
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
}
.closing h2 { margin: 0 auto 14px; max-width: 18ch; }
.closing .sub { margin: 0 auto 28px; }
.closing .cta-row { justify-content: center; margin-bottom: 22px; }
.free-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 15px;
}
.free-list a { color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: 36px 0 44px; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
}
.foot-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot .fine { margin-top: 24px; max-width: 84ch; }

/* ---------- review return (comparison folder courtesy) ---------- */
.review-return {
  position: fixed;
  bottom: 14px; left: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font: 600 13px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.review-return[hidden] { display: none; }

/* ---------- reveal (progressive, JS-gated) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- utilities ---------- */
.hide-sm, .hide-md { display: inline; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1100px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-nav a { padding: 0 9px; font-size: 14px; }
}

@media (max-width: 1000px) {
  .sec-grid { grid-template-columns: 168px minmax(0, 1fr); }
  .hide-md { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: none; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rh { position: static; margin-top: 0; }
  h2 { max-width: none; }
  .app-feature { grid-template-columns: minmax(0, 1fr); }
  .app-feature-copy .meta { margin-top: 0; }
  .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .notes-aside { position: static; }
}

@media (max-width: 860px) {
  :root { --head-h: 64px; }
  html.is-compact { --head-h: 56px; }
  .ledger-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .08);
  }
  .ledger-nav.is-open { display: flex; }
  .ledger-nav a {
    min-height: 50px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    font-size: 17px;
  }
  .ledger-nav a:last-child { border-bottom: 0; }
  .ledger-nav a[aria-current="true"]::after { left: 0; width: 3px; right: auto; top: 12px; bottom: 12px; height: auto; }
  .ledger-nav a[aria-current="true"] { padding-left: 14px; }
  .head-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  /* no-JS fallback: show links inline instead of a dead button */
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .ledger-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; }
  html:not(.js) .head-row { height: auto; min-height: var(--head-h); flex-wrap: wrap; padding: 8px 0; }
}

@media (max-width: 720px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .doors a { padding: 14px 0; min-height: 64px; }
  .doors a + a { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }

  .row { grid-template-columns: 32px minmax(0, 1fr); }
  .row-lesson { grid-column: 2; }

  .facts, .lab-grid, .studies, .consult-grid { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why .btn { justify-self: start; }

  /* comparison table → stacked, labelled rows */
  .tiers, .tiers thead, .tiers tbody, .tiers tfoot, .tiers tr, .tiers th, .tiers td { display: block; }
  .tiers { border-top: 0; }
  .tiers thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
  }
  .tiers thead th.th-feat { display: none; }
  .tiers thead th {
    padding: 16px;
    border: 1px solid var(--rule-2) !important;
    border-radius: var(--radius);
    background: var(--card);
  }
  .tier-price { font-size: 34px; }
  .tier-for { font-size: 14px; }
  .tiers tbody tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tiers tbody th { width: auto; padding: 0 0 8px; border: 0; font-weight: 600; }
  .tiers tbody td {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 4px 0;
    border: 0 !important;
    font-size: 15px;
  }
  .tiers tbody td::before {
    content: attr(data-tier);
    font: 500 13px/1.5 var(--mono);
    color: var(--muted);
    padding-top: 2px;
  }
  .tiers tfoot tr { display: grid; gap: 12px; padding-top: 18px; }
  .tiers tfoot td { padding: 0; border: 0 !important; }
  .tiers tfoot .tf-spacer { display: none; }
  .table-tools { justify-content: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .btn-head { padding: 8px 14px; }
  .hero { background-size: 22px 22px; }
  h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .lede { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .hero .cta-row .btn { width: 100%; }
  .trust { flex-direction: column; gap: 4px; }
  .trust li + li::before { display: none; }
  .media-label { flex-direction: column; }
  .sample-row { padding: 14px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-num { display: none; }
  .row-lesson { grid-column: 1; }
  .why { padding: 22px 20px; }
  .lab-diagram, .session, .consult-card, .app-feature, .notes-aside { padding: 22px 20px; }
  .studies, .apps { grid-template-columns: minmax(0, 1fr); }
  .app-feature-copy h3 { font-size: 26px; }
  .note a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "title" "excerpt" "go";
    gap: 8px;
  }
  .note-title { font-size: 23px; }
  .note-go { align-self: start; padding: 4px 0 0; }
  .session h3 { font-size: 23px; }
  .personal-body p { font-size: 17px; }
  .free-list { flex-direction: column; gap: 10px; }
  .foot-row { align-items: flex-start; flex-direction: column; }
  .review-return { bottom: 10px; left: 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* Downloadable experiments: shared by the homepage and experiment index. */
.dtb-feature { display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(24px,4vw,56px); align-items:center; padding:clamp(22px,3vw,40px); margin:32px 0 48px; border:1px solid #c8c1b3; border-radius:8px; background:#eeebe3; color:#16171a; }
.dtb-feature .dtb-label { font:600 11px/1.5 ui-monospace,monospace; letter-spacing:.1em; color:#555a63; margin:0 0 12px; }
.dtb-feature h3 { font:500 26px/1.2 Georgia,serif; margin:0 0 18px; }
.dtb-feature .dtb-promise { font:400 clamp(30px,3.5vw,48px)/1.08 Georgia,serif; letter-spacing:-.035em; margin:0 0 24px; }
.dtb-promise em { color:#1e40af; }
.dtb-copy > p:not(.dtb-label):not(.dtb-promise):not(.dtb-note), .dtb-benefits { font:400 16px/1.65 system-ui,sans-serif; }
.dtb-benefits { padding-left:19px; margin:20px 0 26px; }
.dtb-benefits li { margin:9px 0; }
.dtb-feature .dtb-download { display:inline-flex; align-items:center; justify-content:center; gap:24px; min-height:52px; padding:14px 22px; background:#16171a; color:#fff; border-radius:5px; font:600 16px/1.4 system-ui,sans-serif; text-decoration:none; }
.dtb-feature .dtb-download:hover { background:#1e40af; }
.dtb-feature .dtb-note { font:400 12px/1.5 system-ui,sans-serif; color:#595d65; margin:12px 0 0; }
.dtb-media { min-width:0; }
.dtb-media figure { margin:0; }
.dtb-media video { display:block; width:100%; aspect-ratio:2056/1328; background:#0d1214; border-radius:5px; }
.dtb-media figcaption { font:400 12px/1.5 ui-monospace,monospace; color:#595d65; margin:12px 0 22px; }
.dtb-setup { border-top:1px solid #c8c1b3; font:400 13px/1.6 system-ui,sans-serif; }
.dtb-setup summary { cursor:pointer; padding:15px 0; min-height:44px; font-weight:600; }
.dtb-setup p { margin:0 0 12px; }
@media(max-width:1000px) { .dtb-feature { grid-template-columns:1fr; } .dtb-media { grid-row:2; } }
@media(max-width:540px) { .dtb-feature .dtb-download { width:100%; gap:16px; } }
