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

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --positive: #10b981;
  --negative: #ef4444;
  --neutral: #6b7280;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
ul { margin: 0; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
.hidden { display: none !important; }

/* Nav */
.nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  max-width: 700px;
  margin: 0 auto 1.25rem;
}
.hero-sub {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}
.hero-disclaimer {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Proof bar */
.proof-bar {
  background: var(--bg-alt);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-items {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.proof-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 4rem 0;
}
.features h2 { text-align: center; margin-bottom: 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: 0.9rem; }

/* How it works */
.how-it-works {
  padding: 4rem 0;
  background: var(--bg-alt);
}
.how-it-works h2 { text-align: center; margin-bottom: 2.5rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing */
.pricing {
  padding: 4rem 0;
}
.pricing h2 { text-align: center; margin-bottom: 2.5rem; }
.pricing-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 280px;
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.pricing-card h3 { margin-bottom: 0.5rem; }
.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.pricing-card > p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.pricing-card ul { text-align: left; color: var(--text-muted); font-size: 0.9rem; }

/* Form section */
.form-section {
  padding: 4rem 0;
  background: var(--bg-alt);
}
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header p { color: var(--text-muted); margin-top: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 0.9rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.radio-group { display: flex; gap: 1.5rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.checkbox-grid label { font-size: 0.875rem; display: flex; align-items: center; gap: 0.375rem; }
.context-details { margin-bottom: 1.5rem; }
.context-details summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}
.context-inner { padding-top: 1rem; }
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}
.form-message {
  margin-top: 1rem;
  text-align: center;
  color: var(--negative);
}
.char-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  float: right;
}
.char-count.over {
  color: var(--negative);
  font-weight: 600;
}
.context-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Disclaimer section */
.disclaimer-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.disclaimer-section p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-brand { font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* Results page */
.results-header {
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.results-header h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.results-disclaimer { color: var(--text-muted); font-size: 0.85rem; }

.results-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.meta-item { text-align: center; }
.meta-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: block; }
.meta-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

.winner-banner {
  background: #dcfce7;
  border: 1px solid var(--positive);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.winner-banner h2 { color: #166534; font-size: 1.25rem; margin: 0; }
.winner-banner p { color: #15803d; font-size: 0.9rem; margin-top: 0.25rem; }

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
}

.variant-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.variant-card.winner { border-color: var(--positive); border-width: 2px; }

.variant-header {
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.variant-header h3 { margin: 0; }
.winner-tag {
  background: var(--positive);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.variant-body { padding: 1.25rem; }

.message-preview {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-height: 100px;
  overflow-y: auto;
  border-left: 3px solid var(--border);
}

.chart-section { margin-bottom: 1.5rem; }
.chart-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.75rem; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.bar-name { width: 65px; font-size: 0.8rem; color: var(--text); }
.bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  transition: width 0.6s ease;
}
.bar-fill.positive { background: var(--positive); }
.bar-fill.negative { background: var(--negative); }
.bar-fill.neutral { background: var(--neutral); }
.bar-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}
.bar-val.outside {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
}

.net-score {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.net-score .label { font-size: 0.85rem; color: var(--text-muted); }
.net-score .value { font-size: 1.25rem; font-weight: 700; }
.net-score .value.pos { color: var(--positive); }
.net-score .value.neg { color: var(--negative); }

/* Collapsible */
.collapse-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.collapse-header {
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.collapse-header:hover { background: #eef2f7; }
.collapse-header h4 { margin: 0; font-size: 0.9rem; font-weight: 500; }
.collapse-icon {
  transition: transform 0.2s;
  color: var(--text-muted);
}
.collapse-section.open .collapse-icon { transform: rotate(180deg); }
.collapse-body {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.collapse-section.open .collapse-body { display: block; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.data-table th, .data-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  background: var(--bg-alt);
}
.data-table tr:last-child td { border-bottom: none; }

/* Quotes */
.quote-item {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
}
.quote-text { font-style: italic; font-size: 0.875rem; margin-bottom: 0.375rem; }
.quote-demo { font-size: 0.75rem; color: var(--text-muted); }

/* Password/status cards */
.status-card, .password-card {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.password-card label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.password-card input { margin-bottom: 1rem; }
.password-card .btn { width: 100%; }

.download-section {
  text-align: center;
  margin: 2rem 0;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0;
}
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-page .updated { color: var(--text-muted); margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.legal-page p { margin-bottom: 1rem; color: var(--text); }
.legal-page ul { margin-bottom: 1rem; }
.legal-page li { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .proof-items { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
