/* ============================================
   STEAD MARKETING SITE
   Deep Sanctuary palette with Warm Minimal display
   Dual theme via [data-theme] attribute
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== THEME TOKENS ===== */

:root[data-theme="dark"] {
  --bg: #020617;
  --bg-secondary: #0F172A;
  --bg-tertiary: #1E293B;
  --bg-elevated: #1E293B;
  --border: #1E293B;
  --border-strong: #334155;
  --accent: #2DD4A8;
  --accent-dark: #18A085;
  --accent-glow: rgba(45, 212, 168, 0.15);
  --text: #E2E8F0;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --danger: #D14B42;
  --warning: #CF9438;
  --success: #22A34B;
  --info: #60A5FA;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(45, 212, 168, 0.18), transparent 70%);
  --gradient-accent: linear-gradient(135deg, #2DD4A8 0%, #18A085 100%);
  --noise-opacity: 0.04;
}

:root[data-theme="light"] {
  --bg: #F5F7F9;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #ECEFF3;
  --bg-elevated: #FFFFFF;
  --border: #D0D8E2;
  --border-strong: #B8C2D0;
  --accent: #18A085;
  --accent-dark: #0F7A65;
  --accent-glow: rgba(24, 160, 133, 0.12);
  --text: #020617;
  --text-secondary: #1E293B;
  --text-muted: #4A5568;
  --danger: #B43A33;
  --warning: #B07A2A;
  --success: #1B8439;
  --info: #2563EB;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(24, 160, 133, 0.10), transparent 70%);
  --gradient-accent: linear-gradient(135deg, #18A085 0%, #0F7A65 100%);
  --noise-opacity: 0.02;
}

/* Default to dark theme if no attribute set */
:root:not([data-theme]) {
  --bg: #020617;
  --bg-secondary: #0F172A;
  --bg-tertiary: #1E293B;
  --bg-elevated: #1E293B;
  --border: #1E293B;
  --border-strong: #334155;
  --accent: #2DD4A8;
  --accent-dark: #18A085;
  --accent-glow: rgba(45, 212, 168, 0.15);
  --text: #E2E8F0;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --danger: #D14B42;
  --warning: #CF9438;
  --success: #22A34B;
  --info: #60A5FA;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(45, 212, 168, 0.18), transparent 70%);
  --gradient-accent: linear-gradient(135deg, #2DD4A8 0%, #18A085 100%);
  --noise-opacity: 0.04;
}

/* ===== RESET ===== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* Persistent grid + glow that hangs from the top centre of the
   viewport on every page. Fixed-position so it doesn't scroll
   with content, masked with a radial fade so it doesn't extend
   all the way down to the bottom. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    var(--gradient-hero),
    linear-gradient(color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 85%);
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ===== TYPOGRAPHY ===== */

.display-xl,
.display-lg,
.display-md,
.display-sm {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-variation-settings: 'opsz' 100, 'SOFT' 50;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}

.display-sm {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-variation-settings: 'opsz' 48, 'SOFT' 50;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent);
}

/* ===== LAYOUT ===== */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 800px;
}

section {
  padding: 3.5rem 0;
  position: relative;
}

section.tight {
  padding: 2rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 2.5rem 0;
  }
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variation-settings: 'opsz' 48, 'SOFT' 50;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-primary a:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.nav-primary a.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Compact button sizing for the nav bar so the Request beta access
   CTA doesn't dwarf the rest of the header. */
.header-actions .btn {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: 9px;
}

/* Mobile-only Request beta access CTA inside the nav panel. Hidden on
   desktop where the header-actions copy is shown instead. The
   .nav-primary qualifier raises specificity above .btn so the
   display: none below isn't beaten by .btn { display: inline-flex }. */
.nav-primary .nav-cta {
  display: none;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

@media (max-width: 880px) {
  .nav-primary {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-primary.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-primary a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  /* Show the Request beta access CTA inside the nav panel on mobile,
     and hide the desktop copy that lives in .header-actions. */
  .nav-primary .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border-radius: 10px;
  }
  .header-actions > [data-beta-request] {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 32px var(--accent-glow);
}

[data-theme="light"] .btn-primary {
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--text-secondary);
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-lg {
  padding: 0.9375rem 1.75rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s ease;
}

.btn-arrow:hover {
  gap: 0.75rem;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

/* Per-hero glow used to render here. Now provided globally via body::after
   so it appears on every page consistently. */

/* Per-hero grid divs are now no-ops -- the grid lives on body and is
   fixed-position so it shows on every page and stays put on scroll.
   Existing markup left in place so this rule keeps the divs harmless. */
.hero-grid-bg {
  display: none;
}

/* Sections with inline bg-secondary used to fully cover the body grid.
   Override their inline style with a slightly translucent variant so
   the grid still shows through these alternating bands. */
section[style*="bg-secondary"] {
  background: color-mix(in oklab, var(--bg-secondary) 78%, transparent) !important;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-content .display-xl {
  margin-bottom: 1.5rem;
}

.hero-content .lead {
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 0 1px var(--border) inset;
}

/* Screenshot placeholder */
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: inherit;
}

.screenshot-placeholder-sm {
  aspect-ratio: 4 / 3;
}

/* ===== FEATURE GRID ===== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  margin-bottom: 0.625rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-card .badge {
  margin-top: 1rem;
}

/* ===== MODE CARDS ===== */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.mode-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0.7;
}

.mode-card:hover {
  border-color: var(--accent);
}

.mode-card .mode-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mode-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
  font-variation-settings: 'opsz' 48;
}

.mode-card p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.mode-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mode-card li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.mode-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== STATS / CALLOUTS ===== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ===== SECTION HEADER ===== */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header.left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section-header .display-md {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
}

/* ===== BADGES ===== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}

.badge-warning {
  background: color-mix(in oklab, var(--warning) 15%, transparent);
  color: var(--warning);
  border-color: color-mix(in oklab, var(--warning) 30%, transparent);
}

.badge-info {
  background: color-mix(in oklab, var(--info) 15%, transparent);
  color: var(--info);
  border-color: color-mix(in oklab, var(--info) 30%, transparent);
}

.badge-muted {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-color: var(--border);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== ROADMAP / TIMELINE ===== */

.timeline {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-item.done::before {
  background: var(--accent);
}

.timeline-item.future::before {
  border-color: var(--border-strong);
}

.timeline-item h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-variation-settings: 'opsz' 48;
}

.timeline-item p {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.timeline-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.timeline-item ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  position: relative;
}

.timeline-item ul li::before {
  content: '—';
  position: absolute;
  left: -1.25rem;
  color: var(--text-muted);
}

.timeline-item.done h3,
.timeline-item.done ul li {
  text-decoration: none;
}

/* ===== FAQ / DETAIL LISTS ===== */

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Two-column variant for FAQ-style detail lists. Uses CSS columns so
   open/closed details items flow naturally between columns instead of
   creating mismatched grid rows. */
.detail-list.detail-list-cols {
  display: block;
  column-count: 2;
  column-gap: 0.5rem;
}
.detail-list.detail-list-cols > .detail {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}
.detail-list.detail-list-cols > .detail:last-child {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .detail-list.detail-list-cols {
    column-count: 1;
  }
}

.detail {
  padding: 1.125rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.detail:hover {
  border-color: var(--border-strong);
}

.detail summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--text);
}

.detail summary::-webkit-details-marker {
  display: none;
}

.detail summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s ease;
}

.detail[open] summary::after {
  transform: rotate(45deg);
}

.detail-content {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.detail-content p + p {
  margin-top: 0.75rem;
}

/* ===== PRICING ===== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.price-card.featured {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--bg-secondary) 95%, var(--accent));
}

.price-card.featured::before {
  content: 'Best value';
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--gradient-accent);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

[data-theme="light"] .price-card.featured::before {
  color: #FFFFFF;
}

.price-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-variation-settings: 'opsz' 48;
}

.price-card .description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.125rem;
  min-height: 2.6em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
}

.price-amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text);
  font-variation-settings: 'opsz' 96;
  line-height: 1;
}

.price-period {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.price-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 0.125rem;
}

/* ===== CTA BAND ===== */

.cta-band {
  position: relative;
  padding: 3rem 1.75rem;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band .display-md {
  margin-bottom: 1rem;
}

.cta-band p {
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FORMS ===== */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-group label .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-group .help {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.form-note {
  padding: 1rem 1.125rem;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== TWO COLUMN ===== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  /* Any inline grid-template-columns overrides on grids should also
     fall back to a single column on mobile -- text plus screenshot
     placeholders are too cramped at narrow widths otherwise. */
  .feature-grid[style*="grid-template-columns"],
  .pricing-grid[style*="grid-template-columns"],
  .mode-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

.two-col h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-variation-settings: 'opsz' 72;
}

.two-col p + p {
  margin-top: 1rem;
}

.two-col ul.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.two-col ul.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.two-col ul.checklist li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 0.125rem;
}

/* ===== CONTENT BLOCKS (privacy/about) ===== */

.prose {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  font-variation-settings: 'opsz' 72;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.625rem;
  color: var(--text);
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ===== FOOTER ===== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 1.25rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
  background: color-mix(in oklab, var(--bg-secondary) 78%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== UTILITIES ===== */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: 1.5rem; }
.mb-md { margin-bottom: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.mb-lg { margin-bottom: 3rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* Page-load transition. Every page's <main> fades in with a small
   upward slide so navigating between pages feels like a transition
   instead of an instant slap. The header, footer, and background
   grid stay anchored — only the content animates. */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

main {
  animation: pageFadeIn 0.35s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
