/* Design A · Horizon. Rosan's Bristol scene in layers; the time of day
   (.ha[data-tod="0|1|2|3"]: dawn, early morning, mid-morning, full day) follows the answers.
   Only transform, opacity and fill change, so every layer can stay on the compositor.
   Phones: one question at a time over the full-screen scene (the journey's variant 5); /assets/css/design-a-nojs.css
   puts all three questions back on one page when JS is off. Desktop (≥960px): the form card beside a sticky scene. */

body.design-a { --page-max: 1120px; --a-ink: var(--brand-ink); --a-muted: #51606f; --a-line: #e1e7ee;
  --sun: #f6e7a6; --sun-deep: #e9c84a; --ease-out: cubic-bezier(.2, .75, .2, 1); background: #fff; }
body.design-a main { max-width: none; padding: 0; }
.ha { position: relative; }
.ha h1, .ha h2, .ha h3 { color: var(--a-ink); margin: 0; }
.ha :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- The scene ---------- */
.scene { display: block; width: 100%; height: auto; overflow: hidden; }
.scene mask.mk { mask-type: alpha; }
.scene .clouds rect { transition: fill 1.5s ease; }
.scene .shimmer { stroke: #f3cf95; stroke-width: 3; stroke-linecap: round; }
.scene .flock { fill: #8fb0dd; }
.scene .sunx, .scene .suny { transition: transform 1.5s; }
.scene .sunx { transition-timing-function: cubic-bezier(.45, 0, .55, 1); }
.scene .suny { transition-timing-function: cubic-bezier(.12, .7, .3, 1); }   /* y leads, x follows: the sun travels an arc */
.scene .fade { transition: opacity 1.5s ease; }
.scene .sunx { transform: translateX(455px); } .scene .suny { transform: translateY(668px); }
[data-tod="1"] .scene .sunx { transform: translateX(478px); } [data-tod="1"] .scene .suny { transform: translateY(604px); }
[data-tod="2"] .scene .sunx { transform: translateX(505px); } [data-tod="2"] .scene .suny { transform: translateY(556px); }
[data-tod="3"] .scene .sunx { transform: translateX(548px); } [data-tod="3"] .scene .suny { transform: translateY(410px); }
/* On arrival the dawn sun climbs to the horizon (questions page only). */
.ha-q .scene .suny { animation: a-sunup 1.1s var(--ease-out) backwards; }
@keyframes a-sunup { from { transform: translateY(800px); } }
/* per-state opacities: dawn / early / mid / day */
.scene .sun-day, .scene .halo-day { opacity: 0; }
[data-tod="1"] .scene .sun-day { opacity: .45; } [data-tod="2"] .scene .sun-day { opacity: .8; } [data-tod="3"] .scene .sun-day { opacity: 1; }
[data-tod="1"] .scene .halo-day { opacity: .35; } [data-tod="2"] .scene .halo-day { opacity: .7; } [data-tod="3"] .scene .halo-day { opacity: 1; }
.scene .halo-dawn { opacity: 1; } [data-tod="1"] .scene .halo-dawn { opacity: .65; } [data-tod="2"] .scene .halo-dawn { opacity: .3; } [data-tod="3"] .scene .halo-dawn { opacity: 0; }
.scene .haze { opacity: .95; } [data-tod="1"] .scene .haze { opacity: .6; } [data-tod="2"] .scene .haze { opacity: .25; } [data-tod="3"] .scene .haze { opacity: 0; }
.scene .tint-far { fill: #383c78; opacity: .6; } [data-tod="1"] .scene .tint-far { opacity: .34; } [data-tod="2"] .scene .tint-far { opacity: .1; } [data-tod="3"] .scene .tint-far { opacity: 0; }
.scene .tint-mid { fill: #2d3270; opacity: .46; } [data-tod="1"] .scene .tint-mid { opacity: .24; } [data-tod="2"] .scene .tint-mid { opacity: .07; } [data-tod="3"] .scene .tint-mid { opacity: 0; }
.scene .tint-woman { fill: #2b2d62; opacity: .34; } [data-tod="1"] .scene .tint-woman { opacity: .16; } [data-tod="2"] .scene .tint-woman { opacity: .04; } [data-tod="3"] .scene .tint-woman { opacity: 0; }
.scene .shimmer { opacity: 1; } [data-tod="3"] .scene .shimmer { opacity: .45; }
.scene .clouds rect { fill: #f19a7e; } [data-tod="1"] .scene .clouds rect { fill: #f5bd98; } [data-tod="2"] .scene .clouds rect { fill: #f5dba8; } [data-tod="3"] .scene .clouds rect { fill: #f6e7a6; }
/* Life: calm loops, transform and opacity only. */
.scene .clouds { animation: a-drift 22s ease-in-out infinite alternate; }
.scene .flock { animation: a-glide 28s ease-in-out infinite alternate; }
.scene .bird { transform-box: fill-box; transform-origin: 50% 60%; animation: a-flap 1.1s ease-in-out infinite alternate; }
.scene .flock > g:nth-child(2) .bird { animation-duration: 1.3s; animation-delay: -.4s; }
.scene .flock > g:nth-child(3) .bird { animation-duration: .95s; animation-delay: -.7s; }
.scene .flock > g:nth-child(4) .bird { animation-duration: 1.25s; animation-delay: -.2s; }
.scene .flock > g:nth-child(5) .bird { animation-duration: 1.05s; animation-delay: -.9s; }
.scene .shimmer line { animation: a-shimmer 3.4s ease-in-out infinite alternate; }
.scene .shimmer line:nth-child(2n) { animation-duration: 4.2s; animation-delay: -1.3s; }
.scene .shimmer line:nth-child(3n) { animation-duration: 2.8s; animation-delay: -2s; }
.scene .leaves { transform-box: fill-box; transform-origin: 30% 100%; animation: a-sway 7s ease-in-out infinite alternate; }
@keyframes a-drift { to { transform: translateX(14px); } }
@keyframes a-glide { from { transform: translate(-30px, 6px); } to { transform: translate(70px, -16px); } }
@keyframes a-flap { from { transform: scaleY(1); } to { transform: scaleY(.4); } }
@keyframes a-shimmer { from { opacity: .15; } to { opacity: .75; } }
@keyframes a-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
.no-anim .scene *, .no-anim .sky-layers i, .no-anim .msky i { transition: none !important; }

/* The sky is the page itself: four gradients stacked; later ones fade in over earlier ones (no dip through white). */
.band { position: relative; isolation: isolate; }
.sky-layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-layers i, .msky i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
.sky-layers .k0, .msky .s0 { opacity: 1; }
[data-tod="1"] .sky-layers .k1, [data-tod="2"] .sky-layers .k1, [data-tod="3"] .sky-layers .k1,
[data-tod="2"] .sky-layers .k2, [data-tod="3"] .sky-layers .k2, [data-tod="3"] .sky-layers .k3,
[data-tod="1"] .msky .s1, [data-tod="2"] .msky .s1, [data-tod="3"] .msky .s1,
[data-tod="2"] .msky .s2, [data-tod="3"] .msky .s2, [data-tod="3"] .msky .s3 { opacity: 1; }
.sky-layers .k0 { background: linear-gradient(180deg, #2b3a6b 0, #3d4478 60px, #62568f 130px, #b3709a 165px, #e27d8c 190px, #f4a65f 213px, #f1a67a 270px, #dca0ac 420px, #cbb0cf 650px, #dfd9ea 1000px, #ecf7fb 100%); }
.sky-layers .k1 { background: linear-gradient(180deg, #41578f 0, #53609a 60px, #655d95 130px, #c7849b 170px, #eea08e 190px, #f7bd82 213px, #f5c3a0 270px, #e8c0c0 420px, #dcd0e2 650px, #e6e6f1 1000px, #ecf7fb 100%); }
.sky-layers .k2 { background: linear-gradient(180deg, #9cc0e0 0, #bcd5ec 60px, #dde6f0 125px, #f3e6d6 170px, #f9e7c2 213px, #f6eadc 270px, #e7edf2 420px, #dde9f3 650px, #e4eef6 1000px, #ecf7fb 100%); }
.sky-layers .k3 { background: linear-gradient(180deg, #dcedf7 0, #ebf5fa 110px, #f4f9fc 170px, #f7fbfd 213px, #eef6fa 270px, #e4f1f8 420px, #dcecf6 650px, #ecf7fb 100%); }
/* The phone backdrop's sky, placed relative to --hz (the horizon's measured y; design-a.js). */
.msky { position: absolute; inset: 0; --hz: 50%; }
.msky .s0 { background: linear-gradient(180deg, #2b3a6b 0, #3d4478 calc(var(--hz) * .28), #62568f calc(var(--hz) * .61), #b3709a calc(var(--hz) * .775), #e27d8c calc(var(--hz) * .89), #f4a65f var(--hz), #f1a67a calc(var(--hz) + 57px), #dca0ac calc(var(--hz) + 207px), #cbb0cf calc(var(--hz) + 437px), #dfd9ea calc(var(--hz) + 787px), #ecf7fb calc(var(--hz) + 1100px)); }
.msky .s1 { background: linear-gradient(180deg, #41578f 0, #53609a calc(var(--hz) * .28), #655d95 calc(var(--hz) * .61), #c7849b calc(var(--hz) * .8), #eea08e calc(var(--hz) * .89), #f7bd82 var(--hz), #f5c3a0 calc(var(--hz) + 57px), #e8c0c0 calc(var(--hz) + 207px), #dcd0e2 calc(var(--hz) + 437px), #e6e6f1 calc(var(--hz) + 787px), #ecf7fb calc(var(--hz) + 1100px)); }
.msky .s2 { background: linear-gradient(180deg, #9cc0e0 0, #bcd5ec calc(var(--hz) * .28), #dde6f0 calc(var(--hz) * .59), #f3e6d6 calc(var(--hz) * .8), #f9e7c2 var(--hz), #f6eadc calc(var(--hz) + 57px), #e7edf2 calc(var(--hz) + 207px), #dde9f3 calc(var(--hz) + 437px), #e4eef6 calc(var(--hz) + 787px), #ecf7fb calc(var(--hz) + 1100px)); }
.msky .s3 { background: linear-gradient(180deg, #dcedf7 0, #ebf5fa calc(var(--hz) * .52), #f4f9fc calc(var(--hz) * .8), #f7fbfd var(--hz), #eef6fa calc(var(--hz) + 57px), #e4f1f8 calc(var(--hz) + 207px), #dcecf6 calc(var(--hz) + 437px), #ecf7fb calc(var(--hz) + 900px)); }
.mv-bg { display: none; }
.mhost { position: absolute; inset: 0; }
.mhost svg { width: 100%; height: 100%; }
.mv-bg .flock-pos { transform: translate(470px, 390px) scale(.8); }   /* below the headline */

/* ---------- Page ---------- */
.art-col { display: none; }
.top { position: relative; padding: 14px 20px 18px; }
.intro { position: relative; z-index: 1; }
.intro h1 { font-size: 28px; line-height: 1.1; letter-spacing: -.018em; margin: 0 0 6px; max-width: 15ch; }
.intro p { margin: 0; color: #3c4957; font-size: 15.5px; max-width: 36ch; }
.intro .error { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--error); font-size: 15px; max-width: none; }
.intro .backto { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.intro .backto a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); text-decoration: none; }
.sheet { position: relative; z-index: 1; background: #fff; margin: 0 14px 22px; padding: 4px 18px 24px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 41, 71, .08); }

/* ---------- Questions ---------- */
.ha fieldset { border: 0; margin: 18px 0 0; padding: 0 0 8px; min-width: 0; }
.ha fieldset:first-of-type { margin-top: 8px; }
.ha legend, .q-where label { padding: 0; margin: 0; font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--a-ink); }
.ha .opt { font-weight: 400; color: var(--a-muted); }
.ha .hint { margin: 4px 0 0; color: var(--a-muted); font-size: 14.5px; }
.ha .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ha .pill { position: relative; scroll-margin: 90px 0 24px; }
.ha .pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ha .pill span { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 10px 17px; border: 1.5px solid var(--a-line); border-radius: 999px; font-weight: 600; font-size: 15.5px; color: var(--a-ink); background: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.ha .pill span::before { content: ""; width: 0; height: 14px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: width .2s var(--ease-out); }
.ha .pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.ha .pill input:checked + span::before { width: 14px; }
.ha .pill input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (hover: hover) { .ha .pill input:not(:checked):hover + span { border-color: #9fc3dc; } }
.ha .err { display: none; margin: 10px 0 0; color: var(--error); font-size: 14.5px; font-weight: 600; }
.ha .invalid .err { display: block; }
.ha .invalid .pill span { border-color: #f1b5ae; }
/* "Something else": topic search under the answers (shared /assets/js/topic-search.js), styled like the town list. */
.a-topic { margin-top: 14px; }
.a-topic label { display: block; font-weight: 600; font-size: 15.5px; color: var(--a-ink); }
.a-topic-field { position: relative; z-index: 35; margin-top: 8px; }   /* above the town box below it */
.ha .a-topic-field .field { margin-top: 0; }
.ha .a-topic-list { z-index: 40; padding: 6px; border-radius: 16px; border-color: var(--a-line); box-shadow: 0 18px 40px rgba(0, 41, 71, .18); top: calc(100% + 6px); }
.ha .a-topic-list.up { top: auto; bottom: calc(100% + 6px); }
.ha .a-topic-list li[role=option] { min-height: 44px; align-items: baseline; padding: 11px 12px; border-radius: 11px; }
.ha .a-topic-list mark { background: none; color: inherit; font-weight: 600; }
.q-where { padding-top: 18px; }
.ha .field { display: block; width: 100%; min-height: 52px; margin-top: 12px; padding: 12px 16px; border: 1.5px solid var(--a-line); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; }
.ha .field::placeholder { color: #7b8794; }
.ha .field:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 113, 188, .25); }
/* Location lookup (/assets/js/location.js): the list floats above the card and the scene. */
.ha .loc-wrap { margin-top: 12px; z-index: 30; }
.ha .loc-wrap .field { margin-top: 0; }
.ha .loc-wrap.has-btn .field { padding-right: 54px; }
.ha .loc-btn { width: 44px; height: 44px; border-radius: 11px; }
.ha .loc-list { top: calc(100% + 6px); z-index: 40; padding: 6px; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 41, 71, .18); max-height: min(320px, 50vh); overflow-y: auto; }
.ha .loc-list li { min-height: 44px; align-items: baseline; padding: 10px 12px; border-radius: 11px; }
.ha .loc-note { margin-top: 8px; }

.btn-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s; }
.btn-go:hover { background: var(--brand-dark); }
.btn-go[aria-busy="true"] { background: var(--a-ink); }
.btn-quiet { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--a-line); border-radius: 14px; background: #fff; color: var(--a-ink); font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; }
.btn-quiet:hover { border-color: #9fc3dc; }
.submit { margin-top: 22px; }
.reassure { margin: 10px 0 0; text-align: center; color: var(--a-muted); font-size: 14px; }
.mstep-nav, .mkeys { display: none; }
.sheet { animation: a-sheet .7s var(--ease-out) backwards; }
@keyframes a-sheet { from { transform: translateY(36px); opacity: 0; } }

/* ---------- Results ---------- */
.rband { position: relative; min-height: 172px; padding: 8px 20px 16px; display: flex; flex-direction: column; }
.rband > :not(.payoff) { position: relative; z-index: 1; }
.rband h1 { margin-top: auto; font-size: 30px; line-height: 1.1; letter-spacing: -.018em; }
/* The payoff: a slim band of the Bristol skyline and bridge behind the heading (the coaches start on the first screen). */
.payoff { position: absolute; inset: 0; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); animation: a-payoff 1.2s var(--ease-out) .2s backwards; }
.payoff svg { width: 100%; height: 100%; }
@keyframes a-payoff { from { opacity: 0; transform: translateY(16px); } }
.back { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin: 0 0 4px -2px; padding: 0 2px; color: var(--brand-dark);   /* ≥4.5:1 on the results sky */ font-weight: 600; font-size: 15px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.results-view .sheet { padding-top: 16px; }
.facts { margin: 0; font-weight: 600; color: var(--a-ink); font-size: 16.5px; }
.results-view .note { margin: 6px 0 0; color: var(--a-muted); font-size: 15.5px; }
.ha .lede { margin: 6px 0 0; color: var(--a-muted); font-size: 15.5px; }
.coaches { list-style: none; margin: 18px 0 0; padding: 0; }
.ha .coach { padding: 20px 0; border: 0; border-top: 1px solid var(--a-line); border-radius: 0; background: none; }
.ha .coach:last-child { border-bottom: 1px solid var(--a-line); }
.coach-top { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.ha .ph { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--brand-tint); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sun-deep); margin: 4px; }
.ha .ph-none { display: grid; place-items: center; color: var(--brand-dark); font-weight: 600; font-size: 26px; }
.coach h2 { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.coach .cred { margin: 2px 0 6px; color: var(--a-muted); font-size: 14.5px; font-weight: 400; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ha .badge { margin: 0; font-size: 13.5px; }
.ha .badge .ic { width: 15px; height: 15px; }
.coach .words { margin: 14px 0 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
/* The topic words in their sentence: a soft sunrise-gold underline, not a highlighter. */
.coach .words mark { background: linear-gradient(transparent 62%, rgba(233, 200, 74, .38) 62%); color: inherit; padding: 0 1px; }
.coach-meta { margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.coach-meta div { display: flex; gap: 9px; align-items: flex-start; }
.coach-meta svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--a-muted); }
.coach-meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.coach-meta dd { margin: 0; min-width: 0; }
.coach-meta dd a { font-weight: 600; text-underline-offset: 3px; }
.coach-meta .nofee { color: var(--a-muted); }
.acts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 16px; }
.acts .btn-go { min-height: 48px; font-size: 15.5px; }
.next { margin: 30px 0 0; padding: 0; background: none; border: 0; border-radius: 0; }
.ha .next h2 { font-size: 21px; margin: 0; }
.ha .steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: s; display: block; }
.ha .steps li { counter-increment: s; position: relative; display: block; padding: 0 0 16px 46px; font-size: 16px; }
.ha .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--a-ink); font-weight: 600; font-size: 15px; display: grid; place-items: center; border: 0; }
.ha .steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; width: 1px; background: var(--a-line); }
.ha .steps p { margin: 0; }
.ha .steps b { color: var(--a-ink); }
.ha .steps .sub { color: var(--a-muted); font-size: 15px; margin-top: 2px; }
/* The coaches arrive one after another (CSS only, so nothing waits on JS). */
.reveal { animation: a-rise .7s var(--ease-out) backwards; }
.r4 { animation-delay: .62s; }
@keyframes a-rise { from { opacity: 0; transform: translateY(18px); } }

/* Trust strip (shared markup) on the pale sky */
.ha .trust-strip { margin: 0; padding: 22px 20px 8px; background: var(--brand-tint); }
/* "All coaches are verified professionals": one quiet line at the foot of the question card (as on Classic / www). */
.a-verified { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--a-muted); }
.a-verified a { color: inherit; }
.a-verified .ic-check { width: 16px; height: 16px; flex: none; color: var(--brand); }
.ha .trust-strip li > a, .ha .trust-strip .tbox { border-radius: 12px; }

/* ---------- Dialogs: bottom sheets on phones, centred on desktop ---------- */
dialog.a-sheet { padding: 0; border: 0; color: var(--ink); background: #fff; width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(0, 41, 71, .18); overflow: hidden; }
dialog.a-sheet[open] { display: flex; flex-direction: column; animation: a-sheet-up .45s var(--ease-out); }
dialog.a-sheet::backdrop { background: rgba(0, 41, 71, .42); }
dialog.a-sheet.closing { animation: a-sheet-down .25s ease-in forwards; }
@keyframes a-sheet-up { from { transform: translateY(100%); } }
@keyframes a-sheet-down { to { transform: translateY(100%); } }
dialog.profile.a-sheet { height: 92dvh; }
dialog.profile.a-sheet .profile-head { position: relative; padding-top: 26px; }
dialog.profile.a-sheet .profile-head::before, .a-handoff .dlg-bar::before { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--a-line); }
dialog.profile.a-sheet .profile-head .photo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sun-deep); margin: 4px; }
dialog.profile.a-sheet .profile-foot .btn { min-height: 54px; border-radius: 14px; font-size: 17px; }
.a-handoff .dlg-bar { display: flex; justify-content: flex-end; padding: 8px 8px 0; position: relative; }
.a-handoff .x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; color: var(--a-ink); }
.a-handoff .x:hover { background: var(--brand-tint); }
.a-handoff .dlg-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 22px; }
.a-handoff .dlg-foot { padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--a-line); background: #fff; }
.ho-scene { margin: -4px -22px 0; }
.ho-scene svg { height: 150px; width: 100%; }
.ho-people { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -38px 0 14px; position: relative; }
.ho-people .ph { width: 76px; height: 76px; margin: 0; }
.ho-people .ld { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; background: #fff; }
.ho-people .link { width: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--sun-deep) 0 5px, transparent 5px 9px); }
.ho h2 { font-size: 23px; line-height: 1.2; text-align: center; }
.ho .lede { text-align: center; }
.ho .steps { margin-top: 20px; }
.domain { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px auto 0; padding: 8px 14px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--brand-tint); color: var(--a-ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.domain svg { flex: none; width: 14px; height: 14px; }
.ho-done { text-align: center; padding-top: 4px; }
.ho-done h2:focus { outline: none; }
.ho-done .tick { width: 88px; height: 88px; margin: 8px auto 14px; display: block; }
.ho-done .tick circle { fill: var(--sun); transform-origin: center; animation: a-sunpop .7s var(--ease-out); }
.ho-done .tick path { fill: none; stroke: var(--a-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: a-draw .5s .35s ease-out forwards; }
@keyframes a-sunpop { from { transform: translateY(24px) scale(.6); opacity: 0; } }
@keyframes a-draw { to { stroke-dashoffset: 0; } }
.ho-done .lede { max-width: 32ch; margin-left: auto; margin-right: auto; }
.stack { display: grid; gap: 10px; }
.a-handoff [hidden] { display: none; }
.textlink { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; color: var(--brand); }

/* ---------- Phones (below the desktop breakpoint) ---------- */
@media (max-width: 959px) {
  /* Text on the sky: white while it's dark (dawn, early morning), navy once it lightens. */
  .intro h1, .intro p { transition: color 1.5s ease; }
  [data-tod="0"] .intro h1, [data-tod="1"] .intro h1 { color: #fff; }
  [data-tod="0"] .intro p, [data-tod="1"] .intro p { color: #fff; text-shadow: 0 1px 3px rgba(26, 30, 70, .45); }
  /* While the text is white, a soft dusk shade behind it keeps it ≥4.5:1 where the sky warms towards the horizon. */
  .ha-q .intro::before { content: ""; position: absolute; inset: -22px -20px -26px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.5s ease;
    background: radial-gradient(ellipse 75% 60% at 38% 55%, rgba(43, 50, 100, .5), rgba(43, 50, 100, 0) 100%); }
  .ha-q[data-tod="0"] .intro::before, .ha-q[data-tod="1"] .intro::before { opacity: 1; }

  /* Questions: the whole picture fixed behind the page, one question card at the bottom. */
  body.a-q { background: #2b3a6b; }
  body.a-q .devbar, body.a-q header.site { position: relative; z-index: 2; }
  body.a-q header.site { background: transparent; border-bottom-color: transparent; }
  body.a-q header.site .logo img { transition: filter 1.5s ease; }
  body.a-q:has(.ha[data-tod="0"]) header.site .logo img, body.a-q:has(.ha[data-tod="1"]) header.site .logo img { filter: brightness(0) invert(1); }
  body.a-q header.site .site-link { transition: color 1.5s ease; }
  body.a-q:has(.ha[data-tod="0"]) header.site .site-link, body.a-q:has(.ha[data-tod="1"]) header.site .site-link { color: #fff; }
  .ha-q .sky-layers { display: none; }
  .ha-q .mv-bg { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .ha-q .form-view { display: flex; flex-direction: column; min-height: calc(100vh - var(--a-above, 53px)); min-height: calc(100svh - var(--a-above, 53px)); }   /* --a-above: header (+ test bar), measured by design-a.js */
  .ha-q .form-view { padding-bottom: var(--a-banner, 0px); }   /* room for the cookie banner (design-a.js) */
  .ha-q .sheet { margin: auto 12px 12px; padding: 12px 18px 20px; box-shadow: 0 14px 40px rgba(0, 41, 71, .2); }
  .ha-q #guide > [data-step]:not(.on) { display: none; }
  .ha-q #guide > fieldset { margin-top: 6px; }
  .ha-q #guide > .q-where { padding-top: 6px; }
  .ha-q #guide > .anim { animation: a-step .42s var(--ease-out); }
  @keyframes a-step { from { opacity: 0; transform: translateX(var(--dx, 24px)); } }
  .ha-q legend, .ha-q .q-where label, .ha-q legend:focus-visible, .ha-q .q-where label:focus-visible { outline: none; }   /* focus lands here for screen readers; no ring */
  .ha-q #guide:focus { outline: none; }
  /* Back · "Question 1 of 3" · Next, in one compact row (the journey's variant 5). */
  .ha-q .mstep-nav { display: flex; align-items: center; gap: 8px; min-height: 40px; }
  .mcount { margin-left: auto; color: var(--a-muted); font-size: 14px; }
  .mstep-nav .mnext { margin-left: 6px; }
  .mstep-nav > button { flex: none; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
  .mstep-nav .off { visibility: hidden; }
  /* The town list opens upwards (the card sits at the bottom); design-a.js fits it to the space above. */
  .ha-q .loc-list { top: auto; bottom: calc(100% + 6px); }
  /* The topic list opens inside the card, below the box (the card grows), so nothing below can cover it. */
  .ha-q .a-topic-list { position: static; margin-top: 6px; box-shadow: 0 6px 18px rgba(0, 41, 71, .1); }
  /* A quiet key hint after the first key press (never on touch), floating above the card so it costs no height. */
  .ha-q.kbd .mkeys { display: block; position: absolute; left: 50%; bottom: calc(100% + 10px); margin: 0; padding: 5px 12px; transform: translateX(-50%); white-space: nowrap; border-radius: 999px; background: rgba(0, 41, 71, .74); color: #fff; font-size: 13px; }
  /* Below the card: trust tiles and the footer sit on their own ground, above the fixed scene. */
  /* The tiles start below the first screen, on the same white sheet as the footer, so the scene stays clear. */
  .ha-q .trust-strip { position: relative; z-index: 1; margin: 72px 12px 0; padding: 22px 20px 8px; background: rgba(255, 255, 255, .96); border-radius: 22px 22px 0 0; }
  body.a-q footer.site { position: relative; z-index: 1; margin: 0 12px; padding-left: 20px; padding-right: 20px; background: rgba(255, 255, 255, .96); border-top: 0; border-radius: 0;   /* continues the trust tiles' sheet above */ }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  /* Same central column as Sentence (B): --page-max 1080px, 16px sides, a 520px card, the scene to its right. */
  body.design-a { background: #fff; --page-max: 1080px; }
  .sky-layers .k0 { background: linear-gradient(180deg, #2b3a6b 0%, #4a4a85 12%, #6b5b9a 22%, #b3709a 30%, #e27d8c 35%, #f4a65f 41%, #f1a67a 50%, #dca0ac 65%, #e6d3e0 85%, #fff 100%); }
  .sky-layers .k1 { background: linear-gradient(180deg, #41578f 0%, #5a67a0 12%, #7d74aa 22%, #c7849b 30%, #eea08e 35%, #f7bd82 41%, #f5c3a0 50%, #ead0cf 65%, #f3e9ee 85%, #fff 100%); }
  .sky-layers .k2 { background: linear-gradient(180deg, #9cc0e0 0%, #bcd5ec 14%, #dde6f0 26%, #f3e6d6 34%, #f9e7c2 41%, #fbeede 52%, #fdf6ee 75%, #fff 100%); }
  .sky-layers .k3 { background: linear-gradient(180deg, #dcedf7 0%, #eaf5fa 45%, #f7fbfd 80%, #fff 100%); }
  /* Card about the size of Classic's and Faces' (so "Show my coaches" sits above the fold on a laptop, cookie banner and all). */
  .band-grid { display: grid; grid-template-columns: 520px minmax(0, 1fr); align-items: start; max-width: var(--page-max); margin: 0 auto; padding: 28px 16px 64px; }
  .card-col { position: relative; z-index: 2; }
  .page { background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 41, 71, .12), 0 2px 6px rgba(0, 41, 71, .05); padding: 34px 38px 28px; }
  .top { padding: 0; }
  .intro h1 { font-size: 34px; line-height: 1.15; max-width: none; margin-bottom: 5px; }
  .intro p { font-size: 17px; }
  /* A more compact card: the gaps between heading, lede and question groups ~25% tighter (pills stay 46px tall). */
  .ha fieldset { margin-top: 14px; padding-bottom: 6px; }
  .ha fieldset:first-of-type { margin-top: 4px; }
  .ha .pills { margin-top: 9px; gap: 7px; }
  .ha .pill span { min-height: 40px; padding: 7px 15px; font-size: 15px; }
  .ha legend, .q-where label { font-size: 17px; }
  .q-where { padding-top: 14px; }
  .ha .field, .ha .loc-wrap { margin-top: 9px; }
  .ha .loc-wrap .field { margin-top: 0; }
  .submit { margin-top: 16px; }
  .reassure { margin-top: 8px; }
  .intro .backto a { padding: 0; background: none; }
  .sheet, .results-view .sheet { margin: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; animation: none; }
  #guide { padding-top: 10px; }
  .payoff { display: none; }
  .rband { min-height: 0; padding: 0 0 4px; }
  .rband h1 { max-width: none; margin-top: 6px; font-size: 38px; }
  .results-view .sheet { padding-top: 10px; }
  /* The scene stays in view (full height) while the card scrolls, so every change of light plays out on screen. */
  /* The scene runs on into the page margin on the right (the card column still matches B's). */
  .band { overflow-x: clip; }   /* 100vw includes a classic scrollbar: never scroll sideways (clip keeps sticky working) */
  .art-col { display: block; position: relative; z-index: 1; margin: -28px calc(-16px - max(0px, (100vw - var(--page-max)) / 2)) -64px -170px; align-self: stretch; }   /* -170px: the scene's left edge stays under the 520px card */
  .art-sticky { position: sticky; top: 12px; height: calc(100vh - 76px); min-height: 460px; }
  .art-sticky svg { width: 100%; height: 100%; }
  .ha .trust-strip { max-width: var(--page-max); margin: 0 auto; padding: 24px 16px 0; background: none; gap: 16px; }
  .ha .trust-strip li > a, .ha .trust-strip .tbox { flex-direction: row; gap: 12px; padding: 16px 20px; font-size: 15px; }
  .ha .trust-strip .ic, .ha .trust-strip img { height: 32px; width: auto; }
  dialog.a-sheet { max-width: 560px; margin: auto; border-radius: 26px; max-height: 88vh; }
  dialog.profile.a-sheet { width: min(680px, 100vw); max-width: 680px; height: 88dvh; }
  dialog.a-sheet[open] { animation: a-pop .45s var(--ease-out); }
  dialog.a-sheet.closing { animation: a-unpop .25s ease-in forwards; }
  @keyframes a-pop { from { transform: translateY(30px); opacity: 0; } }
  @keyframes a-unpop { to { transform: translateY(20px); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .scene .clouds, .scene .flock, .scene .bird, .scene .shimmer line, .scene .leaves { animation: none !important; }
  .ha *, .ha *::before, .ha *::after, .ha .scene * { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Header logo lines up with the left edge of the question card (.band-grid: --page-max, 16px padding, as B). */
@media (min-width: 960px) {
  .design-a header.site { padding-left: calc(max(0px, (100% - var(--page-max)) / 2) + 16px); padding-right: calc(max(0px, (100% - var(--page-max)) / 2) + 16px); }
}

/* Desktop: headline-to-first-question gap matches Classic's (24px) now there's no intro line. */
@media (min-width: 960px) {
  .card-col .intro { margin-bottom: 10px; }
}
