/* Mneme homepage v3: commercial rewrite (2026-12). Loaded after home-v2.css, homepage only.
   Adds the hero verdict card (rules pruned from home-v2.css in a823aeaac, restored),
   the install command, section layout, the How it works beat band and the FAQ. */

/* home-v2.css sets body overflow-x: hidden, which makes body a scroll container and
   silently breaks the sticky nav; clip hides overflow without creating one. */
html, body, body.home-v2 { overflow-x: clip; }

/* ── hero verdict card: home-v2.css rules pruned in a823aeaac, restored unchanged ── */
.hm-verdict-cap { padding: .8rem 1.15rem; border-bottom: 1px solid var(--border); color: var(--quiet); font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.hm-vband { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--border); }
.hm-vband:last-child { border-bottom: 0; }
/* the card sits below the fold on phones, so home-v2's load-in animation would play unseen */
.hm-vband { opacity: 1 !important; animation: none !important; }
.hm-vhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.hm-vtag { color: var(--muted); font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.hm-vmeta { color: var(--quiet); font-family: var(--mono); font-size: .62rem; text-align: right; }
.hm-vtext { margin: 0; color: var(--text); font-family: var(--serif); font-size: 1.32rem; line-height: 1.28; letter-spacing: -.01em; }
.hm-vband-decision { border-left: 2px solid var(--accent); }
.hm-vband-change { border-left: 2px solid var(--border2); }
.hm-vband-verdict { border-left: 2px solid var(--error); background: rgba(255, 107, 88, .055); }
.hm-vcode { margin: 0; overflow-x: auto; color: var(--muted); font-family: var(--mono); font-size: .72rem; line-height: 1.65; white-space: pre; }
.hm-vcode .bad { color: var(--error); }
.hm-vchip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border: 1px solid rgba(255, 107, 88, .5); border-radius: 3px; color: var(--error); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.hm-vchip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--error); box-shadow: 0 0 0 3px rgba(255, 107, 88, .14); }
.hm-vsource { margin: .7rem 0 0; color: var(--teal); font-family: var(--mono); font-size: .66rem; line-height: 1.6; }

/* ── page layout (mockup; phase 2 moves these into a new stylesheet file) ── */
.hm3-hero { min-height: 0; }
.hm3-hero .hm-hero-inner { width: min(1180px, calc(100% - 3rem)); min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); padding: 4.5rem 0 4rem; gap: clamp(2.5rem, 5vw, 5rem); }
.hm3-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: .98; letter-spacing: -.035em; max-width: 13ch; }
.hm3-sub { max-width: 46ch; margin: 1.5rem 0 0; color: #c8ccc6; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; }
.hm3-cmd { display: flex; align-items: center; gap: .6rem; max-width: 520px; margin-top: 1rem; padding: .5rem .5rem .5rem .9rem; border: 1px solid var(--border2); background: var(--surface); }
.hm3-cmd code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--teal); font-family: var(--mono); font-size: .8rem; }
.hm3-cmd code::before { content: '$ '; color: var(--quiet); }
.hm3-cmd button { flex: none; min-width: 64px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--border2); border-radius: 2px; background: var(--surface2); color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.hm3-cmd button:hover { border-color: var(--accent); color: var(--accent); }
.hm3-meta { margin: .9rem 0 0; color: var(--quiet); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; }
.hm3-section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; border-top: 1px solid var(--border); }
.hm3-title { margin: 0; max-width: 22ch; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.hm3-lede { max-width: 62ch; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.hm3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2rem 0 0; padding: 0; list-style: none; border: 1px solid var(--border); background: var(--border); }
.hm3-grid > li { display: grid; align-content: start; gap: .5rem; padding: 1.4rem 1.35rem; background: var(--bg); }
.hm3-grid .layer-num { color: var(--accent); font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; }
.hm3-grid strong { color: var(--text); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.hm3-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.hm3-grid code { color: var(--teal); font-family: var(--mono); font-size: .84em; }
.hm3-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.1rem; color: var(--teal); font-family: var(--mono); font-size: .76rem; text-decoration: none; }
.hm3-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.hm3-proof { margin: 1.6rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.hm3-proof a { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: 1rem; min-height: 56px; padding: .7rem 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.hm3-proof a:hover { background: var(--surface); }
.hm3-proof span { color: var(--quiet); font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.hm3-proof p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.hm3-proof em { color: var(--teal); font-family: var(--mono); font-size: .74rem; font-style: normal; white-space: nowrap; }
.hm3-faq { display: grid; gap: .6rem; margin-top: 1.6rem; max-width: 820px; }
.hm3-faq details { border: 1px solid var(--border); background: var(--surface); }
.hm3-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; padding: .6rem 1.1rem; cursor: pointer; list-style: none; color: var(--text); font-size: 1rem; font-weight: 500; }
.hm3-faq summary::-webkit-details-marker { display: none; }
.hm3-faq summary::after { content: '+'; color: var(--accent); font-family: var(--mono); }
.hm3-faq details[open] summary::after { content: '\2212'; }
.hm3-faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.hm3-faq a { color: var(--teal); }
.hm3-photo { margin: 0; border-top: 1px solid var(--border); background: var(--surface); }
.hm3-photo img { display: block; width: 100%; max-width: 1180px; height: auto; max-height: 360px; margin: 0 auto; object-fit: cover; }
.hm3-final { padding: 4rem 0 3.5rem; }
.hm3-final h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 18ch; }
.hm3-final .hm3-lede { margin-inline: auto; text-align: center; }

@media (max-width: 900px) {
  .hm3-hero .hm-hero-inner { grid-template-columns: 1fr; padding: 2.4rem 0 2.6rem; gap: 2rem; }
  .hm3-hero .hm-verdict { margin-top: 0; }
  .hm3-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hm3-hero .hm-hero-inner { width: calc(100% - 2rem); padding-top: 1.7rem; gap: 1.5rem; }
  .hm3-hero .hm-kicker { margin-bottom: .9rem; font-size: .62rem; }
  .hm3-hero .hm-kicker::before, .hm3-hero.hm-hero::after { display: none; }
  .hm3-hero h1 { font-size: 2.35rem; }
  .hm3-sub { margin-top: .9rem; font-size: .96rem; line-height: 1.6; }
  .hm3-hero .hm-actions { margin-top: 1.2rem; gap: .6rem; }
  .hm3-hero .hm-btn { min-height: 48px; padding-block: .6rem; }
  .hm3-cmd code { font-size: .74rem; }
  .hm-vband { padding: .85rem 1rem; }
  .hm-vtext { font-size: 1.1rem; }
  .hm-vhead { flex-direction: row; align-items: baseline; margin-bottom: .45rem; }
  .hm-vcode { font-size: .68rem; }
  .hm3-section { padding: 2.6rem 0; }
  .hm3-title { font-size: 1.85rem; }
  .hm3-grid { margin-top: 1.4rem; }
  .hm3-grid > li { padding: 1.1rem 1.1rem; gap: .35rem; }
  .hm3-proof a { grid-template-columns: 1fr auto; gap: .2rem .8rem; }
  .hm3-proof span { grid-column: 1 / -1; }
  .hm3-photo img { max-height: 140px; }
  .hm3-final { padding: 2.8rem 0 2.6rem; }
  .hm3-final h2 { font-size: 2.1rem; }
}

/* How it works: a full-bleed beat band so the section reads as its own step.
   #151717 is the documented home-v2 beat surface (.hm-pathways). */
.hm3-band { background: #151717; border-top-color: var(--border2); border-bottom: 1px solid var(--border2); }
.hm3-band .hm3-grid > li { background: var(--bg); }

/* inline links inside step and FAQ text keep a 44px tap target */
.hm3-grid p a, .hm3-faq p a { display: inline; padding-block: 14px; color: var(--teal); }

/* the nav drops its backdrop blur at 768px and below, so it needs a near-opaque fill there */
@media (max-width: 768px) { .home-v2 nav { background: rgba(9,10,10,.97); } }

/* inline code in the verdict line stays in proportion to the serif text */
.hm-vtext code { font-family: var(--mono); font-size: .72em; color: var(--text); }

/* ── The problem in numbers: third-party figures, numerals in DM Mono, muted source line ── */
.hm3-numbers { padding: 2.6rem 0 2.8rem; border-top: 1px solid var(--border); }
.hm3-numbers .hm-section-label { margin: 0 0 1.2rem; font-weight: 400; }
.hm3-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); background: var(--border); }
.hm3-stats a { display: flex; flex-direction: column; gap: .45rem; height: 100%; min-height: 44px; padding: 1.2rem 1.25rem; background: var(--bg); color: var(--text); text-decoration: none; transition: background .15s; }
.hm3-stats a:hover { background: var(--surface); }
.hm3-stats a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hm3-stats strong { font-family: var(--mono); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.hm3-stats strong small { font-size: .55em; color: var(--quiet); }
.hm3-stats p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.hm3-stats span { margin-top: auto; color: var(--quiet); font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; line-height: 1.5; }

/* ── How it works flow (propagation primitive from diagrams-v2.css, tuned for one source) ── */
.hm3-flow { margin: 2rem 0 0; }
.hm3-flow .mneme-diagram--propagation { background: var(--bg); border-color: var(--border2); }
.hm3-flow .pipeline { grid-template-columns: minmax(0, 300px); justify-content: center; }
.hm3-flow .consumers { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hm3-flow .consumers::before { left: 16.6%; right: 16.6%; }
.hm3-flow .n-title { font-size: .95rem; }
.hm3-flow .n-sub { font-size: .7rem; }
.hm3-flow .equiv { font-size: .8rem; letter-spacing: .08em; }
.hm3-flow .equiv small { font-size: .72rem; letter-spacing: 0; line-height: 1.5; }
.hm3-links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: .4rem 0 0; }

@media (max-width: 900px) {
  .hm3-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hm3-numbers { padding: 2rem 0 2.2rem; }
  .hm3-stats a { padding: 1rem 1.05rem; gap: .35rem; }
  .hm3-stats strong { font-size: 1.45rem; }
  .hm3-flow { margin-top: 1.4rem; }
  .hm3-flow .mneme-diagram--propagation { padding: 1rem; }
  .hm3-flow .pipeline { grid-template-columns: 1fr; }
  /* stack the three places vertically, as the primitive does on phones */
  .hm3-flow .consumers { grid-template-columns: 1fr; gap: 8px; }
  .hm3-flow .node { text-align: left; padding: .7rem .9rem; }
  /* the primitive hides the fan-out bars on phones; keep a short connector between rows */
  .hm3-flow .bus { height: 22px; }
}
