/* ============================================================================
   SITEBLOOM — styles.css
   Mobile-first. Premium SaaS × clean agency. Animate transform/opacity only.
   ----------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives (container, section, grid)
   4.  Typography
   5.  Buttons & links
   6.  Header / nav
   7.  Hero
   8.  Trust strip
   9.  How it works (timeline)
   10. What's included
   11. Why online
   12. Examples (mockups + before/after slider)
   13. Pricing
   14. Testimonials
   15. FAQ
   16. Lead form
   17. Footer
   18. Mobile menu + sticky bottom bar
   19. Reveal animations
   20. Utilities, 404, reduced motion
   ========================================================================== */

/* ── 1. Design tokens ────────────────────────────────────────────────────── */
:root {
  --emerald: #10B981;
  --emerald-dark: #047857;
  --teal: #0EA5A4;
  --coral: #FF6B4A;        /* bright brand accent (underlines, stars, tags) */
  --coral-dark: #E85539;
  --cta: #CF3E1E;          /* CTA fill — white text = 4.82:1, passes WCAG AA */
  --cta-hover: #B5331A;    /* CTA hover — darker, also AA */
  --error: #B42318;        /* form error text — 6.6:1 on white */
  --accent-text: #047857;  /* solid highlight colour for headline accents (5.3:1 on white) */
  --ink: #0F172A;
  --slate: #475569;
  --mint: #F0FBF6;
  --cloud: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;

  --grad-accent: linear-gradient(135deg, #10B981, #0EA5A4);
  --grad-coral: linear-gradient(135deg, #FF7A5C, #FF6B4A);
  --grad-bloom: linear-gradient(135deg, #10B981 0%, #0EA5A4 45%, #FF6B4A 120%);

  /* Spacing scale (4/8/12/16/24/32/48/64/96/128) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --section-pad: clamp(4rem, 8vw, 8rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --r-card: 22px;
  --r-btn: 12px;
  --r-input: 12px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 4px 16px -4px rgba(15, 23, 42, .10);
  --sh-card: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px -12px rgba(16, 185, 129, .20);
  --sh-cta: 0 8px 22px -6px rgba(255, 107, 74, .45);
  --sh-cta-hover: 0 14px 30px -6px rgba(255, 107, 74, .55);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;

  --fs-body: clamp(1.0625rem, 0.4vw + 1rem, 1.125rem);
}

/* ── 2. Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--emerald-dark); text-decoration: none; }
ul { list-style: none; padding: 0; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--r-btn);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── 3. Layout primitives ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--mint { background: var(--mint); }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: var(--white); }

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { color: var(--slate); margin-top: var(--s-4); }

/* Lucide icon defaults (prevent oversize flash before hydration) */
.icon { flex-shrink: 0; }
.eyebrow svg { width: 16px; height: 16px; }
.testimonial__stars svg { fill: currentColor; }
.hero__cta .btn svg, .lead__points svg { stroke-width: 2.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emerald-dark);
  background: rgba(16, 185, 129, .10);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}
.section--ink .eyebrow { color: #6EE7B7; background: rgba(16, 185, 129, .16); }

/* ── 4. Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, .display {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
  text-wrap: balance;
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }

h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
.lead { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); color: var(--slate); }
small, .small { font-size: .875rem; }
.text-grad { color: var(--accent-text); }

/* ── 5. Buttons & links ──────────────────────────────────────────────────── */
.btn {
  --lift: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  text-align: center;
  white-space: nowrap;
  transform: translateY(var(--lift));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }

.btn--primary {
  background: var(--cta);
  color: var(--white);
  box-shadow: var(--sh-cta);
}
.btn--primary:hover { --lift: -3px; background: var(--cta-hover); box-shadow: var(--sh-cta-hover); }
.btn--primary:active { --lift: -1px; }

.btn--secondary {
  background: var(--white);
  color: var(--emerald-dark);
  border: 2px solid var(--emerald);
  box-shadow: var(--sh-sm);
}
.btn--secondary:hover { --lift: -3px; background: var(--mint); box-shadow: var(--sh-md); }

.btn--ghost { color: var(--ink); padding-inline: 8px; }
.btn--lg { min-height: 58px; padding-inline: 34px; font-size: 1.125rem; }
.btn--block { display: flex; width: 100%; }

/* Animated underline link */
.link-underline {
  position: relative;
  font-weight: 600;
  color: var(--emerald-dark);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ── 6. Header / nav ─────────────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }

/* Brand lockup: AI-generated mark + crisp live wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { height: 38px; width: 38px; }
.brand__name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand--light .brand__name { color: var(--white); }

.header__nav { display: none; }
.header__nav ul { display: flex; align-items: center; gap: var(--s-8); }
.header__nav a {
  font-weight: 600;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); }
.header__nav a:hover { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: var(--s-4); }

/* Scrolled state */
.header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 8px 30px -16px rgba(15, 23, 42, .25);
  height: 66px;
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border-radius: 12px;
  padding: 12px;
}
.hamburger span {
  display: block; height: 2.5px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease), background-color .35s var(--ease);
}
body.menu-open .hamburger span { background: var(--ink); }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* On phones the header CTA is redundant (hamburger menu + sticky bottom bar both
   carry it) and the long label clips — hide it below the hamburger breakpoint. */
@media (max-width: 899px) {
  .header__actions .btn--primary { display: none; }
}

/* ── 7. Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(14, 165, 164, .12), transparent 60%),
    radial-gradient(70% 60% at 15% 10%, rgba(16, 185, 129, .14), transparent 55%),
    linear-gradient(180deg, var(--mint), var(--white) 70%);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
/* min-width:0 stops the hero image's intrinsic size from blowing out the grid
   track (which clipped the subhead/trust text on narrow phones). */
.hero__content, .hero__visual { min-width: 0; }
.hero__content { max-width: 640px; }
.hero h1 { margin-bottom: var(--s-6); }
.hero h1 .text-grad { display: inline; }
.hero__sub { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--slate); margin-bottom: var(--s-8); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.hero__cta .micro { color: var(--slate); font-size: .9rem; }

.hero__visual {
  position: relative;
}
.hero__visual img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(16, 185, 129, .22));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
/* Soft floating bloom orbs behind hero visual */
.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
  opacity: .55;
}
.hero__visual::before {
  width: 120px; height: 120px;
  top: -10px; right: 4%;
  background: var(--grad-coral);
  animation: floaty 5s ease-in-out infinite;
}
.hero__visual::after {
  width: 90px; height: 90px;
  bottom: 8%; left: -2%;
  background: var(--grad-accent);
  animation: floaty 6.5s ease-in-out infinite reverse;
}

/* ── 8. Trust strip ──────────────────────────────────────────────────────── */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-8);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
}
.trust li svg { width: 18px; height: 18px; color: var(--emerald); flex-shrink: 0; }

/* ── 9. How it works (timeline) ──────────────────────────────────────────── */
.steps {
  position: relative;
  display: grid;
  gap: var(--s-12);
  counter-reset: step;
}
/* Connecting line (vertical on mobile) */
.steps::before {
  content: "";
  position: absolute;
  left: 27px; top: 28px; bottom: 28px;
  width: 3px;
  background: var(--border);
  border-radius: 2px;
}
.steps::after {
  content: "";
  position: absolute;
  left: 27px; top: 28px;
  width: 3px;
  height: var(--fill, 0%);
  max-height: calc(100% - 56px);
  background: var(--grad-accent);
  border-radius: 2px;
  transition: height 1s var(--ease);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-6);
  align-items: start;
}
.step__num {
  counter-increment: step;
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--slate);
  transition: border-color .5s var(--ease), color .5s var(--ease), background-color .5s var(--ease), transform .5s var(--ease);
}
.step__num::before { content: counter(step); }
.step.in-view .step__num {
  border-color: transparent;
  background: var(--grad-accent);
  color: var(--white);
  transform: scale(1.05);
}
.step__body h3 { margin-bottom: var(--s-2); }
.step__body p { color: var(--slate); }

/* ── 10. What's included ─────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-card); }
.feature__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--emerald-dark);
  margin-bottom: var(--s-4);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.feature p { color: var(--slate); font-size: 1rem; }

/* ── 11. Why online ──────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-8);
}
.why-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--sh-card);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease);
}
.why-card:hover { transform: translateY(-6px); }
.why-card__tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}
.why-card p { color: var(--slate); }

/* ── 12. Examples (mockups + slider) ─────────────────────────────────────── */
.mockups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.mockup {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--sh-card);
  border: 1px solid var(--border);
}
.mockup img {
  width: 100%;
  transition: transform .6s var(--ease);
}
.mockup:hover img { transform: scale(1.05); }
.mockup__label {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(15, 23, 42, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-weight: 600;
  font-size: .875rem;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.mockup:hover .mockup__label { transform: translateY(0); opacity: 1; }

/* Before/after slider */
.ba {
  --pos: 50%;
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-card);
  user-select: none;
  touch-action: pan-y;
  aspect-ratio: 16 / 10;
  background: var(--cloud);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__tag {
  position: absolute; top: 14px;
  font-size: .8rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-pill);
  color: var(--white);
  letter-spacing: .04em;
}
.ba__tag--before { left: 14px; background: rgba(15, 23, 42, .7); }
.ba__tag--after { right: 14px; background: var(--emerald-dark); }
.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .1);
}
.ba__grip {
  position: absolute; top: 50%; left: var(--pos);
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--sh-md);
  display: grid; place-items: center;
  cursor: ew-resize;
  color: var(--emerald-dark);
}
.ba__grip svg { width: 24px; height: 24px; }
/* "it's draggable" affordances: a hint pill + a pulsing ring on the grip */
.ba__hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; z-index: 3;
  background: rgba(15, 23, 42, .8); color: #fff;
  font-weight: 600; font-size: .82rem; white-space: nowrap;
  padding: 8px 15px; border-radius: var(--r-pill); box-shadow: var(--sh-md);
  pointer-events: none; transition: opacity .4s var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ba__hint svg { width: 16px; height: 16px; }
.ba.is-touched .ba__hint { opacity: 0; }
.ba__grip::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, .55); pointer-events: none;
  animation: gripPulse 2.2s ease-out infinite;
}
.ba.is-touched .ba__grip::before { animation: none; opacity: 0; }
@keyframes gripPulse { 0% { transform: scale(.85); opacity: .85; } 100% { transform: scale(1.7); opacity: 0; } }
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  margin: 0;
}
/* Visible keyboard-focus indicator (the input itself is transparent). */
.ba__range:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; }
.ba:has(.ba__range:focus-visible) .ba__grip { box-shadow: 0 0 0 4px rgba(16, 185, 129, .5), var(--sh-md); }

/* ── 13. Pricing ─────────────────────────────────────────────────────────── */
.pricing-wrap { display: grid; place-items: center; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--s-8);
  font-weight: 600;
  color: var(--slate);
}
.toggle__label { position: relative; }
.toggle__label.is-active { color: var(--ink); }
.toggle__switch {
  position: relative;
  width: 58px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--border);
  transition: background-color .3s var(--ease);
}
.toggle__switch[aria-checked="true"] { background: var(--emerald); }
.toggle__switch::after {
  content: "";
  position: absolute; top: 4px; left: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease);
}
.toggle__switch[aria-checked="true"]::after { transform: translateX(26px); }
/* Floated above "Yearly" so it never reserves layout space (keeps the toggle centred). */
.badge-save {
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  background: var(--cta); /* darker coral — white text passes WCAG AA (4.82:1) */
  color: var(--white);
  font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-pill);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(-50%) translateY(4px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.badge-save.is-shown { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

.price-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-card);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--grad-bloom);
}
.price-card__amount {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  margin: var(--s-2) 0 var(--s-4);
}
.price-card__num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 4.25rem);
  line-height: 1;
  color: var(--ink);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.price-card__num.is-swapping { opacity: 0; transform: translateY(8px); }
.price-card__per { color: var(--slate); font-weight: 600; font-size: 1.125rem; }
.price-card__note { color: var(--slate); min-height: 1.5em; }
.price-card ul { display: grid; gap: var(--s-3); text-align: left; margin: var(--s-8) 0; }
.price-card li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.price-card li svg { width: 20px; height: 20px; color: var(--emerald); flex-shrink: 0; }
.price-card .btn { margin-top: var(--s-2); }
.price-card__sub { font-size: .9rem; color: var(--slate); margin-top: var(--s-4); }

/* ── 14. Testimonials ────────────────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.testimonial {
  background: var(--white);
  border-radius: var(--r-card);
  border: 1px dashed var(--border);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--sh-sm);
}
.testimonial__stars { display: flex; gap: 3px; color: var(--coral); margin-bottom: var(--s-4); }
.testimonial__stars svg { width: 20px; height: 20px; }
.testimonial blockquote { font-size: 1.125rem; color: var(--slate); font-style: italic; }
.testimonial__who { display: flex; align-items: center; gap: 12px; margin-top: var(--s-6); }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); display: grid; place-items: center;
  color: var(--emerald-dark); font-weight: 700;
}
.testimonial__who strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; }
.testimonial__who span { color: var(--slate); font-size: .875rem; }
.placeholder-note {
  text-align: center; color: var(--slate); font-size: .9rem; margin-top: var(--s-8);
}

/* ── 15. FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%;
  padding: var(--s-6) 0;
  text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}
.faq__q svg {
  width: 22px; height: 22px;
  color: var(--emerald);
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
/* Default OPEN so no-JS visitors can read every answer; JS collapses into an accordion. */
.faq__a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease);
}
.js .faq__a { grid-template-rows: 0fr; }
.faq__a-inner { overflow: hidden; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { color: var(--slate); padding-bottom: var(--s-6); }

/* ── 16. Lead form ───────────────────────────────────────────────────────── */
.lead {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(16, 185, 129, .10), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(255, 107, 74, .08), transparent 55%),
    var(--cloud);
}
.lead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.lead__intro h2 { margin-bottom: var(--s-4); }
.lead__intro p { color: var(--slate); }
.lead__points { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.lead__points li { display: flex; gap: 12px; align-items: flex-start; }
.lead__points svg { width: 22px; height: 22px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }

.form-card {
  background: var(--white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__glabel { font-weight: 600; font-size: .9375rem; }
.field label .req { color: var(--coral); }
.field .hint { font-size: .8rem; color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  background: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--coral);
}
.field .error-msg { color: var(--error); font-size: .8rem; min-height: 0; display: none; }
.field.has-error .error-msg { display: block; }

/* honeypot — visually & semantically hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Default OPEN without JS (the URL field is just visible); JS reveals it on demand. */
.conditional {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease);
}
.js .conditional { grid-template-rows: 0fr; }
.conditional > div { overflow: hidden; }
.js .conditional.is-open { grid-template-rows: 1fr; }

.form-alert {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  padding: 14px 16px;
  border-radius: var(--r-input);
  margin-bottom: var(--s-4);
  font-size: .95rem;
}
.form-foot { text-align: center; font-size: .875rem; color: var(--slate); margin-top: var(--s-4); }
.form-consent { text-align: center; font-size: .8rem; color: var(--slate); margin-top: var(--s-3); }

.segmented {
  display: inline-flex;
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  padding: 4px;
  gap: 4px;
}
.segmented input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  opacity: 0; pointer-events: none;
  clip: rect(0 0 0 0);
}
.segmented label {
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.segmented input:checked + label { background: var(--white); color: var(--emerald-dark); box-shadow: var(--sh-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--emerald); outline-offset: 2px; }

/* Grouped form steps — numbered, lightly separated for a calmer, more modern read */
.fgroup { border: 0; padding: 0; margin: 0; min-width: 0; }
.fgroup + .fgroup { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.fgroup__head {
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin-bottom: var(--s-4);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700; font-size: 1.0625rem; color: var(--ink);
}
.fgroup__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--emerald); color: #fff;
  font-size: .8rem; font-weight: 700;
}
.field__note {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: .82rem; line-height: 1.45; color: var(--slate);
}
.field__note svg { width: 15px; height: 15px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.form-submit { margin-top: var(--s-6); }

/* Optional-details expander — keeps the form short and inviting by default */
.form-more__toggle {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  width: 100%; margin-top: var(--s-4);
  padding: 12px 15px;
  background: var(--cloud);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-input);
  font: inherit; font-weight: 600; color: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form-more__toggle:hover { border-color: var(--emerald); background: var(--mint); }
.form-more__toggle:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
.form-more__toggle svg { width: 18px; height: 18px; color: var(--emerald); flex-shrink: 0; transition: transform .25s var(--ease); }
.form-more__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.form-more__label { font-weight: 700; }
.form-more__toggle .hint { font-weight: 400; font-size: .82rem; }
.form-more__grid { padding-top: var(--s-4); }

/* ── Legal pages (privacy, terms) ─────────────────────────────────────────── */
.legal-bar { border-bottom: 1px solid var(--border); background: var(--white); }
.legal-bar__inner { display: flex; align-items: center; justify-content: space-between; padding-block: var(--s-4); }
.legal-bar__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--slate); }
.legal-bar__back:hover { color: var(--emerald-dark); }
.legal-bar__back svg { width: 18px; height: 18px; }
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: var(--s-3) 0 var(--s-2); }
.legal__updated { color: var(--slate); font-size: .9rem; margin-bottom: var(--s-8); }
.legal h2 { font-size: 1.3rem; margin: var(--s-8) 0 var(--s-3); }
.legal p { margin-bottom: var(--s-4); max-width: 68ch; }
.legal ul { margin: 0 0 var(--s-4) 1.25rem; display: grid; gap: 8px; }
.legal li { line-height: 1.6; }
.legal a:not(.link-underline) { color: var(--emerald-dark); text-decoration: underline; }
.legal__foot { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--border); color: var(--slate); }
.footer--slim { padding-block: var(--s-8); }

/* Before / after — section heading + drag prompt */
.ba-head { text-align: center; max-width: 48ch; margin: var(--s-16) auto var(--s-6); }
.ba-head h3 { font-size: clamp(1.35rem, 3.5vw, 1.85rem); margin-bottom: 8px; }
.ba-head p {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--slate); font-size: .95rem; margin: 0;
}
.ba-head p svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; }

/* ── 17. Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__top { display: grid; gap: var(--s-8); margin-bottom: var(--s-12); }
.footer__brand img { height: 36px; margin-bottom: var(--s-4); }
.footer__brand p { max-width: 38ch; }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 480px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.footer__nav a { overflow-wrap: anywhere; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: var(--s-4); }
.footer a { color: rgba(255, 255, 255, .72); transition: color .25s var(--ease); }
.footer a:hover { color: var(--white); }
.footer__nav li { margin-bottom: var(--s-3); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  font-size: .875rem;
  align-items: center;
}
.footer__bottom .dot { opacity: .4; }

/* ── 18. Mobile menu + sticky bottom bar ─────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .45s var(--ease), opacity .35s var(--ease), visibility .45s;
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: .08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .14s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .20s; }
.mobile-menu .btn { margin-top: var(--s-6); }

.bottom-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  transition: transform .4s var(--ease);
}
.bottom-bar.is-shown { transform: translateY(0); }
/* Clearance so the fixed bar never hides the footer's last line on mobile. */
@media (max-width: 899px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* ── 19. Reveal animations ───────────────────────────────────────────────── */
/* Reveals only hide when JS is active (.js set by an inline head script), so
   no-JS visitors and crawlers always see content — progressive enhancement. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
/* staggered children */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

.js .hero [data-anim] {
  opacity: 0;
  transform: translateY(20px);
}
.hero.is-ready [data-anim] {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hero.is-ready [data-anim="1"] { transition-delay: .05s; }
.hero.is-ready [data-anim="2"] { transition-delay: .18s; }
.hero.is-ready [data-anim="3"] { transition-delay: .31s; }
.hero.is-ready [data-anim="4"] { transition-delay: .44s; }
.hero.is-ready [data-anim="visual"] { transition-delay: .25s; transition-duration: 1s; }

/* ── 20. Utilities, 404, reduced motion ──────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--s-8); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(16, 185, 129, .12), transparent 60%),
    linear-gradient(180deg, var(--mint), var(--white));
}
.status-page__inner { max-width: 560px; }
.status-page img { height: 44px; margin: 0 auto var(--s-8); }
.status-page .code {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 8rem);
  line-height: 1;
  color: var(--accent-text);
}
.status-page p { color: var(--slate); margin: var(--s-4) 0 var(--s-8); }
.status-page .btn-row { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }

/* ── Responsive: tablet & up ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .mockups { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  .header__nav { display: block; }
  .hamburger { display: none; }
  .bottom-bar { display: none; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .mockups { grid-template-columns: repeat(3, 1fr); }
  .lead__grid { grid-template-columns: .9fr 1.1fr; }
  .steps { gap: clamp(2rem, 4vw, 3rem); }
}

/* Steps: horizontal timeline on wide screens */
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
  /* line runs centre-to-centre of the first & last circle (ends tuck behind them) */
  .steps::before { left: 16.66%; right: 16.66%; top: 28px; bottom: auto; height: 3px; width: auto; }
  .steps::after {
    left: 16.66%; right: auto; top: 28px; bottom: auto;
    height: 3px; width: var(--fill, 0%); max-height: none;
    max-width: 66.66%;
    transition: width 1.1s var(--ease);
  }
  /* centre everything in each column so number, illustration, heading + text line up */
  .step { grid-template-columns: 1fr; gap: var(--s-4); text-align: center; justify-items: center; }
  .step__num { margin: 0 auto var(--s-2); }
  .step__art { margin-inline: auto; }
  .step__body { max-width: 30ch; margin-inline: auto; }
}

/* ── prefers-reduced-motion: kill non-essential motion ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero [data-anim] { opacity: 1 !important; transform: none !important; }
  .hero__visual img, .hero__visual::before, .hero__visual::after { animation: none !important; }
}
