/* DocKnock waitlist — continuous phone journey */

:root {
  --accent: #3e63dd;
  --accent-hot: #5b7fff;
  --ink: #0b1220;
  --muted: #5a6786;
  --line: #d8dff0;
  --page: #ffffff;
  --page-soi: #f3f6ff;
  --soft: #e8edff;
  --font-display: "Satoshi", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 64px;
  --phone-w: clamp(220px, 24vw, 280px);
  --steps: 6;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html[data-role="soignant"] {
  --page: var(--page-soi);
  --texture-a: 0.55;
  --texture-b: 1;
}

html[data-role="patient"] {
  --page: #ffffff;
  --texture-a: 1;
  --texture-b: 0;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  transition: background 0.7s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

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

/* Role visibility */
.patient-only { display: none !important; }
html[data-role="patient"] span.patient-only.line { display: block !important; }
html[data-role="patient"] .patient-only:not(.line) { display: revert !important; }
html[data-role="patient"] .soignant-only { display: none !important; }
html[data-role="soignant"] .patient-only { display: none !important; }
html[data-role="soignant"] span.soignant-only.line { display: block !important; }

html[data-role="soignant"] .pat-tile { display: none !important; }
html[data-role="patient"] .soi-tile { display: none !important; }

/* Textures */
.page-textures {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.texture { position: absolute; inset: 0; transition: opacity 0.7s var(--ease); }
.texture-dots {
  opacity: var(--texture-a, 1);
  background-image: radial-gradient(rgba(11, 18, 32, 0.1) 1.15px, transparent 1.15px);
  background-size: 22px 22px;
}
.texture-soft {
  opacity: var(--texture-b, 0);
  background-image: radial-gradient(rgba(62, 99, 221, 0.13) 1.35px, transparent 1.35px);
  background-size: 20px 20px;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 48px);
  width: 100%;
  background: transparent;
  pointer-events: none;
}
.nav a { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  box-shadow: 0 8px 20px rgba(62, 99, 221, 0.35);
}
.logo-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem; letter-spacing: -0.03em; text-transform: lowercase;
}
.nav-link {
  font-size: 0.9375rem; font-weight: 500; color: var(--ink); opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }

/* ========== JOURNEY ========== */
.journey {
  position: relative;
  z-index: 1;
}

.journey-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  overflow: visible;
}

.journey-track { position: relative; pointer-events: none; }
.track-fade { height: 70vh; }
.track-morph { height: 90vh; }
.track-settle { height: 35vh; }
.track-step {
  /* long hold for multi-second phone animations */
  height: 110vh;
  scroll-snap-align: start;
}

/* Atmosphere — squiggle + tiles; scrolls away with the hero */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  will-change: transform, opacity;
  transition: none;
}

.bg-squiggle {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 132vw;
  height: 110%;
  min-width: 132vw;
  min-height: 110%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Meaningful tiles */
.float-tile {
  position: absolute;
  z-index: 3;
  width: 108px;
  min-height: 108px;
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid rgba(62, 99, 221, 0.14);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: tileFloat 6s ease-in-out infinite;
}
.tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
}
.tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.tile-sub {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

.t1 { left: 5%; bottom: 36%; transform: rotate(-7deg); animation-delay: 0s; }
.t2 { left: 14%; bottom: 16%; transform: rotate(5deg); animation-delay: 0.35s; }
.t3 { left: 24%; bottom: 42%; transform: rotate(-4deg); animation-delay: 0.7s; }
.t4 { right: 24%; bottom: 44%; transform: rotate(6deg); animation-delay: 0.15s; }
.t5 { right: 11%; bottom: 20%; transform: rotate(-5deg); animation-delay: 0.5s; }
.t6 { right: 4%; bottom: 38%; transform: rotate(4deg); animation-delay: 0.9s; }

/* Hero copy — transparent so squiggle shows through */
.hero-copy {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: calc(var(--nav-h) + clamp(4px, 1vh, 12px)) clamp(20px, 4vw, 48px) 0;
  max-height: none;
  background: transparent !important;
  will-change: transform, opacity;
  transition: none;
  pointer-events: auto;
}
.hero-copy.is-out {
  pointer-events: none;
}

.role-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 248px;
}
.role-thumb {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: 999px; background: #fff;
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.14);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}
html[data-role="patient"] .role-thumb { transform: translateX(100%); }
.role-btn {
  position: relative; z-index: 1;
  height: 36px; border: none; background: transparent; border-radius: 999px;
  cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: var(--muted);
  padding: 0 18px; transition: color 0.3s;
}
.role-btn.is-active { color: var(--ink); }
.role-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.35rem, 5.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 14ch;
  transform: rotate(-2.5deg);
  text-wrap: balance;
}
.hero-title .line { display: block; }

.hero-sub {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
}

/* Twin pills (rituals style) */
.waitlist-form.twin-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin-top: 4px;
}
.pill-input {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 220px;
  height: 56px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 6px 0 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pill-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 99, 221, 0.16);
}
.prefix {
  font-weight: 600; font-size: 0.9375rem; color: var(--ink); flex: none; margin-right: 8px;
}
.pill-input input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 0 14px 0 0; font-size: 1rem; letter-spacing: 0.04em; color: var(--ink);
}
.pill-input input::placeholder { color: #a8b0c4; letter-spacing: normal; }

.pill-submit {
  flex: none;
  height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, filter 0.2s, background 0.2s;
  white-space: nowrap;
}
.pill-submit:hover { filter: brightness(1.1); background: var(--accent); }
.pill-submit:active { transform: scale(0.98); }
.pill-submit:disabled { opacity: 0.65; cursor: wait; }
.pill-submit.is-loading .btn-label { opacity: 0; }
.btn-loading {
  display: none; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%;
}
.pill-submit.is-loading .btn-loading { display: block; animation: spin 0.7s linear infinite; }

.form-error {
  flex: 1 1 100%;
  margin: 0; color: #c6353b; font-size: 0.8125rem; text-align: center;
}
.form-success {
  flex: 1 1 100%;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  padding: 18px 22px; border-radius: 20px;
  background: var(--soft); border: 1.5px solid rgba(62, 99, 221, 0.22);
  font-size: 0.9375rem; color: var(--muted);
}
.form-success strong {
  color: var(--ink); font-size: 1.1rem; font-family: var(--font-display);
}
.waitlist-form.is-done .pill-input,
.waitlist-form.is-done .pill-submit,
.waitlist-form.is-done .form-error { display: none; }
.form-success[hidden],
.form-error[hidden] { display: none !important; }

.social-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 2px; font-size: 0.875rem; color: var(--muted);
}
.social-proof strong { color: var(--ink); font-weight: 600; }
.avatars { display: flex; }
.av {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #c9d6f3, #8fb0e8); }
.av-2 { background: linear-gradient(135deg, #8fb0e8, #3e63dd); }
.av-3 { background: linear-gradient(135deg, #3e63dd, #0d1b35); }

/* Story copy — only after phone lands */
.story-copy {
  position: absolute;
  z-index: 6;
  left: clamp(24px, 6vw, 100px);
  top: 50%;
  transform: translateY(-50%) translateX(-16px);
  width: min(40vw, 460px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s var(--ease) 0.05s, transform 0.5s var(--ease) 0.05s, visibility 0.5s;
}
.story-copy.is-in {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.chapter-stack { position: relative; min-height: 280px; }
.chapter {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
  opacity: 0; transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.48s var(--ease), transform 0.48s var(--ease);
}
.chapter.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chapter.is-exit { opacity: 0; transform: translateY(-18px); }

.chapter-kicker {
  margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--muted);
}
.chapter-num { color: var(--accent); }

.chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 12ch;
}

.chapter-body {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.chapter-ticks { display: flex; gap: 8px; margin-top: 28px; }
.tick {
  width: 28px; height: 5px; border: none; border-radius: 3px;
  background: rgba(11, 18, 32, 0.12); cursor: pointer; padding: 0;
  transform-origin: left center;
  transition: background 0.3s, transform 0.3s;
}
.tick.is-on { background: var(--accent); transform: scaleX(1.5); }

/* Phone sits UNDER the hero form (lower z-index), above the squiggle */
.phone-stage {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2vh;
  transform: translateX(-50%);
  width: var(--phone-w, 240px);
  height: var(--phone-h, auto);
  will-change: left, bottom, width, height, transform;
  transition: none;
  pointer-events: none;
}

.phone-stage.is-front {
  z-index: 15;
}

.phone {
  width: 100%;
  height: 100%;
}
.phone-bezel {
  width: 100%;
  height: 100%;
  border-radius: var(--phone-r, 32px);
  background: #1a2238;
  padding: var(--phone-pad, 8px);
  border: 1px solid rgba(201, 214, 243, 0.28);
  box-shadow:
    0 40px 90px rgba(13, 27, 53, 0.22),
    0 12px 30px rgba(13, 27, 53, 0.1);
  box-sizing: border-box;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--phone-r, 32px) - var(--phone-pad, 8px));
  overflow: hidden; background: #f4f7fd;
}
.phone-notch {
  position: absolute;
  top: 2.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 2.6%;
  min-height: 14px;
  border-radius: 999px;
  background: #12182a;
  z-index: 10;
  pointer-events: none;
}

.screen {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transform: translateY(10px);
}
.screen > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen.is-active {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.screen:not(.is-active) * { animation-play-state: paused !important; }
/* Hold feature animations until phone has landed in story */
#story-screens:not(.is-live) .screen[data-i]:not([data-i="0"]) * {
  animation-play-state: paused !important;
}

/* Light theme screen kit */
.scr.light {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #f7f9ff 0%, #e8eefc 100%);
  padding: 52px 14px 14px;
}
.scr-topbar {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-left: 6px;
}
.scr-topbar span {
  display: block; height: 8px; border-radius: 4px; background: rgba(13, 27, 53, 0.12);
}
.scr-topbar span:first-child { width: 100px; height: 10px; }
.scr-topbar span:last-child { width: 64px; }

.scr-card {
  background: #fff; border-radius: 22px; padding: 16px;
  box-shadow: 0 16px 40px rgba(13, 27, 53, 0.1);
}
.scr-card.bottom-float {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.scr-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.scr-lines { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.scr-lines.center { align-items: center; }
.scr-lines i {
  display: block; height: 8px; border-radius: 4px; background: #e3e9f6;
}
.scr-lines i:first-child { width: 72%; height: 10px; }
.scr-lines i:nth-child(2) { width: 48%; }
.scr-lines i:nth-child(3) { width: 58%; }
.scr-lines.center i:first-child { width: 60%; }
.scr-lines.center i:nth-child(2) { width: 40%; }

.badge-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex: none; position: relative;
  background: var(--soft); color: var(--accent);
}
.badge-dot.accent::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; opacity: 0.28; animation: wlRipple 2.4s ease-out infinite;
}
.chip {
  height: 24px; padding: 0 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; flex: none;
}
.chip.accent { background: var(--accent); color: #fff; }
.chip.soft { background: var(--soft); color: var(--accent); }
.scr-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.scr-caption {
  margin: 14px 0 0; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.scr-caption.left { text-align: left; padding-left: 4px; }

.face {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #c9d6f3, var(--accent));
}
.face.lg { width: 54px; height: 54px; }

.swipe {
  position: relative; height: 48px; border-radius: 24px;
  background: var(--soft); overflow: hidden; margin-top: 4px;
}
.knob {
  position: absolute; top: 6px; left: 6px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: 0 6px 16px rgba(62, 99, 221, 0.4);
  animation: wlKnob 5s ease-in-out infinite; z-index: 1;
}
.swipe-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 28px;
}

.map-lite {
  position: relative; height: 58%;
  border-radius: 18px; margin-bottom: 12px;
  background:
    radial-gradient(rgba(62, 99, 221, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(165deg, #eef2fc, #dce5f6);
  background-size: 22px 22px, auto;
}
.map-route {
  position: absolute; top: 36%; left: 18%; width: 55%;
  border-top: 2.5px dashed rgba(62, 99, 221, 0.5);
  transform: rotate(28deg); transform-origin: left top;
}
.map-pin {
  position: absolute; bottom: 22%; left: 55%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(13, 27, 53, 0.2);
}
.map-pin::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: var(--accent); animation: wlRipple 2.6s ease-out infinite;
}

.schedule { display: flex; flex-direction: column; gap: 10px; }
.sch {
  border-radius: 16px; background: #fff; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(13, 27, 53, 0.08);
}
.sch.dashed {
  background: rgba(255,255,255,0.55);
  border: 1.5px dashed rgba(62, 99, 221, 0.35); box-shadow: none;
}
.time {
  height: 24px; padding: 0 10px; border-radius: 12px;
  background: var(--soft); color: var(--accent);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; flex: none;
}
.add {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.care { text-align: center; padding: 28px 18px; }
.care-check {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  animation: wlGlowAccent 2.5s ease-in-out infinite;
}
.care-check.sm { width: 36px; height: 36px; font-size: 16px; margin: 0; flex: none; }
.care-bar {
  height: 10px; border-radius: 6px; background: var(--soft); margin-top: 18px;
  overflow: hidden; position: relative;
}
.care-bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 68%;
  background: var(--accent); border-radius: inherit;
  animation: careFill 3.2s ease-in-out infinite;
}

.earn-card {
  background: #fff; border-radius: 22px; padding: 20px;
  box-shadow: 0 16px 40px rgba(13, 27, 53, 0.1);
  margin-bottom: 12px;
}
.earn-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.earn-amount {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  letter-spacing: -0.03em; color: var(--ink);
}
.earn-amount small { font-size: 14px; color: var(--accent); font-weight: 600; }
.earn-bars {
  display: flex; align-items: flex-end; gap: 8px; height: 56px; margin-top: 14px;
}
.earn-bars i {
  flex: 1; border-radius: 6px 6px 0 0; background: rgba(62, 99, 221, 0.25);
  transform-origin: bottom; animation: wlBar 1.4s ease-out both;
}
.earn-bars i:nth-child(1) { height: 38%; }
.earn-bars i:nth-child(2) { height: 56%; animation-delay: 0.1s; }
.earn-bars i:nth-child(3) { height: 44%; animation-delay: 0.2s; }
.earn-bars i:nth-child(4) { height: 72%; animation-delay: 0.3s; background: rgba(62,99,221,0.45); }
.earn-bars i:nth-child(5) { height: 100%; animation-delay: 0.4s; background: var(--accent); }

.search-bar {
  height: 42px; border-radius: 22px; background: #fff;
  box-shadow: 0 8px 24px rgba(13, 27, 53, 0.08); margin-bottom: 12px;
}
.chips-row { display: flex; gap: 8px; margin-bottom: 12px; }
.chips-row i {
  height: 28px; border-radius: 14px; background: #fff;
  box-shadow: 0 4px 12px rgba(13, 27, 53, 0.06);
}
.chips-row i:nth-child(1) { width: 88px; }
.chips-row i:nth-child(2) { width: 64px; }
.chips-row i:nth-child(3) { width: 52px; }

.sheet {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  border-radius: 26px; background: #fff; padding: 16px 18px 18px;
  box-shadow: 0 -10px 40px rgba(13, 27, 53, 0.1);
  animation: wlSheet 6.5s ease-in-out infinite;
}
.handle {
  width: 40px; height: 4px; border-radius: 2px; background: #e3e9f6; margin: 0 auto 14px;
}
.btn-accent {
  height: 44px; border-radius: 14px; background: var(--accent); margin-top: 14px;
  animation: wlGlowAccent 2.5s ease-in-out infinite;
}
.btn-accent.bottom {
  position: absolute; left: 14px; right: 14px; bottom: 16px; margin: 0;
}
.btn-accent.static { animation: none; margin-top: 16px; }

.profile { position: relative; margin-top: 24px; }
.pop {
  position: absolute; top: -12px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  box-shadow: 0 8px 20px rgba(62, 99, 221, 0.4);
  animation: wlPop 6s ease-in-out infinite;
}
.stars {
  color: #f0a93b; letter-spacing: 2px; font-size: 15px; margin-bottom: 12px;
}

/* Mobile story */
.story-mobile {
  display: none;
  position: relative; z-index: 1;
  padding: 48px clamp(20px, 5vw, 32px) 24px;
  flex-direction: column; gap: 56px;
}
.m-chapter { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.m-chapter h2 {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: 1.85rem; letter-spacing: -0.03em;
}
.m-chapter p { margin: 0; color: var(--muted); max-width: 36ch; line-height: 1.6; }

/* Footer */
.site-footer {
  position: relative; z-index: 2;
  width: 100%;
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: clamp(48px, 8vh, 80px) clamp(20px, 4vw, 48px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.footer-brand .logo-word { color: #fff; }
.footer-brand .logo-mark {
  box-shadow: 0 8px 20px rgba(62, 99, 221, 0.5);
}
.footer-brand p {
  margin: 16px 0 0; max-width: 32ch; line-height: 1.55; font-size: 0.95rem;
}
.footer-contact h3,
.footer-join h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-contact {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-contact a {
  color: #fff; font-weight: 500; transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent-hot); }
.footer-contact p { margin: 4px 0 0; font-size: 0.9rem; }

.footer-form .pill-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.footer-form .pill-input input { color: #fff; }
.footer-form .pill-input input::placeholder { color: rgba(255,255,255,0.35); }
.footer-form .prefix { color: rgba(255,255,255,0.8); }
.footer-form .pill-submit {
  background: var(--accent);
}
.footer-form .pill-submit:hover { filter: brightness(1.12); background: var(--accent-hot); }
.footer-form .form-success {
  background: rgba(62, 99, 221, 0.2);
  border-color: rgba(62, 99, 221, 0.35);
  color: rgba(255,255,255,0.75);
}
.footer-form .form-success strong { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* Keyframes */
@keyframes tileFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wlSheet {
  0% { transform: translateY(140%); }
  12% { transform: translateY(0); }
  86% { transform: translateY(0); }
  100% { transform: translateY(140%); }
}
@keyframes wlRipple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes wlGlowAccent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 99, 221, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(62, 99, 221, 0); }
}
@keyframes wlPop {
  0% { transform: scale(0.5); opacity: 0; }
  10% { transform: scale(1.1); opacity: 1; }
  16% { transform: scale(1); }
  84% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes wlKnob {
  0%, 22% { transform: translateX(0); }
  52%, 86% { transform: translateX(110px); }
  100% { transform: translateX(0); }
}
@keyframes wlBar {
  0% { transform: scaleY(0.3); }
  60%, 100% { transform: scaleY(1); }
}
@keyframes careFill {
  0%, 15% { width: 12%; }
  55%, 85% { width: 78%; }
  100% { width: 12%; }
}

/* ========== MOBILE ONLY (desktop above 1023px untouched) ========== */
@media (max-width: 1023px) {
  :root {
    --nav-h: 56px;
    --m-pad: 20px;
    --m-gap: 16px;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .nav {
    height: var(--nav-h);
    padding: 0 var(--m-pad);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.06);
  }
  .logo-word { font-size: 1.05rem; }
  .nav-link {
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .journey {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .journey-pin {
    position: relative;
    height: auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .journey-track { display: none; }
  .story-copy { display: none !important; }
  .float-tile { display: none !important; }

  /* Soft accent behind phone — not a giant blob */
  .hero-atmosphere {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 55%;
    z-index: 0;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    overflow: hidden;
    pointer-events: none;
  }
  .bg-squiggle {
    position: absolute;
    left: 50%;
    top: 60%;
    width: 220%;
    height: 140%;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    opacity: 0.55;
  }

  /* Hero: one clear vertical composition */
  .hero-copy {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--m-gap);
    padding: calc(var(--nav-h) + 24px) var(--m-pad) 16px;
    margin: 0;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto;
  }
  .hero-copy.is-out {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto;
  }

  .role-toggle {
    min-width: 0;
    width: min(100%, 280px);
    margin: 0 auto;
  }
  .role-btn {
    height: 40px;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .hero-title {
    margin: 8px 0 0;
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 11ch;
    text-align: center;
    transform: rotate(-1.5deg);
  }

  .hero-sub {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 32ch;
    color: var(--muted);
    opacity: 0.9;
  }

  /* Primary action — full-width stacked pills, large tap targets */
  .waitlist-form.twin-pills {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    margin-top: 8px;
  }
  .pill-input {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 8px 0 18px;
  }
  .pill-submit {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    font-size: 0.9375rem;
  }

  .social-proof {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    gap: 10px;
  }
  .avatars { transform: scale(0.92); transform-origin: left center; }

  /* Product phone — real aspect, peek cropped at bottom */
  .phone-stage {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    width: min(58vw, 220px) !important;
    height: auto !important;
    aspect-ratio: 9 / 19.5 !important;
    max-height: none !important;
    margin: 8px auto 0 !important;
    margin-bottom: calc(min(58vw, 220px) / 9 * 19.5 * -0.42) !important;
    z-index: 4;
    --phone-r: 24px;
    --phone-pad: 6px;
    flex: none;
  }
  .phone,
  .phone-bezel {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: unset !important;
  }
  .phone-screen {
    border-radius: calc(var(--phone-r, 24px) - var(--phone-pad, 6px));
  }

  /* Feature list — numbered steps, breathing room */
  .story-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 64px var(--m-pad) 48px;
    gap: 0;
    position: relative;
    z-index: 3;
    background: var(--page);
  }
  .m-chapter {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    text-align: left;
    padding: 40px 0;
    border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  }
  .m-chapter:first-child { padding-top: 0; }
  .m-chapter:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .m-step {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.75rem, 12vw, 3.5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--accent);
    opacity: 0.9;
    padding-top: 2px;
    min-width: 1.6ch;
  }
  .m-chapter-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding-top: 6px;
  }
  .m-chapter h2 {
    margin: 0;
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 14ch;
    text-align: left;
  }
  .m-chapter p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 34ch;
    color: var(--muted);
    text-align: left;
  }

  .site-footer {
    padding: 56px var(--m-pad) 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
  }
  .footer-form.twin-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .footer-form .pill-input,
  .footer-form .pill-submit {
    width: 100%;
    min-width: 0;
    height: 52px;
  }
}

@media (max-width: 640px) {
  :root { --m-pad: 16px; }

  .hero-copy {
    padding: calc(var(--nav-h) + 20px) var(--m-pad) 12px;
    gap: 14px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
    max-width: 10ch;
  }
  .hero-sub {
    font-size: 0.9rem;
    max-width: 30ch;
  }
  .phone-stage {
    width: min(62vw, 210px) !important;
    margin-bottom: calc(min(62vw, 210px) / 9 * 19.5 * -0.4) !important;
    --phone-r: 22px;
    --phone-pad: 5px;
  }
  .story-mobile {
    padding: 56px var(--m-pad) 40px;
  }
  .m-chapter { padding: 36px 0; }
  .social-proof { font-size: 0.78rem; }
}

@media (min-width: 1024px) and (max-height: 780px) {
  .hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
  .hero-copy { gap: 10px; }
  .chapter-title { font-size: clamp(1.75rem, 3vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .float-tile { animation: none !important; }
}
