/* LawMarketing.ai v5 — attention-map reframe. Mobile-first vanilla CSS. Anti-slop. */

:root {
  --ink: #171717;
  --ink-soft: #3f3f46;
  --ink-muted: #6b7280;
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --bg-dark: #171717;
  --bg-dark-alt: #0c0a09;
  --accent: #b45309;        /* amber-700 */
  --accent-soft: #fde68a;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --max: 720px;
  --max-wide: 1100px;
  --shadow: 0 1px 2px rgba(23, 23, 23, 0.04), 0 4px 16px rgba(23, 23, 23, 0.06);
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:visited { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading-heavy content sits inside a 720px max column */
.hero-inner,
.section-lede,
.faq-list,
.steps,
.cta-final-inner {
  max-width: var(--max);
}

/* v6 places section uses same reading column as v5 methodology did */
.places h2 { max-width: var(--max); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: 44px; }
h2 { font-size: 34px; margin-bottom: 24px; }
h3 { font-size: 22px; }

h1 em {
  font-style: italic;
  color: var(--accent);
}

p { margin: 0 0 16px; }

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
}

.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.micro {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 12px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
}
.logo-accent { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Mobile: hide section-anchor links to keep header on one row. The sticky CTA is the priority. */
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .nav { gap: 0; }
}
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--accent); }
/* Specificity fix: .nav a (0,1,1) was overriding .btn-primary (0,1,0). Keep scoped overrides. */
.nav a.btn-primary,
.nav a.btn-primary:visited { color: var(--bg); font-size: 14px; }
.nav a.btn-primary:hover { color: #ffffff; }
.nav a.btn-ghost,
.nav a.btn-ghost:visited { color: var(--ink); font-size: 14px; }
.nav a.btn-ghost:hover { color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }

.btn-primary,
.btn-primary:visited {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-ghost,
.btn-ghost:visited {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Hero (v5: copy-first, typographic attention-map) ---------- */
.hero {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  /* v5: single-column copy-led hero. Max-width handled above. */
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 4px;
}

.proof-strip {
  list-style: none;
  padding: 16px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
.proof-strip li { margin: 0; }
.proof-strip strong { color: var(--ink); font-weight: 600; }

/* ---------- Surface map (v5: typographic 4-surface hero element) ----------
   Replaces v4's phone mockup. No icons, no logos. Labels joined by a single
   amber hairline that reads as one map axis. */
.surface-map {
  margin: 28px 0 8px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.surface-map::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.9;
}
.surface-list {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.surface-list li {
  padding: 0;
  line-height: 1.2;
}

/* ---------- Why-now block (v7 hero-scroll beat) ---------- */
.why-now {
  margin: 32px 0 4px;
  padding: 24px 24px 24px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: var(--radius);
}
.why-now p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.why-now p:last-child { margin-bottom: 0; }
.why-now p:last-child { color: var(--ink); }

/* ---------- How (pillars) ---------- */
.how {
  padding: 72px 0;
  background: var(--bg-dark);
  color: var(--bg);
}
.how h2 { color: var(--bg); max-width: var(--max); }
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}
.pillar {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.pillar h3 {
  color: var(--bg);
  margin: 4px 0 8px;
  font-size: 22px;
}
.pillar p {
  color: #d6d3d1;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
/* v6: pillar-num labels removed — stacking fix (no 01/02/03 on pillars) */

/* ---------- Tracks / Pricing ---------- */
.tracks { padding: 80px 0; }
.tracks h2 { max-width: var(--max); }
.track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}
.track {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.track-highlight {
  border: 2px solid var(--ink);
}
.track h3 {
  margin: 0 0 8px;
}
.track-price {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.track-price strong {
  color: var(--ink);
  font-weight: 600;
}
.track-lede {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.track-founding {
  font-size: 13px;
  color: var(--ink);
  background: #fff6e5;
  border-left: 3px solid #d97706;
  padding: 8px 12px;
  margin: 0 0 16px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.track-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 20px;
}
.track-details summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.track-details summary::-webkit-details-marker { display: none; }
.track-details summary::after {
  content: " →";
  transition: transform 0.15s ease;
  display: inline-block;
}
.track-details[open] summary::after {
  content: " ↓";
}
.track-details ul {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}
.track-details li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.track-details li:last-child { border-bottom: none; }
.track-details strong { color: var(--ink); }
.track .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Proof / Built in public ---------- */
.proof {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof h2 { max-width: var(--max); }

/* ---------- Cohort card ---------- */
.cohort-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
  max-width: var(--max);
}
.cohort-card h3 {
  margin: 4px 0 12px;
}
.cohort-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.cohort-card p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 16px;
  line-height: 1.55;
}
.cohort-card .btn {
  margin-top: 4px;
}

/* ---------- Four places (v6: compressed methodology, no Surface 01-04 labels) ---------- */
.places { padding: 80px 0; }
.places h2 { max-width: var(--max); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps h3 { margin: 0 0 6px; }
.steps p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}
.faq h2 { max-width: var(--max); }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list summary {
  font-family: var(--font-serif);
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: var(--ink);
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding-top: 12px;
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- CTA Final ---------- */
.cta-final {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--bg);
}
.cta-final h2 { color: var(--bg); }
.cta-final p { color: #d6d3d1; }
.cta-final a, .cta-final a:visited { color: var(--accent-soft); }
.cta-final a:hover { color: #ffffff; }
.cta-final-inner {
  margin-left: auto;
  margin-right: auto;
}
.cta-final .btn-primary,
.cta-final .btn-primary:visited {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.cta-final .btn-primary:hover {
  background: #92400e;
  border-color: #92400e;
  color: #ffffff;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  gap: 20px;
}
.footer-tag {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 4px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--ink-soft);
}
.copyright {
  color: var(--ink-muted);
  font-size: 13px;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  h1 { font-size: 60px; }
  h2 { font-size: 44px; }
  h3 { font-size: 24px; }
  .hero { padding: 88px 0 104px; }

  /* Surface map: 4-up on tablet+ with middle-dot separators */
  .surface-list {
    grid-template-columns: repeat(4, auto);
    justify-content: flex-start;
    gap: 0;
    font-size: 17px;
  }
  .surface-list li {
    display: flex;
    align-items: center;
  }
  .surface-list li + li::before {
    content: "·";
    color: var(--ink-muted);
    margin: 0 18px;
    font-weight: 400;
  }

  .proof-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: baseline;
  }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .track-grid { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
}

@media (min-width: 1100px) {
  h1 { font-size: 72px; line-height: 1.05; }
  h2 { font-size: 48px; }
  .hero { padding: 120px 0 136px; }
  .surface-list { font-size: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
