/* ═══════════════════════════════════════════════════════════════════
   MUNINN MARKETING SITE — style.css
   Dark slate + amber brand palette
   Fonts: Space Grotesk (display) + Inter (body) — codex-locked v2.8
═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Brand colors — Muninn */
  --amber:          #f59e0b;
  --amber-hover:    #d97706;
  --amber-muted:    #92400e;
  --amber-faint:    rgba(245, 158, 11, 0.12);
  --amber-subtle:   rgba(245, 158, 11, 0.06);

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-750: #243048;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  /* Semantic tokens */
  --color-bg:            var(--slate-900);
  --color-surface:       var(--slate-800);
  --color-surface-2:     var(--slate-750);
  --color-border:        rgba(148, 163, 184, 0.15);
  --color-border-strong: rgba(148, 163, 184, 0.25);
  --color-text:          #e2e8f0;
  --color-text-muted:    #94a3b8;
  --color-text-faint:    #8896a8;
  --color-primary:       var(--amber);
  --color-primary-hover: var(--amber-hover);

  /* Fonts */
  --font-display: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms var(--ease-out);
  --t-base: 220ms var(--ease-out);
  --t-slow: 400ms var(--ease-out);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  --shadow-amber: 0 0 32px rgba(245, 158, 11, 0.2);

  /* Layout */
  --content-default: 1100px;
  --content-narrow:  720px;
}

/* ── Base Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; }
p,li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ── Layout Utilities ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.hidden { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
}
.btn-md {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
}
.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}
.btn-full { width: 100%; }

/* Primary — amber solid */
.btn-primary {
  background: var(--amber);
  color: #0f172a;
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--amber-hover);
  box-shadow: 0 0 20px rgba(245,158,11,0.35);
}

/* Ghost — transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border-strong);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Outline — slate border */
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── Navigation ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.raven-mark { flex-shrink: 0; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--color-text); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.lang-toggle:hover { border-color: var(--amber); color: var(--amber); }

.lang-en, .lang-fr { transition: color var(--t-fast); }
.lang-en.active, .lang-fr.active { color: var(--amber); }
.lang-sep { color: var(--color-border-strong); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--slate-900);
  padding-block: clamp(var(--space-20), 10vw, var(--space-24));
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 860px;
  margin: 0 auto;
}

.hero-raven {
  animation: raven-float 4s ease-in-out infinite;
}
@keyframes raven-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-faint);
  background: var(--amber-subtle);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 20ch;
  text-align: center;
}

.hero-headline-accent {
  color: var(--amber);
}

.hero-subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 56ch;
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

.hero-proof {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

.hero-social-proof {
  margin-top: var(--space-2);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* ── Problem ─────────────────────────────────────────────────────── */
.problem {
  background: var(--slate-800);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-8);
}

.problem-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--amber);
  transition: border-color var(--t-base);
}
.problem-item:hover { border-color: var(--amber); }

.problem-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--amber);
  opacity: 0.5;
  letter-spacing: -0.04em;
  line-height: 1;
}

.problem-item p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 100%;
}

/* ── Section Shared ──────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-16));
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 16ch;
  margin-inline: auto;
}

/* ── Features ────────────────────────────────────────────────────── */
.features { background: var(--slate-900); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--slate-800);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-faint);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-md);
  color: var(--amber);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

/* ── Good/Better/Best ────────────────────────────────────────────── */
.gbb { background: var(--slate-800); }

.gbb-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
}

.gbb-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.gbb-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.gbb-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 46ch;
}

.gbb-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.gbb-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.gbb-bullets li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* GBB visual */
.gbb-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.gbb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.gbb-card {
  background: var(--slate-900);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: border-color var(--t-base);
}
.gbb-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.gbb-card ul li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-3);
  position: relative;
}
.gbb-card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--amber);
}

.gbb-tier-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
}

.gbb-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
}

.gbb-select-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.featured-tier {
  border-color: var(--amber);
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(245,158,11,0.15);
}
.featured-tier .gbb-tier-label { color: var(--amber); }
.featured-tier .gbb-select-btn {
  background: var(--amber);
  color: var(--slate-900);
  border-color: transparent;
  font-weight: 700;
}

.gbb-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--amber);
  color: var(--slate-900);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.gbb-caption {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  font-style: italic;
}

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing { background: var(--slate-900); }

.billing-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--slate-800);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  width: fit-content;
  margin: 0 auto var(--space-12);
}

.toggle-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--t-base), color var(--t-base);
}
.toggle-btn.active {
  background: var(--amber);
  color: var(--slate-900);
}
.toggle-btn:hover:not(.active) { color: var(--color-text); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--slate-800);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.pricing-featured {
  border-color: var(--amber);
  box-shadow: 0 0 32px rgba(245,158,11,0.12);
}
.pricing-featured:hover { box-shadow: 0 0 40px rgba(245,158,11,0.2); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--slate-900);
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card-top { display: flex; flex-direction: column; gap: var(--space-3); }

.plan-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.05em;
  line-height: 1;
}

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

.price-annual-note {
  font-size: var(--text-xs);
  color: var(--amber);
  font-weight: 600;
}

.plan-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 100%;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.check {
  color: var(--amber);
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.coming-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber-faint);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--space-1);
}

.coming-soon-feature { display: flex; align-items: center; }

.pricing-fine-print {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-8);
}

/* ── Compare ─────────────────────────────────────────────────────── */
.compare { background: var(--slate-800); }

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table thead th {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: -0.02em;
  background: var(--slate-900);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.compare-table thead th.col-muninn {
  color: var(--amber);
}

.col-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-fast);
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.compare-table td {
  padding: var(--space-4) var(--space-6);
  color: var(--color-text-muted);
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.col-muninn { text-align: center; background: rgba(245,158,11,0.03); }
.col-joist  { text-align: center; }

.compare-highlight-row td { font-weight: 700; }
.compare-highlight-row .col-muninn { background: rgba(245,158,11,0.06); }

.win-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  background: var(--amber);
  color: var(--slate-900);
  font-weight: 700;
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  letter-spacing: -0.01em;
}

.yes-icon { color: var(--amber); font-weight: 700; font-size: 1rem; }
.no-icon  { color: var(--color-text-faint); font-size: 1rem; }

.compare-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ── French CTA ──────────────────────────────────────────────────── */
.french-cta {
  background: var(--slate-900);
  position: relative;
  overflow: hidden;
}

.french-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.french-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.french-cta-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.french-line-en {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1.1;
}

.french-line-fr {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--amber);
  line-height: 1.1;
}

.french-cta-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 44ch;
}

.french-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-2);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-800);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-logo { margin-bottom: var(--space-1); }

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 30ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--amber); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: right;
}

.footer-legal p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-made { font-style: italic; }

.footer-parent {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

/* ── Scroll Reveal Animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.features-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.features-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.features-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.features-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.features-grid .reveal:nth-child(6) { transition-delay: 300ms; }
.features-grid .reveal:nth-child(7) { transition-delay: 360ms; }
.features-grid .reveal:nth-child(8) { transition-delay: 420ms; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gbb-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .gbb-cards {
    max-width: 500px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--slate-900);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) 0 var(--space-6);
    z-index: 99;
  }
  .nav-links.open { display: flex; }

  .nav-links .nav-link,
  .nav-links .btn {
    width: 100%;
    padding: var(--space-4) clamp(var(--space-6), 5vw, var(--space-16));
    border-radius: 0;
    text-align: left;
    justify-content: flex-start;
  }
  .nav-links .btn {
    border-radius: 0;
    background: transparent;
    color: var(--amber);
    border: none;
    border-top: 1px solid var(--color-border);
    font-weight: 700;
  }
  .nav-links .btn:hover { background: var(--amber-faint); }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-legal { text-align: left; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }

  .gbb-cards {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
  .featured-tier { transform: none; }

  .billing-toggle {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .toggle-btn { border-radius: var(--radius-md); width: 100%; text-align: center; }

  .pricing-grid { grid-template-columns: 1fr; }

  .french-cta-btns { flex-direction: column; align-items: center; }
  .french-cta-btns .btn { width: 100%; max-width: 320px; }

  .french-line-en, .french-line-fr {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .compare-table { font-size: var(--text-xs); }
  .compare-table td, .compare-table thead th {
    padding: var(--space-3) var(--space-4);
  }
}

/* ── Utility: Amber divider between sections ─────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-faint), transparent);
}

/* ═══════════════════════════════════════════════════════════════════
   SIGNUP PAGE
═══════════════════════════════════════════════════════════════════ */
.signup-main { padding: 4rem 0 6rem; }
.signup-hero { }
.signup-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.signup-raven {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.signup-raven img { width: 96px; height: 96px; }
.signup-eyebrow {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.signup-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.signup-sub {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.signup-form { text-align: left; }
.form-row { margin-bottom: 1rem; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row label {
  display: block;
}
.form-row label > span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-row input,
.form-row select {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.form-row select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-full { width: 100%; display: inline-flex; align-items: center; justify-content: center; }
.form-fineprint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-top: 1rem;
}
.signup-success {
  padding: 2rem 0 0.5rem;
  text-align: center;
}
.success-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.signup-success h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.signup-success p { color: var(--color-text-muted); line-height: 1.6; }
.signup-fail {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #fda4af;
}
.signup-fail a { color: var(--amber); }

.signup-trust {
  max-width: 720px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.signup-trust li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}
.signup-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.25rem;
}
.signup-trust span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .signup-card { padding: 2rem 1.25rem; }
  .form-row-split { grid-template-columns: 1fr; }
  .signup-trust { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURES PAGE
═══════════════════════════════════════════════════════════════════ */
.features-main { padding-bottom: 4rem; }

.features-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.features-eyebrow {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.features-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.features-sub {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}
.features-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features-toc {
  position: sticky;
  top: 64px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.features-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.features-toc-list a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}
.features-toc-list a:hover { color: var(--amber); }

.feature-deep {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.feature-deep-alt { background: rgba(30, 41, 59, 0.3); }
.feature-deep-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-deep-reverse > .feature-deep-text { order: 2; }
.feature-deep-reverse > .feature-deep-visual { order: 1; }

.feature-deep-eyebrow {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.feature-deep-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.feature-deep-text > p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.feature-deep-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-deep-bullets li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--color-text);
  line-height: 1.55;
}
.feature-deep-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

/* Mock-up cards */
.feature-deep-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.fdc-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.fdc-row:last-child { border-bottom: none; }
.fdc-row-head { color: var(--color-text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.fdc-row-total { font-weight: 600; }
.fdc-row-markup { color: var(--amber); }
.fdc-row-grand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--amber); border-top: 2px solid var(--color-border); padding-top: 0.8rem; }
.fdc-paid { color: #4ade80; }
.fdc-pending { color: var(--amber); }
.fdc-pos { color: #4ade80; font-weight: 600; }
.fdc-neg { color: #f87171; font-weight: 600; }

/* AI chat mockup */
.feature-deep-chat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.chat-row { display: flex; }
.chat-row span {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  max-width: 88%;
  line-height: 1.5;
  font-size: 0.92rem;
}
.chat-user { justify-content: flex-end; }
.chat-user span {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--color-text);
}
.chat-agent span {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Client portal mockup */
.feature-deep-portal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.portal-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.portal-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }
.portal-amount { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; color: var(--amber); margin-bottom: 1.5rem; }
.portal-amount-sub { font-size: 1rem; color: var(--color-text-muted); font-weight: 500; }
.portal-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.portal-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
  font-size: 0.92rem;
  cursor: default;
}
.portal-btn-primary {
  background: var(--amber);
  color: #0f172a;
  border-color: var(--amber);
  font-weight: 600;
}
.portal-btn-ghost { background: transparent; color: var(--color-text-muted); }

/* Import steps */
.feature-deep-import { display: flex; flex-direction: column; gap: 0.6rem; }
.import-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.import-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
}
.import-step-done .import-step-num { background: var(--amber); color: #0f172a; }
.import-step-done { border-color: rgba(245, 158, 11, 0.4); }

/* Bilingual side-by-side */
.feature-deep-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.bilingual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.bilingual-flag {
  display: inline-block;
  background: var(--amber);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.bilingual-line { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.4rem; }
.bilingual-line-sm { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--color-text-muted); }

/* Final CTA */
.features-final-cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(245,158,11,0.04) 100%);
  border-top: 1px solid var(--color-border);
}
.features-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.features-final-cta p {
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .feature-deep-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-deep-reverse > .feature-deep-text,
  .feature-deep-reverse > .feature-deep-visual { order: initial; }
}

/* Active nav link */
.nav-link-active { color: var(--amber); }
