/* ===========================
   Reorderly — Landing Page CSS
   =========================== */

/* Variables */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --primary-xlight: #f0fdfa;
  --accent: #0f172a;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border: #e2e8f0;
  --success: #0d9488;
  --error: #ef4444;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --max-w: 1120px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

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

ul { list-style: none; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(13,148,136,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(13,148,136,0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ===========================
   Nav
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-logo-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links li a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-links li a:hover {
  color: var(--text);
  background: var(--bg-secondary);
  text-decoration: none;
}

.nav-signin {
  color: var(--text) !important;
}

.nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 14px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: 96px 0;
}

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

.section-heading {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 96px;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 60%, #f0f7ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(13,148,136,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-sm {
  padding: calc(var(--nav-h) + 48px) 0 64px;
}

.hero-seo {
  padding: calc(var(--nav-h) + 64px) 0 80px;
}

.hero-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.1px;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-trust {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===========================
   Pain / Problem Cards
   =========================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pain-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}

.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.pain-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   Steps
   =========================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: steps;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   Feature Grid
   =========================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   Comparison Table
   =========================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  font-size: 15px;
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-bottom: 2px solid var(--border);
}

.comparison-table .col-reorderly {
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.04);
}

.comparison-table th.col-reorderly {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.comparison-table tbody tr:nth-child(even) td:not(.col-reorderly) {
  background: var(--bg-secondary);
}
.comparison-table tbody tr:nth-child(even) td.col-reorderly {
  background: rgba(37, 99, 235, 0.06);
}

.check {
  color: var(--success);
  font-weight: 700;
  font-size: 17px;
}

.cross {
  color: var(--error);
  font-weight: 700;
  font-size: 17px;
}

/* ===========================
   FAQ
   =========================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] {
  border-color: var(--primary-light);
}
.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-question:hover { color: var(--primary); }

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-answer p + p { margin-top: 10px; }

/* ===========================
   Waitlist / CTA
   =========================== */
.section-cta {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #0ea5e9 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

.waitlist-form { width: 100%; }

.waitlist-input-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 12px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  border: none;
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.waitlist-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.waitlist-input::placeholder { color: var(--text-light); }

.waitlist-msg {
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  text-align: center;
  margin-top: 8px;
}
.waitlist-msg.success { color: #a7f3d0; }
.waitlist-msg.error { color: #fca5a5; }

.social-proof {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-top: 20px;
  font-weight: 500;
}

/* ===========================
   Prose Sections (SEO pages)
   =========================== */
.prose-section {
  max-width: 760px;
  margin: 0 auto;
}

.prose-section h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.prose-section h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.prose-section p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose-section ul li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ===========================
   Pricing
   =========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.1), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.pricing-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.pricing-features .check {
  flex-shrink: 0;
  font-size: 14px;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: var(--primary-light);
  border-radius: var(--radius);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-note p {
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}
.footer-logo:hover { color: #fff; text-decoration: none; }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: 28px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav.open .nav-links li a {
    padding: 10px 12px;
    font-size: 16px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-headline {
    letter-spacing: -1px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn { width: 100%; max-width: 320px; }

  .waitlist-input-row {
    flex-direction: column;
  }
  .waitlist-input-row .btn { width: 100%; }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   TOOLS PAGES
   ============================================= */

.tool-page { min-height: 100vh; }

.tool-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.tool-breadcrumb {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.tool-breadcrumb:hover { color: var(--primary); }

.tool-header h1 { font-size: 2rem; margin: 0.5rem 0; }

.tool-subtitle { color: var(--text-muted); font-size: 1.1rem; margin: 0.5rem 0 1rem; }

.tool-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-free { background: #dcfce7; color: #166534; }
.badge-no-signup { background: #ccfbf1; color: #0f766e; }

.tool-body { padding: 2.5rem 0; }

.tool-container { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 800px; }

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.tool-form-section h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.4rem; }
.form-group input, .form-group select {
  width: 100%; padding: 0.6rem 0.75rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.form-hint a { color: var(--primary); }

.formula-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: #0369a1;
}

/* Tool Results */
.tool-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tool-result h3 { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; }

.result-big {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.result-red { color: #dc2626; }

.result-label { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

.result-breakdown {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row.total { background: var(--bg-secondary); font-weight: 600; }

.status-alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.status-critical { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.status-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.status-ok-text { color: #16a34a; }
.status-critical-text { color: #dc2626; }

.insight-box {
  margin-top: 1.5rem;
  background: #f8faff;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.insight-box strong { display: block; margin-bottom: 0.5rem; }

.result-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }
.result-note a { color: var(--primary); }

/* Email Preview */
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.result-header h3 { margin: 0; }
.email-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.875rem;
}
.email-field { margin-bottom: 0.75rem; }
.email-divider { height: 1px; background: var(--border); margin: 0.75rem 0; }
.email-body { white-space: pre-wrap; font-family: monospace; font-size: 0.8rem; line-height: 1.6; }

/* Tool CTA Box */
.tool-cta-box {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: 12px;
  padding: 1.75rem 2rem;
}
.tool-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.tool-cta-text { color: #fff; }
.tool-cta-text strong { display: block; font-size: 1.1rem; margin-bottom: 0.4rem; }
.tool-cta-text p { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.tool-cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
  white-space: nowrap;
}
.tool-cta-box .btn-primary:hover { background: #f0f4ff; }

/* Other Tools Grid */
.other-tools h3 { font-size: 1rem; margin-bottom: 1rem; }
.tools-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.tool-mini-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s;
}
.tool-mini-card:hover { border-color: var(--primary); color: var(--primary); background: #f0f4ff; }
.tool-mini-icon { font-size: 1rem; }
.tool-mini-name { font-size: 0.78rem; line-height: 1.3; }

/* Tool FAQ */
.tool-faq { padding: 3rem 0; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.tool-faq h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.tool-faq .faq-list { max-width: 700px; }

/* Tools Index Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card-link { text-decoration: none; color: inherit; }
.tool-index-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.15s;
}
.tool-index-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13,148,136,0.1);
}
.tool-index-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tool-index-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.tool-index-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1rem; }
.tool-link-label { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* SKU rows for days of supply */
.sku-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 768px) { .sku-grid { grid-template-columns: 1fr 1fr; } }

.dos-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dos-table th { text-align: left; padding: 0.6rem 0.75rem; background: var(--bg-secondary); border-bottom: 2px solid var(--border); font-weight: 600; }
.dos-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.dos-table .row-critical { background: #fef2f2; }

/* Tabs */
.tab-row { display: flex; gap: 0.5rem; border-bottom: 2px solid var(--border); margin-bottom: 0; }
.tab-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--primary); }

/* Quiz */
.quiz-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 0.5rem; }
.quiz-progress-bar { height: 4px; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.quiz-question h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.quiz-option:hover { border-color: var(--primary); background: #f0f4ff; }
.quiz-option input { margin-top: 2px; flex-shrink: 0; }

.score-display { display: flex; align-items: baseline; gap: 0.25rem; margin: 0.5rem 0; }
.big-score { font-size: 5rem; font-weight: 800; line-height: 1; }
.score-out-of { font-size: 1.5rem; color: var(--text-muted); }
.grade-good { color: #16a34a; }
.grade-medium { color: #ca8a04; }
.grade-low { color: #ea580c; }
.grade-bad { color: #dc2626; }
.grade-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.recs-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.8;
}
.recs-box a { color: var(--primary); }

/* Supplier Tracker */
.supplier-block {}
.actual-times-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.score-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.score-name { font-weight: 600; margin-bottom: 0.75rem; font-size: 0.95rem; }
.score-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
  margin: 0 auto 0.5rem;
}
.score-good { background: #dcfce7; color: #166534; }
.score-medium { background: #fef9c3; color: #854d0e; }
.score-bad { background: #fee2e2; color: #991b1b; }
.score-label { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.75rem; }
.score-stats { text-align: left; font-size: 0.8rem; }
.score-stats div { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.score-rec { margin-top: 0.75rem; font-size: 0.78rem; color: var(--text-muted); text-align: left; }

/* Checklist */
.alert-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #78350f;
}
.checklist-section h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.checklist-group { margin-bottom: 1.75rem; }
.checklist-group h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1.5;
}
.checklist-item input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.progress-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; margin: 1rem 0 0.5rem; }
.progress-bar { height: 8px; background: var(--success); border-radius: 4px; transition: width 0.3s; }
.info-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 0.9rem;
}
.info-box h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.info-box p { color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; }

/* Share prompt */
.share-prompt {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: #f0f4ff;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--primary);
}


/* =============================================
   BRAND REFRESH — Teal system + Hero split
   ============================================= */

/* Nav logo refresh */
.nav-logo-icon {
  font-size: 1.4rem;
  color: var(--primary);
  margin-right: 0.25rem;
  line-height: 1;
}
.nav-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 5rem;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; padding: 4rem 0 3rem; }
  .hero-product { display: none; }
}

.hero-copy { max-width: 560px; }

/* Badge with live dot */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 100px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Hero headline */
.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

/* Proof row */
.hero-proof-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hero-proof-stat { text-align: center; }
.hero-proof-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.hero-proof-stat span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; display: block; }
.hero-proof-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* Product mock */
.hero-product { position: relative; }

.product-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }
.mock-title { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); flex: 1; text-align: center; }

.mock-body { padding: 1.25rem; }

.mock-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.mock-stat {
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}
.mock-stat-red { background: #fef2f2; }
.mock-stat-yellow { background: #fffbeb; }
.mock-stat-green { background: #f0fdf4; }
.mock-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.mock-stat-red .mock-stat-num { color: #dc2626; }
.mock-stat-yellow .mock-stat-num { color: #d97706; }
.mock-stat-green .mock-stat-num { color: #16a34a; }
.mock-stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

.mock-table { margin-bottom: 1rem; }
.mock-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}
.mock-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
  font-size: 0.78rem;
  align-items: center;
  border-radius: 6px;
  transition: background 0.1s;
}
.mock-table-row:hover { background: var(--bg-secondary); }
.mock-row-muted { opacity: 0.65; }
.mock-sku { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.mock-badge-red { background: #fef2f2; color: #991b1b; }
.mock-badge-yellow { background: #fffbeb; color: #92400e; }
.mock-badge-green { background: #f0fdf4; color: #166534; }

.mock-po-sent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--primary-xlight);
  border: 1px solid var(--primary-light);
  border-radius: 10px;
  font-size: 0.78rem;
}
.mock-po-icon { font-size: 1.1rem; }
.mock-po-text strong { display: block; font-weight: 600; color: var(--primary-dark); }
.mock-po-text span { color: var(--text-muted); font-size: 0.72rem; }
.mock-po-check { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 1rem; }

/* Section label (eyebrow) */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Pain numbers */
.pain-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.pain-num.urgent { color: #dc2626; }

/* Tool CTA box — teal gradient */
.tool-cta-box {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}


/* =============================================
   TESTIMONIALS
   ============================================= */

.section-testimonials { background: var(--bg-secondary); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-featured { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; display: grid; gap: 2rem; }
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-featured {
  border-color: var(--primary);
  border-width: 2px;
  background: linear-gradient(to bottom right, #fff 0%, var(--primary-xlight) 100%);
}
.testimonial-featured::before {
  content: 'Most impactful';
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  quotes: "\201C""\201D";
}
.testimonial-card blockquote::before {
  content: open-quote;
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.6rem;
  color: var(--primary);
  font-style: normal;
  margin-right: 0.15rem;
  opacity: 0.4;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}
.testimonial-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-result {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

.testimonials-disclaimer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.testimonials-disclaimer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
}

/* ========================================
   ICP QUALIFIER SECTION
   ======================================== */

.section-icp {
  background: var(--bg-secondary);
}

.icp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}

.icp-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.icp-check strong {
  color: var(--text);
}

.icp-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--primary-xlight);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 1px;
}

.icp-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ========================================
   ARTICLE / CONTENT PAGES
   ======================================== */

.article-page {
  background: var(--bg);
}

.article-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.article-header-inner {
  max-width: 860px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.article-tag {
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 100px;
  padding: 0.2rem 0.625rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.article-date,
.article-read {
  color: var(--text-muted);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.article-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

.article-body {
  padding: 3rem 0 4rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
}

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

/* Table of Contents */
.article-toc {
  position: sticky;
  top: 5rem;
}

.toc-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.toc-inner strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.toc-inner nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.toc-inner nav a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.625rem;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.toc-inner nav a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

@media (max-width: 768px) {
  .article-toc {
    position: static;
  }
  .toc-inner {
    display: none;
  }
}

/* Article Content */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}

.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Formula block */
.article-formula {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--text);
}

.article-formula .formula-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Table */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.article-table th {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.625rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.article-table td {
  border: 1px solid var(--border);
  padding: 0.625rem 1rem;
  color: var(--text-muted);
}

.article-table tr:nth-child(even) td {
  background: var(--bg);
}

/* Callout */
.article-callout {
  background: var(--primary-xlight);
  border: 1px solid var(--primary-light);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.article-callout p {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.article-callout strong {
  color: var(--primary-dark);
}

/* Bottom CTA */
.article-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-cta-inner {
  background: linear-gradient(135deg, var(--primary-xlight) 0%, #f0fdfb 100%);
  border: 1px solid var(--primary-light);
  border-radius: 14px;
  padding: 2rem;
}

.article-cta-inner strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.article-cta-inner p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Resources index page */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
}

.resource-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.resource-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.resource-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

