/* ============================================
   MailSequence Design System — site.css
   ============================================ */

/* ============================================
   1) Design Tokens (CSS Custom Properties)
   ============================================ */
:root {
  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-900: #0f172a; /* slate-900 */
  --text-700: #334155; /* slate-700 */
  --text-500: #64748b; /* slate-500 */

  /* Surfaces */
  --bg-0: #ffffff;
  --bg-1: #f8fafc; /* slate-50-ish */
  --bg-2: #f1f5f9; /* slate-100-ish */
  --border-1: rgba(15, 23, 42, 0.10);
  --border-2: rgba(15, 23, 42, 0.14);

  /* Brand Accents */
  --brand-600: #2563eb; /* friendly blue */
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;

  --accent-teal-500: #14b8a6;
  --accent-violet-500: #8b5cf6;

  /* Gradients (soft washes) */
  --grad-hero: radial-gradient(1200px 600px at 20% 10%, rgba(96,165,250,0.28), transparent 60%),
               radial-gradient(900px 500px at 80% 0%, rgba(139,92,246,0.18), transparent 55%),
               radial-gradient(700px 450px at 60% 80%, rgba(20,184,166,0.14), transparent 50%);
  --grad-cta: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(139,92,246,0.12));

  /* Links */
  --link: var(--brand-600);
  --link-hover: #1d4ed8;

  /* Buttons */
  --btn-primary-bg: var(--brand-600);
  --btn-primary-bg-hover: #1d4ed8;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(37,99,235,0.10);
  --btn-secondary-bg-hover: rgba(37,99,235,0.14);
  --btn-secondary-text: var(--text-900);

  /* Radius */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;

  /* Shadows (soft) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.10);

  /* Spacing scale (rem) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Container */
  --container: 1120px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;

  /* Focus */
  --focus-ring: 0 0 0 4px rgba(37,99,235,0.18);
}

/* ============================================
   2) Base Styles & Resets
   ============================================ */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-900);
  background: var(--bg-1);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4) 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--s-4) 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

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

/* ============================================
   3) Layout Utilities
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.hero-wash {
  background: var(--grad-hero);
}

.cta-wash {
  background: var(--grad-cta);
}

.section {
  padding: var(--s-16) 0;
}

.section-sm {
  padding: var(--s-12) 0;
}

.section-lg {
  padding: var(--s-20) 0;
}

/* ============================================
   4) Card Component
   ============================================ */
.card {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: var(--s-6);
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   5) Button Component
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--border-1);
}

.btn-secondary:hover {
  background: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-text);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   6) Header Component
   ============================================ */
.site-header {
  background: var(--bg-0);
  border-bottom: 1px solid var(--border-1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-900);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--brand-600);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav-links a {
  color: var(--text-700);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand-600);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav-cta a:not(.btn) {
  color: var(--text-700);
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  color: var(--text-900);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-0);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border-1);
    box-shadow: var(--shadow-md);
  }

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

  .nav-links a {
    padding: var(--s-4) var(--s-6);
    width: 100%;
    border-bottom: 1px solid var(--border-1);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    gap: var(--s-4);
  }

  .nav-cta a:not(.btn) {
    display: none;
  }
}

/* ============================================
   7) Footer Component
   ============================================ */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border-1);
  padding: var(--s-12) 0 var(--s-6) 0;
}

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

.footer-section h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-900);
  margin-bottom: var(--s-4);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-section a {
  color: var(--text-700);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--brand-600);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-1);
  padding-top: var(--s-6);
  text-align: center;
  color: var(--text-500);
  font-size: 0.875rem;
}

/* ============================================
   8) Hero Component
   ============================================ */
.hero {
  padding: var(--s-20) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--s-6);
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--text-700);
  margin-bottom: var(--s-8);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

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

.hero-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subhead {
    font-size: 1.125rem;
  }
}

/* ============================================
   9) Feature Cards Component
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-8);
}

.feature-card {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: var(--btn-secondary-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  color: var(--brand-600);
}

.feature-card h3 {
  margin-bottom: var(--s-3);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-700);
  margin-bottom: var(--s-4);
  line-height: 1.6;
}

.feature-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

/* ============================================
   10) Steps Component
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-8);
}

.step {
  position: relative;
  padding-top: var(--s-3);
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: var(--brand-600);
  color: var(--bg-0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.step-content {
  padding-left: 56px;
}

.step h3 {
  margin-bottom: var(--s-3);
  font-size: 1.25rem;
}

.step p {
  color: var(--text-700);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   11) CTA Banner Component
   ============================================ */
.cta-banner {
  background: var(--grad-cta);
  border-radius: var(--r-lg);
  padding: var(--s-12) var(--s-8);
  text-align: center;
  border: 1px solid var(--border-1);
}

.cta-banner h2 {
  margin-bottom: var(--s-4);
}

.cta-banner p {
  font-size: 1.125rem;
  color: var(--text-700);
  margin-bottom: var(--s-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   12) Pricing Cards Component
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-8);
  align-items: start;
}

.pricing-card {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: var(--bg-0);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: var(--s-6);
}

.pricing-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--s-3);
}

.pricing-card-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: var(--s-2);
}

.pricing-card-price-unit {
  font-size: 1rem;
  color: var(--text-500);
  font-weight: 400;
}

.pricing-card-ideal {
  color: var(--text-700);
  font-size: 0.9375rem;
}

.pricing-card-features {
  list-style: none;
  margin: var(--s-6) 0;
  padding: 0;
  flex-grow: 1;
}

.pricing-card-features li {
  padding: var(--s-3) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  color: var(--text-700);
}

.pricing-card-features li::before {
  content: "✓";
  color: var(--accent-teal-500);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card-cta {
  margin-top: auto;
}

.pricing-card-cta .btn {
  width: 100%;
}

/* ============================================
   13) Comparison Table Component
   ============================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--s-8) 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
}

.comparison-table thead {
  background: var(--bg-2);
}

.comparison-table th {
  padding: var(--s-4);
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-1);
}

.comparison-table th:first-child {
  border-top-left-radius: var(--r-md);
}

.comparison-table th:last-child {
  border-top-right-radius: var(--r-md);
}

.comparison-table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--border-1);
  color: var(--text-700);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-1);
}

.comparison-table .check {
  color: var(--accent-teal-500);
  font-weight: 700;
}

.comparison-table .times {
  color: var(--text-500);
}

/* ============================================
   14) FAQ Accordion Component
   ============================================ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--s-5) var(--s-6);
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  transition: background var(--dur-2) var(--ease);
}

.faq-question:hover {
  background: var(--bg-1);
}

.faq-question:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--dur-2) var(--ease);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 var(--s-6) var(--s-6) var(--s-6);
  color: var(--text-700);
  line-height: 1.6;
}

/* ============================================
   15) Use Case Cards Component
   ============================================ */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-8);
}

.use-case-card {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
  display: flex;
  flex-direction: column;
}

.use-case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.use-case-card-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-600);
  margin-bottom: var(--s-3);
}

.use-case-card h3 {
  margin-bottom: var(--s-4);
  font-size: 1.5rem;
}

.use-case-card-pain {
  color: var(--text-700);
  margin-bottom: var(--s-4);
  line-height: 1.6;
}

.use-case-card-outcome {
  color: var(--text-700);
  margin-bottom: var(--s-6);
  padding-left: var(--s-4);
  border-left: 3px solid var(--accent-teal-500);
  line-height: 1.6;
}

.use-case-card-link {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

/* ============================================
   16) Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-500);
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.mb-12 { margin-bottom: var(--s-12); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }

.max-w-prose {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   17) Form Elements
   ============================================ */
.form-group {
  margin-bottom: var(--s-5);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--text-900);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-900);
  background: var(--bg-0);
  transition: border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--focus-ring);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  display: block;
  margin-top: var(--s-2);
  font-size: 0.875rem;
  color: var(--text-500);
}

.form-error {
  display: block;
  margin-top: var(--s-2);
  font-size: 0.875rem;
  color: #dc2626;
}

/* ============================================
   18) Grid Utilities
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-6);
}

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

/* ============================================
   19) Alerts
   ============================================ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--r-md);
  margin-bottom: var(--s-6);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ============================================
   20) Contact Form
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--text-900);
  font-size: 0.9375rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-900);
  background: var(--bg-0);
  transition: border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--focus-ring);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .error-message {
  display: block;
  margin-top: var(--s-2);
  font-size: 0.875rem;
  color: #dc2626;
  font-weight: 500;
}

.contact-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[type="submit"] {
  margin-top: var(--s-4);
}

/* ============================================
   21) Anchor Navigation (Table of Contents)
   ============================================ */
.anchor-nav {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-12);
  position: sticky;
  top: calc(var(--s-16) + 60px);
  z-index: 10;
}

.anchor-nav-list {
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.anchor-nav a {
  color: var(--text-700);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-xs);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.anchor-nav a:hover {
  background: var(--bg-2);
  color: var(--brand-600);
  text-decoration: none;
}

@media (max-width: 768px) {
  .anchor-nav {
    position: static;
  }

  .anchor-nav-list {
    gap: var(--s-3);
  }

  .anchor-nav a {
    font-size: 0.875rem;
    padding: var(--s-1) var(--s-2);
  }
}

/* ============================================
   22) Legal Pages
   ============================================ */
.legal h2 {
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  scroll-margin-top: 100px;
}

.legal h3 {
  margin-top: var(--s-6);
  font-size: 1.25rem;
}

/* ============================================
   23) Responsive Typography
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .section {
    padding: var(--s-12) 0;
  }

  .section-lg {
    padding: var(--s-16) 0;
  }
}
