/* HIAMi landing page. Every value resolves through the tokens below (skill Part B). */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* B2 spacing */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  /* B3 radius (Tailwind values only) */
  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  /* Brand colour, approximated from the supplied logo files */
  --lilac: #F7F3FE; --tint: #EDE3FD; --tint-strong: #E0CFFC; --white: #FFFFFF;
  --ink: #1C0A33; --ink-soft: #55456D; --line: #DCCFF2;
  --violet: #7B2FFF; --violet-deep: #6417E6; --violet-text: #6417E6;
  --aubergine: #0D0419; --aubergine-soft: #1E1033; --aubergine-line: #3A2A52;
  --on-dark: #FFFFFF; --on-dark-soft: #C9BEDC; --lilac-bright: #D9A0FF;
  --danger: #B3123F; --danger-on-dark: #FFB3C7;
  /* B7 motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body {
  margin: 0;
  background: var(--lilac);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, summary, label { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.band-dark :focus-visible { outline-color: var(--lilac-bright); }
::selection { background: var(--tint-strong); color: var(--ink); }

/* B1 named text styles */
.heading-1 { font-size: 3.75rem; line-height: 3.75rem; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 3rem; line-height: 3rem; font-weight: 600; letter-spacing: -0.03em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.body-7 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 400; } /* added per B1: next number in the Body group */
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

/* Agreed exception: Heading 1 steps down so the hero fits a phone */
@media (max-width: 767px) {
  .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }
  .body-7 { font-size: 1rem; line-height: 1.5rem; }
}

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-300); }
@media (min-width: 768px) { .container { padding-inline: var(--s-500); } }
.section { padding-block: var(--s-700); }
@media (min-width: 768px) { .section { padding-block: var(--s-900); } }
.section.section-flush { padding-top: 0; }
.band-dark { background: var(--aubergine); color: var(--on-dark); color-scheme: dark; }
.muted { color: var(--ink-soft); }
.band-dark .muted { color: var(--on-dark-soft); }
.accent { color: var(--lilac-bright); }
.stack-200 > * + * { margin-top: var(--s-200); }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: var(--s-100); left: var(--s-100); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  background: var(--ink); color: var(--white); text-decoration: none;
  transform: translateY(-64px);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

/* Buttons (B2: 8px vertical, 12px horizontal) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border: 0; border-radius: var(--r-xl);
  background: var(--violet); color: var(--white); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { background: var(--violet-deep); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn[aria-busy="true"] { cursor: progress; animation: pulse 1200ms var(--ease) infinite alternate; }
.btn[aria-busy="true"]:hover { transform: none; background: var(--violet); }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.6; } }

/* Floating navigation (B7) */
.site-nav {
  position: fixed; top: var(--s-200); left: 50%; z-index: 60;
  display: flex; align-items: center; gap: var(--s-300);
  width: max-content; max-width: calc(100% - var(--s-400));
  padding: var(--s-75); border: 1px solid rgba(28, 10, 51, 0.08); border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateX(-50%);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-75); border-radius: var(--r-lg); text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.brand span { font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; letter-spacing: 0.12em; }
.nav-links { display: none; align-items: center; gap: var(--s-50); }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); text-decoration: none;
  color: var(--ink-soft);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: var(--tint); color: var(--ink); }
.nav-links a:active { background: var(--tint-strong); }
.nav-links a[aria-current="true"] { background: var(--tint); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--s-75); margin-left: auto; }
.nav-cta { transition: background-color 300ms var(--ease), transform 500ms var(--ease), opacity 500ms var(--ease), visibility 0s var(--ease) 0s; }
.cta-rest .nav-cta, .signed-up .nav-cta { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s var(--ease) 300ms; }
.menu-toggle {
  position: relative; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-lg);
  background: transparent; cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
/* Touch targets reach 44px without changing how the nav looks: an invisible extension around each control */
.nav-cta { position: relative; }
.nav-cta::before, .menu-toggle::before, .people-toggle::before { content: ""; position: absolute; }
.nav-cta::before { inset: -4px -2px; }
.menu-toggle::before { inset: -4px; }
.people-toggle::before { inset: -2px; }
.menu-toggle:hover { background: var(--tint); }
.menu-toggle:active { transform: scale(0.98); }
.menu-toggle span {
  position: absolute; left: var(--s-75); right: var(--s-75); top: 17px; height: 2px; border-radius: var(--r-full); background: var(--ink);
  transition: transform 500ms var(--ease);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 899px) {
  .site-nav { width: calc(100% - var(--s-400)); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-300);
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(247, 243, 254, 0.96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 500ms var(--ease), visibility 0s var(--ease) 500ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 500ms var(--ease); }
.mobile-menu a { display: block; padding-block: var(--s-75); text-decoration: none; border-radius: var(--r-lg); }
.mobile-menu li { opacity: 0; transform: translateY(24px); }
.mobile-menu.open li {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.mobile-menu a[aria-current="true"] { color: var(--violet-text); }
/* Sheet mode (set by site.js when motion is allowed): a spring moves it, so CSS only shows and hides it */
.mobile-menu.sheet {
  opacity: 1; visibility: hidden; transition: none; will-change: transform; touch-action: none;
  border-radius: 0 0 var(--r-3xl) var(--r-3xl); box-shadow: 0 24px 48px rgba(28, 10, 51, 0.18);
}
.mobile-menu.sheet.sheet-shown { visibility: visible; }
.mobile-menu.sheet li { opacity: 1; transform: none; transition: none; }
.mobile-menu.sheet-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
/* Grabber: says the sheet can be pushed back up */
.mobile-menu.sheet::after {
  content: ""; position: absolute; left: 50%; bottom: var(--s-100); width: 36px; height: 5px;
  border-radius: var(--r-full); background: currentColor; opacity: 0.24; transform: translateX(-50%);
}
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* Hero */
.hero { padding-top: var(--s-800); overflow-x: clip; }
@media (min-width: 768px) { .hero { padding-top: var(--s-900); } }
.hero-grid { display: grid; gap: var(--s-200); align-items: center; padding-top: var(--s-200); }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); padding-top: var(--s-600); }
}
.hero-title {
  width: fit-content; max-width: 680px; padding-bottom: var(--s-75);
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 680px; margin-top: var(--s-200); }
.hero .waitlist, .hero .form-success { margin-top: var(--s-300); }
.final .form-success { margin-top: var(--s-400); }
@media (min-width: 768px) { .hero .waitlist, .hero .form-success { margin-top: var(--s-400); } }
.waitlist[hidden] { display: none; }

/* Waitlist form */
.waitlist { max-width: 520px; }
.field-label { display: block; margin-bottom: var(--s-75); }
.field-row { display: flex; flex-direction: column; gap: var(--s-75); }
@media (min-width: 560px) { .field-row { flex-direction: row; } .field-row .input { flex: 1; min-width: 0; } }
.input {
  width: 100%; min-height: 44px; height: auto; padding: var(--s-75) var(--s-100);
  border: 1px solid #8A7BA3; border-radius: var(--r-xl); background: var(--white); color: var(--ink);
  transition: border-color 300ms var(--ease);
}
.input::placeholder { color: #6C5D85; }
.input:hover { border-color: var(--violet); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: var(--s-75); margin-top: var(--s-100); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--violet); cursor: pointer; }
.check a { text-underline-offset: 2px; }
.check a:hover { color: var(--violet-text); }
.form-error { display: flex; gap: var(--s-50); margin-top: var(--s-75); color: var(--danger); }
.form-error[hidden] { display: none; }
.form-error .icon-sm { margin-top: var(--s-25); }
.form-note { margin-top: var(--s-200); }
.form-note + .form-note { margin-top: var(--s-50); }
.form-success {
  display: flex; gap: var(--s-100); padding: var(--s-200); border-radius: var(--r-2xl);
  background: var(--tint); color: var(--ink);
}
.form-success .icon { color: var(--violet-text); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.band-dark .input { border-color: #7A6A94; background: var(--aubergine-soft); color: var(--on-dark); }
.band-dark .input::placeholder { color: var(--on-dark-soft); }
.band-dark .input:hover { border-color: var(--lilac-bright); }
.band-dark .input[aria-invalid="true"] { border-color: var(--danger-on-dark); }
.band-dark .check a:hover { color: var(--lilac-bright); }
.band-dark .form-error { color: var(--danger-on-dark); }
.band-dark .form-success { background: var(--aubergine-soft); color: var(--on-dark); }
.band-dark .form-success .icon { color: var(--lilac-bright); }

/* Hero visual: the mark draws itself, the conversation arrives inside it */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-mark { position: absolute; inset: 0; margin: auto; width: 100%; max-width: 540px; height: auto; }
@media (max-width: 559px) {
  .hero-visual { min-height: 0; padding-block: var(--s-400); }
  .hero-mark { width: 124%; max-width: none; left: 50%; right: auto; transform: translateX(-50%); }
  .device { max-width: 296px; }
}
.hero-mark path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.32; }
.hero-mark .cap { opacity: 0; }
.drawn .hero-mark path { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease); }
.drawn .hero-mark .cap { opacity: 0.32; transition: opacity 300ms var(--ease); }
.device {
  position: relative; width: 100%; max-width: 320px; padding: var(--s-75);
  border-radius: var(--r-3xl); background: var(--ink);
}
.screen { padding: var(--s-200); border-radius: var(--r-2xl); background: var(--white); }
.chat-head { display: flex; align-items: center; gap: var(--s-75); padding-bottom: var(--s-100); border-bottom: 1px solid var(--line); border-top: 0; }
.chat-head img { width: 24px; height: 24px; }
.chat { display: flex; flex-direction: column; gap: var(--s-75); padding-top: var(--s-100); }
.bubble { max-width: 88%; padding: var(--s-75) var(--s-100); border-radius: var(--r-2xl); }
.bubble-me { align-self: flex-end; background: var(--violet); color: var(--white); }
.bubble-ai { position: relative; align-self: flex-start; background: var(--tint); color: var(--ink); }
.bubble-ai strong { font-weight: 600; }
.handover { display: flex; gap: var(--s-75); padding: var(--s-100); border: 1px solid var(--line); border-radius: var(--r-2xl); color: var(--ink); }
.handover .icon { color: var(--violet-text); }
.illustration-note { margin-top: var(--s-100); text-align: center; color: var(--on-dark-soft); }
/* Appears once the conversation has finished, so it never disappears on a timer */
.chat-replay {
  display: block; min-height: 44px; margin: var(--s-50) auto 0; padding: 0 var(--s-200);
  border: 0; border-radius: var(--r-full); background: transparent; color: var(--violet-text);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: opacity 300ms var(--ease);
}
.chat-replay:hover { opacity: 0.8; }
.chat-replay:active { opacity: 0.6; }
.chat-replay[hidden] { display: none; }
.step { opacity: 1; }
.chat { transition: opacity 500ms var(--ease); }
.chat.chat-fade { opacity: 0; }
.chw { display: inline-block; white-space: nowrap; }
.ch { opacity: 0; }
.ch.on { opacity: 1; transition: opacity 200ms var(--ease); }
.js .animate-chat .step { opacity: 0; transform: translateY(8px); }
.js .animate-chat .step.show { opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.dots { position: absolute; left: var(--s-100); top: 50%; display: none; gap: var(--s-50); transform: translateY(-50%); }
.dots i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--ink-soft); animation: pulse 500ms var(--ease) infinite alternate; }
.dots i:nth-child(2) { animation-delay: 120ms; }
.dots i:nth-child(3) { animation-delay: 240ms; }
.js .animate-chat .bubble-ai.show .said { opacity: 0; }
.js .animate-chat .bubble-ai.show:not(.spoken) .dots { display: flex; }
.js .animate-chat .bubble-ai.spoken .said { opacity: 1; transition: opacity 500ms var(--ease); }

/* Partners: two rows drifting in opposite directions */
.partners { position: relative; padding-block: var(--s-300); overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.partners-title { margin-bottom: var(--s-300); padding-inline: var(--s-700); }
.partners-row {
  margin-bottom: var(--s-200); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.partners-track { display: flex; width: max-content; animation: partners-scroll 62s linear infinite; }
.partners-row-two .partners-track { animation-direction: reverse; animation-duration: 70s; }
.partners:hover .partners-track, .partners.is-paused .partners-track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }
.partners-sequence { display: flex; align-items: center; gap: var(--s-700); padding-right: var(--s-700); }
.partner { display: flex; flex: none; align-items: center; gap: var(--s-100); font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.partner img { display: block; width: auto; height: 38px; border-radius: var(--r-lg); }
@media (min-width: 768px) { .partner img { height: 51px; } }
.partners-row-two { margin-bottom: 0; }
.people-toggle.partners-toggle { position: absolute; top: var(--s-200); right: var(--s-200); margin: 0; }
.partners-toggle[aria-pressed="true"] .i-pause { display: none; }
.partners-toggle[aria-pressed="true"] .i-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .partners-track { display: block; width: auto; animation: none; }
  .partners-row { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .partners-row-two, .partners-copy, .partners .partners-toggle { display: none; }
  .partners-sequence { flex-wrap: wrap; justify-content: center; gap: var(--s-300) var(--s-400); padding-inline: var(--s-300); }
  .partner { white-space: normal; }
}

/* Why */
.split { display: grid; gap: var(--s-300); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); } }
.prose { max-width: 560px; }
.prose > * + * { margin-top: var(--s-200); }

/* Benefits */
.section-head { max-width: 800px; margin-bottom: var(--s-500); }
@media (max-width: 1023px) { .br-wide { display: none; } }
.section-head p { margin-top: var(--s-200); }
@media (min-width: 768px) { .section-head { margin-bottom: var(--s-600); } }
.benefits { display: grid; gap: var(--s-200); }
@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-200) var(--s-400); }
  .panel { grid-column: span 3; }
  .benefit-open { grid-column: span 2; margin-top: var(--s-300); }
}
.panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-400);
  padding: var(--s-300); border-radius: var(--r-3xl);
}
@media (min-width: 768px) { .panel { padding: var(--s-400); gap: var(--s-500); } }
.panel h3 { margin-bottom: var(--s-75); }
.panel-tint { background: var(--tint); }
.panel-dark { background: var(--aubergine); color: var(--on-dark); }
.panel-dark .muted { color: var(--on-dark-soft); }
.benefit-open { padding-top: var(--s-300); }
.benefit-open .icon { margin-bottom: var(--s-200); color: var(--violet-text); }
.benefit-open h3 { margin-bottom: var(--s-75); }
@media (min-width: 900px) { .benefit-open { padding-top: 0; } }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-full);
  background: var(--lilac); color: var(--ink); border: 1px solid var(--line);
}
.panel-dark .pill { background: var(--aubergine-soft); border-color: var(--aubergine-line); color: var(--on-dark); }
.panel-dark .pill .icon-sm { color: var(--lilac-bright); }
.say-bubble {
  width: fit-content; padding: var(--s-100) var(--s-200); border-radius: var(--r-2xl);
  background: var(--violet); color: var(--white);
}

/* Tagline reveal (B11) */
.tagline { padding-block: var(--s-900); }
@media (min-width: 768px) { .tagline .container { padding-block: var(--s-700); } }
.tagline p { max-width: 680px; margin-inline: auto; text-align: center; }
.tagline .accent { display: inline-block; white-space: nowrap; }
.tagline .word { transition: opacity 500ms var(--ease); }
.js .tagline .word { opacity: 0.3; }
.js .tagline .word.lit { opacity: 1; }

/* How it works */
.how-steps { display: grid; gap: var(--s-400); }
.how-step { position: relative; display: grid; grid-template-columns: var(--s-600) minmax(0, 1fr); gap: var(--s-200); }
.how-step:not(:last-child)::after {
  content: ""; position: absolute; left: var(--s-300); top: var(--s-600); bottom: calc(var(--s-400) * -1); width: 1px; background: var(--line);
}
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-500); }
  .how-step { grid-template-columns: minmax(0, 1fr); gap: var(--s-300); align-content: start; }
  .how-step:not(:last-child)::after { left: var(--s-600); top: var(--s-300); bottom: auto; right: calc(var(--s-500) * -1); width: auto; height: 1px; }
}
.how-num {
  display: grid; place-items: center; width: var(--s-600); height: var(--s-600);
  border-radius: var(--r-full); background: var(--tint); color: var(--violet-text);
}
.how-step h3 { margin-bottom: var(--s-75); }
.how-step p, .panel p, .benefit-open p, .answer, .form-note { text-wrap: balance; }

/* Safety */
.band-tint { background: var(--tint); }
.band-tint .muted { color: var(--ink-soft); }
.safety-grid { display: grid; gap: var(--s-500); }
@media (min-width: 768px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-700); } }
.safety-list h3 { margin-bottom: var(--s-200); }
.safety-list li { display: flex; gap: var(--s-75); }
.safety-list li + li { margin-top: var(--s-100); }
.safety-list .icon { color: var(--violet-text); }
.safety-list.not .icon { color: var(--ink-soft); }
.emergency { display: flex; gap: var(--s-100); margin-top: var(--s-500); }
@media (min-width: 768px) { .emergency { margin-top: var(--s-600); } }
.emergency .icon { margin-top: var(--s-25); color: var(--violet-text); }

/* FAQ */
.faq-list { display: grid; }
@media (min-width: 900px) { #faq-title { position: sticky; top: var(--s-900); align-self: start; } }
.faq-item { box-shadow: inset 0 -1px 0 var(--line); }
.faq-item:first-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding-block: var(--s-200); border-radius: var(--r-lg); cursor: pointer; list-style: none;
  transition: color 300ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--violet-text); }
.faq-item summary:active { opacity: 0.8; }
.faq-item summary .icon { color: var(--violet-text); transition: transform 500ms var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .answer { max-width: 560px; padding-bottom: var(--s-200); }
.faq-item[open] .answer { animation: fade-up 500ms var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* For providers */
@media (max-width: 767px) { #providers-title br { display: none; } }
.people { margin-bottom: var(--s-400); }
@media (min-width: 768px) { .people { margin-bottom: var(--s-600); } }
.people-view { overflow-x: auto; scrollbar-width: none; }
.people-view::-webkit-scrollbar { display: none; }
.js .people-view.is-spin {
  display: flex; justify-content: center; overflow: hidden; padding-block: var(--s-200);
  perspective: 1600px; cursor: grab; touch-action: pan-y; user-select: none;
}
.js .people-view.is-spin.is-dragging { cursor: grabbing; }
.is-spin .people-track { position: relative; display: block; width: 216px; padding: 0; aspect-ratio: 640 / 860; transform-style: preserve-3d; will-change: transform; }
@media (min-width: 768px) { .is-spin .people-track { width: 264px; } }
.is-spin .person { position: absolute; inset: 0; width: 100%; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.is-spin .person img { box-shadow: 0 16px 32px rgba(28, 10, 51, 0.24); pointer-events: none; -webkit-user-drag: none; }
.people-track { display: flex; align-items: flex-start; gap: var(--s-200); width: max-content; padding-bottom: var(--s-300); }
.person { flex: none; width: 216px; }
@media (min-width: 768px) { .person { width: 264px; } }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 860; object-fit: cover; border-radius: var(--r-3xl); background: var(--tint); }
.person-low { margin-top: var(--s-300); }
.people-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); }
.people-toggle {
  position: relative; display: grid; flex: none; place-items: center; width: var(--s-500); height: var(--s-500); padding: 0; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--tint); color: var(--ink); cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.people-toggle[hidden] { display: none; }
.people-toggle:hover { background: var(--tint-strong); }
.people-toggle:active { transform: scale(0.98); }
.people-toggle .icon { grid-area: 1 / 1; width: var(--s-200); height: var(--s-200); }
.people-toggle .i-play { display: none; }
.people-toggle[aria-pressed="true"] .i-pause { display: none; }
.people-toggle[aria-pressed="true"] .i-play { display: block; }
.role-grid { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-card { padding: var(--s-300); border-radius: var(--r-3xl); background: var(--tint); }
@media (min-width: 768px) { .role-card { padding: var(--s-400); } }
.role-card .icon { margin-bottom: var(--s-200); color: var(--violet-text); }
.role-card h3 { margin-bottom: var(--s-75); }
.role-card p { text-wrap: balance; }
.provider-foot { display: grid; gap: var(--s-500); margin-top: var(--s-500); }
@media (min-width: 900px) { .provider-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); align-items: start; margin-top: var(--s-600); } }
.provider-points li { display: flex; gap: var(--s-100); }
.provider-points li + li { margin-top: var(--s-200); }
.provider-points .icon { color: var(--violet-text); }
.role-select { cursor: pointer; }
/* Without JavaScript the native select stays, with the same font and icon position */
select.role-select { appearance: none; -webkit-appearance: none; padding-right: var(--s-500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2355456D'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-200) center; background-size: var(--s-200); }
select.role-select[hidden] { display: none; }
.role-picker { position: relative; }
.role-picker.open { z-index: 20; }
.role-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--s-100); padding-right: var(--s-200); text-align: left; transition: border-color 300ms var(--ease); }
.role-trigger.is-empty .role-value { color: #6C5D85; }
.role-caret { color: var(--ink-soft); transition: transform 300ms var(--ease); }
.role-picker.open .role-caret { transform: rotate(180deg); }
.role-list {
  position: absolute; z-index: 1; top: calc(100% + var(--s-50)); left: 0; right: 0; margin: 0; padding: var(--s-50); list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(32px) saturate(170%); backdrop-filter: blur(32px) saturate(170%);
  box-shadow: 0 16px 48px rgba(28, 10, 51, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 0; visibility: hidden; transform: scale(0.96); transform-origin: top center;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
.role-picker.above .role-list { top: auto; bottom: calc(100% + var(--s-50)); transform-origin: bottom center; }
.role-picker.open .role-list { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s; }
.role-option { position: relative; display: flex; align-items: center; gap: var(--s-75); min-height: 44px; padding: var(--s-75) var(--s-100); border-radius: var(--r-xl); color: var(--ink); cursor: pointer; transition: background-color 200ms var(--ease); }
.role-option + .role-option::before { content: ""; position: absolute; top: 0; left: 40px; right: var(--s-100); height: 1px; background: rgba(28, 10, 51, 0.12); }
.role-option.is-active { background: rgba(123, 47, 255, 0.12); }
.role-option.is-active::before, .role-option.is-active + .role-option::before { opacity: 0; }
.role-tick { color: var(--violet-text); visibility: hidden; }
.role-option[aria-selected="true"] { font-weight: 600; }
.role-option[aria-selected="true"] .role-tick { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .role-list, .role-picker.open .role-list { transform: none; transition: opacity 200ms var(--ease), visibility 0s; }
  .role-caret { transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .role-list { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .role-list { background: var(--white); } }
.role-email { margin-top: var(--s-200); }
.provider-link { color: var(--violet-text); text-underline-offset: 2px; border-radius: var(--r-lg); transition: opacity 300ms var(--ease); }
.provider-link:hover { opacity: 0.8; }
.provider-link:active { opacity: 0.6; }
#providers .waitlist, #providers .form-success { max-width: none; }

/* Final CTA */
.final-grid { display: grid; gap: var(--s-400); }
.final-mark { order: -1; width: var(--s-700); height: var(--s-700); }
.final .waitlist { margin-top: var(--s-400); }
@media (min-width: 1024px) {
  .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s-700); }
  .final-mark { order: 0; justify-self: center; width: 320px; height: 320px; }
}

/* Footer */
.site-footer { padding-bottom: var(--s-500); border: 0; }
.footer-grid { display: grid; gap: var(--s-300); padding-top: var(--s-500); border-top: 1px solid var(--aubergine-line); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: auto 1fr auto; align-items: start; gap: var(--s-400); } }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-100); margin-inline: calc(var(--s-75) * -1); }
.footer-links a { display: block; padding: var(--s-50) var(--s-75); border-radius: var(--r-lg); text-decoration: underline; text-underline-offset: 2px; transition: color 300ms var(--ease); }
.footer-links a:hover { color: var(--lilac-bright); }
.footer-links a:active { opacity: 0.8; }
.footer-links a[aria-current="page"] { color: var(--lilac-bright); }
.footer-note { max-width: 520px; }
/* Sign off: the logo and name, large, with lit edges, fading into the bottom of the page */
.site-footer.has-wordmark { padding-bottom: 0; }
.footer-signoff { overflow-x: clip; margin-top: var(--s-400); padding-inline: var(--s-200); }
@media (min-width: 768px) { .footer-signoff { margin-top: var(--s-500); padding-inline: var(--s-400); } }
.footer-copy { margin-bottom: var(--s-200); text-align: center; }
@media (min-width: 768px) { .footer-copy { margin-bottom: var(--s-300); } }
.footer-wordmark { display: block; width: 100%; height: auto; transition: opacity 500ms var(--ease); }
.footer-wordmark-stage { position: relative; }
/* The 3D version: lined up with the SVG, with room around it for letters to lift and lean */
.footer-wordmark-canvas {
  position: absolute; left: -6.1224%; top: -45%; width: 112.2449%; height: 145%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 500ms var(--ease);
  -webkit-mask-image: linear-gradient(#000 62.4%, rgba(0, 0, 0, 0.1) 100%); mask-image: linear-gradient(#000 62.4%, rgba(0, 0, 0, 0.1) 100%);
}
.footer-wordmark-stage.is-3d .footer-wordmark-canvas { opacity: 1; }
.footer-wordmark-stage.is-3d .footer-wordmark { opacity: 0; }
.wm-text { font-size: 584px; font-weight: 600; paint-order: stroke; stroke-width: 2px; vector-effect: non-scaling-stroke; letter-spacing: -0.02em; }
@media (max-width: 767px) { .wm-mark-edge { stroke-width: 84; } }
.footer-end { display: grid; gap: var(--s-100); }
.social-links { display: flex; flex-wrap: wrap; gap: var(--s-50); margin-inline: calc(var(--s-75) * -1); }
.social-link {
  display: block; padding: var(--s-75); border-radius: var(--r-lg); color: var(--on-dark);
  transition: color 300ms var(--ease), background-color 300ms var(--ease), transform 300ms var(--ease);
}
.social-link[href]:hover { color: var(--lilac-bright); background: var(--aubergine-soft); transform: translateY(-2px); }
.social-link[href]:active { transform: translateY(1px); }
.social-link[aria-disabled="true"] { color: var(--on-dark-soft); cursor: not-allowed; }
@media (min-width: 768px) {
  .footer-end { justify-items: end; }
  .footer-links, .social-links { justify-content: flex-end; }
}
.placeholder { padding: var(--s-25) var(--s-50); border-radius: var(--r-lg); background: #FFF1C2; color: #4A3700; }

/* Simple pages: legal, 404 */
.page-nav { position: static; transform: none; margin: var(--s-200) auto 0; width: calc(100% - var(--s-400)); max-width: 680px; justify-content: space-between; }
.page-main { max-width: 680px; margin-inline: auto; padding: var(--s-700) var(--s-300) var(--s-900); }
.page-main h1 { margin-bottom: var(--s-300); }
.page-main h2 { margin-top: var(--s-400); margin-bottom: var(--s-75); }
.page-main p + p { margin-top: var(--s-200); }
.page-main .btn { margin-top: var(--s-400); }
.notice { margin-bottom: var(--s-400); padding: var(--s-200); border-radius: var(--r-2xl); background: #FFF1C2; color: #4A3700; }
/* Long legal documents: the privacy policy */
/* Manrope's ligatures turn "(c)" into a copyright sign, which would misprint legal citations such as Art. 6(1)(c) */
.legal-page { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0; }
.legal-page h3 { margin-top: var(--s-300); margin-bottom: var(--s-75); }
.legal-page h2 + .applies, .legal-page h3 + .applies { margin-top: 0; }
.legal-page .applies { color: var(--ink-soft); }
.legal-page p + p, .legal-page p + ul, .legal-page p + ol, .legal-page ul + p, .legal-page ol + p, .legal-page .table-scroll + p { margin-top: var(--s-200); }
.legal-page ul, .legal-page ol { margin: var(--s-100) 0 0; padding-left: var(--s-300); font-size: 1rem; line-height: 1.5rem; }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li + li { margin-top: var(--s-75); }
.legal-page .policy-alert { margin-top: var(--s-200); padding: var(--s-200); border-radius: var(--r-2xl); background: var(--tint); color: var(--ink); }
.legal-page a { color: var(--violet-text); text-underline-offset: 2px; }
.table-scroll { margin-top: var(--s-200); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); }
.table-scroll:focus-visible { outline-offset: 2px; }
.legal-page table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.875rem; line-height: 1.25rem; }
.legal-page th, .legal-page td { padding: var(--s-100); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-page th { background: var(--tint); font-weight: 600; }
.legal-page tr:last-child td { border-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-75); border-radius: var(--r-lg); color: var(--ink); transition: background-color 300ms var(--ease); }
.text-link:hover { background: var(--tint); }
.text-link:active { background: var(--tint-strong); }

/* Scroll reveals (B7) */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }

/* Reduced motion: movement becomes a plain opacity change, nothing loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .mobile-menu li { transform: none; }
  .js .animate-chat .step { opacity: 1; transform: none; }
  .js .animate-chat .bubble-ai .said { opacity: 1; }
  .js .animate-chat .bubble-ai .dots { display: none; }
  .hero-mark path { stroke-dashoffset: 0; transition: none; }
  .hero-mark .cap { opacity: 0.32; }
  .js .tagline .word { opacity: 1; }
  .btn:hover, .cta-rest .nav-cta, .signed-up .nav-cta { transform: none; }
  .btn[aria-busy="true"], .dots i { animation: none; }
  .faq-item[open] .answer { animation: none; }
  .faq-item summary .icon, .menu-toggle span { transition: opacity 300ms var(--ease); }
}

/* Increase Contrast: soft text becomes full strength and edges get firmer */
@media (prefers-contrast: more) {
  :root { --ink-soft: var(--ink); --on-dark-soft: var(--on-dark); --line: #8A7BA3; }
  .input { border-color: var(--ink); }
  .band-dark .input { border-color: var(--on-dark); }
  .footer-links a, .provider-link, .chat-replay { text-decoration-thickness: 2px; }
}

/* The nav keeps its size when people enlarge text, so the bar always fits and the menu stays reachable.
   Apple: people enlarging text "don't expect the tab titles to increase in size" (typography.md). */
.site-nav .brand span { font-size: 14px; line-height: 20px; }
.site-nav .button-sm, .site-nav .nav-links a { font-size: 14px; line-height: 20px; }
