:root {
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --text: #18181b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --border: #e4e4e7;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-border: #dbeafe;
  --card-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-muted: #18181b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-faint: #71717a;
    --border: #27272a;
    --blue: #60a5fa;
    --blue-dark: #3b82f6;
    --blue-bg: rgba(30, 58, 138, 0.25);
    --blue-border: #1e3a8a;
    --card-bg: #09090b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }

.accent { color: var(--blue); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue);
  margin-right: 16px;
}

.main-nav {
  display: none;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.main-nav a {
  text-decoration: none;
}

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

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-muted {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.link-muted:hover { color: var(--text); }

.link-underline {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

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

.btn-lg {
  padding: 14px 32px;
  font-size: 1.125rem;
  border-radius: 12px;
}

.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
  max-width: 896px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--blue-border);
  margin: 0 0 32px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 672px;
  margin: 0 auto 16px;
}

.sub-lede {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* Sections */
.section { padding: 96px 0; }
.section-muted { background: var(--bg-muted); }

.section h2 {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 576px;
  margin: 0 auto 64px;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.step-icon-wrap {
  position: relative;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
}

.steps h3 { font-size: 0.875rem; }
.steps p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* Grid / cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--card-bg);
}

.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* Tools grid uses a slightly tighter gap + padding, per source (gap-5 / p-5) */
#tools .grid { gap: 20px; }
#tools .card { padding: 20px; border-radius: 12px; }

.card-tool { display: flex; gap: 16px; align-items: flex-start; }

.tool-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: var(--blue-bg);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon svg { width: 20px; height: 20px; }

.card-tool h3 { font-size: 0.875rem; margin-bottom: 4px; }
.card-tool p { font-size: 0.75rem; }

/* Pricing */
.pricing-container { max-width: 768px; text-align: center; }

.pricing-grid {
  display: grid;
  gap: 24px;
  text-align: left;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  background: var(--card-bg);
  text-align: left;
}

.pricing-card-basic {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.14), 0 8px 10px -6px rgba(37, 99, 235, 0.12);
}

.pricing-plan {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 8px;
}

.pricing-card-pro .pricing-plan { color: var(--text-muted); }

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.pricing-was {
  color: var(--text-faint);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: line-through;
}

.pricing-amount { font-size: 3rem; font-weight: 800; margin-bottom: 4px; }
.pricing-period { color: var(--text-muted); margin-bottom: 24px; }

.pricing-includes { margin: 0 0 10px; font-size: 0.875rem; font-weight: 600; }

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-items {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}

.pricing-items li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}

.pricing-unavailable {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-faint);
  font-weight: 600;
  text-align: center;
}

/* FAQ */
.faq-section { max-width: 672px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-row { flex-direction: row; justify-content: space-between; }
}

.footer-logo { font-weight: 800; color: var(--blue); font-size: 1rem; margin-bottom: 8px; }
.footer-tagline, .footer-copy { font-size: 0.75rem; margin: 4px 0 0; }

.footer-cols { display: flex; gap: 32px; }
.footer-heading { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer-cols a { display: block; text-decoration: none; margin-bottom: 4px; }
.footer-cols a:hover { text-decoration: underline; }

/* Legal pages */
.legal-page { max-width: 768px; padding-top: 48px; padding-bottom: 96px; }

.legal-back { display: inline-block; text-decoration: none; margin-bottom: 24px; }

.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }

.legal-updated { color: var(--text-faint); margin: 0 0 32px; }

.legal-page h2 { font-size: 1.125rem; margin: 32px 0 8px; }

.legal-page p { color: var(--text-muted); margin: 0 0 4px; line-height: 1.6; }
