@import 'tokens.css';

/* ═══════════════════════════════════════════════════════════════════════════
   mailall.us — Landing Page Styles
   ═══════════════════════════════════════════════════════════════════════════

   COLOR PALETTE (imported from ../design/tokens.css)
   ─────────────────────────────────
   linen / linen-dark    Page backgrounds, light surfaces
   copper / copper-dark  Primary accent, buttons, links
   copper-light          Accent on dark backgrounds
   indigo / indigo-mid   Dark text, dark section backgrounds
   tobacco               Body text, muted UI
   moss / moss-light     Success, feature checks
   sand                  Borders, dividers, muted fills

   SECTION THEMES
   ─────────────────────────────────
   (default)         linen bg, indigo headings, tobacco body text
   .cream-section    linen-dark bg, sand borders (trust bar, stats)
   .walnut-section   indigo bg, linen/sand text (use cases, privacy)
   .terra-section    copper bg, white text (CTA)

   Each theme sets scoped custom properties that .section-label,
   .section-title, and .section-sub inherit automatically. To add a new
   themed section, just add the class to the <section> element.

   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Section theme defaults (cream bg). Override per-section with theme classes. */
  --section-bg:      var(--color-bg);
  --section-text:    var(--color-text);
  --section-heading: var(--color-indigo);
  --section-muted:   var(--color-tobacco);
  --section-label:   var(--color-copper);
  --section-accent:  var(--color-copper);
  --section-border:  var(--color-sand);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-linen);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--color-copper); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}


/* ─── SECTION THEMES ────────────────────────────────────────────────────── */

/* Cream: slightly darker bg with borders (trust bar, stats) */
.cream-section {
  --section-bg:      var(--color-linen-dark);
  --section-text:    var(--color-text);
  --section-heading: var(--color-indigo);
  --section-muted:   var(--color-tobacco);
  --section-label:   var(--color-copper);
  --section-accent:  var(--color-copper);
  --section-border:  var(--color-sand);
  background: var(--section-bg);
  color: var(--section-text);
  border-top: 1px solid var(--section-border);
  border-bottom: 1px solid var(--section-border);
}

/* Walnut: dark bg with warm light text (use cases, privacy, footer) */
.walnut-section {
  --section-bg:      var(--color-indigo);
  --section-text:    var(--color-sand);
  --section-heading: var(--color-linen);
  --section-muted:   var(--color-sand);
  --section-label:   var(--color-copper-light);
  --section-accent:  var(--color-copper-light);
  --section-border:  rgba(255,255,255,0.08);
  background: var(--section-bg);
  color: var(--section-text);
}

/* Copper accent bg with indigo text (CTAs) */
.terra-section {
  --section-bg:      var(--color-copper-light);
  --section-text:    var(--color-indigo);
  --section-heading: var(--color-indigo);
  --section-muted:   var(--color-indigo-mid);
  --section-label:   var(--color-indigo);
  --section-accent:  var(--color-indigo);
  --section-border:  rgba(27,42,74,0.15);
  background: var(--section-bg);
  color: var(--section-text);
}


/* ─── SECTION STRUCTURE ─────────────────────────────────────────────────── */

.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--section-label);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--section-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--section-muted);
  line-height: 1.7;
  max-width: 520px;
}


/* ─── NAV ───────────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-sand);
  padding: 0 2rem;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-indigo);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--color-copper); }

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

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-tobacco);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover { color: var(--color-copper); }
.nav-links a:not(.btn).active { color: var(--color-copper); border-bottom-color: var(--color-copper); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-indigo);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--color-linen);
    border-bottom: 1px solid var(--color-sand);
    padding: 1rem 2rem;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: right; }
}


/* ─── BUTTONS ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.3em;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  border: none;
}

.btn-primary {
  background: var(--color-copper-dark);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(192, 94, 60, 0.3);
}
.btn-primary:hover {
  background: var(--color-indigo-mid);
  box-shadow: 0 4px 14px rgba(192, 94, 60, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-copper);
  border: 1.5px solid var(--color-copper);
}
.btn-outline:hover {
  background: var(--color-copper);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-indigo);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: var(--color-linen);
  transform: translateY(-2px);
}

.btn-lg { font-size: 1.05rem; padding: 0.75em 1.8em; }
.btn-nav-cta { padding: 0.4em 1.1em; font-size: 0.85rem; }


/* ─── HERO CAROUSEL ─────────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  background: var(--color-linen);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  min-height: 775px;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-indigo);
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--color-copper); }

.hero-desc {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--color-tobacco);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Carousel controls */
.carousel-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-sand);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--color-copper); transform: scale(1.35); }
.carousel-dot:hover:not(.active) { background: var(--color-tobacco); }

.carousel-progress {
  width: 160px; height: 2px;
  background: var(--color-sand);
  border-radius: 99px;
  overflow: hidden;
}
.carousel-progress-bar {
  height: 100%;
  background: var(--color-copper);
  border-radius: 99px;
  width: 0%;
  transition: width linear;
}


/* ─── EMAIL DEMO WIDGET ─────────────────────────────────────────────────── */

.hero-visual { position: relative; }

.email-demo {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(46, 31, 14, 0.12), 0 2px 8px rgba(46, 31, 14, 0.06);
  overflow: hidden;
  border: 1px solid var(--color-linen-dark);
}

.email-demo-header {
  background: var(--color-linen);
  border-bottom: 1px solid var(--color-sand);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-demo-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: 0.6rem;
}

.demo-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #E57373; }
.dot-y { background: #F6C548; }
.dot-g { background: #66BB6A; }

.email-demo-body { padding: 1.6rem 1.8rem; }

.email-field { margin-bottom: 0.9rem; font-size: 0.85rem; }
.email-field label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.2rem;
}
.email-field .value { color: var(--color-text); }
.email-field .address {
  color: var(--color-copper);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.email-divider { border: none; border-top: 1px solid var(--color-linen-dark); margin: 1rem 0; }
.email-subject {
  font-family: 'Lora', serif;
  font-size: 1rem; font-weight: 500;
  color: var(--color-indigo);
  margin-bottom: 0.7rem;
}
.email-body-text { font-size: 0.85rem; color: var(--color-tobacco); line-height: 1.65; }

/* Fan-out delivery list */
.fanout-section {
  padding: 1rem 1.8rem 1.4rem;
  border-top: 1px solid var(--color-linen-dark);
  background: var(--color-linen);
}
.fanout-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.fanout-members { display: flex; flex-direction: column; gap: 0.4rem; }
.fanout-member { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--color-tobacco); }
.fanout-member .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-moss);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fanout-member .check svg { width: 9px; height: 9px; stroke: #fff; fill: none; stroke-width: 2.5; }
.fanout-member .check-muted { background: var(--color-sand); }
.fanout-member .check-muted svg { stroke: var(--color-tobacco); }
.fanout-overflow { color: var(--color-text-muted); font-style: italic; }
.fanout-role { color: var(--color-text-muted); font-size: 0.75em; }

.arrow-animate { animation: fadeSlide 0.5s ease forwards; opacity: 0; }
.arrow-animate:nth-child(1) { animation-delay: 0.1s; }
.arrow-animate:nth-child(2) { animation-delay: 0.3s; }
.arrow-animate:nth-child(3) { animation-delay: 0.5s; }
.arrow-animate:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ─── HOW IT WORKS (steps) ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.step { position: relative; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 800;
  color: var(--color-sand);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-icon {
  width: 48px; height: 48px;
  background: var(--color-copper);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.step-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }
.step h3 {
  font-family: 'Lora', serif;
  font-size: 1.1rem; font-weight: 500;
  color: var(--color-indigo);
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.9rem; color: var(--color-tobacco); line-height: 1.65; }
.step-connector {
  position: absolute;
  top: 24px; right: -1.2rem;
  color: var(--color-sand);
  font-size: 1.4rem;
}


/* ─── FEATURE GRID (privacy, use-case detail columns) ───────────────────── */

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(232, 132, 95, 0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.feature-title {
  font-weight: 600;
  color: var(--section-heading);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--section-muted);
  line-height: 1.5;
}


/* ─── TWO-COLUMN LAYOUT (privacy section, etc.) ─────────────────────────── */

.two-col {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}


/* ─── USE CASES ─────────────────────────────────────────────────────────── */

.walnut-section.use-cases {
  position: relative;
  overflow: hidden;
}
.walnut-section.use-cases::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(192, 94, 60, 0.12);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.use-case-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.8rem;
  transition: background 0.2s, border-color 0.2s;
}
.use-case-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(192, 94, 60, 0.4);
}

.use-case-emoji { font-size: 2rem; margin-bottom: 0.9rem; display: block; }
.use-case-address {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--color-copper-light);
  margin-bottom: 0.7rem;
  background: rgba(192, 94, 60, 0.15);
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 4px;
}

.use-case-card h3 {
  font-family: 'Lora', serif;
  font-size: 1rem; font-weight: 500;
  color: var(--color-linen);
  margin-bottom: 0.5rem;
}
.use-case-card p { font-size: 0.85rem; color: var(--color-sand); line-height: 1.6; }

/* Compact variant for secondary use-case row */
.use-case-grid-secondary {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.use-case-card-compact { padding: 1.3rem 1.5rem; }
.use-case-card-compact .use-case-emoji { font-size: 1.4rem; margin-bottom: 0.5rem; }
.use-case-card-compact .use-case-address { font-size: 0.76rem; }
.use-case-card-compact h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.use-case-card-compact p { font-size: 0.8rem; }


/* ─── TRUST BAR ─────────────────────────────────────────────────────────── */

.trust-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.trust-item { text-align: center; }
.trust-item .trust-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--color-indigo);
}
.trust-item .trust-label {
  font-size: 0.78rem;
  color: var(--color-tobacco);
  margin-top: 0.2rem;
}


/* ─── PRICING ───────────────────────────────────────────────────────────── */

.pricing-header {
  text-align: center;
  margin-bottom: 0;
}
.pricing-header .section-sub { margin: 0 auto 1.8rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--color-linen-dark);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan-card:hover { box-shadow: 0 8px 30px rgba(46, 31, 14, 0.1); }
.plan-card.featured {
  border-color: var(--color-copper);
  box-shadow: 0 4px 20px rgba(192, 94, 60, 0.15);
}
.plan-card .btn { width: 100%; justify-content: center; }

.plan-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--color-copper);
  color: #fff;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 0 0 8px 8px;
}

.plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--color-indigo);
  margin-bottom: 0.3rem;
}

.plan-price {
  font-size: 2.4rem; font-weight: 300;
  color: var(--color-indigo);
  line-height: 1;
  margin: 0.8rem 0;
}
.plan-price sup { font-size: 1rem; font-weight: 500; vertical-align: super; }
.plan-price .period { font-size: 0.9rem; color: var(--color-text-muted); font-weight: 400; }

.plan-desc {
  font-size: 0.85rem; color: var(--color-tobacco);
  margin-bottom: 1.5rem; line-height: 1.5;
}
.plan-divider { border: none; border-top: 1px solid var(--color-linen-dark); margin: 1.2rem 0; }

.plan-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.plan-features li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: var(--color-text);
}
.plan-features li .feat-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-moss-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.plan-features li .feat-icon svg { width: 9px; height: 9px; stroke: var(--color-moss); fill: none; stroke-width: 3; }

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  background: var(--color-linen-dark);
  border-radius: 99px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 0.75rem;
}
.billing-toggle-btn {
  padding: 0.45em 1.3em;
  border-radius: 99px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.billing-toggle-btn.active {
  background: #fff; color: var(--color-indigo);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.billing-toggle-btn:not(.active) { background: transparent; color: var(--color-tobacco); }

.billing-save-badge {
  background: var(--color-moss); color: #fff;
  font-size: 0.68rem; padding: 0.15em 0.55em;
  border-radius: 99px; font-weight: 700;
}

/* Annual pricing details */
.annual-price-row { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.8rem 0 0.1rem; }
.annual-price-row .plan-price { margin: 0; }
.annual-strikethrough { font-size: 0.82rem; color: var(--color-text-muted); text-decoration: line-through; }
.annual-savings { font-size: 0.82rem; color: var(--color-moss); font-weight: 600; margin-bottom: 0.7rem; }

.billing-note { font-size: 0.8rem; color: var(--color-moss); font-weight: 500; margin-bottom: 1.8rem; }

.trial-note-box {
  text-align: center;
  margin: 1.5rem auto 0;
  padding: 0.9rem 1.5rem;
  background: var(--color-linen-dark);
  border-radius: 10px;
  max-width: 520px;
}
.trial-note-box p { font-size: 0.82rem; color: var(--color-tobacco); line-height: 1.55; }

.monthly-fine-print { text-align: center; margin-top: 1.5rem; }
.monthly-fine-print p { font-size: 0.82rem; color: var(--color-text-muted); font-style: italic; }

.pricing-disclaimer { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--color-text-muted); font-style: italic; }

.custom-plan-box {
  margin: 3rem auto 0;
  max-width: 640px;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 2px dashed var(--color-copper-light);
  border-radius: 16px;
  text-align: center;
}
.custom-plan-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--color-tobacco);
}
.custom-plan-box p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.custom-plan-box a { color: var(--color-copper); }
.custom-plan-box .btn { display: inline-flex; }


/* ─── CTA SECTION ───────────────────────────────────────────────────────── */

.terra-section.cta-section {
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.terra-section.cta-section::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.terra-section.cta-section::after {
  content: '';
  position: absolute;
  top: -40px; right: 10%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--section-heading);
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--section-text);
  margin-bottom: 2rem;
  position: relative;
}


/* ─── FOOTER ────────────────────────────────────────────────────────────── */

footer {
  background: var(--color-indigo);
  color: var(--color-sand);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 800;
  color: var(--color-linen);
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--color-copper-light); }

.footer-tagline { font-size: 0.82rem; color: var(--color-sand); opacity: 0.7; }

.footer-links { display: flex; gap: 3rem; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-copper-light);
  margin-bottom: 0.8rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-sand); opacity: 0.75;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: opacity 0.15s;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: var(--color-sand); opacity: 0.5;
  display: flex;
  justify-content: space-between;
}


/* ─── ANIMATIONS ────────────────────────────────────────────────────────── */

/* Hero text entrance */
.hero-slide.active .hero-text > * {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}
.hero-slide.active .hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-slide.active .hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-slide.active .hero-text > *:nth-child(3) { animation-delay: 0.25s; }
.hero-slide.active .hero-text > *:nth-child(4) { animation-delay: 0.30s; }
.hero-slide.active .hero-text > *:nth-child(5) { animation-delay: 0.35s; }
.hero-slide.active .hero-visual {
  animation: fadeUp 0.7s 0.1s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Inline code */
.inline-code {
  font-size: 0.82em;
  color: var(--color-copper);
  background: var(--color-linen-dark);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}


/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
  .hero-visual { order: 1; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-grid-secondary { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .trust-inner { gap: 2rem; }
}
