/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:            #0F0F14;
  --surface:       #1C1C27;
  --surface-2:     #26263A;
  --border:        #2D2D3D;
  --primary:       #7C3AED;
  --primary-hover: #6D28D9;
  --primary-dim:   #3B1F7A;
  --text:          #F1F0F5;
  --text-muted:    #9B9AAF;
  --green:         #4ADE80;
  --error:         #EF4444;

  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     1180px;
  --header-h:  68px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(64px, 10vw, 112px); }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ─── Header ────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
header.scrolled {
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; height: 32px; }
.logo img, .logo svg { height: 32px; width: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle { display: none; padding: 8px; color: var(--text); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span + span { margin-top: 5px; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(80px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(124,58,237,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dim);
  color: #C4B5FD;
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(40px, 7.5vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-actions .btn { padding: 16px 32px; font-size: 16px; }
.hero-stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stat span {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Trust bar ─────────────────────────────────────────────────────────── */
.trust {
  padding-block: 32px;
  border-block: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.trust-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── How it works ──────────────────────────────────────────────────────── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.how-step {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
}
.how-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.how-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.how-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #C4B5FD;
  margin-bottom: 20px;
}
.how-step-icon { font-size: 28px; margin-bottom: 16px; }
.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.how-step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ─── Features ──────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.45);
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.check { color: var(--green); }
.cross { color: var(--text-muted); }

/* ─── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s;
}
.pricing-card.popular {
  border-color: var(--primary);
  position: relative;
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.pricing-rate {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-rate sup {
  font-size: 22px;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}
.pricing-volume {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.pricing-features {
  flex: 1;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding-block: 7px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .tick {
  color: var(--green);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-enterprise {
  margin-top: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.pricing-enterprise-text strong { font-size: 18px; font-weight: 700; }
.pricing-enterprise-text p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.pricing-included {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.pricing-included-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.pricing-included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}
.pricing-included-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-included-grid li .tick { color: var(--green); flex-shrink: 0; }
@media (max-width: 600px) {
  .pricing-included-grid { grid-template-columns: 1fr; }
  .pricing-included { padding: 24px 20px; }
}
.pricing-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}
.pricing-smallprint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  max-width: 560px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* ─── CTA section ───────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.14) 0%, rgba(59,31,122,0.18) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { max-width: 560px; margin-inline: auto; text-align: center; }
.cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-inner p { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; }
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.cta-form input[type="email"]::placeholder { color: var(--text-muted); }
.cta-form input[type="email"]:focus { border-color: var(--primary); }
.cta-form .btn { white-space: nowrap; }
.cta-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-steps, .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .how-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .how-step:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
    align-items: flex-start;
  }
  .nav-toggle { display: flex; flex-direction: column; }
  .nav-cta { margin-left: 0; }
  .pricing-enterprise { flex-direction: column; align-items: flex-start; }
  .comparison { padding: 24px; }
}
@media (max-width: 560px) {
  .hero-stat-row { gap: 24px; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .cta-form { flex-direction: column; }
  .cta-form input[type="email"], .cta-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Fee calculator ────────────────────────────────────────────────────── */
.calc-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 56px;
}
.calc-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.calc-input-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.calc-input-header label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.calc-input-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.2);
  transition: box-shadow 0.15s;
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}
.calc-slider:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(124,58,237,0.28); }
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.calc-tier-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.calc-tier-label { font-size: 13px; color: var(--text-muted); }
.calc-tier-badge {
  font-size: 14px;
  font-weight: 700;
  color: #C4B5FD;
}
.calc-tier-sub { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* Results table */
.calc-results { position: relative; }
.calc-results-header {
  display: grid;
  grid-template-columns: 1fr 130px 130px 180px;
  gap: 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 130px 130px 180px;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row-kinetiq { background: none; }
.calc-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.calc-row-you  { font-size: 12px; color: var(--primary); font-weight: 600; }
.calc-row-detail { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.calc-row-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.calc-dot-kinetiq { background: var(--primary); }
.calc-dot-other   { background: var(--text-muted); }
.calc-row-month { font-size: 15px; font-weight: 600; }
.calc-row-year  { font-size: 15px; color: var(--text-muted); }
.calc-row-save  { font-size: 13px; color: var(--green); }
.calc-row-save-empty { color: var(--text-muted); }
.calc-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .calc-inputs { grid-template-columns: 1fr; gap: 24px; }
  .calc-results-header,
  .calc-row { grid-template-columns: 1fr 90px 90px; }
  .calc-results-header span:last-child,
  .calc-row-save { display: none; }
  .calc-wrap { padding: 24px 20px; }
  .calc-tier-sub { display: none; }
}
@media (max-width: 560px) {
  .calc-results-header,
  .calc-row { grid-template-columns: 1fr 90px; }
  .calc-results-header span:nth-child(3),
  .calc-row-year { display: none; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
