/* ============================================================
   Ellies Reception — Virtual Receptionist / Call Answering Service
   Design tokens + base styles
   ============================================================ */

:root {
  /* Color tokens (AA-checked against their intended backgrounds) */
  --color-coral: #c93f2c;
  --color-coral-dark: #a8331f;
  --color-coral-light: #fdece7;
  --color-coral-soft: #fff3ee;
  --color-navy: #1f2a37;
  --color-navy-soft: #33404f;
  --color-slate: #4b5563;
  --color-muted: #6b7280;
  --color-cream: #fff8f2;
  --color-white: #ffffff;
  --color-border: #f0e1d8;
  --color-border-strong: #e8cfc0;
  --color-star: #f5a623;
  --color-success: #16a34a;
  --color-success-bg: #eefbf2;
  --color-focus: #0369a1;

  /* Typography */
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;

  /* Spacing scale (4/8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius / shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, 0.06), 0 1px 3px rgba(31, 42, 55, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 42, 55, 0.10);
  --shadow-lg: 0 24px 48px rgba(31, 42, 55, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;

  --container-w: 1160px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-slate);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-coral);
  background: var(--color-coral-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  margin-bottom: var(--space-4);
}

.section-head p {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.bg-cream {
  background: var(--color-cream);
}

.bg-navy {
  background: var(--color-navy);
  color: #cbd3dc;
}

.bg-navy h2, .bg-navy h3 {
  color: var(--color-white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  min-height: 48px;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-coral-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
  background: var(--color-cream);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-coral);
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 40px;
}

a.btn,
button.btn {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: var(--space-5);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-coral);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark .icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: var(--space-6);
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy-soft);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
}

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

.mobile-nav .btn {
  margin-top: var(--space-3);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-9);
  background: radial-gradient(120% 100% at 100% 0%, var(--color-coral-soft) 0%, var(--color-cream) 45%, var(--color-white) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.3vw, 3.4rem);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.hero-copy h1 .accent {
  color: var(--color-coral);
}

.hero-copy > p {
  font-size: 1.15rem;
  color: var(--color-slate);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.92rem;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
}

.stars .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy-soft);
}

.trust-badge .icon {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* Hero visual mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-blob {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-coral) 0%, #f2836f 100%);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  opacity: 0.14;
  filter: blur(2px);
}

.call-card {
  position: relative;
  width: min(360px, 100%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  z-index: 2;
}

.call-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.avatar-ring {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-coral);
  flex-shrink: 0;
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-coral);
  opacity: 0.35;
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.5; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.call-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.98rem;
}

.call-card-sub {
  font-size: 0.82rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.call-transcript {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 0.88rem;
  color: var(--color-navy-soft);
  margin-bottom: var(--space-4);
  line-height: 1.55;
}

.call-transcript strong {
  color: var(--color-navy);
}

.booked-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-success-bg);
  border: 1px solid #cdeed9;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.booked-chip .icon {
  color: var(--color-success);
  width: 20px;
  height: 20px;
}

.booked-chip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-navy);
}

.booked-chip span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.float-chip {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-navy);
  z-index: 3;
}

.float-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--color-coral);
}

.float-chip--number {
  top: -6px;
  left: -18px;
}

@media (max-width: 480px) {
  .float-chip--number {
    left: 0;
    font-size: 0.72rem;
    padding: var(--space-2) var(--space-3);
  }
}

/* ---------- Industry strip ---------- */
.industry-strip {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.industry-strip p {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.industry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy-soft);
}

.industry-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--color-coral);
}

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.value-card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-coral-light);
  color: var(--color-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.value-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

.feature-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-cream);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 var(--space-3);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-md);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.step p {
  font-size: 0.92rem;
  color: var(--color-muted);
  max-width: 30ch;
  margin: 0 auto;
}

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: 0 auto var(--space-7);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy-soft);
}

/* The button itself is 44px tall to meet the minimum touch-target size,
   even though the visible track (::before) stays a slim 30px — the extra
   height is invisible tap padding, not a visual change. */
.switch {
  position: relative;
  width: 52px;
  height: 44px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.switch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 52px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  transition: background-color var(--dur-base) var(--ease-out);
}

.switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  transition: transform var(--dur-base) var(--ease-out);
}

.switch[aria-checked="true"]::before {
  background: var(--color-coral);
}

.switch[aria-checked="true"]::after {
  transform: translateY(-50%) translateX(22px);
}

.save-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.price-card--popular {
  border: 2px solid var(--color-coral);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}

.price-card .plan-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  min-height: 40px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-1);
}

.price-amount .num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-navy);
}

.price-amount .unit {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.price-card .price-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-navy-soft);
}

.price-features .icon {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.pricing-note a {
  color: var(--color-coral);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
}

.faq-question .icon {
  color: var(--color-coral);
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}

.faq-item[data-open="true"] .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}

.faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-coral) 0%, #de6a4f 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  margin: 0 var(--space-5);
}

.cta-band h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  margin-bottom: var(--space-3);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin: 0 auto var(--space-6);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ---------- Lead form ---------- */
.lead-section {
  padding: var(--space-9) 0;
}

.lead-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}

.lead-info h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin-bottom: var(--space-4);
}

.lead-info p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.lead-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lead-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.95rem;
  color: var(--color-navy-soft);
}

.lead-info-list .icon {
  color: var(--color-coral);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-2 {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-navy);
}

.form-field .required {
  color: var(--color-coral);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-navy);
  min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px var(--color-coral-light);
  outline: none;
}

.form-field input:invalid[data-touched="true"],
.form-field select:invalid[data-touched="true"] {
  border-color: #dc2626;
}

.field-error {
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 16px;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.form-consent {
  display: flex;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--color-muted);
  align-items: flex-start;
}

.form-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-status {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-bg);
  border: 1px solid #cdeed9;
  color: #14532d;
  font-size: 0.92rem;
}

.form-status.is-visible {
  display: flex;
}

.form-status .icon {
  color: var(--color-success);
  flex-shrink: 0;
}

.form-submit-error {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  font-size: 0.92rem;
}

.form-submit-error.is-visible {
  display: block;
}

/* Honeypot field for spam prevention — invisible to real visitors,
   left unfilled by them; bots that auto-fill every field tend to
   trip it, which Web3Forms uses to silently discard the submission. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Legal pages (Privacy Policy / Terms of Service) ---------- */
.legal-page {
  padding: var(--space-8) 0 var(--space-9);
}

.legal-header {
  max-width: 70ch;
  margin: 0 auto var(--space-7);
}

.legal-header h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  margin-bottom: var(--space-3);
}

.legal-header p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 70ch;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: var(--space-4);
  color: var(--color-slate);
}

.legal-content ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-content ul li {
  list-style: disc;
  color: var(--color-slate);
}

.legal-content a {
  color: var(--color-coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content strong {
  color: var(--color-navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #aab3bf;
  padding: var(--space-8) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--space-7);
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.92rem;
  margin-bottom: var(--space-5);
}

.social-row {
  display: flex;
  gap: var(--space-3);
}

.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3b4655;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.social-row a:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
}

.social-row .icon {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 0.92rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.92rem;
}

.footer-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--color-coral);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-cta {
  margin-top: var(--space-4);
}

.footer-bottom {
  border-top: 1px solid #33404f;
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  z-index: 90;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Ultra-narrow screen safety (<480px) ----------
   Widened from 380px because "Ellies Reception" is a longer wordmark
   than the original placeholder brand — needs more room to breathe
   before the header gets cramped. */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .site-header .container {
    gap: var(--space-3);
  }

  .logo {
    font-size: 1.1rem;
    gap: 6px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .logo-mark .icon {
    width: 16px;
    height: 16px;
  }

  .btn-sm {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* Below ~420px even the trimmed header CTA + hamburger can't coexist
   with the full wordmark; drop the header CTA and rely on the
   "Get Started" button inside the mobile menu drawer instead. */
@media (max-width: 420px) {
  .header-actions .btn.btn-sm {
    display: none;
  }
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 640px) {
  .value-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero-copy > p {
    font-size: 1.2rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .value-grid,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lead-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cta-band {
    margin: 0 var(--space-8);
  }
}
