/* path: /public/css/er.css
   source: extracted verbatim from /public/er.html <style> block (lines 34-1107)
   date: 2026-05-04
   braces: 277 open / 277 close (balanced) */
/* ═══════════════════════════════════════════
   FOUNDATIONS
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --f-serif: 'Fraunces', 'Georgia', serif;
  --f-sans: 'General Sans', system-ui, -apple-system, sans-serif;

  --ink: #0d0b0e;
  --ink-soft: #2a2433;
  --ink-muted: #6b6177;
  --surface: #f7f6f4;
  --surface-warm: #f0ede8;
  --surface-dark: #111014;
  --surface-deep: #0a090c;

  /* ER palette — urgent, clinical */
  --er-red: #dc2626;
  --er-red-soft: #ef4444;
  --er-red-pale: #fef2f2;
  --er-red-glow: rgba(220, 38, 38, 0.12);
  --er-amber: #d97706;
  --er-amber-soft: #f59e0b;
  --er-amber-pale: #fffbeb;
  --er-teal: #0d9488;
  --er-teal-soft: #14b8a6;
  --er-teal-pale: #f0fdfa;
  --er-slate: #475569;
  --er-blue: #3b82f6;
  --er-blue-pale: #eff6ff;

  /* Brand consistency */
  --amber: #e8a33d;
  --amber-light: #f4c97b;
  --green: #22c55e;
  --green-soft: #4ade80;

  /* Tile type colors */
  --fk-verb: #f0862e;
  --fk-noun: #f2c624;
  --fk-adj: #3b82f6;
  --fk-social: #ec5fa0;
  --fk-question: #8b5cf6;
  --fk-negation: #ef4444;
  --fk-help: #22c55e;
  --fk-nav: #9ca3af;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: min(1120px, 88vw);
  --section-gap: clamp(5rem, 12vw, 8rem);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
.container { width: var(--container); margin: 0 auto; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Reveal system */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.40s; }
.rv-d6 { transition-delay: 0.48s; }

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: all 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 9, 12, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 40px rgba(0,0,0,0.25);
}
.nav-inner {
  width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--er-red);
  box-shadow: 0 0 12px var(--er-red-soft);
  animation: pulse-nav-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-nav-dot {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 6px var(--er-red-soft); }
  50% { opacity: 1; box-shadow: 0 0 18px var(--er-red); }
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--amber); }
.nav-links a.active { color: #fff; font-weight: 700; }
.nav-cta-btn {
  background: var(--er-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-spring);
}
.nav-cta-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(220,38,38,0.4); }
.hamburger { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; border-radius: 2px;
}
.mob-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(10,9,12,0.96); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  color: #fff; font-size: 1.3rem; font-family: var(--f-serif);
  opacity: 0.8; transition: opacity 0.3s;
}
.mob-menu a:hover { opacity: 1; }
.mob-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}

/* ═══════════════════════════════════════════
   HERO — Urgent, cinematic, tile demo
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--surface-dark);
  color: #fff;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 40%, rgba(220,38,38,0.08), transparent),
    radial-gradient(ellipse 40% 50% at 75% 70%, rgba(217,119,6,0.06), transparent);
  pointer-events: none;
}
/* Heartbeat line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, var(--er-red) 20%, var(--er-red-soft) 22%, transparent 24%, transparent 40%, var(--er-red) 50%, transparent 52%, transparent 70%, var(--er-red) 80%, var(--er-red-soft) 82%, transparent 84%);
  opacity: 0.4;
  animation: heartbeat-line 3s linear infinite;
}
@keyframes heartbeat-line {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--er-red-soft);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 100px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--er-red);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 4px var(--er-red); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--er-red); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero h1 em {
  font-style: italic;
  color: var(--er-red-soft);
  font-weight: 600;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-sub strong { color: rgba(255,255,255,0.85); font-weight: 600; }

.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stat {
  display: flex; flex-direction: column;
}
.hero-stat-val {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--er-amber-soft);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Interactive tile demo */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-chat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.hero-chat {
  display: flex;
  max-width: 460px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(220,38,38,0.3);
  transition: border-color 0.3s, background 0.3s;
  animation: chatPulseER 3s ease-in-out infinite;
  margin-bottom: 0.4rem;
}
@keyframes chatPulseER {
  0%, 100% { border-color: rgba(220,38,38,0.25); }
  50% { border-color: rgba(220,38,38,0.5); }
}
.hero-chat:focus-within {
  border-color: var(--er-red);
  background: rgba(255,255,255,0.1);
  animation: none;
}
.hero-chat input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.95rem;
}
.hero-chat input::placeholder { color: rgba(255,255,255,0.35); }
.hero-chat-btn {
  padding: 0.85rem 1.5rem;
  background: var(--er-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: var(--f-sans);
  transition: background 0.3s;
  white-space: nowrap;
}
.hero-chat-btn:hover { background: #b91c1c; }
.hero-chat-btn.loading {
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.hero-chat-btn.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  display: inline-block;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.hero-chat-hint {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.2rem;
  text-align: center;
  line-height: 1.5;
}
.hero-chat-hint span {
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  border-bottom: 1px dotted rgba(255,255,255,0.25);
  transition: color 0.2s;
}
.hero-chat-hint span:hover { color: var(--er-amber-soft); }

.tablet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 420px;
  margin-top: 0.5rem;
}
.demo-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), opacity 0.25s ease;
}
.demo-tile:hover { transform: scale(1.06); }
.demo-tile-emoji {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  line-height: 1;
}
.demo-tile-label {
  background: rgba(0,0,0,0.22);
  padding: 8px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.tile-verb { background: var(--fk-verb); }
.tile-noun { background: var(--fk-noun); }
.tile-adj { background: var(--fk-adj); }
.tile-social { background: var(--fk-social); }
.tile-help { background: var(--fk-help); }
.tile-question { background: var(--fk-question); }
.tile-negation { background: var(--fk-negation); }
.tile-nav { background: #4a5568; }
.demo-tile.has-drill { position: relative; }
.demo-tile.has-drill::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-top: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}
.tile-speak-flash {
  animation: tilePulse 0.3s ease;
}
@keyframes tilePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { transform: scale(0.92); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ═══════════════════════════════════════════
   SECTION LABELS (shared)
   ═══════════════════════════════════════════ */
.section-label-er {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--er-red-soft);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label-er::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--er-red-soft);
  border-radius: 2px;
}
.section-title-er {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  max-width: 600px;
}
.section-desc-er {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ═══════════════════════════════════════════
   THE PROBLEM
   ═══════════════════════════════════════════ */
.problem-section {
  padding: var(--section-gap) 0;
  background: #fff;
  position: relative;
}
.problem-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--er-red-pale), transparent);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.problem-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--er-red);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.problem-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--er-red);
  border-radius: 2px;
}
.problem-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.problem-title em {
  font-style: italic;
  color: var(--er-red);
}
.problem-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.problem-body strong { color: var(--ink); font-weight: 600; }

.problem-right {
  position: relative;
}
.problem-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}
.problem-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--er-slate);
  margin-bottom: 1.5rem;
}
.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.scenario-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.scenario-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.scenario-icon.urgent { background: var(--er-red-pale); }
.scenario-icon.lang { background: var(--er-blue-pale); }
.scenario-icon.trauma { background: var(--er-amber-pale); }
.scenario-icon.neuro { background: #f3e8ff; }
.scenario-icon.deaf { background: var(--er-teal-pale); }
.scenario-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.scenario-text strong {
  color: var(--ink);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

/* ═══════════════════════════════════════════
   ER MODE FEATURES (dark)
   ═══════════════════════════════════════════ */
.features-section {
  padding: var(--section-gap) 0;
  background: var(--surface-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(220,38,38,0.06), transparent),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(217,119,6,0.04), transparent);
  pointer-events: none;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
}
.feat-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.feat-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.feat-card-icon.pain { background: rgba(220,38,38,0.15); }
.feat-card-icon.symptom { background: rgba(217,119,6,0.15); }
.feat-card-icon.allergy { background: rgba(168,85,247,0.15); }
.feat-card-icon.triage { background: rgba(59,130,246,0.15); }
.feat-card-icon.language { background: rgba(13,148,136,0.15); }
.feat-card-icon.emergency { background: rgba(220,38,38,0.2); }
.feat-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #fff;
  font-family: var(--f-sans);
}
.feat-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════════════════
   WORKFLOW STEPS
   ═══════════════════════════════════════════ */
.workflow-section {
  padding: var(--section-gap) 0;
  background: #fff;
}
.workflow-header {
  max-width: 600px;
  margin-bottom: 3rem;
}
.workflow-steps {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.workflow-step {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.workflow-step:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.workflow-step-num {
  width: 32px; height: 32px;
  background: var(--er-red);
  color: #fff;
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
}
.workflow-step h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-family: var(--f-sans);
}
.workflow-step p {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
/* Arrow between steps */
.workflow-step + .workflow-step::before {
  content: '→';
  position: absolute;
  left: -0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--er-red-soft);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   FOR EMERGENCY DEPARTMENTS (pricing)
   ═══════════════════════════════════════════ */
.dept-section {
  padding: var(--section-gap) 0;
  background: var(--surface);
}
.dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.dept-left {
  position: sticky;
  top: 6rem;
}
.dept-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.dept-feat {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.dept-feat:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.dept-feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--er-red-pale);
}
.dept-feat h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--f-sans);
}
.dept-feat p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Price cards */
.price-card {
  background: var(--surface-dark);
  color: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 1rem;
}
.price-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--er-red-soft);
  margin-bottom: 0.8rem;
}
.price-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.price-card h3 span { color: var(--er-amber-soft); }
.price-card-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.price-card-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.6;
}
.price-card-note strong { color: rgba(255,255,255,0.7); }
.price-card-note a { color: var(--er-red-soft); text-decoration: underline; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testi-section {
  padding: var(--section-gap) 0;
  background: #fff;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.testi-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.testi-stars {
  color: var(--er-amber-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testi-text {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.testi-author {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta-section {
  padding: var(--section-gap) 0;
  background: var(--surface-dark);
  color: #fff;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 550px;
  margin-left: auto; margin-right: auto;
}
.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.btn-er {
  background: var(--er-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s var(--ease-spring);
}
.btn-er:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(220,38,38,0.35); }
.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); }

.cta-callout {
  max-width: 560px;
  margin: 1.5rem auto;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: left;
}
.cta-callout p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}
.cta-callout strong { color: rgba(255,255,255,0.85); }

/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */
.contact-form { max-width: 560px; margin: 2rem auto 0; text-align: left; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cf-field { display: flex; flex-direction: column; }
.cf-field-full { margin-bottom: 1rem; }
.cf-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.4rem; color: rgba(255,255,255,0.5);
  font-family: var(--f-sans);
}
.cf-req { color: var(--er-red-soft); }
.cf-input, .cf-select, .cf-textarea {
  padding: 0.75rem 1rem; border-radius: 10px; font-family: var(--f-sans);
  font-size: 0.9rem; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  border: 2px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: #fff;
}
.cf-input::placeholder, .cf-textarea::placeholder { color: rgba(255,255,255,0.3); }
.cf-input:focus, .cf-select:focus, .cf-textarea:focus {
  border-color: var(--er-red-soft); box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.cf-input.cf-invalid, .cf-select.cf-invalid, .cf-textarea.cf-invalid { border-color: #ef4444; }
.cf-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.cf-select option { background: #1a1a2e; color: #fff; }
.cf-textarea { resize: vertical; min-height: 100px; }
.cf-submit-row { text-align: center; margin-top: 1.5rem; }
.cf-submit-btn { min-width: 200px; cursor: pointer; border: none; }
.cf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.cf-btn-loading { display: inline-flex; align-items: center; gap: 0.4rem; }
.cf-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: cf-spin 0.6s linear infinite;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf-note { font-size: 0.72rem; margin-top: 0.8rem; color: rgba(255,255,255,0.4); }
.cf-success { text-align: center; padding: 2rem; }
.cf-success-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--er-red);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem;
}
.cf-success h4 { font-family: var(--f-serif); font-size: 1.3rem; margin-bottom: 0.5rem; color: #fff; }
.cf-success p { color: rgba(255,255,255,0.6); }
.cf-error-msg {
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; padding: 0.8rem 1.2rem; border-radius: 10px;
  font-size: 0.85rem; margin-top: 1rem; text-align: center;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 3rem 0 2rem;
  background: var(--surface-deep, #0d0b10);
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.footer-logo {
  font-family: var(--f-serif);
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
}
.footer-columns {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
}
.footer-col { min-width: 140px; }
.footer-col-title {
  font-weight: 600; color: rgba(255,255,255,0.6);
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none; display: flex; flex-direction: column; gap: 0.45rem;
}
.footer-links a {
  color: rgba(255,255,255,0.4); transition: color 0.3s; font-size: 0.82rem;
}
.footer-links a:hover { color: var(--amber, #e8a33d); }
.footer-bottom {
  text-align: center; font-size: 0.72rem; opacity: 0.5;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}
@media (max-width: 600px) {
  .footer-columns { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
}

/* ═══════════════════════════════════════════
   AUTH NAV
   ═══════════════════════════════════════════ */
.nav-login-btn { padding:0.5rem 1.2rem; border-radius:100px; font-size:0.82rem; font-weight:700; color:#22c55e; border:2px solid #22c55e; text-decoration:none; transition:all 0.3s ease; letter-spacing:0.02em; }
.nav-login-btn:hover { background:#22c55e; color:#fff; transform:scale(1.05); }
.nav-user-wrap { position:relative; }
.nav-user-btn { display:flex; align-items:center; gap:0.5rem; padding:0.4rem 1rem 0.4rem 0.4rem; border-radius:100px; font-size:0.82rem; font-weight:600; color:#22c55e; border:2px solid rgba(34,197,94,0.3); cursor:pointer; transition:all 0.3s ease; background:transparent; white-space:nowrap; }
.nav-user-btn:hover { border-color:#22c55e; }
.nav-user-avatar { width:26px; height:26px; border-radius:50%; background:#22c55e; color:#000; display:flex; align-items:center; justify-content:center; font-size:0.72rem; font-weight:800; flex-shrink:0; }
.nav-user-drop { display:none; position:absolute; top:calc(100% + 0.5rem); right:0; background:#1a1a2e; border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:0.5rem; min-width:200px; z-index:1000; box-shadow:0 8px 32px rgba(0,0,0,0.4); }
.nav-user-drop.open { display:block; }
.nav-user-drop a { display:block; padding:0.6rem 1rem; color:rgba(255,255,255,0.8); font-size:0.82rem; border-radius:8px; text-decoration:none; transition:background 0.2s; cursor:pointer; }
.nav-user-drop a:hover { background:rgba(255,255,255,0.05); color:#fff; }
.nav-user-drop .drop-divider { height:1px; background:rgba(255,255,255,0.08); margin:0.3rem 0; }
.nav-user-drop .drop-signout { color:#ef4444; }
.nav-user-drop .drop-signout:hover { background:rgba(239,68,68,0.1); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .problem-grid, .dept-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .dept-left { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta-btn { display: none; }
  .hamburger { display: block; }
  .hero { padding: 6rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.2rem; }
  .tablet-grid { width: 300px; gap: 10px; }
  .demo-tile-emoji { font-size: 2rem; }
  .demo-tile-label { font-size: 0.62rem; padding: 6px 3px; }
  .hero-chat { max-width: 100%; }
  .hero-chat input { font-size: 0.85rem; padding: 0.75rem 0.8rem; }
  .hero-chat-btn { padding: 0.75rem 1rem; font-size: 0.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; }
  .workflow-step + .workflow-step::before { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}
/* ── Related Resources ── */
.related-resources{padding:5rem 0;background:var(--surface-warm, #f5f0e8)}
.related-resources .container{max-width:min(1120px,88vw);margin:0 auto;padding:0 1rem}
.related-title{font-family:var(--f-serif, 'Fraunces', serif);font-size:clamp(1.6rem,3vw,2.2rem);color:var(--ink, #1a1a2e);text-align:center;margin-bottom:0.5rem}
.related-subtitle{text-align:center;color:rgba(26,26,46,0.6);font-size:1rem;margin-bottom:2.5rem}
.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.related-card{background:#fff;border-radius:16px;padding:2rem;text-decoration:none;color:var(--ink, #1a1a2e);transition:transform 0.3s,box-shadow 0.3s;border:1px solid rgba(26,26,46,0.06)}
.related-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(26,26,46,0.1)}
.related-card-emoji{font-size:2rem;margin-bottom:0.75rem}
.related-card-title{font-family:var(--f-serif, 'Fraunces', serif);font-size:1.15rem;font-weight:700;margin-bottom:0.5rem}
.related-card-desc{font-size:0.9rem;color:rgba(26,26,46,0.65);line-height:1.6;margin-bottom:1rem}
.related-card-link{font-size:0.85rem;font-weight:600;color:var(--amber, #e8a33d)}
/* Language Picker */
.lang-picker { position: relative; margin-left: 0.5rem; }
.lang-picker-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.35rem 0.7rem; border-radius: 8px; font-size: 0.75rem; cursor: pointer; font-family: var(--f-sans); display: flex; align-items: center; gap: 0.35rem; transition: all 0.3s; white-space: nowrap; }
.lang-picker-btn:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.lang-picker-dropdown { position: absolute; top: calc(100% + 0.5rem); right: 0; background: var(--surface-dark, #13111a); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 0.6rem; display: none; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; box-shadow: 0 16px 48px rgba(0,0,0,0.6); z-index: 1001; min-width: 320px; max-height: 70vh; overflow-y: auto; }
.lang-picker-dropdown.open { display: grid; }
.lang-option { padding: 0.45rem 0.55rem; border-radius: 8px; font-size: 0.73rem; color: rgba(255,255,255,0.65); cursor: pointer; text-align: center; transition: all 0.2s; white-space: nowrap; }
.lang-option:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-option.active { background: var(--amber, #e8a33d); color: var(--ink, #0d0b0e); font-weight: 700; }
@media (max-width: 768px) {
  .lang-picker { position: fixed; top: 0.8rem; right: 3.5rem; z-index: 1001; }
  .lang-picker-dropdown { min-width: 280px; right: -1rem; }
}
