/*
Theme Name: Ratonix
Theme URI: https://ratonix.ai
Author: Robert Guajardo
Author URI: https://robertguajardo.com
Description: Custom marketing site theme for Ratonix — full-width immersive design with Flexible Content page builder powered by Secure Custom Fields.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ratonix
*/

/* ============================================================
   DESIGN TOKENS
   All colors, fonts, spacing live here. Never hardcode below.
   ============================================================ */
:root {
  /* Surfaces */
  --color-bg:            #08080F;
  --color-bg-alt:        #0C0C16;
  --color-surface:       #111120;
  --color-surface-alt:   #191930;
  --color-border:        #252540;
  --color-border-hover:  #303055;

  /* Text */
  --color-ink:           #EEEEF5;
  --color-muted:         #9898B5;
  --color-faded:         #5A5A75;

  /* Brand accents */
  --color-primary:       #7C3AED;
  --color-secondary:     #3B82F6;
  --color-accent-purple: #9D5CFF;
  --color-accent-blue:   #60A5FA;
  --color-success:       #10B981;

  /* Gradients */
  --grad-brand:          linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --grad-brand-hover:    linear-gradient(135deg, #8B4CF0, #4A90F7);
  --grad-text:           linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-blue));

  /* Tinted surfaces */
  --tint-purple:         rgba(124, 58, 237, 0.12);
  --tint-purple-border:  rgba(124, 58, 237, 0.20);
  --tint-success:        rgba(16, 185, 129, 0.10);
  --tint-success-border: rgba(16, 185, 129, 0.18);

  /* Shadows */
  --shadow-cta:          0 4px 16px rgba(124, 58, 237, 0.2);
  --shadow-cta-hover:    0 12px 36px rgba(124, 58, 237, 0.35);
  --shadow-card:         0 16px 48px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-body:           'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:        'Outfit', var(--font-body);
  --font-mono:           ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Radii */
  --radius-sm:           7px;
  --radius-md:           10px;
  --radius-lg:           14px;
  --radius-pill:         100px;

  /* Containers */
  --container-sm:        460px;
  --container-md:        520px;
  --container-lg:        900px;
  --container-xl:        960px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Focus states (accessibility baseline) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV (header.php)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  /* Above the hero grid/orb and section glows (their inners use z-index up to 1);
     below the skip link (z-index 1000). */
  z-index: 100;
  /* Opaque page-bg token so content scrolling underneath can't show through and
     make the nav unreadable. Matches the body background — no new color. */
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--color-border);
}
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo span {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
/* Wraps the menu (ul.nav-links) + the persistent launch button in one row. */
.nav-links-wrap { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-ink); }
/* Launch / "Start free" button — styled whether it sits inside the menu list
   (fallback) or as the standalone CTA rendered alongside an assigned menu. */
.nav-links .launch,
.nav-links a.launch,
.nav-links-wrap > .launch {
  background: var(--grad-brand);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

/* Mobile menu toggle (progressive enhancement) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint-purple);
  border: 1px solid var(--tint-purple-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 20px;
}
.pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
}
.pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent-purple);
  letter-spacing: 0.05em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-brand);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s;
  box-shadow: var(--shadow-cta);
  border: none;
}
.cta-btn:hover {
  background: var(--grad-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}
.cta-btn svg { transition: transform 0.2s; }
.cta-btn:hover svg { transform: translateX(3px); }
.cta-btn.sm { padding: 10px 22px; font-size: 13px; }

.sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-accent-purple);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}
.sec-btn:hover { background: var(--tint-purple); }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 65%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 65%);
}

.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.surface-card:hover { border-color: var(--color-border-hover); }

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--tint-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-alt { background: var(--color-bg-alt); }
.fd { font-family: var(--font-display); }

/* Anchor offset for the now-sticky header. The header renders ~61px tall
   (14px top/bottom padding + 32px tallest item [the launch button] + 1px border),
   constant across breakpoints, so 64px lands the section's top edge just below
   the header (its own top padding then spaces the heading). Smooth scrolling is
   set on <html> above and is disabled under prefers-reduced-motion. */
.steps-section,
.pricing-section { scroll-margin-top: 64px; }

/* ============================================================
   HERO (template-parts/flexible-content/hero.php)
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 24px 44px;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(59, 130, 246, 0.04) 35%,
    transparent 75%);
}
.hero-orb {
  width: 480px;
  height: 480px;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle,
    rgba(124, 58, 237, 0.16) 0%,
    rgba(59, 130, 246, 0.06) 50%,
    transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 720px;
  letter-spacing: -0.04em;
}
.hero-subhead {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 510px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-features {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-faded);
  font-size: 12px;
}
.hero-features > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Hero two-column layout (show_demo on) --- */
.hero.has-demo {
  text-align: left;
  align-items: stretch;
}
.hero.has-demo .hero-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero.has-demo .hero-copy { text-align: left; }
.hero.has-demo h1 { max-width: none; }
.hero.has-demo .hero-subhead { margin: 0 0 32px; max-width: 480px; }
.hero.has-demo .hero-buttons { justify-content: flex-start; }
.hero.has-demo .hero-features { justify-content: flex-start; margin-top: 32px; }

/* --- Reply-odds demo widget (reply-odds-demo.php + hero-demo.js) --- */
.demo-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.demo-toggle {
  display: none; /* progressive enhancement: shown only once JS enhances */
  gap: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 16px;
}
.demo-widget.is-enhanced .demo-toggle { display: inline-flex; }
.demo-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}
.demo-tab.is-active {
  background: var(--grad-brand);
  color: #fff;
}
.demo-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-panel { display: block; }
.demo-panel[hidden] { display: none; }
.demo-email {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.demo-email-head {
  margin-bottom: 10px;
}
.demo-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
}
.demo-body {
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}
.demo-odds {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.demo-odds-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faded);
}
.demo-meter {
  flex: 1 1 auto;
  height: 7px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.demo-meter-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.demo-meter-fill.is-cold { background: var(--color-faded); }
.demo-meter-fill.is-warm { background: var(--grad-brand); }
.demo-odds-value {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-odds-value.is-weak { color: var(--color-faded); }

/* ============================================================
   FEATURES — 3-COLUMN GRID (features-4col.php)
   Class/layout name kept as *-4col for backwards-compatibility.
   ============================================================ */
.features-section {
  padding: 72px 32px;
}
.features-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  text-align: center;
}
.features-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin: 0 0 44px;
  letter-spacing: -0.02em;
}
.features-4col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  padding: 30px 22px;
  text-align: center;
}
.feature-card.accent-primary   { border-top: 2px solid var(--color-primary); }
.feature-card.accent-secondary { border-top: 2px solid var(--color-secondary); }
.feature-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faded);
  margin: 0 0 12px;
}
.feature-card .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto 14px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   STEPS 3-COLUMN (steps-3col.php)
   ============================================================ */
.steps-section {
  position: relative;
  padding: 72px 32px;
  overflow: hidden;
}
.steps-section .grid-bg { opacity: 0.7; }
.steps-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.steps-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
}
.steps-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step { text-align: left; }
/* Small "0X" order label — existing site display font + letter-spacing instead
   of a monospace face, in a purple/blue accent (was the reference's acid). */
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-accent-purple);
  margin-bottom: 14px;
}
/* Thin per-step accent bar (replaces the single connector line across all three). */
.step-bar {
  height: 2px;
  background: var(--grad-brand);
  margin-bottom: 22px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   STATS BAND — "The Edge" (stats-band.php)
   The whole section sits inside one contained, rounded surface card with a
   subtle glow — not full-bleed. Stats render as a vertical stack of rows with
   a thin left-border accent (no wrapping grid, so a 3rd stat never orphans).
   The reference's acid-green accents (left border, values, glow) are mapped to
   the purple/blue tokens, and all type stays on the existing site fonts.
   ============================================================ */
.stats-section {
  padding: 72px 32px;
}
.stats-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
  /* Contained card surface + subtle purple glow (was the reference's acid glow). */
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(124, 58, 237, 0.16), transparent 60%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.stats-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.stats-body {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 440px;
}
/* Vertical stack of left-border rows — flex, not grid, so it never orphans. */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat-item {
  border-left: 2px solid var(--color-primary);
  padding-left: 18px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-caption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-faded);
  line-height: 1.4;
  /* Uppercase letter-spaced label on the SITE body font — no monospace. */
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   PRICING (pricing.php)
   ============================================================ */
.pricing-section {
  position: relative;
  padding: 72px 32px;
  overflow: hidden;
}
.pricing-orb {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}
.pricing-inner {
  max-width: var(--container-sm);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pricing-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin: 0 0 32px;
}
.pricing-card {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.pricing-card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tint-success);
  border: 1px solid var(--tint-success-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 18px;
}
.free-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
}
.free-badge span {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-success);
  letter-spacing: 0.04em;
}
.price-big {
  font-size: 56px;
  font-weight: 800;
  font-family: var(--font-display);
}
.price-period {
  font-size: 16px;
  color: var(--color-faded);
}
.price-subtext {
  font-size: 13px;
  color: var(--color-muted);
  margin: 4px 0 24px;
}
.feature-list {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-bottom: 24px;
  text-align: left;
  list-style: none;
}
.feature-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-muted);
}
.feature-check svg { flex-shrink: 0; }

/* --- Multiple pricing tiers (tiers repeater) --- */
.pricing-inner.has-tiers {
  max-width: 880px;
}
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
  text-align: left;
  margin-top: 8px;
}
.tier-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
}
.tier-card.is-popular {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.tier-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  background: var(--tint-purple);
  border: 1px solid var(--tint-purple-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.tier-badge span {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent-purple);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.tier-card .feature-list {
  flex: 1 1 auto;
}
.tier-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.pricing-footnote {
  margin-top: 26px;
  font-size: 13px;
  color: var(--color-faded);
}
.pricing-footnote a {
  color: var(--color-accent-purple);
  font-weight: 500;
}
.pricing-footnote a:hover { text-decoration: underline; }

/* ============================================================
   FINAL CTA (cta.php)
   ============================================================ */
.cta-section {
  position: relative;
  padding: 72px 32px;
  overflow: hidden;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(124, 58, 237, 0.06) 50%,
    transparent 100%);
}
.cta-section .grid-bg { opacity: 0.7; }
.cta-inner {
  max-width: var(--container-md);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  margin: 0 0 14px;
}
.cta-inner p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 32px;
}
/* Layout-only row for one or more CTA buttons. inline-flex so the heading_align
   control still positions the buttons with the rest of the block (left/center/
   right). No new button styling — buttons reuse .cta-btn / .sec-btn. */
.cta-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ============================================================
   FOOTER (footer.php)
   ============================================================ */
.foot {
  padding: 32px;
  border-top: 1px solid var(--color-border);
}
.foot-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.foot-brand .name {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}
.foot-brand .tagline {
  font-size: 11px;
  color: var(--color-faded);
}
.foot-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}
.foot-links a, .foot-links span {
  color: var(--color-faded);
  font-size: 11px;
}
.foot-links a:hover { color: var(--color-muted); }

/* ============================================================
   HEADING ALIGNMENT (per-section heading_align control)
   Moves the whole heading block — pill, headline, subhead — as a unit,
   not just the headline text. Default is center everywhere, which matches
   the previous fixed layout so existing pages are unchanged.
   Placed after the section rules so it wins the same-specificity tie on
   elements that already set text-align (e.g. .cta-inner).
   ============================================================ */
.heading-align-left   { text-align: left; }
.heading-align-center { text-align: center; }
.heading-align-right  { text-align: right; }

/* Stats band: the body paragraph is width-capped, so re-anchor its box to
   match the chosen alignment (text-align alone won't move a capped block). */
.stats-copy.heading-align-center .stats-body { margin-left: auto; margin-right: auto; }
.stats-copy.heading-align-left   .stats-body { margin-left: 0;    margin-right: auto; }
.stats-copy.heading-align-right  .stats-body { margin-left: auto; margin-right: 0; }

/* Hero (single-column only — demo/two-column mode keeps its own left layout
   and never receives a heading-align class). The hero block is a flex-column
   child, so shift the whole column with align-self, and re-anchor the capped
   subhead plus the button/trust rows so nothing snaps back to center. */
.hero-inner.heading-align-center { align-self: center;     text-align: center; }
.hero-inner.heading-align-left   { align-self: flex-start; text-align: left; }
.hero-inner.heading-align-right  { align-self: flex-end;   text-align: right; }

.hero-inner.heading-align-center .hero-subhead { margin-left: auto; margin-right: auto; }
.hero-inner.heading-align-left   .hero-subhead { margin-left: 0;    margin-right: auto; }
.hero-inner.heading-align-right  .hero-subhead { margin-left: auto; margin-right: 0; }

.hero-inner.heading-align-center .hero-buttons,
.hero-inner.heading-align-center .hero-features { justify-content: center; }
.hero-inner.heading-align-left   .hero-buttons,
.hero-inner.heading-align-left   .hero-features { justify-content: flex-start; }
.hero-inner.heading-align-right  .hero-buttons,
.hero-inner.heading-align-right  .hero-features { justify-content: flex-end; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }
  .nav-links a:not(.launch) {
    display: none;
  }
  .features-4col {
    grid-template-columns: 1fr;
  }
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .hero.has-demo .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps-3col {
    grid-template-columns: 1fr;
  }
  .foot-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-4col {
    grid-template-columns: 1fr;
  }
  .hero-features {
    flex-direction: column;
    gap: 12px;
  }
  /* In column mode the cross-axis is horizontal, so alignment must come from
     align-items (justify-content no longer controls it). Keeps left/right held. */
  .hero-inner.heading-align-left  .hero-features { align-items: flex-start; }
  .hero-inner.heading-align-right .hero-features { align-items: flex-end; }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-buttons .cta-btn {
    justify-content: center;
  }
}
