/* ═══════════════════════════════════════════════════════════════════
   FROGPOS — Landing Page Styles
   Design-matched to the in-app landing (src/pages/Landing.tsx) —
   same tokens, glass system, buttons, and ambient background.
   Pure CSS, no build tools needed.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  /* Dark-mode visitors: paint the browser canvas dark from the FIRST frame so
     navigating between pages never flashes white (the <html> layer paints
     before the <body>; the inline <head> script adds .dark pre-paint). */
  background-color: oklch(0.983 0.005 100);
}

html.dark {
  background-color: oklch(0.14 0.015 110);
}

/* ── Theme Variables ──
   Mirrors src/index.css :root + .dark tokens exactly. */

:root {
  --radius: 0.625rem;

  /* Surfaces — warm neutral, olive accent (app's oklch tokens) */
  --background: oklch(0.983 0.005 100);
  --foreground: oklch(0.2 0.02 110);
  --card: oklch(1 0 0 / 0.72);
  --card-foreground: oklch(0.2 0.02 110);
  --popover: oklch(1 0 0 / 0.88);
  --popover-foreground: oklch(0.2 0.02 110);
  --primary: oklch(0.26 0.03 110);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.962 0.008 100 / 0.7);
  --secondary-foreground: oklch(0.24 0.02 110);
  --muted: oklch(0.955 0.01 100 / 0.6);
  --muted-foreground: oklch(0.46 0.02 110);
  --accent: oklch(0.92 0.012 100 / 0.55);
  --accent-foreground: oklch(0.22 0.02 110);
  --border: oklch(0.87 0.01 100 / 0.65);
  --input: oklch(0.86 0.01 100 / 0.75);
  --ring: oklch(0.55 0.09 110);

  /* Brand — fresh forest green (Sage Sensation → Darkest Forest) */
  --brand-50: #ebf4dd;
  --brand-100: #bbdb8d;
  --brand-200: #a2c764;
  --brand-300: #89b33c;
  --brand-400: #759d1e;
  --brand-500: #618800;
  --brand-600: #4e7300;
  --brand-700: #3b5f00;
  --brand-800: #2d4a00;
  --brand-900: #1f3600;

  --header-bg: oklch(1 0 0 / 0.6);
  --dot-color: rgba(0, 0, 0, 0.03);
}

html.dark {
  --background: oklch(0.14 0.015 110);
  --foreground: oklch(0.95 0.008 100);
  --card: oklch(0.18 0.015 110 / 0.4);
  --card-foreground: oklch(0.95 0.008 100);
  --popover: oklch(0.18 0.015 110 / 0.55);
  --popover-foreground: oklch(0.95 0.008 100);
  --primary: oklch(0.95 0 0);
  --primary-foreground: oklch(0.16 0 0);
  --secondary: oklch(0.22 0.015 110 / 0.5);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.22 0.015 110 / 0.4);
  --muted-foreground: oklch(0.63 0.02 100);
  --accent: oklch(0.25 0.015 110 / 0.5);
  --accent-foreground: oklch(0.95 0.008 100);
  --border: oklch(0.29 0.015 110 / 0.45);
  --input: oklch(0.29 0.015 110 / 0.5);
  --ring: oklch(0.5 0.09 110);

  --header-bg: oklch(0.11 0.015 110 / 0.8);
  --dot-color: rgba(255, 255, 255, 0.025);
}

/* ── Base ── */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  overflow-x: clip;
  transition: background 0.3s ease, color 0.3s ease;
  /* Same ambient backdrop as the app: faint dot grid + whisper-soft olive auras */
  background-image:
    repeating-radial-gradient(circle at center, var(--dot-color) 0.5px, transparent 0.5px, transparent 32px),
    radial-gradient(ellipse 80% 60% at 15% 15%, rgba(97, 136, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 80% 25%, rgba(162, 199, 100, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 60% 75%, rgba(78, 115, 0, 0.04) 0%, transparent 50%);
  background-size: auto, 100% 100%, 100% 100%, 100% 100%;
  animation: aura-drift 60s ease-in-out infinite;
}

html.dark {
  background-image:
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.025) 0.5px, transparent 0.5px, transparent 32px),
    radial-gradient(ellipse 80% 60% at 15% 15%, rgba(97, 136, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 80% 25%, rgba(162, 199, 100, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 60% 75%, rgba(45, 74, 0, 0.09) 0%, transparent 50%);
}

@keyframes aura-drift {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  25%  { background-position: 0% 0%, 5% -3%, -3% 4%, 2% -2%; }
  50%  { background-position: 0% 0%, -3% 4%, 4% -2%, -2% 3%; }
  75%  { background-position: 0% 0%, 4% -2%, -2% 3%, 3% -1%; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 4px oklch(1 0 0 / 0.6);
}

/* ── Glass System (matches the app's .glass / .glass-card / .glass-strong / .pos-modal) ── */
.glass,
.glass-card,
.glass-strong,
.pos-modal {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-top: 1px solid oklch(1 0 0 / 0.4);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.04);
}

html.dark .glass,
html.dark .glass-card,
html.dark .glass-strong,
html.dark .pos-modal {
  border-top-color: oklch(1 0 0 / 0.08);
}

.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.glass-card:hover {
  border-color: oklch(0.7 0.025 110 / 0.5);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.08);
}

html.dark .glass-card:hover {
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.3);
}

.glass-strong {
  background: var(--popover);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid oklch(1 0 0 / 0.5);
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.06);
}

.pos-modal {
  background: oklch(1 0 0 / 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid oklch(0.55 0.07 110 / 0.28);
  border-top: 1px solid oklch(1 0 0 / 0.6);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 2px 8px oklch(0 0 0 / 0.08),
    0 8px 32px oklch(0 0 0 / 0.12),
    0 24px 60px oklch(0 0 0 / 0.08);
}

html.dark .pos-modal {
  background: oklch(0.18 0.015 110 / 0.65);
  border-color: oklch(0.32 0.015 110 / 0.35);
  border-top: 1px solid oklch(1 0 0 / 0.08);
  box-shadow:
    0 2px 8px oklch(0 0 0 / 0.3),
    0 8px 32px oklch(0 0 0 / 0.4),
    0 24px 60px oklch(0 0 0 / 0.2);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass, .glass-card, .glass-strong, .pos-modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .glass, .glass-card { background: oklch(0.97 0.006 100); }
  .glass-strong { background: oklch(0.955 0.006 100); }
  .pos-modal { background: oklch(0.97 0.006 100); }
  html.dark .glass, html.dark .glass-card { background: oklch(0.16 0.015 110); }
  html.dark .glass-strong { background: oklch(0.18 0.015 110); }
  html.dark .pos-modal { background: oklch(0.18 0.015 110); }
}

/* ── Buttons (matches the app's Button component) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 75ms;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(59, 95, 0, 0.25), 0 4px 6px -4px rgba(59, 95, 0, 0.25);
}

/* Light sweep that races across the button on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.55s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 24px -6px rgba(59, 95, 0, 0.45), 0 6px 10px -4px rgba(59, 95, 0, 0.35);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 12px -4px rgba(59, 95, 0, 0.35);
}

.btn-outline {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-top: 1px solid oklch(1 0 0 / 0.4);
  color: var(--foreground);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.04);
}

.btn-outline:hover {
  background: oklch(1 0 0 / 0.7);
  border-color: var(--brand-200);
}

html.dark .btn-outline:hover {
  background: oklch(1 0 0 / 0.15);
  border-color: var(--brand-700);
}

.btn-secondary {
  background: var(--popover);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-top: 1px solid oklch(1 0 0 / 0.5);
  color: var(--foreground);
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.06);
}

.btn-secondary:hover {
  background: oklch(1 0 0 / 0.8);
}

html.dark .btn-secondary:hover {
  background: oklch(1 0 0 / 0.1);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.btn-arrow {
  display: none;
}

/* ── Utility ── */
.section {
  max-width: 1152px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-alt {
  max-width: 100%;
  padding: 80px 24px;
  background: oklch(1 0 0 / 0.3);
  border-block: 1px solid var(--border);
}

html.dark .section-alt {
  background: oklch(1 0 0 / 0.05);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .section-header h2 { font-size: 30px; }
}

.section-header p {
  margin: 12px auto 0;
  max-width: 448px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grid children once the grid becomes visible */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

/* Hero entrance — elements fade up in sequence on load */
.hero-badge,
.hero h1,
.hero-desc,
.hero-actions,
.hero-trust {
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-desc { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.hero-trust { animation-delay: 0.45s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ HEADER ═══════════ */
#header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, opacity 0.2s;
}

.brand:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.brand-icon {
  width: 26px;
  height: 26px;
}

.brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-700);
}

html.dark .brand-text {
  color: var(--brand-400);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px !important;
  box-shadow: 0 10px 15px -3px rgba(59, 95, 0, 0.2), 0 4px 6px -4px rgba(59, 95, 0, 0.2);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -6px rgba(59, 95, 0, 0.45);
}

.nav-signin {
  font-size: 12px;
  color: var(--muted-foreground);
  transition: color 0.2s, background 0.2s;
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-signin:hover {
  color: var(--foreground);
  background: oklch(1 0 0 / 0.4);
}

html.dark .nav-signin:hover {
  background: oklch(1 0 0 / 0.05);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .mobile-only { display: none !important; }
}

/* ── Header actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--accent);
  color: var(--foreground);
}

/* Theme toggle icons */
.sun-icon { display: none; }
.moon-icon { display: block; }
html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }

/* Menu toggle icons */
.menu-close { display: none; }
.mobile-menu-open .menu-open { display: none; }
.mobile-menu-open .menu-close { display: block; }

/* ── Mobile menu ── */
.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  visibility: hidden;
  transition: grid-template-rows 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  border-bottom: 1px solid transparent;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-menu.open {
  grid-template-rows: 1fr;
  visibility: visible;
  border-bottom-color: var(--border);
}

.mobile-menu nav {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
  transition: padding 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open nav {
  padding: 12px 16px 20px;
}

.mobile-menu a {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted-foreground);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--accent);
  color: var(--foreground);
}

.mobile-cta {
  margin-top: 8px;
  background: var(--brand-700) !important;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .mobile-menu { display: none; }
}

/* ═══════════ HERO ═══════════
   Mirrors the in-app hero: centered, ambient glows, no mockup. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 144px 24px 96px;
  text-align: center;
}

@media (min-width: 640px) {
  .hero { padding: 176px 24px 128px; }
}

/* Ambient glow blobs — same as the app's hero */
.hero::before {
  content: '';
  position: absolute;
  top: -128px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 384px;
  border-radius: 50%;
  background: rgba(137, 179, 60, 0.25);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 256px;
  left: 25%;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: rgba(252, 211, 77, 0.2);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 896px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 20px;
  background: var(--background);
}

.hero-badge svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  h1 { font-size: 48px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 60px; }
}

.text-brand {
  color: var(--brand-700);
}

html.dark .text-brand {
  color: var(--brand-400);
}

.hero-desc {
  margin: 20px auto 0;
  max-width: 512px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero-desc { font-size: 18px; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

/* ═══════════ SCROLL PROGRESS + BACK TO TOP ═══════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  z-index: 200;
  border-radius: 0 2px 2px 0;
  /* No width transition — the bar tracks the scroll position directly */
}

/* ── PC quick-jump rail (task #14) — fixed left rail, desktop only ── */
.quick-jump {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 140;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.quick-jump a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  opacity: 0.75;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.quick-jump a:hover {
  color: var(--foreground);
  opacity: 1;
}

.quick-jump a.active {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: var(--brand-200);
  opacity: 1;
}

html.dark .quick-jump a.active {
  color: var(--brand-400);
  background: oklch(1 0 0 / 0.06);
  border-color: var(--brand-700);
}

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

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--popover);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--foreground);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease, color 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
}

html.dark .back-to-top:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

/* ═══════════ STATS ═══════════ */
.stats {
  border-block: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1024px;
  margin: 0 auto;
}

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

.stat-item {
  padding: 32px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

.stat-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.08);
}

html.dark .stat-icon {
  background: rgba(31, 54, 0, 0.4);
  color: var(--brand-300);
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}

html.dark .stat-number {
  color: var(--brand-400);
}

.stat-label {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ═══════════ FEATURES / CAPABILITIES GRIDS ═══════════ */
.features-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 20px;
  border-radius: 12px;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
}

html.dark .feature-card:hover {
  border-color: var(--brand-500);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  color: var(--brand-800);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.08);
  margin-bottom: 12px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

html.dark .feature-icon {
  background: linear-gradient(135deg, rgba(31, 54, 0, 0.5), rgba(31, 54, 0, 0.25));
  color: var(--brand-300);
}

.feature-card:hover .feature-icon {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px oklch(0.3 0.06 110 / 0.25);
}

html.dark .feature-card:hover .feature-icon {
  box-shadow: 0 8px 20px oklch(0.3 0.06 110 / 0.45);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ═══════════ HOW IT WORKS ═══════════ */
.steps-grid {
  display: grid;
  gap: 16px;
}

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

.step-card {
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
}

html.dark .step-card:hover {
  border-color: var(--brand-500);
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 10px oklch(0.3 0.06 110 / 0.3);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

html.dark .step-number {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
}

.step-card:hover .step-number {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 8px 18px oklch(0.3 0.06 110 / 0.4);
}

.step-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ═══════════ PRICING ═══════════ */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.toggle-label.active {
  color: var(--foreground);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: var(--input);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  padding: 0;
}

.toggle-switch[aria-checked="true"] {
  background: var(--brand-600);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.toggle-switch[aria-checked="true"] .toggle-thumb {
  transform: translateX(20px);
}

.save-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 600;
}

html.dark .save-badge {
  background: rgba(31, 54, 0, 0.4);
  color: var(--brand-300);
}

/* ── Trial banner (pricing) ── */
.trial-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  max-width: 576px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(97, 136, 0, 0.3);
  background: rgba(97, 136, 0, 0.05);
  font-size: 12px;
  color: var(--muted-foreground);
  text-align: left;
}

.trial-banner strong {
  color: var(--brand-700);
  font-weight: 700;
}

html.dark .trial-banner strong {
  color: var(--brand-400);
}

.trial-banner-icon {
  color: var(--brand-600);
  flex-shrink: 0;
  display: flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.trial-banner:hover .trial-banner-icon {
  transform: rotate(-8deg) scale(1.12);
}

.pricing-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: 0 12px 32px oklch(0.3 0.06 110 / 0.12), 0 24px 64px oklch(0 0 0 / 0.1);
}

html.dark .plan-card:hover {
  border-color: var(--brand-500);
  box-shadow: 0 12px 32px oklch(0.3 0.06 110 / 0.35), 0 24px 64px oklch(0 0 0 / 0.35);
}

.plan-card.popular {
  padding: 0;
  overflow: hidden;
  transform: scale(1.03);
  z-index: 1;
  border: 2px solid var(--brand-500);
  box-shadow:
    0 0 0 1px oklch(0.45 0.09 110 / 0.25),
    0 8px 32px oklch(0.3 0.06 110 / 0.3),
    0 24px 64px oklch(0 0 0 / 0.14);
}

html.dark .plan-card.popular {
  border-color: var(--brand-400);
  box-shadow:
    0 0 0 1px oklch(0.6 0.09 110 / 0.35),
    0 8px 32px oklch(0.25 0.06 110 / 0.4),
    0 24px 64px oklch(0 0 0 / 0.4);
}

.plan-card.popular:hover {
  transform: scale(1.045) translateY(-3px);
  box-shadow:
    0 0 0 2px oklch(0.55 0.09 110 / 0.5),
    0 16px 40px oklch(0.3 0.06 110 / 0.4),
    0 32px 80px oklch(0 0 0 / 0.2);
}

/* Top accent bar on the highlighted plan */
.plan-card.popular::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600), var(--brand-400));
  background-size: 200% 100%;
  animation: brand-sheen 6s ease-in-out infinite;
}

@keyframes brand-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Soft breathing glow so the best plan always catches the eye */
.plan-card.popular .popular-inner {
  animation: popular-breathe 3.6s ease-in-out infinite;
}

@keyframes popular-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
}

.popular-inner {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.popular-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(59, 95, 0, 0.4);
}

.popular-badge svg {
  flex-shrink: 0;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
}

.plan-desc {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}

.plan-price {
  margin-bottom: 20px;
}

.price-amount {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.price-period {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-left: 4px;
}

.price-strike {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: oklch(0.62 0.03 25 / 0.55);
  margin-left: 6px;
}

.price-save {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: 3px;
}

html.dark .price-save {
  background: rgba(31, 54, 0, 0.5);
  color: var(--brand-300);
}

.price-custom {
  font-size: 20px;
}

/* Session 97: the one-time license price is always paired with the ₱1,999/mo
   maintenance & updates fee — visible under every plan card, both modes. */
.maint-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-foreground);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.plan-features li::before {
  content: none;
}

.plan-features li .feature-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.plan-features li.pro .feature-check {
  background: var(--brand-100);
  color: var(--brand-600);
}

.plan-features li.basic .feature-check {
  background: var(--border);
  color: var(--muted-foreground);
  opacity: 0.6;
}

.plan-features li.pro span:last-child {
  color: var(--foreground);
}

.plan-features li.basic span:last-child {
  color: var(--muted-foreground);
}

.plan-card .btn-full {
  margin-top: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.white-label-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-50);
  color: var(--brand-800);
  border: 1px solid var(--brand-200);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

html.dark .white-label-badge {
  background: rgba(97, 136, 0, 0.2);
  color: var(--brand-200);
  border-color: rgba(162, 199, 100, 0.3);
}

/* ═══════════ GET STARTED (PROMO) ═══════════ */
.promo-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
}

.promo-card h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .promo-card h2 { font-size: 32px; }
}

.promo-card > p {
  margin: 12px auto 0;
  max-width: 480px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.promo-checklist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 24px auto 0;
  max-width: 560px;
}

.promo-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
  text-align: left;
}

.promo-checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e7300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

html.dark .promo-checklist li::before {
  background-color: rgba(31, 54, 0, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2c764' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.promo-card .btn {
  margin-top: 28px;
}

/* 3D tilt target — transform is driven by JS; this snappy transition
   overrides .reveal's slower 0.7s so the tilt follows the cursor tightly */
.tilt {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.tilt > * {
  transform: translateZ(0);
}

/* ═══════════ FAQ ═══════════ */
.faq-wrap {
  max-width: 768px;
  margin: 0 auto;
}

.faq-search {
  position: relative;
  margin-bottom: 20px;
}

.faq-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  border: 1px solid var(--brand-300);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html.dark .faq-search input {
  border-color: var(--brand-800);
}

.faq-search input::placeholder {
  color: var(--muted-foreground);
}

.faq-search input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(97, 136, 0, 0.18);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 0 24px;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: oklch(0.7 0.025 110 / 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  transition: transform 0.25s ease;
}

html.dark .faq-icon {
  background: rgba(31, 54, 0, 0.4);
  color: var(--brand-300);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
}

.faq-icon-h {
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
}

.faq-item.open .faq-icon-h {
  opacity: 0;
  transform: scaleX(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.faq-empty {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

.faq-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.faq-more-btn {
  text-decoration: none;
  display: inline-block;
  background: none;
  border: 1px solid var(--brand-300);
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

html.dark .faq-more-btn {
  border-color: var(--brand-800);
  color: var(--brand-300);
}

.faq-more-btn:hover {
  background: var(--brand-100);
  border-color: var(--brand-600);
}
/* FAQ "For more questions" link */
.faq-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.faq-more-link {
  font-size: 13px;
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.faq-more-link:hover {
  color: var(--brand-700);
}
html.dark .faq-more-link {
  color: var(--brand-400);
}
html.dark .faq-more-link:hover {
  color: var(--brand-300);
}


html.dark .faq-more-btn:hover {
  background: rgba(31, 54, 0, 0.4);
  border-color: var(--brand-600);
}

/* ═══════════ CTA ═══════════ */
.cta-section {
  background: var(--brand-700);
  border-top: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}

.cta-content {
  max-width: 672px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

@media (min-width: 640px) {
  .cta-content h2 { font-size: 30px; }
}

.cta-content p {
  margin: 12px auto 0;
  max-width: 448px;
  color: var(--brand-100);
  font-size: 14px;
  line-height: 1.6;
}

.cta-note {
  margin-top: 12px;
  font-size: 12px !important;
  color: var(--brand-100) !important;
}

.cta-section .btn-secondary {
  margin-top: 24px;
  background: #fff;
  color: var(--brand-700);
  border: none;
}

.cta-section .btn-secondary:hover {
  background: var(--brand-50);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(59, 95, 0, 0.35);
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted-foreground);
  transition: color 0.2s;
  width: fit-content;
}

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

/* Footer product links — visual feature rows (task #16): icon + label so
   each item reads as its feature instead of four identical anchor jumps. */
.footer-col .footer-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-col .footer-feature svg {
  color: var(--brand-600);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

html.dark .footer-col .footer-feature svg {
  color: var(--brand-400);
}

.footer-col .footer-feature:hover {
  color: var(--foreground);
  background: oklch(1 0 0 / 0.05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
}

.footer-icon {
  width: 30px;
  height: 30px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 240px;
}

.footer-email {
  color: var(--brand-700) !important;
  font-weight: 500;
  font-size: 13px;
}

html.dark .footer-email {
  color: var(--brand-400) !important;
}

.footer-bottom {
  max-width: 1152px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--foreground);
}

/* ═══════════ BENEFITS STRIP ═══════════ */
.benefits {
  border-top: 1px solid var(--border);
}

.benefits-grid {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 32px;
  padding: 48px 24px;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  color: var(--brand-800);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.08);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

html.dark .benefit-icon {
  background: linear-gradient(135deg, rgba(31, 54, 0, 0.5), rgba(31, 54, 0, 0.25));
  color: var(--brand-300);
}

.benefit-item:hover .benefit-icon {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px oklch(0.3 0.06 110 / 0.25);
}

html.dark .benefit-item:hover .benefit-icon {
  box-shadow: 0 8px 20px oklch(0.3 0.06 110 / 0.45);
}

.benefit-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.benefit-content p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.benefit-content a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.dark .benefit-content a {
  color: var(--brand-400);
}
.legal-hero {
  padding: 160px 24px 48px;
  text-align: center;
}

.legal-hero h1 {
  margin-top: 16px;
}

.legal-updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.legal > p,
.legal > ul,
.legal > ol {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal strong {
  color: var(--foreground);
}

.legal h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.legal a:not(.btn) {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* .btn anchors inside .legal must keep their own colors (e.g. white text on
   .btn-primary) instead of inheriting the link green — same weight as the
   link rule, so declared after it wins. */
.legal a.btn {
  text-decoration: none;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

/* ═══════════ COOKIE CONSENT ═══════════ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 250;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--background);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.14);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cookie-banner-text {
  margin: 0;
}

.cookie-banner-text a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.dark .cookie-banner-text a {
  color: var(--brand-400);
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(59, 95, 0, 0.45);
}

html.dark .cookie-banner-btn:hover {
  box-shadow: 0 8px 16px -4px oklch(0 0 0 / 0.6);
}

@media (max-width: 639px) {
  .cookie-banner { bottom: 12px; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 639px) {
  .section { padding: 56px 20px; }
  .section-alt { padding: 56px 20px; }
  .hero { padding: 132px 20px 64px; }
  h1 { font-size: 32px; }
  .plan-card.popular { transform: none; }
  .plan-card.popular:hover { transform: translateY(-2px); }
  .pricing-grid { gap: 20px; }
  .btn-full { margin-top: 20px; }
}

/* ── Mobile-only helper ── */
.mobile-only {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* ═══════════ MOBILE STICKY CTA ═══════════
   Fixed bottom "Start Free Trial" bar on phones, injected by scripts.js.
   Slides up once the hero CTA scrolls out of view; hidden on desktop. */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--background);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px oklch(0 0 0 / 0.1);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}

.mobile-sticky-cta.show {
  transform: translateY(0);
  visibility: visible;
}

.mobile-sticky-cta .btn {
  width: 100%;
  max-width: 420px;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-sticky-cta { display: none; }
}

/* Keep the cookie notice above the sticky bar on phones */
@media (max-width: 639px) {
  body.sticky-cta-show .cookie-banner { bottom: calc(12px + 68px); }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tilt { transform: none !important; }
  .hero-ambient,
  .hero-orb {
    animation: none !important;
  }
  body {
    transition: none !important;
    animation: none !important;
  }
  * {
    animation-iteration-count: 1 !important;
  }
}

/* ═══════════════════ ACCOUNT RECOVERY (recovery.html) ═══════════════════ */

.rec-main { max-width: 720px; }

.rec-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.rec-note {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 1.25rem 0;
}

.rec-note-warn {
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.35);
  color: oklch(0.35 0.09 60);
}

html.dark .rec-note-warn {
  background: rgba(180, 83, 9, 0.15);
  color: oklch(0.85 0.09 80);
}

.rec-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rec-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rec-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.rec-field em {
  color: #b45309;
  font-style: normal;
}

.rec-field input,
.rec-field select,
.rec-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 400;
  color: var(--foreground);
  background: var(--popover);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rec-field input:focus,
.rec-field select:focus,
.rec-field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(97, 136, 0, 0.2);
}

.rec-field textarea {
  resize: vertical;
  min-height: 96px;
}

.rec-proofs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.rec-proofs legend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.4rem;
}

.rec-proofs em {
  color: #b45309;
  font-style: normal;
}

.rec-proofs label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.45;
}

.rec-proofs input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--brand-500);
  flex-shrink: 0;
}

.rec-ack {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  cursor: pointer;
}

.rec-ack input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--brand-500);
  flex-shrink: 0;
}

.rec-ack em {
  color: #b45309;
  font-style: normal;
}

.rec-submit {
  justify-self: start;
  /* A wide fallback font (CI's Ubuntu sans vs. local Segoe UI) can inflate the
     nowrap label past the 272px form column at 320px — the same
     layout-inflation bug class the mobile-overflow audit trips on. Cap the
     button at the column width and let the label wrap instead of poking out. */
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.rec-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #b45309;
  font-weight: 500;
}

html.dark .rec-status {
  color: oklch(0.85 0.09 80);
}

.rec-alt {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ═══════════ END ACCOUNT RECOVERY ═══════════ */
