/* ─────────────────────────────────────────────────────────────
   improve.html — Light Theme
   出典: Local GEO + index.html ライトパレット
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-elevated: #f8f9fc;
  --bg-card: #ffffff;
  --navy: #060d2e;
  --navy-elevated: #0a1540;
  --accent-blue: #3b72ff;
  --ai-green: #00a870;
  --cta: #06C755;
  --cta-hover: #05b34c;
  --text: #222222;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(59, 114, 255, 0.35);
  --glass-bg: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1152px;
  --nav-h: 72px;
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-elevated); }
.section-sm { padding: 64px 0; }
.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-blue); margin-bottom: 16px;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 8px; }
.lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 560px; line-height: 1.75; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .lead { margin: 0 auto; }

/* Grid bg (Hero) */
.grid-bg {
  pointer-events: none; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(59, 114, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 114, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 60%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, black 30%, transparent 75%);
}
.glow-orb {
  pointer-events: none; position: absolute;
  left: 50%; top: 50%; width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 114, 255, 0.08) 0%, transparent 65%);
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-size: 15px; font-weight: 600; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em; white-space: nowrap;
}
.nav-logo span { color: var(--text-muted); font-weight: 400; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--cta); color: #fff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px) scale(1.02); }
.btn-secondary {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(0, 0, 0, 0.16); background: var(--bg-elevated); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Glass / card panels */
.glass {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.glass-dark {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Info card */
.info-card {
  position: relative; overflow: hidden; height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.info-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(59, 114, 255, 0.12);
  transform: translateY(-4px);
}
.info-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(59, 114, 255, 0.1); color: var(--accent-blue);
  border: 1px solid rgba(59, 114, 255, 0.15);
  margin-bottom: 16px;
}
.info-card-num {
  font-family: ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(59, 114, 255, 0.7);
  position: absolute; top: 24px; right: 24px;
}
.info-card h4 { font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Flow steps */
.flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px;
}
.flow-step {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.flow-step.active {
  border-color: rgba(59, 114, 255, 0.35);
  background: #eef3ff;
  color: var(--accent-blue);
}
.flow-arrow { color: var(--text-muted); font-size: 18px; padding: 0 2px; }

/* Before / After */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.compare-card {
  border-radius: var(--radius-lg); padding: 32px; height: 100%;
  display: flex; flex-direction: column;
}
.compare-card.before {
  border: 1px solid var(--border); background: var(--bg-elevated);
}
.compare-card.after {
  border: 1px solid rgba(59, 114, 255, 0.25);
  background: var(--bg-card);
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 114, 255, 0.1);
}
.compare-card.after::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--ai-green));
}
.compare-tag { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.compare-card.before .compare-tag { color: var(--text-muted); }
.compare-card.after .compare-tag { color: var(--accent-blue); }
.compare-after-title { font-size: 20px; color: var(--text); }
.compare-before-title { font-size: 20px; color: var(--text-muted); }
.compare-bubble {
  margin-top: 20px; padding: 20px 24px; border-radius: var(--radius);
  font-size: 15px; line-height: 1.7;
}
.compare-card.before .compare-bubble {
  background: rgba(0, 0, 0, 0.03); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.compare-card.after .compare-bubble {
  background: rgba(59, 114, 255, 0.06); border: 1px solid rgba(59, 114, 255, 0.15);
  color: var(--text);
}
.compare-bubble strong { display: block; font-size: 12px; margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.compare-card.after .compare-bubble strong { color: var(--accent-blue); }

/* Evolution */
.evolution {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card);
}
.evolution-item {
  flex: 1 1 160px; padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.25s;
}
.evolution-item:last-child { border-right: none; }
.evolution-item:hover { background: rgba(59, 114, 255, 0.04); }
.evolution-item.highlight {
  background: rgba(59, 114, 255, 0.06);
}
.evolution-era { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.06em; }
.evolution-term { font-size: 18px; font-weight: 700; color: var(--text); }
.evolution-item.highlight .evolution-term {
  background: linear-gradient(90deg, var(--ai-green), var(--accent-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Final CTA */
.final-cta {
  text-align: center; padding: 120px 24px; position: relative; overflow: hidden;
  background: var(--bg-elevated);
}
.final-cta-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background: radial-gradient(ellipse at 50% 100%, rgba(59, 114, 255, 0.06) 0%, transparent 60%);
}
.final-cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 20px; color: var(--text); }
.final-cta .lead { margin: 0 auto 36px; text-align: center; }
.final-cta-body { font-size: 15px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 36px; }
.final-cta-body p + p { margin-top: 12px; }
.final-cta-body strong { color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.footer-sub { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-copy a { color: var(--text-muted); text-decoration: none; }
.footer-copy a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px; overflow: hidden;
  background: var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(59, 114, 255, 0.25); background: rgba(59, 114, 255, 0.08);
  font-size: 13px; color: var(--text-secondary); margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ai-green); box-shadow: 0 0 8px rgba(0, 168, 112, 0.4);
}
.hero h1 { margin-bottom: 24px; color: var(--text); }
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--ai-green), var(--accent-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Dashboard visual */
.dash-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-title { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.dash-body { padding: 20px; }
.dash-score-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;
}
.dash-score-box {
  padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-elevated);
  text-align: center;
}
.dash-score-val { font-size: 28px; font-weight: 700; }
.dash-score-val.low { color: #e53e3e; }
.dash-score-val.high { color: var(--ai-green); }
.dash-score-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.dash-arrow-center {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0; color: var(--accent-blue); font-size: 24px;
}
.dash-sim {
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(59, 114, 255, 0.2); background: rgba(59, 114, 255, 0.05);
}
.dash-sim-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.dash-sim-text { font-size: 14px; color: var(--text); line-height: 1.7; }

/* Price card — dark accent on light page (Local GEO Pricing.tsx) */
.price-section { background: var(--bg-elevated); }
.price-card {
  position: relative; max-width: 672px; margin: 0 auto; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-elevated);
  box-shadow: 0 12px 48px rgba(6, 13, 46, 0.18);
  padding: 32px 40px;
}
.price-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--cta), var(--ai-green));
}
.price-badge {
  display: inline-flex; border-radius: 100px;
  border: 1px solid rgba(59, 114, 255, 0.3); background: rgba(59, 114, 255, 0.12);
  padding: 6px 16px; font-size: 13px; font-weight: 600; color: #8bb8ff;
}
.price-card-title {
  margin-top: 24px; font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700; color: #fff; text-align: center;
}
.price-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 32px; width: 100%;
}
.price-option {
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05);
}
.price-option.featured {
  position: relative;
  border-color: rgba(0, 212, 138, 0.4); background: rgba(0, 212, 138, 0.1);
}
.price-discount-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  border-radius: 100px; background: var(--ai-green);
  padding: 2px 12px; font-size: 11px; font-weight: 700; color: #0a1628; white-space: nowrap;
}
.price-option-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.price-option.featured .price-option-label { color: #00d48a; }
.price-amount {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: 2px; margin-top: 12px;
}
.price-currency { font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.price-value { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.price-per { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.price-discount-note { margin-top: 8px; font-size: 12px; color: rgba(0, 212, 138, 0.9); }
.price-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 32px 0; }
.price-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left;
  list-style: none;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.5;
}
.price-features li span { color: #00d48a; flex-shrink: 0; margin-top: 2px; }
.price-cta-wrap { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.price-note { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.45); line-height: 1.7; }

/* Scroll animations */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale { transform: scale(0.94); }
.reveal.visible, .reveal-scale.visible { opacity: 1; transform: none; }
.anim-group .anim-item {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-group.visible .anim-item { opacity: 1; transform: translateY(0); }
.anim-group.visible .anim-item:nth-child(1) { transition-delay: 0.05s; }
.anim-group.visible .anim-item:nth-child(2) { transition-delay: 0.12s; }
.anim-group.visible .anim-item:nth-child(3) { transition-delay: 0.19s; }
.anim-group.visible .anim-item:nth-child(4) { transition-delay: 0.26s; }
.anim-group.visible .anim-item:nth-child(5) { transition-delay: 0.33s; }
.anim-group.visible .anim-item:nth-child(6) { transition-delay: 0.40s; }
.anim-group.visible .anim-item:nth-child(7) { transition-delay: 0.47s; }
.anim-group.visible .anim-item:nth-child(8) { transition-delay: 0.54s; }
.info-card, .compare-card { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }

.flow-connector {
  text-align: center; padding: 8px 0 0;
  font-size: 28px; color: var(--accent-blue); line-height: 1;
  opacity: 0.55;
}
.analysis-hero {
  position: relative; padding: calc(var(--nav-h) + 48px) 0 64px;
  background: var(--bg); overflow: hidden;
}
.analysis-score-lg {
  font-size: clamp(3.5rem, 10vw, 5rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1; color: var(--text);
}
.analysis-score-lg .unit { font-size: 0.35em; color: var(--text-muted); font-weight: 600; }
.score-improve-row {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-top: 32px;
}
.score-improve-box { text-align: center; min-width: 120px; }
.score-improve-val { font-size: 48px; font-weight: 800; letter-spacing: -2px; }
.score-improve-val.current { color: #e53e3e; }
.score-improve-val.target { color: var(--ai-green); }
.score-improve-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.score-improve-arrow { font-size: 32px; color: var(--accent-blue); }

/* ── Section graphics & animations ── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes flowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}
@keyframes ringDraw {
  from { stroke-dashoffset: var(--ring-circ); }
  to { stroke-dashoffset: var(--ring-offset); }
}
@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-6px); opacity: 1; }
}
@keyframes barGrow {
  from { width: 0; }
  to { width: var(--bar-target); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes flowProgress {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(6, 199, 85, 0); }
}
@keyframes riskPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.flow-connector.visible { animation: flowBounce 2s ease-in-out infinite; }

.reveal.visible .section-label { animation: labelIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes labelIn {
  from { opacity: 0; letter-spacing: 0.2em; }
  to { opacity: 1; letter-spacing: 0.14em; }
}

/* §1 Score ring */
.score-visual-wrap {
  position: relative; max-width: 280px; margin: 0 auto 32px;
}
.score-ring-svg {
  width: 100%; height: auto; display: block;
  transform: rotate(-90deg);
}
.score-ring-bg { fill: none; stroke: rgba(59, 114, 255, 0.1); stroke-width: 10; }
.score-ring-fill {
  fill: none; stroke: url(#scoreGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 502; stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-ring-fill.animated { stroke-dashoffset: var(--ring-offset, 290); }
.score-visual-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-visual-center .analysis-score-lg {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}
.score-scan {
  position: absolute; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0; pointer-events: none;
}
.score-visual-wrap.scanning .score-scan { animation: scanLine 2.5s ease-in-out infinite; }

.section-graphic {
  max-width: 640px; margin: 0 auto 40px;
}
.section-graphic svg { width: 100%; height: auto; display: block; }

/* §2 Gap diagram */
.gap-diagram { padding: 24px; }
.gap-node { transition: transform 0.3s; }
.gap-diagram.visible .gap-node { animation: floatY 3s ease-in-out infinite; }
.gap-diagram.visible .gap-node:nth-child(2) { animation-delay: 0.4s; }
.gap-diagram.visible .gap-node:nth-child(3) { animation-delay: 0.8s; }
.gap-diagram.visible .gap-node:nth-child(4) { animation-delay: 1.2s; }

.info-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59, 114, 255, 0.08); color: var(--accent-blue);
  border: 1px solid rgba(59, 114, 255, 0.12);
  margin-bottom: 14px;
}
.info-card.risk-card .info-card-icon {
  background: rgba(229, 62, 62, 0.08); color: #e53e3e;
  border-color: rgba(229, 62, 62, 0.15);
}
.info-card.program-card .info-card-icon {
  background: rgba(0, 168, 112, 0.08); color: var(--ai-green);
  border-color: rgba(0, 168, 112, 0.15);
}

/* §3 AI chat */
.ai-chat-mock {
  max-width: 720px; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-card); overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}
.ai-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.ai-chat-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
}
.ai-chat-title { font-size: 14px; font-weight: 600; }
.ai-chat-sub { font-size: 11px; color: var(--text-muted); }
.ai-chat-body { padding: 24px; }
.ai-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 24px;
}
.ai-logo-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: 14px; min-width: 108px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ai-logo-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 6px 20px rgba(59, 114, 255, 0.1);
}
.ai-logo-item img, .ai-logo-item svg {
  width: 36px; height: 36px; display: block; border-radius: 8px; object-fit: contain;
}
.ai-logo-item span {
  font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em;
}
#ai-chat.visible .ai-logo-item {
  animation: stepPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
#ai-chat.visible .ai-logo-item:nth-child(1) { animation-delay: 0.05s; }
#ai-chat.visible .ai-logo-item:nth-child(2) { animation-delay: 0.12s; }
#ai-chat.visible .ai-logo-item:nth-child(3) { animation-delay: 0.19s; }
#ai-chat.visible .ai-logo-item:nth-child(4) { animation-delay: 0.26s; }
.ai-typing-dots { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: middle; }
#ai-dots { display: none; }
.compare-bubble.typing #ai-dots { display: inline-flex; }
.ai-typing-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted);
  animation: typingDot 1.2s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
.compare-bubble.typing::after {
  content: '|'; animation: blink 0.8s step-end infinite; color: var(--accent-blue);
}
@keyframes blink { 50% { opacity: 0; } }

/* §4 Risk funnel */
.risk-funnel { padding: 16px 0; }
.risk-funnel-layer {
  margin: 0 auto; text-align: center; padding: 12px;
  border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); border: 1px dashed rgba(229, 62, 62, 0.25);
  background: rgba(229, 62, 62, 0.04);
  animation: riskPulse 2.5s ease-in-out infinite;
}
.risk-funnel-layer:nth-child(1) { width: 100%; }
.risk-funnel-layer:nth-child(2) { width: 82%; margin-top: 8px; animation-delay: 0.3s; }
.risk-funnel-layer:nth-child(3) { width: 64%; margin-top: 8px; animation-delay: 0.6s; }
.risk-funnel-layer:nth-child(4) { width: 46%; margin-top: 8px; animation-delay: 0.9s; color: #e53e3e; }

/* §5 Score bar */
.score-bar-wrap {
  max-width: 480px; margin: 32px auto 0; padding: 0 8px;
}
.score-bar-track {
  height: 8px; border-radius: 100px; background: rgba(0, 0, 0, 0.06);
  position: relative; overflow: hidden;
}
.score-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 100px;
  background: linear-gradient(90deg, #e53e3e, var(--accent-blue), var(--ai-green));
  width: 0; transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-bar-fill.animated { width: var(--bar-target, 78%); }
.score-bar-labels {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 11px; color: var(--text-muted);
}
.score-improve-arrow { animation: arrowNudge 2s ease-in-out infinite; }
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* §6 Program timeline */
.flow-timeline {
  position: relative; margin-bottom: 48px;
  padding: 8px 0; overflow: visible;
}
.flow-program {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; position: relative;
  padding: 8px 4px; max-width: 100%;
}
.flow-timeline-line {
  display: none;
  pointer-events: none;
}
.flow-timeline-progress {
  height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-blue), var(--ai-green));
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-timeline.visible .flow-timeline-progress { width: 100%; }
.flow-program .flow-step {
  position: relative; z-index: 1;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  flex: 0 1 auto; max-width: 100%;
}
.flow-timeline.visible .flow-step {
  animation: stepPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.flow-timeline.visible .flow-step:nth-child(2) { animation-delay: 0.1s; }
.flow-timeline.visible .flow-step:nth-child(3) { animation-delay: 0.2s; }
.flow-timeline.visible .flow-step:nth-child(4) { animation-delay: 0.3s; }
.flow-timeline.visible .flow-step:nth-child(5) { animation-delay: 0.4s; }
.flow-timeline.visible .flow-step:nth-child(6) { animation-delay: 0.5s; }
.flow-timeline.visible .flow-step:nth-child(7) { animation-delay: 0.6s; }
.flow-timeline.visible .flow-step:nth-child(8) { animation-delay: 0.7s; }
.flow-timeline.visible .flow-step:nth-child(9) { animation-delay: 0.8s; }
@keyframes stepPop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Desktop: horizontal progress line behind steps */
@media (min-width: 961px) {
  .flow-program .flow-timeline-line {
    display: block;
    position: absolute;
    top: 50%; left: 24px; right: 24px; height: 3px;
    background: rgba(59, 114, 255, 0.12); border-radius: 100px;
    transform: translateY(-50%);
    z-index: 0;
  }
}

/* Tablet: 2-column grid, no horizontal overflow */
@media (max-width: 960px) {
  .flow-program {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 4px 0 8px;
  }
  .flow-step {
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.35;
    border-radius: var(--radius);
  }
}

@media (max-width: 640px) {
  .flow-program {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .flow-step {
    font-size: 12px;
    padding: 12px 10px;
  }
}

@media (max-width: 380px) {
  .flow-program { grid-template-columns: 1fr; }
}

/* §7 Price */
.price-card.reveal.visible {
  animation: priceIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes priceIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.price-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}
.price-features li {
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.4s, transform 0.4s;
}
.price-card.features-visible .price-features li {
  opacity: 1; transform: none;
}
.price-card.features-visible .price-features li:nth-child(1) { transition-delay: 0.05s; }
.price-card.features-visible .price-features li:nth-child(2) { transition-delay: 0.1s; }
.price-card.features-visible .price-features li:nth-child(3) { transition-delay: 0.15s; }
.price-card.features-visible .price-features li:nth-child(4) { transition-delay: 0.2s; }
.price-card.features-visible .price-features li:nth-child(5) { transition-delay: 0.25s; }
.price-card.features-visible .price-features li:nth-child(6) { transition-delay: 0.3s; }
.price-card.features-visible .price-features li:nth-child(7) { transition-delay: 0.35s; }
.price-card.features-visible .price-features li:nth-child(8) { transition-delay: 0.4s; }
.price-card.features-visible .price-features li:nth-child(9) { transition-delay: 0.45s; }

/* §8 CTA */
.final-cta-graphic {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 50%; background: rgba(6, 199, 85, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cta); position: relative;
}
.final-cta-graphic::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(6, 199, 85, 0.3);
  animation: ctaPulse 2s ease-in-out infinite;
}
.final-cta .btn-primary { animation: ctaPulse 2.5s ease-in-out infinite; }

.section-deco {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}
.section-deco-blue { background: rgba(59, 114, 255, 0.12); width: 300px; height: 300px; }
.section-deco-green { background: rgba(0, 168, 112, 0.1); width: 240px; height: 240px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .anim-group .anim-item { opacity: 1; transform: none; }
}
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .evolution-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .evolution-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; }
  .price-options { grid-template-columns: 1fr; }
  .price-features { grid-template-columns: 1fr; }
  .price-card { padding: 28px 20px; }
}
