/* MatAdmin marketing register (DESIGN.md §7).
   Loaded only by marketing pages (/, /pricing, /about, /faq, /trust, legal) —
   the app never loads this file. Colors are read from public/fonts.css light
   theme; this file adds marketing-only layout/component tokens and locks the
   page to light mode per the Marketing Surfaces register. */

:root {
  color-scheme: light;
  /* Fail-safe light lock: marketing.css loads after fonts.css and reasserts
     the light token values directly (copied from fonts.css
     :root[data-theme="light"]) so a marketing page that forgets
     data-theme="light" on <html> still renders light instead of inheriting
     fonts.css's dark :root default. */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-hover: #edf2f7;
  --surface-input: #ffffff;
  --surface-overlay: rgba(246, 248, 251, 0.92);
  --text-primary: #101820;
  --text-secondary: #3e4a59;
  --text-muted: #667487;
  --text-disabled: #8e9aaa;
  --text-on-accent: #ffffff;
  --border: #d5dde8;
  --border-subtle: #e4eaf1;
  --border-strong: #b9c5d4;
  --border-focus: #2563eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-strong: #1e40af;
  --accent-subtle: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(37, 99, 235, 0.18);
  --success: #167245;
  --error: #b4233c;

  /* Marketing-only tokens */
  --graphite: #090d12; /* CTA band only, from DESIGN.md app-bg-dark */
  --cta-ink: #f5f8fb; /* DESIGN.md app-text-primary-dark, for text on --graphite */
  --cta-ink-muted: rgba(245, 248, 251, 0.65);
  --cta-accent: #60a5fa; /* DESIGN.md blue-accent-dark, for buttons on --graphite */
  --cta-accent-hover: #93c5fd; /* DESIGN.md blue-accent-hover-dark */
  --cta-border: rgba(255, 255, 255, 0.3);
  --cta-border-hover: rgba(255, 255, 255, 0.6);
  --max: 1120px;
  --radius-frame: 14px;
  --radius-btn: 999px;
  --shadow-frame: 0 1px 2px rgba(15, 23, 42, 0.06), 0 24px 64px -32px rgba(15, 23, 42, 0.18);
  --section-pad: clamp(88px, 12vw, 160px);
  --section-pad-tight: clamp(40px, 6vw, 64px);
  --display: 'Clash Display', 'Space Grotesk', sans-serif;
  --display-weight: 600;
  --display-tracking: -0.01em;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============ Type ============ */
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight, 600); letter-spacing: var(--display-tracking, -0.01em); }
h1 { font-size: clamp(44px, 6.5vw, 80px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-secondary); line-height: 1.6; }
p { color: var(--text-secondary); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-btn);
  text-decoration: none; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { color: var(--text-primary); border: 1px solid var(--border-strong); background: transparent; }
.btn-secondary:hover { border-color: var(--text-primary); }
.link-accent { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-accent:hover { color: var(--accent-hover); }
.link-accent .arr { display: inline-block; transition: transform .18s ease; }
.link-accent:hover .arr { transform: translateX(3px); }

/* ============ Nav ============ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-overlay);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand {
  font-family: var(--display); font-weight: 600; font-size: 20px;
  color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-login { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.nav-login:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn { padding: 9px 20px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============ Sections ============ */
section { padding: var(--section-pad) 0; }
.rule { border: 0; border-top: 1px solid var(--border-subtle); max-width: var(--max); margin: 0 auto; }
/* Shared layout deltas that were previously repeated as inline style= on
   every interior page. */
.page-container { padding-bottom: var(--section-pad-tight); }
.section-tight-top { padding-top: var(--section-pad-tight); }

/* ============ Hero ============ */
.hero { padding-top: clamp(72px, 10vw, 140px); padding-bottom: 0; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 84% 8%, rgba(37, 99, 235, .1), transparent 38%);
}
.hero > .container { position: relative; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { max-width: 820px; margin: 0 auto 28px; }
.hero .lede { max-width: 560px; margin: 0 auto 40px; }
.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.risk-line { font-size: 13.5px; color: var(--text-muted); }
.risk-line b { color: var(--text-secondary); font-weight: 500; }

/* ============ Screenshot frames — the signature component ============ */
.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  background: var(--surface);
}
.hero-frame { max-width: 1020px; margin: clamp(56px, 8vw, 96px) auto 0; }

/* ============ Capability line ============ */
.cap-line { padding: 40px 0; }
.cap-line .container {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 0; font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.cap-line span::after { content: "·"; margin: 0 18px; color: var(--border-strong); }
.cap-line span:last-child::after { content: ""; margin: 0; }
@media (max-width: 640px) {
  /* Below 640px the dot-separated line wraps into short centered fragments
     that read as a broken sentence. Chips read as a designed component at
     any wrap point instead -- desktop keeps the dot-separated line. */
  .cap-line .container { justify-content: center; gap: 10px; }
  .cap-line span {
    border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 8px 16px; font-size: 13.5px; color: var(--text-secondary);
  }
  .cap-line span::after { content: ""; margin: 0; }
}

/* ============ Feature stories ============ */
.feature-row {
  display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.feature-row.flip { grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy .eyebrow { color: var(--accent); margin-bottom: 16px; }
.feature-copy h3 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.feature-copy p { margin-bottom: 24px; max-width: 40ch; }
@media (max-width: 860px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-copy { order: 0; }
}

/* ============ "Class, start to finish" step strip ============ */
.steps-head { text-align: center; max-width: 620px; margin: 0 auto clamp(48px, 6vw, 80px); }
.steps-head h2 { margin: 16px 0 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .frame { margin-bottom: 24px; }
.step-num { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 8px; }
.step h4 { font-family: var(--body); font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.step p { font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ============ Mobile section ============ */
.mobile-sec .container { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.phones { display: flex; justify-content: center; }
.phone {
  width: min(340px, 86%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}
.phone img { border-radius: 24px; }
@media (max-width: 860px) { .mobile-sec .container { grid-template-columns: 1fr; } }

/* ============ Pricing ============ */
.pricing-head { text-align: center; max-width: 560px; margin: 0 auto clamp(48px, 6vw, 72px); }
.pricing-head h2 { margin: 16px 0 20px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 28px; }
.plan {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 40px; background: var(--surface); position: relative;
}
.plan.featured { border-color: var(--text-primary); }
.plan-badge {
  position: absolute; top: -13px; left: 40px;
  font: 600 11.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: var(--text-on-accent); border-radius: 999px; padding: 7px 14px;
}
.plan-name { font-family: var(--body); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.plan-price { font-family: var(--display); font-weight: 500; font-size: 52px; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan-desc { font-size: 15px; margin: 16px 0 28px; min-height: 48px; }
.plan ul { list-style: none; margin-bottom: 32px; }
.plan li { font-size: 14.5px; color: var(--text-secondary); padding: 7px 0; border-top: 1px solid var(--border-subtle); }
.plan li:first-child { border-top: 0; }
.plan .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ============ Founder note ============ */
.founder { max-width: 680px; margin: 0 auto; text-align: center; }
.founder blockquote {
  font-family: var(--display); font-weight: 500; letter-spacing: 0;
  word-spacing: 0.08em;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.45; color: var(--text-primary);
  margin: 28px 0 32px;
}
.founder-sig { font-size: 14px; color: var(--text-muted); }
.founder-sig b { display: block; font-size: 15px; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }

/* ============ CTA band ============ */
.cta-wrap { padding: 0 24px var(--section-pad); }
.cta-band { background: var(--graphite); border-radius: 24px; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 104px) 24px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(96, 165, 250, .18), transparent 55%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--cta-ink); margin-bottom: 20px; }
.cta-band p { color: var(--cta-ink-muted); max-width: 460px; margin: 0 auto 36px; }
.cta-band .btn-primary { background: var(--cta-accent); color: var(--graphite); }
.cta-band .btn-primary:hover { background: var(--cta-accent-hover); }
.cta-band .btn-secondary { border-color: var(--cta-border); color: var(--cta-ink); }
.cta-band .btn-secondary:hover { border-color: var(--cta-border-hover); color: var(--cta-ink); }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--border-subtle); padding: 64px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid h5 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14.5px; color: var(--text-secondary); text-decoration: none; padding: 5px 0; }
.foot-grid a:hover { color: var(--text-primary); }
.foot-tag { font-size: 14px; color: var(--text-muted); max-width: 26ch; margin-top: 12px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border-subtle); padding-top: 32px; font-size: 13px; color: var(--text-muted); }
.footer-social { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ============ Interior page header (non-home marketing pages) ============ */
.page-head { max-width: 760px; padding: clamp(56px, 8vw, 96px) 0 0; }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
.page-head .lede { max-width: 640px; margin: 0; text-align: left; }

/* ============ Assurance banner ============ */
.assurance-banner {
  background: var(--surface-hover); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; font-size: 14.5px; font-weight: 600;
  color: var(--text-secondary); text-align: center; margin-top: 32px;
}

/* ============ Callout card (parity lists, supporting claims) ============ */
.callout { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: clamp(28px, 4vw, 40px); }
.callout h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.callout > p { max-width: 68ch; }
.callout ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 20px; }
.callout ul li { font-size: 14.5px; color: var(--text-secondary); display: flex; gap: 10px; align-items: baseline; }
.callout ul li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
@media (max-width: 640px) { .callout ul { grid-template-columns: 1fr; } }

/* ============ FAQ stack (plain Q&A typography, no accordions/cards) ============ */
.faq-stack { max-width: 760px; }
.faq-item { padding: 28px 0; border-top: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 0; }
.faq-item h3 { font-family: var(--body); font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; letter-spacing: 0; }
.faq-item p { font-size: 15.5px; }
.faq-category { margin-bottom: clamp(40px, 5vw, 56px); }
.faq-category:last-of-type { margin-bottom: 0; }
.faq-category > .eyebrow { margin-bottom: 4px; }

/* ============ Two-column content grid (beliefs, supporting cards) ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============ Small numbered badge (belief cards, ordered callouts) ============ */
.num-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: var(--text-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  margin-bottom: 14px;
}

/* ============ Document template (trust/privacy/terms/dpa) ============
   Narrow measure, hairline-separated sections, sticky mini-TOC on wide
   screens. Shared by every legal/document page; content stays untouched. */
.doc-layout { display: grid; grid-template-columns: 1fr 220px; gap: 64px; align-items: start; max-width: 940px; margin: 0 auto; }
.doc-main { max-width: 720px; }
.doc-toc { position: sticky; top: 96px; }
.doc-toc-label { font: 600 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.doc-toc ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doc-toc li { font-size: 13.5px; }
.doc-toc a { color: var(--text-secondary); text-decoration: none; }
.doc-toc a:hover { color: var(--accent); }
.doc-meta { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; }
.doc-section { padding: 32px 0; border-top: 1px solid var(--border-subtle); scroll-margin-top: 96px; }
.doc-section:first-child { border-top: 0; padding-top: 0; }
.doc-section h2 { font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.doc-section h3 { font-family: var(--body); font-size: 14.5px; font-weight: 600; color: var(--text-secondary); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.doc-section p { font-size: 15px; margin-bottom: 12px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { padding-left: 20px; margin-bottom: 12px; }
.doc-section li { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.doc-callout { background: var(--accent-subtle); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin: 16px 0; font-size: 14px; color: var(--text-secondary); }
.doc-callout strong { color: var(--accent); }
.def-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin-bottom: 16px; }
.def-term { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 14px; white-space: nowrap; }
.def-desc { font-size: 14.5px; color: var(--text-secondary); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; margin-bottom: 40px; }
  .doc-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) { .def-grid { grid-template-columns: 1fr; } .doc-toc ol { grid-template-columns: 1fr; } }

/* ============ Motion (DESIGN.md §7: purposeful, reduced-motion safe) ============
   Content is fully visible by default. The .js-motion class is added only when
   JS + IntersectionObserver are available AND the user has not requested
   reduced motion — so no-JS, headless, and reduced-motion all get the
   complete static page. Easing: ease-out-quint, slow and soft (not strobing). */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero-ctas, .hero .risk-line, .hero-frame {
    animation: rise 1.3s cubic-bezier(.22, 1, .36, 1) both;
  }
  .hero h1 { animation-delay: .1s; }
  .hero .lede { animation-delay: .2s; }
  .hero-ctas { animation-delay: .3s; }
  .hero .risk-line { animation-delay: .4s; }
  .hero-frame { animation-delay: .5s; animation-duration: 1.7s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  .js-motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.2s cubic-bezier(.22,1,.36,1), transform 1.2s cubic-bezier(.22,1,.36,1); }
  .js-motion .reveal.in { opacity: 1; transform: none; }
  .js-motion .steps .step:nth-child(2), .js-motion .plans .plan:nth-child(2) { transition-delay: .18s; }
  .js-motion .steps .step:nth-child(3) { transition-delay: .36s; }
  .frame, .phone { transition: transform .65s cubic-bezier(.22,1,.36,1), box-shadow .65s cubic-bezier(.22,1,.36,1); }
  .feature-row .frame:hover, .phone:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 30px 68px -30px rgba(15,23,42,.22); }
  .btn { transition: all .18s ease, transform .18s cubic-bezier(.22,1,.36,1); }
  .btn:hover { transform: translateY(-1px); }
  .plan { transition: border-color .2s, transform .45s cubic-bezier(.22,1,.36,1); }
  .plan:hover { transform: translateY(-4px); }
}
