/* Lizvo / Mothex landing page. Plain CSS, no framework, no external requests.
   Fonts are self-hosted (SIL Open Font License 1.1, see assets/fonts/OFL-*.txt). */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/source-serif-4-var.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --ivory: #FAF9F5;      /* page background */
  --cream: #F0EEE6;      /* cards, bands */
  --sand: #E3DFD3;       /* hairlines, borders */
  --ink: #141413;        /* main text, primary buttons (17.5:1 on ivory) */
  --muted: #5E5D59;      /* secondary text (6.3:1 on ivory) */
  --clay: #D97757;       /* accent: backgrounds/decoration only (with ink text 5.9:1) */
  --clay-text: #A9502B;  /* accent used as text (4.7:1 on cream, 5:1 on ivory) */
  --proved: #3D7A52;     /* DONE-PROVED / check marks only (4.9:1) */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--clay); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--clay-text); }
:focus-visible { outline: 3px solid var(--clay-text); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-text); margin-bottom: 1.1rem; }
.lede { font-size: 1.2rem; color: var(--ink); max-width: 38em; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--sand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg, .brand img { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.06em; }
.brand-sub { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; border-left: 1px solid var(--sand); padding-left: 12px; }
.nav { display: flex; gap: 26px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 10px; font-weight: 500; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--ink); transition: background .15s, color .15s; }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: #2b2a27; color: var(--ivory); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--cream); color: var(--ink); }
.btn-clay { background: var(--clay); border-color: var(--clay); color: var(--ink); }
.btn-clay:hover { background: #e48b6e; color: var(--ink); }
.text-link { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 2rem 0 1.4rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { font-family: var(--mono); font-size: 0.78rem; padding: 4px 10px; border: 1px solid var(--sand); border-radius: 999px; color: var(--muted); background: var(--ivory); }
.status { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; padding: 2px 8px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.s-proved { color: #fff; background: var(--proved); }
.s-claimed { color: var(--clay-text); background: transparent; border: 1px solid var(--clay-text); }
.s-active { color: var(--ink); background: var(--sand); }
.s-blocked { color: var(--muted); background: transparent; border: 1px dashed var(--muted); }

/* Sections */
section { padding: 104px 0; }
.band { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 3rem; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.ledger { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: 0 1px 0 var(--sand), 0 24px 48px -32px rgba(20,20,19,.25); overflow: hidden; }
.ledger-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--sand); background: var(--cream);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--sand); font-size: 0.93rem; }
.ledger li:last-child { border-bottom: 0; }
.ledger .id { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.ledger .proof { display: block; font-size: 0.8rem; color: var(--muted); }
.ledger-note { padding: 10px 18px; font-size: 0.76rem; color: var(--muted); border-top: 1px solid var(--sand); font-family: var(--mono); }

/* Problem */
.quotes { background: var(--ivory); border-left: 3px solid var(--clay); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 32px; margin: 0 0 2.4rem; }
.quotes p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; margin: 0 0 0.55em; }
.quotes p:last-child { margin: 0; }
.question { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; }

/* Method */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 3rem; }
.step { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius); padding: 30px; }
.band .step { background: var(--ivory); }
.step-num { font-family: var(--mono); font-size: 0.8rem; color: var(--clay-text); margin-bottom: 0.8rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.step p:last-child { margin-bottom: 0; }
.callout { border-top: 1px solid var(--sand); padding-top: 2rem; max-width: 760px; }

/* Offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { border: 1px solid var(--sand); border-radius: var(--radius); padding: 36px; background: var(--ivory); display: flex; flex-direction: column; }
.offer.dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.offer.dark .muted, .offer.dark .eyebrow { color: #C9C6BC; }
.offer.dark .eyebrow { color: #E8A588; }
.offer .price { font-family: var(--serif); font-size: 2rem; margin: 0.2rem 0 1rem; }
.offer .price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.offer.dark .price small { color: #C9C6BC; }
.template-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0.4rem 0 1.4rem; }
.template-list li { font-family: var(--mono); font-size: 0.74rem; padding: 3px 8px; background: var(--cream); border-radius: 6px; }
.addons { border-top: 1px solid var(--sand); margin-top: auto; padding-top: 1.4rem; }
.offer.dark .addons { border-color: #3a3935; }
.offer .btn { margin-top: 0.4rem; }
.offer.dark .btn-secondary { color: var(--ivory); border-color: var(--ivory); }
.offer.dark .btn-secondary:hover { background: #2b2a27; }
.note { font-size: 0.88rem; }
.starts-free { margin-top: 24px; padding: 28px 36px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--sand); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.starts-free p { margin: 0; max-width: 46em; }
.starts-free .btn { white-space: nowrap; flex-shrink: 0; }

/* Founder */
.founder p:not(.eyebrow):not(.signoff) { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; }
.signoff { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); margin-top: 2rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); }
.plan h3 { margin-bottom: 0.2em; }
.plan .price { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; margin: 0.4rem 0 0.2rem; }
.plan .per { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.4rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--sand); position: relative; font-size: 0.95rem; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--proved); font-weight: 600; }
.plan li.no::before { content: "—"; color: var(--muted); font-weight: 400; }
.plan li.no { color: var(--muted); }
.plan .btn { width: 100%; }
.thumb { margin-top: 2.4rem; max-width: 800px; }

/* FAQ */
.faq details { border-top: 1px solid var(--sand); }
.faq details:last-of-type { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--sans); font-size: 1.5rem; color: var(--clay-text); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; max-width: 46em; }

/* Final CTA */
.final { background: var(--ink); color: var(--ivory); }
.final .lede { color: #DAD7CD; }
.final .btn-secondary { color: var(--ivory); border-color: #6f6d66; }
.final .btn-secondary:hover { background: #2b2a27; color: var(--ivory); }
.final .chip { background: transparent; color: #C9C6BC; border-color: #3a3935; }
.final a.text-link { color: var(--ivory); }

/* Footer */
.site-footer { padding: 56px 0 64px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-links a { color: var(--ink); }
.disclaimer { max-width: 60em; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .plans { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .wrap { padding: 0 20px; }
  .steps, .offers, .footer-grid { grid-template-columns: 1fr; }
  .offer, .step, .plan { padding: 24px; }
  .quotes { padding: 20px 22px; }
  .quotes p { font-size: 1.15rem; }
  .starts-free { flex-direction: column; align-items: flex-start; padding: 24px; }
  .actions .btn { width: 100%; }
  .brand-sub { display: none; }
  .ledger li { grid-template-columns: 2rem 1fr; }
  .ledger li .status { grid-column: 2; justify-self: start; }
}

/* ---------- Lizvo hub bar (shared by every page) ---------- */
.hubbar { background: var(--cream); border-bottom: 1px solid var(--sand); font-size: 0.9rem; }
.hubbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.hub-home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; letter-spacing: 0.08em; }
.hub-home img { width: 22px; height: 22px; }
.hub-back { font-family: var(--sans); font-weight: 400; letter-spacing: 0; color: var(--muted); border-left: 1px solid var(--sand); padding-left: 10px; }
.hub-home:hover .hub-back { color: var(--clay-text); }
.hubbar nav { display: flex; gap: 20px; }
.hubbar nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.hubbar nav a:hover { color: var(--ink); }
.hubbar nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--clay); }
@media (max-width: 560px) { .hub-back { display: none; } .hubbar nav { gap: 14px; } }

/* ---------- Hub page ---------- */
.hub-hero { padding: 96px 0 88px; }
.hub-hero h1 { max-width: 14em; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product { border: 1px solid var(--sand); border-radius: var(--radius); background: var(--ivory); padding: 36px; display: flex; flex-direction: column; }
.product h3 { font-size: 1.9rem; margin-bottom: 0.1em; }
.product .tagline { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.product .chips { margin: 0.4rem 0 1.6rem; }
.product .btn { margin-top: auto; align-self: flex-start; }
.product.dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.product.dark .tagline { color: #C9C6BC; }
.product.dark .chip { background: transparent; border-color: #3a3935; color: #C9C6BC; }
.product.dark .btn-primary { background: var(--clay); border-color: var(--clay); color: var(--ink); }
.product.dark .btn-primary:hover { background: #e48b6e; color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--muted); }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } .product { padding: 24px; } .hub-hero { padding: 56px 0 64px; } }

/* ---------- FailureExtractor page ---------- */
.fe-hero { padding: 88px 0 96px; }
.fe-hero h1 { max-width: 13em; }
.growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.growth-card { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius); padding: 30px; }
.growth-card .step-num { margin-bottom: 0.8rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sand); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--clay); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font-family: var(--mono); font-size: 0.78rem; color: var(--clay-text); display: block; }
.entry { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: 0 1px 0 var(--sand), 0 24px 48px -32px rgba(20,20,19,.25); overflow: hidden; }
.entry dl { margin: 0; }
.entry .row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--sand); font-size: 0.92rem; }
.entry dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.entry dd { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 1.6rem; }
.kind { border: 1px solid var(--sand); border-radius: var(--radius); padding: 26px; background: var(--ivory); }
.kind h3 { font-size: 1.25rem; }
.kind p:last-child { margin-bottom: 0; }
.status-box { border: 1px solid var(--sand); border-radius: var(--radius); background: var(--ivory); padding: 30px 34px; }
.status-box dl { margin: 0; display: grid; grid-template-columns: 12rem 1fr; gap: 10px 20px; }
.status-box dt { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 3px; }
.status-box dd { margin: 0; }
@media (max-width: 960px) { .growth-grid, .two-col, .kinds { grid-template-columns: 1fr; gap: 20px; } .two-col { gap: 40px; } }
@media (max-width: 760px) { .fe-hero { padding: 56px 0 64px; } .entry .row { grid-template-columns: 1fr; gap: 2px; } .status-box { padding: 22px; } .status-box dl { grid-template-columns: 1fr; gap: 2px 0; } .status-box dd { margin-bottom: 12px; } }
.band .template-list li { background: var(--ivory); border: 1px solid var(--sand); }

/* Mothex name meaning (acronym line in hero) */
.name-meaning { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); margin: -0.2em 0 1.6em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35em 0.8em; }
.name-meaning .nm-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-text); border: 1px solid var(--sand); border-radius: 999px; padding: 2px 9px; background: var(--cream); }
.name-meaning b { color: var(--clay-text); font-weight: 600; }
.name-meaning .nm-and { font-style: italic; }
