/* ==========================================================================
   Tendra — Landing page styles
   Tokens: primitive → semantic → component (see design-system/tendra/MASTER.md)
   ========================================================================== */

/* ---------- 1. Primitive tokens — "Electric Mint" (dark-first) ---------- */
:root {
  --ink-950: #031A17;  /* footer */
  --ink-900: #062420;  /* page background */
  --ink-850: #082E28;  /* section tint A */
  --ink-800: #0A2A26;  /* section tint B */
  --ink-700: #0E3A33;  /* cards, surfaces */
  --ink-600: #12443C;  /* inputs, raised */
  --ink-line: #1C4A42; /* hairlines */
  --ink-line-strong: #6FA597; /* control borders (3.9:1) */

  --mint-200: #A6FFDD;
  --mint-400: #2EE6A6; /* brand accent + CTA — dark text only (10.1:1) */
  --mint-500: #22CC92; /* hover */
  --lime-300: #D4F25A; /* highlight — badges, step numbers */

  --paper: #F4FBF8;    /* text (15.6:1 on bg) */
  --sage: #A7C9BE;     /* muted text (9.2:1 on bg) */
  --salmon: #FF8A7A;   /* errors (5.5:1 on surface) */

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.5rem;   /* 8 */
  --space-2: 1rem;     /* 16 */
  --space-3: 1.5rem;   /* 24 */
  --space-4: 2rem;     /* 32 */
  --space-5: 3rem;     /* 48 */
  --space-6: 4rem;     /* 64 */
  --space-7: 6rem;     /* 96 */
  --space-8: 8rem;     /* 128 */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
}

/* ---------- 2. Semantic tokens (components use only these) ---------- */
:root {
  color-scheme: dark;
  --color-bg: var(--ink-900);
  --color-bg-alt: var(--ink-850);
  --color-bg-alt-2: var(--ink-800);
  --color-bg-deep: var(--ink-950);
  --color-surface: var(--ink-700);
  --color-surface-2: var(--ink-600);
  --color-text: var(--paper);
  --color-text-muted: var(--sage);
  --color-primary: var(--paper);          /* headings, outlines */
  --color-primary-hover: #D9F2E8;
  --color-primary-soft: rgba(46, 230, 166, 0.12);
  --color-on-primary: var(--ink-900);
  --color-accent: var(--mint-400);
  --color-accent-hover: var(--mint-500);
  --color-on-accent: var(--ink-900);
  --color-accent-text: var(--mint-400);
  --color-highlight: var(--lime-300);
  --color-border: var(--ink-line);
  --color-border-strong: var(--ink-line-strong);
  --color-focus: var(--lime-300);
  --color-error: var(--salmon);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --nav-h: 72px;
  --vh: 1vh;
  --small-min: 12px;
}
@supports (height: 1dvh) { :root { --vh: 1dvh; } }
@media (min-height: 480px) { :root { --small-min: 12.5px; } }

/* ---------- 3. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.25; }

p { margin: 0 0 var(--space-2); text-wrap: pretty; }

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--color-on-primary); }

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8em;
  font-weight: 600;
  color: var(--color-highlight);
  background: rgba(212, 242, 90, 0.12);
  padding: 0.1em 0.45em;
  border-radius: 6px;
  letter-spacing: 0;
}

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

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--color-bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.section-head p { color: var(--color-text-muted); font-size: 1.125rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-2);
}

.grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 5. Components ---------- */

/* Buttons */
.btn {
  --btn-bg: var(--color-accent);
  --btn-bg-hover: var(--color-accent-hover);
  --btn-fg: var(--color-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font: 600 1rem/1.2 var(--font-sans);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  box-shadow: 0 1px 0 rgba(20, 26, 24, 0.08);
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn--secondary {
  --btn-bg: transparent;
  --btn-bg-hover: var(--color-primary-soft);
  --btn-fg: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}
.btn--primary-solid {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-hover);
  --btn-fg: var(--color-on-primary);
}
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--coral { background: rgba(255, 91, 58, 0.14); color: var(--color-accent-text); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 36, 32, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.nav.is-scrolled { border-bottom-color: var(--color-border); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo svg { width: 30px; height: 30px; }
.logo:hover { color: var(--color-primary); }

.nav__links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: var(--space-4);
}
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.nav__links a:hover { color: var(--color-primary); text-decoration: underline; }

.nav__actions { display: flex; align-items: center; gap: var(--space-1); }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__mobile {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: var(--space-2) var(--gutter) var(--space-3);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile ul { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.nav__mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 479px) {
  .nav__actions .btn { display: none; }
}
@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* ---------- Hero (editorial stage) ----------
   Design frame is 1280 × 800 including the nav (728 for the hero itself).
   --u is one design pixel: the largest uniform scale that fits the frame.
   Below the composition breakpoint the hero falls back to a stacked flow. */
.hero {
  --rule: rgba(167, 201, 190, 0.22);
  --grid: rgba(46, 230, 166, 0.06);
  --small: max(var(--small-min), 13.2 * var(--u));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(46, 230, 166, 0.16) 0%, rgba(46, 230, 166, 0) 70%),
    radial-gradient(45% 50% at 6% 96%, rgba(46, 230, 166, 0.10) 0%, rgba(46, 230, 166, 0) 70%),
    radial-gradient(40% 40% at 98% 72%, rgba(212, 242, 90, 0.10) 0%, rgba(212, 242, 90, 0) 70%),
    linear-gradient(180deg, #062420 0%, #062521 60%, #05211D 100%);
}

.small {
  font-size: var(--small);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: var(--color-text-muted);
  margin: 0;
}

/* Photo plate — the "subject" of the stage, between copy and conversation */
.hero__photo {
  position: relative;
  z-index: -2;
  pointer-events: none;
}
.hero__photo picture,
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__photo img {
  object-fit: cover;
  object-position: 52% 30%;
}

/* 48 hairline columns that recede behind the subject and headline */
.hero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent calc(75% - 0.5px), var(--grid) calc(75% - 0.5px), var(--grid) calc(75% + 0.5px), transparent calc(75% + 0.5px));
  background-size: calc(100% / 48) 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 95% at 50% 62%, rgba(0, 0, 0, 0.45) 0%, #000 100%);
          mask-image: radial-gradient(ellipse 62% 95% at 50% 62%, rgba(0, 0, 0, 0.45) 0%, #000 100%);
}

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #00A67E;
  box-shadow: 0 0 0 4px rgba(0, 166, 126, 0.18);
  flex: none;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--color-text);
}
.hero__tagline span,
.hero__meta span { display: block; }
.hero__tagline span:first-child { color: var(--color-primary); font-weight: 600; }

.hero__services {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: max(var(--small-min) * 1.08, 14.4 * var(--u));
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
}
.hero__services li {
  white-space: nowrap;
  clip-path: inset(-0.25em -0.4em -0.35em -0.4em);
}
.hero__services li::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--color-accent);
  vertical-align: 0.12em;
}
.hero__services .rv { display: inline-block; }

.hero__rule {
  height: 1px;
  background: var(--rule);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hero__sub {
  font-size: clamp(1.0625rem, 20 * var(--u), 1.375rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
  max-width: 36rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.trust-line li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-line svg { width: 18px; height: 18px; color: var(--color-primary); flex: none; }

/* Conversation that plays out on load */
.hero__chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.hero__chat-head {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 2px;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  background: rgba(14, 58, 51, 0.88);
  border: 1px solid var(--color-border);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.hero__chat-head svg { width: 16px; height: 16px; color: var(--color-primary); }
.chat__msg {
  max-width: 86%;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.chat__msg--in { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-bottom-left-radius: 6px; }
.chat__msg--out { align-self: flex-end; background: var(--color-primary); color: var(--color-on-primary); border-bottom-right-radius: 6px; }
.chat__booking {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-text-muted);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}
.chat__booking > svg { width: 28px; height: 28px; flex: none; }
.chat__booking strong { display: block; font-size: 0.9375rem; }
.chat__booking span { font-size: 0.8125rem; color: var(--color-text-muted); }

/* Headline: lines rise out of a mask */
.hl {
  margin: 0;
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 60;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--color-primary);
  white-space: nowrap;
  text-wrap: nowrap;
}
.hl__line { display: block; }
.hl__clip { display: block; clip-path: inset(-0.8em -3.6em -0.06em -3.6em); }
.hl__track { display: block; }
.hl em { font-style: italic; font-weight: 500; color: var(--color-accent); letter-spacing: -0.03em; }

/* ---- Stacked flow (phones, portrait tablets, narrow windows) ---- */
.hero {
  --u: 1px;
  display: flex;
  flex-direction: column;
  padding: 36px var(--gutter) 64px;
}
.hero__frame { display: contents; }
.hero__tagline, .hero__meta { display: none; }
.hero__photo {
  order: 6;
  align-self: center;
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__kicker { order: 1; margin-bottom: 20px; align-self: flex-start; }
.hl { order: 2; font-size: calc((100vw - 2 * var(--gutter)) / 8.9); margin-bottom: 24px; }
.hero__body { order: 3; }
.hero__services {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 48px;
}
.hero__rule { order: 5; margin: 18px calc(-1 * var(--gutter)) 32px; }
.hero__chat { order: 7; position: relative; width: min(100% - 24px, 400px); align-self: center; margin-top: -132px; }

@media (max-width: 479px) {
  .hero__ctas .btn { width: 100%; }
  .hero__services { flex-direction: column; gap: 12px; }
}

/* ---- Editorial composition (landscape, wide enough) ---- */
@media (min-width: 1024px) and (min-aspect-ratio: 114/100) {
  :root {
    --hh: max(calc(var(--vh) * 100 - var(--nav-h)), 640px);
    --u: min(100vw / 1280, var(--hh) / 728);
    --frame: min(100vw - 2 * var(--gutter), 1216 * var(--u));
  }
  .nav .container { max-width: calc(var(--frame) + 2 * var(--gutter)); }

  .hero {
    --u: min(100vw / 1280, var(--hh) / 728);
    display: block;
    padding: 0;
    height: var(--hh);
  }
  .hero__frame {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--frame);
    transform: translateX(-50%);
  }
  .hero__frame > * { position: absolute; }

  /* Wide plate: the subject sits in the gap between copy and conversation;
     the left side fades out under the copy, the bottom fades under the headline */
  .hero__photo {
    left: calc(320 * var(--u));
    top: calc(161 * var(--u));
    width: calc(880 * var(--u));
    height: calc(880 * var(--u) / 1.79);
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 24%, #000 48%, #000 84%, transparent 100%), linear-gradient(180deg, #000 42%, transparent 82%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 24%, #000 48%, #000 84%, transparent 100%), linear-gradient(180deg, #000 42%, transparent 82%);
            mask-composite: intersect;
  }
  .hero__photo img { object-position: center center; }

  .hero__kicker { left: 0; top: calc(34 * var(--u)); margin: 0; }
  .hero__tagline { display: block; left: calc(420 * var(--u)); top: calc(34 * var(--u)); }
  .hero__meta { display: block; left: calc(840 * var(--u)); top: calc(34 * var(--u)); }

  .hero__services { left: 0; right: 0; top: calc(130 * var(--u)); margin: 0; display: block; height: 1em; }
  .hero__services li { position: absolute; top: 0; }
  .hero__services li:nth-child(1) { left: 0; }
  .hero__services li:nth-child(2) { left: 50%; transform: translateX(-50%); }
  .hero__services li:nth-child(3) { right: 0; }

  .hero__rule {
    position: absolute;
    left: calc((var(--frame) - 100vw) / 2);
    right: calc((var(--frame) - 100vw) / 2);
    top: calc(160 * var(--u));
    margin: 0;
    z-index: -1;
  }

  .hero__body { left: 0; top: calc(198 * var(--u)); width: calc(590 * var(--u)); }
  .hero__body .trust-line { flex-wrap: nowrap; white-space: nowrap; font-size: clamp(0.8125rem, 15 * var(--u), 0.9375rem); }
  .hero__sub { margin-bottom: calc(30 * var(--u)); }
  .hero__ctas { margin-bottom: calc(20 * var(--u)); }

  .hero__chat {
    right: 0;
    margin: 0;
    top: calc(190 * var(--u));
    width: calc(372 * var(--u));
    min-width: 330px;
    align-self: auto;
  }

  .hl {
    left: calc(-6 * var(--u));
    right: 0;
    bottom: calc(26 * var(--u));
    font-size: calc(108 * var(--u));
    margin: 0;
  }
  /* Staggered editorial setting: second line hangs from the right edge */
  .hl__line:nth-child(2) { text-align: right; }
}

/* ---------- Entrance choreography (once, on load) ----------
   html.is-entering is set before first paint when motion is allowed;
   animations wait paused until fonts are ready (html.is-playing). */
:root {
  --e-expo: cubic-bezier(.16, 1, .3, 1);
  --e-quint: cubic-bezier(.22, 1, .36, 1);
  --e-sweep: cubic-bezier(.76, 0, .24, 1);
}
@keyframes au-rise { from { translate: 0 var(--rise); } to { translate: 0 0; } }
@keyframes au-soft { from { translate: 0 var(--rise, .55em); opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes au-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes au-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes au-on   { from { opacity: 0; } to { opacity: 1; } }

html.is-entering { --au-state: paused; }
html.is-entering.is-playing { --au-state: running; }

html.is-entering .hl__track {
  --rise: 1em;
  animation: au-rise 1.05s var(--e-expo) both;
  animation-play-state: var(--au-state);
  will-change: translate, transform;
}
html.is-entering .hl__line:nth-child(1) .hl__track { animation-delay: .10s; }
html.is-entering .hl__line:nth-child(2) .hl__track { animation-delay: .18s; }

html.is-entering .hero__rule {
  transform-origin: 0 50%;
  animation: au-draw .85s var(--e-sweep) .24s both;
  animation-play-state: var(--au-state);
  will-change: transform;
}

html.is-entering .hero__services .rv {
  --rise: calc(100% + .6em);
  animation: au-rise .8s var(--e-quint) both;
  animation-play-state: var(--au-state);
  will-change: translate, transform;
}
html.is-entering .hero__services li:nth-child(1) .rv { animation-delay: .56s; }
html.is-entering .hero__services li:nth-child(2) .rv { animation-delay: .62s; }
html.is-entering .hero__services li:nth-child(3) .rv { animation-delay: .68s; }

/* Logo "switches on" piece by piece */
html.is-entering :is(.logo__mark .lm, .logo__word span) { animation: au-on .14s ease-out both; animation-play-state: var(--au-state); }
html.is-entering .logo__mark .lm-1 { animation-delay: .700s; }
html.is-entering .logo__mark .lm-2 { animation-delay: .770s; }
html.is-entering .logo__mark .lm-3 { animation-delay: .840s; }
html.is-entering .logo__word span:nth-child(1) { animation-delay: .735s; }
html.is-entering .logo__word span:nth-child(2) { animation-delay: .840s; }
html.is-entering .logo__word span:nth-child(3) { animation-delay: .910s; }
html.is-entering .logo__word span:nth-child(4) { animation-delay: .805s; }
html.is-entering .logo__word span:nth-child(5) { animation-delay: .945s; }
html.is-entering .logo__word span:nth-child(6) { animation-delay: .875s; }

html.is-entering :is(.hero__kicker, .hero__tagline span, .hero__meta span, .nav__links li) {
  --rise: .55em;
  animation: au-soft .75s var(--e-quint) both;
  animation-play-state: var(--au-state);
}
html.is-entering .hero__kicker { animation-delay: .74s; }
html.is-entering .hero__tagline span:nth-child(1) { animation-delay: .78s; }
html.is-entering .hero__tagline span:nth-child(2) { animation-delay: .83s; }
html.is-entering .hero__tagline span:nth-child(3) { animation-delay: .88s; }
html.is-entering .hero__meta span:nth-child(1) { animation-delay: .88s; }
html.is-entering .hero__meta span:nth-child(2) { animation-delay: .93s; }
html.is-entering .nav__links li:nth-child(1) { animation-delay: .90s; }
html.is-entering .nav__links li:nth-child(2) { animation-delay: .95s; }
html.is-entering .nav__links li:nth-child(3) { animation-delay: 1.00s; }

html.is-entering .nav__actions .btn {
  animation: au-wipe .6s cubic-bezier(.25, 1, .5, 1) 1.02s both;
  animation-play-state: var(--au-state);
}

html.is-entering :is(.hero__sub, .hero__ctas, .trust-line) {
  --rise: 18px;
  animation: au-soft .9s var(--e-quint) both;
  animation-play-state: var(--au-state);
}
html.is-entering .hero__sub { animation-delay: .62s; }
html.is-entering .hero__ctas { animation-delay: .74s; }
html.is-entering .trust-line { animation-delay: .86s; }

/* The conversation plays out like a real exchange */
html.is-entering .hero__chat > li {
  --rise: 14px;
  animation: au-soft .6s var(--e-quint) both;
  animation-play-state: var(--au-state);
}
html.is-entering .hero__chat > li:nth-child(1) { animation-delay: .95s; }
html.is-entering .hero__chat > li:nth-child(2) { animation-delay: 1.15s; }
html.is-entering .hero__chat > li:nth-child(3) { animation-delay: 1.55s; }
html.is-entering .hero__chat > li:nth-child(4) { animation-delay: 1.95s; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .nav__actions .btn { transition: background-color .15s, transform var(--dur-fast) var(--ease-out); }
}

/* ---------- Problem ---------- */
.stat-card { text-align: left; }
.stat-card__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-card h3 { margin-bottom: var(--space-1); }
.stat-card p { color: var(--color-text-muted); }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
  position: relative;
}
.step { position: relative; padding-left: 4.5rem; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  z-index: 1;
}
/* vertical connector on mobile */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px; top: 56px; bottom: calc(-1 * var(--space-4) + 4px);
  border-left: 2px dashed var(--color-text-muted);
}
.step p { color: var(--color-text-muted); }

@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .step { padding-left: 0; padding-top: 4.5rem; }
  .step:not(:last-child)::before {
    left: 60px; right: calc(-1 * var(--space-5) + 8px);
    top: 25px; bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--color-text-muted);
  }
}

.steps-cta { text-align: center; margin-top: var(--space-6); }

/* ---------- Voice demo ---------- */
.voice {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: clamp(20px, 4vw, 40px);
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.voice h2 { color: var(--color-on-primary); }
.voice p { color: var(--color-text-muted); max-width: 34rem; margin-inline: auto; }
.voice .eyebrow { color: var(--color-highlight); }

.orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: var(--space-5) auto var(--space-4);
  width: clamp(200px, 50vw, 260px);
  aspect-ratio: 1;
}
.orb-wrap::before,
.orb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 166, 0.35);
  animation: ripple 3.2s var(--ease-out) infinite;
}
.orb-wrap::after { animation-delay: 1.6s; }

.orb {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  color: var(--color-on-accent);
  font: 600 1.0625rem/1.2 var(--font-sans);
  background: radial-gradient(circle at 35% 30%, #C9FFEA 0%, var(--color-accent) 55%, #0FA873 100%);
  box-shadow:
    0 0 0 10px rgba(46, 230, 166, 0.16),
    0 0 60px 10px rgba(46, 230, 166, 0.35),
    inset 0 -10px 30px rgba(0, 70, 45, 0.3);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  animation: breathe 4s ease-in-out infinite;
}
.orb svg { width: 34px; height: 34px; }
.orb:hover { transform: scale(1.04); }
.orb:focus-visible { outline-color: var(--color-text); outline-offset: 8px; border-radius: 50%; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 10px rgba(46, 230, 166,.16), 0 0 50px 6px rgba(46, 230, 166,.30), inset 0 -10px 30px rgba(0, 70, 45,.3); }
  50%      { box-shadow: 0 0 0 16px rgba(46, 230, 166,.12), 0 0 80px 16px rgba(46, 230, 166,.40), inset 0 -10px 30px rgba(0, 70, 45,.3); }
}
@keyframes ripple {
  from { transform: scale(0.75); opacity: 1; }
  to   { transform: scale(1.25); opacity: 0; }
}

.voice__prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}
.voice__prompts li {
  padding: 0.4rem 0.875rem;
  border: 1px solid rgba(167, 232, 207, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--color-text);
}

#voice-demo {
  min-height: 1px;
  margin-top: var(--space-3);
}
#voice-demo:empty::before {
  content: "[VOICE WIDGET EMBED — #voice-demo]";
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* ---------- Features ---------- */
.feature h3 { margin-bottom: var(--space-1); }
.feature p { color: var(--color-text-muted); }
.card.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 640px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .industries { grid-template-columns: repeat(6, 1fr); } }

.industry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 132px;
  padding: var(--space-3) var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}
.industry svg { width: 32px; height: 32px; }
.industry--yours {
  width: 100%;
  font: inherit;
  font-weight: 600;
  border: 2px dashed var(--color-accent);
  background: rgba(46, 230, 166, 0.06);
  color: var(--color-accent-text);
  cursor: pointer;
  transition: background-color var(--dur-fast);
}
.industry--yours:hover { background: rgba(46, 230, 166, 0.14); }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
@media (min-width: 640px) and (max-width: 959px) {
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4) var(--space-4);
}
.plan--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}
@media (min-width: 960px) { .plan--featured { transform: translateY(-12px); } }

.plan__badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan h3 { font-size: 1.5rem; margin-bottom: var(--space-1); }
.plan__for { color: var(--color-text-muted); font-size: 0.9375rem; min-height: 3em; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: var(--space-2) 0 0.25rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
}
.plan__price strong { font-size: clamp(2.5rem, 2.2rem + 1vw, 3rem); font-weight: 600; line-height: 1; }
.plan__price span { font-family: var(--font-sans); color: var(--color-text-muted); font-size: 1rem; }
.plan__setup { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: var(--space-3); }

.plan__list {
  list-style: none;
  padding: var(--space-3) 0 0;
  margin: 0 0 var(--space-4);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.75rem;
  flex: 1;
}
.plan__list li { display: grid; grid-template-columns: 22px 1fr; gap: 0.625rem; font-size: 0.9875rem; }
.plan__list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--color-primary); }
.plan__list .plan__inherit { font-weight: 600; color: var(--color-primary); }

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

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  text-align: center;
  border: 2px dashed var(--color-border);
  background: transparent;
  box-shadow: none;
  color: var(--color-text-muted);
}
.testimonial svg { width: 32px; height: 32px; color: var(--color-text-muted); margin-bottom: var(--space-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: var(--space-2); }

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--dur-base);
}
.faq details[open] { box-shadow: var(--shadow-sm); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 56px;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 22px; height: 22px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__body { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding-block: clamp(4rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final-cta h2 { color: var(--color-on-primary); max-width: 20ch; margin-inline: auto; }
.final-cta p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.final-cta__shape { position: absolute; width: 420px; height: auto; aspect-ratio: 1; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.final-cta__shape--l { left: -160px; top: -120px; }
.final-cta__shape--r { right: -140px; bottom: -160px; color: rgba(255, 91, 58, 0.10); }
.final-cta .container { position: relative; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-deep);
  color: var(--color-text-muted);
  padding-block: var(--space-6) var(--space-4);
  font-size: 0.9375rem;
}
.footer .logo { color: var(--color-text); }
.footer__grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer h3 { font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.footer a { color: var(--color-text-muted); text-decoration: none; display: inline-block; padding: 0.4rem 0; }
.footer a:hover { color: var(--color-text); text-decoration: underline; }
.footer :focus-visible { outline-color: var(--color-highlight); }
.footer__desc { max-width: 34ch; margin-top: var(--space-2); }
.footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(167, 232, 207, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

/* ---------- Demo modal ---------- */
.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); border: 1px solid var(--color-border);
  overflow: auto;
}
.modal::backdrop { background: rgba(1, 14, 12, 0.72); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in var(--dur-slow) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-2);
  background: var(--color-bg);
}
.modal__header h2 { font-size: 1.75rem; margin: 0 0 0.25rem; }
.modal__header p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.modal__close {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__body { padding: var(--space-2) var(--space-4) var(--space-4); }

/* Form */
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; gap: var(--space-3); }
@media (min-width: 520px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .req { color: var(--color-accent-text); }
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  font: 400 1rem/1.4 var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A7C9BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.25);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--color-error); }
.field__hint { font-size: 0.8125rem; color: var(--color-text-muted); }
.field__error {
  min-height: 1.2em;
  font-size: 0.875rem;
  color: var(--color-error);
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.field__error:empty { min-height: 0; }

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
}
.consent input {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent--invalid { border-color: var(--color-error); }

.form__legal { font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; margin: 0; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(6, 36, 32, 0.3);
  border-top-color: var(--color-on-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: var(--space-4) 0 var(--space-2); }
.form-success[hidden] { display: none; }
.form-success .icon-badge { margin-inline: auto; width: 64px; height: 64px; border-radius: 50%; }
.form-success .icon-badge svg { width: 32px; height: 32px; }

/* ---------- Electric Mint accents ----------
   Deep green-black stage, mint for action, lime for highlights. All text pairs AA (see MASTER.md). */
.section--alt { background: var(--color-bg-alt); }
.section--peach { background: var(--color-bg-alt-2); }
.section--alt, .section--peach { border-block: 1px solid var(--color-border); }

.eyebrow {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-highlight);
  color: var(--color-on-accent);
  letter-spacing: 0.07em;
}

.hl em { color: var(--color-accent); }
.hero__services li:nth-child(2)::before { background: var(--color-highlight); }
.hero__services li:nth-child(3)::before { background: var(--paper); }
.hero__photo img { filter: brightness(0.94) saturate(1.02); }

/* Cards on dark */
.card { background: var(--color-surface); border-color: var(--color-border); }
.icon-badge { background: var(--color-primary-soft); color: var(--color-accent); }
.icon-badge--coral { background: rgba(212, 242, 90, 0.12); color: var(--color-highlight); }
.grid .feature:nth-child(3n+1) .icon-badge { background: var(--color-accent); color: var(--color-on-accent); }
.grid .feature:nth-child(3n+2) .icon-badge { background: var(--color-highlight); color: var(--color-on-accent); }
.grid .feature:nth-child(3n)   .icon-badge { background: var(--paper); color: var(--color-on-accent); }
.card.feature { border-color: var(--color-border); }
.card.feature:hover { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 18px 40px -18px rgba(46, 230, 166, 0.35); }

.stat-card { border-top: 3px solid var(--color-accent); }
.stat-card__num { color: var(--color-highlight); }

.step__num { background: var(--color-highlight); color: var(--color-on-accent); box-shadow: 0 0 0 6px rgba(212, 242, 90, 0.18); }
.step:not(:last-child)::before { border-color: var(--color-accent) !important; opacity: 0.4; }

/* Stages: a raised, glowing panel so they still read as moments on a dark page */
.voice,
.final-cta {
  color: var(--color-text);
  background:
    radial-gradient(55% 70% at 12% 0%, rgba(46, 230, 166, 0.22) 0%, rgba(46, 230, 166, 0) 70%),
    radial-gradient(50% 65% at 95% 100%, rgba(212, 242, 90, 0.14) 0%, rgba(212, 242, 90, 0) 70%),
    var(--color-surface);
}
.voice { border: 1px solid var(--color-border); }
.final-cta { border-block: 1px solid var(--color-border); }
.voice h2, .final-cta h2 { color: var(--color-text); }
.voice .eyebrow { background: var(--color-highlight); color: var(--color-on-accent); }
.voice__prompts li { color: var(--color-text); border-color: rgba(46, 230, 166, 0.45); background: rgba(46, 230, 166, 0.08); }
.orb-wrap::before, .orb-wrap::after { border-color: rgba(46, 230, 166, 0.5); }
.orb { color: var(--color-on-accent); }
.final-cta__shape--l { color: rgba(46, 230, 166, 0.07); }
.final-cta__shape--r { color: rgba(212, 242, 90, 0.07); }
.final-cta h2 em { font-style: italic; font-weight: 500; color: var(--color-highlight); }
.footer { background: var(--color-bg-deep); border-top: 1px solid var(--color-border); }
.footer :focus-visible { outline-color: var(--color-highlight); }

.industry { background: var(--color-surface); }
.industry svg { color: var(--color-accent); }
.industry { transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), background-color var(--dur-fast); }
.industry:not(.industry--yours):hover { border-color: var(--color-accent); background: var(--color-surface-2); transform: translateY(-2px); }
.industry--yours { border-color: var(--color-accent); color: var(--color-accent); }

.plan--featured {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(46, 230, 166, 0.10) 0%, var(--color-surface) 45%);
  box-shadow: 0 24px 60px -24px rgba(46, 230, 166, 0.35);
}
.plan__badge { background: var(--color-highlight); color: var(--color-on-accent); box-shadow: 0 4px 18px rgba(212, 242, 90, 0.35); }
.plan__list svg { color: var(--color-accent); }

.testimonial { background: transparent; border-color: var(--color-border); }
.testimonial svg { color: var(--color-accent); opacity: 0.6; }

.faq details { background: var(--color-surface); }
.faq details[open] { border-color: var(--color-accent); }
.faq summary { color: var(--color-text); }
.faq summary svg { color: var(--color-accent); }

/* Conversation: Tendra's replies glow mint */
.chat__msg--in { background: var(--color-surface); color: var(--color-text); }
.chat__msg--out { background: var(--color-accent); color: var(--color-on-accent); }
.chat__booking { background: var(--color-surface); border-color: var(--color-accent); color: var(--color-text); }
.chat__booking > svg { color: var(--color-accent); }
.status-dot { background: var(--color-accent); box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.2); }

.btn { box-shadow: 0 8px 24px -8px rgba(46, 230, 166, 0.55); }
.btn:hover { box-shadow: 0 12px 30px -8px rgba(46, 230, 166, 0.65); }
.btn--secondary { --btn-bg-hover: rgba(244, 251, 248, 0.08); }
.btn--secondary, .btn--secondary:hover { box-shadow: none; }
.btn--primary-solid { box-shadow: 0 8px 24px -10px rgba(244, 251, 248, 0.35); }

.consent { background: var(--color-surface-2); }
.nav__toggle { background: var(--color-surface); }
.modal__close { background: var(--color-surface); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--e-quint), transform 1.05s var(--e-expo); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Section headlines wipe up out of a mask */
.section-head.reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path 1.05s var(--e-expo) .08s, transform 1.05s var(--e-expo) .08s; }
.section-head.reveal.is-visible h2 { clip-path: inset(-.3em -.3em -.3em -.3em); transform: none; }
.no-js .reveal, .no-js .section-head.reveal h2 { opacity: 1; transform: none; clip-path: none; }

/* ---------- Hover only on devices that hover ---------- */
@media (hover: none) {
  .btn:hover, .card.feature:hover, .orb:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal, .section-head.reveal h2 { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Icon base (sprite <use>) ---------- */
.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
