/* Find your fit (/onboarding): the hidden therapist-matching flow. Test mode only.
   Desktop at 1440px, mobile at 390px (same zoom conventions as site.css). Keyframes are local on purpose. */

@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ob-pop { 0% { transform: scale(1); } 35% { transform: scale(.95); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes ob-in-next { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes ob-in-back { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes ob-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ob-draw { to { stroke-dashoffset: 0; } }
@keyframes ob-caret { 50% { opacity: 0; } }
@keyframes ob-closer { 0% { opacity: 0; transform: rotate(-5deg) translateY(6px); } 20%, 75% { opacity: 1; transform: rotate(-5deg); } 100% { opacity: 0; transform: rotate(-5deg) translateY(-4px); } }
@keyframes ob-burst { from { opacity: 1; transform: translate(-50%, -50%) scale(.3) rotate(0); } to { opacity: 0; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1) rotate(var(--br)); } }
@keyframes ob-pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 71, 52, .3); } 80%, 100% { box-shadow: 0 0 0 12px rgba(40, 71, 52, 0); } }

/* ---------- Page ---------- */
.ob { position: relative; overflow: clip; min-height: 900px; }
.ob-stage { height: auto; min-height: 900px; padding: 128px 160px 90px; display: flex; flex-direction: column; }
.ob-view { position: relative; flex: 1; display: grid; }
.ob-step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ob-step.is-next { animation: ob-in-next .6s cubic-bezier(.16, 1, .3, 1) backwards; }
.ob-step.is-back { animation: ob-in-back .6s cubic-bezier(.16, 1, .3, 1) backwards; }
.ob-step.is-leaving { opacity: 0; transform: translateX(var(--leave, -40px)); transition: opacity .28s ease, transform .28s ease; pointer-events: none; }
.ob-step h1 { max-width: 820px; outline: none; }
.ob-step h1 em { font-style: italic; }
.ob-lead { margin-top: 16px; max-width: 620px; }
.ob-script { display: inline-block; margin-bottom: 10px; transform-origin: center; }

/* ---------- Background shapes: one continuous scene, re-arranged per step ---------- */
.ob-shapes { position: absolute; inset: 0; pointer-events: none; }
.ob-shape { position: absolute; left: var(--sx, 50%); top: var(--sy, 50%); width: var(--ss, 120px); opacity: var(--so, 1); transform: translate(-50%, -50%) rotate(var(--sr, 0deg)); transition: left 1.1s cubic-bezier(.65, 0, .35, 1), top 1.1s cubic-bezier(.65, 0, .35, 1), width 1.1s cubic-bezier(.65, 0, .35, 1), opacity .8s ease, transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.ob-shape img { width: 100%; height: auto; animation: ob-float 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s); }
.ob-shape[data-shape="0"] img, .ob-shape[data-shape="5"] img { animation: ob-spin 60s linear infinite; }

/* ---------- Top bar: back, clover stepping stones, "one step closer" ---------- */
.ob-top { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 44px; }
.ob-top[hidden] { display: none; }
.ob-back { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 4px; font-size: 16.2px; border-radius: 100px; transition: color .2s ease; }
.ob-back:hover { color: var(--brown); }
.ob-back svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ob-back[disabled] { visibility: hidden; }
.ob-progress { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.ob-progress li { display: flex; align-items: center; }
.ob-progress li + li::before { content: ""; width: 34px; height: 2px; margin: 0 6px; background: linear-gradient(90deg, var(--green) var(--fill, 0%), rgba(40, 71, 52, .18) var(--fill, 0%)); transition: --fill .5s ease; }
.ob-progress li.is-done + li::before, .ob-progress li.is-done + li.is-now::before { --fill: 100%; }
.ob-clover { width: 26px; height: 26px; }
.ob-clover path { fill: rgba(40, 71, 52, .12); stroke: rgba(40, 71, 52, .35); stroke-width: 1.2; transition: fill .45s ease, stroke .45s ease, transform .45s var(--ease-back); transform-origin: center; }
.is-now .ob-clover path { fill: var(--yellow); stroke: var(--green); }
.is-done .ob-clover path { fill: var(--green); stroke: var(--green); }
.is-done .ob-clover { animation: ob-pop .5s var(--ease-back); }
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.ob-closer { position: absolute; right: 0; top: -6px; opacity: 0; pointer-events: none; }
.ob-closer.is-on { animation: ob-closer 1.8s ease both; }

/* ---------- Privacy note ---------- */
.ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ob-privacy { margin: 36px auto 0; max-width: 560px; display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; font-size: 14px; line-height: 21px; opacity: .78; }
.ob-privacy::before { content: ""; flex: none; width: 14px; height: 16px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 1 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 1 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 1 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 1 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ob-privacy[hidden] { display: none; }

/* ---------- Buttons and quiet links ---------- */
.ob-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn.ob-btn { min-width: 240px; height: 52px; padding: 0 34px; font-size: 18px; }
.btn.ob-btn[disabled] { opacity: .45; cursor: default; }
.btn.ob-btn[disabled]:hover { background: var(--blue); }
.ob-alt { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.ob-btn--line { height: 46px; padding: 0 24px; font-size: 16.2px; background: transparent; box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .45); }
.btn.ob-btn--line:hover { background: var(--yellow); box-shadow: none; }
.ob-faq { margin-top: 30px; width: 100%; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.ob-faq__item { padding: 26px 26px 28px; border-radius: 30px; animation: ob-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; }
.ob-faq__item:nth-child(1) { background: var(--peach); }
.ob-faq__item:nth-child(2) { background: var(--yellow); animation-delay: .08s; }
.ob-faq__item:nth-child(3) { background: var(--blue); animation-delay: .16s; }
.ob-faq h2 { font-size: 22px; line-height: 28px; }
.ob-faq p { margin-top: 10px; font-size: 16.5px; line-height: 25px; }
.ob-ask { margin-top: 26px; width: 100%; max-width: 760px; padding: 24px 26px 18px; border-radius: 30px; background: var(--white); text-align: left; animation: ob-rise .6s cubic-bezier(.16, 1, .3, 1) .24s backwards; }
.ob-ask__chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ob-ask__chips .ob-chip { min-height: 40px; font-size: 15px; animation: none; }
.ob-ask__row { margin-top: 14px; display: flex; gap: 8px; padding: 5px 5px 5px 18px; border-radius: 100px; background: var(--cream); }
.ob-ask__row:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.ob-ask__row input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--green); outline: none; }
.ob-ask__row input::placeholder { color: rgba(40, 71, 52, .55); }
.ob-ask__send { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.ob-ask__send:hover { transform: scale(1.06); }
.ob-ask__send svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ob-ask__note { margin-top: 10px; font-size: 13px; line-height: 18px; opacity: .72; }
.ob-quiet { text-decoration-skip-ink: none; font-size: 15.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(40, 71, 52, .35); transition: color .2s ease; }
.ob-quiet:hover { color: var(--brown); }
.ob-meta { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.ob-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ob-meta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-right: 4px; }

/* ---------- Single-choice cards (colour blocks that tilt, like the site's cards) ---------- */
.ob-opts { margin-top: 40px; display: grid; grid-template-columns: repeat(var(--cols, 3), 250px); gap: 22px; justify-content: center; }
.ob-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; min-height: 220px; padding: 26px 18px 24px; border-radius: 30px; text-align: center; transition: transform .3s ease-in-out, box-shadow .3s ease; animation: ob-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(.08s * var(--i, 0) + .12s); }
.ob-opt:nth-child(4n + 1) { background: var(--peach); }
.ob-opt:nth-child(4n + 2) { background: var(--yellow); }
.ob-opt:nth-child(4n + 3) { background: var(--blue); }
.ob-opt:nth-child(4n + 4) { background: var(--gold); }
.ob-opt:hover, .ob-opt:focus-visible { transform: rotate(-4deg); }
.ob-opt:nth-child(even):hover, .ob-opt:nth-child(even):focus-visible { transform: rotate(4deg); }
.ob-opt:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.ob-opt.is-picked { animation: ob-pop .45s var(--ease-back); box-shadow: 0 0 0 3px var(--green); }
.ob-opt__art { display: flex; align-items: center; justify-content: center; height: 96px; }
.ob-opt__art img { max-width: 100px; max-height: 92px; width: auto; height: auto; transition: transform .5s var(--ease-back); }
.ob-opt:hover .ob-opt__art img { transform: scale(1.08) rotate(6deg); }
.ob-opt__t { font-size: 22.5px; line-height: 28px; }
.ob-opt__s { font-size: 14.5px; line-height: 20px; opacity: .8; margin-top: -8px; }
.ob-opt__tick { position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .35s var(--ease-back); }
.ob-opt__tick svg { width: 14px; height: 14px; fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.is-picked .ob-opt__tick, [aria-pressed="true"] > .ob-opt__tick, [aria-checked="true"] > .ob-opt__tick { opacity: 1; transform: none; }

/* Age cards are compact: a big number on a colour block */
.ob-opts--age { grid-template-columns: repeat(4, 190px); }
.ob-opts--age .ob-opt { min-height: 170px; justify-content: center; gap: 4px; }
.ob-opt__n { font-size: 50px; line-height: 60px; }

/* ---------- Multi-select chips ---------- */
.ob-chips { margin-top: 34px; max-width: 980px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ob-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 100px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .22); font-size: 17px; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease; animation: ob-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(.035s * var(--i, 0) + .1s); }
.ob-chip:hover { background: var(--yellow); box-shadow: inset 0 0 0 1px transparent; transform: translateY(-2px); }
.ob-chip:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.ob-chip[aria-pressed="true"] { background: var(--green); color: var(--cream); box-shadow: none; animation: ob-pop .4s var(--ease-back); }
.ob-chip__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; transition: transform .3s var(--ease-back); }
.ob-chip[aria-pressed="true"] .ob-chip__dot { transform: scale(1.3); }
.ob-chip--other { background: transparent; box-shadow: inset 0 0 0 1.5px var(--green); border-style: dashed; }
.ob-other { margin-top: 18px; width: 100%; max-width: 520px; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.16, 1, .3, 1); }
.ob-other.is-open { grid-template-rows: 1fr; }
.ob-other > div { overflow: hidden; }
.ob-other__box { margin: 6px 4px 4px; padding: 18px 20px 16px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .16); text-align: left; }
.ob-other label { display: block; font-size: 15px; margin-bottom: 8px; }
.ob-other input { width: 100%; height: 46px; padding: 0 16px; border-radius: 100px; border: 1px solid rgba(40, 71, 52, .3); background: var(--cream); font: inherit; font-size: 17px; color: var(--green); }
.ob-other input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.ob-other__row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13.5px; line-height: 19px; opacity: .78; }

/* ---------- Where and how ---------- */
.ob-where { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 220px); gap: 18px; justify-content: center; }
.ob-where .ob-opt { min-height: 176px; gap: 10px; }
.ob-where .ob-opt__art { height: 76px; }
.ob-where .ob-opt__art img { max-width: 84px; max-height: 72px; }
.ob-where .ob-opt__t { font-size: 20px; line-height: 25px; }
.ob-sub { margin-top: 34px; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.ob-sub + .ob-chips { margin-top: 14px; }

/* ---------- Private pay ---------- */
.ob-pay { margin-top: 30px; max-width: 700px; padding: 34px 40px; border-radius: 30px; background: var(--yellow); text-align: left; animation: ob-rise .6s cubic-bezier(.16, 1, .3, 1) .1s backwards; }
.ob-pay p + p { margin-top: 12px; }
.ob-pay__opts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ob-note { margin-top: 26px; max-width: 640px; padding: 26px 30px; border-radius: 30px; background: var(--white); text-align: left; animation: ob-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.ob-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Matching animation ---------- */
.ob-match { position: relative; width: 980px; height: 560px; margin: 6px auto 0; }
.ob-match__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .4s ease; }
.is-lift .ob-match__lines { opacity: 0; }
.ob-match__lines line { stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: .55; }
.ob-match__lines.is-on line { animation: ob-draw .7s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i) * .12s); }
.ob-match__core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%) scale(.2); opacity: 0; transition: transform .8s var(--ease-back), opacity .5s ease; }
.ob-match__core img { width: 100%; height: 100%; object-fit: contain; animation: ob-spin 5s linear infinite; }
.is-gather .ob-match__core { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.is-lift .ob-match__core { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
.ob-match__chip { position: absolute; left: var(--cx); top: var(--cy); transform: translate(-50%, -50%); padding: 9px 18px; border-radius: 100px; background: var(--green); color: var(--cream); font-size: 15.5px; white-space: nowrap; transition: left .9s cubic-bezier(.65, 0, .35, 1), top .9s cubic-bezier(.65, 0, .35, 1), transform .9s cubic-bezier(.65, 0, .35, 1), opacity .5s ease .5s; transition-delay: calc(var(--i) * .06s); animation: ob-rise .45s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i) * .07s); }
.is-gather .ob-match__chip { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.3); opacity: 0; }
.ob-match__face { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--peach); box-shadow: 0 0 0 4px var(--cream); transform: translate(-50%, -50%) scale(.2) rotate(-20deg); opacity: 0; transition: left .75s cubic-bezier(.16, 1, .3, 1), top .75s cubic-bezier(.16, 1, .3, 1), transform .75s var(--ease-back), opacity .4s ease, box-shadow .4s ease, width .6s ease, height .6s ease; transition-delay: calc(var(--i) * .05s); }
.ob-match__face img { width: 100%; height: 100%; object-fit: cover; }
.is-deal .ob-match__face { left: var(--fx); top: var(--fy); transform: translate(-50%, -50%) rotate(var(--fr)); opacity: 1; }
.is-shuffle .ob-match__face { left: var(--gx); top: var(--gy); transition-delay: calc(var(--j) * .04s); }
.is-lift .ob-match__face { opacity: .16; transform: translate(-50%, -50%) scale(.82); transition-delay: 0s; }
.is-lift .ob-match__face.is-top { left: var(--tx); top: var(--ty); opacity: 1; width: 138px; height: 138px; transform: translate(-50%, -50%) scale(1.02); box-shadow: 0 0 0 6px var(--cream), 0 18px 40px rgba(40, 71, 52, .22); }
.ob-match__status { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 560px; height: 108px; list-style: none; padding: 0; margin: 0; text-align: center; font-size: 20px; line-height: 34px; }
.ob-match__status li { opacity: 0; transition: opacity .35s ease; }
.ob-match__status li.is-on { opacity: 1; }
.ob-match__status li.is-done { opacity: .45; }
.ob-match__status li.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--green); animation: ob-caret .8s steps(1) infinite; }
.ob-burst { position: absolute; left: var(--ox, 50%); top: var(--oy, 50%); width: 26px; height: 26px; pointer-events: none; animation: ob-burst 1.1s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: var(--bd, 0s); opacity: 0; }
.ob-burst img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Results ---------- */
.ob-results { margin-top: 38px; display: grid; grid-template-columns: repeat(var(--n, 3), 330px); gap: 26px; justify-content: center; align-items: start; }
.ob-card { position: relative; border-radius: 30px; padding: 18px 18px 22px; text-align: left; transition: transform .3s ease-in-out; animation: ob-rise .7s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(.14s * var(--i, 0) + .1s); }
.ob-card:nth-child(1) { background: var(--peach); }
.ob-card:nth-child(2) { background: var(--yellow); }
.ob-card:nth-child(3) { background: var(--blue); }
.ob-card:hover { transform: rotate(-2deg); }
.ob-card:nth-child(even):hover { transform: rotate(2deg); }
.ob-card__open { display: block; width: 100%; text-align: left; border-radius: 22px; }
.ob-card__open:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.ob-card__photo { position: relative; display: block; aspect-ratio: 1 / .92; border-radius: 22px; overflow: hidden; background: var(--cream); }
.ob-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.ob-card:hover .ob-card__photo img { transform: scale(1.04); }
.ob-card__rank { white-space: nowrap; position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 100px; background: var(--cream); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ob-card__name { display: block; margin-top: 16px; font-size: 26px; line-height: 32px; }
.ob-card__role { display: block; margin-top: 4px; font-size: 15px; line-height: 21px; opacity: .85; }
.ob-card__more { margin-top: 10px; display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.ob-choose { margin-top: 14px; width: 100%; min-height: 46px; padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--green); background: transparent; color: var(--green); font: inherit; font-size: 16px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.ob-choose:hover { background: rgba(40, 71, 52, .08); }
.ob-choose[aria-pressed="true"] { background: var(--green); color: var(--cream); animation: ob-pop .45s var(--ease-back); }
.ob-choose:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.ob-next { max-width: 620px; margin-left: auto; margin-right: auto; }
.ob-why { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ob-why span { padding: 4px 11px; border-radius: 100px; background: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 19px; }
.ob-star { position: absolute; right: 28px; top: 28px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease-back), background-color .2s ease; }
.ob-star:hover { transform: scale(1.08); }
.ob-star svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; transition: fill .2s ease; }
.ob-star[aria-pressed="true"] { background: var(--green); animation: ob-pop .45s var(--ease-back); }
.ob-star[aria-pressed="true"] svg { fill: var(--yellow); stroke: var(--yellow); }
.ob-star:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.ob-draft { margin-top: 22px; display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 100px; background: var(--white); font-size: 13px; letter-spacing: .04em; }
.ob-draft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Book ---------- */
.ob-book { margin-top: 30px; width: 100%; max-width: 900px; }
.ob-picks { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.ob-picks__faces { display: flex; }
.ob-picks__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--cream); }
.ob-picks__faces img + img { margin-left: -10px; }
.ob-cal { margin-top: 24px; height: 760px; border-radius: 30px; overflow: hidden; background: var(--white); }
.ob-cal iframe { display: block; width: 100%; height: 100%; border: 0; }
.ob-sched { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 30px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .12); text-align: left; }
.ob-sched__pick { padding: 30px 32px 32px; }
.ob-month__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ob-month__title { flex: 1; font-family: inherit; font-weight: 400; font-size: 24px; line-height: 30px; }
.ob-month__nav { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .2); transition: background-color .2s ease; }
.ob-month__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ob-month__nav:hover:not(:disabled) { background: var(--yellow); }
.ob-month__nav:disabled { opacity: .3; cursor: default; }
.ob-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; justify-items: center; }
.ob-month__wd { font-size: 12.5px; letter-spacing: .04em; opacity: .6; padding-bottom: 4px; }
.ob-date { width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16.5px; }
.ob-date.is-off { opacity: .32; }
button.ob-date { background: rgba(40, 71, 52, .08); transition: background-color .2s ease, color .2s ease; }
button.ob-date:hover { background: var(--yellow); }
button.ob-date:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button.ob-date[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.ob-sched__day { margin-top: 24px; font-size: 17px; }
.ob-times { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; min-height: 48px; }
.ob-sched__form.ob-form { margin: 0; max-width: none; padding: 30px 32px 32px; grid-template-columns: 1fr; align-content: start; border-left: 1px solid rgba(40, 71, 52, .12); }
.ob-sched__h { font-family: inherit; font-weight: 400; font-size: 24px; line-height: 30px; }
.ob-sched__when { margin-top: -6px; font-size: 15px; line-height: 21px; opacity: .78; }
.ob-sched__when.is-set { opacity: 1; }
.ob-sched__form .btn.ob-btn { width: 100%; min-width: 0; height: auto; min-height: 52px; padding: 12px 24px; margin-top: 6px; }
.ob-form { margin: 26px auto 0; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.ob-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ob-form label.is-wide { grid-column: 1 / -1; }
.ob-form input { height: 48px; padding: 0 18px; border-radius: 100px; border: 1px solid rgba(40, 71, 52, .3); background: var(--white); font: inherit; font-size: 17px; color: var(--green); }
.ob-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.ob-form__note { grid-column: 1 / -1; font-size: 13.5px; line-height: 19px; opacity: .78; }
.ob-err { margin-top: 14px; color: var(--brown); font-size: 15px; }

/* ---------- Confirmed ---------- */
.ob-remind { margin-top: 14px; font-size: 16px; line-height: 23px; }
.ob-addcal { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; font-size: 15.5px; }
.ob-addcal .ob-chip { min-height: 42px; padding: 0 18px 0 14px; gap: 8px; font-size: 15.5px; animation: none; }
.ob-cal-logo { width: 18px; height: 18px; flex: none; }
.ob-move { margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; font-size: 15.5px; }
.ob-check { width: 92px; height: 92px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ob-check circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: ob-draw .9s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.ob-check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: ob-draw .5s cubic-bezier(.65, 0, .35, 1) 1s forwards; }
.ob-track { margin: 44px auto 0; width: 100%; max-width: 820px; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; position: relative; }
.ob-track::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 22px; height: 2px; background: rgba(40, 71, 52, .2); }
.ob-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; font-size: 19px; line-height: 25px; }
.ob-track__dot { width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ob-track__dot svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ob-track .is-done .ob-track__dot { background: var(--green); }
.ob-track__dot.is-face { overflow: hidden; box-shadow: 0 0 0 3px var(--white); }
.ob-track__dot.is-face img { width: 100%; height: 100%; object-fit: cover; }
.ob-track__dot.is-face b { font-weight: 400; font-size: 20px; }
.ob-track .is-next .ob-track__dot { animation: ob-pulse 2.4s ease-out 1.4s infinite; }

/* ---------- Clinician sheet (outside the zoom layout, so plain px) ---------- */
.ob-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; font-family: var(--serif); color: var(--green); }
.ob-sheet[hidden] { display: none; }
.ob-sheet__scrim { position: absolute; inset: 0; background: rgba(40, 71, 52, .45); opacity: 0; transition: opacity .35s ease; }
.ob-sheet__panel { position: relative; width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; overscroll-behavior: contain; background: var(--cream); border-radius: 30px 30px 0 0; padding: 30px 40px 40px; transform: translateY(100%); transition: transform .5s cubic-bezier(.16, 1, .3, 1); outline: none; }
.ob-sheet.is-open .ob-sheet__scrim { opacity: 1; }
.ob-sheet.is-open .ob-sheet__panel { transform: none; }
.ob-sheet__close { position: sticky; top: 0; float: right; margin: -8px -14px 0 0; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; z-index: 1; }
.ob-sheet__close:hover { background: var(--yellow); }
.ob-sheet__close svg { width: 16px; height: 16px; stroke: var(--green); stroke-width: 1.6; fill: none; }
.ob-sheet__head { display: flex; gap: 26px; align-items: center; }
.ob-sheet__photo { flex: none; width: 170px; height: 190px; border-radius: 30px; overflow: hidden; background: var(--peach); }
.ob-sheet__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.ob-sheet h2 { font-size: 36px; line-height: 44px; }
.ob-sheet__facts { margin-top: 8px; font-size: 16px; line-height: 24px; }
.ob-sheet__facts div { opacity: .88; }
.ob-sheet__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ob-sheet__actions .btn { height: 46px; padding: 0 24px; font-size: 16.2px; }
.ob-sheet__actions .btn--line { background: transparent; box-shadow: inset 0 0 0 1px var(--green); }
.ob-sheet__actions .btn--line:hover { background: var(--yellow); box-shadow: none; }
.ob-sheet__video { margin-top: 18px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--green); }
.ob-sheet__video iframe, .ob-sheet__video video { width: 100%; height: 100%; border: 0; display: block; }
.ob-sheet h3 { margin-top: 28px; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.ob-sheet__bio p { margin-top: 12px; font-size: 17px; line-height: 27px; }
.ob-sheet__list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ob-sheet__list li { padding: 6px 14px; border-radius: 100px; background: var(--white); font-size: 14.5px; line-height: 20px; }
.ob-sheet__list li.is-match { background: var(--yellow); }
.ob-bio-more { margin-top: 10px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .ob, .ob-stage { min-height: 760px; }
  .ob-stage { padding: 26px 22px 120px; } /* room to scroll every button clear of the Sprout launcher */
  .ob-top { margin-bottom: 26px; }
  .ob-back { font-size: 15px; padding-right: 6px; }
  .ob-back span { display: none; }
  .ob-progress li + li::before { width: 16px; margin: 0 3px; }
  .ob-clover { width: 22px; height: 22px; }
  .ob-closer { top: 34px; right: 4px; }
  .ob-step h1 { font-size: 34px; line-height: 41px; }
  .ob-lead { margin-top: 12px; }
  .ob-opts, .ob-opts--age, .ob-where { margin-top: 26px; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
  .ob-opts--who { grid-template-columns: 1fr; }
  .ob-opts--who .ob-opt { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto auto; align-content: center; min-height: 96px; padding: 14px 20px; gap: 2px 16px; text-align: left; }
  .ob-opts--who .ob-opt__art { grid-row: 1 / 3; height: 64px; width: 70px; }
  .ob-opts--who .ob-opt__art img { max-width: 66px; max-height: 60px; }
  .ob-opts--who .ob-opt__s { margin-top: 2px; }
  .ob-opt { min-height: 150px; padding: 18px 12px; border-radius: 24px; }
  .ob-opts--age .ob-opt { min-height: 118px; }
  .ob-opt__n { font-size: 38px; line-height: 46px; }
  .ob-opt__t { font-size: 19px; line-height: 24px; }
  .ob-where .ob-opt { min-height: 132px; }
  .ob-where .ob-opt__art { height: 54px; }
  .ob-where .ob-opt__art img { max-width: 60px; max-height: 52px; }
  .ob-where .ob-opt__t { font-size: 17px; line-height: 22px; }
  .ob-chips { margin-top: 22px; gap: 8px; }
  .ob-chip { min-height: 44px; padding: 0 16px; font-size: 15.5px; }
  .ob-pay { padding: 24px 22px; border-radius: 24px; }
  .ob-note { padding: 20px 20px; border-radius: 24px; }
  .btn.ob-btn { min-width: 0; width: 100%; max-width: 330px; }
  .ob-alt { flex-direction: column; width: 100%; align-items: center; }
  .btn.ob-btn--line { width: 100%; max-width: 330px; height: 50px; }
  .ob-ask { padding: 18px 16px 14px; border-radius: 24px; margin-top: 18px; }
  .ob-faq { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .ob-faq__item { padding: 20px 22px; border-radius: 24px; }
  .ob-faq h2 { font-size: 19px; line-height: 24px; }
  .ob-faq p { font-size: 15.5px; line-height: 23px; }
  .ob-meta { flex-direction: column; gap: 4px; }
  .ob-meta span + span::before { display: none; }
  /* iOS zooms into inputs rendered under 16px; the page is scaled by --z, so compensate */
  .ob-other input, .ob-ask__row input, .ob-form input { font-size: max(17px, calc(16.5px / var(--z, 1))); }
  .ob-back { min-width: 48px; min-height: 48px; }
  /* Comfortable tap targets even on 320px phones, where the page is scaled down to about 0.82 */
  .ob-quiet { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; }
  .ob-star { width: 48px; height: 48px; }
  .ob-chip, .ob-ask__chips .ob-chip { min-height: 48px; }
  .ob-ask__row input { height: 46px; }
  .ob-ask__send { width: 46px; height: 46px; }
  .ob-bio-more, .ob-card__more { min-height: 40px; display: inline-flex; align-items: center; }
  .ob-privacy { margin-top: 26px; font-size: 13px; line-height: 19px; }
  .ob-match { width: 346px; height: 470px; }
  .ob-match__face { width: 58px; height: 58px; box-shadow: 0 0 0 3px var(--cream); }
  .is-lift .ob-match__face.is-top { width: 88px; height: 88px; }
  .ob-match__core { width: 100px; height: 100px; }
  .ob-match__chip { font-size: 13px; padding: 6px 12px; }
  .ob-match__status { width: 340px; font-size: 16.5px; line-height: 28px; height: 90px; bottom: -4px; }
  .ob-results { grid-template-columns: 1fr; gap: 16px; width: 100%; }
  .ob-card { padding: 14px; border-radius: 24px; }
  .ob-card__open { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; gap: 0 14px; align-items: start; }
  .ob-card__photo { grid-row: 1 / 4; aspect-ratio: auto; height: 132px; border-radius: 18px; }
  .ob-card__rank { display: none; }
  .ob-card__name { margin-top: 2px; font-size: 21px; line-height: 26px; padding-right: 40px; }
  .ob-card__role { font-size: 13.5px; line-height: 18px; }
  .ob-card__more { margin-top: 6px; font-size: 13.5px; }
  .ob-why { margin-top: 12px; }
  .ob-why span { font-size: 12.5px; }
  .ob-star { right: 10px; top: 10px; width: 46px; height: 46px; }
  .ob-cal { height: 820px; border-radius: 24px; margin-left: -8px; margin-right: -8px; }
  .ob-form { grid-template-columns: 1fr; }
  .ob-sched { grid-template-columns: 1fr; border-radius: 24px; margin-left: -8px; margin-right: -8px; }
  .ob-sched__pick, .ob-sched__form.ob-form { padding: 22px 18px 24px; }
  .ob-sched__form.ob-form { border-left: 0; border-top: 1px solid rgba(40, 71, 52, .12); }
  .ob-month__title, .ob-sched__h { font-size: 21px; line-height: 27px; }
  .ob-track { grid-template-columns: 1fr; row-gap: 16px; }
  .ob-track::before { display: none; }
  .ob-sheet__panel { padding: 22px 22px 30px; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .ob-sheet__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ob-sheet__photo { width: 120px; height: 136px; border-radius: 22px; }
  .ob-sheet h2 { font-size: 28px; line-height: 34px; }
  .ob-sheet__actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion: same content, calm fades ---------- */
@media (prefers-reduced-motion: reduce) {
  .ob-step.is-next, .ob-step.is-back, .ob-opt, .ob-chip, .ob-card, .ob-pay, .ob-note { animation: none !important; }
  .ob-step.is-leaving { transform: none; }
  .ob-shape, .ob-match__chip, .ob-match__face, .ob-match__core { transition-duration: .01s !important; transition-delay: 0s !important; }
  .ob-shape img, .ob-match__core img { animation: none !important; }
  .ob-opt:hover, .ob-opt:focus-visible, .ob-card:hover, .ob-chip:hover { transform: none !important; }
  .ob-burst { display: none; }
  .ob-check circle, .ob-check path { animation: none; stroke-dashoffset: 0; }
  .ob-sheet__panel { transition: none; }
}
