/* ==========================================================================
   Scale Mint — Site stylesheet
   Built strictly on tokens.css. No raw hex values below except where a
   token is being composed into a gradient or translucent layer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur-slow) var(--ease-standard),
              color var(--dur-slow) var(--ease-standard);
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--brand-strong); text-decoration: none; transition: color var(--dur-base) var(--ease-standard); }
a:hover { color: var(--mint-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-xs);
}

::selection { background: var(--mint-200); color: var(--ink-900); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 999;
  background: var(--ink-900);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.section { padding-block: var(--section-py); position: relative; }
.section--subtle { background: var(--surface-subtle); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

/* Dark bands break up the scroll */
.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-muted); }

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

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* --------------------------------------------------------------------------
   3. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}
.section--dark .eyebrow { color: var(--mint-300); }
.section--dark .eyebrow::before { background: var(--mint-300); }

.display { font-size: clamp(2.5rem, 6.4vw, var(--fs-display)); line-height: var(--lh-tight); }
.h1 { font-size: clamp(2.125rem, 5vw, var(--fs-h1)); }
.h2 { font-size: clamp(1.75rem, 3.6vw, var(--fs-h2)); }
.h3 { font-size: clamp(1.375rem, 2.4vw, var(--fs-h3)); }
.h4 { font-size: var(--fs-h4); }

.lead {
  font-size: clamp(1.0625rem, 1.6vw, var(--fs-lead));
  line-height: var(--lh-snug);
  color: var(--text-muted);
}
.small { font-size: var(--fs-sm); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

.text-brand { color: var(--brand-strong); }

/* Gradient headline accent — used once per page, on the hero */
.text-gradient {
  background: linear-gradient(100deg, var(--mint-500) 0%, var(--mint-300) 45%, var(--coral-400) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-7);
}
.section-head--start {
  text-align: left;
  align-items: flex-start;
  margin-inline: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-text);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: 1.2;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.btn:hover { color: var(--btn-fg); transform: translateY(var(--hover-lift)); }
.btn:active { transform: scale(var(--press-scale)); }

/* Primary CTA — coral. Once per view. */
.btn--cta {
  --btn-bg: var(--cta);
  box-shadow: var(--shadow-coral);
}
.btn--cta:hover { --btn-bg: var(--cta-strong); box-shadow: 0 16px 36px rgba(255, 107, 74, 0.42); }

.btn--brand { --btn-bg: var(--brand); box-shadow: var(--shadow-mint); }
.btn--brand:hover { --btn-bg: var(--brand-strong); box-shadow: 0 16px 38px rgba(20, 176, 138, 0.36); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text-strong);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--brand); --btn-fg: var(--brand-strong); background: var(--brand-soft); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-body);
  padding-inline: var(--space-3);
}
.btn--ghost:hover { --btn-fg: var(--brand-strong); background: var(--brand-soft); }

.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--white);
  border-color: var(--border-on-dark);
  backdrop-filter: blur(8px);
}
.btn--on-dark:hover { --btn-bg: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.24); }

.btn--whatsapp { --btn-bg: #25D366; --btn-fg: #05261A; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32); }
.btn--whatsapp:hover { --btn-bg: #1FBE5B; --btn-fg: #05261A; }

.btn--lg { padding: 1.0625rem var(--space-6); font-size: 1.0625rem; }
.btn--sm { padding: 0.5rem var(--space-4); font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Magnetic buttons get their offset from JS via custom properties */
.magnetic { will-change: transform; }

/* --------------------------------------------------------------------------
   5. Badges, chips, pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 1px solid transparent;
}
.badge--outline { background: transparent; border-color: var(--border-subtle); color: var(--text-muted); }
.badge--coral { background: rgba(255, 107, 74, 0.12); color: var(--coral-600); }
.badge--on-dark { background: rgba(255, 255, 255, 0.08); color: var(--mint-200); border-color: var(--border-on-dark); }

.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge-dot--live { background: var(--success-500); box-shadow: 0 0 0 0 rgba(20, 176, 138, 0.6); animation: pulse-ring 2.4s var(--ease-out) infinite; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(20, 176, 138, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(20, 176, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 176, 138, 0); }
}

/* Icon chips — rounded squares holding a Lucide glyph */
.chip {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  flex: none;
  transition: transform var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
.chip svg { width: 24px; height: 24px; }
.chip--sm { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.chip--sm svg { width: 18px; height: 18px; }
.chip--coral { background: rgba(255, 107, 74, 0.12); color: var(--coral-600); }
.chip--on-dark { background: rgba(255, 255, 255, 0.08); color: var(--mint-300); border: 1px solid var(--border-on-dark); }

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint-200);
}
.card--pad-lg { padding: var(--space-6); }
.card--feature { border-radius: var(--radius-xl); padding: var(--space-6); }
.card--on-dark {
  background: var(--surface-dark-2);
  border-color: var(--border-on-dark);
  color: var(--text-on-dark-muted);
  box-shadow: none;
}
.card--on-dark:hover { border-color: rgba(255, 255, 255, 0.2); }

.card-title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.card-body { color: var(--text-muted); font-size: 0.9375rem; }
.section--dark .card-body { color: var(--text-on-dark-muted); }

/* 3D tilt wrapper — JS writes --rx / --ry */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-base) var(--ease-standard);
}
.tilt.is-tilting { transition: transform 80ms linear, box-shadow var(--dur-base) var(--ease-standard); }

/* Spotlight follow — JS writes --mx / --my */
.spotlight { position: relative; overflow: hidden; isolation: isolate; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(20, 176, 138, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-standard);
  pointer-events: none;
  z-index: -1;
}
.spotlight:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   7. Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   8. Scroll progress + custom cursor
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--mint-500), var(--mint-300), var(--coral-400));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity var(--dur-base) linear, width var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.cursor-dot { width: 6px; height: 6px; background: var(--brand); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid var(--mint-400); }
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hot .cursor-ring { width: 58px; height: 58px; background: rgba(20, 176, 138, 0.10); border-color: var(--mint-500); }

/* --------------------------------------------------------------------------
   9. Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 80;
  padding-block: var(--space-4);
  transition: background var(--dur-slow) var(--ease-standard),
              box-shadow var(--dur-slow) var(--ease-standard),
              padding var(--dur-slow) var(--ease-standard),
              border-color var(--dur-slow) var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--surface-page) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border-subtle);
  padding-block: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand-glyph {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--mint-400), var(--mint-600));
  display: grid; place-items: center;
  box-shadow: var(--shadow-mint);
  flex: none;
}
.brand-glyph svg { width: 24px; height: 24px; color: var(--white); }
.brand-word {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand-word span { color: var(--brand-strong); }
/* Sits under the wordmark to complete the lockup: ScaleMint / TECHNOLOGIES */
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--text-body);
}
.nav-link:hover { color: var(--text-strong); background: var(--surface-subtle); }
.nav-link.is-active { color: var(--brand-strong); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: var(--space-3); right: var(--space-3); bottom: 2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--brand);
}

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

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  background: var(--surface-card);
  transition: all var(--dur-base) var(--ease-standard);
}
.icon-btn:hover { color: var(--brand-strong); border-color: var(--mint-300); background: var(--brand-soft); }
.icon-btn svg { width: 18px; height: 18px; }

.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: all var(--dur-base) var(--ease-standard);
}
.kbd-hint:hover { border-color: var(--mint-300); color: var(--brand-strong); }
.kbd-hint svg { width: 15px; height: 15px; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.nav-toggle { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--surface-page);
  padding: calc(var(--space-9) + var(--space-2)) var(--gutter) var(--space-7);
  transform: translateY(-101%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-links { display: flex; flex-direction: column; gap: var(--space-1); }
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-link svg { width: 20px; height: 20px; color: var(--text-muted); }
.drawer-link:hover { color: var(--brand-strong); }
.drawer-foot { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: var(--section-py);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
/* Soft radial mint wash, top-right — the one background flourish */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -18%;
  width: min(1100px, 105vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(20, 176, 138, 0.20), rgba(20, 176, 138, 0.06) 42%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -35%;
  left: -22%;
  width: min(820px, 95vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(255, 107, 74, 0.10), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.hero-title { font-size: clamp(2.75rem, 6.6vw, var(--fs-display)); line-height: var(--lh-tight); }
.hero-lead { max-width: 46ch; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-5);
  margin-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
}
.stat-label {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Hero side panel — live "automation running" mock */
.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface-dark);
  border: 1px solid var(--border-on-dark);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 80% -10%, rgba(20, 176, 138, 0.22), transparent 60%);
  pointer-events: none;
}
.panel-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-on-dark);
  margin-bottom: var(--space-4);
  position: relative;
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.panel-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.flow { display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-on-dark);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.35;
  transform: translateX(-6px);
  transition: all var(--dur-slow) var(--ease-out);
}
.flow-step.is-live {
  opacity: 1;
  transform: none;
  border-color: rgba(20, 176, 138, 0.5);
  background: rgba(20, 176, 138, 0.10);
  box-shadow: 0 0 0 1px rgba(20, 176, 138, 0.15), var(--shadow-mint);
}
.flow-step.is-done { opacity: 0.8; transform: none; }
.flow-step-icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--mint-300);
}
.flow-step-icon svg { width: 17px; height: 17px; }
.flow-step-text { min-width: 0; }
.flow-step-title { font-size: 0.875rem; font-weight: var(--fw-semibold); color: var(--white); }
.flow-step-meta { font-size: var(--fs-xs); color: var(--text-on-dark-muted); font-family: var(--font-mono); }
.flow-step-check { margin-left: auto; color: var(--mint-400); opacity: 0; transition: opacity var(--dur-base); }
.flow-step-check svg { width: 18px; height: 18px; }
.flow-step.is-done .flow-step-check { opacity: 1; }

.panel-foot {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-on-dark);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  position: relative;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   11. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: var(--space-5);
  border-block: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--space-7);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.0625rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-item svg { width: 18px; height: 18px; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   12. Service cards
   -------------------------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  position: relative;
}
.service-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.service-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-body);
  list-style: none;
}
.service-list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.service-card ul { padding: 0; margin: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  color: var(--brand-strong);
  margin-top: var(--space-2);
}
.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-standard); }
.card-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   13. Industry tiles
   -------------------------------------------------------------------------- */
.industry {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  color: var(--text-strong);
  transition: all var(--dur-base) var(--ease-standard);
}
.industry:hover {
  transform: translateY(var(--hover-lift));
  border-color: var(--mint-200);
  box-shadow: var(--shadow-md);
  color: var(--text-strong);
}
.industry svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* --------------------------------------------------------------------------
   14. Process stepper
   -------------------------------------------------------------------------- */
.process { position: relative; }
.process-line {
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}
.process-line span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--mint-500), var(--mint-300));
  transition: width 1.4s var(--ease-out);
}
.process-step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.process-num {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-page);
  border: 2px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  transition: all var(--dur-slow) var(--ease-out);
}
.process-step.is-on .process-num {
  border-color: var(--brand);
  color: var(--white);
  background: var(--brand);
  box-shadow: var(--shadow-mint);
}

/* --------------------------------------------------------------------------
   15. Why-us dark band
   -------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-list { display: flex; flex-direction: column; gap: var(--space-4); }
.why-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-on-dark);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--dur-base) var(--ease-standard);
}
.why-item:hover { background: rgba(255, 255, 255, 0.06); transform: translateX(4px); border-color: rgba(20, 176, 138, 0.35); }
.why-item h3 { font-size: 1.0625rem; margin-bottom: var(--space-1); }
.why-item p { font-size: 0.9375rem; color: var(--text-on-dark-muted); margin: 0; }

/* Founder card */
.founder {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-on-dark);
  background: linear-gradient(160deg, rgba(20, 176, 138, 0.14), rgba(255, 255, 255, 0.02));
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.founder-avatar {
  width: 78px; height: 78px;
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--mint-400), var(--mint-700));
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--white);
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-mint);
}
.founder-quote { font-size: 1.0625rem; line-height: var(--lh-snug); color: var(--white); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.label .req { color: var(--cta); }
.hint { font-size: var(--fs-xs); color: var(--text-muted); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8125rem var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-strong);
  font-size: var(--fs-body);
  transition: border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring-focus);
}
.textarea { min-height: 132px; resize: vertical; line-height: var(--lh-body); }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-500) 50%), linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--space-8);
  cursor: pointer;
}
.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--error-500); }
.error-text { font-size: var(--fs-xs); color: var(--error-500); font-weight: var(--fw-medium); }

/* Choice tiles (radio / checkbox as cards) */
.choices { display: grid; gap: var(--space-3); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-4);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-standard);
}
.choice-box:hover { border-color: var(--mint-300); background: var(--brand-soft); }
.choice input:checked + .choice-box {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}
.choice input:focus-visible + .choice-box { box-shadow: var(--ring-focus); }
.choice-box svg { width: 20px; height: 20px; color: var(--brand-strong); flex: none; }
.choice-title { font-weight: var(--fw-semibold); font-size: 0.9375rem; color: var(--text-strong); line-height: 1.3; }
.choice-meta { font-size: var(--fs-xs); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   17. Booking wizard
   -------------------------------------------------------------------------- */
.wizard {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wizard-head {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.wizard-progress {
  flex: 1 1 220px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  overflow: hidden;
  min-width: 140px;
}
.wizard-progress span {
  display: block; height: 100%; width: 20%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--mint-500), var(--mint-300));
  transition: width var(--dur-slow) var(--ease-out);
}
.wizard-body { padding: var(--space-6); }
.wizard-step { display: none; flex-direction: column; gap: var(--space-5); }
.wizard-step.is-active { display: flex; animation: step-in var(--dur-slow) var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wizard-foot {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Slot picker */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-2); }
.slot {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-card);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--text-body);
  text-align: center;
  transition: all var(--dur-base) var(--ease-standard);
}
.slot:hover:not([disabled]) { border-color: var(--mint-300); background: var(--brand-soft); color: var(--brand-strong); }
.slot.is-selected { border-color: var(--brand); background: var(--brand); color: var(--white); box-shadow: var(--shadow-mint); }
.slot[disabled] { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; }

/* Summary */
.summary { display: flex; flex-direction: column; gap: var(--space-2); }
.summary-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.9375rem;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--text-muted); }
.summary-row dd { margin: 0; font-weight: var(--fw-semibold); color: var(--text-strong); text-align: right; }

/* Success state */
.wizard-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding-block: var(--space-5); }
.done-mark {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  animation: pop var(--dur-slow) var(--ease-out);
}
.done-mark svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------------------
   17b. Cal ID scheduler embed
   Plain iframe, deliberately not the vendor's embed script — that would mean
   third-party JavaScript executing on the site, which the CSP forbids.
   -------------------------------------------------------------------------- */
.cal-embed {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cal-embed iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  background: var(--white);
}
/* Sits behind the iframe; the iframe's opaque background covers it once the
   calendar renders, so it only ever shows while loading or if blocked. */
.cal-embed-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: var(--space-7) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.cal-embed iframe { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .cal-embed iframe { height: 660px; }
}

/* --------------------------------------------------------------------------
   18. Pricing
   -------------------------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; position: relative; }
.price-card--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.price-card--featured::after {
  content: 'Most popular';
  position: absolute;
  top: calc(var(--space-4) * -1);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3125rem var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: var(--shadow-mint);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
}
.price-amount small { font-size: 1rem; font-weight: var(--fw-medium); color: var(--text-muted); }
.price-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.price-features li { display: flex; gap: var(--space-3); font-size: 0.9375rem; align-items: flex-start; }
.price-features svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }

/* ROI calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: var(--space-6); align-items: start; }
.range { width: 100%; accent-color: var(--mint-500); height: 6px; cursor: pointer; }
.calc-out {
  min-width: 0;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(150deg, var(--mint-600), var(--ink-900));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.calc-big { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.75rem); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.05; }
.calc-note { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   19. Testimonials
   -------------------------------------------------------------------------- */
.quote-card { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; }
.stars { display: flex; gap: 2px; color: var(--warning-500); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote-text { font-size: 1rem; line-height: var(--lh-body); color: var(--text-body); }
.quote-who { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  font-size: 0.9375rem;
}
.quote-name { font-weight: var(--fw-semibold); font-size: 0.9375rem; color: var(--text-strong); }
.quote-meta { font-size: var(--fs-xs); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   20. Work / portfolio
   -------------------------------------------------------------------------- */
.work-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; height: 100%; }
.work-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--mint-600), var(--ink-900));
  display: grid;
  place-items: center;
  padding: var(--space-5);
}
.work-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at 25% 15%, rgba(255, 255, 255, 0.16), transparent 60%);
}
.work-visual--alt { background: linear-gradient(150deg, var(--coral-500), var(--ink-800)); }
.work-visual--dark { background: linear-gradient(150deg, var(--ink-700), var(--ink-950)); }
.work-mock {
  width: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  position: relative; z-index: 1;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-card:hover .work-mock { transform: translateY(-6px) scale(1.02); }
.work-mock i { display: block; height: 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.35); }
.work-mock i:nth-child(1) { width: 55%; height: 12px; background: rgba(255, 255, 255, 0.7); }
.work-mock i:nth-child(2) { width: 85%; }
.work-mock i:nth-child(3) { width: 70%; }
/* Real client photography replaces the gradient placeholder */
.work-visual--photo { padding: 0; background: var(--ink-100); }
.work-visual--photo::after { content: none; }
.work-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-card:hover .work-shot { transform: scale(1.04); }

/* Some source photos carry a camera watermark along the bottom edge.
   Anchoring to the top crops it out at every aspect ratio. */
.obj-top { object-position: top center; }

/* Studio product shots sit a little below centre, so a plain centre crop
   cuts the top off the cake and leaves empty backdrop in frame. */
.obj-lower { object-position: center 62%; }

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.work-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--ink-100);
  transition: transform var(--dur-base) var(--ease-standard);
}
.work-gallery img:hover { transform: scale(1.05); }

/* Client wordmarks are dark-on-transparent, so they need a light plate
   to stay legible when the page is in dark mode. */
.client-logo-plate {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-subtle);
}
.client-logo-plate img { height: 30px; width: auto; object-fit: contain; }

.work-meta { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.result-row { display: flex; gap: var(--space-5); flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.result-val { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.25rem; color: var(--brand-strong); letter-spacing: var(--ls-tight); }
.result-key { font-size: var(--fs-xs); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   20b. Walkthrough recordings
   The frame starts 16/9 and JS re-sets its aspect ratio from the video's own
   dimensions once metadata loads, so a portrait phone recording and a
   landscape desktop capture both sit correctly without letterboxing.
   -------------------------------------------------------------------------- */
.demo-card { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }

.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-950);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.demo-frame .demo-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink-950);
}
/* Once the recording is running it must not be cropped */
.demo-card.is-playing .demo-shot { object-fit: contain; }

/* Shown when the recording file is not present yet, so the page degrades to
   an honest placeholder instead of a broken black box. */
.demo-missing {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-6);
  color: var(--text-on-dark-muted);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-950));
}
.demo-missing svg { width: 30px; height: 30px; color: var(--mint-400); }
.demo-missing strong { color: var(--white); font-family: var(--font-display); font-size: 1.0625rem; }
.demo-card.is-missing .demo-missing { display: grid; }
.demo-card.is-missing .demo-shot { visibility: hidden; }


.demo-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(10, 15, 14, 0.28);
  color: var(--white);
  cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.demo-play span {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand);
  box-shadow: var(--shadow-mint);
  transition: transform var(--dur-base) var(--ease-standard);
}
.demo-play svg { width: 26px; height: 26px; }
.demo-play:hover span { transform: scale(1.08); }
.demo-card.is-playing .demo-play,
.demo-card.is-missing .demo-play { opacity: 0; pointer-events: none; }

.demo-meta { display: flex; flex-direction: column; gap: var(--space-2); }

/* --------------------------------------------------------------------------
   21. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--border-subtle); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  transition: color var(--dur-base) var(--ease-standard);
}
.faq-q:hover { color: var(--brand-strong); }
.faq-icon {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-standard);
}
.faq-icon svg { width: 17px; height: 17px; }
.faq[open] .faq-icon,
.faq.is-open .faq-icon { background: var(--brand); color: var(--white); transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.faq.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: var(--space-5); color: var(--text-muted); max-width: 68ch; }

/* --------------------------------------------------------------------------
   22. Contact CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-2xl);
  background: linear-gradient(120deg, var(--mint-600) 0%, var(--mint-800) 42%, var(--ink-900) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 620px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.82); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.cta-points li { display: flex; gap: var(--space-3); align-items: center; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.9); }
.cta-points svg { width: 18px; height: 18px; color: var(--mint-200); flex: none; }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--section-py);
}
.footer a { color: var(--text-on-dark-muted); }
.footer a:hover { color: var(--mint-300); }
.footer .brand-word { color: var(--white); }
.footer .brand-sub { color: var(--ink-400); }
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-4);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-6); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: 0.9375rem; }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-on-dark);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--fs-sm);
}
.footer-contact { display: flex; flex-direction: column; gap: var(--space-3); font-size: 0.9375rem; }
.footer-contact div { display: flex; gap: var(--space-3); align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--mint-400); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   24. Floating WhatsApp dock + AI assistant
   -------------------------------------------------------------------------- */
.dock {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
  position: relative;
}
.fab:hover { transform: translateY(-4px) scale(1.04); color: var(--white); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: #25D366; color: #05261A; box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4); }
.fab--wa:hover { color: #05261A; }
.fab--ai { background: linear-gradient(145deg, var(--mint-500), var(--mint-700)); box-shadow: var(--shadow-mint); }
.fab-ping {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.6;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

.fab-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: var(--ink-900);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-base) var(--ease-standard);
}
.fab:hover .fab-label { opacity: 1; transform: translateY(-50%); }

/* Assistant panel */
.assistant {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + 70px);
  z-index: 75;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: all var(--dur-slow) var(--ease-out);
}
.assistant.is-open { opacity: 1; visibility: visible; transform: none; }
.assistant-head {
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(130deg, var(--mint-600), var(--ink-900));
  color: var(--white);
  display: flex; align-items: center; gap: var(--space-3);
}
.assistant-head .chip { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.assistant-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1rem; line-height: 1.2; }
.assistant-status { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 6px; }
.assistant-close { margin-left: auto; color: rgba(255, 255, 255, 0.8); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); }
.assistant-close:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.assistant-close svg { width: 18px; height: 18px; }

.assistant-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface-subtle);
  scrollbar-width: thin;
}
.msg { max-width: 84%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.5; animation: msg-in var(--dur-slow) var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg--bot { background: var(--surface-card); border: 1px solid var(--border-subtle); color: var(--text-body); align-self: flex-start; border-bottom-left-radius: var(--radius-xs); }
.msg--user { background: var(--brand); color: var(--white); align-self: flex-end; border-bottom-right-radius: var(--radius-xs); }
.msg strong { color: inherit; font-weight: var(--fw-bold); }
.msg a { color: var(--brand-strong); font-weight: var(--fw-semibold); text-decoration: underline; }
.msg--user a { color: var(--white); }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: var(--space-3) var(--space-4); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.assistant-quick { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); background: var(--surface-subtle); }
.quick-btn {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.375rem var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--mint-200);
  background: var(--surface-card);
  color: var(--brand-strong);
  transition: all var(--dur-base) var(--ease-standard);
}
.quick-btn:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

.assistant-form {
  display: flex; gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
}
.assistant-form .input { padding: 0.625rem var(--space-4); border-radius: var(--radius-pill); }
.assistant-send {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: grid; place-items: center;
  transition: all var(--dur-base) var(--ease-standard);
}
.assistant-send:hover { background: var(--brand-strong); transform: scale(1.06); }
.assistant-send svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   25. Command palette
   -------------------------------------------------------------------------- */
.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 15, 14, 0.5);
  backdrop-filter: blur(6px);
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: 14vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-standard), visibility var(--dur-base);
}
.palette-backdrop.is-open { opacity: 1; visibility: visible; }
.palette {
  width: min(600px, calc(100vw - 2rem));
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform var(--dur-slow) var(--ease-out);
}
.palette-backdrop.is-open .palette { transform: none; }
.palette-input-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.palette-input-row svg { width: 19px; height: 19px; color: var(--text-muted); flex: none; }
.palette-input { flex: 1; border: 0; outline: none; background: transparent; font-size: 1.0625rem; color: var(--text-strong); }
.palette-list { max-height: 340px; overflow-y: auto; padding: var(--space-2); }
.palette-item {
  width: 100%;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text-body);
  font-size: 0.9375rem;
}
.palette-item svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.palette-item.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.palette-item.is-active svg { color: var(--brand-strong); }
.palette-item .palette-hint { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); }
.palette-empty { padding: var(--space-6); text-align: center; color: var(--text-muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   26. Toast
   -------------------------------------------------------------------------- */
.toast-wrap { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: 150; display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--dur-slow) var(--ease-out);
}
.toast svg { width: 18px; height: 18px; color: var(--mint-300); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: all var(--dur-slow) var(--ease-standard); }

/* --------------------------------------------------------------------------
   27. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(7.5rem, 12vw, 9.5rem);
  padding-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -12%;
  width: min(800px, 90vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(20, 176, 138, 0.16), transparent 64%);
  pointer-events: none;
}
.page-hero-inner { position: relative; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; max-width: 760px; }
.crumbs { display: flex; gap: var(--space-2); align-items: center; font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.crumbs svg { width: 13px; height: 13px; }

/* Map embed */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--surface-subtle);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Split section. Ratios live here as modifiers rather than inline styles —
   an inline grid-template-columns would outrank the responsive collapse
   below and keep two columns on a phone. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
.split--form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--top { align-items: start; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.stat-block { text-align: center; padding: var(--space-5) var(--space-3); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: var(--surface-card); }

/* Timeline */
.timeline { position: relative; padding-left: var(--space-7); }
.timeline::before {
  content: '';
  position: absolute; left: 15px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--mint-400), var(--border-subtle));
}
.tl-item { position: relative; padding-bottom: var(--space-6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-7) * -1 + 9px);
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface-page);
  border: 3px solid var(--brand);
}
.tl-year { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand-strong); letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   28. Responsive
   -------------------------------------------------------------------------- */
/* Single-column collapses must use minmax(0, 1fr), never a bare 1fr.
   A bare 1fr track keeps min-width:auto, so any wide child (the calculator
   readout, a long price) pushes past the viewport and the whole page scrolls
   sideways on phones. */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-links, .kbd-hint { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { order: -1; }
  .why-grid, .cta-inner, .calc, .split { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-line { display: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .choices--2, .choices--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .wizard-body, .wizard-head, .wizard-foot { padding-inline: var(--space-5); }
  .card--feature { padding: var(--space-5); }
  .hero-stats { gap: var(--space-5); }
  .cursor-dot, .cursor-ring { display: none; }
  .assistant { bottom: calc(clamp(1rem, 3vw, 1.75rem) + 66px); }
}

/* The nav CTA does not fit beside the brand on small phones. It is still
   the first thing in the drawer and the WhatsApp dock is always on screen. */
@media (max-width: 560px) {
  .nav-actions .btn--cta { display: none; }
  .brand-word { font-size: 1.3125rem; }
  .brand-glyph { width: 40px; height: 40px; }
  .brand-glyph svg { width: 22px; height: 22px; }
}

@media (max-width: 460px) {
  .btn--lg { width: 100%; }
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   29. Motion preferences & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

@media print {
  .nav, .dock, .assistant, .scroll-progress, .palette-backdrop, .cursor-dot, .cursor-ring { display: none !important; }
  body { color: #000; background: #fff; }
}
