/* ============ Marketing v2 — dark redesign ============
 * docs/marketing-v2-design.md §4. Loaded by base_marketing_v2.html only
 * (MARKETING_V2_ENABLED). Everything is scoped under .m2 so nothing here can
 * reach the signed-in app, the borrower report or a flag-off page.
 *
 * Rules carried from CLAUDE.md, which the tests in
 * homepage/tests/test_marketing_v2.py enforce:
 *   - Tokens are HEX. A load-bearing colour is written hex first, then a
 *     LITERAL oklch() (§4.13 bite #2) — never var(--c-*), which resolves to
 *     oklch and blanks the property on the floor browser.
 *   - No `inset:` shorthand; top/right/bottom/left longhands (§4.13).
 *   - A class that sets display: on an element JS toggles with `hidden` is
 *     followed by its .thing[hidden] { display: none } partner (§4.13 bite #3).
 *   - Visible focus everywhere; nothing hover-only.
 *   - No horizontal scroll at 360px — by layout, not overflow-x: clip.
 */

/* ---------- Fonts (shared bytes with reading.css; the cache is shared too) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* The PO's alternate display face. Declared, unreferenced: an unreferenced
   @font-face downloads nothing, so "swap to Space Grotesk" is a one-line edit
   of --m2-font-display below. OFL — see fonts/OFL.txt. */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (hex is the source of truth) ---------- */
.m2 {
  --m2-ink: #0d0e12;
  --m2-ink-2: #15161c;
  --m2-ink-3: #1e2029;
  --m2-line: #2a2c37;
  --m2-text: #ecedf2;
  --m2-text-2: #a9acba;
  --m2-indigo: #8b8ff7;
  --m2-indigo-solid: #5b5fe0;
  --m2-money: #5fd39a;
  --m2-paper: #faf9f6;

  /* The single display token (PO condition). */
  --m2-font-display: "Fraunces", Georgia, serif;
  --m2-font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --m2-wrap: 1180px;
  --m2-gutter: 24px;
  --m2-radius: 14px;
  --m2-nav-h: 64px;
}

/* ---------- Base ---------- */
body.m2 {
  margin: 0;
  font-family: var(--m2-font-text);
  -webkit-font-smoothing: antialiased;
}
body.m2--dark {
  background: #0d0e12;
  background: oklch(0.165 0.009 274.3);
  color: #ecedf2;
  color: oklch(0.947 0.007 277.2);
}
.m2 *, .m2 *::before, .m2 *::after { box-sizing: border-box; }
.m2 :focus-visible {
  outline: 2px solid var(--m2-indigo);
  outline-offset: 2px;
}
.m2 img { max-width: 100%; height: auto; }
.m2-wrap {
  width: 100%;
  max-width: var(--m2-wrap);
  margin: 0 auto;
  padding-left: var(--m2-gutter);
  padding-right: var(--m2-gutter);
}
@media (max-width: 640px) {
  .m2 { --m2-gutter: 18px; }
}
.m2-sr-only, .m2 .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Type on the dark surface. h1/h2 use the display token only. */
.m2--dark h1, .m2--dark h2,
.m2 .m2-display {
  font-family: var(--m2-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--m2-text);
  margin: 0;
  text-wrap: balance;
}
.m2--dark h3 {
  font-family: var(--m2-font-text);
  font-weight: 650;
  font-size: 18px;
  line-height: 1.3;
  color: var(--m2-text);
  margin: 0;
  text-wrap: balance;
}
.m2--dark p { color: var(--m2-text-2); line-height: 1.6; }
.m2--dark a { color: var(--m2-indigo); }
.m2--dark a:hover { color: var(--m2-text); }
.m2 .m2-num { font-variant-numeric: tabular-nums; }
.m2 .m2-money { color: var(--m2-money); }

/* ---------- Buttons ----------
 * _marketing_cta.html emits `btn btn-accent` + `btn <secondary_class>`; on the
 * v2 shell the secondary is m2-btn-ghost. .btn-accent's own fill is an oklch
 * var(--c-accent) — load-bearing here, so hex first + literal oklch. */
.m2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-family: var(--m2-font-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.m2 .btn-accent,
.m2 .btn-accent:link,
.m2 .btn-accent:visited {
  background: #5b5fe0;
  background: oklch(0.555 0.192 276.8);
  color: #ffffff;
}
.m2 .btn-accent:hover,
.m2 .btn-accent:focus-visible {
  background: #4c50cf;
  background: oklch(0.505 0.192 275.7);
  color: #ffffff;
}
.m2 .m2-btn-ghost,
.m2 .m2-btn-ghost:link,
.m2 .m2-btn-ghost:visited {
  background: transparent;
  border-color: #3a3d4b;
  color: var(--m2-text);
}
.m2 .m2-btn-ghost:hover,
.m2 .m2-btn-ghost:focus-visible {
  background: var(--m2-ink-3);
  border-color: var(--m2-text-2);
  color: var(--m2-text);
}
.m2 .m2-link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--m2-indigo);
}
.m2 .m2-link-arrow:hover,
.m2 .m2-link-arrow:focus-visible { text-decoration: underline; }

/* CTA row from _marketing_cta.html (row_class="m2-cta-row"). */
.m2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.m2 .mkt-cta-fineprint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--m2-text-2);
}

/* ---------- Messages (v1 markup, restyled) ---------- */
.m2-messages {
  background: var(--m2-ink-2);
  border-bottom: 1px solid var(--m2-line);
  color: var(--m2-text);
  padding: 12px 0;
  font-size: 14px;
}

/* ---------- Nav ---------- */
.m2-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d0e12;
  background: oklch(0.165 0.009 274.3);
  border-bottom: 1px solid var(--m2-line);
  color: var(--m2-text);
  font-family: var(--m2-font-text);
}
.m2-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--m2-nav-h);
}
.m2-brand,
.m2-brand:link,
.m2-brand:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--m2-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.m2-brand img { width: 24px; height: 24px; }
.m2-nav-panel {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 24px;
}
.m2-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.m2-nav-links > li { position: relative; }
.m2-nav-link,
.m2-nav-link:link,
.m2-nav-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--m2-text-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.m2-nav-link[aria-current="page"] { color: var(--m2-text); }
.m2-nav-link:hover,
.m2-nav-link:focus-visible,
.m2-menu-btn[aria-expanded="true"] {
  color: var(--m2-text);
  background: var(--m2-ink-3);
}
.m2-caret { transition: transform .15s ease; }
.m2-menu-btn[aria-expanded="true"] .m2-caret { transform: rotate(180deg); }
.m2-menu-list {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 260px;
  background: var(--m2-ink-2);
  border: 1px solid var(--m2-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.m2-menu-list[hidden] { display: none; }
.js .m2-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
}
.m2-menu-item,
.m2-menu-item:link,
.m2-menu-item:visited {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--m2-text);
}
.m2-menu-item:hover,
.m2-menu-item:focus-visible { background: var(--m2-ink-3); }
.m2-menu-title { font-weight: 600; font-size: 14.5px; }
.m2-menu-desc { font-size: 13px; color: var(--m2-text-2); }
.m2-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m2 .m2-nav-cta { height: 38px; padding: 0 16px; font-size: 14px; }

.m2-nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--m2-line);
  border-radius: 8px;
  background: transparent;
  color: var(--m2-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.m2-nav-toggle-bars,
.m2-nav-toggle-bars::before,
.m2-nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.m2-nav-toggle-bars { position: relative; }
.m2-nav-toggle-bars::before,
.m2-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.m2-nav-toggle-bars::before { top: -5px; }
.m2-nav-toggle-bars::after { top: 5px; }

/* Below 900px the nav is one disclosure panel. Without JS (html.no-js) the
   panel simply renders open, stacked — reachable, if long. */
@media (max-width: 899.98px) {
  .m2-nav-inner { flex-wrap: wrap; gap: 0; }
  .js .m2-nav-toggle { display: inline-flex; }
  .m2-nav-panel {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0 16px;
  }
  .js .m2-nav-panel { display: none; }
  .js .m2-nav.is-open .m2-nav-panel { display: flex; }
  .m2-nav-links {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }
  .m2-nav-link { width: 100%; justify-content: space-between; }
  .js .m2-menu-list {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
  }
  .m2-nav-actions { flex-wrap: wrap; }
  .m2-nav-actions .btn { flex: 1 1 auto; }
}

/* ---------- Footer ---------- */
.m2-footer {
  background: #0d0e12;
  background: oklch(0.165 0.009 274.3);
  border-top: 1px solid var(--m2-line);
  color: var(--m2-text-2);
  font-family: var(--m2-font-text);
  padding: 56px 0 32px;
  font-size: 14px;
}
.m2-footer-cols {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.m2-footer-brand p { margin: 12px 0 0; max-width: 28ch; color: var(--m2-text-2); line-height: 1.5; }
.m2-footer-col h2 {
  margin: 0 0 12px;
  font-family: var(--m2-font-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m2-text);
}
.m2-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m2-footer a:link,
.m2-footer a:visited { color: var(--m2-text-2); text-decoration: none; }
.m2-footer a:hover,
.m2-footer a:focus-visible { color: var(--m2-text); text-decoration: underline; }
.m2-footer .m2-brand:link,
.m2-footer .m2-brand:visited { color: var(--m2-text); text-decoration: none; }
.m2-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--m2-line);
  font-size: 13px;
}
@media (max-width: 899.98px) {
  .m2-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-footer-brand { grid-column: 1 / -1; }
}

/* ---------- Article surface (articles, legacy pages, privacy) ----------
 * Their bodies keep marketing.css/reading.css untouched; m2-article.css (loaded
 * with them through legacy_assets) re-points the --c-* tokens to dark. Nothing
 * here may restyle .mkt-* rules. */

/* ======================================================================
 * Dark pages (m2--dark): Conversion and Hub templates under */m2/.
 * ====================================================================== */
.m2--dark { background: #0d0e12; }
.m2-main { display: block; }
.m2--dark .m2-main { color: var(--m2-text); }
.m2-wrap--narrow { max-width: 860px; }

.m2-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--m2-indigo);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.m2--dark .m2-main h1 { font-size: 56px; }
.m2--dark .m2-main h2 { font-size: 40px; }
.m2-section-sub,
.m2--dark .m2-lede { max-width: 62ch; font-size: 18px; }
.m2--dark .m2-lede { margin: 20px 0 28px; text-wrap: pretty; }
.m2--dark .m2-lede strong { color: var(--m2-text); font-weight: 600; }
.m2-section-sub { margin: 14px 0 0; }
.m2-foot-note { max-width: 75ch; margin: 28px 0 0; font-size: 14px; }
.m2--dark .m2-subhead { margin-top: 72px; }

/* ---------- Hero ---------- */
.m2-hero { padding: 72px 0 88px; }
.m2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.m2-hero-grid--solo { grid-template-columns: minmax(0, 860px); }
.m2-hero-sample { margin: 18px 0 0; }

/* ---------- Sections ---------- */
.m2-section { padding: 96px 0; border-top: 1px solid var(--m2-line); }
.m2-section--alt { background: #111217; }
.m2-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.m2-split--reverse .m2-split-text { order: 2; }
.m2-split-text p { margin: 16px 0 0; font-size: 17px; }
.m2-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.m2-points li { color: var(--m2-text-2); line-height: 1.55; padding-left: 18px; position: relative; }
.m2-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--m2-indigo);
}
.m2-points b { color: var(--m2-text); font-weight: 600; }

/* ---------- Cards ---------- */
.m2-cards { display: grid; gap: 20px; margin-top: 40px; }
.m2-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m2-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m2-card {
  background: var(--m2-ink-2);
  border: 1px solid var(--m2-line);
  border-radius: var(--m2-radius);
  padding: 26px;
}
.m2-card p { margin: 10px 0 0; font-size: 15.5px; }
a.m2-card:link, a.m2-card:visited { display: block; text-decoration: none; color: var(--m2-text); }
a.m2-card:hover, a.m2-card:focus-visible { border-color: var(--m2-indigo); background: var(--m2-ink-3); }
.m2-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--m2-indigo);
  color: var(--m2-indigo);
  font-family: var(--m2-font-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ---------- Testimonial ---------- */
.m2-quote { margin: 0 auto; max-width: 860px; text-align: center; }
.m2-quote p {
  margin: 0;
  font-family: var(--m2-font-display);
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--m2-text);
}
.m2-quote footer { margin-top: 20px; color: var(--m2-text-2); font-size: 15px; }

/* ---------- Spreadsheet vs LendrTech ---------- */
.m2-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.m2-compare-col {
  background: var(--m2-ink-2);
  border: 1px solid var(--m2-line);
  border-radius: var(--m2-radius);
  padding: 26px;
}
.m2-compare-col--us { border-color: #3c3f8f; }
.m2-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.m2-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--m2-text-2); line-height: 1.5; }
.m2-list svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; }
.m2-list--neg svg { color: #6f7283; }
.m2-list--pos svg, .m2-vs-yes { color: var(--m2-indigo); }

/* ---------- Comparison table ---------- */
.m2-table-wrap { margin-top: 28px; max-width: 100%; overflow-x: auto; border: 1px solid var(--m2-line); border-radius: var(--m2-radius); }
.m2-vs { width: 100%; border-collapse: collapse; font-size: 15px; }
.m2-vs th, .m2-vs td { padding: 14px 18px; border-bottom: 1px solid var(--m2-line); text-align: left; vertical-align: top; }
.m2-vs tbody tr:last-child th, .m2-vs tbody tr:last-child td { border-bottom: 0; }
.m2-vs thead th { color: var(--m2-text); font-weight: 650; background: var(--m2-ink-2); }
.m2-vs tbody th { color: var(--m2-text-2); font-weight: 500; }
.m2-vs td { color: var(--m2-text); }
.m2-vs .is-us { background: #17182a; }
.m2-vs-val { display: block; font-weight: 650; }
.m2-vs-note { display: block; color: var(--m2-text-2); font-size: 13px; }
.m2-vs-yes { display: block; width: 18px; height: 18px; }
.m2-vs-no { color: #8d90a0; }

/* ---------- Pricing teaser ---------- */
.m2-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; max-width: 860px; }
.m2-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--m2-ink-2);
  border: 1px solid var(--m2-line);
  border-radius: var(--m2-radius);
  padding: 28px;
}
.m2-plan.is-featured { border-color: var(--m2-indigo); }
.m2-plan p { margin: 0; }
.m2-plan .btn { margin-top: auto; }
.m2-plan .m2-plan-price { color: var(--m2-text-2); }
.m2-plan-price span { font-family: var(--m2-font-display); font-size: 44px; font-weight: 600; color: var(--m2-text); }
.m2-plan .m2-plan-trial { font-size: 14px; color: var(--m2-text); }

/* ---------- FAQ (<details>, no JS) ---------- */
.m2-faq { margin-top: 32px; border-top: 1px solid var(--m2-line); }
.m2-faq details { border-bottom: 1px solid var(--m2-line); }
.m2-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--m2-text);
  font-size: 17px;
  font-weight: 600;
}
.m2-faq summary:hover { color: var(--m2-indigo); }
.m2-faq summary::-webkit-details-marker { display: none; }
.m2-faq summary::after { content: "+"; color: var(--m2-indigo); font-size: 22px; line-height: 1; }
.m2-faq details[open] summary::after { content: "\2212"; }
.m2-faq details p { max-width: 68ch; margin: 0 0 16px; }

/* ---------- Closing CTA band ---------- */
.m2-cta-band {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--m2-line);
  background: #14152a;
  background: radial-gradient(ellipse at 50% 0%, #23255a 0%, #14152a 55%, #0d0e12 100%);
}
.m2-cta-band p { margin: 16px auto 28px; max-width: 56ch; font-size: 17px; }
.m2-cta-band .m2-cta-row { justify-content: center; }
.m2-cta-band .mkt-cta-fineprint { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- What's included ---------- */
.m2-includes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.m2-includes li { display: flex; align-items: flex-start; gap: 10px; color: var(--m2-text); line-height: 1.45; }
.m2-includes svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; color: var(--m2-indigo); }
.m2--dark .m2-split--spaced { margin-top: 56px; }
.m2-card h3 .m2-badge, .m2-split-text h3 .m2-badge { margin-left: 4px; }

/* ---------- Compact/centered hero, numbered steps ---------- */
.m2-hero--compact { padding: 64px 0 32px; }
.m2-center { text-align: center; }
.m2-center .m2-lede { margin-left: auto; margin-right: auto; }
.m2-steps { list-style: none; padding: 0; }
.m2-step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #23255a;
  color: var(--m2-text);
  font-weight: 700;
}

/* ---------- Pricing: the shared plan cards (account/_pricing_plans.html) ----------
 * pricing_v2.css draws them light; these re-ink them for the dark page. Pro and
 * Corporate go dark; Max stays the light flagship card, its accent moved from
 * the app's blue to the marketing indigo. Literal hex throughout (§4.13). */
.m2-pricing-plans { padding: 8px 0 96px; }
.m2 .m2-pricing-wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.m2 .plan-toggle { background: #15161c; border-color: #2a2c37; }
.m2 .plan-toggle-btn { color: #a9acba; }
.m2 .plan-toggle-btn.is-active { background: #2a2c37; color: #ecedf2; box-shadow: none; }
.m2 .plan-toggle-save { color: #8b8ff7; }
.m2 .plan-card { background: #15161c; border-color: #2a2c37; box-shadow: none; color: #ecedf2; }
.m2 .plan-card.corporate { background: #111217; }
/* The plan names are h2s; keep pricing_v2.css's sizes, not the page headings'. */
.m2--dark .m2-main .plan-name { font-family: var(--m2-font-text); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.m2--dark .m2-main .plan-card.max-v-light .plan-name { font-size: 18px; color: #141412; }
.m2 .plan-card-head { border-bottom-color: #2a2c37; }
.m2 .plan-name,
.m2 .plan-price,
.m2 .plan-features,
.m2 .plan-amount-custom { color: #ecedf2; }
.m2 .plan-tagline,
.m2 .plan-period,
.m2 .plan-note,
.m2 .plan-trial-note { color: #a9acba; }
.m2 .plan-billed { color: #8d90a0; }
.m2 .plan-features svg { color: #8b8ff7; }
.m2 .plan-card .btn-default:link,
.m2 .plan-card .btn-default:visited,
.m2 .plan-card .btn-default { background: transparent; border: 1px solid #3a3d4b; color: #ecedf2; }
.m2 .plan-card .btn-default:hover,
.m2 .plan-card .btn-default:focus-visible { background: #1e2029; }
.m2 .plan-card.max-v-light { color: #141412; border-color: #5b5fe0; background: radial-gradient(120% 60% at 50% -8%, #e8e9fd 0%, rgba(232, 233, 253, 0) 62%), #ffffff; }
.m2 .plan-card.max-v-light::before { background: #5b5fe0; }
.m2 .plan-card.max-v-light .plan-card-head { border-bottom-color: #e5e2da; }
.m2 .plan-card.max-v-light .plan-name,
.m2 .plan-card.max-v-light .plan-price,
.m2 .plan-card.max-v-light .plan-amount,
.m2 .plan-card.max-v-light .plan-features { color: #141412; }
.m2 .plan-card.max-v-light .plan-period,
.m2 .plan-card.max-v-light .plan-tagline,
.m2 .plan-card.max-v-light .plan-trial-note { color: #57554f; }
.m2 .plan-card.max-v-light .plan-billed { color: #6f6c65; }
.m2 .plan-card.max-v-light .plan-note { color: #4a4ed0; }
.m2 .plan-card.max-v-light .badge.accent { background: #5b5fe0; border-color: #5b5fe0; color: #ffffff; }
.m2 .plan-card.max-v-light .plan-features svg { color: #4a4ed0; background: #ecebf9; }
.m2 .plan-card.max-v-light .plan-cta,
.m2 .plan-card.max-v-light .plan-cta:link,
.m2 .plan-card.max-v-light .plan-cta:visited { background: #5b5fe0; color: #ffffff; }
.m2 .plan-card.max-v-light .plan-cta:hover,
.m2 .plan-card.max-v-light .plan-cta:focus-visible { background: #4c50cf; }
.m2 .plan-card.max-v-light .btn-default { color: #141412; border-color: #d6d3cb; }

/* ---------- Demo ---------- */
.m2-demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; }
.m2-demo-pitch .m2-list { margin: 8px 0 28px; }
.m2-demo-quote { margin: 0 0 20px; padding: 20px 22px; border: 1px solid var(--m2-line); background: var(--m2-ink-2); border-radius: var(--m2-radius); }
.m2-demo-quote p { margin: 0; color: var(--m2-text); font-size: 16px; }
.m2-demo-quote cite { display: block; margin-top: 10px; color: var(--m2-text-2); font-size: 14px; font-style: normal; }
.m2-demo-card { padding: 28px; background: var(--m2-ink-2); border: 1px solid var(--m2-line); border-radius: var(--m2-radius); }
.m2--dark .m2-main .m2-demo-card h2 { font-size: 26px; }
.m2-demo-card > p { margin: 8px 0 20px; }
.m2-demo-card .field { display: grid; gap: 6px; margin-bottom: 16px; }
.m2-demo-card .label { color: var(--m2-text); font-size: 14px; font-weight: 600; }
.m2-demo-card input[type="text"],
.m2-demo-card input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #3a3d4b;
  border-radius: 10px;
  background: var(--m2-ink);
  color: var(--m2-text);
  font: inherit;
  font-size: 15px;
}
.m2-demo-card input:focus-visible { border-color: var(--m2-indigo); }
.m2-demo-card .btn { width: 100%; margin-top: 4px; }
.m2-demo-card .errorlist, .m2-demo-card .invalid-feedback { color: #ff9b8f; font-size: 14px; }

/* ---------- Hub pages (docs, blog, resources) ---------- */
.m2-hub-body { padding: 8px 0 96px; }
.m2-hub-grid { margin-top: 0; align-items: start; }
.m2--dark .m2-main .m2-hub-card h2 { font-size: 22px; margin-bottom: 12px; }
.m2-hub-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.m2-hub-card a { font-weight: 600; text-decoration: none; }
.m2-hub-card a:hover { text-decoration: underline; }
.m2-hub-card li p { margin: 2px 0 0; font-size: 14px; }
.m2--dark .m2-main .m2-hub-h2 { margin: 48px 0 0; font-size: 28px; }
.m2--dark .m2-main .m2-hub-h2:first-child { margin-top: 0; }
.m2-hub .m2-card h3 { color: var(--m2-text); }
.m2-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.m2-post.is-featured { grid-column: 1 / -1; }
.m2-post .m2-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.m2-post.is-featured .m2-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.m2-post-media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--m2-ink-3); }
.m2-post.is-featured .m2-post-media { aspect-ratio: auto; min-height: 260px; }
.m2-post-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m2-post-media .m2-post-logo { width: 40px; height: 40px; object-fit: contain; opacity: .6; }
.m2-post-body { padding: 22px; }
.m2-post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; font-size: 13px; }
.m2-post-meta .m2-badge { margin-left: 0; }
.m2--dark .m2-main .m2-post.is-featured .m2-post-title { font-size: 32px; }
/* Every post title is an h2 (siblings, not sub-sections of the featured one);
 * the rest wear the h3 face. */
.m2--dark .m2-main .m2-post:not(.is-featured) .m2-post-title { font: 650 18px/1.3 var(--m2-font-text); letter-spacing: 0; }
.m2-post-body > p { margin: 8px 0 0; font-size: 15px; }
.m2-post-body .m2-post-byline { margin-top: 14px; font-size: 13px; }

/* ---------- Device frame for existing screenshots ---------- */
.m2-device {
  margin: 0;
  padding: 10px;
  background: var(--m2-ink-2);
  border: 1px solid var(--m2-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.m2-device img { display: block; width: 100%; height: auto; border-radius: 8px; background: #faf9f6; }

/* ---------- Responsive ---------- */
@media (max-width: 999.98px) {
  .m2-hero-grid, .m2-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .m2-split--reverse .m2-split-text { order: 0; }
  .m2-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .m2-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-demo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .m2-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-post.is-featured .m2-card { display: flex; }
  .m2--dark .m2-main h1 { font-size: 44px; }
  .m2--dark .m2-main h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .m2-hero { padding: 48px 0 56px; }
  .m2-section, .m2-cta-band { padding: 64px 0; }
  .m2--dark .m2-main h1 { font-size: 36px; }
  .m2--dark .m2-main h2 { font-size: 28px; }
  .m2-compare, .m2-plans, .m2-cards--2, .m2-includes, .m2-posts { grid-template-columns: minmax(0, 1fr); }
  .m2-quote p { font-size: 23px; }
  .m2-vs th, .m2-vs td { padding: 12px; font-size: 14px; }
  .m2-cta-row .btn { flex: 1 1 auto; }
}
