/* Delight: the onboarding questions in the style of Bello's Gut Path prototype: ink on a white page, lines instead of fills.
   Bello (or the guide asking) beside the question in a speech bubble, answers that press like keys,
   a Continue button with a pressed edge that waits grey until she answers, the reply sheet that slides up
   after an answer (onboarding/steps/_reply_sheet) and the chapter map between chapters
   (onboarding/steps/_chapter_map). Loaded last in onboarding/_product_styles. Reduce Motion keeps
   everything still. */

.new-onboarding .ob-question-flow {
  --dl-ink: var(--gs-product-action, #10110f);
  --dl-on-ink: var(--gs-product-on-action, #fff);
  --dl-ink-edge: color-mix(in srgb, var(--dl-ink) 55%, #000);
  --dl-card: var(--gs-card, #fff);
  --dl-soft: var(--gs-sand-light, #faf6f2);
  --dl-line: var(--gs-border, #e7e0da);
  --dl-edge: color-mix(in srgb, var(--gs-text-primary, #1c1917) 16%, var(--dl-line));
  --dl-press: 3px;
  --dl-ease: cubic-bezier(.2, .7, .2, 1);
  --dl-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* White, with lines instead of fills. The page and every surface on it are white in light mode; lines tell
   them apart. Things she can press have a 2px line with a pressed edge, cards that group what the team says have
   a 1px line, and what she picked turns ink. Ink is the only colour, apart from red for errors. Dark mode keeps
   the product shell's own colours. */
html:not(.dark) .new-onboarding .ob-question-flow {
  --ob-surface: #fff;
  --ob-surface-line: var(--gs-border, #dcddd7);
  --gs-sand: #fff;
  --gs-warm-cream: #fff;
  --gs-card: #fff;
  --gs-card-elevated: #fff;
  --gs-sand-light: #fff;
  --dl-card: #fff;
  --dl-soft: #fff;
  background: #fff;
}

@keyframes dl-pick { 0% { transform: translateY(var(--dl-press)); } 55% { transform: translateY(-2px) scale(1.02); } 100% { transform: none; } }
@keyframes dl-tick { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: none; } }
@keyframes dl-ready { 0% { transform: scale(.97); } 60% { transform: scale(1.02); } 100% { transform: none; } }
@keyframes dl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dl-sheet-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes dl-pop { 0% { opacity: 0; transform: scale(.4); } 65% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes dl-hop { 0%, 100% { transform: none; } 30% { transform: translateY(-10px) rotate(-5deg); } 55% { transform: translateY(0) rotate(3deg); } 75% { transform: translateY(-3px); } }
@keyframes dl-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes dl-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dl-ink) 35%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes dl-fall { 0% { opacity: 1; transform: translate3d(0, -20px, 0) rotate(var(--r, 0deg)); } 100% { opacity: 0; transform: translate3d(var(--dx, 0px), 520px, 0) rotate(calc(var(--r, 0deg) + 320deg)); } }
@keyframes dl-leave { to { opacity: 0; transform: translateY(-18px); } }

/* ---------- the chapter bar: chunkier, like the prototype's ---------- */
.new-onboarding .ob-question-flow .ob-chapter-track { gap: 5px; }
.new-onboarding .ob-question-flow .ob-chapter-seg { height: 8px; border-radius: 8px; background: var(--dl-line); }
.new-onboarding .ob-question-flow .ob-chapter-seg i { border-radius: 8px; }

/* The plan screens' plain bar matches the chapter bar: chunky and ink, without a percentage. */
.new-onboarding .ob-question-flow .ob-progress { height: 8px; border-radius: 8px; background: var(--dl-line); }
.new-onboarding .ob-question-flow .ob-progress-fill { border-radius: 8px; background: var(--dl-ink); }
.new-onboarding .ob-question-flow .ob-progress-pct { display: none; }

/* The paywall's plans press like answers, and the chosen one turns ink. */
.new-onboarding .ob-question-flow .pwp-plan { border: 2px solid var(--dl-line); border-radius: 16px; background: var(--dl-card); box-shadow: 0 var(--dl-press) 0 var(--dl-line); transition: transform .08s ease, box-shadow .08s ease, border-color .15s; }
.new-onboarding .ob-question-flow .pwp-plan:active { transform: translateY(var(--dl-press)); box-shadow: 0 0 0 var(--dl-line); }
.new-onboarding .ob-question-flow .pwp-plan:has(input:checked) { border-color: var(--dl-ink); background: var(--dl-soft); box-shadow: 0 var(--dl-press) 0 var(--dl-ink); }
.new-onboarding .ob-question-flow .pwp-plan input[type=radio] { accent-color: var(--dl-ink); color: var(--dl-ink); }

/* ---------- Bello (or the guide asking) beside the question ---------- */
.new-onboarding .ob-question-flow .ob-ask { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 20px; }
.new-onboarding .ob-question-flow .ob-ask-who { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.new-onboarding .ob-question-flow .ob-ask-bello { width: 70px; height: 70px; object-fit: contain; animation: dl-bob 3.2s ease-in-out 1.2s infinite; }
.new-onboarding .ob-question-flow .ob-ask-guide {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--dl-ink); color: var(--dl-on-ink); box-shadow: 0 3px 0 var(--dl-ink-edge);
}
.new-onboarding .ob-question-flow .ob-ask-from { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; }
.new-onboarding .ob-question-flow .ob-ask-name { font: 700 11px/1.4 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow.ob-motion .ob-ask:has(.ob-ask-tag) .ob-ask-guide { animation: dl-pop .45s var(--dl-spring) .1s backwards, dl-ring 1.1s ease-out .6s; }
.new-onboarding .ob-question-flow.ob-motion .ob-ask-tag { animation: dl-pop .4s var(--dl-spring) .35s backwards; }
.new-onboarding .ob-question-flow .ob-ask-bubble {
  position: relative; flex: 1; min-width: 0; margin-top: 4px; padding: 13px 16px 15px;
  background: var(--dl-card); border: 2px solid var(--dl-line); border-radius: 20px; box-shadow: 0 3px 0 var(--dl-line);
}
/* The bubble's tail, pointing at whoever is asking. */
.new-onboarding .ob-question-flow .ob-ask-bubble::before {
  content: ""; position: absolute; left: -9px; top: 22px; width: 14px; height: 14px;
  background: var(--dl-card); border-left: 2px solid var(--dl-line); border-bottom: 2px solid var(--dl-line);
  transform: rotate(45deg); border-radius: 0 0 0 4px;
}
.new-onboarding .ob-question-flow .ob-ask-bubble .ob-question { margin: 0; font-size: 21px; line-height: 1.24; letter-spacing: -.015em; }
.new-onboarding .ob-question-flow .ob-ask-bubble .ob-eyebrow { margin: 0 0 6px; font-size: 11px; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-ask-lead { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-ask-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--dl-ink); color: var(--dl-on-ink); font: 700 10.5px/1.6 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
}
.new-onboarding .ob-question-flow .ob-ask + .ob-context { margin-top: -6px; }

/* ---------- answers that press like keys ---------- */
.new-onboarding .ob-question-flow :is(.ob-choice, .ob-answer-option, .ob-detail-trigger, .ob-scale-key) {
  border: 2px solid var(--dl-line); border-radius: 16px; background: var(--dl-card);
  box-shadow: 0 var(--dl-press) 0 var(--dl-line);
  transition: transform .08s ease, box-shadow .08s ease, border-color .15s, background-color .15s;
}
/* Hover only where there is a pointer that hovers: on a phone a tapped card would keep the tint and look
   half chosen next to the real answer. */
@media (hover: hover) {
  .new-onboarding .ob-question-flow :is(.ob-choice, .ob-answer-option, .ob-detail-trigger, .ob-scale-key, .ob-bristol-type):hover { background: var(--dl-soft); border-color: var(--dl-edge); }
}
@media (hover: none) {
  .new-onboarding .ob-question-flow :is(.ob-choice, .ob-bristol-type):hover { background: var(--dl-card); border-color: var(--dl-line); }
}
.new-onboarding .ob-question-flow :is(.ob-choice, .ob-answer-option, .ob-detail-trigger, .ob-scale-key, .ob-bristol-type):active {
  transform: translateY(var(--dl-press)); box-shadow: 0 0 0 var(--dl-line);
}
.new-onboarding .ob-question-flow .ob-choice-input:checked + .ob-choice,
.new-onboarding .ob-question-flow .ob-answer-option[aria-pressed="true"],
.new-onboarding .ob-question-flow .ob-detail-trigger:has(input:checked),
.new-onboarding .ob-question-flow .ob-scale-input:checked + .ob-scale-key {
  border-color: var(--dl-ink); background: var(--dl-soft); color: var(--gs-text-primary);
  box-shadow: 0 var(--dl-press) 0 var(--dl-ink);
}
.new-onboarding .ob-question-flow.ob-motion .ob-choice-input:checked + .ob-choice,
.new-onboarding .ob-question-flow.ob-motion .ob-scale-input:checked + .ob-scale-key { animation: dl-pick .28s var(--dl-ease); }
.new-onboarding .ob-question-flow .ob-choice-input:focus-visible + .ob-choice,
.new-onboarding .ob-question-flow .ob-scale-input:focus-visible + .ob-scale-key { outline: 2px solid var(--dl-ink); outline-offset: 3px; }
.new-onboarding .ob-question-flow .ob-choice-label { font-weight: 600; }

/* The Bristol cards press like every other answer, and turn ink when chosen (never coral). */
.new-onboarding .ob-question-flow .ob-bristol-type {
  border: 2px solid var(--dl-line); border-radius: 16px; background: var(--dl-card); box-shadow: 0 var(--dl-press) 0 var(--dl-line);
  transition: transform .08s ease, box-shadow .08s ease, border-color .15s, background-color .15s;
}
.new-onboarding .ob-question-flow .ob-choice-input:checked + .ob-bristol-type { border-color: var(--dl-ink); background: var(--dl-soft); box-shadow: 0 var(--dl-press) 0 var(--dl-ink); }
.new-onboarding .ob-question-flow .ob-choice-input:checked + .ob-bristol-type .ob-bristol-name { color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow.ob-motion .ob-choice-input:checked + .ob-bristol-type { animation: dl-pick .28s var(--dl-ease); }

/* Two or three short answers (yes or no; often, sometimes, never) share the row equally, like Myth and Fact. */
.new-onboarding .ob-question-flow .ob-choices--chips.ob-compact-choices { display: flex; }
.new-onboarding .ob-question-flow .ob-choices--chips:is(:has(> label:nth-of-type(2):last-of-type), :has(> label:nth-of-type(3):last-of-type)) > label { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; }
.new-onboarding .ob-question-flow .ob-choices--chips:has(> label:nth-of-type(2):last-of-type) > label { min-height: 56px; }
.new-onboarding .ob-question-flow .ob-choices--chips:is(:has(> label:nth-of-type(2):last-of-type), :has(> label:nth-of-type(3):last-of-type)) .ob-choice-text { align-items: center; }

/* Why we ask, after the answers: a quiet line that opens, not a box between question and answers. */
.new-onboarding .ob-question-flow .ob-why { margin: 16px 0 4px; border: 0; border-radius: 0; background: transparent; }
.new-onboarding .ob-question-flow .ob-why summary { padding: 8px 0; justify-content: flex-start; font-size: 13px; font-weight: 600; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-why summary::after { margin-left: 4px; }
.new-onboarding .ob-question-flow .ob-why p { padding: 0 0 8px; }

/* Sliders: a chunky track and a thumb with a pressed edge. Untouched, the track is empty and the thumb
   hollow, so a resting thumb never looks like an answer next to "—". */
.new-onboarding .ob-question-flow .ob-slider-value { color: var(--gs-text-primary); font-size: 44px; }
.new-onboarding .ob-question-flow :is(.ob-slider-input, .ob-severity-input) {
  height: 12px; border-radius: 999px; background: linear-gradient(to right, var(--dl-ink) var(--fill, 0%), var(--dl-line) var(--fill, 0%));
}
.new-onboarding .ob-question-flow .ob-slider input[type=range]::-webkit-slider-thumb,
.new-onboarding .ob-question-flow .ob-severity input[type=range]::-webkit-slider-thumb {
  width: 30px; height: 30px; background: var(--dl-card) !important; border: 3px solid var(--dl-ink) !important; box-shadow: 0 3px 0 var(--dl-ink) !important;
}
.new-onboarding .ob-question-flow .ob-slider input[type=range]::-moz-range-thumb,
.new-onboarding .ob-question-flow .ob-severity input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; background: var(--dl-card) !important; border: 3px solid var(--dl-ink) !important; box-shadow: 0 3px 0 var(--dl-ink) !important;
}
.new-onboarding .ob-question-flow .ob-slider:has(.ob-slider-unanswered:not([hidden])) .ob-slider-input { background: var(--dl-line); }
.new-onboarding .ob-question-flow .ob-slider:has(.ob-slider-unanswered:not([hidden])) input[type=range]::-webkit-slider-thumb { border-color: var(--dl-edge) !important; box-shadow: 0 3px 0 var(--dl-line) !important; }
.new-onboarding .ob-question-flow .ob-slider:has(.ob-slider-unanswered:not([hidden])) input[type=range]::-moz-range-thumb { border-color: var(--dl-edge) !important; box-shadow: 0 3px 0 var(--dl-line) !important; }

/* One answer: no radio dot, the card itself is the answer. Several answers: a rounded tick that pops in. */
.new-onboarding .ob-question-flow :is(.ob-choices:not(.ob-choices--multi), .ob-grid) > .ob-choice::before { display: none; }
.new-onboarding .ob-question-flow .ob-choices--multi .ob-choice::before {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--dl-line); background: var(--dl-card) no-repeat center / 14px;
  transition: background-color .15s, border-color .15s;
}
.new-onboarding .ob-question-flow .ob-choices--multi .ob-choice-input:checked + .ob-choice::before {
  border-width: 2px; border-color: var(--dl-ink); background-color: var(--dl-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.new-onboarding .ob-question-flow.ob-motion .ob-choices--multi .ob-choice-input:checked + .ob-choice::before { animation: dl-tick .25s var(--dl-spring); }
html.dark .new-onboarding .ob-question-flow .ob-choices--multi .ob-choice-input:checked + .ob-choice::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='%23191a17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Short answers sit side by side as chips. */
.new-onboarding .ob-question-flow .ob-choices--chips { flex-direction: row; flex-wrap: wrap; gap: 10px 8px; }
.new-onboarding .ob-question-flow .ob-choices--chips > .ob-choice { flex: 0 1 auto; min-height: 46px; padding: 10px 16px; border-radius: 14px; }
.new-onboarding .ob-question-flow .ob-choices--chips.ob-choices--multi > .ob-choice { padding-left: 12px; }

/* A grid of short answers: two tiles a row, the label at the bottom like V1's tiles. */
.new-onboarding .ob-question-flow .ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.new-onboarding .ob-question-flow .ob-grid > .ob-choice-grid { min-height: 72px; padding: 12px 14px; align-items: flex-end; justify-content: flex-start; text-align: left; }

/* A 0 to 10 scale as a row of keys (onboarding/inputs/slider_component, scale?). */
.new-onboarding .ob-question-flow .ob-scale { border: 0; margin: 6px 0 0; padding: 0; }
.new-onboarding .ob-question-flow .ob-scale-keys { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.new-onboarding .ob-question-flow .ob-scale-key {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0; border-radius: 11px;
  font: 700 15px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--gs-text-primary); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.new-onboarding .ob-question-flow .ob-scale-input:checked + .ob-scale-key { background: var(--dl-ink); color: var(--dl-on-ink); box-shadow: 0 var(--dl-press) 0 var(--dl-ink-edge); }
.new-onboarding .ob-question-flow .ob-scale-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; line-height: 1.35; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-scale-ends span:last-child { text-align: right; }
@media (max-width: 360px) {
  .new-onboarding .ob-question-flow .ob-scale-keys { gap: 3px; }
  .new-onboarding .ob-question-flow .ob-scale-key { font-size: 13.5px; border-radius: 9px; }
}

/* ---------- Continue: a key with a pressed edge, grey until she answers ---------- */
.new-onboarding .ob-question-flow .ob-continue {
  height: 54px; border-radius: 16px; background: var(--dl-ink); color: var(--dl-on-ink);
  font-weight: 700; letter-spacing: .01em; box-shadow: 0 4px 0 var(--dl-ink-edge);
  transition: transform .08s ease, box-shadow .08s ease, background-color .2s, color .2s;
}
.new-onboarding .ob-question-flow .ob-continue:hover { transform: none; }
.new-onboarding .ob-question-flow .ob-continue:active { transform: translateY(4px); box-shadow: 0 0 0 var(--dl-ink-edge); }
.new-onboarding .ob-question-flow .ob-form.is-waiting .ob-cta .ob-continue { background: var(--dl-line); color: var(--gs-text-muted); box-shadow: 0 4px 0 var(--dl-edge); }
.new-onboarding .ob-question-flow.ob-motion .ob-form.is-ready-now .ob-cta .ob-continue { animation: dl-ready .3s var(--dl-spring); }
.new-onboarding .ob-question-flow .ob-form > .ob-cta { border-top: 0; }

/* ---------- Bello's reply, where he asked (onboarding/steps/_ask_reply) ---------- */
.new-onboarding .ob-question-flow .ob-ask-reply { margin: 0; font: 700 19px/1.3 var(--font-display); letter-spacing: -.01em; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-ask-reply + .ob-ask-reply { margin-top: 6px; }
.new-onboarding .ob-question-flow.ob-motion .ob-ask--reply .ob-ask-bubble { animation: dl-pop .4s var(--dl-spring) backwards; }
.new-onboarding .ob-question-flow.ob-motion .ob-ask--reply .ob-ask-bello { animation: dl-hop .7s ease-in-out .15s, dl-bob 3.2s ease-in-out 1.6s infinite; }
/* On the first screen his reply is under his introduction: it reads as the headline, and the question steps back. */
.new-onboarding .ob-question-flow .ob-bello-reply { font: 700 20px/1.3 var(--font-display); letter-spacing: -.01em; }
.new-onboarding .ob-question-flow .ob-form:has(.ob-cta--next) .ob-body > :is(.ob-question, .ob-context, .ob-eyebrow) { opacity: .4; transition: opacity .3s ease; }
.new-onboarding .ob-question-flow.ob-motion .ob-bello-reply { animation: dl-rise .35s var(--dl-ease) backwards; }
/* Her answer stays chosen; the others step back, and nothing changes until she goes on. */
.new-onboarding .ob-question-flow .ob-form:has(.ob-cta--next) .ob-body > :not(.ob-ask, .ob-bello) { pointer-events: none; }
.new-onboarding .ob-question-flow .ob-form:has(.ob-cta--next) :is(.ob-choice-input:not(:checked) + .ob-choice, .ob-scale-input:not(:checked) + .ob-scale-key, .ob-choice-input:not(:checked) + .ob-bristol-type, .ob-why, .ob-context, .ob-choice-none) {
  opacity: .4; transition: opacity .3s ease;
}
.new-onboarding .ob-question-flow .ob-cta--next .ob-continue { text-decoration: none; }
.new-onboarding .ob-question-flow.ob-motion .ob-cta--next .ob-continue { animation: dl-ready .3s var(--dl-spring); }

/* ---------- the team's layer: the sheet below (onboarding/steps/_team_sheet, the map's _team_knows) ---------- */
.new-onboarding .ob-question-flow .ob-team-slot:empty { display: none; }
.new-onboarding .ob-question-flow .ob-tsheet { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.new-onboarding .ob-question-flow .ob-tsheet[hidden] { display: none; }
.new-onboarding .ob-question-flow .ob-tsheet-card {
  display: flex; flex-direction: column; max-height: 80%; min-height: 0; overflow: hidden;
  background: var(--dl-card); border-top: 2px solid var(--dl-line); border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 32px rgb(0 0 0 / 8%); animation: dl-sheet-up .34s var(--dl-ease) both;
}
.new-onboarding .ob-question-flow .ob-tsheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 8px; overflow-wrap: anywhere; }
.new-onboarding .ob-question-flow .ob-tsheet-footer { flex: none; padding: 6px 20px calc(22px + var(--ob-bottom-inset, env(safe-area-inset-bottom, 0px))); background: var(--dl-card); }
.new-onboarding .ob-question-flow .ob-tsheet-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.new-onboarding .ob-question-flow .ob-tsheet-avatar { flex: none; width: 46px; height: 46px; object-fit: contain; animation: dl-pop .4s var(--dl-spring) .12s backwards, dl-hop .7s ease-in-out .55s; }
.new-onboarding .ob-question-flow .ob-tsheet-title { flex: 1; margin: 0; font: 800 19px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-tsheet-heard { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; font-weight: 600; color: var(--gs-text-primary); animation: dl-rise .35s var(--dl-ease) .15s backwards; }
/* The action has its own space; the final line can scroll clear of it. */
.new-onboarding .ob-question-flow .ob-tsheet .ob-continue { margin-top: 0; }

/* The stack: one card per guide, in the order they stepped in; each point's first sentence in bold. */
.new-onboarding .ob-question-flow .ob-stack { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.new-onboarding .ob-question-flow .ob-stack-guide { padding: 10px 12px 12px; border: 2px solid var(--dl-line); border-radius: 16px; background: var(--dl-card); animation: dl-rise .35s var(--dl-ease) backwards; animation-delay: calc(.2s + var(--i, 0) * 70ms); }
.new-onboarding .ob-question-flow .ob-stack-guide:has(.is-new) { border-color: var(--dl-ink); box-shadow: 0 3px 0 var(--dl-ink); }
.new-onboarding .ob-question-flow .ob-stack-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.new-onboarding .ob-question-flow .ob-stack-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dl-ink); color: var(--dl-on-ink); }
.new-onboarding .ob-question-flow .ob-stack-name { font: 700 11px/1.3 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-stack-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.new-onboarding .ob-question-flow .ob-stack-point { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-stack-point strong { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.35; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-stack-new {
  display: inline-block; margin: 0 0 4px; padding: 1px 7px; border-radius: 999px; background: var(--dl-ink); color: var(--dl-on-ink);
  font: 700 10px/1.6 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
}
.new-onboarding .ob-question-flow.ob-motion .ob-stack-new { animation: dl-pop .4s var(--dl-spring) .5s backwards; }

/* What she has told them: one block per chapter, every answer whole, as chips. */
.new-onboarding .ob-question-flow .ob-knows-heading { margin: 16px 0 8px; font: 700 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-knows-heading:first-of-type { margin-top: 4px; }
.new-onboarding .ob-question-flow .ob-knows-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--dl-line); background: var(--dl-card);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gs-text-primary); cursor: pointer;
}
.new-onboarding .ob-question-flow .ob-told { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.new-onboarding .ob-question-flow .ob-told-name { margin: 0 0 6px; font: 700 14px/1.3 var(--font-body); color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-told-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.new-onboarding .ob-question-flow .ob-told-chips li { padding: 6px 10px; border-radius: 10px; background: var(--dl-soft); border: 1px solid var(--dl-line); font-size: 13px; line-height: 1.35; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-knows { z-index: 80; background: rgb(0 0 0 / 18%); animation: dl-fade .2s ease both; }
.new-onboarding .ob-question-flow .ob-map-chip--open { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; box-shadow: 0 2px 0 var(--dl-line); transition: transform .08s, box-shadow .08s; }
.new-onboarding .ob-question-flow .ob-map-chip--open:active { transform: translateY(2px); box-shadow: none; }

/* Recap: each chapter's first answers as whole chips (never clamped), and her team's stack above them. */
.new-onboarding .ob-question-flow .ob-recap-summary { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; overflow: visible; -webkit-line-clamp: unset; }
.new-onboarding .ob-question-flow .ob-recap-chip { padding: 3px 8px; border-radius: 8px; background: var(--dl-soft); border: 1px solid var(--dl-line); font-size: 12.5px; line-height: 1.35; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-recap-team { margin: 0 0 16px; }

/* Once her answer is accepted, an error from an earlier try no longer applies. */
.new-onboarding .ob-question-flow .ob-form:has(.ob-cta--next) .ob-question-error,
.new-onboarding .ob-question-flow:has(.ob-team-slot .ob-tsheet) .ob-question-error { display: none; }

/* While the team sheet is up, the answers stay where she left them but can't change. */
.new-onboarding .ob-question-flow:has(.ob-team-slot .ob-tsheet) .ob-form { pointer-events: none; }
.new-onboarding .ob-question-flow:has(.ob-team-slot .ob-tsheet) .ob-form .ob-cta { visibility: hidden; }

/* ---------- the chapter map, between chapters ---------- */
.new-onboarding .ob-question-flow .ob-map {
  position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; overflow: hidden;
  background: var(--gs-sand); animation: dl-fade .25s ease both;
}
.new-onboarding .ob-question-flow .ob-map.is-leaving { animation: dl-leave .22s ease forwards; pointer-events: none; }
.new-onboarding .ob-question-flow .ob-map-body { flex: 1; min-height: 0; overflow-y: auto; padding: calc(36px + env(safe-area-inset-top, 0px)) 24px 16px; text-align: center; }
.new-onboarding .ob-question-flow .ob-map-title { margin: 0 0 8px; font: 800 27px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--gs-text-primary); animation: dl-pop .45s var(--dl-spring) .1s backwards; }
.new-onboarding .ob-question-flow .ob-map-sub { margin: 0 auto; max-width: 30ch; font-size: 15px; line-height: 1.45; color: var(--gs-text-secondary); animation: dl-rise .4s var(--dl-ease) .25s backwards; }
.new-onboarding .ob-question-flow .ob-map-path { list-style: none; margin: 26px auto 18px; padding: 0 0 0 30px; width: 220px; display: flex; flex-direction: column; gap: 12px; }
.new-onboarding .ob-question-flow .ob-map-node { position: relative; display: flex; align-items: center; gap: 12px; transform: translateX(var(--x, 0px)); }
.new-onboarding .ob-question-flow .ob-map-node:nth-child(4n+2) { --x: 34px; }
.new-onboarding .ob-question-flow .ob-map-node:nth-child(4n+4) { --x: -34px; }
.new-onboarding .ob-question-flow .ob-map-dot {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 15px/1 var(--font-body); background: var(--dl-soft); color: var(--gs-text-muted); border: 2px solid var(--dl-line); box-shadow: 0 3px 0 var(--dl-line);
}
.new-onboarding .ob-question-flow .ob-map-label { min-width: 0; text-align: left; font: 600 13.5px/1.3 var(--font-body); color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-map-node[data-state=done] .ob-map-dot { background: var(--dl-ink); color: var(--dl-on-ink); border-color: var(--dl-ink); box-shadow: 0 3px 0 var(--dl-ink-edge); animation: dl-pop .4s var(--dl-spring) backwards; animation-delay: calc(.2s + var(--i, 0) * 70ms); }
.new-onboarding .ob-question-flow .ob-map-node[data-state=done] .ob-map-label { color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-map-node[data-just] .ob-map-dot { animation: dl-pop .55s var(--dl-spring) .75s backwards, dl-ring 1s ease-out 1.3s; }
.new-onboarding .ob-question-flow .ob-map-node[data-state=next] .ob-map-dot {
  width: 56px; height: 56px; background: var(--dl-card); color: var(--gs-text-primary); border: 3px solid var(--dl-ink); box-shadow: 0 4px 0 var(--dl-ink);
  font-size: 17px; animation: dl-ring 1.4s ease-out 1.6s 2;
}
.new-onboarding .ob-question-flow .ob-map-node[data-state=next] .ob-map-label { font-weight: 800; font-size: 15px; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-map-bello { position: absolute; right: calc(100% + 6px); top: 50%; width: 52px; height: 52px; margin-top: -30px; object-fit: contain; animation: dl-pop .45s var(--dl-spring) 1.1s backwards, dl-hop .7s ease-in-out 1.6s; }
.new-onboarding .ob-question-flow .ob-map-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; animation: dl-fade .4s ease 1.4s backwards; }
.new-onboarding .ob-question-flow .ob-map-chip { padding: 6px 12px; border-radius: 999px; background: var(--dl-card); border: 2px solid var(--dl-line); font: 600 12.5px/1.3 var(--font-body); color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-map-cta { flex: none; padding: 12px 24px calc(24px + var(--ob-bottom-inset, env(safe-area-inset-bottom, 0px))); }
.new-onboarding .ob-question-flow .ob-map-cta .ob-continue { animation: dl-rise .4s var(--dl-ease) 1.2s backwards; }
.new-onboarding .ob-question-flow .ob-confetti { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; }
.new-onboarding .ob-question-flow .ob-confetti i {
  position: absolute; top: 0; left: var(--l); width: 8px; height: 12px; border-radius: 2px; background: var(--c, var(--dl-ink));
  opacity: 0; animation: dl-fall var(--d, 1.6s) cubic-bezier(.3, .5, .6, 1) var(--w, .2s) forwards;
}

/* A tap finishes every animation (onboarding/motion_controller.js); Reduce Motion never starts them. */
.new-onboarding .ob-question-flow.ob-motion-done :is(.ob-map, .ob-map *, .ob-ask *, .ob-tsheet *) { animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  .new-onboarding .ob-question-flow :is(.ob-ask *, .ob-ask, .ob-tsheet, .ob-tsheet-card, .ob-tsheet-card *, .ob-bello-reply, .ob-map, .ob-map *, .ob-continue, .ob-choice, .ob-choice::before, .ob-scale-key) { animation: none !important; }
  .new-onboarding .ob-question-flow .ob-confetti { display: none; }
}


/* Health sync on the web: what the apps can bring in. */
.new-onboarding .ob-question-flow .ob-sync-card { margin: 18px 0 4px; padding: 16px 16px 14px; border-radius: 20px; background: var(--ob-surface, var(--gs-card)); border: 1px solid var(--ob-surface-line, var(--dl-line)); animation: dl-rise .35s var(--dl-ease) .15s backwards; }
.new-onboarding .ob-question-flow .ob-sync-card-title { margin: 0 0 10px; font: 700 11px/1.4 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-sync-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.new-onboarding .ob-question-flow .ob-sync-row { display: flex; align-items: center; gap: 12px; font: 600 16px/1.3 var(--font-body); color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-sync-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dl-card); border: 1px solid var(--ob-surface-line, var(--dl-line)); }
.new-onboarding .ob-question-flow .ob-sync-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--gs-text-secondary); }


/* How her read gets sharper, on its own screen: today, every week and week 6 in one line, all in view. */
.new-onboarding .ob-question-flow .ob-sharper { list-style: none; margin: 18px 0 8px; padding: 0; display: flex; flex-direction: column; }
.new-onboarding .ob-question-flow .ob-sharper-stage { position: relative; display: flex; gap: 14px; padding: 0 0 22px; animation: dl-rise .35s var(--dl-ease) backwards; animation-delay: calc(.1s + var(--i, 0) * 110ms); }
.new-onboarding .ob-question-flow .ob-sharper-stage:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--dl-line); }
.new-onboarding .ob-question-flow .ob-sharper-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dl-card); color: var(--gs-text-primary); border: 2px solid var(--dl-line); box-shadow: 0 3px 0 var(--dl-line); }
.new-onboarding .ob-question-flow .ob-sharper-stage.is-now .ob-sharper-dot { background: var(--dl-ink); color: var(--dl-on-ink); border-color: var(--dl-ink); box-shadow: 0 3px 0 var(--dl-ink-edge); }
.new-onboarding .ob-question-flow .ob-sharper-body { flex: 1; min-width: 0; padding-top: 2px; }
.new-onboarding .ob-question-flow .ob-sharper-when { margin: 0; font: 700 11px/1.4 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-sharper-what { margin: 2px 0 0; font: 650 17px/1.35 var(--font-display); letter-spacing: -.01em; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-sharper-label { margin: 12px 0 6px; font-size: 13px; line-height: 1.4; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-sharper-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.new-onboarding .ob-question-flow .ob-sharper-chips li { padding: 6px 10px; border-radius: 10px; background: var(--ob-surface, var(--dl-soft)); border: 1px solid var(--ob-surface-line, var(--dl-line)); font-size: 13.5px; line-height: 1.35; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-sharper-checks { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: 16px; background: var(--ob-surface, var(--dl-soft)); border: 1px solid var(--ob-surface-line, var(--dl-line)); }
.new-onboarding .ob-question-flow .ob-sharper-checks li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.45; color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-sharper-checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--dl-ink); }

/* The height and weight wheels without fills: the units switch is a line with the chosen unit in ink, and the
   picked row sits between two lines. */
html:not(.dark) .new-onboarding .ob-question-flow .ob-picker-units { border: 1px solid var(--ob-surface-line); }
html:not(.dark) .new-onboarding .ob-question-flow .ob-picker-units button[aria-pressed=true] { background: var(--dl-ink); color: var(--dl-on-ink); box-shadow: none; }
html:not(.dark) .new-onboarding .ob-question-flow .ob-wheel-selection { border: 2px solid var(--dl-ink); }

/* Who has stepped in, behind the map's guides chip: one row per guide, a line between them. The rest of her
   team follows, quieter. */
.new-onboarding .ob-question-flow .ob-guide-list { list-style: none; margin: 0; padding: 0; }
.new-onboarding .ob-question-flow .ob-guide-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--dl-line); animation: dl-rise .3s var(--dl-ease) backwards; animation-delay: calc(.05s + var(--i, 0) * 50ms); }
.new-onboarding .ob-question-flow .ob-guide-list:last-of-type .ob-guide-row:last-child { border-bottom: 0; }
.new-onboarding .ob-question-flow .ob-guide-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dl-ink); color: var(--dl-on-ink); }
.new-onboarding .ob-question-flow .ob-guide-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.new-onboarding .ob-question-flow .ob-guide-name { font: 700 15px/1.3 var(--font-body); color: var(--gs-text-primary); }
.new-onboarding .ob-question-flow .ob-guide-role { font-size: 13.5px; line-height: 1.45; color: var(--gs-text-secondary); }
.new-onboarding .ob-question-flow .ob-guide-list[data-section=also] .ob-guide-icon { background: var(--dl-card); color: var(--gs-text-primary); border: 1.5px solid var(--dl-line); }
.new-onboarding .ob-question-flow .ob-guides .ob-continue { margin-top: 14px; }
