/* Footer wave (elevation card c4a-footer-wave-v2, rebuilt without React).
   Five crimson bands on springs (k 40, coupling 900, damping 4.5, 41 samples per band).
   Pointer lift 44 / 18 / 7, tap kick 260, rise on view with bands 90ms apart, CTA 240ms 300ms late.
   Reads the page's own tokens: --ink --muted --faint --line --maroon --coral --disp --sans --maxw.
   The page styles bare `footer`, `#waitlist` and `#waitlist h2` (the old closing section). This footer
   carries id="waitlist" on its CTA, so the rules that matter are scoped under #fwv to win over those. */

.fwv {
  container: fwv / inline-size;
  position: relative;
  z-index: 1;
  background: #000;
  color: var(--ink, #f7f4f4);
  font-family: var(--sans, Inter, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  padding: 0;
  margin: 0;
  border: 0;
  -webkit-font-smoothing: antialiased;
}
.fwv *, .fwv *::before, .fwv *::after { box-sizing: border-box; }
.fwv :focus-visible { outline: 2px solid var(--coral, #f0435c); outline-offset: 3px; }

.fwv-in {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 0 28px;
}

/* the wave and the closing ask that sits on its front band */
.fwv-wave {
  position: relative;
  /* The card's wave is 1000 x 300. Full-bleed on a wide screen it would flatten, so above 1000px the
     height grows with the width to keep the same shape, up to 400px. */
  height: clamp(300px, 30vw, 400px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}
.fwv-wave > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

#fwv .fwv-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  overflow: visible;
  text-align: left;
  pointer-events: none;
}
.fwv-cta .fwv-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.fwv-js .fwv-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease 300ms, transform 240ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}
.fwv-js.is-in .fwv-cta { opacity: 1; transform: none; }

#fwv .fwv-cta h2 {
  margin: 0;
  font-family: var(--disp, "Inter Tight", Inter, sans-serif);
  font-weight: 800;
  font-size: clamp(24px, 4.2cqi, 40px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  color: #fff;
}
.fwv-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans, Inter, sans-serif);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 12px 22px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: var(--ink, #f7f4f4);
  color: #160b0d;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.9);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease;
}
.fwv-btn:active { transform: scale(0.97); }
.fwv-btn svg { flex: none; }

/* the body: wordmark, tagline, named icons, site and legal links, copyright */
.fwv-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  padding-top: 10px;
  padding-bottom: 22px;
}
.fwv-logo { display: block; height: 24px; width: auto; }
.fwv-brand p { margin: 10px 0 16px; color: var(--muted, #9c9294); font-size: 14px; }

.fwv-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.fwv-ico {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink, #f7f4f4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fwv-ico svg { width: 17px; height: 17px; display: block; }
.fwv-ico:hover, .fwv-ico:focus-visible { background: var(--maroon, #e21833); border-color: var(--maroon, #e21833); }
.fwv-ico:active { transform: scale(0.94); }
.fwv-ico::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #160b0d;
  background: var(--ink, #f7f4f4);
  border-radius: 8px;
  padding: 5px 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fwv-ico::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--ink, #f7f4f4);
  transform: translate(-50%, 4px) rotate(45deg);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fwv-ico:hover::after, .fwv-ico:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.fwv-ico:hover::before, .fwv-ico:focus-visible::before { opacity: 1; transform: translate(-50%, 0) rotate(45deg); }

.fwv-col { display: flex; flex-direction: column; gap: 9px; }
/* the page styles every bare nav as its fixed top bar; these link lists are not that */
.fwv nav.fwv-col { position: static; z-index: auto; border-bottom: 0; background: none; backdrop-filter: none; transition: none; }
.fwv-col h3 { margin: 0 0 2px; font-family: var(--sans, Inter, sans-serif); font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink, #f7f4f4); }
.fwv-col a { color: var(--muted, #9c9294); font-size: 14px; text-decoration: none; width: fit-content; transition: color 160ms ease; }
.fwv-col a:hover { color: var(--ink, #f7f4f4); }

.fwv-base {
  margin: 0;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  color: var(--faint, #8a8082);
  font-size: 12.5px;
}

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

@container fwv (max-width: 640px) {
  .fwv-wave { height: 270px; }
  #fwv .fwv-cta { bottom: 28px; }
  .fwv-cta .fwv-in { gap: 12px; }
  .fwv-body { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 8px; padding-bottom: 18px; }
  .fwv-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .fwv-js .fwv-cta { transition: none; transform: none; opacity: 1; }
  .fwv-ico, .fwv-ico::before, .fwv-ico::after, .fwv-btn { transition-duration: 1ms; }
}
