:root {
  /* Earth palette */
  --bg: #FDFCF8;            /* rice paper */
  --bg-2: #EFE8DE;          /* stone */
  --bg-3: #E1D5BF;          /* sand */
  --bg-card: #FEFEFA;
  --fg: #1E1E16;            /* deep loam (darker) */
  --fg-2: #3A3A30;          /* bark */
  --fg-3: #6B6B5E;          /* dried grass */
  --fg-4: #9C9C8E;
  --border: #D3CBBC;
  --border-soft: #DDD5C6;

  /* signature colors */
  --primary: #5D7052;       /* moss */
  --primary-deep: #4A5B41;
  --primary-soft: rgba(93, 112, 82, 0.12);
  --primary-foreground: #F3F4F1;

  --secondary: #C18C5D;     /* terracotta */
  --secondary-deep: #A6743F;
  --secondary-soft: rgba(193, 140, 93, 0.14);

  --accent: #E6DCCD;
  --destructive: #A85448;
  --destructive-soft: rgba(168, 84, 72, 0.12);

  --warn: #C18C5D;
  --warn-soft: rgba(193, 140, 93, 0.16);

  /* tinted shadows — never pure black */
  --shadow-soft:  0 4px 18px -2px rgba(74, 74, 64, 0.12), 0 1px 2px rgba(74, 74, 64, 0.06);
  --shadow-float: 0 12px 36px -8px rgba(193, 140, 93, 0.28);
  --shadow-card:  0 10px 36px -12px rgba(60, 60, 50, 0.18), 0 1px 2px rgba(60, 60, 50, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* paper grain — fixed overlay, multiply blend */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.mono { font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--secondary-soft); color: var(--fg); }
em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; }
.section { padding: 88px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section.first { padding-top: 16px; }

/* ---------- two-column body with sticky TOC ---------- */
.page-body { background: var(--bg); }
.page-body .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 72px;
  align-items: start;
}
.page-main > .section { padding: 64px 0; }
.page-main > .section:first-child { padding-top: 8px; }
.page-main > .section.bleed { padding: 64px 0; }
.page-main .section-head { margin-bottom: 36px; }

.toc {
  position: sticky; top: 100px;
  align-self: start;
  padding: 20px 0 20px 22px;
  border-left: 1.5px solid var(--border);
  font-size: 13.5px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.toc-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--fg-2);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.35;
  transition: background .2s, color .2s, padding-left .2s;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.toc-list a:hover { color: var(--primary-deep); background: rgba(93, 112, 82, 0.06); }
.toc-list a.active {
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-left-color: var(--primary);
}
.toc-list .toc-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.section.tint-stone   { background: rgba(240, 235, 229, .55); }
.section.tint-sand    { background: rgba(230, 220, 205, .42); }
.section.tint-moss    { background: var(--primary); color: var(--primary-foreground); }
.section.tint-moss .lead, .section.tint-moss .ag-row, .section.tint-moss * { color: inherit; }

/* type */
.h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: clamp(40px, 4.6vw, 62px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 44px; line-height: 1.12;
  letter-spacing: -0.018em; margin: 0;
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
.h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 23px; line-height: 1.25; margin: 0;
  font-variation-settings: "SOFT" 100, "opsz" 36;
  letter-spacing: -0.008em;
}
.lead {
  font-size: 18px; color: var(--fg-2); line-height: 1.6; max-width: 58ch;
  font-weight: 500;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  padding: 8px 16px; border-radius: 999px;
  background: var(--primary-soft);
  white-space: nowrap;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 52px; align-items: flex-start; max-width: 720px; }
.section-head .h2 { margin-top: 6px; margin-bottom: 4px; }
.section-head .lead { margin-top: 8px; }
.section-head .hard-answer {
  font-family: 'Geist Mono', monospace; font-size: 13px;
  color: var(--secondary-deep); background: var(--secondary-soft);
  border: 1px solid rgba(193, 140, 93, 0.32);
  padding: 8px 14px; border-radius: 8px;
  font-weight: 500; letter-spacing: -0.005em;
  align-self: flex-start;
  margin-top: 14px;
  display: inline-block;
  line-height: 1.45;
}
.evidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.evidence-badge.official {
  background: rgba(93, 112, 82, 0.12);
  color: var(--primary-deep);
}
.evidence-badge.guide {
  background: rgba(193, 140, 93, 0.12);
  color: var(--secondary-deep);
}
.evidence-badge.search {
  background: rgba(70, 102, 132, 0.12);
  color: #35536b;
}
.evidence-badge.recommendation,
.evidence-badge.neutral {
  background: rgba(82, 82, 82, 0.08);
  color: var(--fg-2);
}
.analysis-intro {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(93,112,82,0.12);
}
.analysis-intro p {
  margin: 0;
  color: var(--fg-2);
  line-height: 1.55;
}
.mini-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}
.source-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.source-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}
.source-links a:hover {
  color: var(--primary-deep);
  border-color: rgba(93, 112, 82, 0.28);
}

/* ---------- blob backgrounds ---------- */
.blob {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: .55;
}
.blob.moss   { background: var(--primary); }
.blob.clay   { background: var(--secondary); }
.blob.sand   { background: var(--accent); }
.blob.b-1 { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.blob.b-2 { border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%; }
.blob.b-3 { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }

/* ---------- nav (sticky bar) ---------- */
.nav-shell {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--primary); color: white;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 6px rgba(93, 112, 82, 0.22);
}
.brand-mark::after { content: '↳'; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--fg-2); font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--primary-deep); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--fg);
  transition: transform .25s ease, box-shadow .25s ease, background .25s, border-color .25s;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: var(--shadow-soft); border-color: var(--fg-3); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); box-shadow: 0 6px 24px -4px rgba(93, 112, 82, 0.28); }
.btn-accent  { background: var(--secondary); color: white; border-color: var(--secondary); box-shadow: var(--shadow-float); }
.btn-accent:hover { background: var(--secondary-deep); border-color: var(--secondary-deep); }
.btn-outline { background: transparent; border-color: var(--secondary); color: var(--secondary-deep); }
.btn-outline:hover { background: var(--secondary-soft); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); transform: none; box-shadow: none; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; position: relative; }
.hero .blob.b1 { width: 480px; height: 480px; top: -120px; left: -160px; }
.hero .blob.b2 { width: 380px; height: 380px; top: 80px; right: -120px; }
.hero-grid { display: flex; flex-direction: column; gap: 40px; position: relative; z-index: 1; align-items: center; text-align: center; }
.hero-grid > .hero-copy { max-width: 820px; width: 100%; }
.hero h1 .accent { color: var(--secondary-deep); font-style: italic; }
.hero h1 .accent::before { content: '"'; opacity: .25; margin-right: -.05em; }
.hero h1 .accent::after  { content: '"'; opacity: .25; margin-left: -.05em; }
.hero-sub { margin-top: 22px; }
.hero-meta { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--fg-3); align-items: center; font-weight: 600; justify-content: center; }
.hero-meta .check { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .check svg { color: var(--primary); }

/* quick answer 4-card */
.qa-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; max-width: 520px; }
.qa-card {
  border: 1.5px solid var(--border-soft);
  padding: 18px 20px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.qa-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(93, 112, 82, 0.18); }
.qa-card:nth-child(1) { border-radius: 2.2rem 1.4rem 2.2rem 1.4rem; }
.qa-card:nth-child(2) { border-radius: 1.4rem 2.4rem 1.4rem 2.2rem; }
.qa-card:nth-child(3) { border-radius: 2.4rem 1.4rem 1.4rem 2.4rem; }
.qa-card:nth-child(4) { border-radius: 1.4rem 2.4rem 2.4rem 1.4rem; }
.qa-card .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}
.qa-card .value {
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600;
  color: var(--fg); letter-spacing: -0.015em; line-height: 1;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.qa-card .hint { font-size: 12.5px; color: var(--fg-3); margin-top: 6px; line-height: 1.45; }
.qa-card.accent { background: rgba(230, 220, 205, 0.55); }
.qa-card.accent .value { color: var(--primary); }

/* ---------- analyzer card ---------- */
.analyzer {
  background: var(--bg-card); border: 1.5px solid var(--border-soft);
  border-radius: 2.5rem 1.8rem 2.5rem 1.8rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.analyzer::after {
  /* slight inner texture/blob */
  content: '';
  position: absolute; width: 200px; height: 200px;
  bottom: -80px; right: -60px;
  background: var(--secondary-soft);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.analyzer > * { position: relative; z-index: 1; }
.analyzer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px dashed var(--border);
  background: rgba(240, 235, 229, 0.45);
}
.analyzer-head .title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px;
  white-space: nowrap;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(93,112,82,.18); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-card); border-radius: 999px; border: 1.5px solid var(--border-soft); }
.tab {
  padding: 7px 16px; border: 0; background: transparent; border-radius: 999px;
  font-size: 13.5px; color: var(--fg-3); font-weight: 700; font-family: inherit;
  transition: background .25s, color .25s;
}
.tab:hover { color: var(--fg); }
.tab.active { background: var(--primary); color: var(--primary-foreground); }

.analyzer-body { padding: 24px; }
.counter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 14px; flex-wrap: wrap; }
.counter-label { font-size: 13.5px; color: var(--fg-3); font-weight: 600; }
.counter {
  font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.counter .num { font-family: 'Fraunces', serif; font-size: 18px; color: var(--fg); font-weight: 600; }
.counter.warn .num { color: var(--secondary-deep); }
.counter.bad  .num { color: var(--destructive); }
.counter.good .num { color: var(--primary); }

textarea.input {
  width: 100%; resize: vertical; min-height: 96px;
  border: 1.5px solid var(--border);
  border-radius: 1.6rem;
  padding: 16px 18px; font-size: 15.5px; font-family: inherit;
  line-height: 1.5; color: var(--fg);
  background: rgba(255,255,255,0.6);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(93,112,82,.15); }
textarea.input.tall { min-height: 220px; }

.bar {
  height: 6px; border-radius: 999px; background: var(--bg-2); margin-top: 10px; overflow: hidden;
}
.bar > span { display: block; height: 100%; background: var(--primary); transition: width .35s ease, background .25s; border-radius: 999px; }
.bar.warn > span { background: var(--secondary); }
.bar.bad  > span { background: var(--destructive); }

/* preview block */
.previews { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.preview-card {
  border: 1.5px solid var(--border-soft);
  border-radius: 1.6rem 1rem 1.6rem 1rem;
  padding: 16px 18px;
  background: rgba(255, 253, 248, 0.65);
}
.preview-card .ph {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--fg-3); text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.preview-card .ph .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }
.preview-card .body { font-size: 14px; color: var(--fg); line-height: 1.45; }
.preview-card .body .trunc-cut { color: var(--destructive); background: var(--destructive-soft); padding: 0 3px; border-radius: 4px; }

.preview-mobile {
  border: 1.5px solid var(--border-soft);
  border-radius: 2rem;
  background: var(--bg-card); padding: 14px; position: relative;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}
.preview-mobile:hover { transform: rotate(0deg) translateY(-2px); }
.preview-mobile .notch {
  width: 46px; height: 5px; background: var(--border); border-radius: 999px;
  margin: 0 auto 12px;
}
.preview-mobile .shot {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  aspect-ratio: 1; margin-bottom: 10px;
  position: relative;
}
.preview-mobile .shot::after {
  content: ''; position: absolute; inset: 30%;
  background: var(--secondary-soft);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.preview-mobile .price { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--secondary-deep); }
.preview-mobile .mtitle {
  font-size: 12px; color: var(--fg); line-height: 1.35; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.preview-mobile .mtitle .cut { color: var(--fg-4); }

/* analysis groups */
.analysis { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.analysis-group {
  border: 1.5px solid var(--border-soft);
  border-radius: 1.6rem;
  background: rgba(240, 235, 229, 0.35);
  overflow: hidden;
}
.ag-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer;
}
.ag-head .lhs { display: flex; align-items: center; gap: 12px; }
.ag-head .status-dot { width: 11px; height: 11px; border-radius: 50%; }
.ag-head .name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; }
.ag-head .summary { font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.ag-head .toggle { font-family: 'Nunito', sans-serif; font-size: 11px; letter-spacing: 0.12em; color: var(--primary); text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.ag-list { padding: 4px 20px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ag-row { display: flex; gap: 12px; font-size: 14px; color: var(--fg); align-items: flex-start; line-height: 1.5; }
.ag-row .d { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.ag-row.good .d { background: var(--primary); }
.ag-row.warn .d { background: var(--secondary); }
.ag-row.bad  .d { background: var(--destructive); }

.status-good { background: var(--primary); }
.status-warn { background: var(--secondary); }
.status-bad  { background: var(--destructive); }

/* improve suggestions */
.improve {
  margin-top: 20px;
  border: 1.5px solid rgba(193, 140, 93, 0.3);
  border-radius: 1.8rem 1.2rem 1.8rem 1.2rem;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(230, 220, 205, 0.45) 0%, rgba(255, 253, 248, 0.5) 100%);
  position: relative;
}
.improve-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.improve-head .h { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; }
.improve-head .h .sparkle { color: var(--secondary); }
.improve-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.imp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--fg);
  font-weight: 700; font-family: inherit;
  transition: transform .2s, background .2s, border-color .2s;
}
.imp-btn:hover { transform: scale(1.03); background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.imp-btn .ic { color: var(--secondary); }
.imp-btn:hover .ic { color: var(--primary); }

.imp-output {
  margin-top: 14px; border: 1.5px solid var(--border-soft);
  border-radius: 1.4rem;
  background: var(--bg-card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.imp-output .imp-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--secondary-deep);
}
.imp-output .imp-text { font-family: 'Fraunces', serif; font-size: 16px; color: var(--fg); line-height: 1.5; font-weight: 500; }
.imp-output .imp-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--fg-3); align-items: center; flex-wrap: wrap; font-weight: 600; }
.imp-output .imp-meta .ch { font-family: 'Geist Mono', monospace; }

/* tag editor */
.tag-editor { display: flex; flex-direction: column; gap: 12px; }
.tag-input-row {
  display: flex; gap: 10px; align-items: center;
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: 8px 14px 8px 18px; background: var(--bg-card);
}
.tag-input-row input {
  flex: 1; border: 0; outline: 0; font-size: 14.5px; font-family: inherit; color: var(--fg);
  background: transparent;
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  background: var(--bg-2); border: 1.5px solid var(--border-soft); color: var(--fg);
  font-weight: 600;
}
.tag-chip .count {
  font-family: 'Geist Mono', monospace; color: var(--fg-3); font-size: 11px;
}
.tag-chip .x { border: 0; background: transparent; padding: 0 0 0 4px; color: var(--fg-3); font-size: 14px; line-height: 1; display: inline-flex; }
.tag-chip .x:hover { color: var(--destructive); }
.tag-chip.warn { background: var(--secondary-soft); border-color: rgba(193, 140, 93, .35); }
.tag-chip.warn .count { color: var(--secondary-deep); }
.tag-chip.bad { background: var(--destructive-soft); border-color: rgba(168, 84, 72, .3); }
.tag-chip.bad .count { color: var(--destructive); }

/* ---------- quick reference grid ---------- */
.ref-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ref-card {
  border: 1.5px solid var(--border-soft);
  padding: 24px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 180px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(93,112,82,.18); }
/* asymmetric corners — cycle six variants */
.ref-card:nth-child(8n+1) { border-radius: 2.6rem 1.4rem 2.6rem 1.4rem; }
.ref-card:nth-child(8n+2) { border-radius: 1.4rem 2.6rem 1.4rem 2.6rem; }
.ref-card:nth-child(8n+3) { border-radius: 2.4rem 2.4rem 1.2rem 2.4rem; }
.ref-card:nth-child(8n+4) { border-radius: 2.4rem 1.2rem 2.4rem 2.4rem; }
.ref-card:nth-child(8n+5) { border-radius: 1.2rem 2.4rem 2.4rem 2.4rem; }
.ref-card:nth-child(8n+6) { border-radius: 2.4rem 2.4rem 2.4rem 1.2rem; }
.ref-card:nth-child(8n+7) { border-radius: 1.6rem 2.8rem 1.6rem 2.8rem; }
.ref-card:nth-child(8n+8) { border-radius: 2.8rem 1.6rem 2.8rem 1.6rem; }
.ref-card .field {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-3);
}
.ref-card .num {
  font-family: 'Fraunces', serif; font-size: 44px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--fg); margin-top: 4px; line-height: 1;
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
.ref-card .num .unit { font-size: 16px; color: var(--fg-3); margin-left: 8px; font-family: 'Nunito', sans-serif; font-weight: 600; }
.ref-card .hint { font-size: 13.5px; color: var(--fg-2); margin-top: auto; line-height: 1.5; }
.ref-card.accent {
  background: rgba(230, 220, 205, 0.55);
}
.ref-card.accent .num { color: var(--primary-deep); }
.ref-card.accent .field { color: var(--primary); }

/* ---------- hero hard-answer ---------- */
.hard-answer-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
  font-family: 'Geist Mono', monospace; font-size: 14px;
  font-weight: 500;
}
.hard-answer-row .ha-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(60,60,50,.04);
}
.hard-answer-row .ha-chip .lab { color: var(--fg-3); font-size: 12.5px; font-family: 'Nunito', sans-serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hard-answer-row .ha-chip strong { color: var(--primary-deep); font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; }


/* ---------- hero summary cards (static info, not buttons) ---------- */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.summary-card {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; text-align: center;
}
.summary-card:last-child { border-right: 0; }
.summary-card .label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}
.summary-card .value {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600; line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.summary-card .sub {
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px; color: var(--fg-3); font-weight: 600;
  margin-top: -2px;
}
@media (max-width: 880px) {
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .summary-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .summary-card:nth-child(2n) { border-right: 0; }
  .summary-card:nth-last-child(-n+2) { border-bottom: 0; }
}

/* AI trigger button (collapses AI panel) */
.ai-trigger {
  margin-top: 18px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px dashed var(--border);
  color: var(--fg-2);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ai-trigger:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.ai-trigger svg { color: var(--secondary); }
.ai-trigger .ai-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; font-weight: 500;
  background: var(--secondary-soft); color: var(--secondary-deep);
  padding: 2px 8px; border-radius: 999px;
  margin-left: 4px;
}
.workspace-trigger {
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 14px;
}
.workspace-trigger-copy {
  flex: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.workspace-trigger-copy strong {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.3;
}
.workspace-trigger-copy small {
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
}
.workspace-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.workspace-trigger:hover .workspace-cta {
  background: var(--primary-deep);
}
.workspace-cta svg {
  color: currentColor;
}
.improve .ai-close {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--fg-3);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.improve .ai-close:hover { color: var(--destructive); border-color: var(--destructive); }
.improve { position: relative; }

/* ---------- Main Limits Table ---------- */
.limits-table-wrap {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.limits-table { width: 100%; border-collapse: collapse; }
.limits-table thead th {
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 20px 24px;
  background: rgba(239, 232, 222, 0.55);
  border-bottom: 1.5px solid var(--border);
}
.limits-table tbody td {
  padding: 22px 24px;
  vertical-align: top;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.55;
}
.limits-table tbody tr:last-child td { border-bottom: 0; }
.limits-table tbody tr:hover td { background: rgba(239, 232, 222, 0.35); }
.limits-table .col-field {
  font-family: 'Fraunces', serif; font-weight: 600;
  color: var(--fg); font-size: 18px; width: 30%;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.limits-table .col-num {
  font-family: 'Geist Mono', monospace; font-weight: 500;
  color: var(--primary-deep); font-size: 15px;
  width: 26%; white-space: nowrap;
}
.limits-table .col-know { color: var(--fg-2); font-size: 14.5px; }

/* ---------- Deep-dive sub-question cards ---------- */
.subq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.subq-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.subq {
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.subq:nth-child(6n+1) { border-radius: 2rem 1.4rem 2rem 1.4rem; }
.subq:nth-child(6n+2) { border-radius: 1.4rem 2.2rem 1.4rem 2.2rem; }
.subq:nth-child(6n+3) { border-radius: 2.2rem 2.2rem 1.2rem 2.2rem; }
.subq:nth-child(6n+4) { border-radius: 1.2rem 2.4rem 2.4rem 2.4rem; }
.subq:nth-child(6n+5) { border-radius: 2.4rem 1.2rem 2.4rem 2.4rem; }
.subq:nth-child(6n)   { border-radius: 2.4rem 2.4rem 2.4rem 1.2rem; }
.subq .qmark {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--secondary-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.subq .qmark .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  background: var(--secondary-soft); color: var(--secondary-deep);
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 600;
}
.subq h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 21px; line-height: 1.25;
  color: var(--fg); margin: 4px 0 6px;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.subq .answer {
  font-size: 14.5px; color: var(--fg); line-height: 1.55; font-weight: 600;
}
.subq .strat {
  font-size: 13.5px; color: var(--fg-2); line-height: 1.55; margin-top: 6px;
}
.subq .answer strong {
  font-family: 'Geist Mono', monospace; font-weight: 500;
  color: var(--primary-deep); background: var(--primary-soft);
  padding: 1px 5px; border-radius: 4px; font-size: 13px;
}
.subq.callout {
  background: linear-gradient(135deg, rgba(230, 220, 205, 0.55) 0%, rgba(255, 253, 248, 0.4) 100%);
  border-color: rgba(193, 140, 93, 0.32);
}
.subq.callout .qmark { color: var(--primary-deep); }
.subq.callout .qmark .num { background: var(--primary-soft); color: var(--primary-deep); }

.subq-full {
  grid-column: 1 / -1;
}

/* example mini-rows inside deep-dive */
.mini-ex { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mini-ex .row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(239, 232, 222, 0.42);
  border: 1px dashed var(--border);
}
.mini-ex .row .tag {
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  flex-shrink: 0; padding-top: 1px;
  width: 56px;
}
.mini-ex .row.bad  .tag { color: var(--destructive); }
.mini-ex .row.good .tag { color: var(--primary); }
.mini-ex .row.bad  { background: rgba(168, 84, 72, 0.05); border-color: rgba(168, 84, 72, 0.25); }
.mini-ex .row.good { background: rgba(93, 112, 82, 0.05); border-color: rgba(93, 112, 82, 0.25); }
.mini-ex .row .txt { font-family: 'Fraunces', serif; font-weight: 500; color: var(--fg); font-size: 14.5px; line-height: 1.45; }

/* ---------- Common mistakes ---------- */
.mistakes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mistake {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}
.mistake:nth-child(5n+1) { border-radius: 2rem 1.2rem 2rem 1.2rem; }
.mistake:nth-child(5n+2) { border-radius: 1.2rem 2rem 1.2rem 2rem; }
.mistake:nth-child(5n+3) { border-radius: 2.2rem 2.2rem 1.2rem 2.2rem; }
.mistake:nth-child(5n+4) { border-radius: 1.2rem 2.4rem 2.4rem 2.4rem; }
.mistake:nth-child(5n)   { border-radius: 2.4rem 2.4rem 2.4rem 1.2rem; grid-column: 1 / -1; }
.mistake .badge-no {
  width: 64px; height: 64px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  background: var(--destructive-soft);
  color: var(--destructive);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 26px;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.mistake h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 20px; line-height: 1.25;
  color: var(--fg); margin: 0 0 8px;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.mistake .wrong {
  font-size: 14.5px; color: var(--fg); line-height: 1.55; font-weight: 600;
}
.mistake .instead {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  background: rgba(93, 112, 82, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 13.5px; color: var(--fg-2); line-height: 1.5;
}
.mistake .instead strong { color: var(--primary-deep); font-weight: 700; letter-spacing: 0.04em; font-size: 11px; text-transform: uppercase; font-family: 'Nunito', sans-serif; display: block; margin-bottom: 4px; }

/* ---------- More limits compact table ---------- */
.more-limits {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.ml-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.ml-card:nth-child(5n+1) { border-radius: 1.6rem 1rem 1.6rem 1rem; }
.ml-card:nth-child(5n+2) { border-radius: 1rem 1.6rem 1rem 1.6rem; }
.ml-card:nth-child(5n+3) { border-radius: 1.6rem 1.6rem 1rem 1.6rem; }
.ml-card:nth-child(5n+4) { border-radius: 1rem 1.6rem 1.6rem 1.6rem; }
.ml-card:nth-child(5n)   { border-radius: 1.6rem 1.6rem 1.6rem 1rem; }
.ml-card .field {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.ml-card .num {
  font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600;
  color: var(--fg); line-height: 1.05; margin-top: 4px;
  font-variation-settings: "SOFT" 100, "opsz" 64;
}
.ml-card .num .unit { font-size: 13px; color: var(--fg-3); margin-left: 4px; font-family: 'Nunito', sans-serif; font-weight: 600; }
.ml-card .hint { font-size: 12.5px; color: var(--fg-2); margin-top: 6px; line-height: 1.45; }

.truncation-warn {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--secondary-soft);
  border: 1px solid rgba(193, 140, 93, 0.3);
  color: var(--secondary-deep);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  line-height: 1.4;
}

.diagnosis-empty {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1.5px dashed var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(93, 112, 82, 0.05) 0%, rgba(255, 253, 248, 0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.diagnosis-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
}
.eyebrow-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-mini .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.diagnosis-empty h4 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
}
.diagnosis-empty p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* ---------- lightweight Q&A list ---------- */
.qa-list {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.qa-item {
  padding: 26px 30px;
  border-bottom: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.qa-item:last-child { border-bottom: 0; }
.qa-item.highlight {
  background: linear-gradient(135deg, rgba(230, 220, 205, 0.45) 0%, rgba(255, 253, 248, 0.5) 100%);
}
.qa-item .qmark {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px;
}
.qa-item .qmark .num {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.qa-item h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 22px; line-height: 1.25;
  color: var(--fg); margin: 0;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.qa-item .ans {
  font-size: 15px; color: var(--fg); line-height: 1.6; font-weight: 600;
  margin: 0;
}
.qa-item .strat {
  font-size: 14px; color: var(--fg-2); line-height: 1.6;
  margin: 0;
}
.qa-item .ans strong, .qa-item .strat strong {
  font-family: 'Geist Mono', monospace; font-weight: 500;
  color: var(--primary-deep); background: var(--primary-soft);
  padding: 1px 6px; border-radius: 5px; font-size: 13.5px;
}

/* mini examples nested inside a qa-item */
.qa-item .ex-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.qa-item .ex-row {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 14px; align-items: start;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.5;
}
.qa-item .ex-row.bad  { background: rgba(168, 84, 72, 0.06); border: 1px solid rgba(168, 84, 72, 0.2); }
.qa-item .ex-row.good { background: rgba(93, 112, 82, 0.06); border: 1px solid rgba(93, 112, 82, 0.22); }
.qa-item .ex-row .lbl {
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 2px;
}
.qa-item .ex-row.bad  .lbl { color: var(--destructive); }
.qa-item .ex-row.good .lbl { color: var(--primary); }
.qa-item .ex-row .txt {
  font-family: 'Fraunces', serif;
  font-weight: 500; color: var(--fg); line-height: 1.45;
  font-variation-settings: "SOFT" 100, "opsz" 24;
}

/* ---------- tool bridge mini-section ---------- */
.tool-bridge {
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(255, 253, 248, 0.5) 100%);
  border: 1.5px solid rgba(93, 112, 82, 0.22);
  border-radius: 1.8rem 1.2rem 1.8rem 1.2rem;
  padding: 26px 30px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.tool-bridge h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 21px; line-height: 1.3;
  margin: 0 0 6px;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.tool-bridge p { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
.tool-bridge ul {
  display: flex; flex-direction: column; gap: 6px;
  margin: 12px 0 0 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--fg-2);
}
.tool-bridge ul li {
  display: flex; align-items: center; gap: 10px;
}
.tool-bridge ul li svg { color: var(--primary); flex-shrink: 0; }

/* ---------- common mistakes (light list) ---------- */
.mistakes-list {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.mistake-row {
  padding: 24px 30px;
  border-bottom: 1px dashed var(--border);
  display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start;
}
.mistake-row:last-child { border-bottom: 0; }
.mistake-row .no {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 28px;
  color: var(--destructive);
  font-variation-settings: "SOFT" 100, "opsz" 64;
  line-height: 1; padding-top: 2px;
}
.mistake-row h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 19px; line-height: 1.3;
  color: var(--fg); margin: 0;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.mistake-row .instead {
  margin-top: 10px;
  font-size: 14px; color: var(--fg-2); line-height: 1.55;
  padding-left: 12px; border-left: 2px solid var(--primary);
}
.mistake-row .instead strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

/* ---------- compact more-limits table ---------- */
.compact-table {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.compact-table .row {
  display: grid; grid-template-columns: 220px 140px 1fr;
  gap: 24px; padding: 18px 26px; align-items: center;
  border-bottom: 1px dashed var(--border);
}
.compact-table .row:last-child { border-bottom: 0; }
.compact-table .row .f {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px;
  color: var(--fg);
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.compact-table .row .n {
  font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 15px;
  color: var(--primary-deep);
}
.compact-table .row .h { font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }

/* ---------- DO / DONT ---------- */
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bp-card {
  border: 1.5px solid var(--border-soft);
  padding: 32px 32px 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}
.bp-card.do { border-radius: 3rem 1.8rem 3rem 1.8rem; }
.bp-card.dont { border-radius: 1.8rem 3rem 1.8rem 3rem; }
.bp-card .head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.bp-card.do .head { color: var(--primary); }
.bp-card.dont .head { color: var(--destructive); }
.bp-card .head .badge {
  width: 36px; height: 36px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.bp-card.do .head .badge { background: var(--primary); box-shadow: 0 4px 12px rgba(93,112,82,.25); }
.bp-card.dont .head .badge { background: var(--destructive); box-shadow: 0 4px 12px rgba(168, 84, 72,.22); }
.bp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.bp-list li {
  font-family: 'Fraunces', serif;
  font-size: 17px; line-height: 1.45; padding-left: 28px; position: relative; color: var(--fg);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.bp-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}
.bp-card.do .bp-list li::before { background: var(--primary); }
.bp-card.dont .bp-list li::before { background: var(--destructive); opacity: .8; }
.bp-list li .sub {
  display: block; font-family: 'Nunito', sans-serif;
  font-size: 13.5px; color: var(--fg-3); margin-top: 4px;
  font-weight: 500;
}

/* ---------- examples ---------- */
.ex-stack { display: flex; flex-direction: column; gap: 22px; }
.ex-card {
  border: 1.5px solid var(--border-soft);
  border-radius: 2.4rem;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform .4s ease;
}
.ex-card:hover { transform: translateY(-3px) rotate(-0.4deg); }
.ex-row {
  display: grid; grid-template-columns: 140px 1fr 140px; gap: 0;
  border-bottom: 1px dashed var(--border);
}
.ex-row:last-child { border-bottom: 0; }
.ex-row.why { background: rgba(230, 220, 205, 0.45); }
.ex-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 22px 24px;
  display: flex; align-items: center; gap: 10px;
}
.ex-tag.bad  { color: var(--destructive); }
.ex-tag.good { color: var(--primary); }
.ex-tag.why  { color: var(--secondary-deep); }
.ex-tag .badge {
  width: 28px; height: 28px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: white;
}
.ex-tag.bad  .badge { background: var(--destructive); }
.ex-tag.good .badge { background: var(--primary); }
.ex-tag.why  .badge { background: var(--secondary); }
.ex-text {
  padding: 22px 24px;
  font-family: 'Fraunces', serif;
  font-size: 16px; line-height: 1.55; border-left: 1px dashed var(--border);
  display: flex; align-items: center;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 24;
}
.ex-meta {
  padding: 22px 24px; font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--fg-3);
  border-left: 1px dashed var(--border); display: flex; align-items: center; justify-content: flex-end;
}
.ex-row.why .ex-text { color: var(--fg-2); }
.ex-row.why .ex-meta { color: var(--secondary-deep); }

/* ---------- FAQ (lightweight) ---------- */
.faq-stack {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px dashed var(--border);
  background: transparent;
  border-radius: 0;
  transition: background .25s;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item:hover { background: rgba(239, 232, 222, 0.3); }
.faq-item.open { background: rgba(230, 220, 205, 0.3); box-shadow: none; }
.faq-q {
  width: 100%; border: 0; background: transparent; padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 600; color: var(--fg);
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.faq-q:hover { color: var(--primary); }
.faq-q .plus {
  width: 30px; height: 30px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  border: 1.5px solid var(--border); background: var(--bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2); font-size: 13px;
  transition: transform .3s, background .3s, color .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { background: var(--primary); border-color: var(--primary); color: white; transform: rotate(45deg); }
.faq-a { display: none; padding: 0 60px 22px 26px; color: var(--fg-2); font-size: 15px; line-height: 1.65; max-width: 72ch; }
.faq-item.open .faq-a { display: block; }

/* ---------- tools matrix ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  border: 1.5px solid var(--border-soft);
  padding: 26px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease, background .35s;
  min-height: 200px;
}
.tool-card:nth-child(6n+1) { border-radius: 2.4rem 1.4rem 2.4rem 1.4rem; }
.tool-card:nth-child(6n+2) { border-radius: 1.4rem 2.4rem 1.4rem 2.4rem; }
.tool-card:nth-child(6n+3) { border-radius: 2.6rem 2.6rem 1.2rem 2.6rem; }
.tool-card:nth-child(6n+4) { border-radius: 1.2rem 2.6rem 2.6rem 2.6rem; }
.tool-card:nth-child(6n+5) { border-radius: 2.6rem 2.6rem 2.6rem 1.2rem; }
.tool-card:nth-child(6n)   { border-radius: 2.6rem 1.2rem 2.6rem 2.6rem; }
.tool-card:hover { transform: translateY(-4px) rotate(0.6deg); box-shadow: 0 22px 40px -14px rgba(93,112,82,.2); }
.tool-card .icon {
  width: 52px; height: 52px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  transition: background .3s, color .3s;
}
.tool-card:hover .icon { background: var(--primary); color: var(--primary-foreground); }
.tool-card .name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; }
.tool-card .desc { font-size: 14px; color: var(--fg-2); line-height: 1.5; flex: 1; }
.tool-card .arrow { position: absolute; top: 26px; right: 26px; color: var(--fg-3); transition: transform .3s, color .3s; }
.tool-card:hover .arrow { color: var(--secondary); transform: translateX(4px); }
.tool-card.featured {
  background: linear-gradient(135deg, rgba(230, 220, 205, 0.6) 0%, var(--bg-card) 70%);
}
.tool-card .pill {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: var(--secondary-deep); align-self: flex-start;
  background: var(--secondary-soft); border: 1.5px solid rgba(193,140,93,.3);
  padding: 4px 12px; border-radius: 999px;
}

/* workflow strip */
.flow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--fg-2); margin-bottom: 36px;
}
.flow .node {
  padding: 8px 16px; border: 1.5px solid var(--border-soft); border-radius: 999px;
  background: var(--bg-card);
}
.flow .node.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 14px rgba(93,112,82,.22); }
.flow .arr { color: var(--fg-4); }

/* ---------- final CTA ---------- */
.cta {
  margin: 0 0 96px;
  border: 1.5px solid rgba(93, 112, 82, 0.25);
  border-radius: 3rem 4rem 3rem 4rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(93,112,82,.4);
}
.cta::before {
  content: ''; position: absolute;
  width: 480px; height: 480px;
  background: var(--secondary);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(80px); opacity: .35;
  top: -120px; right: -120px;
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-family: 'Fraunces', serif; font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; font-variation-settings: "SOFT" 100, "opsz" 96; }
.cta p { font-size: 17px; margin-top: 18px; max-width: 48ch; opacity: .88; line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.cta-actions .btn { background: rgba(255,253,248,.18); border-color: rgba(255,253,248,.3); color: var(--primary-foreground); backdrop-filter: blur(8px); }
.cta-actions .btn:hover { background: rgba(255,253,248,.28); border-color: rgba(255,253,248,.5); }
.cta-actions .btn-accent { background: var(--secondary); color: white; border-color: var(--secondary); }
.cta-actions .btn-accent:hover { background: white; color: var(--primary-deep); border-color: white; }
.cta-visual {
  border: 1.5px solid rgba(255,253,248,.18);
  border-radius: 2.4rem 1.4rem 2.4rem 1.4rem;
  background: rgba(255,253,248,.12);
  backdrop-filter: blur(10px);
  padding: 22px;
  font-family: 'Nunito', sans-serif; font-size: 13.5px; color: var(--primary-foreground);
  display: flex; flex-direction: column; gap: 14px;
  font-weight: 600;
}
.cta-line { display: flex; align-items: flex-start; gap: 12px; }
.cta-line .l-ic {
  width: 26px; height: 26px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cta-line .l-ic.good { background: rgba(255,253,248,.95); color: var(--primary); }
.cta-line .l-ic.warn { background: var(--secondary); color: white; }
.cta-line .l-ic.acc  { background: var(--accent); color: var(--primary-deep); }

/* footer */
footer { border-top: 1px dashed var(--border); padding: 56px 0; color: var(--fg-3); font-size: 14px; background: rgba(240,235,229,0.4); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot-inner a:hover { color: var(--primary); }

/* hero collapses earlier than the rest */
@media (max-width: 1180px) {
  .page-body .wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

/* responsive */
@media (max-width: 1080px) {
  .subq-grid.three { grid-template-columns: 1fr 1fr; }
  .more-limits { grid-template-columns: repeat(3, 1fr); }
  .tool-bridge { grid-template-columns: 1fr; }
  .compact-table .row { grid-template-columns: 1fr 100px; }
  .compact-table .row .h { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .hero-grid { gap: 32px; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-grid { grid-template-columns: 1fr; }
  .subq-grid, .subq-grid.three, .mistakes-grid { grid-template-columns: 1fr; }
  .more-limits { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px; }
  .h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .nav-links { display: none; }
  .wrap { padding: 0 18px; }
  .nav-shell { padding: 0 14px; }
  .previews { grid-template-columns: 1fr; }
  .diagnosis-empty { flex-direction: column; align-items: flex-start; }
  .workspace-trigger {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .workspace-trigger-copy {
    flex-basis: 100%;
  }
  .workspace-cta {
    margin-top: 4px;
  }
  .ex-row { grid-template-columns: 110px 1fr; }
  .ex-meta { grid-column: span 2; justify-content: flex-start; border-left: 0; border-top: 1px dashed var(--border); }
  .mistake { grid-template-columns: 48px 1fr; }
  .mistake .badge-no { width: 48px; height: 48px; font-size: 20px; }
  .mistake:nth-child(5n) { grid-column: auto; }
  .qa-item { padding: 22px 22px; }
  .mistake-row { padding: 20px 22px; grid-template-columns: 32px 1fr; gap: 14px; }
  .mistake-row .no { font-size: 22px; }
  .compact-table .row { padding: 16px 20px; grid-template-columns: 1fr 90px; gap: 12px; }
  .limits-table thead { display: none; }
  .limits-table tbody tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; }
  .limits-table tbody td { padding: 8px 18px; border-bottom: 0; }
  .limits-table tbody tr { border-bottom: 1px dashed var(--border); }
}

/* focus */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
