/* ==========================================================================
   Dead Simple Email — Marketing Site Styles
   ========================================================================== */

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

:root {
  /* Brand */
  --brand-600: #4f46e5;
  --brand-500: #6366f1;
  --brand-400: #818cf8;
  --brand-bg: #eef2ff;

  /* Backward compat aliases */
  --primary: var(--brand-600);
  --primary-dark: var(--brand-600);
  --primary-light: var(--brand-400);
  --primary-bg: var(--brand-bg);

  /* Accent colors */
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --rose-500: #f43f5e;
  --accent: #06b6d4;
  --accent-dark: #0891b2;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Warm neutrals (stone) */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  /* Backward compat: --slate-* → --stone-* */
  --slate-50: var(--stone-50);
  --slate-100: var(--stone-100);
  --slate-200: var(--stone-200);
  --slate-300: var(--stone-300);
  --slate-400: var(--stone-400);
  --slate-500: var(--stone-500);
  --slate-600: var(--stone-600);
  --slate-700: var(--stone-700);
  --slate-800: var(--stone-800);
  --slate-900: var(--stone-900);
  --slate-950: var(--stone-950);

  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;

  /* Spacing */
  --nav-h: 64px;
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --section-py: 96px;
  --section-py-sm: 64px;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 150ms;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--stone-700);
  background: var(--stone-50);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--stone-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

.container--narrow {
  max-width: var(--max-w-narrow);
}

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

.section--gray {
  border-top: 1px solid var(--stone-200);
}

.section--dark {
  background: var(--slate-900);
  color: var(--slate-300);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--primary {
  background: var(--primary);
  color: rgba(255,255,255,.9);
}

.section--primary h2,
.section--primary h3 {
  color: var(--white);
}

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

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(250,250,249,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--stone-200);
  z-index: 1000;
  transition: box-shadow var(--duration) var(--ease);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav__logo:hover { color: var(--slate-900); }

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--stone-900);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--stone-600);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--duration) var(--ease);
}

.nav__links a:hover {
  color: var(--slate-900);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--slate-700);
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 8px;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  display: block;
  padding: 12px 16px;
  color: var(--slate-700);
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}

.nav__mobile a:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn--secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn--ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn--dark {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.btn--dark:hover {
  background: var(--slate-800);
  border-color: var(--slate-800);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--slate-50);
  color: var(--primary-dark);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn--icon {
  padding: 10px;
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 var(--section-py);
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title span {
  color: var(--brand-600);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--stone-500);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__code {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-h) + 48px) 0 var(--section-py-sm); }
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { font-size: 1.0625rem; }
  .hero__actions { flex-direction: column; }
}

/* ---------- Code Blocks ---------- */
.code-block {
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-800);
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--slate-800);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.code-block__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--slate-600);
}

.code-block__dot--red { background: #ef4444; }
.code-block__dot--yellow { background: #f59e0b; }
.code-block__dot--green { background: #10b981; }

.code-block__title {
  margin-left: 8px;
  font-size: 0.8125rem;
  color: var(--slate-400);
  font-family: var(--font-mono);
}

.code-block__body {
  padding: 20px 24px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-300);
}

.code-block .kw { color: #c084fc; }
.code-block .fn { color: #60a5fa; }
.code-block .str { color: #34d399; }
.code-block .cm { color: var(--slate-500); font-style: italic; }
.code-block .op { color: #f472b6; }
.code-block .num { color: #fbbf24; }
.code-block .var { color: #e2e8f0; }
.code-block .res { color: var(--slate-400); }

/* ---------- Feature Cards ---------- */
.feature-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--stone-300);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 24px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header__title {
  margin-bottom: 16px;
}

.section-header__desc {
  color: var(--slate-500);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--stone-900);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__desc {
  color: var(--slate-500);
  font-size: 0.9375rem;
}

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

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

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

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

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card--popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.pricing-card__desc {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.pricing-card__features li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

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

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.comparison-table thead th {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--slate-50);
}

.comparison-table tbody td {
  color: var(--slate-600);
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--slate-800);
}

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

.comparison-table .cross {
  color: var(--slate-300);
}

@media (max-width: 768px) {
  .comparison-table { font-size: 0.8125rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-xl);
  background: var(--stone-900);
  border: 1px solid var(--stone-800);
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ---------- Email Signup Form ---------- */
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.signup-form__input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.15);
  color: var(--white);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.signup-form__input::placeholder {
  color: rgba(255,255,255,.6);
}

.signup-form__input:focus {
  border-color: rgba(255,255,255,.7);
}

.signup-form--dark .signup-form__input {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.signup-form--dark .signup-form__input::placeholder {
  color: var(--slate-400);
}

.signup-form--dark .signup-form__input:focus {
  border-color: var(--primary);
}

.signup-form__success {
  display: none;
  text-align: center;
  font-weight: 600;
  font-size: 1.0625rem;
}

.signup-form__success.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .signup-form { flex-direction: column; }
}

/* ---------- Stats Row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 500;
}

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

/* ---------- Logo Cloud ---------- */
.logo-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(1);
  padding: 32px 0;
}

.logo-cloud__item {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: -0.01em;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial__quote {
  font-size: 1.0625rem;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial__name {
  font-weight: 600;
  color: var(--slate-900);
  font-size: 0.9375rem;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

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

.blog-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: var(--stone-300);
  box-shadow: var(--shadow-md);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 2rem;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 24px;
}

.blog-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card__excerpt {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card__meta {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

/* ---------- Blog Article ---------- */
.article {
  padding: calc(var(--nav-h) + 48px) 0 var(--section-py);
}

.article__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.article__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 16px;
}

.article__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.article__meta {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.article__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-700);
}

.article__body h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
}

.article__body h3 {
  font-size: 1.375rem;
  margin: 36px 0 12px;
}

.article__body p {
  margin-bottom: 1.5rem;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article__body li {
  margin-bottom: 8px;
}

.article__body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--slate-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--slate-600);
  font-style: italic;
}

.article__body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-dark);
}

.article__body pre {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.article__body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

@media (max-width: 768px) {
  .article__title { font-size: 1.75rem; }
  .article__body { font-size: 1rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--slate-500);
  transition: color var(--duration) var(--ease);
}

.footer__social a:hover {
  color: var(--white);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-300);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--slate-400);
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: var(--slate-500);
}

.footer__bottom a:hover {
  color: var(--slate-300);
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- Legal Pages ---------- */
.legal {
  padding: calc(var(--nav-h) + 48px) 0 var(--section-py);
}

.legal__body {
  max-width: 720px;
  margin: 0 auto;
}

.legal__body h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--slate-500);
  font-size: 0.9375rem;
  margin-bottom: 48px;
}

.legal__body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.legal__body h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.legal__body p,
.legal__body ul,
.legal__body ol {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.5rem;
}

.legal__body li {
  margin-bottom: 6px;
}

.legal__body a {
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--slate-200);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-900);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--duration) var(--ease);
}

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

.faq__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  transition: transform var(--duration) var(--ease);
  color: var(--slate-400);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease);
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding-bottom: 20px;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(var(--nav-h) + 64px) 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--stone-200);
}

.page-header__title {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.page-header__desc {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-header { padding: calc(var(--nav-h) + 40px) 0 32px; }
  .page-header__title { font-size: 2rem; }
}

/* ---------- Error Page ---------- */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}

.error-page__code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--slate-200);
  line-height: 1;
  letter-spacing: -0.05em;
}

.error-page__title {
  font-size: 1.5rem;
  margin: 16px 0 8px;
}

.error-page__desc {
  color: var(--slate-500);
  margin-bottom: 32px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Comparison Banner ---------- */
.vs-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
}

.vs-banner__side {
  text-align: center;
}

.vs-banner__label {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.vs-banner__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
}

.vs-banner__detail {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 4px;
}

.vs-banner__vs {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-300);
}

.vs-banner__side--winner .vs-banner__price {
  color: var(--success);
}

@media (max-width: 640px) {
  .vs-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
}

/* ---------- Inline code in features ---------- */
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-dark);
}

/* ---------- Waitlist specific ---------- */
.waitlist-hero {
  padding: calc(var(--nav-h) + 80px) 0 48px;
  text-align: center;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.social-proof__avatars {
  display: flex;
}

.social-proof__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 2px solid var(--white);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.social-proof__avatar:first-child {
  margin-left: 0;
}

/* ---------- About Page ---------- */
.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.about-value {
  padding: 32px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}

.about-value__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-value__desc {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Docs Page ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.docs-card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.docs-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.docs-card__icon {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 40px;
  height: 40px;
  background: var(--brand-bg);
  color: var(--brand-600);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.docs-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.docs-card__desc {
  font-size: 0.875rem;
  color: var(--stone-500);
}

/* ---------- Site Frame ---------- */
.site-frame {
  max-width: var(--max-w);
  margin: 0 auto;
  border-left: 1px solid var(--stone-200);
  border-right: 1px solid var(--stone-200);
  background: var(--white);
}

@media (max-width: 768px) {
  .site-frame { border-left: none; border-right: none; }
}

/* ---------- Section Label Color Variants ---------- */
.section-header__label--teal { color: var(--teal-600); }
.section-header__label--amber { color: var(--amber-500); }
.section-header__label--rose { color: var(--rose-500); }

/* ---------- Feature Card Accent Borders ---------- */
.feature-card--accent-amber { border-left: 3px solid var(--amber-500); }
.feature-card--accent-teal { border-left: 3px solid var(--teal-500); }
.feature-card--accent-rose { border-left: 3px solid var(--rose-500); }
.feature-card--accent-brand { border-left: 3px solid var(--brand-600); }

/* ---------- Cost Callout ---------- */
.cost-callout {
  background: var(--stone-900);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--white);
  border: 1px solid var(--stone-800);
}

.cost-callout__versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.cost-callout__side {
  text-align: center;
}

.cost-callout__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-400);
  margin-bottom: 8px;
}

.cost-callout__price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.cost-callout__price--bad { color: var(--rose-500); }
.cost-callout__price--good { color: var(--teal-500); }

.cost-callout__detail {
  font-size: 0.875rem;
  color: var(--stone-400);
  margin-top: 4px;
}

.cost-callout__vs {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stone-500);
}

@media (max-width: 640px) {
  .cost-callout__versus {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cost-callout { padding: 32px 24px; }
}

/* ---------- Section Border Top ---------- */
.section--border-top {
  border-top: 1px solid var(--stone-200);
}
