/* TOP Projects — Conversion design system v1 */
:root {
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1120px;
  --top1-primary: #0d9488;
  --top1-dark: #0f172a;
  --top1-accent: #14b8a6;
  --top2-primary: #ea580c;
  --top2-dark: #1c1917;
  --top2-accent: #fbbf24;
  --top3-primary: #2563eb;
  --top3-dark: #0f172a;
  --top3-accent: #f97316;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.theme-top1 { --primary: var(--top1-primary); --dark: var(--top1-dark); --accent: var(--top1-accent); --bg-soft: #f0fdfa; }
.theme-top2 { --primary: var(--top2-primary); --dark: var(--top2-dark); --accent: var(--top2-accent); --bg-soft: #fff7ed; }
.theme-top3 { --primary: var(--top3-primary); --dark: var(--top3-dark); --accent: var(--top3-accent); --bg-soft: #eff6ff; }

h1, h2, h3 { color: var(--dark); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-soft); }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0.875rem 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.125rem; color: var(--dark); text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: #64748b; font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 768px) {
  .nav-links .hide-mobile { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; border: none; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #000));
  color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn-primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 50%, transparent); }
.btn-ghost { background: transparent; color: var(--dark); border: 1px solid #e2e8f0; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 4rem 0 5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--primary);
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 1rem;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-lead { font-size: 1.125rem; color: #64748b; max-width: 32rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8125rem; color: #94a3b8; }
.hero-trust span::before { content: '✓ '; color: var(--primary); font-weight: 700; }

.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid #e2e8f0;
}

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 2rem; background: var(--dark); border-radius: var(--radius-lg);
  color: #fff; text-align: center;
}
@media (max-width: 768px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.8125rem; color: #94a3b8; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0; background: #fff;
  transition: box-shadow 0.2s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-soft); display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0; background: #fff; position: relative;
  display: flex; flex-direction: column;
}
.price-card.popular {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 0.25rem 1rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.price-amount small { font-size: 1rem; font-weight: 500; color: #94a3b8; }
.price-features { list-style: none; padding: 0; margin: 1.5rem 0; flex: 1; }
.price-features li { padding: 0.375rem 0; font-size: 0.9375rem; }
.price-features li::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid #e2e8f0;
}
.testimonial-stars { color: var(--accent); margin-bottom: 0.75rem; }
.testimonial-author { font-weight: 600; color: var(--dark); font-size: 0.875rem; margin-top: 1rem; }
.testimonial-role { color: #94a3b8; font-size: 0.8125rem; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e2e8f0; padding: 1.25rem 0; }
.faq-q { font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { color: #64748b; margin-top: 0.75rem; font-size: 0.9375rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.375rem; color: var(--dark); }
.form-input {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid #e2e8f0;
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Demo widget */
.demo-result {
  margin-top: 1rem; padding: 1rem; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid #e2e8f0;
  font-size: 0.9375rem; white-space: pre-wrap;
}
.score-ring {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  border: 6px solid var(--primary); color: var(--primary); margin: 0 auto 1rem;
}

/* Sticky CTA mobile */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem; background: #fff; border-top: 1px solid #e2e8f0;
  z-index: 99; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 768px) { .sticky-cta { display: block; } }

/* Footer */
.site-footer {
  background: var(--dark); color: #94a3b8; padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.875rem; margin-bottom: 1rem; }
.footer-grid a { color: #94a3b8; display: block; margin-bottom: 0.5rem; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #334155; text-align: center; }

/* Success page */
.success-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); }
.success-card {
  background: #fff; padding: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); text-align: center; max-width: 480px;
}
.token-box { background: #f8fafc; padding: 1rem; border-radius: var(--radius); word-break: break-all; }

/* Utility */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.guarantee {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; background: #ecfdf5; color: #047857;
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
}
.logo-cloud { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; opacity: 0.5; font-weight: 700; font-size: 0.875rem; color: #64748b; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin: 0 auto 1rem;
}

/* Conversion v2 — rassurance & clarté */
.section-tight { padding: 1.5rem 0; }
.hero-sub-lead { font-size: 0.9375rem; color: #64748b; margin-bottom: 1.25rem; max-width: 32rem; }
.problem-sub { color: #64748b; max-width: 640px; margin: 0 auto 2rem; }
.problems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 768px) { .problems-grid { grid-template-columns: 1fr; } }
.problem-card {
  padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  background: #fef2f2; border: 1px solid #fecaca;
}
.problem-x { color: #dc2626; font-weight: 800; margin-right: 0.5rem; }
.problem-card h3 { font-size: 1rem; margin-bottom: 0.375rem; }

.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .outcomes-grid { grid-template-columns: 1fr; } }
.outcome-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid #e2e8f0; box-shadow: var(--shadow);
}
.outcome-check {
  width: 32px; height: 32px; border-radius: 50%; background: #ecfdf5; color: #059669;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.75rem;
}
.outcome-promise { margin-top: 2rem; font-size: 1.0625rem; color: var(--dark); max-width: 720px; margin-left: auto; margin-right: auto; }

.included-box {
  max-width: 720px; margin: 0 auto; padding: 2rem;
  background: #fff; border-radius: var(--radius-lg); border: 2px solid var(--primary);
}
.included-list { list-style: none; padding: 0; margin: 0; }
.included-list li {
  display: flex; gap: 0.75rem; padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9; font-size: 0.9375rem;
}
.included-list li:last-child { border-bottom: none; }
.inc-check { color: var(--primary); font-weight: 800; flex-shrink: 0; }

.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.compare-table thead { background: var(--dark); color: #fff; }
.compare-table .col-bad { color: #94a3b8; }
.compare-table .col-good { color: #059669; font-weight: 600; }

.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.25rem; background: var(--bg-soft); border-radius: var(--radius-lg);
}
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
.trust-item { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.8125rem; color: #64748b; }
.trust-item strong { color: var(--dark); display: block; font-size: 0.875rem; }
.trust-icon { font-size: 1.25rem; }

.risk-section { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .risk-grid { grid-template-columns: 1fr; } }
.risk-card {
  text-align: center; padding: 1.75rem 1.25rem; background: #fff;
  border-radius: var(--radius-lg); border: 1px solid #e2e8f0;
}
.risk-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.guarantee-detail { margin-top: 1rem; color: #64748b; font-size: 0.9375rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.pricing-note { color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* Checkout modal */
.checkout-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.checkout-modal[hidden] { display: none !important; }
.checkout-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(4px); }
.checkout-modal-card {
  position: relative; z-index: 1; width: min(420px, 100%); background: #fff;
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg);
}
.checkout-modal-card h3 { margin-bottom: 0.25rem; }
.checkout-lead { color: #64748b; font-size: 0.9375rem; margin-bottom: 1.25rem; }
.checkout-close {
  position: absolute; top: 0.75rem; right: 0.75rem; border: none; background: transparent;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: #94a3b8;
}
.checkout-error { color: #b91c1c; font-size: 0.875rem; margin: 0.5rem 0 0; }
.checkout-trust { font-size: 0.75rem; color: #94a3b8; text-align: center; margin-top: 1rem; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

/* Scan email gate */
.scan-gate {
  margin-top: 1rem; padding: 1rem; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid #e2e8f0;
}
.scan-gate label { font-size: 0.875rem; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.scan-gate-row { display: flex; gap: 0.5rem; }
.scan-gate-row .form-input { flex: 1; }

.token-box { background: var(--bg-soft); padding: 1rem; border-radius: var(--radius); word-break: break-all; }
.success-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); }
.success-card { max-width: 480px; text-align: center; padding: 2rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
