
/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES — LIGHT & DARK
   ═══════════════════════════════════════════ */
:root {
  /* Light theme (default) */
  --bg: #FAFAF8;
  --bg-warm: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #F0EFEB;
  --surface-3: #E8E7E2;
  --border: #E0DED8;
  --border-accent: #D0CEC6;
  --text: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A72;
  --text-dim: #A0A098;

  --fox: #f97316;
  --fox-glow: rgba(249,115,22,0.12);
  --fox-strong: #ea580c;
  --teal: #0d9488;
  --teal-glow: rgba(13,148,136,0.10);
  --teal-light: #14b8a6;
  --green: #16a34a;
  --green-glow: rgba(22,163,74,0.08);
  --rose: #e11d48;
  --rose-glow: rgba(225,29,72,0.08);
  --blue: #2563eb;
  --blue-glow: rgba(37,99,235,0.08);
  --purple: #7c3aed;

  --nav-bg: rgba(250,250,248,0.85);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
  --hero-gradient: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  --section-alt: var(--bg-warm);
  --code-bg: #F0EFEB;
  --toggle-track: #D0CEC6;
  --toggle-thumb: #FFFFFF;
  --comparison-us: rgba(13,148,136,0.06);
  --comparison-them: rgba(225,29,72,0.04);
}

[data-theme="dark"] {
  --bg: #0c0e11;
  --bg-warm: #10131a;
  --surface: #13161b;
  --surface-2: #191d24;
  --surface-3: #1f242d;
  --border: #272e3a;
  --border-accent: #354058;
  --text: #e2e6ed;
  --text-secondary: #b0b8c8;
  --text-muted: #7a8599;
  --text-dim: #4a5468;

  --fox-glow: rgba(249,115,22,0.15);
  --teal-glow: rgba(20,184,166,0.12);
  --green-glow: rgba(16,185,129,0.10);
  --rose-glow: rgba(244,63,94,0.10);
  --blue-glow: rgba(59,130,246,0.10);

  --nav-bg: rgba(12,14,17,0.88);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.15);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.2);
  --hero-gradient: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  --section-alt: var(--bg-warm);
  --code-bg: #191d24;
  --toggle-track: #354058;
  --toggle-thumb: #e2e6ed;
  --comparison-us: rgba(20,184,166,0.08);
  --comparison-them: rgba(244,63,94,0.06);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { max-width: 640px; }

a { color: var(--fox); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

section.alt {
  background: var(--section-alt);
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo .fox-mark {
  width: 30px;
  height: auto;
  vertical-align: bottom;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); opacity: 1; }

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.theme-toggle .icon { font-size: 0.9rem; color: var(--text-muted); }

.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--toggle-track);
  border-radius: 11px;
  position: relative;
  transition: background 0.3s;
}

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

[data-theme="dark"] .toggle-thumb {
  transform: translateX(18px);
}

[data-theme="dark"] .toggle-track {
  background: var(--fox);
}

.nav-cta {
  background: var(--fox);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  padding: 160px 0 120px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--fox-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fox-glow);
  color: var(--fox);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--fox);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Hero rotating text */
.hero-rotate {
  display: inline-block;
  position: relative;
  min-width: 300px;
  text-align: left;
}

.hero-rotate .rotate-word {
  display: inline-block;
  animation: rotateIn 0.5s ease both;
}

@keyframes rotateIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes rotateOut {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(-20px); filter: blur(4px); }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--fox);
  font-style: italic;
}

.hero-line2 {
  display: inline;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fox);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.35);
  color: #fff;
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--fox);
  color: var(--fox);
  opacity: 1;
}

/* Hero Dashboard Preview */
.hero-visual {
  position: relative;
}

.dashboard-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: var(--card-shadow-hover);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ef4444; }
.dot.y { background: #f59e0b; }
.dot.g { background: #10b981; }

.preview-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: 'DM Sans', monospace;
}

.preview-body {
  padding: 20px;
  min-height: 320px;
}

.preview-greeting {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.preview-greeting .name { color: var(--fox); }

.preview-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Job Cards in Preview */
.preview-jobs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  animation: slideIn 0.6s ease both;
}

.preview-job:nth-child(1) { animation-delay: 0.5s; }
.preview-job:nth-child(2) { animation-delay: 0.8s; }
.preview-job:nth-child(3) { animation-delay: 1.1s; }

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

.job-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.job-company {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.job-score {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.score-high {
  color: var(--teal);
  background: var(--teal-glow);
}

.score-mid {
  color: var(--fox);
  background: var(--fox-glow);
}

/* Floating Kitso badge */
.kitso-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--card-shadow-hover);
  font-size: 0.82rem;
  animation: floatUp 0.8s ease 1.4s both;
  z-index: 2;
}

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

.kitso-float .fox-avatar {
  font-size: 1.4rem;
}

.kitso-float .msg {
  color: var(--text-secondary);
  max-width: 200px;
}

.kitso-float .msg strong { color: var(--teal); }

/* ═══════════════════════════════════════════
   NUMBERS BAR
   ═══════════════════════════════════════════ */
.numbers-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item .value {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fox);
  line-height: 1;
  margin-bottom: 6px;
}

.number-item .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   PROBLEM → SOLUTION
   ═══════════════════════════════════════════ */
.problem-solution .container {
  max-width: 800px;
  text-align: center;
}

.problem-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 16px auto 40px;
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.sol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--fox);
}

.sol-card .icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.sol-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.sol-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  position: relative;
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fox-glow);
  color: var(--fox);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 auto;
}

.step-connector {
  position: absolute;
  top: 22px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--border);
}

.step:last-child .step-connector { display: none; }

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.feature-card .tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.tag-teal { background: var(--teal-glow); color: var(--teal); }
.tag-fox { background: var(--fox-glow); color: var(--fox); }
.tag-blue { background: var(--blue-glow); color: var(--blue); }
.tag-green { background: var(--green-glow); color: var(--green); }
.tag-purple { background: rgba(124,58,237,0.08); color: var(--purple); }
.tag-rose { background: var(--rose-glow); color: var(--rose); }

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   JOB SOURCES
   ═══════════════════════════════════════════ */
.sources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.source-tag {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.2s;
}

.source-tag:hover {
  border-color: var(--teal);
}

.source-tag.premium {
  border-color: var(--border-accent);
  font-weight: 600;
  color: var(--text);
}

.source-tag.accent {
  background: var(--fox-glow);
  border-color: var(--fox);
  color: var(--fox);
  font-weight: 600;
}

.source-tag.more {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
  font-style: italic;
}

/* ATS X-Ray Popup */
.ats-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ats-popup.visible {
  opacity: 1;
  pointer-events: all;
}

.ats-popup-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.ats-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.ats-popup-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.ats-popup-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 100%;
}

.ats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ats-tags span {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid transparent;
}

.ats-popup-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 100%;
}

/* ═══════════════════════════════════════════
   NOT ANOTHER AUTO-APPLY — COMPARISON
   ═══════════════════════════════════════════ */
.comparison-section h2 {
  text-align: center;
  margin-bottom: 12px;
}

.comparison-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 48px;
  font-size: 1rem;
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child { border-bottom: none; }

.comp-row.header {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.comp-cell {
  padding: 16px 20px;
  font-size: 0.88rem;
}

.comp-cell:first-child {
  font-weight: 500;
  color: var(--text-secondary);
}

.comp-cell.us {
  background: var(--comparison-us);
  color: var(--teal);
  font-weight: 600;
}

.comp-cell.them {
  background: var(--comparison-them);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   THE STORY
   ═══════════════════════════════════════════ */
.story-section .story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.story-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.story-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.story-stat .val {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fox);
}

.story-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.story-visual {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.story-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 100%;
}

.story-quote::before {
  content: '"';
  color: var(--fox);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}

.story-quote::after {
  content: '"';
  color: var(--fox);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-left: 2px;
}

.story-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.story-author strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════
   DATA SOVEREIGNTY
   ═══════════════════════════════════════════ */
.trust-section .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.trust-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.trust-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   PRICING PREVIEW
   ═══════════════════════════════════════════ */
.pricing-section {
  text-align: center;
}

.pricing-subtitle {
  color: var(--text-muted);
  margin: 12px auto 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.price-card:hover {
  transform: translateY(-3px);
}

.price-card.featured {
  border-color: var(--fox);
  position: relative;
}

.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fox);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

.price-tier {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text);
}

.price-amount {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fox);
}

.price-amount .period {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Yearly price */
.price-yearly {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 6px;
}

/* Expandable Tier Details */
.tier-expand-wrap {
  max-width: 900px;
  margin: 32px auto 0;
}

.tier-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.tier-expand-btn:hover {
  border-color: var(--fox);
  color: var(--fox);
}

.tier-expand-btn .chevron {
  transition: transform 0.3s;
  font-size: 1.1rem;
}

.tier-expand-btn.open .chevron {
  transform: rotate(180deg);
}

.tier-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.tier-details.open {
  max-height: 1200px;
}

/* Tier Table */
.tier-table-wrap {
  max-width: 900px;
  margin: 40px auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.tier-table thead th {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  text-align: center;
}

.tier-table thead th.feature-col {
  text-align: left;
  width: 35%;
}

.tier-table thead th.highlight-col {
  color: var(--fox);
  background: var(--fox-glow);
}

.tier-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
}

.tier-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.tier-table tbody td.highlight-col {
  background: var(--fox-glow);
  font-weight: 600;
  color: var(--text);
}

.tier-table .tier-group td {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 8px 16px;
  text-align: left;
}

@media (max-width: 700px) {
  .tier-table { font-size: 0.75rem; }
  .tier-table thead th, .tier-table tbody td { padding: 8px 10px; }
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */
.final-cta {
  text-align: center;
  padding: 100px 0 120px;
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--fox-glow) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  margin-bottom: 16px;
  position: relative;
}

.final-cta p {
  color: var(--text-muted);
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.email-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input:focus {
  border-color: var(--fox);
}

.email-form input::placeholder {
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-left strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Hamburger menu button (hidden on desktop) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  
  /* Nav: hamburger + mobile menu */
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
    width: 100%;
  }
  .nav-links .theme-toggle {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 12px 24px;
    width: 100%;
    display: block;
  }
  
  /* Hero */
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { display: none; }
  .hero-rotate { min-width: auto; }
  
  /* Grids to single column */
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-cards { grid-template-columns: 1fr; }
  .how-it-works .steps { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .story-section .story-grid { grid-template-columns: 1fr; }
  .trust-section .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Comparison table */
  .comp-cell { padding: 12px 14px; font-size: 0.8rem; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .container { padding: 0 16px; }
  
  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-line2 { display: block; }
  .hero-rotate { min-width: auto; display: inline; }
  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: 0.72rem; }
  
  /* Numbers */
  .numbers-grid { gap: 16px; }
  .numbers-bar .value { font-size: 1.6rem; }
  .numbers-bar .label { font-size: 0.72rem; }
  
  /* Comparison table — stack on mobile */
  .comp-row { grid-template-columns: 1fr; }
  .comp-row.header { display: none; }
  .comp-cell { padding: 10px 16px; font-size: 0.85rem; }
  .comp-cell:first-child {
    background: var(--surface-2);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 16px;
  }
  .comp-cell.us::before { content: "Kitsuno: "; font-weight: 600; }
  .comp-cell.them::before { content: "Typical: "; font-weight: 600; color: var(--text-muted); }
  
  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  
  /* Tier detail table — horizontal scroll */
  .tier-detail-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tier-table { min-width: 600px; font-size: 0.75rem; }
  .tier-table thead th, .tier-table tbody td { padding: 8px 10px; }
  
  /* CTA form */
  .email-form { flex-direction: column; }
  .final-cta { padding: 72px 0 80px; }
  
  /* Story stats */
  .story-stat-row { flex-direction: column; gap: 16px; }
  
  /* Sources grid */
  .sources-grid { gap: 8px; }
  .source-tag { font-size: 0.72rem; padding: 5px 12px; }
  
  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-socials { justify-content: center; }
}

/* ── Small phone (≤400px) ── */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.7rem; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .numbers-bar .value { font-size: 1.4rem; }
  .how-it-works .steps { grid-template-columns: 1fr; }
  .btn-primary { padding: 12px 24px; font-size: 0.9rem; }
  .btn-secondary { padding: 12px 20px; font-size: 0.85rem; }
}


.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-left strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  
  /* Nav: hamburger + mobile menu */
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
    width: 100%;
  }
  .nav-links .theme-toggle {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 12px 24px;
    width: 100%;
    display: block;
  }
  
  /* Hero */
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { display: none; }
  .hero-rotate { min-width: auto; }
  
  /* Grids to single column */
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-cards { grid-template-columns: 1fr; }
  .how-it-works .steps { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .story-section .story-grid { grid-template-columns: 1fr; }
  .trust-section .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Comparison table */
  .comp-cell { padding: 12px 14px; font-size: 0.8rem; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .container { padding: 0 16px; }
  
  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-line2 { display: block; }
  .hero-rotate { min-width: auto; display: inline; }
  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: 0.72rem; }
  
  /* Numbers */
  .numbers-grid { gap: 16px; }
  .numbers-bar .value { font-size: 1.6rem; }
  .numbers-bar .label { font-size: 0.72rem; }
  
  /* Comparison table — stack on mobile */
  .comp-row { grid-template-columns: 1fr; }
  .comp-row.header { display: none; }
  .comp-cell { padding: 10px 16px; font-size: 0.85rem; }
  .comp-cell:first-child {
    background: var(--surface-2);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 16px;
  }
  .comp-cell.us::before { content: "Kitsuno: "; font-weight: 600; }
  .comp-cell.them::before { content: "Typical: "; font-weight: 600; color: var(--text-muted); }
  
  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  
  /* Tier detail table — horizontal scroll */
  .tier-detail-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tier-table { min-width: 600px; font-size: 0.75rem; }
  .tier-table thead th, .tier-table tbody td { padding: 8px 10px; }
  
  /* CTA form */
  .email-form { flex-direction: column; }
  .final-cta { padding: 72px 0 80px; }
  
  /* Story stats */
  .story-stat-row { flex-direction: column; gap: 16px; }
  
  /* Sources grid */
  .sources-grid { gap: 8px; }
  .source-tag { font-size: 0.72rem; padding: 5px 12px; }
  
  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-socials { justify-content: center; }
}

/* ── Small phone (≤400px) ── */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.7rem; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .numbers-bar .value { font-size: 1.4rem; }
  .how-it-works .steps { grid-template-columns: 1fr; }
  .btn-primary { padding: 12px 24px; font-size: 0.9rem; }
  .btn-secondary { padding: 12px 20px; font-size: 0.85rem; }
}


/* Page content area (for subpages) */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 2rem;  /* top padding accounts for fixed nav */
}
.page-content h1 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.page-content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.page-content h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}
.page-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.page-content ul, .page-content ol {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content .subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.page-content a { color: var(--fox); }
.page-content a:hover { color: var(--fox-strong); }

/* Principles page extras */
.principle { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.principle:last-child { border-bottom: none; }
.p-number { font-family: 'Fraunces', serif; font-weight: 800; font-size: 0.82rem; color: var(--fox); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.p-title { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.p-body { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; }
