/* ============================================================
   The Commons — Shared Design System
   Infrastructure aesthetic: clean, geometric, generous whitespace
   ============================================================ */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #1a1a1a;
  --color-text-muted: #404040;
  --color-accent: #2563eb;
  --color-accent-light: #1d4ed8;
  --color-accent-hover: #1e40af;
  --color-border: #1a1a1a;
  --color-border-light: #d4d4d4;
  --color-green: #15803d;
  --color-green-bg: #f0fdf4;
  --color-green-border: #bbf7d0;
  --color-highlight: #dbeafe;
  --color-highlight-border: #93c5fd;
  --color-dark: #000000;
  --color-dark-surface: #111111;
  --color-dark-text: #fafaf9;
  --color-dark-text-secondary: #d6d3d1;
  --color-red: #dc2626;
  --color-red-bg: #fef2f2;

  /* Typography */
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 680px;
  --max-width-wide: 1280px;
  --nav-height: 64px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card: none;
  --shadow-card-hover: none;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-light);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2xl) 0;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* ============================================================
   2. Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

.section-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  line-height: var(--leading-relaxed);
}

/* ============================================================
   3. Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

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

/* ============================================================
   4. Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo:hover {
  color: var(--color-text);
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link:hover,
.nav-link--active {
  color: var(--color-text);
}
.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

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

.nav-sign-in {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-sign-in:hover {
  color: var(--color-text);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile-menu.active {
  display: flex;
}

.nav-mobile-menu a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
}

/* ============================================================
   5. Footer
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark-text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-dark-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-dark-text);
}

.footer-col .badge--coming-soon {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-dark-surface);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  margin-left: var(--space-xs);
  vertical-align: middle;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-3xl) auto 0;
  padding: var(--space-xl) var(--space-xl) 0;
  border-top: 1px solid var(--color-dark-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-legal-links a:hover {
  color: var(--color-dark-text-secondary);
}

/* ============================================================
   6. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-dark-text);
  border: 1px solid var(--color-dark);
}
.btn-primary:hover {
  background: #222222;
  color: var(--color-dark-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-card {
  background: var(--color-accent);
  color: var(--color-surface);
  border: 1px solid var(--color-accent);
}
.btn-card:hover {
  background: var(--color-accent-hover);
  color: var(--color-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
  background: rgba(12, 74, 110, 0.05);
  color: var(--color-accent);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
  border-radius: var(--border-radius-lg);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
}

.btn-white {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-surface);
}
.btn-white:hover {
  background: var(--color-bg);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white-outline {
  background: transparent;
  color: var(--color-dark-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-dark-text);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================================
   7. Hero Sections
   ============================================================ */
.hero {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.hero-lg {
  padding: 6rem 0 var(--space-5xl);
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.hero p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.hero .btn-group {
  justify-content: center;
}

.hero-dark {
  background: var(--color-dark);
  color: var(--color-dark-text);
}
.hero-dark h1,
.hero-dark h2 {
  color: var(--color-dark-text);
}
.hero-dark p {
  color: var(--color-dark-text-secondary);
}

/* ============================================================
   8. Sections
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-5xl) 0;
}

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

.section-gray {
  background: var(--color-bg);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-dark-text);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-dark-text);
}
.section-dark p {
  color: var(--color-dark-text-secondary);
}

.section-accent {
  background: var(--color-accent);
  color: var(--color-dark-text);
}
.section-accent h2,
.section-accent h3 {
  color: var(--color-dark-text);
}
.section-accent p {
  color: rgba(255, 255, 255, 0.8);
}

.section-green {
  background: var(--color-green-bg);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-heading h2 {
  margin-bottom: var(--space-md);
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-lg) auto;
  border-radius: 1px;
}

/* ============================================================
   9. Card Grids
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

/* ============================================================
   10. Product Cards
   ============================================================ */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card .tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: var(--space-lg);
}

.badge--live {
  background: var(--color-green-bg);
  color: var(--color-green);
  border: 1px solid var(--color-green-border);
}

.badge--coming-soon {
  background: var(--color-highlight);
  color: #92400e;
  border: 1px solid var(--color-highlight-border);
}

.badge--beta {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.product-card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.product-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.product-card .price {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.product-card .price .old {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card .price-main {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-green);
}

.product-card .price-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

/* ============================================================
   11. Value Prop Cards
   ============================================================ */
.value-card {
  padding: var(--space-xl);
}

.value-card-icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.value-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.value-card-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   12. CTA Sections
   ============================================================ */
.cta-section {
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-dark-text);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--color-dark-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.cta-section .btn-group {
  justify-content: center;
}

/* ============================================================
   13. Trust Bar
   ============================================================ */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.trust-bar-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-green);
  flex-shrink: 0;
}

/* ============================================================
   14. Feature Lists (Checkmark)
   ============================================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.feature-list-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-green);
  margin-top: 1px;
}

.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* ============================================================
   15. Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: var(--color-surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

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

.table tr:hover td {
  background: var(--color-bg);
}

.table-highlight {
  background: var(--color-green-bg);
  font-weight: var(--weight-semibold);
  color: var(--color-green);
}

.table-strikethrough {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* ============================================================
   16. Pipeline / Steps
   ============================================================ */
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pipeline-step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  position: relative;
  z-index: 1;
}

/* Connecting line between steps */
.pipeline-step:not(:last-child) .step-number::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + var(--space-xl));
  background: var(--color-border);
  z-index: 0;
}

.step-content {
  flex: 1;
  padding-top: var(--space-xs);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Horizontal steps (pipeline) */
.pipeline {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-md) 0;
}

.pipeline-h-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}

.pipeline-h-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -10px;
  width: 20px;
  height: 2px;
  background: var(--color-border);
}

.pipeline-h-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-md);
}

.pipeline-h-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.pipeline-h-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   17. Two-Column Layout
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.two-col-reverse {
  direction: rtl;
}
.two-col-reverse > * {
  direction: ltr;
}

.two-col-text h2 {
  margin-bottom: var(--space-md);
}

.two-col-text p {
  margin-bottom: var(--space-xl);
}

.two-col-media {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   18. Contrasting / Dark Teaser Sections
   ============================================================ */
.teaser {
  background: var(--color-dark);
  color: var(--color-dark-text);
  border-radius: var(--border-radius-xl);
  padding: var(--space-3xl);
  margin: var(--space-xl) 0;
}

.teaser h2,
.teaser h3 {
  color: var(--color-dark-text);
}

.teaser p {
  color: var(--color-dark-text-secondary);
}

.teaser--accent {
  background: var(--color-accent);
}

.teaser--bordered {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.teaser--bordered h2,
.teaser--bordered h3 {
  color: var(--color-text);
}
.teaser--bordered p {
  color: var(--color-text-secondary);
}

/* ============================================================
   19. Mini Cards
   ============================================================ */
.mini-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.mini-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.mini-card-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.mini-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.mini-card-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   20. Coming Soon Grid
   ============================================================ */
.coming-soon-card {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  opacity: 0.85;
  transition: opacity var(--transition-base), border-color var(--transition-base);
}
.coming-soon-card:hover {
  opacity: 1;
  border-color: var(--color-accent);
}

.coming-soon-card-icon {
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-md);
}

.coming-soon-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.coming-soon-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   21. Utility Classes
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ============================================================
   22. Responsive Breakpoints
   ============================================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-lg {
    padding: var(--space-4xl) 0;
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero-lg {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  /* Nav goes mobile */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Grids collapse */
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  /* Two-col stacks */
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .two-col-reverse {
    direction: ltr;
  }

  /* Footer to 2 columns */
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Feature list grid to single col */
  .feature-list-grid {
    grid-template-columns: 1fr;
  }

  /* Trust bar wraps */
  .trust-bar {
    gap: var(--space-lg);
  }

  /* Pipeline stacks */
  .pipeline {
    flex-direction: column;
  }

  .pipeline-h-step:not(:last-child)::after {
    display: none;
  }

  /* Steps line adjustment */
  .pipeline-step:not(:last-child) .step-number::after {
    height: calc(100%);
  }

  /* Teaser */
  .teaser {
    padding: var(--space-2xl);
  }
}

/* Phone (480px) */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .trust-bar {
    flex-direction: column;
    gap: var(--space-md);
  }

  .product-card {
    padding: var(--space-xl);
  }

  .cta-section {
    padding: var(--space-3xl) 0;
  }

  .teaser {
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
  }

  .table th,
  .table td {
    padding: var(--space-sm) var(--space-md);
  }

  .pipeline-step {
    gap: var(--space-md);
  }
}

/* ============================================================
   23. Print Styles
   ============================================================ */
@media print {
  .nav,
  .footer,
  .nav-mobile-menu,
  .btn-group {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .section {
    padding: 1rem 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================================
   24. Missing Classes - HTML-to-CSS alignment
   ============================================================ */

/* Hero actions (button row inside hero) */
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* Hero subtitle */
.hero .subtitle,
.subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-relaxed);
}

/* Section heading and title */
.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-md);
  text-align: center;
}

/* Section CTA variation */
.section-cta {
  text-align: center;
  padding: var(--space-3xl) 0;
}

/* CTA box (contained CTA block) */
.cta-box {
  background: var(--color-dark);
  color: var(--color-dark-text);
  border-radius: var(--border-radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  margin: var(--space-xl) auto;
}
.cta-box h2 {
  color: var(--color-dark-text);
  margin-bottom: var(--space-md);
}
.cta-box p {
  color: var(--color-dark-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}
.cta-box .btn-group,
.cta-box .hero-actions {
  justify-content: center;
}

/* Footer inner wrapper */
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Footer legal row */
.footer-legal {
  max-width: var(--max-width);
  margin: var(--space-3xl) auto 0;
  padding: var(--space-xl) var(--space-xl) 0;
  border-top: 1px solid var(--color-dark-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Product card: tag badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: var(--space-lg);
}

.tag-available {
  background: var(--color-green-bg);
  color: var(--color-green);
  border: 1px solid var(--color-green-border);
}

.tag-soon {
  background: var(--color-highlight);
  color: #92400e;
  border: 1px solid var(--color-highlight-border);
}

/* Product card: price display */
.price {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price .old {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price-main {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-green);
}

.price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Generic card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Product sub-sections */
.product-detail {
  padding: var(--space-xl) 0;
}

.product-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.product-pricing {
  margin-bottom: var(--space-xl);
}

.product-comparison {
  margin-top: var(--space-2xl);
}

/* Trust separator */
.trust-sep {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

/* Principle blocks (about page) */
.principle {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
}

/* Divider line */
.divider-line {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

/* Form elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  background: var(--color-surface);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.1);
}

.form-row {
  display: flex;
  gap: var(--space-lg);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.apply-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Ecosystem diagram (build page) */
.ecosystem-diagram {
  max-width: 500px;
  margin: var(--space-2xl) auto;
  position: relative;
}

.ecosystem-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.ecosystem-text {
  text-align: center;
  margin-top: var(--space-xl);
}

.diagram-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  position: relative;
  margin: 0 auto;
}

.diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: var(--weight-semibold);
}

.diagram-node {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.diagram-node-top { top: -16px; left: 50%; transform: translateX(-50%); }
.diagram-node-bottom { bottom: -16px; left: 50%; transform: translateX(-50%); }
.diagram-node-left { left: -40px; top: 50%; transform: translateY(-50%); }
.diagram-node-right { right: -40px; top: 50%; transform: translateY(-50%); }

.diagram-lines {
  position: absolute;
  inset: 0;
}

/* Login / Signup pages */
.login-container,
.signup-container {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-2xl);
}

.login-card,
.signup-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-header,
.signup-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.login-footer,
.signup-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-dark);
  color: var(--color-dark-text);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--transition-base);
}

.submit-btn:hover {
  background: #292524;
}

.sso-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.sso-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}

.sso-btn:hover {
  background: var(--color-bg);
  border-color: var(--color-text-muted);
}

.terms {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

.error-msg {
  color: var(--color-red);
  background: var(--color-red-bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.success-msg {
  color: var(--color-green);
  background: var(--color-green-bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

/* Dashboard elements */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.greeting {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xl);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-user-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.nav-user-email {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.account-info {
  margin-bottom: var(--space-2xl);
}

.info-row {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.info-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 120px;
}

.info-value {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.logout-btn {
  background: transparent;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}

.logout-btn:hover {
  background: var(--color-red-bg);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive additions for new classes */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .form-row,
  .form-row-2 {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-inner {
    padding: 0 var(--space-lg);
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .diagram-ring {
    width: 220px;
    height: 220px;
  }
}

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

  .login-card,
  .signup-card {
    padding: var(--space-xl);
  }
}

/* ============================================================
   Fix: Reset text color for cards inside dark sections/teasers
   ============================================================ */
.section-dark .mini-card,
.section-dark .product-card,
.section-dark .coming-soon-card,
.section-dark .card,
.section-dark .value-card,
.teaser .mini-card,
.teaser .product-card,
.teaser .coming-soon-card,
.teaser .card,
.teaser .value-card {
  color: var(--color-text);
}

.section-dark .mini-card h3,
.section-dark .product-card h3,
.section-dark .coming-soon-card h3,
.section-dark .card h3,
.section-dark .value-card h3,
.teaser .mini-card h3,
.teaser .product-card h3,
.teaser .coming-soon-card h3,
.teaser .card h3,
.teaser .value-card h3 {
  color: var(--color-text);
}

.section-dark .mini-card p,
.section-dark .product-card p,
.section-dark .coming-soon-card p,
.section-dark .card p,
.section-dark .value-card p,
.section-dark .mini-card-body,
.section-dark .mini-card-title,
.teaser .mini-card p,
.teaser .product-card p,
.teaser .coming-soon-card p,
.teaser .card p,
.teaser .value-card p,
.teaser .mini-card-body,
.teaser .mini-card-title {
  color: var(--color-text-secondary);
}

.section-dark .mini-card-title,
.teaser .mini-card-title {
  color: var(--color-text);
}

/* Also fix table text inside dark sections */
.section-dark .table-wrap,
.section-dark table,
.section-dark td,
.section-dark th {
  color: var(--color-text);
}

.section-dark .mini-card h4,
.section-dark .product-card h4,
.section-dark .card h4,
.section-dark .value-card h4,
.teaser .mini-card h4,
.teaser .product-card h4,
.teaser .card h4,
.teaser .value-card h4 {
  color: var(--color-text);
}

/* ============================================================
   Fix: Principle cards in dark sections
   ============================================================ */
.section-dark .principle,
.teaser .principle {
  color: var(--color-text);
}
.section-dark .principle h3,
.teaser .principle h3 {
  color: var(--color-text);
}
.section-dark .principle p,
.teaser .principle p {
  color: var(--color-text-secondary);
}

/* ============================================================
   Fix: Buttons on dark backgrounds need inverted colors
   ============================================================ */
.section-dark .btn-primary,
.cta-section .btn-primary,
.cta-box .btn-primary,
.teaser .btn-primary {
  background: #ffffff;
  color: var(--color-dark);
  border-color: #ffffff;
}
.section-dark .btn-primary:hover,
.cta-section .btn-primary:hover,
.cta-box .btn-primary:hover,
.teaser .btn-primary:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}

.section-dark .btn-secondary,
.cta-section .btn-secondary,
.cta-box .btn-secondary,
.teaser .btn-secondary {
  background: transparent;
  color: var(--color-dark-text-secondary);
  border-color: rgba(255, 255, 255, 0.3);
}
.section-dark .btn-secondary:hover,
.cta-section .btn-secondary:hover,
.cta-box .btn-secondary:hover,
.teaser .btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Fix: section-cta link on dark bg */
.section-dark .section-cta .btn-primary {
  background: #ffffff;
  color: var(--color-dark);
  border-color: #ffffff;
}

/* Alpha badge - blue/indigo tint */
.tag-alpha {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

/* ===================== MODAL ===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--color-bg, #fafaf9);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-muted, #78716c);
  line-height: 1;
  padding: 0.25rem;
}
.modal-close:hover {
  color: var(--color-text, #1c1917);
}

/* ===================== CODE BLOCKS ===================== */
.code-block {
  background: #1c1917;
  color: #e7e5e4;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
}
.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ===================== FOUNDER NOTE ===================== */
.founder-note {
  background: var(--color-surface, #f5f5f4);
  border-left: 4px solid var(--color-accent, #0c4a6e);
  border-radius: 0 8px 8px 0;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
}
.founder-note h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-accent, #0c4a6e);
}
.founder-note p {
  margin-bottom: 1rem;
}
.founder-note p:last-child {
  margin-bottom: 0;
}

/* ===================== FOUNDER ASIDE ===================== */
.founder-aside {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--color-surface, #f5f5f4);
  border-radius: 8px;
  text-align: center;
  color: var(--color-text-muted, #78716c);
  font-size: var(--text-base, 1rem);
}

/* ===================== TIER CARDS ===================== */
.tier-card {
  background: var(--color-bg, #fafaf9);
  border: 1px solid var(--color-border, #e7e5e4);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.tier-card-featured {
  border-color: var(--color-accent, #0c4a6e);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.1);
  position: relative;
}
.tier-card-featured::before {
  content: 'Recommended';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent, #0c4a6e);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}
.tier-label {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent, #0c4a6e);
  margin-bottom: 1rem;
}
.tier-card .feature-list {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.tier-card .btn {
  align-self: flex-start;
}

/* ============================================================
   Blog Post Styles
   ============================================================ */
.post-meta { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-2xl); }
.post-body { max-width: var(--max-width-narrow); margin: 0 auto; }
.post-body h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-md); font-size: var(--text-2xl); }
.post-body h3 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); font-size: var(--text-xl); }
.post-body p { margin-bottom: var(--space-lg); line-height: var(--leading-relaxed); }
.post-body ul, .post-body ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); }
.post-body li { margin-bottom: var(--space-sm); line-height: var(--leading-relaxed); }
.post-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--color-surface);
  border-radius: var(--border-radius);
}
.post-body blockquote p { margin-bottom: 0; color: var(--color-text-secondary); font-style: italic; }
.cost-table { width: 100%; border-collapse: collapse; margin: var(--space-2xl) 0; font-size: var(--text-sm); }
.cost-table th, .cost-table td { padding: var(--space-sm) var(--space-md); text-align: left; border: 1px solid var(--color-border); }
.cost-table th { background: var(--color-dark); color: var(--color-dark-text); font-weight: var(--weight-semibold); }
.cost-table td:last-child { font-family: var(--font-mono); }
