/* =========================================================================
   Symbio AI - Design System
   One stylesheet, one source of truth. Sections:
     1.  Design tokens (custom properties)
     2.  Dark theme
     3.  Reset & base
     4.  Accessibility helpers
     5.  Layout primitives (container, section, grid)
     6.  Typography helpers (eyebrow, section head, gradient text)
     7.  Buttons
     8.  Brand lockup
     9.  Site header & navigation
     10. Theme toggle & mobile menu button
     11. Living hero (aurora, rotating word, lead inbox)
     12. Cards, features, teasers
     13. Process steps & founders
     14. Pricing
     15. Proof / reviews
     16. Forms (free scan)
     17. Footer
     18. Offer extensions (apps lane, pricing anchors, audience, concepts)
     19. Reveal-on-scroll
     20. Reduced motion
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-accent: #2f6bff;
  --brand-accent-2: #7a4dff;
  --grad-accent: linear-gradient(135deg, #2f6bff, #7a4dff);
  --grad-soft: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(122, 77, 255, 0.12));

  /* Light surfaces & ink */
  --c-bg: #fff;
  --c-bg-tint: #f4f7fe;
  --c-surface: #fff;
  --c-surface-2: #f4f6fb;
  --c-surface-3: #eaeef7;
  --c-text: #0b1220;
  --c-text-muted: #515c70;
  --c-text-faint: #7a8499;
  --c-border: rgba(11, 18, 32, 0.1);
  --c-border-strong: rgba(11, 18, 32, 0.18);
  --c-accent: #2f6bff;
  --c-accent-ink: #fff;
  --c-accent-soft: rgba(47, 107, 255, 0.1);
  --c-ring: rgba(47, 107, 255, 0.55);
  --c-header-bg: rgba(255, 255, 255, 0.78);
  --c-success: #14a06b;
  --c-success-soft: rgba(20, 160, 107, 0.14);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 24, 51, 0.06), 0 1px 3px rgba(13, 24, 51, 0.08);
  --shadow-md: 0 12px 30px -16px rgba(13, 24, 51, 0.28);
  --shadow-lg: 0 30px 60px -28px rgba(13, 24, 51, 0.4);
  --shadow-accent: 0 12px 28px -10px rgba(47, 107, 255, 0.5);

  /* Typography */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial,
    sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-200: 0.8125rem;
  --fs-300: 0.9375rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: clamp(1.2rem, 1.6vw, 1.35rem);
  --fs-700: clamp(1.45rem, 2.6vw, 1.9rem);
  --fs-800: clamp(1.9rem, 4vw, 2.85rem);
  --fs-900: clamp(2.5rem, 6vw, 4.25rem);

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-base: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Structure */
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --dur-fast: 0.16s;
  --dur: 0.25s;
  --dur-slow: 0.6s;

  /* Z-index */
  --z-header: 100;
  --z-skip: 300;

  color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. Dark theme - applied by OS preference, or forced via [data-theme]
   ------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #090d16;
    --c-bg-tint: #0d1320;
    --c-surface: #111726;
    --c-surface-2: #161d2e;
    --c-surface-3: #1d2638;
    --c-text: #eef2fb;
    --c-text-muted: #a3afc6;
    --c-text-faint: #76829b;
    --c-border: rgba(255, 255, 255, 0.1);
    --c-border-strong: rgba(255, 255, 255, 0.2);
    --c-accent: #4b8bff;
    --c-accent-soft: rgba(75, 139, 255, 0.16);
    --c-ring: rgba(94, 158, 255, 0.65);
    --c-header-bg: rgba(11, 16, 27, 0.72);
    --c-success: #2bd08a;
    --c-success-soft: rgba(43, 208, 138, 0.16);
    --shadow-md: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.78);
    --shadow-accent: 0 14px 30px -10px rgba(47, 107, 255, 0.55);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --c-bg: #090d16;
  --c-bg-tint: #0d1320;
  --c-surface: #111726;
  --c-surface-2: #161d2e;
  --c-surface-3: #1d2638;
  --c-text: #eef2fb;
  --c-text-muted: #a3afc6;
  --c-text-faint: #76829b;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-strong: rgba(255, 255, 255, 0.2);
  --c-accent: #4b8bff;
  --c-accent-soft: rgba(75, 139, 255, 0.16);
  --c-ring: rgba(94, 158, 255, 0.65);
  --c-header-bg: rgba(11, 16, 27, 0.72);
  --c-success: #2bd08a;
  --c-success-soft: rgba(43, 208, 138, 0.16);
  --shadow-md: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.78);
  --shadow-accent: 0 14px 30px -10px rgba(47, 107, 255, 0.55);

  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   3. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: var(--lh-snug);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   4. Accessibility helpers
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: var(--z-skip);
  transform: translate(-50%, -120%);
  padding: 0.7rem 1.2rem;
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* -------------------------------------------------------------------------
   5. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--tint {
  background: var(--c-bg-tint);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.grid--top {
  align-items: start;
}

/* Small, intentional spacing/alignment utilities. */
.center {
  text-align: center;
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-7 {
  margin-top: var(--space-7);
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------------------------------------------------------
   6. Typography helpers
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--grad-accent);
  border-radius: var(--radius-pill);
}

.eyebrow--center::before {
  display: none;
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  margin-top: 0.7rem;
  font-size: var(--fs-800);
}

.section__lead {
  margin-top: 1rem;
  font-size: var(--fs-500);
  color: var(--c-text-muted);
}

.text-lead {
  font-size: var(--fs-500);
  color: var(--c-text-muted);
}

/* -------------------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85rem 1.5rem;
  font-size: var(--fs-400);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn--primary {
  background-image: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(47, 107, 255, 0.62);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}

.btn--ghost:hover {
  background: var(--c-surface-2);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: var(--fs-300);
}

.btn--lg {
  padding: 1.05rem 1.9rem;
  font-size: var(--fs-500);
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* -------------------------------------------------------------------------
   8. Brand lockup
   ------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

/* Use the colour mark on light, the reversed mark on dark. */
.brand__mark--dark {
  display: none;
}

[data-theme="dark"] .brand__mark--light {
  display: none;
}

[data-theme="dark"] .brand__mark--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand__mark--light {
    display: none;
  }

  :root:not([data-theme]) .brand__mark--dark {
    display: block;
  }
}

.brand__name {
  font-size: 1.2rem;
}

.brand__accent {
  margin-left: 0.18em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand--footer .brand__name {
  font-size: 1.35rem;
}

/* -------------------------------------------------------------------------
   9. Site header & navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-300);
  font-weight: 500;
  text-decoration: none;
  color: var(--c-text-muted);
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-text);
  background: var(--c-accent-soft);
}

.site-nav__item--cta {
  margin-left: 0.4rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop: full nav, no hamburger. */
@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile: collapse the link list into a dropdown panel. */
@media (max-width: 879px) {
  .site-nav__list {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility var(--dur) var(--ease);
  }

  .site-nav__list.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__link {
    padding: 0.8rem 0.9rem;
    font-size: var(--fs-500);
  }

  .site-nav__item--cta {
    margin: 0.4rem 0 0;
  }

  .site-nav__item--cta .btn {
    width: 100%;
    padding-block: 0.85rem;
    font-size: var(--fs-400);
  }
}

/* -------------------------------------------------------------------------
   10. Theme toggle & mobile menu button
   ------------------------------------------------------------------------- */
.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.theme-toggle:hover,
.nav-toggle:hover {
  background: var(--c-surface-3);
}

.theme-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Light by default -> show the moon (click to go dark). */
.theme-toggle__icon--sun {
  display: none;
}

.theme-toggle__icon--moon {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

/* Pre-JS fallback: honour the OS preference when no choice is stored. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__icon--sun {
    display: block;
  }

  :root:not([data-theme]) .theme-toggle__icon--moon {
    display: none;
  }
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentcolor;
  border-radius: var(--radius-pill);
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------
   11. Living hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__aurora::before,
.hero__aurora::after {
  content: "";
  position: absolute;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero__aurora::before {
  top: -22%;
  left: -8%;
  background: radial-gradient(circle at center, #2f6bff, transparent 62%);
  animation: aurora-drift-a 19s ease-in-out infinite alternate;
}

.hero__aurora::after {
  top: -10%;
  right: -10%;
  background: radial-gradient(circle at center, #7a4dff, transparent 62%);
  animation: aurora-drift-b 23s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero__aurora::before,
[data-theme="dark"] .hero__aurora::after {
  opacity: 0.42;
}

@keyframes aurora-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(7%, 9%, 0) scale(1.18);
  }
}

@keyframes aurora-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }

  to {
    transform: translate3d(-9%, 6%, 0) scale(0.92);
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  margin-bottom: 1.4rem;
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.hero__pill-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 4px var(--c-success-soft);
}

.hero__title {
  font-size: var(--fs-900);
  line-height: var(--lh-tight);
}

.hero__rotator {
  display: inline-block;
  white-space: nowrap;
}

.hero__rotator-word {
  display: inline-block;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.hero__rotator-word.is-exiting {
  opacity: 0;
  transform: translateY(-0.4em);
}

.hero__rotator-word.is-entering {
  opacity: 0;
  transform: translateY(0.4em);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: var(--fs-500);
  color: var(--c-text-muted);
}

.hero__cta {
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: var(--fs-300);
  color: var(--c-text-faint);
}

/* Lead inbox -------------------------------------------------------------- */
.lead-inbox {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  overflow: hidden;
}

.lead-inbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}

.lead-inbox__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-300);
  font-weight: 600;
}

.lead-inbox__live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-success);
  animation: pulse 2s ease-in-out infinite;
}

.lead-inbox__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: var(--fs-200);
  color: var(--c-text-muted);
}

.lead-inbox__count strong {
  font-size: var(--fs-500);
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.lead-inbox__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  min-height: 15rem;
}

.lead {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.lead.is-entering {
  animation: lead-in 0.5s var(--ease) both;
}

.lead__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: var(--fs-200);
  font-weight: 700;
  color: #fff;
  background-image: var(--grad-accent);
}

.lead__body {
  flex: 1;
  min-width: 0;
}

.lead__name {
  font-size: var(--fs-300);
  font-weight: 600;
}

.lead__msg {
  font-size: var(--fs-200);
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead__typing {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  height: 1.1em;
}

.lead__typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--c-text-faint);
  animation: typing 1.2s ease-in-out infinite;
}

.lead__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.lead__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  font-size: var(--fs-200);
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge--typing {
  color: var(--c-text-muted);
  background: var(--c-surface-3);
}

.badge--replied {
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

.badge--booked {
  color: var(--c-success);
  background: var(--c-success-soft);
}

@keyframes lead-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--c-success-soft);
  }

  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

/* -------------------------------------------------------------------------
   12. Cards, features, teasers
   ------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

a.card,
.card--link {
  color: inherit;
  text-decoration: none;
}

a.card:hover,
a.card:focus-visible,
.card--link:hover,
.card--link:focus-visible {
  text-decoration: none;
}

.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  color: var(--c-accent);
  background: var(--c-accent-soft);
  transition: transform var(--dur) var(--ease);
  animation: float-soft 5s ease-in-out infinite;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card__title {
  font-size: var(--fs-600);
}

.card__text {
  margin-top: 0.6rem;
  color: var(--c-text-muted);
}

.card__link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 600;
  font-size: var(--fs-300);
  text-decoration: none;
  color: var(--c-accent);
}

.card__link::after {
  content: " ->";
}

.card__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--c-text-muted);
  font-size: var(--fs-300);
}

.card__list li {
  position: relative;
  padding-left: 1.5rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--grad-accent);
}

/* -------------------------------------------------------------------------
   13. Process steps & founders
   ------------------------------------------------------------------------- */
.step {
  position: relative;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background-image: var(--grad-accent);
  border-radius: var(--radius);
}

.step__title {
  font-size: var(--fs-600);
}

.step__text {
  margin-top: 0.5rem;
  color: var(--c-text-muted);
  font-size: var(--fs-300);
}

.founder {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.founder__avatar {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.8rem;
  font-size: var(--fs-600);
  font-weight: 700;
  color: #fff;
  background-image: var(--grad-accent);
  border-radius: var(--radius);
}

.founder__name {
  font-size: var(--fs-600);
}

.founder__role {
  color: var(--c-accent);
  font-weight: 600;
  font-size: var(--fs-300);
}

.founder__contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.9rem;
  font-size: var(--fs-300);
}

.founder__contact a {
  text-decoration: none;
  color: var(--c-text-muted);
}

.founder__contact a:hover {
  color: var(--c-accent);
}

.founder__rule {
  width: 100%;
  height: 1px;
  margin: 1.4rem 0;
  border: 0;
  background: var(--c-border);
}

/* -------------------------------------------------------------------------
   14. Pricing
   ------------------------------------------------------------------------- */
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.price--popular {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}

.price__flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background-image: var(--grad-accent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-accent);
}

.price__name {
  font-size: var(--fs-600);
}

.price__amount {
  margin-top: 0.6rem;
  font-size: var(--fs-800);
  letter-spacing: -0.03em;
}

.price__amount small {
  font-size: var(--fs-400);
  font-weight: 500;
  color: var(--c-text-faint);
}

.price__desc {
  margin-top: 0.6rem;
  color: var(--c-text-muted);
  font-size: var(--fs-300);
}

.price__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.3rem 0;
  font-size: var(--fs-300);
}

.price__features li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--c-text-muted);
}

.price__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--c-accent);
}

.price__cta {
  margin-top: auto;
}

/* -------------------------------------------------------------------------
   15. Proof / reviews
   ------------------------------------------------------------------------- */
.proof {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.proof__label {
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.proof__title {
  font-size: var(--fs-600);
}

.proof__text {
  color: var(--c-text-muted);
  font-size: var(--fs-300);
}

.note-card {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--c-surface-2);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  font-size: var(--fs-300);
  color: var(--c-text-muted);
}

.note-card__tag {
  flex: none;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  font-size: var(--fs-200);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-faint);
  background: var(--c-surface-3);
  border-radius: var(--radius-pill);
}

/* Generic CTA band ------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  background-image: var(--grad-accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.cta-band__title {
  font-size: var(--fs-800);
}

.cta-band__text {
  max-width: 40rem;
  margin: 1rem auto 0;
  font-size: var(--fs-500);
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn-row {
  margin-top: 1.8rem;
}

.cta-band .btn--secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.cta-band .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.26);
}

.cta-band .btn--light {
  background: #fff;
  color: #1340a8;
}

/* -------------------------------------------------------------------------
   16. Forms (free scan)
   ------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: var(--fs-300);
  font-weight: 600;
}

.field__hint {
  font-weight: 400;
  color: var(--c-text-faint);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: var(--fs-400);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--c-text-faint);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.form__status {
  font-size: var(--fs-300);
  font-weight: 500;
  min-height: 1.4em;
}

.form__status--success {
  color: var(--c-success);
}

.form__status--error {
  color: #d6453b;
}

.form__status--pending {
  color: var(--c-text-muted);
}

/* -------------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--c-bg-tint);
  border-top: 1px solid var(--c-border);
}

.site-footer__inner {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.5rem);
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  }
}

.site-footer__blurb {
  margin: 1rem 0 1.4rem;
  max-width: 24rem;
  color: var(--c-text-muted);
  font-size: var(--fs-300);
}

.site-footer__heading {
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 1rem;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--fs-300);
}

.site-footer__list a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.site-footer__list a:hover {
  color: var(--c-accent);
}

.site-footer__list--contacts li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.9rem;
}

.site-footer__person {
  font-weight: 600;
  color: var(--c-text);
}

.site-footer__role {
  font-size: var(--fs-200);
  color: var(--c-text-faint);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-200);
  color: var(--c-text-faint);
}

.site-footer__credit {
  font-weight: 600;
  color: var(--c-text-muted);
}

/* -------------------------------------------------------------------------
   18. Offer extensions
   ------------------------------------------------------------------------- */

/* Auto-fitting card grid (the "what we can build" / concept menus). */
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* Premium, tinted card for the custom-apps lane. */
.card--feature {
  position: relative;
  background-image: var(--grad-soft);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
}

/* Two-column feature list (custom-apps examples). */
.card__list--two {
  margin-top: 0;
}

@media (min-width: 560px) {
  .card__list--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

/* A badge sitting at the top of a card (concept tags). */
.card > .badge {
  align-self: flex-start;
  margin-bottom: 0.9rem;
}

.badge--concept {
  color: var(--c-text-muted);
  background: var(--c-surface-3);
}

/* "Who we help" strip. */
.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.audience__label {
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.chip {
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
}

/* Pricing "starting points" anchors. */
.price-anchors {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 720px) {
  .price-anchors {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-anchor {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 1.5rem;
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.price-anchor--feature {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
}

.price-anchor__label {
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--c-text-muted);
}

.price-anchor__amount {
  font-size: var(--fs-700);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-anchor__note {
  font-size: var(--fs-200);
  color: var(--c-text-faint);
}

/* --- Motion & aliveness (echoes the home page) --- */

/* Generic aurora backdrop, reusing the hero's drift keyframes, for any
   section marked .has-aurora. Sits behind the container content. */
.has-aurora {
  position: relative;
  isolation: isolate;
}

.has-aurora > .container {
  position: relative;
  z-index: 1;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.aurora::before {
  top: -32%;
  left: -6%;
  background: radial-gradient(circle at center, #2f6bff, transparent 62%);
  animation: aurora-drift-a 21s ease-in-out infinite alternate;
}

.aurora::after {
  right: -6%;
  bottom: -36%;
  background: radial-gradient(circle at center, #7a4dff, transparent 62%);
  animation: aurora-drift-b 25s ease-in-out infinite alternate;
}

[data-theme="dark"] .aurora::before,
[data-theme="dark"] .aurora::after {
  opacity: 0.4;
}

/* Lift non-tilting surfaces on hover. */
.price,
.proof,
.step,
.founder,
.price-anchor {
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.price:hover,
.proof:hover,
.step:hover,
.founder:hover,
.price-anchor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}

/* Smoothly animatable angle for the rotating glow borders. */
@property --spin-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradient-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes spin-angle {
  to {
    --spin-angle: 360deg;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Gradient text flows continuously for a living shimmer. */
.gradient-text,
.hero__rotator-word,
.price-anchor__amount {
  background-size: 220% 220%;
  animation: gradient-flow 8s ease-in-out infinite;
}

/* Card icons gently float; staggered so a grid shimmers with life. */
.grid .card:nth-child(3n + 2) .card__icon {
  animation-delay: -1.6s;
}

.grid .card:nth-child(3n + 3) .card__icon {
  animation-delay: -3.2s;
}

/* Grid cards: a cursor-following spotlight (tilt is added after the reveal
   rules so it can override .is-visible). main.js feeds --mx/--my/--rx/--ry. */
.grid .card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  transform-style: preserve-3d;
}

.grid .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx) var(--my),
    rgba(122, 77, 255, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.grid .card:hover::after {
  opacity: 1;
}

/* Living, rotating gradient-glow border on the premium custom-apps card. */
.card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--spin-angle),
    transparent 45%,
    #2f6bff 72%,
    #7a4dff 86%,
    transparent
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 6s linear infinite;
  pointer-events: none;
}

/* Cascade the auto-fit card menus in as they scroll into view. */
.grid--auto > [data-reveal]:nth-child(4n + 2) {
  transition-delay: 0.07s;
}

.grid--auto > [data-reveal]:nth-child(4n + 3) {
  transition-delay: 0.14s;
}

.grid--auto > [data-reveal]:nth-child(4n + 4) {
  transition-delay: 0.21s;
}

/* -------------------------------------------------------------------------
   19. Reveal-on-scroll (only hides when JS is active)
   ------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

/* Hover tilt for grid cards - defined after the reveal rules so it overrides
   .is-visible's transform: none. main.js feeds --rx/--ry on pointer move. */
.grid .card:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px);
  transition: transform 0.1s ease;
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border-strong);
}

.grid .card.card--static,
.grid .card.card--static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--c-border);
}

.grid .card.card--static::after,
.grid .card.card--static:hover::after {
  display: none;
}

/* -------------------------------------------------------------------------
   20. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
