/* ═══════════════════════════════════════════════════════
   AutoBook Landing Page — Warm Light Premium Aesthetic
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Warm light palette */
  --bg-cream: #FAF7F2;
  --bg-warm: #F3EDE4;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FEFCF9;
  --border: rgba(26, 22, 18, 0.08);
  --border-hover: rgba(26, 22, 18, 0.14);

  /* Terracotta accent spectrum */
  --accent: #BF5B2E;
  --accent-light: #D4845B;
  --accent-lighter: #E8B89A;
  --accent-bg: rgba(191, 91, 46, 0.06);
  --accent-bg-strong: rgba(191, 91, 46, 0.10);
  --accent-glow: rgba(191, 91, 46, 0.12);
  --accent-glow-strong: rgba(191, 91, 46, 0.20);

  /* Text on light */
  --text-primary: #1A1612;
  --text-secondary: #6B6560;
  --text-tertiary: #9C9590;
  --text-accent: var(--accent);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(5rem, 12vw, 9rem);
  --container-max: 1100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Subtle grain texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: rgba(250, 247, 242, 0.85);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text-primary);
}
.logo-wordmark { height: 22px; width: auto; }
.logo-wordmark--sm { height: 18px; }
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--section-pad) + 3rem) 0 var(--section-pad);
  overflow: hidden;
  background: var(--bg-cream);
}

/* Warm ambient gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 132, 91, 0.15), transparent 70%);
  top: -15%; right: -8%;
  animation: orb-drift 22s ease-in-out infinite;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(191, 91, 46, 0.08), transparent 70%);
  bottom: -10%; left: -12%;
  animation: orb-drift 28s ease-in-out infinite reverse;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232, 184, 154, 0.12), transparent 70%);
  top: 35%; left: 45%;
  animation: orb-drift 18s ease-in-out infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.125rem;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: var(--bg-surface);
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.04);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3D9A50;
  box-shadow: 0 0 8px rgba(61, 154, 80, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #C97B4B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

/* --- Hero Form --- */
.hero-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow:
    0 1px 2px rgba(26, 22, 18, 0.04),
    0 4px 16px rgba(26, 22, 18, 0.04),
    0 12px 48px rgba(26, 22, 18, 0.06);
}

.phone-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}
.phone-input-wrapper .icon-phone {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}
.phone-input {
  width: 100%;
  padding: 1.125rem 1.25rem 1.125rem 3.25rem;
  background: var(--bg-cream);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.phone-input::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-body);
  letter-spacing: 0;
}
.phone-input:focus {
  border-color: var(--accent);
  background: #FFFDFB;
  box-shadow: 0 0 0 3px var(--accent-glow), 0 2px 12px var(--accent-glow);
}

/* Optional fields toggle */
.optional-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.optional-toggle:hover { color: var(--text-secondary); }
.optional-toggle svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.optional-toggle.open svg {
  transform: rotate(180deg);
}

.optional-fields {
  display: grid;
  gap: 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              margin 0.3s ease;
  opacity: 0;
  margin-bottom: 0;
}
.optional-fields.open {
  max-height: 400px;
  opacity: 1;
  margin-bottom: 1rem;
}

.field-input,
.field-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239C9590' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  background-color: var(--bg-cream);
}
.field-input::placeholder { color: var(--text-tertiary); }
.field-input:focus,
.field-select:focus {
  border-color: var(--accent);
  background: #FFFDFB;
}

/* TCPA consent */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-row label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  cursor: pointer;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s, opacity 0.2s;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-submit:hover::before {
  transform: translateX(100%);
}
.btn-submit:hover {
  transform: translateY(-1px);
  background: #A84E27;
  box-shadow: 0 6px 24px var(--accent-glow-strong), 0 0 0 1px rgba(191, 91, 46, 0.15);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Post-submit confirmation --- */
.confirmation {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.confirmation.active {
  display: block;
  animation: fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}
.confirmation-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}
.confirmation-icon::before,
.confirmation-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent-lighter);
  animation: ring-expand 2s ease-out infinite;
}
.confirmation-icon::after {
  animation-delay: 1s;
}
@keyframes ring-expand {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.confirmation h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.confirmation p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}
.confirmation .countdown {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════
   SECTIONS — Shared
   ═══════════════════════════════════════ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover) 50%, transparent);
  margin: 0 auto;
  max-width: var(--container-max);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-desc {
  color: var(--text-secondary);
  max-width: 540px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

.step {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.step:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(26, 22, 18, 0.06), 0 12px 48px rgba(26, 22, 18, 0.04);
  transform: translateY(-2px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.step-number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-hover);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.step-icon svg { width: 24px; height: 24px; }

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Connector lines between steps (desktop) */
@media (min-width: 769px) {
  .steps { position: relative; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4.5rem;
    right: -1rem;
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--border-hover), transparent);
  }
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 22, 18, 0.05);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.pricing-section {
  text-align: center;
  background: var(--bg-warm);
}

.pricing-card {
  max-width: 480px;
  margin: 3rem auto 0;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(26, 22, 18, 0.04),
    0 8px 32px rgba(26, 22, 18, 0.06);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-free {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.pricing-amount span {
  font-family: var(--font-mono);
  color: var(--accent);
}
.pricing-unit {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-perks {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.pricing-perks li:last-child { border-bottom: none; }
.pricing-perks li svg {
  width: 18px;
  height: 18px;
  color: #3D9A50;
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
}
.btn-pricing:hover {
  transform: translateY(-1px);
  background: #A84E27;
  box-shadow: 0 6px 24px var(--accent-glow-strong);
}

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq-list {
  max-width: 680px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}
.faq-item.open .faq-question svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
  background: var(--bg-warm);
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}
.btn-cta-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
}
.btn-cta-scroll:hover {
  transform: translateY(-1px);
  background: #A84E27;
  box-shadow: 0 6px 24px var(--accent-glow-strong);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--bg-cream);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .footer .container { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; gap: 1rem; }
}

/* ═══════════════════════════════════════
   FORM ERROR & SPINNER
   ═══════════════════════════════════════ */
.form-error {
  color: #C53030;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  display: none;
}
.form-error.visible { display: block; }

.btn-submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .spinner { display: inline-block; }

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