/* CleanMachine — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #7B4FE0;
  --accent-dark: #5E37B8;
  --accent-light: #EDE7FF;
  --text: #1c1c1e;
  --text-secondary: #6c6c70;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #e5e5ea;
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  --radius: 16px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -0.3px;
}
.nav-logo span { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 15px; font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.15s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-large { padding: 16px 36px; font-size: 17px; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: #f0e9ff; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 96px 24px 80px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 6px 14px;
  border-radius: 100px; margin-bottom: 28px; letter-spacing: 0.2px;
}
.free-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8fef0; color: #1a7a3a;
  font-size: 13px; font-weight: 700; padding: 6px 14px;
  border-radius: 100px; border: 1px solid #b8f0cc; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800;
  line-height: 1.08; letter-spacing: -2px; color: var(--text);
  max-width: 820px; margin: 0 auto 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 2.5vw, 20px); color: var(--text-secondary);
  line-height: 1.55; max-width: 580px; margin: 0 auto 48px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-fine { font-size: 13px; color: var(--text-secondary); }
.hero-fine strong { color: var(--text); }

/* ── Trust bar ─────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.trust-item .icon { font-size: 18px; }

/* ── Section base ─────────────────────────────── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.55; max-width: 600px; margin-bottom: 56px; }

/* ── Feature cards ─────────────────────────────── */
.features { background: var(--surface-2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ── Steps ─────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ── Stats row ─────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 48px 0; }
.stat-card { background: var(--surface-2); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.stat-num { font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ── Comparison table ───────────────────────────── */
.comparison-table-wrap { overflow-x: auto; margin: 40px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.comparison-table th {
  padding: 16px 20px; text-align: left;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  background: var(--surface-2);
}
.comparison-table th.hl { color: var(--accent); background: var(--accent-light); }
.comparison-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .hl { font-weight: 700; color: var(--accent); }
.comparison-table .check { color: var(--green); font-weight: 800; font-size: 17px; }
.comparison-table .cross { color: #ccc; font-size: 17px; }
.comparison-table tr:hover td { background: #fafafa; }

/* ── Pricing ─────────────────────────────────── */
.pricing { background: var(--surface-2); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 720px; }
.pricing-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 40px; border: 2px solid var(--border);
  position: relative; transition: border-color 0.2s;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 14px;
  border-radius: 100px; white-space: nowrap;
}
.pricing-name { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.pricing-price { font-size: 52px; font-weight: 800; letter-spacing: -2px; color: var(--text); margin-bottom: 4px; line-height: 1; }
.pricing-price sup { font-size: 24px; letter-spacing: 0; vertical-align: super; font-weight: 700; }
.pricing-period { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.pricing-note { font-size: 13px; color: var(--text-secondary); margin-top: 24px; text-align: center; line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────── */
.faq-list { max-width: 720px; }
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p, details ul { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-top: 14px; }
details ul { padding-left: 20px; }
details ul li { margin-bottom: 6px; }

/* ── Free CTA section ───────────────────────────── */
.free-cta-section { background: var(--surface-2); }
.free-cta-box {
  background: linear-gradient(135deg, #f5f0ff 0%, #e8fef0 100%);
  border: 1px solid var(--accent-light);
  border-radius: 24px; padding: 64px 48px; text-align: center;
}
.free-cta-box h2 { margin-bottom: 16px; }
.free-cta-box p { font-size: 18px; color: var(--text-secondary); line-height: 1.55; max-width: 520px; margin: 0 auto 40px; }
.free-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.free-cta-note { font-size: 13px; color: var(--text-secondary); margin-top: 16px; }

/* ── CTA banner ───────────────────────────────── */
.cta-banner { background: var(--accent); padding: 80px 24px; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 18px; margin: 0 auto 40px; max-width: 520px; }

/* ── Content prose ─────────────────────────────── */
.prose { max-width: 720px; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.4px; }
.prose p { font-size: 16px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 20px; }
.prose ul { padding-left: 20px; margin-bottom: 20px; }
.prose ul li { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Callout boxes ─────────────────────────────── */
.callout-problem {
  background: #fff5f5; border: 1px solid #ffd0d0; border-left: 4px solid var(--red);
  border-radius: 12px; padding: 20px 24px; margin: 28px 0;
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
}
.callout-solution {
  background: #f0fff6; border: 1px solid #b8f0cc; border-left: 4px solid var(--green);
  border-radius: 12px; padding: 20px 24px; margin: 28px 0;
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
}
.callout-problem strong, .callout-solution strong { font-weight: 700; color: var(--text); }

/* ── Footer ───────────────────────────────────── */
footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 56px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 220px; }
.footer-col h4 { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding: 60px 16px 56px; }
  section { padding: 64px 16px; }
  .free-cta-box { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing-grid { max-width: 100%; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
