/* =============================================================
   Checker Landing — vanilla CSS
   Design tokens mirror frontend/src/globals.css (oklch palette)
   ============================================================= */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --background: oklch(0.985 0.002 60);
  --foreground: oklch(0.216 0.008 60);

  /* Cards */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.216 0.008 60);

  /* Primary = Violet */
  --primary: oklch(0.541 0.281 293.009);
  --primary-foreground: oklch(1 0 0);

  /* Secondary */
  --secondary: oklch(0.970 0.004 60);
  --secondary-foreground: oklch(0.216 0.008 60);

  /* Muted */
  --muted: oklch(0.970 0.004 60);
  --muted-foreground: oklch(0.553 0.013 60);

  /* Accent */
  --accent: oklch(0.969 0.016 293.756);
  --accent-foreground: oklch(0.491 0.271 292.581);

  /* Destructive */
  --destructive: oklch(0.577 0.245 27.325);

  /* Borders */
  --border: oklch(0.923 0.006 60);
  --input: oklch(0.923 0.006 60);
  --ring: oklch(0.541 0.281 293.009);

  /* Radius */
  --radius: 0.5rem;

  /* Gradient tokens */
  --gradient-secondary: oklch(0.585 0.233 277.117);
  --gradient-tertiary: oklch(0.673 0.182 276.935);
  --gradient-secondary-dark: oklch(0.536 0.234 275.786);

  /* Success tokens */
  --success: oklch(0.530 0.154 150);
  --success-light: oklch(0.962 0.044 156);
  --success-foreground: oklch(0.365 0.130 145);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 4px 0;
  z-index: 200;
  transition: top 150ms;
}
.skip-link:focus {
  top: 0;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: 72rem; /* 1152px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Grid helpers ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-2-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ── Flex helpers ───────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.flex-1 { flex: 1; }

/* ── Spacing helpers ────────────────────────────────────────── */
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-16 { margin-bottom: 4rem; }

/* ── Typography ─────────────────────────────────────────────── */
.text-xs   { font-size: 0.75rem; line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem; line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

.uppercase { text-transform: uppercase; }
.italic    { font-style: italic; }

.tabular-nums { font-variant-numeric: tabular-nums; }

/* ── Color utilities ────────────────────────────────────────── */
.text-foreground        { color: var(--foreground); }
.text-muted-foreground  { color: var(--muted-foreground); }
.text-primary           { color: var(--primary); }
.text-white             { color: white; }

/* ── Icon color helpers (replaces hardcoded stroke colors on SVG) ── */
.icon-primary  { color: var(--primary); }
.icon-muted    { color: var(--muted-foreground); }
.icon-success  { color: var(--success); }

.bg-white       { background-color: white; }
.bg-background  { background-color: var(--background); }
.bg-muted       { background-color: var(--muted); }
.bg-card        { background-color: var(--card); }
.bg-accent      { background-color: var(--accent); }

/* ── Border utilities ───────────────────────────────────────── */
.border         { border: 1px solid var(--border); }
.border-t       { border-top: 1px solid var(--border); }
.rounded-md     { border-radius: calc(var(--radius) - 2px); }
.rounded-lg     { border-radius: var(--radius); }
.rounded-xl     { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl    { border-radius: calc(var(--radius) + 8px); }
.rounded-full   { border-radius: 9999px; }

/* ── Shadow ─────────────────────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05); }

/* ── Landing-specific custom classes (from globals.css) ─────── */

.mesh-gradient {
  background: var(--background);
  position: relative;
  overflow: hidden;
}
.mesh-gradient::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, oklch(0.541 0.281 293.009 / 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.mesh-gradient::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, oklch(0.585 0.233 277.117 / 0.10) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, oklch(0.673 0.182 276.935 / 0.08) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-secondary) 50%, var(--gradient-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: var(--card);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary), var(--gradient-tertiary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass {
  background: oklch(1 0 0 / 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid oklch(1 0 0 / 0.3);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-secondary) 100%);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, var(--accent-foreground) 0%, var(--gradient-secondary-dark) 100%);
  box-shadow: 0 4px 20px oklch(0.541 0.281 293.009 / 0.35);
  transform: translateY(-1px);
}

.step-line {
  background: linear-gradient(90deg, var(--primary), var(--gradient-secondary), var(--gradient-tertiary));
  height: 2px;
}

.glow-card {
  box-shadow: 0 0 0 2px var(--primary), 0 4px 24px oklch(0.541 0.281 293.009 / 0.15);
}

.feature-card {
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.feature-card:hover {
  box-shadow: 0 8px 30px oklch(0.541 0.281 293.009 / 0.12);
  border-color: oklch(0.541 0.281 293.009 / 0.3);
  transform: translateY(-2px);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms, transform 400ms ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(1 0 0 / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary));
  flex-shrink: 0;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius) - 2px);
  transition: color 150ms;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--foreground);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn-login {
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-login:hover {
  color: var(--foreground);
}

.btn-cta-header {
  height: 2.25rem;
  padding: 0 1rem;
  gap: 0.375rem;
  display: inline-flex;
  align-items: center;
}

/* Mobile menu */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger-btn:hover {
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 49;
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  height: 3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms;
}
.mobile-nav-link:hover {
  color: var(--foreground);
}

.mobile-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 150ms;
}
.btn-mobile-login:hover {
  background-color: var(--muted);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hero-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-top: 1.25rem;
  max-width: 32rem;
  line-height: 1.625;
}

/* App mockup */
.app-mockup-wrapper {
  display: none;
}

.app-mockup {
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.12), 0 4px 20px rgba(0,0,0,0.06);
}

.mockup-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: calc(var(--radius) - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary));
}

.mockup-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--success-light);
  color: var(--success-foreground);
}

.mockup-body {
  background: var(--background);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-receipt {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-receipt-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  flex-shrink: 0;
}

.mockup-receipt-info {
  flex: 1;
  margin-left: 0.75rem;
}

.mockup-receipt-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.mockup-receipt-cat {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.mockup-receipt-amount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mockup-receipt-verified {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: var(--success);
}

.mockup-total {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.mockup-total-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.mockup-footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.mockup-export-btn {
  width: 100%;
  height: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary));
}

/* ── Social Proof ────────────────────────────────────────────── */
.social-proof-section {
  background: white;
  border-top: 1px solid oklch(0.923 0.006 60 / 0.5);
  border-bottom: 1px solid oklch(0.923 0.006 60 / 0.5);
  padding: 3rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ── Section common ──────────────────────────────────────────── */
.section-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  text-wrap: balance;
}

.section-sub {
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── How It Works ────────────────────────────────────────────── */
.hiw-section {
  background: var(--background);
  padding: 6rem 0;
}

.steps-container {
  position: relative;
}

.steps-line {
  display: none;
  position: absolute;
  top: 2rem;
  height: 2px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon-wrap {
  position: relative;
  z-index: 1;
}

.step-icon-box {
  width: 4rem;
  height: 4rem;
  background: var(--accent);
  border-radius: calc(var(--radius) + 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid oklch(0.541 0.281 293.009 / 0.1);
}

.step-number-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.375rem;
  line-height: 1.625;
}

/* ── Features ────────────────────────────────────────────────── */
.features-section {
  background: white;
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
}

.feature-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, oklch(0.541 0.281 293.009 / 0.15), oklch(0.585 0.233 277.117 / 0.15));
  border-radius: calc(var(--radius) + 4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.375rem;
  line-height: 1.625;
}

/* ── Personas ────────────────────────────────────────────────── */
.personas-section {
  background: var(--background);
  padding: 6rem 0;
}

.personas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.persona-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 200ms;
  position: relative;
}
.persona-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
}

.persona-card.highlighted {
  box-shadow: 0 0 0 2px var(--primary), 0 4px 24px oklch(0.541 0.281 293.009 / 0.15);
  border-color: transparent;
}

.persona-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary));
  color: white;
  white-space: nowrap;
}

.persona-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, oklch(0.541 0.281 293.009 / 0.15), oklch(0.585 0.233 277.117 / 0.15));
  border-radius: calc(var(--radius) + 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.persona-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.persona-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.persona-quote {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.persona-items {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-section {
  background: white;
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  position: relative;
}

.pricing-card.highlighted {
  background: var(--card);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--primary), 0 4px 24px oklch(0.541 0.281 293.009 / 0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--gradient-secondary));
  color: white;
  white-space: nowrap;
}

.pricing-tier-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.pricing-card.highlighted .pricing-tier-name {
  color: var(--primary);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.pricing-unit {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

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

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.pricing-feature-text {
  font-size: 0.875rem;
  color: var(--foreground);
}

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

.pricing-feature-text.highlighted-text {
  font-weight: 500;
}

.btn-pricing {
  margin-top: 2rem;
  width: 100%;
  height: 2.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}

.btn-pricing.btn-pricing-secondary {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
}
.btn-pricing.btn-pricing-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 2rem;
}

.pricing-note a {
  color: var(--primary);
}
.pricing-note a:hover {
  text-decoration: underline;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section {
  background: var(--background);
  padding: 6rem 0;
}

.faq-list {
  border-top: 1px solid var(--border);
}

details.faq-item {
  border-bottom: 1px solid var(--border);
}

summary.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: color 150ms;
}
summary.faq-question::-webkit-details-marker {
  display: none;
}
summary.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 200ms;
  color: var(--muted-foreground);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  padding-bottom: 1.25rem;
}

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta-section {
  padding: 6rem 0;
  background: var(--accent);
}

.final-cta-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  text-wrap: balance;
}

.final-cta-sub {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ── Early Access Form ───────────────────────────────────────── */
.early-access-form {
  margin-top: 2rem;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-row[hidden] {
  display: none;
}

.form-input-wrap {
  flex: 1;
}

.form-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.form-input::placeholder {
  color: var(--muted-foreground);
}
.form-input:focus-visible {
  border-color: oklch(0.541 0.281 293.009 / 0.4);
  box-shadow: 0 0 0 3px oklch(0.541 0.281 293.009 / 0.15);
}
.form-input.has-error {
  border-color: var(--destructive);
}
.form-input:disabled {
  opacity: 0.6;
}

.form-error {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--destructive);
}

.btn-submit {
  height: 2.75rem;
  min-width: 10rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  background: var(--foreground);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 150ms, opacity 150ms;
  white-space: nowrap;
}
.btn-submit:hover {
  background-color: oklch(0.216 0.008 60 / 0.9);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid oklch(0.541 0.281 293.009 / 0.2);
  background: var(--accent);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.form-success[hidden] {
  display: none;
}

/* Spinner animation */
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--muted);
  padding: 3rem 1.5rem;
}

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

.footer-brand {
  grid-column: span 2;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  max-width: 18rem;
}

.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.footer-link {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms;
}
.footer-link:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: oklch(0.553 0.013 60 / 0.6);
}

.footer-email {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms;
}
.footer-email:hover {
  color: var(--foreground);
}

/* ── Focus-visible for keyboard navigation ──────────────────── */
.btn-gradient:focus-visible,
.btn-submit:focus-visible,
.btn-pricing:focus-visible,
.btn-pricing-cta:focus-visible,
.nav-link:focus-visible,
.btn-login:focus-visible,
.hamburger-btn:focus-visible,
.footer-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px oklch(0.541 0.281 293.009 / 0.5);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .form-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .personas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .header-cta {
    display: flex;
  }

  .hamburger-btn {
    display: none;
  }

  .hero-section {
    padding-top: 6rem;
    padding-bottom: 8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-heading {
    font-size: 3.25rem;
  }

  .app-mockup-wrapper {
    display: block;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps-line {
    display: block;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .personas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-gradient:hover {
    transform: none;
  }

  .feature-card:hover,
  .feature-card-item:hover {
    transform: none;
  }

  .hero-badge-dot {
    animation: none;
  }

  .spin {
    animation: none;
  }

  .faq-chevron {
    transition: none;
  }
}
