/* ==========================================================================
   TalkToDoc — Landing Page
   Design system + components
   --------------------------------------------------------------------------
   0.  Tokens
   1.  Reset & base
   2.  Layout primitives
   3.  Typography
   4.  Buttons, chips, form controls
   5.  Decorative aurora field
   6.  Header & navigation
   7.  Hero
   8.  About
   9.  Smart matching
   10. Process
   11. Features
   12. FAQ
   13. Waitlist
   14. Footer
   15. Motion & reveal
   ========================================================================== */

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
  /* Brand ------------------------------------------------------------- */
  --ink:          #0A2B39;
  --brand-900:    #103E52;
  --brand-700:    #144C64;
  --brand-500:    #237699;
  --brand-300:    #7FB3C9;
  --brand-100:    #DCEAF1;
  --brand-50:     #F1F7FA;

  --accent:       #0ABECA;
  --accent-soft:  #22D3D9;
  --violet:       #B45BD4;

  /* Surfaces ---------------------------------------------------------- */
  --canvas:       #FBFCFD;
  --surface:      #FFFFFF;
  --surface-sunk: #F4F8FA;

  /* Text -------------------------------------------------------------- */
  --text:         #10394B;
  --text-muted:   #557687;
  --text-faint:   #8AA5B2;
  --text-invert:  #FFFFFF;

  /* Lines & shadows --------------------------------------------------- */
  --line:         rgba(16, 62, 82, 0.10);
  --line-strong:  rgba(16, 62, 82, 0.18);

  --shadow-xs:    0 1px 2px rgba(10, 43, 57, 0.05);
  --shadow-sm:    0 2px 8px rgba(10, 43, 57, 0.05),
                  0 1px 2px rgba(10, 43, 57, 0.04);
  --shadow-md:    0 12px 28px -12px rgba(10, 43, 57, 0.16),
                  0 2px 8px rgba(10, 43, 57, 0.04);
  --shadow-lg:    0 32px 64px -28px rgba(10, 43, 57, 0.28),
                  0 8px 20px -12px rgba(10, 43, 57, 0.10);
  --shadow-brand: 0 14px 30px -12px rgba(20, 76, 100, 0.45);

  /* Radii ------------------------------------------------------------- */
  --r-xs:   8px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Type -------------------------------------------------------------- */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 1.05rem + 5.4vw, 4.5rem);
  --fs-h2:      clamp(2rem, 1.25rem + 2.8vw, 3.25rem);
  --fs-h3:      clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:    1rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  /* Space & layout ---------------------------------------------------- */
  --gutter:     clamp(1.25rem, 0.5rem + 3vw, 5rem);
  --shell:      1240px;
  --section-y:  clamp(4.5rem, 2rem + 9vw, 9rem);

  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { margin: 0; }

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

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

[hidden] { display: none !important; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

a { color: inherit; }

::selection {
  background: var(--brand-700);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand-700);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.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;
}

.icon-sprite { display: none; }

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
}

.section--tight { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Small caps label above a section title */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  font-family: var(--font-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-head--center .eyebrow::before { display: none; }

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-900);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.25; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.muted { color: var(--text-muted); }

/* Gradient emphasis inside a headline */
.grad {
  background: linear-gradient(105deg, var(--brand-500) 0%, var(--accent) 55%, var(--violet) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   4. Buttons, chips, form controls
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--brand-700);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.75rem;
  min-height: 3.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  --btn-fg: #fff;
  --btn-border: transparent;
  background: linear-gradient(140deg, var(--brand-500) 0%, var(--brand-700) 55%, var(--brand-900) 100%);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(20, 76, 100, 0.55);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  --btn-bg: #fff;
  --btn-border: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm { min-height: 2.75rem; padding: 0.625rem 1.25rem; font-size: var(--fs-xs); }

.btn:active { transform: translateY(0); }

/* Text link with an animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--brand-700);
  text-decoration: none;
}
.link-arrow svg {
  width: 1rem; height: 1rem;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover svg { transform: translateX(4px); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.5625rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(10px);
}

.chip svg { width: 1rem; height: 1rem; color: var(--accent); flex: none; }

.chip--live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.125rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(10, 190, 202, 0.6);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(10, 190, 202, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(10, 190, 202, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 190, 202, 0); }
}

/* Icon tile used by process steps and feature cards */
.icon-tile {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, #fff, var(--brand-50));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--brand-700);
  flex: none;
}

.icon-tile svg { width: 1.625rem; height: 1.625rem; }

/* ==========================================================================
   5. Decorative aurora field
   ========================================================================== */
/* The container bleeds well past its section so the blur never meets a hard
   edge; overflow: hidden still contains it horizontally, at the viewport
   border where the cut is invisible. */
.aurora {
  --bleed: 20rem;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--bleed) * -1);
  bottom: calc(var(--bleed) * -1);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

/* Hero field */
.aurora--hero::before {
  width: 46rem; height: 30rem;
  top: 6rem; right: -12rem;
  background: radial-gradient(closest-side, rgba(10, 190, 202, 0.28), transparent);
}
.aurora--hero::after {
  width: 40rem; height: 26rem;
  top: 24rem; left: -18rem;
  background: radial-gradient(closest-side, rgba(180, 91, 212, 0.16), transparent);
}

/* Matching field */
.aurora--match::before {
  width: 44rem; height: 26rem;
  bottom: 10rem; left: -14rem;
  background: radial-gradient(closest-side, rgba(35, 118, 153, 0.22), transparent);
}
.aurora--match::after {
  width: 30rem; height: 20rem;
  top: 14rem; right: -8rem;
  background: radial-gradient(closest-side, rgba(180, 91, 212, 0.14), transparent);
}

/* Waitlist field */
.aurora--waitlist::before {
  width: 48rem; height: 30rem;
  top: 8rem; left: 40%;
  background: radial-gradient(closest-side, rgba(10, 190, 202, 0.22), transparent);
}
.aurora--waitlist::after {
  width: 34rem; height: 22rem;
  bottom: 8rem; left: -12rem;
  background: radial-gradient(closest-side, rgba(35, 118, 153, 0.18), transparent);
}

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: padding 0.35s var(--ease), background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  padding-block: 0.75rem;
  background: rgba(251, 252, 253, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -12px rgba(10, 43, 57, 0.22);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--r-xs);
}
.brand img {
  width: clamp(8.25rem, 6rem + 5vw, 10.5rem);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, -0.25rem + 2vw, 1.5rem);
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, -0.5rem + 2vw, 1.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-xs);
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.25rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover { color: var(--brand-900); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--brand-900); font-weight: 600; }

.nav__cta { flex: none; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex: none;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 1.125rem;
  height: 1.5px;
  background: var(--brand-900);
  border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-900);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.25s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { 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); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 43, 57, 0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 60rem) {
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem) scale(0.985);
    transform-origin: top right;
    transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    margin-left: 0;
  }

  .nav__link {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--brand-900);
  }
  .nav__link::after { display: none; }
  .nav__link:hover,
  .nav__link[aria-current="true"] { background: var(--brand-50); }

  .nav__cta { margin-top: 0.5rem; width: 100%; }

  .nav-toggle { display: grid; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 1rem + 5vw, 5rem);
  padding-bottom: clamp(3rem, 1rem + 6vw, 6rem);
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1rem + 6vw, 4rem);
  align-items: center;
}

.hero__copy > * + * { margin-top: 1.5rem; }

.hero__title { max-width: 16ch; }

.hero__lead { max-width: 44ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.proof__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.3125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-900);
}

.proof__label {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-muted);
}

/* Hero artwork ------------------------------------------------------- */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.hero__art picture { display: block; width: 100%; }

.hero__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(35, 118, 153, 0.16), transparent 72%);
  filter: blur(18px);
}

.hero__art img {
  width: 100%;
  filter: drop-shadow(0 44px 60px rgba(10, 43, 57, 0.20));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero__badge {
  position: absolute;
  z-index: 2;
  animation: float 9s ease-in-out infinite;
}

.hero__badge--1 { top: 16%;  left: -1%;  animation-delay: -1.2s; }
.hero__badge--2 { top: 46%;  right: -2%; animation-delay: -3.4s; }
.hero__badge--3 { bottom: 16%; left: 4%;  animation-delay: -5.6s; }

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(2rem, -2rem + 7vw, 4.5rem);
  }
  .hero__art { max-width: none; margin-right: calc(var(--gutter) * -0.6); }
}

/* ==========================================================================
   8. About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}

.about__copy > * + * { margin-top: 1.25rem; }

.about__list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.about__list strong {
  display: block;
  color: var(--brand-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.125rem;
}

.tick {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1875rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--brand-500));
  color: #fff;
  flex: none;
}
.tick svg { width: 0.8125rem; height: 0.8125rem; }

/* Photo mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.25rem + 1.4vw, 1.25rem);
}

.mosaic figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--surface-sunk);
  box-shadow: var(--shadow-md);
}

.mosaic picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.mosaic figure:hover img { transform: scale(1.045); }

.mosaic figure:nth-child(1) { aspect-ratio: 1 / 1;    margin-top: clamp(1rem, 3vw, 2.5rem); }
.mosaic figure:nth-child(2) { aspect-ratio: 4 / 5; }
.mosaic figure:nth-child(3) { aspect-ratio: 4 / 5;    margin-top: calc(clamp(1rem, 3vw, 2.5rem) * -1); }
.mosaic figure:nth-child(4) { aspect-ratio: 1 / 1; }

@media (min-width: 62rem) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .about__media { order: -1; }
}

/* ==========================================================================
   9. Smart matching
   ========================================================================== */
.match { position: relative; }

.match__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 0.5rem + 4vw, 3.5rem);
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  background: linear-gradient(150deg, #fff 0%, var(--brand-50) 100%);
  border: 1px solid var(--line);
  border-radius: clamp(var(--r-lg), 2vw, var(--r-xl));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.match__panel::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 190, 202, 0.14), transparent 70%);
  pointer-events: none;
}

.match__lead { position: relative; }

.match__title { max-width: 18ch; }

.match__body > * + * { margin-top: 1.125rem; }

.match__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.4375rem 0.875rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--brand-700);
}

@media (min-width: 56rem) {
  .match__panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
}

/* ==========================================================================
   10. Process
   ========================================================================== */
.process { background: linear-gradient(180deg, transparent, var(--brand-50) 45%, transparent); }

.process__track {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 1.125rem;
  row-gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.step__num {
  grid-column: 1;
  grid-row: 2;
  width: 3.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-300);
}

.step .icon-tile { grid-column: 1; grid-row: 1; }

.step__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.step__title {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

.step__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Desktop: 5 columns joined by a hairline rail through the icon tiles */
@media (min-width: 64rem) {
  .process__track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.75rem, -1rem + 2.6vw, 1.5rem);
    position: relative;
  }

  .process__track::before {
    content: "";
    position: absolute;
    top: 5.5rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-300) 12%, var(--brand-300) 88%, transparent);
    z-index: 0;
  }

  .step {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 1.375rem 1.875rem;
    background: rgba(255, 255, 255, 0.86);
  }

  .step__num {
    order: -1;
    width: auto;
    text-align: left;
  }

  .step .icon-tile { margin-top: -0.5rem; }
}

/* ==========================================================================
   11. Features
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
}

.feature {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              border-color 0.3s var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand-500), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.feature:hover::before { transform: scaleX(1); }

.feature .icon-tile { margin-bottom: 1.25rem; }

.feature__title { font-size: var(--fs-h3); margin-bottom: 0.625rem; }

.feature__text { font-size: var(--fs-sm); color: var(--text-muted); }

.feature__note {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.625rem;
  background: var(--brand-50);
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-500);
}

@media (min-width: 48rem) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 62rem) {
  .features__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 0rem + 5vw, 4.5rem);
    align-items: start;
  }
  .features__layout .section-head {
    position: sticky;
    top: 7rem;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq__list {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq__item[open],
.faq__item:hover { border-color: var(--brand-300); }
.faq__item[open] { box-shadow: var(--shadow-sm); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem clamp(1rem, 0.5rem + 1.4vw, 1.75rem);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brand-900);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-50);
  transition: background-color 0.3s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--brand-700);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__icon { background: var(--brand-700); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq__item[open] .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }

.faq__a p {
  padding: 0 clamp(1rem, 0.5rem + 1.4vw, 1.75rem) 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 62ch;
}

/* ==========================================================================
   13. Waitlist
   ========================================================================== */


.waitlist__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 250, 0.86));
  border: 1px solid var(--line);
  border-radius: clamp(var(--r-lg), 2vw, var(--r-xl));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.waitlist__title { max-width: 18ch; }

.waitlist__copy > * + * { margin-top: 1.25rem; }

.signup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}

.field {
  position: relative;
  flex: 1 1 16rem;
  min-width: 0;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9375rem 1.125rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder { color: var(--text-faint); }

.field input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(35, 118, 153, 0.12);
}

.field.has-error input {
  border-color: #D6455D;
  box-shadow: 0 0 0 4px rgba(214, 69, 93, 0.10);
}

.field__error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.4375rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #C13A51;
}

.signup .btn { flex: 0 0 auto; }

.signup__note {
  flex: 1 0 100%;
  margin-top: -0.25rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

@media (max-width: 30rem) {
  .signup .btn { width: 100%; }
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
  padding: 1.125rem 1.375rem;
  background: linear-gradient(140deg, rgba(10, 190, 202, 0.10), rgba(35, 118, 153, 0.08));
  border: 1px solid rgba(10, 190, 202, 0.32);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand-900);
}
.form-success .tick { margin-top: 0; }

.waitlist__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.waitlist__media img { width: 100%; }

@media (min-width: 56rem) {
  .waitlist__panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  background: linear-gradient(155deg, var(--brand-700) 0%, var(--brand-900) 62%, #0B2F3F 100%);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 190, 202, 0.24), transparent 70%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__brand img {
  width: 9.5rem;
  margin-bottom: 1.125rem;
}

.footer__tagline {
  max-width: 30ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer__heading {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer__list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.footer__list a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__list a:hover { color: #fff; }

.socials {
  display: flex;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s var(--ease-out), background-color 0.25s var(--ease);
}

.socials svg { width: 1.0625rem; height: 1.0625rem; }

.socials a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.footer__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.to-top svg { width: 0.875rem; height: 0.875rem; }
.to-top:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

@media (min-width: 48rem) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 62rem) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; }
}

/* ==========================================================================
   15. Motion & reveal
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__art img,
  .hero__badge { animation: none; }
}

@media print {
  .site-header, .nav-scrim, .aurora, .to-top { display: none !important; }
  body { background: #fff; }
}
