/* ServiceCharges.AI — shared design system (2026 rebuild) */

:root {
  --bg-dark: #0b1020;
  --bg-dark-alt: #131a30;
  --surface-dark: #161e36;
  --border-dark: #263660;
  --text-on-dark: #e5e9f5;
  --muted-on-dark: #9aa7c7;

  --bg-light: #f6f7fb;
  --surface-light: #ffffff;
  --border-light: #e2e6f0;
  --text-on-light: #1a2138;
  --muted-on-light: #5b6584;

  --brand-gold: #ffd700;
  --brand-orange: #ffa500;
  --brand-gradient: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));

  --success: #12b886;
  --error: #ff6b6b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px rgba(8, 14, 31, 0.18);
  --shadow-dark: 0 12px 30px rgba(8, 14, 31, 0.45);

  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-gold);
  color: #1a2138;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-on-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
}

.nav-cta {
  background: var(--brand-gradient);
  color: #1a2138;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark-alt));
  color: var(--text-on-dark);
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid.with-visual {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero .lede {
  font-size: 18px;
  color: var(--muted-on-dark);
  margin-bottom: 28px;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #1a2138;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
}

.page-light .btn-outline,
.section-light .btn-outline,
.section-alt .btn-outline {
  border-color: var(--border-light);
  color: var(--text-on-light);
}

.btn-outline:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-block {
  width: 100%;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 40px;
}

.stat-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted-on-dark);
  font-size: 14px;
}

.source-note {
  font-size: 12px;
  color: var(--muted-on-dark);
  margin-top: 8px;
}

.page-light .source-note {
  color: var(--muted-on-light);
}

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

.section-light {
  background: var(--surface-light);
}

.section-alt {
  background: var(--bg-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted-on-light);
  font-size: 17px;
}

.section-dark .section-header p {
  color: var(--muted-on-dark);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted-on-light);
}

/* ---------- Pricing cards ---------- */
.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--brand-orange);
}

.price-card .badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-oneoff {
  background: rgba(18, 184, 134, 0.12);
  color: #0a6e51;
}

.badge-recurring {
  background: rgba(255, 165, 0, 0.12);
  color: #954f00;
}

.badge-soon {
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted-on-light);
}

.price-card h3 {
  font-size: 22px;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
}

.price-amount span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-on-light);
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--muted-on-light);
}

.price-card ul li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #1a2138;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- Tables / FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--muted-on-light);
}

/* ---------- Disclaimer / notice boxes ---------- */
.notice {
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-on-light);
}

.section-dark .notice {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.25);
  color: var(--text-on-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--muted-on-dark);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}

.footer-grid h3 {
  color: var(--text-on-dark);
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid a {
  display: block;
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted-on-dark);
  max-width: 70ch;
  margin-bottom: 16px;
}

/* ---------- Waitlist modal ---------- */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 32, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.waitlist-overlay.open {
  display: flex;
}

.waitlist-modal {
  background: var(--surface-light);
  color: var(--text-on-light);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.waitlist-modal h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.waitlist-modal p.modal-lede {
  color: var(--muted-on-light);
  font-size: 14px;
  margin-bottom: 20px;
}

.waitlist-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted-on-light);
  line-height: 1;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: #fff;
  color: var(--text-on-light);
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 1px;
}

.form-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--error);
}

.form-field.has-error .form-error {
  display: block;
}

/* Honeypot field — hidden from sighted users and screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  color: var(--success);
  display: block;
}

.form-status.error {
  color: var(--error);
  display: block;
}

/* ---------- Misc ---------- */
.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}

.page-light {
  background: var(--surface-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Marketing consent checkbox (waitlist modal + signup) */
.form-field-consent { margin: 12px 0 4px; }
.form-field-consent .consent-label, .consent-label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted, #555); cursor: pointer; font-weight: 400; }
.form-field-consent .consent-label input[type="checkbox"], .consent-label input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.consent-label span { flex: 1; min-width: 0; }
