/* VerseFlash marketing site — shared styles.
 *
 * Brand: Sky Blue palette mirroring the Flutter app's AppColors
 * (app/lib/core/ui/theme/colors.dart). Airy sky (#7DD3FC) as accent /
 * header tint, deeper sky (#0EA5E9) for CTAs, deep navy (#1E3A8A) for
 * secondary actions. Cool slate backgrounds instead of warm cream.
 * Quicksand for headings, Inter for body. No gradients, hairline
 * borders, generous whitespace.
 */

:root {
  --primary: #7DD3FC;          /* Airy Sky — header tint, accent surfaces */
  --primary-dark: #0EA5E9;     /* Sky Blue — CTAs, active states */
  --primary-light: #BAE6FD;
  --primary-deep: #0284C7;     /* Pressed CTA */
  --primary-surface: #E0F2FE;

  --secondary: #1E3A8A;        /* Deep Navy — secondary CTAs, text on airy sky */
  --secondary-dark: #1E40AF;
  --secondary-surface: #E0E7FF;

  --gold: #F59E0B;             /* Amber — sparing highlights */
  --gold-dark: #D97706;
  --gold-surface: #FEF3C7;

  --error: #EF4444;
  --error-dark: #DC2626;
  --error-surface: #FEE2E2;

  --warn-amber: #B45309;
  --warn-amber-surface: #FEF3C7;

  --bg: #F8FAFC;               /* slate-50 — cool, fits sky palette */
  --surface: #FFFFFF;
  --surface-cream: #F1F5F9;
  --surface-deep: #E2E8F0;

  --text: #0F172A;             /* slate-900 */
  --text-secondary: #475569;   /* slate-600 */
  --text-muted: #94A3B8;       /* slate-400 */

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 0 0 var(--border-strong);

  --font-display: 'Quicksand', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ──── Layout ──── */
/* Container — fills 90 % of the viewport (5 % gutter each side) on
   desktop / tablet, with a generous 1600 px upper cap so the content
   doesn't sprawl on ultra-wide displays. Below the tablet breakpoint
   falls back to fixed 24 px gutters because % gutters at phone widths
   start eating the readable column. */
.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 880px) {
  .container { width: auto; padding: 0 24px; }
}

section { padding: 80px 0; }
section.section-tight { padding: 48px 0; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ──── Header ──── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .site-header { position: relative; }
}
.header-row {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 800;
  font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em;
  line-height: 1;
}
.brand img { width: 32px; height: 32px; display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center;
  height: 38px;
  padding: 0 14px;
  text-decoration: none; color: var(--text-secondary);
  font-weight: 600; font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
  line-height: 1;
}
.nav a:hover { color: var(--text); }
.nav a.nav-cta {
  color: var(--primary-dark);
  background: var(--primary-surface);
}
.nav a.nav-cta:hover { border-color: var(--primary); color: var(--primary-dark); }

/* Mobile menu button (hamburger) */
.mobile-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 0; gap: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .mobile-menu-btn { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% - 1px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    box-shadow: 0 12px 24px rgba(26, 26, 46, 0.06);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 200ms ease, opacity 200ms ease, visibility 200ms ease;
  }
  .nav[aria-expanded="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a { height: 44px; padding: 0 14px; }
  .nav a.nav-cta { justify-content: center; }
}

/* ──── Typography ──── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-top: 0; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 16px; color: var(--text-secondary); }
p.lede { font-size: 19px; color: var(--text-secondary); max-width: 640px; }
a { color: var(--primary-dark); text-decoration-color: rgba(70, 163, 2, 0.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--primary-dark); }

/* ──── Eyebrow tag ──── */
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--primary-surface);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow.amber { background: var(--gold-surface); color: var(--warn-amber); }
.eyebrow.blue { background: var(--secondary-surface); color: var(--secondary-dark); }

/* ──── Buttons ──── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body); font-weight: 800; font-size: 15px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
  border: none; cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 0 0 var(--primary-dark);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--primary-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--primary-dark); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 3px 0 0 var(--border-strong);
}
.btn-secondary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); background: var(--surface-cream); }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ──── Platform CTA buttons (icon + two-line label) ──── */
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;  /* slightly tighter than pill — feels more "tile" */
  box-shadow: 0 3px 0 0 var(--border-strong);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  min-width: 184px;
  cursor: pointer;
}
.btn-platform:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 4px 0 0 var(--primary);
}
.btn-platform:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--primary); }
.btn-platform img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.btn-platform-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  align-items: flex-start;
}
.btn-platform-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.btn-platform-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-top: 2px;
}
.btn-platform-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 0 0 var(--primary-deep);
}
.btn-platform-primary .btn-platform-sub { color: rgba(255, 255, 255, 0.78); }
.btn-platform-primary .btn-platform-name { color: #fff; }
.btn-platform-primary img { filter: brightness(0) invert(1); }
.btn-platform-primary:hover {
  border-color: transparent;
  box-shadow: 0 4px 0 0 var(--primary-deep);
}
.btn-platform-primary:active { box-shadow: 0 1px 0 0 var(--primary-deep); }
.btn-platform-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: 0 3px 0 0 var(--border);
}

/* ──── Nav: Sign in + Download dropdown (top-right) ────
   Selectors use `.nav a.nav-signin` so the specificity beats the
   inherited `.nav a` rule (height: 38px, padding: 0 14px) that would
   otherwise crush the pill's text and cause "Sign in" to wrap vertically. */
.nav a.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 120ms ease, transform 120ms ease;
}
.nav a.nav-signin:hover { border-color: var(--primary); transform: translateY(-1px); color: var(--text); }
.nav a.nav-signin svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-dl {
  position: relative;
  display: inline-block;
}
.nav-dl-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 0 var(--primary-deep);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.nav-dl-trigger:hover { transform: translateY(-1px); box-shadow: 0 3px 0 0 var(--primary-deep); }
.nav-dl-trigger svg { width: 12px; height: 12px; transition: transform 180ms ease; }
.nav-dl:hover .nav-dl-trigger svg,
.nav-dl:focus-within .nav-dl-trigger svg { transform: rotate(180deg); }

.nav-dl-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
  z-index: 100;
}
.nav-dl-menu .nav-dl-item { padding: 12px; }
.nav-dl:hover .nav-dl-menu,
.nav-dl:focus-within .nav-dl-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 10px;
  color: var(--text);
  transition: background-color 100ms ease;
}
.nav-dl-item:hover { background: var(--surface-cream); }
.nav-dl-item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav-dl-item-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-dl-item-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.nav-dl-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.nav-dl-item.is-disabled { opacity: 0.55; pointer-events: none; }

/* On mobile, the nav stacks vertically — dropdown becomes inline list */
@media (max-width: 768px) {
  .nav-dl-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .nav-dl-trigger { display: none; }
}

/* ──── In-page download popup (.dl-menu) ──── */
/* Generic wrapper for any download CTA. On hover/focus-within, reveals the
   same Mac/Browser/Windows menu used by the header — without forcing the
   trigger to adopt the header's pill styling. Drop any link or button inside
   .dl-menu, wrap a .dl-menu-popup next to it, and it works. */
.dl-menu { position: relative; display: inline-block; }
.dl-menu-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
  z-index: 100;
}
.dl-menu:hover .dl-menu-popup,
.dl-menu:focus-within .dl-menu-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* When the popup needs to anchor right (e.g. footer column near edge) */
.dl-menu-popup.dl-menu-popup-right { left: auto; right: 0; }
/* Center variant for hero / pricing teaser where the trigger is a wide button */
.dl-menu-popup.dl-menu-popup-center { left: 50%; transform: translate(-50%, -4px); }
.dl-menu:hover .dl-menu-popup.dl-menu-popup-center,
.dl-menu:focus-within .dl-menu-popup.dl-menu-popup-center { transform: translate(-50%, 0); }
/* On mobile, popups appear inline below the trigger */
@media (max-width: 768px) {
  .dl-menu-popup,
  .dl-menu-popup.dl-menu-popup-right,
  .dl-menu-popup.dl-menu-popup-center {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 8px;
    min-width: 0;
    width: 100%;
  }
}

/* ──── Cards ──── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 200ms ease;
}
.card:hover { border-color: var(--border-strong); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-surface);
  margin-bottom: 16px;
}
.card-icon svg, .card-icon img { width: 22px; height: 22px; color: var(--primary-dark); }
.card-icon.gold { background: var(--gold-surface); }
.card-icon.gold svg, .card-icon.gold img { color: var(--gold-dark); }
.card-icon.blue { background: var(--secondary-surface); }
.card-icon.blue svg, .card-icon.blue img { color: var(--secondary-dark); }
.card-icon.red { background: var(--error-surface); }
.card-icon.red svg, .card-icon.red img { color: var(--error-dark); }

/* Recolour mingcute SVG icons using CSS filters — they ship black, we tint. */
.card-icon img { filter: brightness(0) saturate(100%) invert(38%) sepia(74%) saturate(2354%) hue-rotate(76deg) brightness(94%) contrast(92%); }
.card-icon.gold img { filter: brightness(0) saturate(100%) invert(72%) sepia(54%) saturate(2068%) hue-rotate(8deg) brightness(95%) contrast(101%); }
.card-icon.blue img { filter: brightness(0) saturate(100%) invert(45%) sepia(98%) saturate(1352%) hue-rotate(176deg) brightness(98%) contrast(94%); }
.card-icon.red img { filter: brightness(0) saturate(100%) invert(34%) sepia(80%) saturate(2891%) hue-rotate(338deg) brightness(101%) contrast(94%); }

/* ──── Tilt (cursor-tracking 3D hover) ──── */
.tilt-group { perspective: 1200px; }
.tilt {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}
.tilt:hover {
  box-shadow: 0 18px 36px -12px rgba(26, 26, 46, 0.18), 0 6px 12px -6px rgba(26, 26, 46, 0.08);
  border-color: var(--border-strong);
}
@media (prefers-reduced-motion: reduce) {
  .tilt { transition: none !important; transform: none !important; }
}
@media (hover: none) {
  /* Touch devices — no tilt */
  .tilt:hover { transform: none !important; }
}

/* ──── Grid ──── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ──── Bento (features grid) ──── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* Image-led card variant — screenshot fills the top, headline + body below. */
.card.has-image { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.has-image > h3,
.card.has-image > p { padding-left: 24px; padding-right: 24px; }
.card.has-image > h3 { margin-top: 20px; }
.card.has-image > p { margin-bottom: 24px; }
.card-image {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: var(--surface-muted, #f5f6fa);
  cursor: zoom-in; line-height: 0;
  border-bottom: 1px solid var(--border);
}
.card-image img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: center top;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card-image:hover img { transform: scale(1.03); }
.card-image:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

/* ──── Lightbox ──── */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10, 14, 24, 0.86);
  display: none; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox-frame {
  position: relative;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  background: #000;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body, system-ui);
  font-size: 14px;
  text-align: center;
  max-width: 720px;
}
.lightbox-close {
  position: absolute; top: -16px; right: -16px;
  width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: #fff; color: #111;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lightbox-close:hover { background: #f1f2f6; }
.lightbox-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (max-width: 560px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: -12px; right: -8px; width: 36px; height: 36px; font-size: 20px; }
}

/* ──── Integrations strip ──── */
/* Full-bleed band that sits between the verse-quote and the features
   section. Borrows trust by naming the AV tools VerseFlash plays nice
   with — no logos (sidesteps trademark issues), just wordmarks in a
   restrained typographic row. */
.integrations-strip {
  padding: 36px 0 28px;
  background: var(--surface-elevated, var(--cool-slate, #F8FAFC));
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.06));
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}
.integrations-lede {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.integrations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
}
.integrations-list li {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary, #1a1a2e);
  letter-spacing: 0.01em;
  opacity: 0.85;
}
@media (max-width: 560px) {
  .integrations-list { gap: 14px 22px; font-size: 14px; }
  .integrations-list li { font-size: 14px; }
}


/* ──── Hero ──── */
.hero {
  /* Full-bleed: no container constraint on the hero itself. Padding is
     vertical only — horizontal alignment is handled inside hero-text /
     hero-visual so the laptop can extend right to the viewport edge. */
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 88% 14%, var(--gold-surface), transparent 36%),
    radial-gradient(circle at 12% 88%, var(--primary-surface), transparent 38%),
    var(--bg);
  overflow: hidden;
}
/* Hero layout is now stacked: text block on top (left-aligned, comfortable
   max-width), then the laptop visual below at a FIXED desktop width so it
   never shrinks. Mobile hides the visual entirely — the laptop is too
   small to convey the app at phone sizes. */
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}
.hero-text {
  max-width: 820px;
  /* Centered block above the laptop image — text-align: center on the
     copy, plus flex centering on the .hero-actions and .hero-meta rows
     below so CTAs + stats line up symmetrically. */
  margin: 0 auto;
  text-align: center;
}
.hero-text .hero-actions { justify-content: center; }
.hero-text .hero-meta { justify-content: center; }
/* Lede explicit centre — inherits text-align from .hero-text in most
   browsers, but global `p { ... }` rules can override via specificity.
   Belt-and-braces so the sub-copy lines up under the H1 on the same
   axis. H1 keeps its natural max-width (no override) so it stays on
   the operator-preferred two-line break at "speed,". */
.hero-text p.lede {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-visual {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  /* Visual clips at the section edge — the section has overflow:hidden so
     the laptop stays inside the hero gradient even when 1080px exceeds
     the viewport on narrow laptops. */
}
.laptop-mockup {
  /* Fixed desktop width — the screenshot stays at its real proportions
     no matter the viewport, so it never compresses into a phone-shaped
     thumbnail. On viewports under that width, the laptop overflows the
     hero (and is clipped by hero overflow:hidden); operator's call. */
  width: 1080px;
  max-width: none;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .hero-inner { padding: 0 32px; }
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 24px; }
  .hero-inner { padding: 0 24px; }
}
@media (max-width: 768px) {
  /* Hide the laptop on phone-sized viewports entirely — operator's
     decision. The screenshot doesn't convey the app at small sizes;
     better to let the heading + CTAs do the work alone. */
  .hero-visual { display: none; }
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
}
@media (max-width: 480px) {
  .hero-meta { gap: 20px 24px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.meta-stat { display: flex; flex-direction: column; }
.meta-stat-value { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text); }
.meta-stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
/* MacBook-style mockup wrapping the hero screenshot. CSS-only so no
   external mockup-image dependency; lid + base + hinge are pure
   geometry around the .webp screenshot. Aspect ratio of the SCREEN
   area is locked at 16:10 (real MacBook display ratio, matches the
   1600×1000 source image). Scales fluidly with viewport. */
.laptop-mockup {
  width: 100%;
  max-width: 920px;
  position: relative;
}
.laptop-screen {
  background: var(--text);
  padding: 14px 14px 16px;
  border-radius: 14px 14px 4px 4px;
  box-shadow: 0 18px 48px rgba(26, 26, 46, 0.25),
              0 4px 12px rgba(26, 26, 46, 0.12);
  position: relative;
  /* Screen container itself is 16:10; with 14+14 horizontal padding +
     14+16 vertical padding around it, the OUTER mockup ends up slightly
     taller than 16:10 (the bezel + base hint), which is what a real
     laptop silhouette looks like. */
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.laptop-screen::before {
  /* camera dot at top centre of the bezel */
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: #4a4a5e;
  border-radius: 50%;
}
.laptop-screen img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}
.laptop-base {
  /* trapezoidal silver base below the lid, with hinge notch */
  width: calc(100% + 50px);
  margin: 0 -25px;
  height: 14px;
  background: linear-gradient(to bottom, #d5d5dc 0%, #b5b5bd 60%, #8e8e98 100%);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
  position: relative;
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 5px;
  background: #4a4a5e;
  border-radius: 0 0 10px 10px;
}

/* ──── Section header ──── */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head p.lede { margin-left: auto; margin-right: auto; }

/* ──── Feature row (Path of Mastery, etc) ──── */
.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 880px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-row { grid-template-columns: 1fr; }
}

/* ──── Feature breakdown grid (pricing page) ──── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 960px; margin: 0 auto;
}
@media (max-width: 880px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card h3 {
  font-size: 26px; font-weight: 700; margin-bottom: 8px;
}

/* ──── Pricing comparison table ──── */
.pricing-table-wrap {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 24px 0;
}
.pricing-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--border),
    0 12px 32px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

/* ── thead — tier columns with elevated tier cards ── */
.pricing-compare thead th {
  padding: 32px 24px 28px;
  vertical-align: top;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  position: relative;
  width: 30%;
}
.pricing-compare thead th.ptc-rowlabel { width: 40%; background: var(--surface); }
.pricing-compare thead th.ptc-featured {
  background: linear-gradient(180deg, var(--primary-surface) 0%, rgba(224, 242, 254, 0.35) 100%);
  border-bottom-color: var(--primary-dark);
}
.ptc-tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 4px 0;
}
.ptc-price {
  font-family: var(--font-display);
  margin: 6px 0 4px;
}
.ptc-price-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.ptc-price-period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}
.ptc-blurb {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 10px auto 18px;
  min-height: 36px;
  max-width: 240px;
  line-height: 1.45;
}
.ptc-cta {
  width: 100%;
  text-align: center;
  font-size: 14px;
  padding: 10px 16px;
}
.ptc-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ── tbody section headers (category bands) ── */
.pricing-compare tbody tr.ptc-section th {
  text-align: left;
  padding: 20px 28px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-deep);
  background: var(--surface-cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── tbody data rows ── */
.pricing-compare tbody td {
  padding: 16px 24px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background-color 140ms ease;
}
.pricing-compare tbody tr:last-child td { border-bottom: none; }
.pricing-compare tbody td.ptc-rowlabel {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding-left: 28px;
}
.pricing-compare tbody td.ptc-value {
  font-weight: 600;
  color: var(--text);
}

/* Alternating row tint — applied via .ptc-alt class on every-other
   data row inside each section, so the rhythm resets per section. */
.pricing-compare tbody tr.ptc-alt td {
  background: rgba(248, 250, 252, 0.7);
}
.pricing-compare tbody tr.ptc-alt td.ptc-featured {
  background: rgba(186, 230, 253, 0.32);
}
/* Non-alt featured column still gets a subtle tint so the column reads
   as a continuous block from header to last row. */
.pricing-compare tbody td.ptc-featured {
  background: rgba(186, 230, 253, 0.18);
}

/* Hover lifts the row slightly for scanability. */
.pricing-compare tbody tr:not(.ptc-section):hover td {
  background: var(--surface-cream);
}
.pricing-compare tbody tr:not(.ptc-section):hover td.ptc-featured {
  background: rgba(186, 230, 253, 0.45);
}

.pricing-compare tbody td.ptc-empty {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
}

/* ── Tick badge — gradient circle with white check inside ── */
.ptc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(14, 165, 233, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ptc-check img {
  width: 13px;
  height: 13px;
  display: block;
  /* filter chain inverts black SVG to white */
  filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
  .pricing-table-wrap { padding: 12px 0; }
  .pricing-compare thead th,
  .pricing-compare tbody td { padding: 12px 12px; font-size: 13px; }
  .pricing-compare tbody td.ptc-rowlabel { padding-left: 14px; }
  .pricing-compare tbody tr.ptc-section th { padding: 14px 14px 8px; }
  .ptc-tier { font-size: 15px; }
  .ptc-price-value { font-size: 28px; }
  .ptc-blurb { display: none; }
  .ptc-cta { font-size: 13px; padding: 8px 12px; }
  .ptc-check { width: 20px; height: 20px; }
  .ptc-check img { width: 11px; height: 11px; }
}

/* ──── Pricing grid + cards ──── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pricing-card-featured {
  border-color: var(--primary-dark);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--primary-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-card-head {
  margin-bottom: 20px;
}
.pricing-amount {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 12px;
}
.pricing-amount-value {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.pricing-amount-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}
.pricing-blurb {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li strong { color: var(--text); font-weight: 700; }
.pricing-cta { width: 100%; text-align: center; }

/* ──── Content card (legal pages) ──── */
.content-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.content-card h2 { margin-top: 36px; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { margin-top: 24px; }
.content-card ul, .content-card ol { padding-left: 22px; color: var(--text-secondary); }
.content-card li { margin: 4px 0; }
.content-card .tag-strong { background: var(--surface-cream); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
@media (max-width: 600px) {
  .content-card { padding: 24px; }
}

/* ──── Callout boxes ──── */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  background: var(--primary-surface);
  margin: 24px 0;
}
.callout-warn { border-left-color: var(--warn-amber); background: var(--gold-surface); }
.callout-warn h3, .callout-warn strong { color: var(--warn-amber); }
.callout-info { border-left-color: var(--secondary-dark); background: var(--secondary-surface); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ──── Email template block ──── */
.email-template {
  position: relative;
  background: var(--surface-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 20px;
  margin: 16px 0 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
}
.email-template .label { color: var(--text-muted); font-weight: 600; }
.email-template .copy-btn {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.email-template .copy-btn:hover { background: var(--primary-dark); }

/* ──── Timeline ──── */
.timeline { padding-left: 22px; border-left: 2px solid var(--border); margin: 16px 0 24px; }
.timeline-item { margin: 0 0 20px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 7px;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.timeline-item h4 { margin-bottom: 4px; color: var(--text); }
.timeline-item p { margin-bottom: 0; font-size: 14px; }

/* ──── Page hero (legal/support pages) ──── */
.page-hero {
  background:
    radial-gradient(circle at 88% 24%, var(--gold-surface), transparent 40%),
    radial-gradient(circle at 12% 90%, var(--primary-surface), transparent 40%),
    var(--bg);
  padding: 64px 0 32px;
  text-align: center;
}
.page-hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.page-hero p.lede { margin-left: auto; margin-right: auto; }

/* ──── Footer ──── */
.site-footer {
  background: var(--surface-deep);
  border-top: 1.5px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-row { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 460px) {
  .footer-row { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 16px; font-family: var(--font-body); font-weight: 800;
}
.footer-col a {
  display: block; color: var(--text-secondary); text-decoration: none;
  padding: 4px 0; font-size: 14px; font-weight: 500;
}
.footer-col a:hover { color: var(--text); }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--text-muted); }

/* ──── Verse pull-quote ──── */
.verse-quote {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 32px auto;
  max-width: 720px;
}
.verse-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 16px;
}
.verse-quote cite {
  display: block;
  font-style: normal;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ──── Last-updated stamp ──── */
.last-updated {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* ──── Pricing teaser (homepage) ──── */
.pricing-teaser-grid { align-items: stretch; }
.pt-card { display: flex; flex-direction: column; gap: 14px; }
.pt-card-featured { border-color: var(--primary); box-shadow: 0 12px 30px -16px rgba(26, 26, 46, 0.18); }
.pt-tier {
  font-family: var(--font-heading, 'Quicksand', system-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pt-card-featured .pt-tier { color: var(--primary-dark); }
.pt-price { display: flex; align-items: baseline; gap: 6px; }
.pt-price-value {
  font-family: var(--font-heading, 'Quicksand', system-ui);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
}
.pt-price-period { font-size: 16px; color: var(--text-muted); }
.pt-bullets {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pt-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.45;
}
.pt-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--primary);
}
.pt-card-featured .pt-bullets li::before { background: var(--gold, var(--primary)); }
.pt-cta { margin-top: auto; align-self: flex-start; }
.pt-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
}
.pt-footnote a { font-weight: 600; }

/* ──── FAQ accordion ──── */
.faq-list {
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: border-color 160ms ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  position: relative;
  font-family: var(--font-heading, 'Quicksand', system-ui);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-weight: 400; font-size: 24px;
  color: var(--text-muted);
  transition: transform 200ms ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '\2013';
  font-size: 24px;
}
.faq-item summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-body p { margin: 0; }
.faq-body a { color: var(--primary-dark); font-weight: 600; }

/* ──── Founder note ──── */
#founder { padding-top: 56px; padding-bottom: 56px; }
.founder-note {
  max-width: 720px;
  text-align: left;
}
.founder-head { margin-bottom: 28px; text-align: left; }
.founder-head .eyebrow { justify-content: flex-start; text-align: left; }
.founder-head h2 { margin-top: 6px; text-align: left; }
.founder-body {
  font-family: var(--font-body, 'Inter', system-ui);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
}
.founder-signature {
  font-family: 'Sacramento', cursive;
  font-size: 44px;
  line-height: 1.2;
  color: var(--primary-dark);
  margin: 28px 0 4px;
  transform: rotate(-2deg);
  transform-origin: left center;
  display: inline-block;
}
.founder-role {
  font-family: var(--font-body, 'Inter', system-ui);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 560px) {
  .founder-body { font-size: 16.5px; }
  .founder-signature { font-size: 38px; }
}
