/* First run, over the real dashboard (templates/drobo/app/onboarding_overlay.html, js/drobo-ui-onboarding.js).
   The dashboard stays in view behind a light blur and dim; one card in front asks one thing per step.
   Magic UI, each piece for a reason:
     glow + dot pattern   the top of the card, in the dashboard header's own blue/violet: the same place, one layer up
     animated gradient    one phrase per step at most (the seller's name, "cloud store"), as the dashboard greets them
     magic card           the goal tiles: a spotlight and edge light in each tile's own colour follow the pointer
     ripple               behind the 1-on-1 mark: someone is going to reach out
     border beam          round the first store's offer: the one thing on the page waiting for them
   Nothing slides or bounces: the card and its steps only fade (owner). One control height (the kit's --ui-h-field) for every field
   and button; one width for the card's column. Light and dark follow the tokens in drobo-ui.css. */

.ob {
  --ob-pad: 2rem;               /* the card's sides: every row lines up on it */
  --ob-top: 12vh;               /* js: where the tallest step would sit centred; every step hangs from there */
  width: min(32rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - var(--ob-top) - 1rem);
  margin: var(--ob-top) auto auto; padding: 0; overflow: visible; color: var(--ui-fg); background: transparent; border: 0;
}
.ob[open] { display: block; }
/* The dashboard behind: blurred back a little and dimmed, still recognisable. */
.ob::backdrop { background: rgba(15, 23, 42, .2); -webkit-backdrop-filter: blur(5px) saturate(115%); backdrop-filter: blur(5px) saturate(115%); }
html[data-theme="dark"] .ob::backdrop { background: rgba(0, 0, 0, .34); }
/* The page stays still behind it (drobo.css keeps the scrollbar's room, so nothing shifts). */
html:has(.ob[open]) { overflow: hidden; }

.ob-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; box-sizing: border-box;
  max-height: calc(100dvh - var(--ob-top) - 1rem); overflow: auto; overscroll-behavior: contain; padding: 1.25rem var(--ob-pad) 1.75rem;
  background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 18px;
  box-shadow: 0 40px 100px -28px rgba(15, 23, 42, .45), 0 12px 32px -18px rgba(37, 99, 235, .25);
}
html[data-theme="dark"] .ob-card { background: #111114; border-color: #26262c; box-shadow: 0 40px 110px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02), 0 18px 60px -30px rgba(59, 130, 246, .35); }
.ob h2:focus { outline: none; }

/* Glow and dots across the top of the card (the dashboard header's colours). */
.ob-glow {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 15rem; pointer-events: none; border-radius: 18px 18px 0 0; overflow: hidden;
  background:
    radial-gradient(55% 90% at 38% -10%, color-mix(in srgb, var(--ui-primary) 17%, transparent), transparent 70%),
    radial-gradient(45% 80% at 72% -10%, color-mix(in srgb, var(--ui-violet) 13%, transparent), transparent 70%);
}
.ob-glow .ui-dots { -webkit-mask-image: radial-gradient(ellipse 60% 85% at 50% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 60% 85% at 50% 0%, #000 15%, transparent 72%); }

/* Top row: back (step 2 only) · progress · a matching empty slot, so the progress sits dead centre. */
.ob-top { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; align-items: center; height: 2.25rem; margin: 0 -.5rem 1.25rem; }
.ob-back { width: 2.25rem; height: 2.25rem; visibility: hidden; }
.ob[data-step="goal"] .ob-back, .ob[data-step="connected"] .ob-back, .ob[data-step="plan"] .ob-back, .ob[data-step="call"] .ob-back { visibility: visible; }
.ob-progress { display: flex; justify-content: center; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.ob-progress li { width: 1.75rem; height: .25rem; background: color-mix(in srgb, var(--ui-fg) 12%, transparent); border-radius: 999px; transition: background .3s ease; }
.ob-progress li.is-done { background: var(--ui-primary); }
.ob-progress li.is-now { background: linear-gradient(90deg, var(--ui-primary), var(--ui-violet)); box-shadow: 0 0 10px -1px color-mix(in srgb, var(--ui-primary) 60%, transparent); }

/* One step at a time; js fades the one arriving in and eases the card's height to it. */
.ob-step { display: flex; flex-direction: column; min-width: 0; }

.ob-head { display: grid; justify-items: center; gap: .45rem; margin-bottom: 1.75rem; text-align: center; }
.ob-head h2 { margin: 0; max-width: 22ch; font-size: 1.625rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; color: var(--ui-fg); text-wrap: balance; }
.ob-head p { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--ui-muted); }
.ob-accent { color: var(--tone, var(--ui-primary)); }
.ob-step[data-ob-step="call"] { --tone: #16a34a; }
html[data-theme="dark"] .ob-step[data-ob-step="call"] { --tone: #4ade80; }

/* The mark over each question: the brand bolt, the 1-on-1 (with a ripple), the first store. One size for all three. */
.ob-mark {
  position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: .6rem; box-sizing: border-box;
  font-size: 1.6rem; border-radius: 16px; background: var(--ui-card); border: 1px solid var(--ui-border);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ui-primary) 55%, transparent), var(--ui-shadow-sm);
}
.ob-mark img { grid-area: 1 / 1; width: auto; height: 1.85rem; }
.ob-mark--call { color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, var(--ui-card)); border-color: color-mix(in srgb, var(--tone) 30%, var(--ui-border));
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--tone) 60%, transparent); }
.ob-mark--call > .ti { position: relative; z-index: 1; }
.ob-ripple { position: absolute; inset: -1px; border: 1.5px solid var(--tone); border-radius: inherit; opacity: 0; pointer-events: none; animation: ob-ripple 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.ob-ripple + .ob-ripple { animation-delay: 1.4s; }
@keyframes ob-ripple { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
.ob-mark--deploy { color: var(--ui-primary); background: linear-gradient(145deg, color-mix(in srgb, var(--ui-primary) 14%, var(--ui-card)), color-mix(in srgb, var(--ui-violet) 10%, var(--ui-card)));
  border-color: color-mix(in srgb, var(--ui-primary) 25%, var(--ui-border)); }
.ob-mark--deploy svg { width: 2.1rem; height: 2.1rem; overflow: visible; }
.ob-mark__wash { fill: color-mix(in srgb, var(--ui-primary) 16%, transparent); stroke: none; }
.ob-mark__bolt { fill: var(--ui-violet); stroke: var(--ui-violet); }

/* 1 · Goal: four big rows, each in its own colour. A row reads as a way forward (chevron) because a tap moves on;
   the one already chosen shows its tick. */
.ob-goals { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 4.25rem; gap: .625rem; }
.ob-goal {
  position: relative; display: flex; align-items: center; gap: .9rem; min-height: 0; padding: 0 1.1rem 0 .9rem; box-sizing: border-box;
  background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.ob-goal input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ob-goal__icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; font-size: 1.3rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); border-radius: 11px; }
.ob-goal__label { flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ui-fg); }
.ob-goal__go, .ob-goal__check { flex: 0 0 auto; width: 1.4rem; font-size: 1.25rem; text-align: center; transition: color .18s ease, opacity .18s ease; }
.ob-goal__go { color: var(--ui-faint); }
.ob-goal__check { display: none; color: var(--tone); font-size: 1.4rem; }
.ob-goal:hover { border-color: color-mix(in srgb, var(--tone) 40%, var(--ui-border)); }
.ob-goal:hover .ob-goal__go { color: var(--tone); }
.ob-goal:has(input:checked) {
  background: color-mix(in srgb, var(--tone) 7%, var(--ui-card)); border-color: var(--tone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 14%, transparent), 0 14px 32px -16px color-mix(in srgb, var(--tone) 60%, transparent);
}
.ob-goal:has(input:checked) .ob-goal__go { display: none; }
.ob-goal:has(input:checked) .ob-goal__check { display: block; }
.ob-goal:has(input:focus-visible) { outline: 1.5px solid var(--ui-focus); outline-offset: 2px; }
/* The magic card's spotlight and edge light, in the row's colour. */
.ob-goal.ui-magic::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone) 11%, transparent), transparent 60%); }
.ob-goal.ui-magic::after { background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone) 75%, transparent), transparent 60%); }

/* 2 · Free 1-on-1: text or call, the number, then the button. */
.ob-fields { display: grid; gap: .75rem; }
.ob-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.ob-seg label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; height: var(--ui-h-field); box-sizing: border-box;
  font-size: .875rem; font-weight: 600; color: var(--ui-fg-2); background: var(--ui-card); border: 1px solid color-mix(in srgb, var(--ui-fg) 16%, transparent);
  border-radius: var(--ui-radius-control); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.ob-seg label:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--ui-border)); }
.ob-seg input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ob-seg .ti { font-size: 1.15rem; color: var(--ui-muted); transition: color .18s ease; }
.ob-seg label:has(input:checked) { color: var(--ui-fg); background: color-mix(in srgb, var(--tone) 8%, var(--ui-card)); border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 13%, transparent); }
.ob-seg label:has(input:checked) .ti { color: var(--tone); }
.ob-seg label:has(input:focus-visible) { outline: 1.5px solid var(--ui-focus); outline-offset: 2px; }

body.ui-app .ob-input { font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; }   /* the kit's field; 16px type so phones don't zoom into it */
body.ui-app .ob-input[aria-invalid="true"] { border-color: color-mix(in srgb, var(--ui-bad) 70%, transparent) !important; }
/* The country picker (intl-tel-input), in the app's colours. */
.ob-phone .iti { display: block; width: 100%; }
.ob .iti {
  --iti-hover-color: var(--ui-hover); --iti-border-color: var(--ui-border); --iti-dialcode-color: var(--ui-muted);
  --iti-dropdown-bg: var(--ui-card); --iti-search-icon-color: var(--ui-muted); --iti-arrow-color: var(--ui-muted);
  --iti-spacer-horizontal: 12px; --iti-arrow-padding: 8px;
}
.ob-phone .iti__country-container { padding: 1px; }
.ob-phone .iti__selected-country { border-right: 1px solid var(--ui-border); border-radius: calc(var(--ui-radius-control) - 1px) 0 0 calc(var(--ui-radius-control) - 1px); transition: background-color .15s ease; }
.ob-phone .iti__selected-country:focus-visible { outline: 1.5px solid var(--ui-focus); outline-offset: -2px; }
.ob-phone .iti__selected-country:hover, .ob-phone .iti__selected-country[aria-expanded="true"] { background-color: var(--ui-hover); }
.ob-phone .iti .iti__selected-country-primary, .ob-phone .iti .iti__selected-country-primary:hover { padding-right: 0; background: none !important; }
.ob-phone .iti .iti__selected-dial-code { margin-left: 8px; padding-right: 12px; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ui-fg-2); }
.ob .iti__flag { zoom: 1.25; border-radius: 2px; }
.ob .iti__flag:not(.iti__globe) { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.1/build/img/flags@2x.webp"); }
.ob .iti--container {
  --iti-hover-color: var(--ui-hover); --iti-border-color: var(--ui-border); --iti-dialcode-color: var(--ui-muted);
  --iti-dropdown-bg: var(--ui-card); --iti-search-icon-color: var(--ui-muted); --iti-spacer-horizontal: 12px;
  color: var(--ui-fg); font-size: .875rem;
}
.ob .iti__dropdown-content { overflow: hidden; background: var(--ui-card); border: 1px solid var(--ui-border) !important; border-radius: 12px; box-shadow: var(--ui-shadow-lg) !important; }
.ob .iti--inline-dropdown .iti__dropdown-content { margin-top: 6px; }
body.ui-app .ob .iti__search-input, body.ui-app .ob .iti__search-input:focus {
  height: var(--ui-h); padding-left: 2.25rem; font: inherit; font-size: .875rem; color: var(--ui-fg); background: transparent; border: 0; border-bottom: 1px solid var(--ui-border); border-radius: 0; outline: none; box-shadow: none;
}
.ob .iti__search-input::placeholder { color: var(--ui-muted); }
.ob .iti__search-icon { left: 12px; }
.ob .iti__country-list { max-height: 14rem; scrollbar-width: thin; }
.ob .iti__country { padding: .55rem .75rem; }
.ob .iti__country.iti__highlight { background: var(--ui-primary-soft); }
.ob .iti__no-results { padding: 1.5rem 0; color: var(--ui-muted); }
.ob .iti--fullscreen-popup.iti--container { padding: 1rem; background: rgba(9, 9, 11, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Buttons: the main one, then the quiet way past it. Same height, same width, same edges. */
.ob-actions { display: grid; gap: .5rem; padding-top: 1.5rem; }
body.ui-app .ob-btn { width: 100%; height: var(--ui-h-field); font-size: .875rem; font-weight: 600; border-radius: var(--ui-radius-control); }   /* as tall as the fields (a form's buttons) */
/* "Yes, text me · Book my free 1-on-1" is long: on a narrow phone it takes a second line instead of spilling out. */
body.ui-app .ob-btn[data-ob-book] { height: auto; min-height: var(--ui-h-field); padding-block: .55rem; line-height: 1.25; white-space: normal; text-align: center; }
body.ui-app .ob-btn [data-ob-book-label] { text-wrap: balance; }
body.ui-app .ob-btn .ti { font-size: 1.05rem; }
body.ui-app .ob-btn--quiet { font-weight: 500; color: var(--ui-muted); }
body.ui-app .ob-btn--quiet:hover { color: var(--ui-fg); }
.ob-btn[aria-busy="true"] { cursor: progress; }
.ob-fine { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--ui-faint); text-align: center; }
.ob-fine[hidden] { display: none; }
/* "Text me": the text-message opt-in, the carrier's own words in full (drobo/includes/sms_consent_label.html), never
   ticked in advance. A quiet box under the number; it takes the step's green when ticked, red when booking without it. */
.ob-sms {
  display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .85rem; box-sizing: border-box;
  font-size: .75rem; line-height: 1.5; color: var(--ui-muted); text-align: left; text-wrap: pretty;
  background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-control); cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.ob-sms[hidden] { display: none; }
/* The kit's own checkbox (.ui-check, as on Listings; 2026-11-23 owner: "start using our design properly", no browser-default
   controls), in the step's green, never ticked in advance. */
.ob .ui-check { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin-top: .1rem; cursor: pointer; }
body.ui-app .ob .ui-check input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ob .ui-check i { width: 100%; height: 100%; box-sizing: border-box; background: var(--ui-card); border: 1.5px solid color-mix(in srgb, var(--ui-fg) 28%, transparent); border-radius: 5px;
  transition: background .15s, border-color .15s, box-shadow .15s; }
.ob .ui-check i::after { content: ""; position: absolute; left: 50%; top: 46%; width: .28rem; height: .52rem; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform .15s var(--ui-ease); }
.ob .ui-check:hover input:not(:checked) + i { border-color: color-mix(in srgb, var(--ui-fg) 48%, transparent); }
.ob .ui-check input:checked + i { background: var(--tone, var(--ui-primary)); border-color: var(--tone, var(--ui-primary)); }
.ob .ui-check input:checked + i::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.ob .ui-check input:focus-visible + i { border-color: var(--ui-focus); box-shadow: 0 0 0 3px var(--ui-ring); }
.ob .ui-check input[aria-invalid="true"] + i { border-color: color-mix(in srgb, var(--ui-bad) 70%, transparent); }
.ob-sms:hover { border-color: color-mix(in srgb, var(--tone) 35%, var(--ui-border)); }
.ob-sms:has(input:checked) { color: var(--ui-fg-2); background: color-mix(in srgb, var(--tone) 6%, var(--ui-card)); border-color: color-mix(in srgb, var(--tone) 45%, var(--ui-border)); }
.ob-sms:has(input[aria-invalid="true"]) { border-color: color-mix(in srgb, var(--ui-bad) 70%, transparent); }
.ob-sms:has(input:focus-visible) { outline: 1.5px solid var(--ui-focus); outline-offset: 2px; }
body.ui-app .ob-sms a { color: var(--ui-fg-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
body.ui-app .ob-sms a:hover { color: var(--ui-fg); text-decoration-color: currentColor; }

/* "Text me" while codes are on: the code we texted, under the number (js/drobo-ui-onboarding.js). */
.ob-code { display: grid; gap: .45rem; }
.ob-code[hidden] { display: none; }
.ob-code__label { font-size: .8125rem; color: var(--ui-muted); text-align: left; }
.ob-code__label b { font-weight: 600; color: var(--ui-fg-2); font-variant-numeric: tabular-nums; }
body.ui-app .ob-code__input { letter-spacing: .3em; text-align: center; }
body.ui-app .ob-link { padding: 0; font: inherit; color: var(--ui-fg-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; }
body.ui-app .ob-link:hover { color: var(--ui-fg); text-decoration-color: currentColor; }
body.ui-app .ob-link:disabled { cursor: progress; opacity: .6; }

/* 3 · The first store: the price, then what happens next, in a card with a border beam. */
.ob-offer {
  position: relative; display: grid; gap: .35rem; padding: 1.15rem 1.25rem 1.2rem; box-sizing: border-box;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ui-primary) 5%, var(--ui-card)), var(--ui-card) 70%);
  border: 1px solid color-mix(in srgb, var(--ui-primary) 18%, var(--ui-border)); border-radius: 14px;
}
.ob-offer__price { display: flex; align-items: baseline; gap: .55rem; min-width: 0; }
.ob-offer__price strong { font-size: 2.5rem; font-weight: 750; line-height: 1; letter-spacing: -.045em; color: var(--ui-fg); font-variant-numeric: tabular-nums; }
.ob-offer__price > span { font-size: .9375rem; font-weight: 550; color: var(--ui-fg-2); }
.ob-offer__terms { margin: 0; font-size: .8125rem; color: var(--ui-muted); }
.ob-path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px dashed var(--ui-border); }
.ob-path::before {  /* the line through the four steps */
  content: ""; position: absolute; top: calc(1rem + 1rem - .5px); left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b, #22c55e); opacity: .45;
}
.ob-path li { position: relative; display: grid; justify-items: center; gap: .4rem; min-width: 0; font-size: .75rem; font-weight: 550; color: var(--ui-muted); text-align: center; white-space: nowrap; }
.ob-path__icon { display: grid; place-items: center; width: 2rem; height: 2rem; font-size: 1rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, var(--ui-card)); border-radius: 9px; }

/* ── Arriving and leaving: fades only (nothing moves). ─────────────────────── */
.ob[open]::backdrop { animation: ob-dim .7s ease both; }
.ob[open] .ob-card { animation: ob-in .5s var(--ui-ease) .12s both; }
@keyframes ob-dim { from { background: transparent; -webkit-backdrop-filter: blur(0) saturate(100%); backdrop-filter: blur(0) saturate(100%); } }
@keyframes ob-in { from { opacity: 0; filter: blur(8px); } }
.ob.is-leaving::backdrop { animation: ob-undim .26s ease both; }
.ob.is-leaving .ob-card { animation: ob-out .2s ease both; }
@keyframes ob-undim { to { background: transparent; -webkit-backdrop-filter: blur(0) saturate(100%); backdrop-filter: blur(0) saturate(100%); } }
@keyframes ob-out { to { opacity: 0; } }
/* Handing over to the New store pop-up: the card goes, the page stays blurred under the pop-up's own backdrop. */
.ob.is-handoff .ob-card { animation: ob-out .18s ease both; }
.ob.is-handoff::backdrop { animation: ob-fade-out .32s ease both; }
@keyframes ob-fade-out { to { opacity: 0; } }

/* ── Phones ────────────────────────────────────────────────────────────── */
/* 3 · The free course: lesson 1's poster (a way straight in), what it covers, and the Discord one tap away. */
.ob-step[data-ob-step="course"] { --tone: #7c3aed; }
html[data-theme="dark"] .ob-step[data-ob-step="course"] { --tone: #a78bfa; }
.ob-mark--course { color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, var(--ui-card)); border-color: color-mix(in srgb, var(--tone) 30%, var(--ui-border));
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--tone) 60%, transparent); }
.ob-course {
  position: relative; display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem .6rem .6rem; color: inherit; text-decoration: none;
  background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px; transition: border-color .18s ease;
}
.ob-course:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--ui-border)); }
.ob-course__shot { position: relative; flex: 0 0 auto; width: 8.5rem; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 9px; }
.ob-course__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ob-course__play { position: absolute; inset: 0; display: grid; place-items: center; }
.ob-course__play .ti { display: grid; place-items: center; width: 2rem; height: 2rem; font-size: .95rem; color: #fff; background: rgba(15, 23, 42, .72); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); transition: transform .18s ease; }
.ob-course:hover .ob-course__play .ti { transform: scale(1.08); }
.ob-course__shot time { position: absolute; right: .3rem; bottom: .3rem; padding: 0 .3rem; font-size: .6875rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .7); border-radius: 4px; font-variant-numeric: tabular-nums; }
.ob-course__text { display: grid; gap: .15rem; min-width: 0; text-align: left; }
.ob-course__text small { font-size: .75rem; font-weight: 600; color: var(--tone); }
.ob-course__text b { font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ui-fg); }
.ob-course__covers { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--ui-muted); }
.ob-course__covers li { display: inline-flex; align-items: center; gap: .3rem; }
.ob-course__covers .ti { font-size: .9rem; color: var(--ui-ok); }
.ob-discord {
  display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .7rem .9rem .7rem .7rem; color: inherit; text-decoration: none;
  background: color-mix(in srgb, #5865f2 7%, var(--ui-card)); border: 1px solid color-mix(in srgb, #5865f2 28%, var(--ui-border)); border-radius: 14px;
  transition: border-color .18s ease, background-color .18s ease;
}
.ob-discord:hover { border-color: #5865f2; }
.ob-discord__icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; color: #fff; background: #5865f2; border-radius: 11px; }
.ob-discord__text { display: grid; flex: 1 1 auto; gap: .1rem; min-width: 0; text-align: left; }
.ob-discord__text b { font-size: .9375rem; font-weight: 600; color: var(--ui-fg); }
.ob-discord__text small { font-size: .8125rem; color: var(--ui-muted); }
.ob-discord__go { display: inline-flex; align-items: center; gap: .25rem; flex: 0 0 auto; font-size: .8125rem; font-weight: 600; color: #5865f2; }
html[data-theme="dark"] .ob-discord__go { color: #8b93ff; }
.ob-discord.is-joined .ob-discord__go { color: var(--ui-ok); }

@media (max-width: 640px) {
  .ob { --ob-pad: 1.25rem; width: calc(100vw - 2rem); }
  .ob-card { padding-top: 1rem; padding-bottom: 1.25rem; border-radius: 16px; }
  .ob-top { margin-bottom: 1rem; }
  .ob-head { margin-bottom: 1.35rem; }
  .ob-head h2 { font-size: 1.375rem; }
  .ob-head p { font-size: .875rem; }
  .ob-mark { width: 3rem; height: 3rem; margin-bottom: .4rem; font-size: 1.4rem; border-radius: 14px; }
  .ob-mark img { height: 1.6rem; }
  .ob-mark--deploy svg { width: 1.85rem; height: 1.85rem; }
  .ob-goals { grid-auto-rows: 4rem; gap: .5rem; }
  .ob-goal { gap: .8rem; padding: 0 .95rem 0 .8rem; }
  .ob-goal__icon { width: 2.25rem; height: 2.25rem; font-size: 1.15rem; }
  .ob-goal__label { font-size: .9375rem; }
  .ob-offer { padding: 1rem; }
  .ob-course__shot { width: 6.5rem; }
  .ob-offer__price strong { font-size: 2.125rem; }
  .ob-path li { font-size: .6875rem; }
  .ob-offer__terms { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ob[open]::backdrop, .ob.is-leaving::backdrop, .ob.is-handoff::backdrop { animation: none; }
  .ob .ob-card, .ob .ob-step, .ob-ripple, .ob .ui-beam::after { animation: none !important; transition: none !important; }
  .ob-ripple { display: none; }
}
/* The Community row (Jake 11-17: our own Community in place of the Discord) */
.ob-community .ob-discord__icon { font-size: 1.2rem; background: var(--ui-primary); }

/* ── 2026-11-23, the onboarding that sells (templates/drobo/app/onboarding_overlay.html) ──────────────────────────────
   Text-first everywhere (owner 10-22: no icon tiles beside a title or a choice): each choice is its words, with the
   way forward (chevron) or the tick on the right. One question per screen, then their plan, the 1-on-1, the offer. */
.ob-goals { grid-auto-rows: auto; }
.ob-goal { min-height: 4.25rem; padding: .8rem 1.1rem; }
.ob-goal[hidden] { display: none; }
.ob-goal { --tone: var(--ui-primary); }
.ob-goal__text { display: grid; flex: 1 1 auto; gap: .15rem; min-width: 0; }
.ob-goal__note { font-size: .8125rem; line-height: 1.35; color: var(--ui-muted); }
.ob-head [hidden] { display: none; }

/* 3 · Their plan: three numbered steps, the number in a quiet ring (no icons), the words doing the work. */
.ob-plan { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: ob-plan; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-card); }
.ob-plan li { position: relative; display: grid; gap: .2rem; padding: .95rem 1.1rem .95rem 3.35rem; counter-increment: ob-plan; }
.ob-plan li + li { border-top: 1px solid var(--ui-border); }
.ob-plan li::before {
  content: counter(ob-plan); position: absolute; left: 1.05rem; top: .95rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  font-size: .75rem; font-weight: 700; color: var(--ui-primary); border: 1.5px solid color-mix(in srgb, var(--ui-primary) 45%, var(--ui-border)); border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
.ob-plan b { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; color: var(--ui-fg); }
.ob-plan span { font-size: .8125rem; line-height: 1.45; color: var(--ui-muted); text-wrap: pretty; }
.ob-plan span[hidden] { display: none; }
/* The ticks come in once, one after another, when the plan first shows (never again: js shows the step once). */
.ob[data-step="plan"] .ob-plan li { animation: ob-row .42s var(--ui-ease) both; }
.ob[data-step="plan"] .ob-plan li:nth-child(2) { animation-delay: .08s; }
.ob[data-step="plan"] .ob-plan li:nth-child(3) { animation-delay: .16s; }
@keyframes ob-row { from { opacity: 0; } }
.ob.ob-plan-seen .ob-plan li { animation: none; }
.ob-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; margin: 1rem 0 0; font-size: .8125rem; color: var(--ui-muted); }
.ob-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.ob-proof span::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--ui-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-ok) 18%, transparent); }

/* 5 · The offer: one card, its price, one terms line; members' real results under it; the other way in, one line. */
.ob-offer { background: linear-gradient(180deg, color-mix(in srgb, var(--ui-primary) 6%, var(--ui-card)), var(--ui-card) 75%); }
.ob-offer--free .ob-offer__price strong { background: linear-gradient(90deg, var(--ui-primary), var(--ui-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-offer .ui-guarantee { margin: .55rem 0 0; }
.ob-results { margin-top: .9rem; }
.ob-results ul { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--ui-border); border-radius: 12px; overflow: hidden; }
.ob-results li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; font-size: .875rem; }
.ob-results li + li { border-top: 1px solid var(--ui-border); }
.ob-results__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; color: var(--ui-fg-2); }
.ob-results__num { flex: 0 0 auto; font-weight: 650; color: var(--ui-fg); font-variant-numeric: tabular-nums; }
.ob-results p { margin: .45rem .1rem 0; font-size: .75rem; line-height: 1.45; color: var(--ui-faint); text-wrap: pretty; }
.ob-also { margin: 1rem 0 0; padding-top: 1rem; font-size: .8125rem; line-height: 1.5; color: var(--ui-muted); text-align: center; border-top: 1px solid var(--ui-border); text-wrap: pretty; }
body.ui-app .ob-also a { font-weight: 600; color: var(--ui-primary); text-decoration: none; white-space: nowrap; }
body.ui-app .ob-also a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ob-step[data-ob-step="offer"] .ob-course { margin-bottom: 0; }

@media (max-width: 640px) {
  .ob-goal { min-height: 3.75rem; padding: .7rem .95rem; }
  .ob-plan li { padding: .8rem .9rem .8rem 3rem; }
  .ob-plan li::before { left: .85rem; top: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ob[data-step="plan"] .ob-plan li { animation: none; }
}

/* Cloud first (Jake 11-23 "we do wanna primarily sell cloud", "or software", "but extension is the trap"): one main
   button, then the other ways in as quiet links, one per line (never squeezed side by side on a phone), the free one last. */
.ob-note { margin: .8rem 0 0; font-size: .8125rem; line-height: 1.45; color: var(--ui-muted); text-align: center; text-wrap: pretty; }
.ob-note [hidden] { display: none; }
.ob-links { display: grid; justify-items: center; gap: .5rem; margin: .95rem 0 0; font-size: .8125rem; line-height: 1.45; color: var(--ui-muted); text-align: center; }
body.ui-app .ob-links a { font-weight: 600; color: var(--ui-fg-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
body.ui-app .ob-links a:hover { color: var(--ui-fg); text-decoration-color: currentColor; }
.ob-links__free { width: 100%; margin-top: .35rem; padding-top: .85rem; border-top: 1px solid var(--ui-border); }
.ob-links:empty { display: none; }
/* Phones: the offer step (card, real results, the button, the quiet links) fits a 844px-tall phone with less scrolling */
@media (max-width: 640px) {
  .ob-step[data-ob-step="offer"] .ob-head { margin-bottom: 1.1rem; }
  .ob-step[data-ob-step="offer"] .ob-head p { font-size: .8125rem; }
  .ob-offer { gap: .25rem; padding: .85rem .95rem .9rem; }
  .ob .ui-guarantee { font-size: .75rem; }
  .ob-results { margin-top: .7rem; }
  .ob-results li { padding: .45rem .8rem; font-size: .8125rem; }
  .ob-results p { font-size: .6875rem; }
  .ob-step[data-ob-step="offer"] .ob-actions { padding-top: 1rem; }
  .ob-links { gap: .4rem; margin-top: .75rem; }
  .ob-links__free { padding-top: .7rem; }
}
/* Desktop and tablet (owner 11-23 on the shots: "feels off centered"): every step sits in the middle of the window. The
   card is the dialog's own content (height: fit-content, margin: auto), so while js eases the card's height between
   steps the dialog re-centres every frame: it grows and shrinks around the middle, never jumps. Phones keep the top
   placement (--ob-top, "for mobile that's decent placement"). */
@media (min-width: 768px) and (min-height: 600px) {
  .ob { height: fit-content; margin: auto; max-height: calc(100dvh - 2rem); }
  .ob-card { max-height: calc(100dvh - 2rem); }
}

/* The free extension (owner 11-23 "we need a way to point people to the free extension as well"): a quiet outline button
   under the Cloud button, never ahead of it. Made from the extension: "Keep using it free" leads, and Cloud and Software
   wait under it as optional upgrades, their prices last ("without scaring them off"). */
body.ui-app .ob-btn--free { font-weight: 550; }
.ob-actions--top { padding-top: 0; }
.ob-ups { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--ui-border); }
.ob-ups__title { margin: 0 0 .6rem; font-size: .8125rem; font-weight: 600; color: var(--ui-fg-2); text-align: center; }
.ob-ups ul { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--ui-border); border-radius: 12px; overflow: hidden; }
.ob-ups li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .95rem; }
.ob-ups li + li { border-top: 1px solid var(--ui-border); }
.ob-ups__text { display: grid; gap: .15rem; min-width: 0; }
.ob-ups__text b { font-size: .875rem; font-weight: 600; color: var(--ui-fg); }
.ob-ups__text span { font-size: .8125rem; line-height: 1.4; color: var(--ui-muted); }
.ob-ups__text small { font-size: .75rem; color: var(--ui-faint); font-variant-numeric: tabular-nums; }
.ob-ups li .ui-btn { flex: 0 0 auto; }
@media (max-width: 640px) { .ob-ups li { flex-wrap: wrap; } .ob-ups li .ui-btn { width: 100%; } }

/* Where did you hear about DroboAI? (made from the extension, 2026-11-24): eight short answers in two columns, and the
   few words Other asks for. */
.ob-goals--two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(3.25rem, auto); gap: .5rem; }
.ob-goals--two .ob-goal { padding-block: .55rem; }
.ob-goals--two .ob-goal__label { font-size: .9375rem; }
.ob-goals--two .ob-goal__go { display: none; }
.ob-hear-other { margin-top: .9rem; }
.ob-hear-other[hidden] { display: none; }
.ob-hear-other__row { display: flex; gap: .5rem; margin-top: .35rem; }
body.ui-app .ob-hear-other__row .ui-input { flex: 1 1 auto; width: auto; min-width: 0; }
body.ui-app .ob-hear-other__row .ob-btn { flex: 0 0 auto; width: auto; padding-inline: 1rem; }   /* over .ob-btn's 100% */
.ob:has([data-ob-step="hear"])[data-step="ebay"] .ob-back { visibility: visible; }

/* ── 2026-11-30, Cloud first with yearly (owner: "too long", "why is yearly white", "the play button dont align") ─────
   The offer is one short card. The kit's own segmented control picks Yearly or Monthly (its dark thumb, as every other
   .ui-seg: never a white pill); then the price card; one small walkthrough row with the lesson row's own thumbnail and
   play mark (the video plays in its own window, .ob-video, so the card never grows a player); the button; the quiet ways
   on. Every control is the pop-up's one height (--ui-h-field). It fits a 720px-tall window without scrolling inside. */
.ob-step[data-ob-step="offer"] .ob-head { margin-bottom: 1.1rem; }
.ob-bill { display: flex; width: 100%; margin-bottom: .75rem; }
.ob-bill button { flex: 1 1 0; font-size: .875rem; }
.ob-bill__save { padding: .1rem .45rem; font-size: .6875rem; font-weight: 650; line-height: 1.4; color: color-mix(in oklab, #22c55e 80%, var(--ui-fg)); background: color-mix(in srgb, #22c55e 14%, transparent); border-radius: 999px; }
.ob-offer__plan { display: grid; gap: .35rem; min-width: 0; }
.ob-offer__plan[hidden] { display: none; }
.ob-offer__tag { margin: 0 0 .1rem; font-size: .75rem; font-weight: 650; color: var(--ui-warn); }
.ob-offer__price s { font-size: 1.0625rem; font-weight: 550; color: var(--ui-faint); text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.ob-offer__terms { line-height: 1.5; text-wrap: pretty; }
body.ui-app .ob-watch { --tone: var(--ui-primary); width: 100%; margin-top: .75rem; font: inherit; text-align: left; cursor: pointer; }
.ob-watch .ob-course__shot { width: 7rem; }
.ob-watch:focus-visible { outline: 1.5px solid var(--ui-focus); outline-offset: 2px; }
.ob-step[data-ob-step="offer"] .ob-actions { padding-top: 1rem; }
.ob-links [hidden] { display: none; }

/* The walkthrough's own window, over the setup card. */
.ob-video { width: min(64rem, calc(100vw - 2rem)); max-width: none; margin: auto; padding: 0; overflow: visible; background: #000; border: 1px solid #26262c; border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9); }
.ob-video::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ob-video video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 6rem); background: #000; border-radius: 13px; }
.ob-video__close { position: absolute; top: -2.75rem; right: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; font-size: 1.1rem; color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .15s ease; }
.ob-video__close:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 640px) {
  .ob-watch .ob-course__shot { width: 6rem; }
}

/* 2026-11-30, the 1-on-1 outside the US and Canada: the phone form gives way to one button, a call with the owner
   (templates/drobo/app/onboarding_overlay.html, step "call"; js/drobo-ui-onboarding.js puts .is-abroad on the step). */
.ob-step.is-abroad [data-ob-home], .ob-step:not(.is-abroad) [data-ob-abroad] { display: none !important; }
.ob-step.is-abroad .ob-fine { margin: -.35rem 0 0; }
