/* ============================================
   TDAH Assistant — Landing Marketing
   Design tokens from docs/DESIGN_SYSTEM.md
   ============================================ */

:root {
  /* Base */
  --canvas: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F3EFEA;
  --border: #E8E2D9;
  --divider: #EFEAE2;

  /* Ink */
  --ink-900: #1F1B16;
  --ink-700: #4A433B;
  --ink-500: #7A7268;
  --ink-300: #B8AFA3;

  /* Accents */
  --primary: #FF6B4A;
  --primary-hover: #E85A3B;
  --primary-soft: #FFE5DD;
  --secondary: #6C5CE7;
  --secondary-soft: #E8E4FF;

  /* Status */
  --success: #4CAF7D;
  --warning: #F4B740;
  --danger: #E4584C;
  --info: #4A90E2;

  /* Gamification */
  --xp: #FFB648;
  --streak: #FF7A59;

  /* Shadows */
  --e1: 0 1px 2px rgba(31,27,22,.06);
  --e2: 0 2px 8px rgba(31,27,22,.08);
  --e3: 0 8px 24px rgba(31,27,22,.12);
  --e4: 0 16px 48px rgba(31,27,22,.16);
  --e-primary: 0 8px 24px rgba(255,107,74,.25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Fonts */
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Easings */
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-std: cubic-bezier(0.4, 0.0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--ink-900);
  color: white;
  z-index: 1000;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 560px;
}
.lead-sm {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 640px;
}
.accent-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--xp) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.muted { color: var(--ink-500); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-700);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.eyebrow-center { display: inline-flex; }
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-std), box-shadow 200ms var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--e-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,107,74,.30);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-300);
  transform: translateY(-1px);
}
.btn-lg { font-size: 16px; padding: 16px 26px; }
.btn-sm { font-size: 14px; padding: 10px 18px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(232, 226, 217, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 200ms var(--ease-std);
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links .link-muted { color: var(--ink-500); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 10% -10%, rgba(255, 107, 74, 0.12), transparent 50%),
    radial-gradient(ellipse 600px 400px at 90% 10%, rgba(108, 92, 231, 0.10), transparent 50%),
    radial-gradient(ellipse 400px 300px at 50% 100%, rgba(255, 182, 72, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.cta-row.center { justify-content: center; }
.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-proof .stars { display: inline-flex; gap: 2px; }
.social-proof p { font-size: 14px; color: var(--ink-700); margin: 0; }
.social-proof strong { color: var(--ink-900); }

/* Hero visual - phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
}
.mockup-phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: var(--ink-900);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--e4), 0 0 0 1px rgba(0,0,0,0.1);
  transform: rotate(-2deg);
  transition: transform 500ms var(--ease-out);
}
.mockup-phone:hover { transform: rotate(-1deg) translateY(-4px); }
.mockup-screen {
  width: 100%;
  height: 100%;
  background: var(--canvas);
  border-radius: 32px;
  padding: 18px 16px;
  overflow: hidden;
  position: relative;
}
.mock-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-900);
  padding-left: 6px;
  margin-bottom: 8px;
}
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mock-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}
.wave { display: inline-block; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40%, 50% { transform: rotate(10deg); }
}
.mock-bell {
  position: relative;
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mock-notif {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
}
.mock-xp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.mock-xp-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.mock-xp-row strong { color: var(--ink-900); font-weight: 600; }
.mock-level { color: var(--ink-500); font-size: 11px; font-weight: 500; }
.mock-progress {
  height: 6px;
  background: var(--surface-alt);
  border-radius: var(--r-full);
  overflow: hidden;
}
.mock-progress-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--xp));
  border-radius: var(--r-full);
  animation: progressFill 1.8s var(--ease-out) 0.3s both;
}
@keyframes progressFill {
  from { width: 0; }
  to { width: 68%; }
}
.mock-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.mock-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--e1);
  border-left: 3px solid transparent;
}
.mock-task--danger { border-left-color: var(--danger); }
.mock-task--warning { border-left-color: var(--warning); }
.mock-task--info { border-left-color: var(--info); }
.mock-task-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-900);
}
.mock-task-meta {
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 2px;
}
.mock-check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
}
.mock-ia {
  background: var(--secondary-soft);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-top: 10px;
}
.mock-ia-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}
.mock-ia p {
  font-size: 11px;
  color: var(--ink-900);
  line-height: 1.45;
}
.mock-fab {
  position: absolute;
  bottom: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--e-primary);
  animation: floatFab 3s ease-in-out infinite;
}
@keyframes floatFab {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--e3);
  font-size: 12px;
  color: var(--ink-700);
  border: 1px solid var(--border);
}
.float-badge strong { color: var(--ink-900); font-size: 13px; font-weight: 600; }
.float-badge small { color: var(--ink-500); font-size: 11px; }
.float-badge .emoji { font-size: 22px; }
.float-badge-1 {
  top: 10%;
  right: -8%;
  animation: floaty 4s ease-in-out infinite;
}
.float-badge-2 {
  bottom: 12%;
  left: -10%;
  animation: floaty 5s ease-in-out infinite reverse;
  animation-delay: 0.5s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ============================================
   LOGOS BAND
   ============================================ */
.logos-band {
  padding: 40px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface-alt);
}
.logos-title {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin-bottom: 20px;
}
.logos-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.logo-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity 250ms var(--ease-std);
}
.logo-item:hover { opacity: 1; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header .lead-sm { margin: 0 auto; }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 100px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-std);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e3);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 400ms var(--ease-out);
}
.feature-card:hover .feature-icon { transform: scale(1.05) rotate(-3deg); }
.feature-icon--primary { background: var(--primary-soft); color: var(--primary); }
.feature-icon--secondary { background: var(--secondary-soft); color: var(--secondary); }
.feature-icon--warning { background: #FDF1D9; color: #B8860B; }
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 200ms var(--ease-out);
}
.feature-link:hover { gap: 10px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: 100px 0;
  background: var(--surface-alt);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-std), background 300ms var(--ease-std);
}
.step:hover .step-num {
  transform: scale(1.08);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}

/* ============================================
   DEMO
   ============================================ */
.demo { padding: 100px 0; }
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.demo-copy h2 { margin: 16px 0 20px; }
.demo-copy .lead-sm { margin-bottom: 24px; }
.demo-list {
  margin-bottom: 32px;
}
.demo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink-700);
  font-size: 15px;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.demo-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--e3);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 500ms var(--ease-out);
}
.demo-card:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.demo-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.demo-dots span:nth-child(1) { background: #FF5F57; }
.demo-dots span:nth-child(2) { background: #FEBC2E; }
.demo-dots span:nth-child(3) { background: #28C840; }
.demo-title-mini {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
}
.demo-card-body { padding: 22px 24px 26px; }
.demo-task-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 18px;
}
.demo-ai-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--secondary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.demo-task-header strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  display: block;
}
.demo-muted {
  font-size: 12px;
  color: var(--ink-500);
  margin: 2px 0 0;
}
.demo-subtask {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-900);
}
.demo-subtask--done .demo-st-text { color: var(--ink-500); text-decoration: line-through; }
.demo-subtask--active {
  background: var(--primary-soft);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin: 4px -12px;
}
.demo-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.demo-box--done { background: var(--success); border-color: var(--success); }
.demo-st-text { flex: 1; }
.demo-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--surface-alt);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.demo-progress { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--divider); }
.demo-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.demo-progress-label strong { color: var(--success); font-weight: 600; }
.demo-progress-bar {
  height: 6px;
  background: var(--surface-alt);
  border-radius: var(--r-full);
  overflow: hidden;
}
.demo-progress-fill {
  width: 33%;
  height: 100%;
  background: var(--success);
  border-radius: var(--r-full);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--surface-alt);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  margin: 0;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e2);
}
.testi-card blockquote { margin: 0 0 20px; }
.testi-card blockquote p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 500;
}
.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testi-card strong { font-size: 14px; font-weight: 600; color: var(--ink-900); display: block; }
.testi-card small { font-size: 12px; color: var(--ink-500); }

/* ============================================
   FINAL CTA
   ============================================ */
.cta-final { padding: 100px 0; }
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--streak) 100%);
  border-radius: var(--r-xl);
  padding: 64px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.10), transparent 40%);
  pointer-events: none;
}
.cta-box h2 { color: white; position: relative; }
.cta-box .lead-sm { color: rgba(255,255,255,0.9); margin: 12px auto 28px; position: relative; }
.cta-box .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
}
.cta-box .btn-primary:hover {
  background: white;
  color: var(--primary-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 20px;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  background: var(--canvas);
  border-top: 1px solid var(--divider);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-700);
  transition: color 200ms var(--ease-std);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: auto; margin: 0 auto; }
  .mockup-phone { transform: rotate(-1deg) scale(0.92); }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .demo-card { transform: none; }
  .demo-card:hover { transform: translateY(-4px); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .features, .how, .demo, .testimonials, .cta-final { padding: 72px 0; }
  .cta-box { padding: 48px 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--canvas);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-links .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .hide-sm { display: none; }
  .float-badge { display: none; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .section-header { margin-bottom: 40px; }
  .mockup-phone { width: 280px; height: 560px; }
}

/* ============================================
   TDAH PAGES — Hub + Categories + Articles
   ============================================ */

/* Page-level hero (sous-pages, plus compact que landing) */
.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(ellipse 800px 300px at 30% 0%, rgba(255, 107, 74, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 300px at 70% 100%, rgba(108, 92, 231, 0.08), transparent 60%);
}
.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 16px 0 18px;
  color: var(--ink-900);
}
.page-hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 640px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--ink-500);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: '›';
  color: var(--ink-300);
  font-weight: 600;
}
.breadcrumb a {
  color: var(--ink-500);
  transition: color 200ms var(--ease-std);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--ink-900); font-weight: 500; }

/* Hub category grid (10 tiles) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 56px 0 96px;
}
.category-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-std);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--e3);
  border-color: transparent;
}
.category-tile__icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 400ms var(--ease-out);
}
.category-tile:hover .category-tile__icon { transform: scale(1.1) rotate(-4deg); }
.category-tile__num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: -0.01em;
}
.category-tile h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.category-tile p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
  flex: 1;
  margin-bottom: 16px;
}
.category-tile__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.category-tile__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--surface-alt);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.category-tile__arrow {
  transition: transform 200ms var(--ease-out);
}
.category-tile:hover .category-tile__arrow { transform: translateX(4px); }

/* Category page header */
.category-header {
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 24px;
}
.category-header__icon {
  flex-shrink: 0;
  width: 80px; height: 80px;
  background: var(--primary-soft);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.category-header__text h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
  line-height: 1.15;
}
.category-header__text p {
  font-size: 16px;
  color: var(--ink-700);
  line-height: 1.55;
  max-width: 680px;
}

/* Article list */
.article-list {
  padding: 48px 0 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-std);
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--e1);
  transform: translateX(2px);
}
.article-card__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.02em;
}
.article-card__body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
  line-height: 1.35;
}
.article-card__body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
}
.article-card__status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--ink-500);
  white-space: nowrap;
}
.article-card__status--ready {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Related categories navigation */
.related-nav {
  padding: 48px 0 96px;
  border-top: 1px solid var(--divider);
}
.related-nav__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 200ms var(--ease-std), transform 200ms var(--ease-out);
}
.related-card:hover { background: var(--primary-soft); transform: translateY(-2px); }
.related-card__emoji { font-size: 24px; }
.related-card__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
}

/* Info callout (encart) */
.callout {
  margin: 40px 0;
  padding: 24px 28px;
  background: var(--secondary-soft);
  border-left: 4px solid var(--secondary);
  border-radius: var(--r-md);
}
.callout strong { color: var(--secondary);  font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.callout p { font-size: 15px; line-height: 1.6; color: var(--ink-700); margin: 0; }

/* Coming soon banner */
.coming-banner {
  text-align: center;
  padding: 24px;
  background: var(--warning);
  background: linear-gradient(135deg, #FDF1D9 0%, #FFE5DD 100%);
  border-radius: var(--r-lg);
  border: 1px solid #F4B740;
  margin: 32px 0 0;
}
.coming-banner p {
  font-size: 14px;
  color: #8B6914;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-header { flex-direction: column; text-align: center; align-items: center; }
  .category-header__text { text-align: center; }
  .article-card { grid-template-columns: 36px 1fr; row-gap: 10px; padding: 16px 18px; }
  .article-card__status { grid-column: 2; justify-self: start; }
}

/* ============================================
   SECONDARY PAGES (About, Security, Pros, Help)
   ============================================ */

/* Simple section wrapper */
.section { padding: 72px 0; }
.section-alt { padding: 72px 0; background: var(--surface-alt); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 16px;
  text-align: center;
}
.section__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

/* Values grid (3 cols) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-std);
}
.value-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.value-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  background: var(--primary-soft);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.value-card h3 { font-size: 17px; font-weight: 600; color: var(--ink-900); margin-bottom: 8px; }
.value-card p { font-size: 14px; line-height: 1.55; color: var(--ink-700); }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  text-align: center;
  padding: 20px;
}
.team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
  border: 3px solid var(--surface);
  box-shadow: var(--e2);
}
.team-card h4 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.team-card__role { font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 10px; display: block; }
.team-card p { font-size: 13px; line-height: 1.55; color: var(--ink-700); }

/* Timeline */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px);
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.timeline-item__date { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.timeline-item h4 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.timeline-item p { font-size: 14px; line-height: 1.55; color: var(--ink-700); }

/* Security pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pillar {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.pillar__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--secondary-soft);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 19px; font-weight: 600; color: var(--ink-900); margin-bottom: 10px; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.pillar ul { margin-top: 12px; }
.pillar li { font-size: 14px; line-height: 1.6; color: var(--ink-700); padding-left: 20px; position: relative; }
.pillar li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Audience selector (Pros page) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.audience-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  text-align: center;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-std), background 200ms var(--ease-std);
}
.audience-card:hover { border-color: var(--primary); transform: translateY(-2px); background: var(--primary-soft); }
.audience-card__emoji { font-size: 32px; display: block; margin-bottom: 10px; }
.audience-card h4 { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.audience-card p { font-size: 12px; color: var(--ink-500); line-height: 1.45; margin: 0; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: 4px 0;
}
.faq-item summary {
  padding: 20px 16px 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 200ms var(--ease-std);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-500);
  transition: transform 300ms var(--ease-out), color 300ms var(--ease-std);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--primary); }
.faq-item summary:hover { color: var(--primary); }
.faq-item__body {
  padding: 0 16px 20px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
}
.faq-item__body p { margin: 0 0 12px; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* Search box (visual, Help page) */
.search-box {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}
.search-box input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 16px 20px 16px 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink-900);
  transition: border-color 200ms var(--ease-std), box-shadow 200ms var(--ease-out);
}
.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}
.search-box input::placeholder { color: var(--ink-500); }
.search-box svg {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
}

/* Help categories grid */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.help-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-std), box-shadow 200ms var(--ease-out);
}
.help-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--e1); }
.help-tile__emoji { font-size: 28px; display: block; margin-bottom: 12px; }
.help-tile h4 { font-size: 15px; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.help-tile p { font-size: 13px; color: var(--ink-500); line-height: 1.5; margin: 0; }

/* Contact support card */
.support-card {
  background: linear-gradient(135deg, var(--secondary-soft) 0%, var(--primary-soft) 100%);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.support-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink-900); margin-bottom: 10px; }
.support-card p { font-size: 15px; color: var(--ink-700); margin-bottom: 20px; }

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ACCESSIBILITY: prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mockup-phone { transform: none; }
  .demo-card { transform: none; }
}

/* ============================================
   DARK MODE (optionnel pour futur)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* À implémenter ultérieurement (v1.1) */
}

/* APK download note */
.download-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
}
.download-note a {
  color: var(--color-primary, #E76F51);
  text-decoration: underline;
}
