@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-display: swap; src: url("/fonts/bodoni-moda-500.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/bodoni-moda-400i.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("/fonts/lato-700.woff2") format("woff2"); }

/* Same ink, blues and display serif family as the Meta ads (milton-ads/fl-meta-launch/ads/build.py) */
:root {
  color-scheme: dark;
  --ink: #101820;
  --ink-2: #17222c;
  --navy: #184e77;
  --blue: #1a759f;
  --cream: #f6eeda;
  --sand: #efe7d5;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, .78);
  --quiet: rgba(255, 255, 255, .55);
  --hair: rgba(255, 255, 255, .18);
  --danger: #ff9d86;
  --gutter: 22px;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: hidden; overscroll-behavior-x: none; }
body { position: relative; width: 100%; margin: 0; overflow-x: clip; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; background: var(--ink); color: var(--text); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: rgba(246, 238, 218, .12); }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* first screen */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: max(16px, env(safe-area-inset-top)) var(--gutter) calc(14px + env(safe-area-inset-bottom)); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 24, 32, .42) 0%, rgba(16, 24, 32, .72) 26%, rgba(16, 24, 32, .96) 52%, var(--ink) 100%); }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-logo img { width: auto; height: 42px; }
.top-call { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 20px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }

.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 0 10px; }
.clock { margin: 0 0 10px; color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
h1 { font-size: clamp(39px, 12.2vw, 72px); line-height: 1.03; text-wrap: balance; }
.thought { margin: 14px 0 0; min-height: 1.3em; font: italic 400 clamp(21px, 6vw, 28px)/1.25 var(--serif); color: var(--cream); transition: opacity .3s ease, transform .3s ease; }
.thought.leaving { opacity: 0; transform: translateY(-6px); }
.who { margin: 10px 0 0; color: var(--soft); font-size: 15px; line-height: 1.4; }

.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 10px 20px; border: 0; border-radius: 29px; font: 700 18px/1.2 var(--sans); letter-spacing: .005em; text-align: center; text-decoration: none; }
.btn-primary { background: var(--cream); color: var(--ink); animation: breathe 2.4s ease-out infinite; }
.btn-primary:active { background: #fff; }
.btn-lead { background: var(--blue); color: #fff; flex-direction: column; gap: 2px; }
.btn-lead small { font-size: 13px; font-weight: 400; opacity: .9; }
.btn-lead:active { background: var(--navy); }
.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; font-size: 16px; }
.btn-outline:active { background: rgba(255, 255, 255, .1); }
.btn-small { min-height: 48px; padding: 6px 8px; font-size: 16px; }
.link-btn { min-height: 44px; border: 0; background: none; color: #fff; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crisis { margin: 0; color: var(--quiet); font-size: 13px; line-height: 1.35; text-align: center; }
.crisis a { color: var(--soft); }

@keyframes breathe {
  0% { box-shadow: 0 0 0 0 rgba(246, 238, 218, .5); }
  70% { box-shadow: 0 0 0 12px rgba(246, 238, 218, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 238, 218, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .thought { transition: none; }
}

/* below the first screen */
/* Keeps the dark going under the phone browser's see-through toolbar, so the light section doesn't show through it. */
main { padding-top: 28px; }
@supports (height: 1lvh) {
  main { padding-top: calc(100lvh - 100svh + 28px); }
}
.milton { background: var(--sand); color: var(--ink); }
.milton > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 0 30%; }
.milton-text { padding: 34px var(--gutter) 38px; }
.milton h2 { color: var(--ink); font-size: 36px; line-height: 1.08; }
.milton p { margin: 12px 0 0; }
.milton a { color: var(--navy); }
.facts { margin: 22px 0 8px; padding: 0; list-style: none; }
.facts li { padding: 14px 0; border-top: 1px solid rgba(16, 24, 32, .18); }
.facts li:last-child { border-bottom: 1px solid rgba(16, 24, 32, .18); }
.facts strong { display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.seals { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.seals img { width: 60px; height: 60px; object-fit: contain; }
.seals p { margin: 0; font-size: 14px; line-height: 1.35; color: rgba(16, 24, 32, .75); }

.next { padding: 40px var(--gutter); }
.next h2 { font-size: 36px; line-height: 1.08; }
.say-small { margin: 12px 0 0; color: var(--soft); }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 46px; border-top: 1px solid var(--hair); color: var(--soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; font: italic 400 34px/1.2 var(--serif); color: var(--cream); }
.steps strong { color: #fff; }

.foot { padding: 28px var(--gutter) 32px; border-top: 1px solid var(--hair); color: var(--soft); font-size: 14px; }
.foot p { margin: 6px 0 0; }
.foot a { color: #fff; }
.foot .tagline { font: italic 400 19px/1.3 var(--serif); color: var(--cream); }
body.bar-on .foot { padding-bottom: 104px; }

/* sticky once the big buttons scroll away */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16, 24, 32, .96); border-top: 1px solid var(--hair); }
.bar .btn-lead { flex-direction: row; }

/* one question at a time */
.flow { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; overflow-y: auto; padding: max(14px, env(safe-area-inset-top)) var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; }
.flow-top { display: flex; align-items: center; gap: 8px; margin-left: -10px; }
.back { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: none; color: #fff; }
.progress { flex: 1; display: flex; gap: 4px; }
.progress span { flex: 1; height: 2px; background: rgba(255, 255, 255, .2); transition: background-color .25s; }
.progress span.on { background: var(--cream); }

.step { padding-top: 34px; animation: rise .28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }
.hello { margin: 0 0 8px; color: var(--cream); font: italic 400 19px/1.3 var(--serif); }
.q { display: block; margin: 0 0 22px; font: 500 36px/1.08 var(--serif); letter-spacing: -.01em; color: #fff; }
input[type="text"], input[type="tel"] { display: block; width: 100%; height: 56px; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .55); border-radius: 0; background: transparent; color: #fff; font: 400 23px var(--sans); appearance: none; }
input[type="text"]:focus, input[type="tel"]:focus { border-bottom: 2px solid var(--cream); outline: none; }
input::placeholder { color: var(--quiet); opacity: 1; font-size: 18px; }
input[aria-invalid="true"] { border-bottom-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: grid; gap: 10px; }
.choice { min-height: 62px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px; background: transparent; color: #fff; font: 500 25px/1.1 var(--serif); }
.choice:active, .choice.picked { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.quick { display: flex; gap: 8px; margin-top: 14px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px; background: transparent; color: #fff; font-size: 15px; }
.chip.picked { background: var(--cream); border-color: var(--cream); color: var(--ink); }

.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin: 18px 0 0; font-size: 14px; line-height: 1.4; color: var(--soft); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--cream); }
.fine { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--quiet); }
.flow a { color: var(--cream); }

.err { margin: 10px 0 0; color: var(--danger); font-size: 15px; }
.err:empty { display: none; }
.btn-next { margin-top: 22px; background: var(--cream); color: var(--ink); }
.btn-next:disabled { opacity: .6; }
.flow #callback { margin-top: 10px; }
.flow .skip { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; color: var(--soft); font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* after submitting */
.done-view { padding-top: max(40px, env(safe-area-inset-top)); }
.done-view h2 { font-size: 40px; line-height: 1.05; outline: none; }
.done-view p { margin: 14px 0 0; color: var(--soft); }
.done-view .done-main { color: #fff; font-size: 19px; margin-bottom: 24px; }
.done-view strong { white-space: nowrap; color: #fff; }
.done-view .flow-call { color: var(--ink); }
.done-view .btn-outline { margin-top: 10px; }
.done-view #done-later { margin-top: 22px; }

/* Milton Guide */
.guide { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; background: var(--ink); color: #fff; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid var(--hair); }
.guide-name { margin: 0; font: 500 23px/1.1 var(--serif); }
.guide-sub { margin: 3px 0 0; color: var(--quiet); font-size: 12px; }
.guide-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin-right: -10px; border: 0; background: none; color: #fff; }
.guide-log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; }
.msg { width: fit-content; max-width: 88%; margin: 0 0 10px; padding: 11px 14px; border-radius: 16px; font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; }
.msg-bot { background: var(--ink-2); border: 1px solid var(--hair); }
.msg-me { margin-left: auto; background: var(--cream); color: var(--ink); }
.msg-crisis { max-width: 100%; background: #3a1d16; border: 1px solid var(--danger); }
.msg-typing { color: var(--quiet); }
.crisis-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.crisis-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 22px; background: var(--cream); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.guide-chip { min-height: 40px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 20px; background: transparent; color: #fff; font-size: 15px; line-height: 1.2; text-align: left; }
.guide-chip:active { background: var(--cream); color: var(--ink); }
.guide-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 10px 16px 8px; border-top: 1px solid var(--hair); }
.guide-actions .btn-primary { animation: none; }
.guide-form { display: flex; gap: 8px; padding: 0 16px calc(10px + env(safe-area-inset-bottom)); }
.guide-form input[type="text"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 24px; font-size: 16px; }
.guide-form input[type="text"]:focus { border: 1px solid var(--cream); }
.guide-send { min-height: 48px; padding: 0 16px; border: 0; border-radius: 24px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 15px; }

.practice-note { margin: 0; padding: 6px 14px; flex: none; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
.flow .practice-note { margin: 10px 0 0; border-radius: 8px; }
.msg-staff { background: var(--navy); border: 1px solid var(--blue); }
.msg-staff small { display: block; margin-bottom: 2px; font-size: 12px; opacity: .78; }
.msg-note { max-width: 100%; margin: 4px auto 12px; padding: 0; color: var(--quiet); font-size: 13px; text-align: center; }

/* short phones: keep every button on the first screen */
@media (max-height: 640px) {
  .who { display: none; }
  .hero-logo img { height: 34px; }
  h1 { font-size: 35px; }
  .thought { margin-top: 8px; font-size: 19px; }
  .hero-main { padding: 10px 0 8px; }
  .hero-actions { gap: 7px; }
  .btn { min-height: 50px; }
  .link-btn { min-height: 34px; }
}

@media (min-width: 900px) {
  .hero { padding: 26px 48px 28px; }
  .hero-bg { opacity: .45; }
  .hero-main, .hero-actions { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
  .next, .milton-text, .foot { padding-left: calc(50% - 310px); padding-right: calc(50% - 310px); }
  .milton > img { aspect-ratio: 3 / 1; }
  .bar { left: 50%; right: auto; width: 620px; margin-left: -310px; border: 1px solid var(--hair); border-bottom: 0; border-radius: 14px 14px 0 0; }
  .flow { align-items: center; padding-top: 28px; }
  .flow > * { width: 100%; max-width: 520px; }
  .guide { left: auto; width: 460px; border-left: 1px solid var(--hair); }
}

/* ------- motion ------- */
.btn, .link-btn, .top-call, .choice, .chip, .guide-chip, .guide-send { transition: transform .16s ease, background-color .16s ease, color .16s ease; }
.btn:active, .top-call:active, .choice:active, .chip:active, .guide-chip:active, .guide-send:active { transform: scale(.96); }

/* the landing */
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes word-up { from { opacity: 0; transform: translateY(.55em) rotate(3deg); } }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(26px) scale(.92); } 70% { opacity: 1; transform: translateY(-3px) scale(1.015); } 100% { transform: none; } }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.16) translateX(-2%); } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }

.hero-bg { animation: drift 16s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 42% at 62% 22%, rgba(246, 178, 27, .3), transparent 72%); animation: glow 5s ease-in-out infinite; }
.hero-top { animation: drop .6s ease-out backwards; }
.clock { animation: rise-in .5s ease-out .1s backwards; }
h1 .w { display: inline-block; animation: word-up .62s cubic-bezier(.2, .9, .25, 1) backwards; }
.thought { animation: rise-in .55s ease-out .85s backwards; }
.who { animation: rise-in .55s ease-out 1s backwards; }
.hero-actions > :nth-child(1) { animation: pop-in .6s ease-out 1s backwards; }
.hero-actions > :nth-child(2) { animation: pop-in .6s ease-out 1.14s backwards; }
.hero-actions > :nth-child(3) { animation: pop-in .6s ease-out 1.28s backwards; }
.hero-actions > :nth-child(4) { animation: rise-in .5s ease-out 1.4s backwards; }

/* the call button stays put and always calls, while the runner plays */
.call-zone { display: block; width: 100%; min-height: 58px; color: inherit; text-decoration: none; }
.dancer { transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .16s ease; }
.call-zone.waiting .dancer { background: transparent; box-shadow: inset 0 0 0 1px rgba(246, 238, 218, .75); color: var(--cream); animation: none; }
.dance-labels { display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap; }
.dance-labels small { font-size: 12.5px; font-weight: 700; opacity: .72; }
.ring { flex: none; animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 65%, 75%, 85% { transform: rotate(-15deg); } 70%, 80%, 90% { transform: rotate(15deg); } }

/* the runner */
.runner { position: absolute; left: 0; top: 0; z-index: 4; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 22px; border-radius: 29px; background: var(--cream); color: var(--ink); font: 700 17px/1.2 var(--sans); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transition: transform .6s cubic-bezier(.34, 1.3, .64, 1); will-change: transform; }
.runner.no-slide { transition: none; }
.runner.fast { transition: transform .2s cubic-bezier(.2, .9, .3, 1.25); }
.runner.tired { animation: breathe 1.2s ease-out infinite; }

/* the lead button catches the light */
.btn-lead { position: relative; overflow: hidden; }
.btn-lead::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent); transform: skewX(-18deg); animation: sheen 3.8s ease-in-out 2.4s infinite; pointer-events: none; }
@keyframes sheen { 0% { left: -40%; } 45%, 100% { left: 120%; } }

/* sections */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .25, 1); }
.reveal.in { opacity: 1; transform: none; }

/* form and guide slide up like a sheet */
@keyframes sheet { from { transform: translateY(100%); } }
.flow, .guide { animation: sheet .38s cubic-bezier(.2, .9, .25, 1); }
.step { animation: step-in .34s cubic-bezier(.2, .9, .25, 1); }
@keyframes step-in { from { opacity: 0; transform: translateX(26px); } }
.progress span { position: relative; overflow: hidden; }
.progress span.on { animation: fill .35s ease-out; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }
.choice:nth-child(1), .quick .chip:nth-child(1) { animation: pop-in .45s ease-out .08s backwards; }
.choice:nth-child(2), .quick .chip:nth-child(2) { animation: pop-in .45s ease-out .18s backwards; }

/* the guide */
.msg { animation: bubble .3s cubic-bezier(.25, 1.3, .5, 1) backwards; transform-origin: left bottom; }
.msg-me { transform-origin: right bottom; }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.guide-chip { animation: pop-in .4s ease-out backwards; }
.guide-chip:nth-child(2) { animation-delay: .07s; }
.guide-chip:nth-child(3) { animation-delay: .14s; }
.guide-chip:nth-child(4) { animation-delay: .21s; }
.guide-chip:nth-child(5) { animation-delay: .28s; }
.guide-chip:nth-child(6) { animation-delay: .35s; }
.msg-typing { display: flex; gap: 5px; align-items: center; min-height: 40px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: typing 1s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }

/* after submitting */
.done-mark { display: block; margin-bottom: 18px; color: var(--cream); }
.done-mark circle { stroke-dasharray: 158; animation: draw .7s ease-out backwards; }
.done-mark path { stroke-dasharray: 40; animation: draw .4s ease-out .55s backwards; }
@keyframes draw { from { stroke-dashoffset: 158; } }
.done-view h2 { animation: rise-in .5s ease-out .2s backwards; }
.done-view p, .done-view .btn { animation: rise-in .5s ease-out .35s backwards; }

/* anyone who has asked their phone for less motion gets a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------- first screen buttons, the chase, sheets and keyboard handling ------- */
/* first screen buttons */
.btn-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.hero-actions .btn-row { animation: pop-in .6s ease-out 1.14s backwards; }
.btn-row .btn { min-height: 54px; padding: 8px 10px; font-size: 16px; }
.btn-row .btn-lead { flex-direction: row; }
.hero-actions > :nth-child(3) { animation: rise-in .5s ease-out 1.28s backwards; }
.crisis { color: var(--soft); font-size: 14px; }
.crisis a { color: #fff; }

/* the runner: small enough to dodge around the words, never on them */
.runner { min-height: 46px; padding: 6px 16px 6px 13px; gap: 7px; border-radius: 23px; font-size: 15px; white-space: nowrap; }
.runner .ring { width: 18px; height: 18px; }
.runner.tired { background: #fff; }
.runner.fast { transition: transform .22s cubic-bezier(.2, .9, .3, 1.3); }
.spark { position: absolute; z-index: 5; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); pointer-events: none; animation: spark .6s ease-out forwards; }
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }

/* sticky bar */
.bar { grid-template-columns: 1fr auto 1.35fr; }
.bar .btn-small { font-size: 15px; }
.bar .btn-outline { padding: 6px 16px; }

/* below the first screen */
.next { padding-top: 12px; }
.milton { margin-top: 8px; }

/* phone step: Next stays above the number pad */
.phone-note { margin: 12px 0 0; }

/* sheets: caught it, and after a call */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(8, 12, 16, .62); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { display: flex; flex-direction: column; gap: 10px; padding: 24px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); border-radius: 22px 22px 0 0; background: var(--ink-2); animation: sheet .34s cubic-bezier(.2, .9, .25, 1); }
.sheet h2 { font-size: 32px; line-height: 1.08; outline: none; }
.sheet p { margin: 0 0 6px; color: var(--soft); }
.sheet .sheet-note { margin: 4px 0 0; color: var(--quiet); font-size: 14px; text-align: center; }
.sheet .sheet-note a { color: var(--cream); }
.sheet .btn-lead { flex-direction: row; }
.sheet .btn-primary { animation: none; }

/* the chat in danger: 911 first, nothing competing with it */
.guide.danger .guide-actions { display: none; }
.guide.danger .guide-form { padding-top: 10px; border-top: 1px solid var(--hair); }
.crisis-links a:first-child { flex: 1 0 100%; justify-content: center; min-height: 58px; border-radius: 29px; background: var(--danger); font-size: 18px; }

/* the chat once the team has their number */
.guide.lead-sent #guide-callback { display: none; }
.guide.lead-sent .guide-actions { grid-template-columns: 1fr; }

/* with the keyboard up, the page behind must never show around the chat or form */
@media (max-width: 899px) {
  body:has(#guide:not([hidden])) > :is(.hero, main, .foot, .bar),
  body:has(#flow:not([hidden])) > :is(.hero, main, .foot, .bar) { visibility: hidden; transition: visibility 0s linear .4s; }
}

/* the form tightens up while the keyboard is open, so the error and the button stay in view */
.flow.keyboard-up .practice-note, .flow.keyboard-up .hello, .flow.keyboard-up .skip { display: none; }
.flow.keyboard-up .step { padding-top: 12px; }
.flow.keyboard-up .q { margin-bottom: 6px; font-size: 28px; }
.flow.keyboard-up .phone-note { margin-top: 6px; font-size: 13px; }
.flow.keyboard-up .btn-next { margin-top: 10px; }

/* short phones */
@media (max-height: 640px) {
  .btn-row .btn { min-height: 48px; }
  .sheet h2 { font-size: 28px; }
}

/* ------- big screens: the photo sits sharp in its own frame instead of stretched behind the words ------- */
@media (min-width: 1100px) {
  .hero { padding-left: 7vw; padding-right: 7vw; }
  .hero { background: var(--ink); }
  .hero::before { display: none; }
  .hero-bg { top: 50%; bottom: auto; left: auto; right: 6vw; width: 40vw; height: min(70vh, 34vw); border-radius: 24px; opacity: 1; object-position: 0% 45%; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: translateY(-50%); animation: none; }
  .hero-main, .hero-actions { max-width: 560px; margin-left: 0; margin-right: 0; }
}
