/* ==========================================================================
   WonderTwin Marketing Site — Styles
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Light mode (default) */
  --bg: #FFF8F0;
  --bg-alt: #FFFFFF;
  --text: #2D2D2D;
  --text-muted: #6B6360;
  --mint: #A8E6CF;
  --lavender: #D4B5E6;
  --coral: #FF6B6B;
  --coral-hover: #E85D5D;
  --code-bg: #1E1E2E;
  --code-text: #E8E0D8;
  --border: #E8E0D8;
  --nav-bg: rgba(255, 248, 240, 0.9);
  --card-shadow: 0 2px 16px rgba(45, 45, 45, 0.06);
  --card-shadow-hover: 0 4px 24px rgba(45, 45, 45, 0.10);
  --section-dark-bg: #1E1E2E;
  --section-dark-text: #E8E0D8;
  --mint-subtle: rgba(168, 230, 207, 0.15);
  --lavender-subtle: rgba(212, 181, 230, 0.15);
}

body.dark {
  --bg: #1A1A2E;
  --bg-alt: #242442;
  --text: #E8E0D8;
  --text-muted: #A09890;
  --mint: #B8F0DF;
  --lavender: #E0C5F0;
  --coral: #FF6B6B;
  --coral-hover: #E85D5D;
  --code-bg: #282840;
  --code-text: #E8E0D8;
  --border: #3A3A5A;
  --nav-bg: rgba(26, 26, 46, 0.92);
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.3);
  --section-dark-bg: #141428;
  --section-dark-text: #E8E0D8;
  --mint-subtle: rgba(184, 240, 223, 0.10);
  --lavender-subtle: rgba(224, 197, 240, 0.10);
}

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

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

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s;
}

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

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 96px 0;
}

.section-headline {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subhead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

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

.text-center .section-subhead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-coral:hover {
  background: var(--coral-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ---------- Mascot Placeholder ---------- */
.mascot-img {
  object-fit: contain;
}

.mascot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
  position: relative;
}

.mascot-placeholder.green {
  background: #6BC9A0;
}

.mascot-placeholder.lavender {
  background: #B48CCE;
}

.mascot-placeholder.pair {
  background: linear-gradient(135deg, #6BC9A0 0%, #B48CCE 100%);
}

/* Hide placeholder when image loads */
.mascot-wrap {
  position: relative;
}

.mascot-wrap .mascot-img {
  position: relative;
  z-index: 1;
}

.mascot-wrap .mascot-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ---------- Code Blocks ---------- */
.code-window {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.15);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #FF5F57; }
.code-dot.yellow { background: #FEBC2E; }
.code-dot.green { background: #28C840; }

.code-window pre {
  padding: 20px 24px;
  margin: 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--code-text);
}

.code-window code {
  color: var(--code-text);
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

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

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo .mascot-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dark-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.dark-toggle:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 24px;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--coral);
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 96px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero .subhead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-terminal-area {
  position: relative;
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-mascots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  margin-bottom: 8px;
}

.hero-mascot-left,
.hero-mascot-right {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-mascot-left {
  margin-right: -18px;
}

.hero-mascot-right {
  margin-left: -18px;
}

.hero-mascot-right .hero-mascot-img {
  transform: scaleX(-1);
}

.hero-mascot-img {
  display: block;
  height: 200px;
  width: auto;
  object-fit: contain;
}

.hero-terminal {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Problem Section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.problem-card .mascot-placeholder,
.problem-card .mascot-wrap,
.problem-card .mascot-img {
  width: 140px;
  height: 160px;
}

.problem-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- What WonderTwin Does ---------- */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.what-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.what-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
}

.pill-mint {
  background: var(--mint-subtle);
  color: #3B9B6F;
}

body.dark .pill-mint {
  color: var(--mint);
}

.pill-lavender {
  background: var(--lavender-subtle);
  color: #8B5CA8;
}

body.dark .pill-lavender {
  color: var(--lavender);
}

.what-visual {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-end;
}

.what-visual-item {
  text-align: center;
}

.what-visual-item .mascot-placeholder,
.what-visual-item .mascot-wrap,
.what-visual-item .mascot-img {
  width: 140px;
  height: 160px;
  margin-bottom: 12px;
}

.what-visual-label {
  font-weight: 700;
  font-size: 0.875rem;
}

.what-visual-label.mock {
  color: var(--text-muted);
}

.what-visual-label.twin {
  color: var(--coral);
}

.what-vs {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  align-self: center;
}

/* ---------- How It Works ---------- */
.how-section {
  background: var(--section-dark-bg);
  color: var(--section-dark-text);
}

.how-section .section-headline {
  color: #fff;
}

.how-section .section-subhead {
  color: rgba(232, 224, 216, 0.7);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.how-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
}

.how-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.how-card .code-window {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.how-card .code-window pre {
  flex: 1;
}

.how-card .mascot-placeholder,
.how-card .mascot-wrap,
.how-card .mascot-img {
  width: 180px;
  height: 200px;
  align-self: center;
}

.how-closing {
  text-align: center;
  font-size: 1.0625rem;
  color: rgba(232, 224, 216, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Use Cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.usecase-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

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

.usecase-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

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

.usecase-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Admin API ---------- */
.admin-section .code-window {
  max-width: 680px;
  margin: 0 auto 32px;
}

.admin-closing {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Twin Catalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.catalog-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.catalog-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.catalog-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.catalog-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-payments { background: var(--mint-subtle); color: #3B9B6F; }
.cat-auth { background: var(--lavender-subtle); color: #8B5CA8; }
.cat-comms { background: rgba(255, 107, 107, 0.12); color: #D64545; }
.cat-analytics { background: rgba(255, 183, 77, 0.15); color: #C67A1A; }
.cat-ecommerce { background: rgba(100, 181, 246, 0.15); color: #2E7DB8; }
.cat-loyalty { background: rgba(255, 213, 79, 0.15); color: #B8860B; }
.cat-crm { background: rgba(129, 199, 132, 0.15); color: #2E7D32; }
.cat-utilities { background: rgba(176, 190, 197, 0.2); color: #607D8B; }

body.dark .cat-payments { color: var(--mint); }
body.dark .cat-auth { color: var(--lavender); }
body.dark .cat-comms { color: #FF8A8A; }
body.dark .cat-analytics { color: #FFB74D; }
body.dark .cat-ecommerce { color: #64B5F6; }
body.dark .cat-loyalty { color: #FFD54F; }
body.dark .cat-crm { color: #81C784; }
body.dark .cat-utilities { color: #B0BEC5; }

/* ---------- Contributors ---------- */
.contrib-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.contrib-text .btn {
  margin-top: 8px;
}

.contrib-mascots {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.contrib-mascots .mascot-placeholder,
.contrib-mascots .mascot-wrap,
.contrib-mascots .mascot-img {
  width: 160px;
  height: 180px;
}

/* ---------- Comparison Table ---------- */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  width: 220px;
}

.comparison-table .highlight-col {
  background: var(--mint-subtle);
}

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

.comparison-table .check {
  color: #28A745;
  font-weight: 700;
}

.comparison-table .cross {
  color: #DC3545;
  font-weight: 700;
}

.comparison-table .partial {
  color: #FFC107;
  font-weight: 700;
}

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

.pricing-card {
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.pricing-header {
  padding: 28px 32px 20px;
  text-align: center;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pricing-header-mint {
  background: var(--mint-subtle);
}

.pricing-header-lavender {
  background: var(--lavender-subtle);
}

.pricing-header h3 {
  font-size: 1.375rem;
  font-weight: 800;
}

.pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--lavender);
  color: #2D2D2D;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.pricing-badge-free {
  background: var(--mint);
  color: #2D2D2D;
  text-transform: none;
  font-size: 0.8125rem;
  margin-top: 16px;
}

.pricing-body {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 0.9375rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

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

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.pricing-mascots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.pricing-mascots .mascot-img {
  width: 280px;
  height: 300px;
}

/* Email form */
.email-form {
  display: flex;
  gap: 8px;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--coral);
}

.email-form button {
  white-space: nowrap;
}

.email-success {
  display: none;
  padding: 12px;
  background: var(--mint-subtle);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #3B9B6F;
  text-align: center;
}

body.dark .email-success {
  color: var(--mint);
}

.email-success.show {
  display: block;
}

/* ---------- Get Started / Final CTA ---------- */
.cta-section {
  background: var(--section-dark-bg);
  color: var(--section-dark-text);
}

.cta-section .section-headline {
  color: #fff;
}

.cta-terminal {
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

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

.footer-logo .mascot-placeholder,
.footer-logo .mascot-wrap,
.footer-logo .mascot-img {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  font-weight: 800;
  font-size: 1.125rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 600px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

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

  .section-headline {
    font-size: 1.75rem;
  }

  .hero {
    padding: 120px 0 64px;
  }

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

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

  .hero-mascots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 0;
  }

  .hero-mascot-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin: 0 4px 0 0;
  }

  .hero-mascot-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin: 0 0 0 4px;
  }

  .hero-terminal {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }

  .hero-mascot-img {
    height: 80px;
  }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Grids to single column */
  .problem-grid,
  .usecase-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .what-grid,
  .contrib-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  /* Email form stack */
  .email-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-pad {
    padding: 48px 0;
  }

  .section-headline {
    font-size: 1.5rem;
  }

  .hero {
    padding: 100px 0 48px;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

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

  .code-window pre {
    font-size: 0.75rem;
    padding: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    justify-content: center;
  }
}

/* ---------- Prism.js Overrides ---------- */
.code-window pre[class*="language-"],
.code-window code[class*="language-"] {
  background: transparent;
  text-shadow: none;
  font-size: 0.875rem;
}

/* Ensure Prism tokens are visible on dark bg */
.code-window .token.comment { color: #6A6A8A; }
.code-window .token.string { color: #A8E6CF; }
.code-window .token.keyword { color: #D4B5E6; }
.code-window .token.function { color: #64B5F6; }
.code-window .token.number { color: #FFB74D; }
.code-window .token.operator { color: #E8E0D8; }
.code-window .token.punctuation { color: #A0A0B8; }
.code-window .token.builtin { color: #FF6B6B; }
.code-window .token.important { color: #FF6B6B; }
