/* CodeReviewer marketing — multi-page layer on top of site.css.
   Same rule as site.css: authored styles are the final resting state; JS only
   adds motion. Tokens (--night, --eye, …) come from site.css. */

/* `hidden` must win over component display rules (.btn, .gate form, …). */
[hidden] { display: none !important; }

/* ---------------- mega-menu ---------------- */
.nav-links { align-items: center; }
.nav-links a[aria-current="page"], .mm-trigger[aria-current="page"] { color: var(--pelt); }
.mm { position: relative; }
.mm-trigger {
  font: inherit; color: var(--ash); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
  transition: color 0.15s;
}
.mm-trigger::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: 0.7;
}
.mm-trigger:hover, .mm.open .mm-trigger { color: var(--pelt); }
.mm-panel {
  position: absolute; top: calc(100% + 10px); left: -18px; z-index: 60;
  min-width: 300px; padding: 10px;
  background: var(--den); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.95);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
/* hover bridge so the pointer can travel from trigger to panel */
.mm-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mm:hover .mm-panel, .mm:focus-within .mm-panel, .mm.open .mm-panel {
  opacity: 1; visibility: visible; transform: none;
}
.mm-wide { width: min(860px, calc(100vw - 48px)); left: -120px; padding: 18px; }
.mm-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mm-col { display: grid; align-content: start; gap: 2px; }
.mm-title {
  display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); padding: 6px 10px 8px;
}
.mm-link { display: grid; gap: 1px; padding: 9px 10px; border-radius: 9px; transition: background 0.12s; }
.mm-link b { color: var(--pelt); font-weight: 500; font-size: 14px; }
.mm-link span { color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.mm-link:hover, .mm-link:focus-visible { background: var(--den-2); }
.mm-foot {
  display: block; margin-top: 12px; padding: 12px 10px 4px;
  border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--eye);
}
.mobile-menu { max-height: calc(100svh - 64px); overflow-y: auto; }
.mobile-menu details { border-top: 1px solid var(--line-soft); }
.mobile-menu details:first-child { border-top: none; }
.mobile-menu summary {
  list-style: none; cursor: pointer;
  padding: 13px 2px; font-size: 15px; color: var(--pelt);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: '+'; float: right; color: var(--dim); }
.mobile-menu details[open] summary::after { content: '−'; }
.mobile-menu details a { display: block; padding: 9px 2px 9px 14px; border-top: none; font-size: 14px; }

/* ---------------- footer ---------------- */
footer { padding: 56px 0 28px; }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.foot-brand p { margin: 12px 0 18px; max-width: 30ch; color: var(--ash); font-size: 13.5px; }
.foot-col { display: grid; align-content: start; gap: 9px; }
.foot-col a { color: var(--dim); transition: color 0.15s; }
.foot-col a:hover { color: var(--pelt); }
.foot-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); margin-bottom: 4px; }
.foot-gap { margin-top: 14px; }
.foot-addr { margin-top: 40px; }
.foot-legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px;
  font-size: 12px; color: var(--dim);
}
.foot-legal a:hover { color: var(--pelt); }

/* ---------------- shared bits ---------------- */
.more-link {
  display: inline-block; margin-top: 20px;
  font-size: 13px; color: var(--eye);
  border-bottom: 1px solid rgba(240, 169, 59, 0.3); padding-bottom: 2px;
  transition: border-color 0.15s;
}
.more-link:hover { border-color: var(--eye); }
.badge {
  font-style: normal; font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--eye); border: 1px solid rgba(240, 169, 59, 0.35);
  border-radius: 999px; padding: 1px 8px; margin-left: 10px; vertical-align: 2px;
}
.pill {
  font-size: 10.5px; color: var(--ash);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.pill-fail { color: var(--fail); border-color: rgba(224, 104, 75, 0.35); }
.pill-pass { color: var(--pass); border-color: rgba(88, 192, 125, 0.35); }
.pill-eye { color: var(--eye); border-color: rgba(240, 169, 59, 0.35); }

/* ---------------- page hero ---------------- */
.page-hero { position: relative; overflow: hidden; padding: 148px 0 72px; }
.page-hero .moonrise { top: -520px; }
.page-hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.page-hero.with-mock .page-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 22px; max-width: 18ch; }
.page-hero .lede { color: var(--ash); font-size: 17px; max-width: 58ch; margin-bottom: 30px; }
.page-hero .cta-row { justify-content: flex-start; }
.page-hero-mock { display: flex; justify-content: center; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin-bottom: 18px; }
.crumbs a:hover { color: var(--pelt); }
.crumbs [aria-current] { color: var(--ash); }

/* ---------------- stats ---------------- */
.stat-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line-soft); display: grid; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: clamp(26px, 3vw, 36px); color: var(--pelt); }
.stat span { color: var(--dim); font-size: 13.5px; }

/* ---------------- problem band (feature pages) ---------------- */
.problem-band .problem-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.problem-band h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 16ch; margin-bottom: 0; }

/* ---------------- how (variable step count) ---------------- */
.how-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.how-grid.n5 { grid-template-columns: repeat(5, 1fr); }

/* ---------------- card grids ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap-card {
  position: relative; display: block;
  background: var(--den); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 24px 24px 22px;
}
.cap-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--pelt); }
.cap-card p { font-size: 14px; color: var(--ash); }
.cap-card .qual-eyebrow { margin-bottom: 8px; }
.link-card { transition: border-color 0.15s, transform 0.15s; padding-bottom: 44px; }
.link-card:hover { border-color: rgba(240, 169, 59, 0.45); transform: translateY(-2px); }
.link-card > i { position: absolute; left: 24px; bottom: 18px; font-style: normal; color: var(--eye); font-size: 14px; }

/* ---------------- platform strip / product overview ---------------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pgroup {
  display: grid; align-content: start; gap: 2px;
  background: var(--den); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px;
}
.plink { position: relative; display: grid; gap: 2px; padding: 10px 28px 10px 10px; border-radius: 9px; transition: background 0.12s; }
.plink b { font-weight: 500; font-size: 14.5px; }
.plink span { color: var(--dim); font-size: 12.5px; }
.plink i { position: absolute; right: 10px; top: 12px; font-style: normal; color: var(--dim); transition: color 0.12s, transform 0.12s; }
.plink:hover { background: var(--den-2); }
.plink:hover i { color: var(--eye); transform: translateX(2px); }
.loop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.loop-step { border-top: 2px solid var(--eye); padding-top: 18px; }
.loop-n { font-size: 12px; color: var(--eye); }
.loop-step h3 { font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; font-weight: 800; font-size: 24px; margin: 6px 0 8px; }
.loop-step p { font-size: 13.5px; color: var(--ash); }
.product-group { padding: 40px 0; }
.product-group .section-head { margin-bottom: 18px; }

/* ---------------- mocks ---------------- */
.mock-stack { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.mock-stack .pr-mini { max-width: none; }
.find-card.static { position: static; width: auto; }
.mock-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.mock-row .phone-mock { margin: 0; }
.page-hero-mock .browser-mock, .page-hero-mock .suite-board,
.page-hero-mock .scope-board, .page-hero-mock .qual-card { width: 100%; max-width: 480px; }
.mock-card {
  width: 100%; max-width: 440px;
  background: var(--den); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-title { font-weight: 600; font-size: 15.5px; }
.mock-meta { font-size: 12px; color: var(--dim); margin: 4px 0 14px; }
.mock-timeline { list-style: none; font-size: 12.5px; }
.mock-timeline li { padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--ash); }
.mock-timeline b { color: var(--pelt); font-weight: 500; }
.mock-timeline .ok::first-letter { color: var(--pass); }
.mock-timeline .bad::first-letter { color: var(--fail); }
.mock-timeline .wait { color: var(--eye); }
.perm-list { list-style: none; font-size: 12.5px; margin-top: 12px; }
.perm-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--ash); }
.perm-list b { font-weight: 500; }
.perm-list .on { color: var(--pass); }
.perm-list .off { color: var(--dim); }
.req em.ev { color: var(--dim); }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 36px 18px 0; font-size: 15.5px; font-weight: 500; color: var(--pelt);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 16px;
  font-family: 'Geist Mono', monospace; font-size: 18px; color: var(--eye);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--ash); font-size: 14.5px; padding: 0 36px 20px 0; max-width: 68ch; }

/* ---------------- prose (markdown bodies) ---------------- */
.prose-wrap { display: flex; justify-content: center; }
.prose { max-width: 720px; width: 100%; color: var(--ash); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; color: var(--pelt);
  margin-top: 2em;
}
.prose h3 { font-size: 18px; font-weight: 600; color: var(--pelt); margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--pelt); font-weight: 600; }
.prose a { color: var(--eye); border-bottom: 1px solid rgba(240, 169, 59, 0.35); }
.prose a:hover { border-color: var(--eye); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--dim); }
.prose blockquote {
  border-left: 2px solid var(--eye); padding: 4px 0 4px 20px;
  color: var(--pelt); font-size: 18px;
}
.prose code {
  font-family: 'Geist Mono', monospace; font-size: 0.86em;
  background: var(--den-2); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px;
}
.prose pre {
  background: var(--den); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { color: var(--pelt); font-weight: 600; }
.article-head { position: relative; overflow: hidden; padding: 148px 0 40px; }
.article-head .moonrise { top: -560px; }
.article-head .wrap { position: relative; }
.article-head .wrap { max-width: 800px; }
.article-head h1 { font-size: clamp(32px, 4vw, 52px); margin: 8px 0 18px; }
.article-head .lede { color: var(--ash); font-size: 17.5px; max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 12.5px; color: var(--dim); }

/* ---------------- comparison / pricing tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--den); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); font-weight: 500; background: var(--den-2); }
.cmp td:first-child { color: var(--pelt); font-weight: 500; width: 30%; }
.cmp td { color: var(--ash); }
.cmp .us { color: var(--pelt); }
.cmp .yes { color: var(--pass); }
.cmp .no { color: var(--dim); }
.cmp .group td { background: var(--den-2); color: var(--eye); font-family: 'Geist Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------------- listing cards (blog, customers, whitepapers) ---------------- */
.list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.list-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--den); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 24px; transition: border-color 0.15s, transform 0.15s;
}
.list-card:hover { border-color: rgba(240, 169, 59, 0.45); transform: translateY(-2px); }
.list-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--pelt); }
.list-card p { font-size: 14px; color: var(--ash); flex: 1; }
.list-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--dim); }
.list-card .results { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.list-card .results b { display: block; font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; font-weight: 800; font-size: 22px; color: var(--eye); }
.list-card .results span { font-size: 11.5px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font: inherit; font-size: 12.5px; color: var(--ash); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.chip[aria-pressed="true"] { color: var(--night); background: var(--eye); border-color: var(--eye); }

/* ---------------- quotes + story ---------------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 106; font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--pelt);
}
.quote blockquote::before { content: '“'; color: var(--eye); }
.quote blockquote::after { content: '”'; color: var(--eye); }
.quote figcaption { margin-top: 16px; font-size: 13px; color: var(--dim); }
.story-facts { display: grid; gap: 14px; align-content: start; }
.story-facts div { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.story-facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.story-facts dd { color: var(--pelt); font-size: 14.5px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 56px; }
.story-grid .prose-wrap { justify-content: flex-start; }
.note {
  font-size: 12.5px; color: var(--dim);
  border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px;
}

/* ---------------- gated download / inline forms ---------------- */
.gate {
  background: var(--den); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: grid; gap: 14px; align-content: start;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
}
.gate h2 { font-size: 20px; font-weight: 600; }
.gate p { font-size: 14px; color: var(--ash); }
.gate form { display: grid; gap: 10px; }
.gate .wl-input, .gate textarea, .gate select { width: 100%; min-width: 0; }
.gate textarea {
  font-family: 'Geist', sans-serif; font-size: 14.5px; color: var(--pelt);
  background: var(--night); border: 1px solid var(--line); border-radius: 9px; padding: 11px 16px;
  min-height: 110px; resize: vertical; outline: none;
}
.gate textarea:focus-visible { border-color: var(--eye); }
.gate .wl-input { background: var(--night); }
.gate .btn { justify-content: center; }
.gate .wl-msg { margin-top: 0; }
.gate-fine { font-size: 11.5px; color: var(--dim); }
.takeaways { list-style: none; display: grid; gap: 10px; }
.takeaways li { position: relative; padding-left: 26px; color: var(--ash); font-size: 15px; }
.takeaways li::before { content: '→'; position: absolute; left: 0; color: var(--eye); }
.wp-cover {
  aspect-ratio: 3 / 4; max-width: 280px; width: 100%;
  background: linear-gradient(160deg, var(--den-2), var(--night));
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
}
.wp-cover b { font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; font-weight: 800; font-size: 22px; line-height: 1.15; }
.wp-cover span { font-size: 11px; color: var(--eye); }

/* ---------------- changelog + glossary ---------------- */
.log-entry { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line-soft); }
.log-entry time { font-size: 12.5px; color: var(--dim); }
.log-entry h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--pelt); }
.log-entry .prose { font-size: 15px; }
.gloss-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.gloss-index a { font-size: 12.5px; color: var(--ash); border: 1px solid var(--line-soft); border-radius: 7px; padding: 4px 10px; }
.gloss-index a:hover { color: var(--pelt); border-color: var(--line); }
.gloss dl { display: grid; gap: 0; }
.gloss dt { font-size: 17px; font-weight: 600; color: var(--pelt); padding-top: 22px; border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.gloss dd { color: var(--ash); font-size: 15px; padding: 6px 0 22px; max-width: 72ch; }
.gloss dd a { color: var(--eye); }

/* ---------------- 404 ---------------- */
.notfound { min-height: 80svh; display: flex; align-items: center; text-align: center; padding: 140px 0 80px; }
.notfound .wrap { display: flex; flex-direction: column; align-items: center; }
.notfound h1 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 16px; }
.notfound p { color: var(--ash); margin-bottom: 28px; }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .page-hero { padding: 116px 0 48px; }
  .page-hero.with-mock .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .problem-band .problem-grid, .faq-grid, .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid, .list-grid, .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .how-grid.n3, .how-grid.n5 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:first-child { border-top: 0; }
  .log-entry { grid-template-columns: 1fr; gap: 8px; }
  .article-head { padding: 116px 0 32px; }
}
@media (max-width: 620px) {
  .card-grid, .card-grid.two, .list-grid, .pgrid, .loop-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-hero .cta-row { flex-direction: column; align-items: stretch; }
  .page-hero .cta-row .btn { justify-content: center; }
}

/* ---------------- AI-content disclosure ---------------- */
.ai-note { margin-top: 14px; font-size: 11.5px; color: var(--dim); }
.ai-note a, .foot-ai a { color: var(--ash); border-bottom: 1px solid var(--line); }
.ai-note a:hover, .foot-ai a:hover { color: var(--pelt); }
.foot-ai { flex-basis: 100%; order: 9; }
