/* MatPilot — landing site
   Brand tokens mirror lib/theme/index.ts (light) and DESIGN_GUIDELINES.md.
   Black/white, Inter, soft grey cards, restrained borders, pink as live accent only. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-dark: #000000;
  --surface: #f5f5f5;
  --surface-2: #fafafa;
  --border: #e8e8e8;
  --border-light: #f2f2f2;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #ff2d78;     /* pink — live / attention only */
  --green: #16a34a;
  --hero-bg: #080808;

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; height: 22px; }
.logo svg { height: 100%; width: auto; display: block; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .logo { color: #ffffff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.66);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #ffffff; }
.nav-cta {
  font-size: 14px; font-weight: 600;
  color: #0a0a0a !important; background: #ffffff;
  padding: 9px 16px; border-radius: 9999px;
}
.nav-cta:hover { background: #ececec; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: var(--hero-bg);
  color: #fafaf9;
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
}
.hero::after {
  /* subtle vignette, no heavy gradient */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.05), transparent 60%);
}
.hero .wrap { position: relative; z-index: 3; }

/* looping background video (app welcome footage) */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* source is 360p — a touch of scale + faint blur masks upscaling on large screens */
  transform: scale(1.04);
  filter: saturate(108%) contrast(104%);
}
/* legibility scrim — keeps the left-aligned copy crisp over any frame */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.86) 0%, rgba(8,8,8,0.62) 42%, rgba(8,8,8,0.34) 100%),
    linear-gradient(0deg, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0.18) 40%, rgba(8,8,8,0.30) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02; letter-spacing: -2px;
  font-weight: 800; margin: 0 0 24px; max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 800; }
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.62);
  max-width: 56ch; margin: 0 0 36px; line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 14px 24px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #ffffff; color: #000000; }
.btn-primary:hover { background: #ececec; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); color: #fafaf9;
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--ink); color: #ffffff; }
.btn-dark:hover { background: #222; }

/* live dot — the only place pink appears in the hero */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 28px; }
.live .dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.18); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 60ch; margin: 0 0 48px; }
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 14px;
}
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; font-weight: 800; margin: 0 0 16px; line-height: 1.1; }
.section-head p { font-size: 18px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* ---------- briefing demo card (signal -> reason -> action) ---------- */
.briefing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px;
  max-width: 560px;
}
.briefing-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 14px; font-size: 14px; color: var(--text-secondary);
}
.briefing-head .dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--accent); }
.brief-item {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px; margin: 8px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.brief-item .signal { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.brief-item .reason { color: var(--text-secondary); font-size: 14px; margin: 0; }
.brief-item .act {
  flex: none; align-self: center;
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--border); border-radius: 9999px; padding: 8px 14px;
  white-space: nowrap;
}
.badge-attn { color: var(--accent); border-color: rgba(255, 45, 120, 0.35); }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card .ic { width: 22px; height: 22px; color: var(--ink); margin-bottom: 16px; }
.card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.2px; }
.card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ---------- split media (phone beside copy) ---------- */
.split-media { display: flex; justify-content: center; }
.phone-lg { width: 286px; }
@media (max-width: 860px) { .phone-lg { width: 250px; } }

/* ---------- payment playbook list ---------- */
.playbook { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.playbook li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--text-secondary); line-height: 1.45; }
.playbook li b { color: var(--ink); font-weight: 600; }
.playbook .pb-ic {
  flex: none; width: 34px; height: 34px; border-radius: 9999px;
  background: #ffffff; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}
.playbook .pb-ic svg { width: 16px; height: 16px; color: var(--ink); }

.fineprint { font-size: 13px; color: var(--text-muted); margin: 22px 0 0; line-height: 1.5; }

/* ---------- AI prompt pills (dark section) ---------- */
.prompts { display: flex; flex-wrap: wrap; gap: 10px; }
.prompts span {
  font-size: 14px; color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px; padding: 9px 15px;
}

/* ---------- app showcase (phone frames) ---------- */
.shots {
  display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 24px; margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 0; }
.phone {
  flex: 0 0 auto; width: 236px; margin: 0;
  scroll-snap-align: center;
  background: #0a0a0a; border-radius: 38px; padding: 9px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.32), 0 0 0 1px rgba(0,0,0,0.05);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
@media (min-width: 1040px) {
  .shots { justify-content: center; gap: 24px; overflow-x: visible; flex-wrap: wrap; }
}

/* captioned filmstrip item: phone + label below the bezel */
.shots .shot {
  flex: 0 0 auto; width: 232px; margin: 0;
  display: flex; flex-direction: column; align-items: center;
  scroll-snap-align: center;
}
.shots .shot .phone { width: 100%; }
.shots figcaption {
  margin-top: 14px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); text-align: center; line-height: 1.4;
}

/* dark filmstrip (AI section) — light ring so bezels read on black */
.shots-dark .shot .phone {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -18px rgba(0, 0, 0, 0.7);
}
.shots-dark figcaption { color: rgba(255, 255, 255, 0.6); }

/* in-person flow caption */
.flow-cap { text-align: center; font-size: 14px; color: var(--text-muted); max-width: 56ch; margin: 32px auto 0; line-height: 1.6; }

/* trust strip with phone */
.strip-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.strip-split .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px -18px rgba(0, 0, 0, 0.7); }
@media (max-width: 860px) { .strip-split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- approval / trust strip ---------- */
.strip { background: var(--ink); color: #fafaf9; border-radius: var(--radius-xl); padding: 56px 48px; }
.strip h2 { color: #fff; }
.strip p { color: rgba(255, 255, 255, 0.62); font-size: 18px; max-width: 60ch; margin: 0 0 28px; }
@media (max-width: 560px) { .strip { padding: 40px 28px; } }

/* ---------- final cta ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-final p { font-size: 18px; color: var(--text-secondary); max-width: 52ch; margin: 0 auto 32px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 64px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot .logo { color: var(--ink); }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 0 0 14px; font-weight: 600; }
.foot-col a, .foot-col span { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 9px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: 36px; letter-spacing: -1px; margin: 0 0 8px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.4px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-block; margin-bottom: 40px; font-size: 14px; color: var(--text-secondary); }
.legal .back:hover { color: var(--ink); }
