/* ============================================================================
   onboard.css — /start, the web onboarding. Phone first: one card per step,
   big tap targets, the CTA pinned within thumb reach. The contest's outlined
   look (ink border + drop edge), drawn from the site tokens so dark works.
   ========================================================================== */
.ob {
  min-height: 100dvh; font-family: var(--font-sans); color: var(--text);
  padding: calc(var(--nav-h, 64px) + 14px) max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ob-top { width: min(560px, 100%); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; min-height: 32px; }
.ob-back, .ob-skip { background: none; border: 0; padding: 6px 0; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.ob-back { justify-self: start; }
.ob-skip { justify-self: end; }
.ob-back[hidden], .ob-skip[hidden], .ob-dots[hidden] { display: none; }
.ob-dots { grid-column: 2; display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ob-dots li { width: 7px; height: 7px; border-radius: 999px; background: var(--line-strong); transition: width .25s, background .25s; }
.ob-dots li.is-past { background: var(--text-muted); }
.ob-dots li.is-on { width: 22px; background: var(--text); }

.ob-card {
  width: min(560px, 100%); display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 5vw, 32px); border-radius: 22px;
  background: var(--surface-raised); border: 1.5px solid var(--text); box-shadow: 0 5px 0 var(--text);
  animation: ob-in .28s ease-out;
}
@keyframes ob-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .ob-card { animation: none; } }
.ob-eyebrow { margin: 0; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.ob-h { margin: 0; font-size: clamp(1.6rem, 6.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.ob-sub { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--text-secondary); }
.ob-sub b { color: var(--text); }
.ob-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ob-err { margin: 0; padding: 9px 12px; border-radius: 10px; background: #FDE7E3; color: #A3301C; font-size: var(--fs-sm); }
.ob-err[hidden] { display: none; }
.ob-cta {
  margin-top: 4px; width: 100%; padding: 16px; border: 0; border-radius: 14px;
  background: var(--text); color: var(--bg); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.ob-cta:disabled { opacity: .55; }
.ob-hint, .ob-fine { margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }
.ob-fine a { color: var(--text); font-weight: 600; }
.ob-alt { align-self: center; padding: 8px; font-size: var(--fs-sm); color: var(--text-secondary); text-decoration: none; }
.ob-alt b { color: var(--text); }

/* welcome perks */
.ob-perks { margin: 4px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ob-perks li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--surface-sunken); font-size: var(--fs-sm); color: var(--text-secondary); }
.ob-perks li::before { content: '✓'; position: absolute; left: 14px; top: 11px; font-weight: 800; color: var(--accent-text); }
.ob-perks b { color: var(--text); }

/* fields */
.ob-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-f { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); min-width: 0; }
.ob-input {
  width: 100%; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; /* 16px: no iOS zoom */
}
.ob-input:focus { outline: none; border-color: var(--text); }
.ob-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.ob-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--text); }
.ob-check--big { padding: 14px; border-radius: 14px; border: 1.5px solid var(--text); font-weight: 600; font-size: var(--fs-body); }

/* contest */
.ob-flk { display: block; width: 100%; }
.ob-flk .flk { color: var(--text); }
.ob-next-round { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-sunken); font-size: var(--fs-sm); color: var(--text-secondary); }
.ob-next-round b { color: var(--text); }
.ob-next-round a { color: var(--text); font-weight: 700; }

/* modes */
.ob-modes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ob-mode { display: grid; grid-template-columns: 30px 1fr 44px 44px; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-radius: 14px; border: 1.5px solid var(--line-strong); }
.ob-mode.is-first { border-color: var(--text); }
.ob-mode__n { font-weight: 800; color: var(--text-muted); }
.ob-mode__l { font-weight: 700; }
.ob-mode__l small { font-weight: 500; color: var(--accent-text); margin-left: 4px; }
.ob-mode button { height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 18px; cursor: pointer; }
.ob-mode button:disabled { opacity: .3; }

/* lists */
.ob-pick { display: flex; flex-direction: column; gap: 8px; }
.ob-list { display: flex; flex-direction: column; gap: 6px; max-height: min(52dvh, 460px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 2px; }
.ob-group { margin: 8px 2px 0; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ob-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer;
}
.ob-row span { display: flex; flex-direction: column; min-width: 0; }
.ob-row b { font-weight: 600; overflow-wrap: anywhere; }
.ob-row small { font-size: var(--fs-xs); color: var(--text-muted); }
.ob-row i { font-style: normal; font-weight: 800; opacity: 0; }
.ob-row.is-on { border-color: var(--text); }
.ob-row.is-on i { opacity: 1; }
.ob-empty, .ob-loading { margin: 6px 2px; color: var(--text-muted); font-size: var(--fs-sm); }
.ob-search { display: flex; gap: 8px; }
.ob-search button { flex: none; padding: 0 16px; border-radius: 12px; border: 0; background: var(--text); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.ob-loc { padding: 12px; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.ob-chosen { margin: 0; font-weight: 700; }
.ob-change { align-self: flex-start; text-align: left; background: none; border: 0; padding: 2px 0; font: inherit; font-size: var(--fs-sm); color: var(--text-secondary); cursor: pointer; text-decoration: underline; }
.ob-change b { color: var(--text); }

/* units */
.ob-unit { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.ob-unit > span { font-weight: 600; }
.ob-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-sunken); }
.ob-seg button { border: 0; background: none; padding: 9px 13px; border-radius: 9px; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.ob-seg button.is-on { background: var(--text); color: var(--bg); }

/* summary */
.ob-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; }
.ob-sum li { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.ob-sum li:first-child { border-top: 0; }
.ob-sum span { color: var(--text-muted); }
.ob-sum b { font-weight: 600; overflow-wrap: anywhere; }
.ob-sum em { font-weight: 400; font-style: normal; color: var(--text-muted); }
.ob-sum button { background: none; border: 0; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); text-decoration: underline; cursor: pointer; }
.ob-captcha:empty { display: none; }
.ob-top[hidden] { display: none; }
.ob-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* the footer's store plates (js/footer.js storeBadgesHtml), outside the footer */
.ob-badges .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; min-height: 48px;
  color: #fff; background: #000; border: 1px solid #a6a6a6; border-radius: 10px; line-height: 1; text-decoration: none;
}

/* Material icons inline (js/onboard.js MODE_ICON / PIN_ICON) */
.ob-ic { width: 24px; height: 24px; fill: currentColor; flex: none; vertical-align: -6px; }
.ob-mode__l { display: flex; align-items: center; gap: 10px; }
.ob-mode__l .ob-ic { color: var(--accent-text); }
.ob-loc { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ob-loc .ob-ic { width: 20px; height: 20px; }

/* area rows (home break, level 1): a chevron, always shown */
.ob-row[data-k^='area:'] i { opacity: .5; font-size: 20px; font-weight: 500; }

/* Black Friday 2026 offer on the last screen (js/onboard.js offerHtml) */
.ob-offer { display: grid; gap: 8px; padding: 16px; border-radius: 16px; text-align: center;
            border: 1px solid var(--accent-ring); background: var(--accent-tint); }
.ob-offer strong { font-size: var(--fs-body-lg); font-weight: 800; }
.ob-offer p { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.ob-offer span { font-size: var(--fs-xs); color: var(--text-muted); }
.ob-offer__btn { display: block; padding: 14px; border-radius: 14px; background: var(--brand-teal); color: #fff;
                 font-weight: 700; text-decoration: none; }
