/* ============================================================
   Latent — Managed Product Teams landing page
   Design language adapted from design.md (creme.digital ref)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=Inter:wght@400;450;500;600&display=swap');

:root {
  /* color */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-soft: #f6f6f7;
  --bg-dark: #131314;
  --bg-deep: #0c0c0e;

  --text: #0a0a0b;
  --text-muted: #4a4a4a;
  --text-subtle: #87868a;
  --text-faint: #adacb0;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --tint-2: rgba(0, 0, 0, 0.02);
  --tint-4: rgba(0, 0, 0, 0.04);
  --tint-6: rgba(0, 0, 0, 0.055);

  /* accent — tweakable */
  --accent: #f64a4e;
  --accent-ink: #ffffff;
  --accent-wash: color-mix(in oklch, var(--accent) 8%, white);
  --accent-soft: color-mix(in oklch, var(--accent) 16%, white);

  /* radius — tweakable via --r-scale on cards */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-card: 26px;
  --r-xl: 34px;
  --r-pill: 9999px;

  /* type — tweakable */
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 96px);

  /* shadow */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 34px rgba(0, 0, 0, 0.09);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.14);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); width: 100%; }

section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 18px; text-wrap: balance; }
.section-head p { font-size: clamp(16px, 1.4vw, 18px); color: var(--text-muted); margin-top: 18px; line-height: 1.55; text-wrap: pretty; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  border-radius: var(--r-pill);
  padding: 14px 24px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #2a2a2c; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-light { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-on-dark { background: #fff; color: var(--text); }
.btn-on-dark:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 15px; color: var(--text); border-bottom: 1.5px solid transparent; transition: border-color .2s ease; }
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.04em; }
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); display: inline-block; margin-bottom: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 450; color: var(--text-muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-burger { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn-text { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .accent-word { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); color: var(--text); font-weight: 500; margin-top: 26px; line-height: 1.4; max-width: 38ch; }
.hero-body { font-size: 16px; color: var(--text-muted); margin-top: 18px; line-height: 1.6; max-width: 50ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; font-size: 13px; color: var(--text-subtle); display: flex; align-items: center; gap: 10px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.hero-trust .avatars span:first-child { margin-left: 0; }

.hero-visual { position: relative; }

/* ---------- placeholder ---------- */
.ph {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 11px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255,255,255,0.7);
  padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--border);
  backdrop-filter: blur(2px);
}
.ph-dark { background-color: #1b1b1d; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 11px); border-color: rgba(255,255,255,0.1); }
.ph-dark::after { color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.ph-accent { background-color: var(--accent-wash); background-image: repeating-linear-gradient(135deg, color-mix(in oklch, var(--accent) 18%, transparent) 0 1px, transparent 1px 11px); border-color: var(--accent-soft); }

.hero-mock { aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-hover); }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 20px; box-shadow: var(--shadow-pop); display: flex; gap: 14px; align-items: center;
}
.hero-badge .big { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.hero-badge .lbl { font-size: 12px; color: var(--text-subtle); line-height: 1.3; max-width: 12ch; }
.hero-badge .div { width: 1px; height: 34px; background: var(--border); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-badge { left: auto; right: 12px; bottom: 12px; }
}

/* ============================================================
   PROOF STRIP + MARQUEE
   ============================================================ */
.proof { padding-block: clamp(48px, 6vw, 80px); }
.proof-head { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 44px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat .num .unit { color: var(--accent); }
.stat .cap { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.proof-note { text-align: center; font-size: 15px; color: var(--text-subtle); margin-top: 44px; max-width: 56ch; margin-inline: auto; line-height: 1.55; }

.marquee { margin-top: 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .item { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--text-faint); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.marquee .item .mk { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .5; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

@media (max-width: 720px) { .stats { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   GRID CARDS (problem / audience / trust)
   ============================================================ */
.card-grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 30px; box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.card .idx { font-family: ui-monospace, monospace; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; }
.card h3 { font-size: 19px; margin-top: 16px; letter-spacing: -0.02em; }
.card p { font-size: 14.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.55; }

/* symptom cards — tighter, with marker */
.symptom { display: flex; gap: 16px; align-items: flex-start; }
.symptom .mark { flex: none; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--accent-wash); border: 1px solid var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-weight: 700; font-family: var(--font-display); }
.symptom h3 { margin-top: 0; font-size: 17px; }
.symptom p { margin-top: 7px; font-size: 14px; }

/* audience cards */
.aud-card .tag { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-subtle); letter-spacing: 0.05em; text-transform: uppercase; }
.aud-card h3 { font-size: 20px; margin-top: 14px; }

@media (max-width: 980px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM SYSTEM (pillars)
   ============================================================ */
.system { background: var(--bg-soft); }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.pillars { display: flex; flex-direction: column; gap: 14px; }
.pillar { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-card); }
.pillar .n { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); letter-spacing: -0.03em; min-width: 36px; }
.pillar .ptxt strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; display: block; letter-spacing: -0.02em; }
.pillar .ptxt span { font-size: 13.5px; color: var(--text-subtle); }
.system .lead-note { margin-top: 28px; font-size: 16px; color: var(--text-muted); line-height: 1.6; max-width: 46ch; }

@media (max-width: 860px) { .system-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   DIFFERENT (value before engagement)
   ============================================================ */
.different { background: var(--bg-dark); color: #fff; }
.different .eyebrow { color: var(--accent); }
.different .section-head h2 { color: #fff; }
.different .section-head p { color: rgba(255,255,255,0.62); }
.diff-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.diff-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.diff-list .pill {
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14.5px; color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,0.03);
}
.diff-list .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.diff-quote { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin-top: 34px; }
.diff-quote .hl { color: var(--accent); }
.diff-visual { aspect-ratio: 3/4; }

@media (max-width: 860px) { .diff-grid { grid-template-columns: 1fr; } .diff-list { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.case .case-img { aspect-ratio: 16/11; border-radius: 0; border: none; border-bottom: 1px solid var(--border); }
.case .case-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case .case-name { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -0.03em; }
.case .case-sum { font-size: 14.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.case .results { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.results .rlbl { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 3px; }
.results li { list-style: none; font-size: 14px; color: var(--text); display: flex; align-items: flex-start; gap: 9px; }
.results li .chk { color: var(--accent); flex: none; font-weight: 700; }
.case .case-link { margin-top: 22px; }

@media (max-width: 940px) { .cases-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   PROCESS PHASES
   ============================================================ */
.process { background: var(--bg-alt); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 32px 30px; box-shadow: var(--shadow-card); position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.phase:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.phase .pnum { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.phase h3 { font-size: 24px; margin-top: 14px; letter-spacing: -0.025em; }
.phase .pdesc { font-size: 14.5px; color: var(--text-muted); margin-top: 12px; line-height: 1.55; }
.phase .outputs { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.phase .outputs .olbl { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 12px; }
.phase .outputs ul { list-style: none; margin: 0; padding: 0; }
.phase .outputs li { list-style: none; font-size: 14px; color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--tint-4); display: flex; align-items: center; gap: 10px; }
.phase .outputs li:last-child { border-bottom: none; }
.phase .outputs li .d { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 940px) { .phases { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left; padding: 26px 4px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.faq-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; position: relative; transition: background .2s ease, border-color .2s ease; }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--text); transition: transform .25s ease, background .2s ease; }
.faq-icon::before { width: 13px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 13px; }
.faq-q[aria-expanded="true"] .faq-icon::before, .faq-q[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg) scaleX(0); }
.faq-a { overflow: hidden; height: 0; transition: height .28s ease; }
.faq-a-inner { padding: 0 4px 28px; font-size: 16px; color: var(--text-muted); line-height: 1.6; max-width: 64ch; }
.faq-a-inner .sub { margin-top: 14px; }
.faq-a-inner .sub strong { color: var(--text); font-weight: 600; }

/* ============================================================
   CLOSING CTA + FORM
   ============================================================ */
.closing { background: var(--bg-deep); color: #fff; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.closing .eyebrow { color: var(--accent); }
.closing h2 { font-size: clamp(32px, 4.4vw, 54px); color: #fff; letter-spacing: -0.03em; line-height: 1.04; }
.closing .ctext { color: rgba(255,255,255,0.66); font-size: 16px; line-height: 1.65; margin-top: 22px; max-width: 46ch; }
.closing .scarce { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-pill); padding: 9px 16px; }
.closing .scarce .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.form-card { background: #fff; color: var(--text); border-radius: var(--r-xl); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-pop); }
.form-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.form-card .fsub { font-size: 14px; color: var(--text-subtle); margin-top: 6px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 12px 14px; background: var(--bg-alt); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-wash); }
.field textarea { resize: vertical; min-height: 92px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-card .privacy { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 14px; }

@media (max-width: 860px) { .closing-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .logo { color: #fff; font-size: 24px; }
.footer .ftag { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 16px; line-height: 1.6; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,0.72); padding: 7px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom .legal a:hover { color: #fff; }

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .marquee-track { animation: none; } }

/* tweaks mount — hidden until host activates */
#tweaks-root:empty { display: none; }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.nav-burger-btn {
  display: none; flex: none; width: 42px; height: 42px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: #fff; cursor: pointer; position: relative;
}
.nav-burger-btn span,
.nav-burger-btn span::before,
.nav-burger-btn span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 17px; height: 1.8px;
  background: var(--text); transform: translate(-50%, -50%); transition: transform .25s ease, opacity .2s ease;
}
.nav-burger-btn span::before { content: ""; top: -6px; }
.nav-burger-btn span::after { content: ""; top: 6px; }
body.menu-open .nav-burger-btn span { background: transparent; }
body.menu-open .nav-burger-btn span::before { transform: translate(-50%, -50%) rotate(45deg); top: 0; }
body.menu-open .nav-burger-btn span::after { transform: translate(-50%, -50%) rotate(-45deg); top: 0; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 90px var(--pad) 40px; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
body.menu-open .mobile-drawer { opacity: 1; pointer-events: auto; }
.mobile-drawer a { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-drawer .btn { margin-top: 22px; justify-content: center; font-size: 16px; }

@media (max-width: 940px) {
  .nav-burger-btn { display: inline-flex; }
}

/* ============================================================
   POLISHED MOCKUPS (replace plain placeholders)
   ============================================================ */
.mock {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-hover);
  background: #fff;
}
.mock-bar { height: 38px; background: var(--bg-alt); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-body { padding: 22px; display: grid; gap: 16px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.mock-tile { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.mock-tile .mk-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.mock-tile .mk-num.accent { color: var(--accent); }
.mock-tile .mk-lbl { font-size: 10px; color: var(--text-subtle); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.mock-chart { background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: var(--r-md); height: 120px; padding: 16px; display: flex; align-items: flex-end; gap: 8px; }
.mock-chart b { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: 0.85; display: block; }
.mock-lines { display: grid; gap: 9px; }
.mock-lines u { display: block; height: 9px; border-radius: 6px; background: var(--tint-6); text-decoration: none; }
.mock-lines u.w70 { width: 70%; } .mock-lines u.w50 { width: 50%; } .mock-lines u.w85 { width: 85%; }

.mock-dark { background: #1b1b1d; border-color: rgba(255,255,255,0.1); }
.mock-dark .mock-bar { background: #232325; border-bottom-color: rgba(255,255,255,0.08); }
.mock-dark .mock-tile { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.mock-dark .mock-tile .mk-lbl { color: rgba(255,255,255,0.5); }
.mock-dark .mock-lines u { background: rgba(255,255,255,0.08); }

.hero-mock.mock { aspect-ratio: 4 / 3.4; }
.diff-visual.mock { aspect-ratio: 3/4; }
.case-img.mock { aspect-ratio: 16/11; border-radius: 0; box-shadow: none; border: none; border-bottom: 1px solid var(--border); }
.case-img.mock .mock-body { padding: 18px; }

/* ============================================================
   CLIENT LOGO STRIP (replaces text marquee items)
   ============================================================ */
.marquee .item { color: var(--text-faint); opacity: 0.85; transition: color .2s ease, opacity .2s ease; }
.marquee .logo-wm { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; color: var(--text-faint); white-space: nowrap; }
.marquee .logo-wm svg { width: 22px; height: 22px; flex: none; }
.marquee:hover .logo-wm { color: var(--text-subtle); }

/* ============================================================
   DEFINITION BLOCK (GEO — "What is a managed product team?")
   ============================================================ */
.define { background: var(--bg); }
.define-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start;
}
.define-card .eyebrow { margin-bottom: 16px; }
.define-card h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; }
.define-card .def-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text); line-height: 1.6; }
.define-card .def-lead strong { font-weight: 600; }
.define-card .def-body { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-top: 16px; }
.define-list { display: grid; gap: 12px; }
.define-list .di { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; }
.define-list .di .dchk { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); border: 1px solid var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.define-list .di b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.define-list .di span { display: block; font-size: 13.5px; color: var(--text-subtle); margin-top: 3px; line-height: 1.5; }
@media (max-width: 860px) { .define-card { grid-template-columns: 1fr; } }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
table.compare th, table.compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
table.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--text); background: var(--bg-alt); }
table.compare thead th.us { color: var(--accent); }
table.compare tbody th { font-weight: 500; color: var(--text); font-family: var(--font-body); }
table.compare td { color: var(--text-muted); }
table.compare td.us { background: var(--accent-wash); color: var(--text); font-weight: 500; }
table.compare td .ic { font-weight: 700; margin-right: 7px; }
table.compare td.yes .ic { color: #28a05b; } table.compare td.no .ic { color: #c0392b; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }
table.compare .col-head-us { position: relative; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 30px; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.testi .quote-mark { font-family: var(--font-display); font-size: 48px; line-height: 0.6; color: var(--accent-soft); height: 26px; }
.testi blockquote { font-size: 16px; color: var(--text); line-height: 1.6; margin: 0; flex: 1; letter-spacing: -0.01em; }
.testi .who { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.testi .av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.testi .who b { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: block; }
.testi .who span { font-size: 13px; color: var(--text-subtle); }
@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ============================================================
   ABOUT / WHY LATENT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.about-stat .as-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.about-stat .as-num .unit { color: var(--accent); }
.about-stat .as-cap { font-size: 13.5px; color: var(--text-subtle); margin-top: 10px; line-height: 1.45; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
