/* ==========================================================================
   Field Theory - Main Stylesheet
   A sketchpad-inspired design with warm paper/ink colors.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Our color palette and spacing system
   -------------------------------------------------------------------------- */
:root {
  /* Colors - warm paper and ink aesthetic (light mode) */
  --color-bg: #faf9f7;
  --color-bg-alt: #f5f4f2;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #4a7c23;
  --color-border: #e0e0e0;
  --color-dots: #d4d4d4;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Layout */
  --max-width: 1300px;
  --border-radius: 4px;
}

/* Dark mode - medium dark, not too harsh */
body.dark {
  --color-bg: #1e1e1e;
  --color-bg-alt: #2a2a2a;
  --color-text: #e8e8e8;
  --color-text-muted: #999999;
  --color-accent: #7cb342;
  --color-border: #3a3a3a;
  --color-dots: #4a4a4a;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

/* Dotted separator - the sketchpad nod */
.dotted-line {
  border: none;
  border-top: 2px dotted var(--color-dots);
  margin: var(--space-lg) 0;
  width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 30px;
  max-height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

/* Dark mode toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Theme label hidden on desktop, shown on mobile */
.theme-label {
  display: none;
}

/* Mobile download button text */
.mobile-download-text {
  display: none;
}
.desktop-download-text {
  display: inline;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-lg) 0 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto var(--space-xs);
}

.hero-audience {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-lg);
}

/* ASCII art visual box */
.hero-visual {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin: 0 auto var(--space-lg);
  max-width: 700px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: left;
  white-space: pre;
  overflow-x: auto;
}

/* Hero video embed */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 1020px; /* Reduced 15% from 1200px for above-fold visibility */
  margin: 0 auto var(--space-lg);
  aspect-ratio: 23.97 / 18;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
}

.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* CTA Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #4a2c6a;
  color: #fff;
}

body.dark .btn-primary:hover {
  background: #9b6dca;
  color: #1a1a1a;
}

.link-primary {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.link-primary:hover {
  color: #4a2c6a;
}

body.dark .link-primary:hover {
  color: #9b6dca;
}

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

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

/* --------------------------------------------------------------------------
   Before/After Comparison
   -------------------------------------------------------------------------- */
.comparison {
  padding: var(--space-sm) 0 var(--space-lg);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.comparison-col {
  text-align: center;
}

.comparison-col h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-ascii {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}

.comparison-tagline {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: var(--space-md);
}

.comparison-cta {
  text-align: center;
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .comparison-ascii {
    font-size: 0.65rem;
  }
}

@media (max-width: 400px) {
  .comparison-ascii {
    font-size: 0.55rem;
  }
}

/* --------------------------------------------------------------------------
   Feature Sections
   -------------------------------------------------------------------------- */
.features {
  padding: 0 0 var(--space-lg);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
}

.feature.reversed {
  direction: rtl;
}

.feature.reversed > * {
  direction: ltr;
}

.feature-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}

.offline-badge,
.online-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  background: transparent;
  width: fit-content;
}

.offline-badge {
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}

.online-badge {
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}

.feature-problem {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.feature-description {
  font-size: 1rem;
  line-height: 1.7;
}

/* ASCII visual for features */
.feature-visual {
  background: var(--color-bg-alt);
  border: 1px dotted var(--color-dots);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  white-space: pre;
  overflow-x: auto;
}

.feature-visual .highlight {
  color: var(--color-accent);
}

/* Logo cloud for compatible apps */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.25rem;
  row-gap: 1.75rem;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
  width: 100%;
}

.logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: default;
  border: 1px solid #b0b0b0;
}

body.dark .logo-circle {
  border-color: #606060;
}

.logo-circle svg {
  width: 32px;
  height: 32px;
}

.logo-circle:hover {
  transform: scale(1.1);
}

/* Brand colors - work on light/dark with subtle backgrounds */
.logo-circle:nth-child(1) { background: rgba(217, 119, 6, 0.15); color: #D97706; } /* Claude - orange */
.logo-circle:nth-child(2) { background: rgba(16, 163, 127, 0.15); color: #10A37F; } /* ChatGPT - green */
.logo-circle:nth-child(3) { background: rgba(124, 58, 237, 0.15); color: #7C3AED; } /* Cursor - purple */
.logo-circle:nth-child(4) { background: rgba(36, 41, 46, 0.15); color: var(--color-text); } /* Copilot/GitHub */
.logo-circle:nth-child(5) { background: rgba(66, 133, 244, 0.15); color: #4285F4; } /* Gemini - blue */
.logo-circle:nth-child(6) { background: rgba(31, 184, 205, 0.15); color: #1FB8CD; } /* Perplexity - teal */
.logo-circle:nth-child(7) { background: rgba(0, 199, 183, 0.15); color: #00C7B7; } /* Windsurf - mint */

/* Organic scatter positioning */
.logo-circle:nth-child(1) { transform: translateY(-6px) translateX(4px); }
.logo-circle:nth-child(2) { transform: translateY(10px) translateX(-8px); }
.logo-circle:nth-child(3) { transform: translateY(-4px) translateX(12px); }
.logo-circle:nth-child(4) { transform: translateY(8px) translateX(-4px); }
.logo-circle:nth-child(5) { transform: translateY(-10px) translateX(-6px); }
.logo-circle:nth-child(6) { transform: translateY(6px) translateX(10px); }
.logo-circle:nth-child(7) { transform: translateY(-8px) translateX(-10px); }

/* Feature screenshot images */
.feature-image {
  border-radius: var(--border-radius);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  border: 1px solid #c0c0c0;
}

body.dark .feature-image img {
  border-color: #505050;
}

body.dark .feature-image img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
  padding: var(--space-xl) 0;
}

.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: left;
}

.pricing-card.featured {
  border-color: var(--color-text);
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

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

.pricing-card ul {
  list-style: none;
  margin-bottom: 0;
}

.pricing-card li {
  padding: var(--space-xs) 0;
  border-bottom: 1px dotted var(--color-dots);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* Limit badges */
.limit-badge {
  float: right;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  padding: 0.05rem 0.4rem;
  border-radius: 2rem;
  border: 1px solid var(--color-border);
}

/* Unlimited symbol (no badge) */
.limit-unlimited {
  float: right;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Grayed out free features in Pro card (keep green checkmark) */
.pricing-card li.included-free {
  color: var(--color-text-muted);
}

/* Pricing description text below heading */
.pricing-description {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Full-width buttons in pricing cards */
.pricing-card .btn {
  width: 100%;
  text-align: center;
  margin-top: var(--space-md);
}

/* Note below pricing card (e.g., "Quantities reset monthly") */
.pricing-card-note {
  margin-top: var(--space-md);
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Feature notes (asterisks and daggers) */
.feature-note {
  font-size: 0.75em;
  vertical-align: super;
  color: var(--color-text-muted);
  margin-right: 0.2em;
  font-style: italic;
}

/* Pricing footnotes */
.pricing-footnotes {
  max-width: 800px;
  margin: var(--space-md) auto 0;
  padding-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.pricing-footnotes p {
  margin-bottom: var(--space-xs);
}

.pricing-footnotes p:last-child {
  margin-bottom: 0;
}

/* Simplified pricing (within download section) */
.pricing-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 800px;
  margin: var(--space-lg) auto 0;
  text-align: left;
}

.pricing-tier {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.pricing-tier.featured {
  border-color: var(--color-text);
}

.pricing-tier h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.pricing-amount {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

.pricing-tier-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.pricing-tier-limits {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pricing-tier .btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

/* FAQ Section */
.faq-list {
  margin-top: var(--space-lg);
}

.faq-item {
  margin-bottom: var(--space-lg);
}

.faq-item .faq-q {
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.5;
  color: var(--color-text);
}

.faq-item .faq-a {
  color: var(--color-text-muted);
  margin: 0;
  margin-left: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 1150px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-copyright {
  margin: 0;
}

.footer-brand {
  color: var(--color-text);
  font-weight: 500;
}

.footer-divider {
  margin: 0 0.5rem;
  color: var(--color-text-muted);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Page-Specific Styles
   -------------------------------------------------------------------------- */

/* Download page */
.download-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

.download-hero .pricing-grid {
  margin-top: var(--space-lg);
}

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.requirements {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 600px;
  margin: var(--space-lg) auto;
  justify-content: center;
}

.download-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
}

.download-card h3 {
  margin-bottom: var(--space-sm);
}

.download-card .feature-visual {
  margin-bottom: var(--space-sm);
}

/* Theory page */
.theory-content {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  min-height: calc(100vh - 200px);
}

.theory-content h1 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.theory-content h2 {
  font-size: 1.3rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.theory-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.theory-content .cta {
  text-align: center;
  margin-top: var(--space-lg);
}

.theory-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: calc(var(--space-sm) * -1);
  margin-bottom: var(--space-lg);
}

.theory-body {
  margin-top: var(--space-lg);
}

.theory-signature {
  margin-top: var(--space-lg);
  font-style: italic;
  color: var(--color-text-muted);
}

.theory-signature .callsign {
  font-size: 0.75rem;
  opacity: 0.4;
}

.theory-body[contenteditable]:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */

/* Prevent horizontal scrolling on all devices */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Mobile theme toggle - hidden on desktop */
.theme-toggle-mobile {
  display: none;
}

/* Hamburger menu for mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@media (max-width: 768px) {
  /* Reduce section spacing on mobile */
  .hero,
  .pricing,
  .download-hero {
    padding: var(--space-lg) 0;
  }
  
  .features {
    padding: var(--space-md) 0;
  }
  
  .feature {
    padding: var(--space-md) 0;
  }
  
  .dotted-line {
    margin: var(--space-md) 0;
  }

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

  .feature {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature.reversed {
    direction: ltr;
  }

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

  .download-options {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Hamburger menu visible on mobile */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-end;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-xs);
  }

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

  .nav-inner {
    position: relative;
  }

  .nav-links li {
    text-align: right;
  }

  /* Hide theme toggle inside dropdown on mobile */
  .nav-links .theme-toggle-wrapper,
  .nav-links li:has(.theme-toggle) {
    display: none;
  }

  /* Show mobile theme toggle */
  .theme-toggle-mobile {
    display: block;
    margin-left: auto;
    margin-right: 0.35rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  .theme-label {
    display: none;
  }
  
  /* Mobile: show "Visit on Mac" instead of "Download for Mac" */
  .mobile-download-text {
    display: inline;
  }
  .desktop-download-text {
    display: none;
  }

  /* Scale down ASCII art visuals to fit mobile screens. */
  .hero-visual,
  .feature-visual {
    font-size: 0.55rem;
    padding: var(--space-sm);
  }

  .hero-visual {
    max-width: 100%;
  }
}

/* Mobile break - only shows on mobile */
.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }

  /* Hero tagline - smaller on mobile */
  .hero-tagline {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
  }

  .hero-audience {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
  }

  /* Reduce hero button section spacing */
  .hero-buttons {
    padding: var(--space-md) 0;
    margin-top: var(--space-md);
  }

  /* Pricing card - reduce padding for more text space */
  .pricing-card {
    padding: var(--space-md);
  }

  .pricing-card li {
    font-size: 0.85rem;
  }

  .limit-badge {
    font-size: 0.6rem;
  }

  /* Logo cloud - reduce bottom spacing before pricing */
  .logo-cloud {
    padding: var(--space-md);
  }

  /* Footer - centered and smaller on mobile */
  .footer {
    padding: var(--space-md) 0;
    font-size: 0.8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  /* Feature badges - stack vertically on mobile */
  .feature-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Extra small screens need even smaller ASCII art. */
@media (max-width: 400px) {
  .hero-visual,
  .feature-visual {
    font-size: 0.45rem;
  }

  .nav-logo-img {
    height: 24px;
    max-height: 24px;
  }

  /* Even smaller pricing text */
  .pricing-card li {
    font-size: 0.8rem;
  }
}
