/* ============ Marketing pages (v2) ============
 * Public-facing surface: landing, feature landing, getting started,
 * privacy policy, demo, pricing. Loaded by base_marketing.html on top
 * of tokens.css + components.css.
 *
 * Layout follows the auth shell pattern (no app sidebar/topbar) but
 * adds a sticky top nav and footer suited to a long-form marketing
 * page. All colors/spacing/typography come from tokens.css — no
 * hex codes, no new accent colors.
 *
 * Breakpoints:
 *   1180px — content wraps to single-column for narrower tablets.
 *   920px  — hero/feature-row 2-col layouts stack.
 *   560px  — nav may wrap to a second row only if items don't fit.
 *   720px  — extra padding adjustments on cards and CTAs.
 */

body.mkt-body {
  background: var(--c-bg);
  min-height: 100vh;
}

/* ---------- Container ----------
 * 1180px content cap matches the chart-friendly width used by the
 * app's report pages. Horizontal padding scales down with viewport. */
.mkt-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-8);
}
@media (max-width: 920px) {
  .mkt-container { padding: 0 var(--s-5); }
}
@media (max-width: 480px) {
  .mkt-container { padding: 0 var(--s-4); }
}

/* ---------- Top nav ----------
 * Sticky, transparent on initial load. After scrolling past the hero,
 * `.mkt-nav-scrolled` is toggled by a small script in _marketing_nav,
 * fading in a translucent background + blur. */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 160ms, box-shadow 160ms, border-color 160ms;
  border-bottom: 1px solid transparent;
}
.mkt-nav-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-1);
}
/* Three zones: brand | centered links | actions. The 1fr/auto/1fr grid
 * keeps the middle group optically centered under the page regardless of
 * how wide the brand or the action cluster get. */
.mkt-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
  height: 64px;
}
.mkt-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-15);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--c-fg);
  justify-self: start;
}
.mkt-brand img { width: 26px; height: 26px; flex: none; }
/* Centered primary links (Pricing / Demo / Resources). */
.mkt-nav-links {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  justify-self: center;
}
/* Auth actions pinned right (Log in + Sign up, or Open app). */
.mkt-nav-cluster {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  justify-self: end;
  min-width: 0;
}
.mkt-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 34px;
  padding: 0 var(--s-3);
  border-radius: var(--r-2);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--c-fg-muted);
  white-space: nowrap;
}
.mkt-nav-link:hover { color: var(--c-fg); background: var(--c-bg-soft); }
/* Trigger is a <button> — strip native chrome so it reads as a nav link. */
.mkt-nav-dropdown-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

/* ---------- Resources dropdown ----------
 * A hover/click menu anchored under the trigger. Visibility is driven by
 * the .is-open class (set by _marketing_nav's script) so hover, click, and
 * keyboard focus share one state; the caret rotates to match. */
.mkt-nav-dropdown { position: relative; }
.mkt-nav-caret { transition: transform 160ms ease; opacity: 0.7; }
.mkt-nav-dropdown.is-open .mkt-nav-caret { transform: rotate(180deg); }
.mkt-nav-dropdown.is-open > .mkt-nav-dropdown-trigger {
  color: var(--c-fg);
  background: var(--c-bg-soft);
}
.mkt-nav-menu {
  position: absolute;
  top: calc(100% + var(--s-2));
  left: 50%;
  min-width: 232px;
  padding: var(--s-2);
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  box-shadow: var(--sh-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
.mkt-nav-dropdown.is-open .mkt-nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mkt-nav-menu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-3);
  color: var(--c-fg);
}
.mkt-nav-menu-item:hover { background: var(--c-bg-soft); }
.mkt-nav-menu-title { font-size: var(--fs-14); font-weight: 600; }
.mkt-nav-menu-desc { font-size: var(--fs-12); color: var(--c-fg-muted); }

/* ≤760px: the centered grid can't hold three zones on one row. Collapse to
 * a wrapped flex row — brand + actions share row one, the primary links
 * drop to a centered second row. Auto height keeps both rows inside the
 * sticky bar's border. */
@media (max-width: 760px) {
  .mkt-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 56px;
    row-gap: var(--s-2);
    column-gap: var(--s-3);
    padding-top: var(--s-2);
    padding-bottom: var(--s-2);
  }
  .mkt-brand { flex: 1 1 auto; }
  .mkt-nav-cluster { flex: 0 0 auto; gap: var(--s-2); }
  .mkt-nav-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    gap: var(--s-1);
  }
  /* Center row is narrow and "Resources" sits at its right end — anchor the
   * menu to the trigger's RIGHT edge so a 232px panel grows leftward and
   * stays on-screen instead of spilling past the right gutter. The width
   * clamp is a hard guard against clipping on the narrowest phones. */
  .mkt-nav-menu {
    left: auto;
    right: 0;
    min-width: 0;
    width: 232px;
    max-width: calc(100vw - 2 * var(--s-4));
    transform: translate(0, -4px);
  }
  .mkt-nav-dropdown.is-open .mkt-nav-menu { transform: translate(0, 0); }
}
@media (max-width: 400px) {
  .mkt-nav-link { padding: 0 var(--s-2); font-size: var(--fs-13); }
  .mkt-nav-cta { padding: 0 var(--s-3); }
}

/* ---------- Sections ----------
 * Alternating section backgrounds give the page a steady rhythm
 * without decorative ornaments. Defaults to .mkt-bg (white panel).
 * .mkt-section-alt switches to bg-soft, .mkt-section-dark inverts. */
.mkt-section { padding: var(--s-16) 0; background: var(--c-panel); }
.mkt-section-alt { background: var(--c-bg-soft); }
.mkt-section-dark {
  background: var(--c-fg);
  color: var(--c-bg);
}
.mkt-section-dark .kicker { color: oklch(0.78 0.008 80); }
.mkt-section-dark .muted { color: oklch(0.78 0.008 80); }
@media (max-width: 920px) {
  .mkt-section { padding: var(--s-12) 0; }
}

.mkt-section-heading {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  color: inherit;
}
.mkt-section-sub {
  font-size: var(--fs-15);
  color: var(--c-fg-muted);
  margin: 0 0 var(--s-10);
  max-width: 640px;
  line-height: 1.55;
}
.mkt-section-dark .mkt-section-sub { color: oklch(0.82 0.008 80); }
@media (max-width: 920px) {
  .mkt-section-heading { font-size: 28px; }
  .mkt-section-sub { margin-bottom: var(--s-8); font-size: var(--fs-14); }
}

/* ---------- Hero ----------
 * Asymmetric 2-col layout — text left, product visual right. The visual
 * sits inside a .mkt-card-frame so it reads as a piece of product
 * surface rather than a raw image. Stacks vertically below 920px.
 *
 * Subtle warm gradient washes from the top of the hero down to nothing.
 * Intentionally restrained — no decorative blobs or illustrations. */
.mkt-hero {
  padding: var(--s-16) 0 var(--s-12);
  background:
    radial-gradient(120% 80% at 0% 0%, oklch(0.97 0.04 80 / 0.55) 0%, transparent 60%),
    radial-gradient(80% 70% at 90% 10%, var(--c-accent-soft) 0%, transparent 55%),
    var(--c-bg);
  position: relative;
  overflow: hidden;
}
.mkt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
}
.mkt-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}
.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 24px;
  padding: 0 var(--s-3);
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-panel);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-accent);
}
.mkt-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c-accent); }
.mkt-hero-headline {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--c-fg);
}
.mkt-hero-headline em {
  font-style: normal;
  color: var(--c-accent);
}
.mkt-hero-sub {
  font-size: var(--fs-18);
  line-height: 1.5;
  color: var(--c-fg-muted);
  margin: 0;
  max-width: 540px;
}
.mkt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.mkt-hero-cta .btn { height: 44px; padding: 0 var(--s-5); font-size: var(--fs-14); font-weight: 600; }
.mkt-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-13);
  color: var(--c-fg-faint);
}
.mkt-hero-visual { min-width: 0; }
.mkt-card-frame {
  position: relative;
  border-radius: var(--r-5);
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-3);
  overflow: hidden;
  padding: var(--s-3);
}
.mkt-card-frame img,
.mkt-card-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-3);
}
@media (max-width: 1180px) {
  .mkt-hero-headline { font-size: 48px; }
}
@media (max-width: 920px) {
  .mkt-hero { padding: var(--s-10) 0 var(--s-8); }
  .mkt-hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .mkt-hero-headline { font-size: 38px; }
  .mkt-hero-sub { font-size: var(--fs-15); }
  .mkt-hero-cta .btn { width: 100%; }
}

/* ---------- "Why" 3-up cards ----------
 * Used on the landing hero-adjacent section. Each card is a simple
 * tile with icon, headline, body. Restyled with tokens. */
.mkt-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.mkt-why-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--sh-1);
}
.mkt-why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-accent-soft);
  display: grid;
  place-items: center;
}
.mkt-why-icon img { width: 24px; height: 24px; }
.mkt-why-title {
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--c-fg);
}
.mkt-why-body {
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--c-fg-muted);
  margin: 0;
}
@media (max-width: 920px) {
  .mkt-why-grid { grid-template-columns: 1fr; }
}

/* ---------- Alternating feature rows ----------
 * Used three times on the landing page. Each row: text on one side,
 * GIF/image on the other in a .mkt-card-frame. `-reverse` flips on
 * desktop, both stack vertically below 920px (text first). */
.mkt-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
  padding: var(--s-12) 0;
}
.mkt-feature-row:first-child { padding-top: 0; }
.mkt-feature-row:last-child { padding-bottom: 0; }
.mkt-feature-row-reverse .mkt-feature-text { order: 2; }
.mkt-feature-row-reverse .mkt-feature-visual { order: 1; }
.mkt-feature-text { display: flex; flex-direction: column; gap: var(--s-3); }
.mkt-feature-headline {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--c-fg);
}
.mkt-feature-sub {
  font-size: var(--fs-15);
  line-height: 1.6;
  color: var(--c-fg-muted);
  margin: 0;
  max-width: 480px;
}
.mkt-feature-visual { min-width: 0; }
@media (max-width: 920px) {
  .mkt-feature-row { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-8) 0; }
  .mkt-feature-row-reverse .mkt-feature-text { order: 0; }
  .mkt-feature-row-reverse .mkt-feature-visual { order: 1; }
  .mkt-feature-headline { font-size: 22px; }
}

/* ---------- Quote block ----------
 * Single tasteful blockquote per page. Centered, generous line-height. */
.mkt-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 var(--s-5);
}
.mkt-quote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 80px;
  line-height: 1;
  color: var(--c-accent);
  margin-bottom: var(--s-3);
}
.mkt-quote-text {
  font-size: 24px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--c-fg);
  margin: 0 0 var(--s-5);
}
.mkt-quote-author {
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--c-fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 920px) {
  .mkt-quote-text { font-size: var(--fs-18); }
  .mkt-quote::before { font-size: 56px; }
}

/* ---------- 4-card question grid ----------
 * Alternates panel / soft-bg so adjacent cards differentiate without
 * each needing decoration. */
.mkt-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.mkt-question-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: var(--sh-1);
}
.mkt-question-card.mkt-question-card-alt { background: var(--c-bg-soft); }
.mkt-question-title {
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--c-fg);
}
.mkt-question-visual {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.mkt-question-visual img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .mkt-question-grid { grid-template-columns: 1fr; }
}

/* ---------- "What's included" grid ----------
 * Feature list rendered as a 3-up grid of small tiles, each a check
 * icon + label. Sits in an alt section between the question grid and
 * the FAQ. Caps at 920px so the rows don't sprawl. */
.mkt-includes-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3) var(--s-4);
}
.mkt-includes-grid li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  box-shadow: var(--sh-1);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--c-fg);
  line-height: 1.35;
}
.mkt-includes-grid svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--c-success);
}
@media (max-width: 920px) {
  .mkt-includes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mkt-includes-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ----------
 * Real <details>/<summary> semantics with a CSS chevron rotation —
 * no JS toggle, no aria juggling. Keyboard-accessible by default. */
.mkt-faq {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 760px;
  margin: 0 auto;
}
.mkt-faq-item {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: border-color 120ms, box-shadow 120ms;
}
.mkt-faq-item[open] {
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-1);
}
.mkt-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-15);
  font-weight: 500;
  color: var(--c-fg);
}
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--c-fg-muted);
  transition: transform 160ms;
}
.mkt-faq-item[open] .mkt-faq-chevron { transform: rotate(180deg); }
.mkt-faq-body {
  padding: 0 var(--s-5) var(--s-5);
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--c-fg-muted);
}
.mkt-faq-body p { margin: 0 0 var(--s-3); }
.mkt-faq-body p:last-child { margin-bottom: 0; }
.mkt-faq-body a { color: var(--c-accent); text-decoration: underline; }
.mkt-faq-foot {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}

/* ---------- How it works (3-step) ----------
 * Used on the closing-cost-template feature page. */
.mkt-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.mkt-step-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--sh-1);
}
.mkt-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: var(--fs-13);
  font-weight: 600;
}
.mkt-step-title {
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--c-fg);
}
.mkt-step-body {
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--c-fg-muted);
  margin: 0;
}
@media (max-width: 920px) {
  .mkt-steps-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing teaser ----------
 * Two simplified plan cards (Pro / Max) on the landing page.
 * Visually echoes the full pricing page without listing every feature. */
.mkt-pricing-teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
  max-width: 680px;
  margin: 0 auto;
}
.mkt-pricing-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
  box-shadow: var(--sh-1);
}
.mkt-pricing-card.is-featured {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), var(--sh-2);
}
.mkt-pricing-name {
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--c-fg-muted);
  text-transform: uppercase;
}
.mkt-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}
.mkt-pricing-amount {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--c-fg);
}
.mkt-pricing-period {
  font-size: var(--fs-14);
  color: var(--c-fg-muted);
}
.mkt-pricing-tagline {
  font-size: var(--fs-14);
  color: var(--c-fg-muted);
  margin: 0;
}
.mkt-pricing-card .btn { align-self: stretch; height: 40px; font-weight: 600; }
.mkt-pricing-foot {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}
@media (max-width: 720px) {
  .mkt-pricing-teaser { grid-template-columns: 1fr; }
}

/* ---------- Closing CTA band ----------
 * Full-bleed accent-tinted band at the very bottom of marketing pages. */
.mkt-cta-band {
  background:
    radial-gradient(60% 100% at 0% 50%, oklch(0.55 0.16 255 / 0.18) 0%, transparent 60%),
    var(--c-fg);
  color: var(--c-bg);
  text-align: center;
  padding: var(--s-16) 0;
}
.mkt-cta-band h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  color: #fff;
}
.mkt-cta-band p {
  font-size: var(--fs-15);
  color: oklch(0.82 0.008 80);
  margin: 0 0 var(--s-6);
}
.mkt-cta-band .btn-accent { height: 48px; padding: 0 var(--s-6); font-size: var(--fs-14); font-weight: 600; }
.mkt-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}
/* Secondary CTA on the dark band — outlined treatment so it reads as a
 * peer to the accent button without competing with it. */
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s-6);
  border-radius: var(--r-2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #fff;
  font-size: var(--fs-14);
  font-weight: 600;
  transition: background 120ms, border-color 120ms;
}
.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
@media (max-width: 920px) {
  .mkt-cta-band { padding: var(--s-12) 0; }
  .mkt-cta-band h2 { font-size: 28px; }
  .mkt-cta-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
  .mkt-cta-band .btn-accent,
  .btn-cta-secondary { width: 100%; }
}

/* ---------- Footer ---------- */
.mkt-footer {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
  padding: var(--s-12) 0 var(--s-8);
  font-size: var(--fs-13);
}
.mkt-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}
.mkt-footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-fg-faint);
  margin: 0 0 var(--s-3);
}
.mkt-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.mkt-footer-col a { color: var(--c-fg-muted); }
.mkt-footer-col a:hover { color: var(--c-fg); }
.mkt-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 280px;
  color: var(--c-fg-muted);
  line-height: 1.55;
}
.mkt-footer-brand .mkt-brand { color: var(--c-fg); }
.mkt-footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  color: var(--c-fg-faint);
}
.mkt-footer-bottom a { color: var(--c-fg-faint); }
.mkt-footer-bottom a:hover { color: var(--c-fg); }
@media (max-width: 720px) {
  .mkt-footer-cols { grid-template-columns: 1fr; gap: var(--s-6); }
  .mkt-footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}

/* ---------- Long-form prose (privacy policy) ----------
 * 720px reading column, generous line-height. */
.mkt-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--c-fg);
}
.mkt-prose h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.mkt-prose .mkt-prose-meta {
  font-size: var(--fs-13);
  color: var(--c-fg-muted);
  margin: 0 0 var(--s-10);
}
.mkt-prose h2 {
  font-size: var(--fs-15);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-fg);
  margin: var(--s-10) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
}
.mkt-prose h2:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }
.mkt-prose h3 {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--c-fg);
  margin: var(--s-5) 0 var(--s-2);
}
.mkt-prose p { margin: 0 0 var(--s-4); }
.mkt-prose ul { margin: 0 0 var(--s-4) var(--s-5); padding: 0; }
.mkt-prose li { margin-bottom: var(--s-2); }
.mkt-prose a { color: var(--c-accent); text-decoration: underline; }
.mkt-prose a:hover { color: var(--c-accent-hover); }
@media (max-width: 920px) {
  .mkt-prose h1 { font-size: 28px; }
}

/* ---------- Getting started layout ---------- */
.mkt-getstarted-head {
  max-width: 760px;
  margin: 0 auto var(--s-10);
  text-align: center;
}
.mkt-video-inline {
  max-width: 880px;
  margin: 0 auto;
}
.mkt-contact-line {
  text-align: center;
  font-size: var(--fs-14);
  color: var(--c-fg-muted);
  margin-top: var(--s-10);
}
.mkt-contact-line a { color: var(--c-accent); text-decoration: underline; }

/* ---------- Demo page (pitch + covers + testimonial left, form right) ---------- */
.mkt-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-10);
  align-items: start;
}
.mkt-demo-pitch h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  color: var(--c-fg);
}
.mkt-demo-pitch p.lead {
  font-size: var(--fs-15);
  color: var(--c-fg-muted);
  margin: 0 0 var(--s-6);
  line-height: 1.55;
}
.mkt-demo-covers {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: var(--s-5) var(--s-6);
  margin: 0 0 var(--s-6);
  box-shadow: var(--sh-1);
}
.mkt-demo-covers-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-fg-faint);
  margin: 0 0 var(--s-3);
}
.mkt-demo-covers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.mkt-demo-covers-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--c-fg);
}
.mkt-demo-covers-check {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--c-success);
  margin-top: 1px;
}
.mkt-demo-quote {
  margin: 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.mkt-demo-quote p {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.55;
  color: var(--c-fg);
  font-style: italic;
}
.mkt-demo-quote cite {
  font-size: var(--fs-12);
  font-style: normal;
  font-weight: 500;
  color: var(--c-fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mkt-demo-form-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: var(--s-6);
  box-shadow: var(--sh-2);
  position: sticky;
  top: 88px;
}
.mkt-demo-form-card h2 {
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-2);
  color: var(--c-fg);
}
.mkt-demo-form-card .mkt-demo-form-sub {
  font-size: var(--fs-13);
  color: var(--c-fg-muted);
  margin: 0 0 var(--s-5);
}
.mkt-demo-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
/* Django renders form fields without our .input class, so target the
 * native inputs directly inside the form so they pick up token styling. */
.mkt-demo-form input[type="text"],
.mkt-demo-form input[type="email"],
.mkt-demo-form input[type="tel"],
.mkt-demo-form input[type="number"],
.mkt-demo-form input[type="url"],
.mkt-demo-form select,
.mkt-demo-form textarea {
  width: 100%;
  height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-panel);
  font-size: var(--fs-14);
  color: var(--c-fg);
  transition: border-color 80ms, box-shadow 80ms;
}
.mkt-demo-form textarea { height: auto; min-height: 96px; padding: var(--s-3) var(--s-4); line-height: 1.5; }
.mkt-demo-form input:hover,
.mkt-demo-form select:hover,
.mkt-demo-form textarea:hover { border-color: var(--c-border-strong); }
.mkt-demo-form input:focus,
.mkt-demo-form select:focus,
.mkt-demo-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.mkt-demo-form .invalid-feedback,
.mkt-demo-form .errorlist {
  font-size: var(--fs-12);
  color: var(--c-danger);
  list-style: none;
  margin: 0;
  padding: 0;
}
.mkt-demo-form .btn-accent { width: 100%; height: 44px; font-weight: 600; }
@media (max-width: 920px) {
  .mkt-demo-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .mkt-demo-form-card { position: static; }
  .mkt-demo-pitch h1 { font-size: 28px; }
}

/* ---------- IntersectionObserver fade-in ----------
 * Preserved from the legacy landing page — sections start translated
 * + faded, slide into place when scrolled into view. Honors
 * `prefers-reduced-motion`. */
.mkt-fade { opacity: 0; transform: translateY(12px); transition: opacity 480ms ease, transform 480ms ease; }
.mkt-fade.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mkt-fade, .mkt-fade.visible { opacity: 1; transform: none; transition: none; }
}

/* ---------- Page-level message banner (Django messages) ----------
 * Stacked above the hero when present. Mirrors the auth-page banner
 * but tinted neutral so it doesn't fight the hero gradient. */
.mkt-messages {
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-border);
}
.mkt-messages .mkt-container {
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.mkt-messages > .mkt-container > div {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-2);
  font-size: var(--fs-13);
  border: 1px solid;
}
.mkt-messages .success {
  background: var(--c-success-soft);
  color: oklch(0.36 0.1 150);
  border-color: oklch(0.85 0.06 150);
}
.mkt-messages .warning {
  background: var(--c-warning-soft);
  color: oklch(0.4 0.13 75);
  border-color: oklch(0.85 0.08 75);
}
.mkt-messages .error {
  background: var(--c-danger-soft);
  color: oklch(0.4 0.15 25);
  border-color: oklch(0.85 0.08 25);
}
.mkt-messages .info {
  background: var(--c-bg-soft);
  color: var(--c-fg);
  border-color: var(--c-border);
}
