/* ============================================================
   Metacog CMA Landing — styles
   Design tokens from ../Landing Page_OLD/design-system.md
   No monospace as UI type. No em dashes in content.
   Section labels are never smaller than body text.
   ============================================================ */

:root {
  /* Color */
  --background: #f9f6f0;      /* warm light cream page ground */
  --band-white: #ffffff;
  --ink: #191c1e;
  --ink-deep: #131b2e;        /* dark navy band (from design-system primary-container) */
  --muted: #45464d;
  --hairline: #d7d3ca;        /* warm hairline to match cream */
  --surface-container: #efece4;
  --cream: #f5f2ea;
  --white: #ffffff;
  --ultramarine: #010fba;
  --ultramarine-hover: #006591;
  --on-dark: #f3f1ec;
  --on-dark-muted: #bec6e0;

  /* Type */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --margin-desktop: 40px;
  --margin-mobile: 16px;
  --section-rhythm: 140px;
  --radius-btn: 2px;
  --radius-card: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #39b8fd; color: #004666; }

.container {
  max-width: 2000px;
  margin: 0 auto;                              /* centered: symmetric left and right margins */
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: clamp(24px, 4vw, 80px);
}

/* ---------- Typography primitives ---------- */

/* Section label / eyebrow: never smaller than body, always visually dominant. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ultramarine);
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.section-title-center { text-align: center; }

.body-lg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--ultramarine);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover { background: var(--ultramarine-hover); }
.btn-sm { font-size: 14px; padding: 10px 20px; }
.btn-lg { font-size: 14px; padding: 16px 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 240, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-img { height: 80px; width: auto; display: block; }

/* ---------- Hero (left aligned) ---------- */
.hero { padding-top: 88px; padding-bottom: 88px; text-align: left; }
.hero-inner { max-width: 1040px; }
.hero-eyebrow { margin-bottom: 20px; }
.waitlist-form.hero-form { justify-content: flex-start; }
.hero-title {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ultramarine);
}
.hero-sub {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- Sections + dividers ---------- */
.section {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--hairline);   /* divider, with equal space above and below */
}
.section:last-of-type { padding-bottom: 120px; }

/* ---------- How it works ---------- */
.beat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
}
.beat-lead { padding-top: 8px; }
.beat-lead .body-lg { margin-top: 20px; }
.beat:nth-child(even) .beat-copy { order: 2; }
.beat .body-lg { margin-top: 20px; }
/* let grid tracks shrink below content min-content so columns never blow out */
.beat-copy, .artifact { min-width: 0; }

/* ---------- Artifacts ---------- */
.artifact { width: 100%; }
.artifact-frame {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}
.artifact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ultramarine);
}
.artifact-note { font-size: 14px; color: var(--muted); }
.artifact-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.artifact-caption-center { text-align: center; }

/* real product screenshots, framed as windows on the light page */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 30px rgba(25, 28, 30, 0.12);
}
.teas-shot { max-width: 760px; margin: 48px auto 0; }
.teas-shot .artifact-caption { margin-top: 14px; }

/* Patch demo */
.patch-demo {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.patch-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
}
.patch-banner-review { background: #fff7e6; border: 1px solid #f0c97a; }
.patch-banner-done { background: #ecf8f0; border: 1px solid #8fcfa6; }
.patch-dot {
  width: 10px; height: 10px; border-radius: 9999px;
  background: #d99a14; margin-top: 5px; flex: none;
}
.patch-check { color: #1f8a4c; font-weight: 700; margin-top: 1px; flex: none; }
.patch-state { font-weight: 600; font-size: 15px; color: var(--ink); }
.patch-hint { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Chat demo */
.chat-demo {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-bubble {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 88%;
}
.chat-user {
  align-self: flex-end;
  background: var(--ultramarine);
  color: var(--white);
  font-weight: 600;
}
.chat-tutor {
  align-self: flex-start;
  background: var(--surface-container);
  color: var(--ink);
}

/* ---------- Trust / TEAS ---------- */
.trust .section-title { margin-bottom: 24px; }
.trust-body { margin: 0 auto; text-align: center; max-width: 64ch; }
.teas-badges {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.teas-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink);
}
.teas-pass {
  background: #ecf8f0;
  color: #1f8a4c;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 9999px;
}

/* ---------- Founder (contained card on cream) ---------- */
.founder { border-top: none; }
.founder-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 56px 48px;
  box-shadow: 0 2px 18px rgba(25, 28, 30, 0.05);
}
.founder .eyebrow { color: var(--on-dark-muted); }
.founder-heading {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ultramarine);
}
.founder-body {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.founder-name {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ultramarine);
}

/* ---------- Proof strip ---------- */
.proof {
  margin-top: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.proof-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.proof-item { font-size: 14px; color: var(--muted); }
.proof-sep { width: 4px; height: 4px; border-radius: 9999px; background: var(--hairline); }

/* ---------- Closer + waitlist (white band) ---------- */
.closer { background: var(--band-white); border-top: none; }
.closer-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.closer-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ultramarine);
}
.closer-sub { margin-top: 20px; font-size: 18px; color: var(--muted); }
.waitlist-form {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.waitlist-input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 18px;
  min-width: 300px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
}
.waitlist-input:focus { outline: 2px solid var(--ultramarine); outline-offset: 0; }
.waitlist-microcopy { margin-top: 16px; font-size: 13px; color: var(--muted); }
.waitlist-success { margin-top: 36px; }
.waitlist-success-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.waitlist-success-body {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-success .btn { margin-top: 24px; }

/* ---------- Waitlist modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 27, 46, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(19, 27, 46, 0.3);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ultramarine);
}
.modal-body {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.modal .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--background); }
.footer-inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ultramarine);
}
.footer-meta { font-size: 13px; color: var(--muted); }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
}
.footer-links a:hover { color: var(--ultramarine-hover); border-color: var(--ultramarine-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .container { padding-left: var(--margin-mobile); padding-right: var(--margin-mobile); }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 18px; }
  .section { padding-top: 88px; }
  .beat { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .beat:nth-child(even) .beat-copy { order: 0; }
  .section-title { font-size: 28px; }
  .founder-heading { font-size: 26px; }
  .founder-inner { padding: 36px 24px; }
  .closer-title { font-size: 34px; }
  .proof-inner { flex-direction: column; gap: 12px; }
  .proof-sep { display: none; }
  .footer-links { margin-left: 0; }
}
