:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --ink: #1b1730;
  --muted: #615b7b;
  --accent: #6d28d9;
  --accent-dark: #4c1d95;
  --accent-soft: #efe9fd;
  --line: #e3e0ee;
  --radius: 14px;
  --wrap: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(900px 380px at 15% -10%, var(--accent-soft), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Sections */
.section { padding: 52px 0; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; color: var(--muted); }

/* Table */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

caption {
  caption-side: top;
  padding: 12px 18px 0;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
}

th, td {
  text-align: left;
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tbody tr:last-child td { border-bottom: none; }

td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

table.compare {
  min-width: 680px;
}

table.compare td:first-child {
  white-space: normal;
}

.example {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 0.96rem;
}

/* Mistakes */
.mistakes {
  padding-left: 0;
  list-style: none;
  margin: 24px 0 0;
}

.mistakes li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 14px;
}

.mistakes li:last-child { margin-bottom: 0; }

.mistakes li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* CTA */
.cta {
  margin-top: 40px;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.cta h2 { margin-bottom: 0.4em; }
.cta p { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 6px; }

/* Footer */
.site-footer {
  padding: 40px 0 32px;
  background: #191330;
  color: #cbc5de;
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer p { margin: 0 0 10px; max-width: 78ch; }

.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.site-footer a { color: #cbc5de; }
.site-footer a:hover { color: #fff; }

.copyright {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9a93b5;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  .nav { gap: 2px 14px; font-size: 0.88rem; }
  .steps > li { padding: 16px 16px 16px 56px; }
  .steps > li::before { left: 14px; top: 16px; }
  .cta { padding: 24px 18px; }
  th, td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
