/* ==========================================================================
   Rowan landing — direction-3 hybrid
   Split hero, demo right, stats strip, three-card how-it-works, coverage
   matrix, audience cards, Lancet why-this-matters, trust grid, dark
   pricing panel, roadmap. Brand tokens from extension/ui.css are honoured
   exactly — no font or colour drift from the in-extension UI.
   ========================================================================== */

body.landing {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   Generic section shell + typography
   ------------------------------------------------------------------ */
.rowan-section {
  padding: var(--s-12) var(--s-6);
  border-top: 1px solid var(--c-border);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: var(--s-8);
}
.section-header h2,
.rowan-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  color: var(--c-text);
}
.section-sub {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--c-text-muted);
  margin: 0;
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  margin: 0 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ------------------------------------------------------------------
   Hero — split layout (text left, demo right)
   ------------------------------------------------------------------ */
.hero {
  padding: var(--s-10) var(--s-6) var(--s-12);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s-12);
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: var(--s-4) 0 var(--s-5);
  color: var(--c-text);
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--c-text-muted);
  margin: 0 0 var(--s-7);
  max-width: 540px;
}
.hero-coverage {
  list-style: none;
  margin: 0 0 var(--s-7);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-coverage li {
  padding: 5px 11px;
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 500;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin: 0 0 var(--s-8);
}
.hero-cta-primary {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 500;
}
.hero-cta-meta {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--c-text-muted);
  margin: 0;
  flex-basis: 100%;
}
.hero-stats {
  list-style: none;
  margin: 0;
  padding: var(--s-6) 0 0;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: var(--s-8);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.hero-stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--c-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero demo — tabbed faux browser frame containing real videos */
.hero-demo {
  position: relative;
}
.hero-demo-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: var(--s-3);
  justify-content: flex-end;
}
.landing-demos-dot {
  /* Override the dot button styling — these are tab buttons now */
  width: auto;
  height: auto;
  border-radius: 6px;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.landing-demos-dot:hover {
  border-color: var(--c-border-strong);
  color: var(--c-text);
}
.landing-demos-dot.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-contrast);
  transform: none;
}
.landing-demo-item[hidden] { display: none; }
.landing-demo-item {
  margin: 0;
}
.hero-demo-frame {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-bg-elevated);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-demo-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--c-bg-muted);
  border-bottom: 1px solid var(--c-border);
}
.hero-demo-dots {
  display: flex;
  gap: 5px;
}
.hero-demo-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.hero-demo-dots span:nth-child(1) { background: #e7c2b9; }
.hero-demo-dots span:nth-child(2) { background: #e8d8a8; }
.hero-demo-dots span:nth-child(3) { background: #bed1be; }
.hero-demo-url {
  flex: 1;
  padding: 4px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-demo-media {
  display: block;
  width: 100%;
  height: auto;
  background: var(--c-bg-elevated);
}
.hero-demo-caption {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--c-text-subtle);
  letter-spacing: 0.04em;
  margin: var(--s-3) 0 0;
}

/* ------------------------------------------------------------------
   How it works — 3 cards
   ------------------------------------------------------------------ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.how-card {
  padding: var(--s-7) var(--s-6) var(--s-8);
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.how-card-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--c-accent-ink);
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-4);
}
.how-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-3);
  color: var(--c-text);
}
.how-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin: 0;
}

/* ------------------------------------------------------------------
   Coverage matrix
   ------------------------------------------------------------------ */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-12);
  align-items: start;
}
.coverage-lede h2 {
  margin-top: var(--s-3);
}
.coverage-note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
}
.coverage-list {
  display: grid;
  gap: 0;
}
.coverage-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-border);
  align-items: baseline;
}
.coverage-row:last-child {
  border-bottom: 1px solid var(--c-border);
}
.coverage-row-label {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--c-text);
  margin: 0;
}
.coverage-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.coverage-tags li {
  padding: 5px 11px;
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-text);
}

/* ------------------------------------------------------------------
   Audience cards
   ------------------------------------------------------------------ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.audience-card {
  padding: var(--s-7) var(--s-6);
  background: var(--c-accent-soft);
  border: 1px solid rgba(74, 122, 94, 0.18);
  border-radius: var(--r-lg);
}
.audience-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--c-text);
  margin: 0 0 var(--s-3);
}
.audience-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin: 0;
}
.audience .section-sub em {
  font-style: italic;
  color: var(--c-accent-ink);
}

/* ------------------------------------------------------------------
   Why this matters — editorial 2-col with pull quote
   ------------------------------------------------------------------ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.why-aside h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-6);
  color: var(--c-text);
}
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--c-text);
  border-left: 3px solid var(--c-accent);
  padding-left: var(--s-6);
  margin: var(--s-2) 0 0;
}
.why-prose {
  max-width: none;
}
.why-prose p {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--c-text);
  margin: 0 0 var(--s-5);
}
.why-prose p:last-child { margin-bottom: 0; }
.why-prose a {
  color: var(--c-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Trust grid — 4 columns inside a single rounded card
   ------------------------------------------------------------------ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg-elevated);
  overflow: hidden;
}
.trust-cell {
  padding: var(--s-7) var(--s-6);
  border-left: 1px solid var(--c-border);
}
.trust-cell:first-child { border-left: 0; }
.trust-num {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--c-accent-ink);
  margin: 0 0 var(--s-3);
}
.trust-cell p:last-child {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq-list {
  display: grid;
  gap: var(--s-7);
  max-width: 780px;
}
.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.005em;
  color: var(--c-text);
}
.faq-item p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0 0 var(--s-2);
}
.faq-item p:last-child { margin-bottom: 0; }
.faq-more {
  margin: var(--s-7) 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
}
.faq-more a {
  color: var(--c-accent-ink);
  text-decoration: none;
}
.faq-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Pricing — dark panel
   ------------------------------------------------------------------ */
.pricing {
  padding: var(--s-12) var(--s-6);
  border-top: 1px solid var(--c-border);
}
.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-panel {
  position: relative;
  overflow: hidden;
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: 24px;
  padding: var(--s-12) var(--s-12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.pricing-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.18;
  pointer-events: none;
}
.pricing-left {
  position: relative;
}
.pricing-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin: 0;
}
.pricing-panel h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: var(--s-3) 0 var(--s-4);
  color: var(--c-bg-elevated);
}
.pricing-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(253, 252, 248, 0.7);
  margin: 0 0 var(--s-7);
  max-width: 460px;
}
.pricing-cta-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
/* Primary CTA inside the dark pricing panel: cream on dark for contrast. */
.pricing-cta {
  display: inline-block;
  background: var(--c-bg);
  border: 1px solid var(--c-bg);
  color: var(--c-text);
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.pricing-cta:hover {
  background: var(--c-bg-elevated);
  border-color: var(--c-bg-elevated);
}
/* Ghost variant — same shape, transparent fill, subtle border. Sits next to
   the primary CTA so both actions read as buttons of equal weight. */
.pricing-cta--ghost {
  background: transparent;
  border-color: rgba(253, 252, 248, 0.3);
  color: var(--c-bg-elevated);
}
.pricing-cta--ghost:hover {
  background: rgba(253, 252, 248, 0.08);
  border-color: rgba(253, 252, 248, 0.5);
  color: var(--c-bg-elevated);
}
.pricing-secondary {
  font-family: var(--font-sans);
  font-size: 13px;
  margin: 14px 0 0 0;
  color: rgba(253, 252, 248, 0.7);
}
.pricing-secondary a {
  color: rgba(253, 252, 248, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-secondary a:hover { color: var(--c-bg-elevated); }
.pricing-checks {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.pricing-checks li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-bg-elevated);
}
.pricing-check {
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
  position: relative;
}
.pricing-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center / 10px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf9f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}

/* ------------------------------------------------------------------
   Roadmap — Now / Next / Later
   ------------------------------------------------------------------ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
}
.roadmap-col h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  color: var(--c-accent-ink);
}
.roadmap-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.roadmap-col li {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  padding-left: var(--s-3);
  border-left: 2px solid var(--c-accent-soft);
}
.roadmap-col li a {
  color: var(--c-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.roadmap-note {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-text-muted);
  font-style: italic;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }
  .why-layout {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .how-grid,
  .audience-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .coverage-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-cell {
    border-left: 1px solid var(--c-border);
    border-top: 1px solid var(--c-border);
  }
  .trust-cell:nth-child(odd) { border-left: 0; }
  .trust-cell:nth-child(-n+2) { border-top: 0; }
  .pricing-panel {
    grid-template-columns: 1fr;
    padding: var(--s-10) var(--s-7);
    gap: var(--s-8);
  }
  .coverage-row {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--s-8) var(--s-5) var(--s-10);
  }
  .rowan-section,
  .pricing {
    padding: var(--s-10) var(--s-5);
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--s-5);
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-cell {
    border-left: 0;
    border-top: 1px solid var(--c-border);
  }
  .trust-cell:first-child { border-top: 0; }
  .pricing-panel {
    border-radius: 18px;
    padding: var(--s-8) var(--s-6);
  }
}
