/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --primary:        #22C55E;
  --primary-dark:   #16A34A;
  --primary-light:  #BBF7D0;
  --primary-faint:  #F0FDF4;
  --accent:         #059669;
  --accent-light:   #D1FAE5;
  --danger:         #DC2626;
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-subtle:    #9CA3AF;
  --border:         #E5E7EB;
  --border-strong:  #D1D5DB;
  --bg:             #FFFFFF;
  --bg-subtle:      #F9FAFB;
  --bg-dark:        #111827;
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      16px;
  --shadow:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03);
  --font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      ui-monospace, 'Cascadia Code', monospace;
  --max-w:          1120px;
  --nav-h:          64px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { color: var(--text-muted); }
.text-center { text-align: center; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: .9375rem;
  font-weight: 600; cursor: pointer; border: none; transition: all .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #052e16;
  box-shadow: 0 1px 2px rgba(34,197,94,.3);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,.35); }
.btn-secondary {
  background: transparent; color: #15803D;
  border: 1.5px solid #15803D;
}
.btn-secondary:hover { background: var(--primary-faint); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: #15803D; color: #15803D; }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
}
.badge-purple { background: var(--primary-light); color: var(--primary-dark); }
.badge-green  { background: var(--accent-light);  color: var(--accent); }

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.125rem; font-weight: 700; color: var(--text);
}
.nav-logo-img {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 500; color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-cta { margin-left: 8px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,197,94,.08) 0%, transparent 70%);
}
.hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 1.1875rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .875rem; color: var(--text-subtle); }

/* ── How it works ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 48px; }
.step {
  padding: 28px; border-radius: var(--radius); background: var(--bg-subtle);
  border: 1px solid var(--border); position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.step p  { font-size: .9375rem; }

/* ── Features ──────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { font-size: .9375rem; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing-card {
  border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border);
  background: var(--bg); position: relative;
}
.pricing-card.featured {
  border-color: var(--primary); background: var(--primary-faint);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  padding: 4px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  white-space: nowrap;
}
.pricing-plan { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-price strong { font-size: 2.75rem; font-weight: 800; color: var(--text); }
.pricing-price span { font-size: .9375rem; color: var(--text-muted); }
.pricing-tagline { font-size: .9375rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--text); }
.pricing-feature svg { flex-shrink: 0; margin-top: 2px; }
.pricing-feature.muted { color: var(--text-subtle); }
.pricing-cta { width: 100%; }

/* ── Section header ────────────────────────────────────────────────────── */
.section-header { max-width: 620px; margin: 0 auto; text-align: center; }
.section-header p { margin-top: 12px; font-size: 1.0625rem; }

/* ── FAQ (support + index) ─────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; margin-top: 48px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--text);
  text-align: left; gap: 12px; transition: background .15s;
}
.faq-q:hover { background: var(--bg-subtle); }
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--text-muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: .9375rem; }
.faq-a a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.legal-meta { margin-top: 8px; font-size: .9375rem; color: var(--text-muted); }
.legal-body { padding: 56px 0; }
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 48px; margin-bottom: 16px; font-size: 1.375rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-content h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1.0625rem; }
.legal-content p  { margin-bottom: 16px; font-size: .9375rem; line-height: 1.7; color: var(--text); }
.legal-content ul { margin: 12px 0 16px 0; padding-left: 0; }
.legal-content ul li { padding: 4px 0 4px 22px; position: relative; font-size: .9375rem; line-height: 1.6; color: var(--text); }
.legal-content ul li::before { content: '–'; position: absolute; left: 6px; color: var(--text-muted); }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9375rem; }
.legal-content table th { text-align: left; padding: 10px 14px; background: var(--bg-subtle); font-weight: 600; border-bottom: 1px solid var(--border); }
.legal-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-content .notice {
  background: var(--primary-faint); border-left: 3px solid var(--primary);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.legal-content .notice p { margin: 0; color: var(--primary-dark); font-size: .9375rem; }

/* ── Support page ──────────────────────────────────────────────────────── */
.contact-card {
  background: var(--primary-faint); border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg); padding: 40px; text-align: center; max-width: 520px; margin: 0 auto;
}
.contact-card h3 { color: var(--text); margin-bottom: 10px; }
.contact-card p  { color: var(--text-muted); margin-bottom: 20px; }
.contact-card a:not(.btn) { color: #15803D; font-weight: 600; font-size: 1.0625rem; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark); color: #9CA3AF;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: .9375rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 { color: white; font-size: .875rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .9375rem; transition: color .15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .875rem; }

/* ── Divider ───────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 56px 0; }
  .hero       { padding: 64px 0 56px; }
  .nav-links a:not(.btn)   { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; }
}
