/* The new look for the first screens (PL_ONBOARD=new or ?ob=new, onboard_look.py): the connect intro (/, #s-intro), the shopper sign-in
   (/login) and the brand start (/brands, /brands/login). Sean picked intro A, sign-in A and brand B on Nov 17 (mockups in the kit v9 frame:
   the invite page's wordmark top left, a mono word top right, the heading on the left, one dark pill button).
   Loaded only under the new look. The classic scripts stay the only owners of state, requests and taps: this file restyles their nodes and
   onboard-new-6.js adds a few ob26- nodes (the header, the trust lines, the example). Every new class is ob26-: nothing else uses the prefix.
   The team's sign-in (data-team-only) is not touched. Tokens only. */

/* ---------- shared parts ---------- */
.ob26-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0 0 20px; }
.ob26-wm { font: 600 17px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.ob26-wm i { display: inline-block; width: 6px; height: 6px; margin-left: 1px; border-radius: 50%; background: var(--accent); }
.ob26-ctx { font: 400 13px/1 var(--mono); color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob26-trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.ob26-trust li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: baseline; font: 400 15px/1.4 var(--sans); color: var(--text2); }
.ob26-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: translateY(-1px); }
.ob26-trust b { font-weight: 600; color: var(--ink); }
.ob26-q { display: block; font: 500 15px/1.2 var(--sans); color: var(--ink); text-decoration: none; text-align: center; padding: 12px 0; }
.ob26-q:hover { text-decoration: underline; }
.ob26-q[hidden] { display: none; }

/* ---------- connect intro (#s-intro, intro A: the invite page without a brand) ---------- */
html[data-ob="new"] #s-intro .handshake,
html[data-ob="new"] #s-intro .es-wall,
html[data-ob="new"] #s-intro .ex-trust { display: none !important; }
html[data-ob="new"] #s-intro { text-align: left; }
html[data-ob="new"] .app:has(> #s-intro:not([hidden])) > .navbar { display: none; }   /* the intro draws its own header; the navbar comes back with the back button on the next screens */
html[data-ob="new"] #s-intro > .title { text-align: left; margin: 0; font: 700 28px/1.1 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
html[data-ob="new"] #s-intro > .sub { text-align: left; max-width: none; margin: 12px 0 0; font: 400 16px/1.5 var(--sans); color: var(--text2); }
html[data-ob="new"] #s-intro > .sub b { font-weight: 400; color: inherit; }
html[data-ob="new"] #s-intro > #inv-from,
html[data-ob="new"] #s-intro > #new-acct { text-align: left !important; margin: 0 0 14px !important; }
html[data-ob="new"] #s-intro .footer .fine { text-align: center; }
html[data-ob="new"] #s-intro .footer #look { background: transparent; border: 0; box-shadow: none; }

/* ---------- shopper sign-in (/login, sign-in A: no boxed card) ----------
   Centred (Sean, Nov 18): the Bloom, heading, copy, the code and the links sit on the middle line in both views (Welcome back and
   Check your email), so the Bloom does not jump between them. The email's label stays on the field's left edge; the code's label and digits sit in the middle. */
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] { display: block; background: var(--bg); background-image: none; padding: 0 20px calc(24px + var(--safe-b)); }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .wrap { width: 100%; max-width: 440px; margin: 0 auto; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .card { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .mark { display: none; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] h1 { text-align: center; font: 700 28px/1.1 var(--sans); letter-spacing: -.03em; margin: 0 0 10px; text-wrap: balance; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] p.sub,
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] p.vl { text-align: center; font: 400 16px/1.5 var(--sans); color: var(--text2); margin: 0 0 20px; text-wrap: pretty; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; display: grid; gap: 14px; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group:focus-within { box-shadow: none; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group label:not([hidden]) { display: grid; gap: 6px; padding: 0; min-height: 0; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group label + label { border-top: 0; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group span { width: auto; font: 500 14px/1.2 var(--sans); color: var(--ink); }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group input { min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .group input:focus { box-shadow: 0 0 0 2px var(--ink); }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] button:not(.quiet),
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] a.gbtn { border-radius: 999px; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] button.quiet { border-radius: 999px; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .seg button { border-radius: 999px; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .err { text-align: center; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .split { border-top: 0; margin-top: 18px; padding-top: 0; justify-content: center; text-align: center; flex-wrap: wrap; gap: 6px 16px; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .split a.ink { font-weight: 500; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .sent,
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .sent-h,
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .sent-t,
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .sent-f { text-align: center; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .sent-t { text-wrap: pretty; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] #cf input { text-align: center; padding-left: calc(14px + .3em); }   /* the digits' letter-spacing trails the last one: the extra .3em on the left evens it */
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] #cf .group span { text-align: center; }   /* the code's label follows its digits to the middle; the email's stays on the field's left edge */
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .sent-ic { margin: 0 auto 12px; }
html[data-ob="new"]:not([data-team-only]) body[data-page="login"] .foot { margin-top: 28px; }

/* ---------- brand start (/brands, /brands/login, brand B: with an example of what a brand sees) ---------- */
html[data-ob="new"] body[data-page="brand"] { background: var(--bg); align-items: stretch; padding: 0 20px calc(20px + var(--safe-b)); }
html[data-ob="new"] body[data-page="brand"] .wrap { width: 100%; max-width: 440px; margin: 0 auto; }
html[data-ob="new"] body[data-page="brand"] .mark,
html[data-ob="new"] body[data-page="brand"] .for { display: none; }
html[data-ob="new"] body[data-page="brand"] h1 { text-align: left; font: 700 28px/1.1 var(--sans); letter-spacing: -.03em; margin: 0 0 10px; text-wrap: balance; }
html[data-ob="new"] body[data-page="brand"] p.sub { text-align: left; font: 400 16px/1.5 var(--sans); color: var(--text2); margin: 0 0 20px; }
html[data-ob="new"] body[data-page="brand"] .chip { margin: 0 0 12px; }
html[data-ob="new"] body[data-page="brand"] .group label:not([hidden]) { display: grid; gap: 6px; }
html[data-ob="new"] body[data-page="brand"] .group span.k { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font: 500 14px/1.2 var(--sans); color: var(--ink); }
html[data-ob="new"] body[data-page="brand"] .group input { min-height: 48px; }   /* border, radius and focus: the skin's own brand-page rules (skin-mosaic.css), which also join the field to the brand card */
html[data-ob="new"] body[data-page="brand"] .spin { bottom: 16px; }
html[data-ob="new"] body[data-page="brand"] button.go,
html[data-ob="new"] body[data-page="brand"] a.bg-btn { border-radius: 999px; }
html[data-ob="new"] body[data-page="brand"] .err,
html[data-ob="new"] body[data-page="brand"] .alt { text-align: left; }
html[data-ob="new"] body[data-page="brand"] #sent { text-align: center; }   /* Check your inbox sits on the middle line, like the shopper's Check your email (Sean, Nov 18) */
html[data-ob="new"] body[data-page="brand"] #sent :is(h1, p.sub, .err, .alt, .group span.k) { text-align: center; }
html[data-ob="new"] body[data-page="brand"] #sent .group input { text-align: center; }
html[data-ob="new"] body[data-page="brand"] #sent .env { margin: 0 auto 16px; }
html[data-ob="new"] body[data-page="brand"] #sent .mail { justify-content: center; }
html[data-ob="new"] body[data-page="brand"] > .fine { max-width: 440px; width: 100%; margin: 24px auto 0; }
/* The example and the sign-in link belong to the sign-up view only: the Welcome back view (#alt-new shown) and the sent view drop them. */
.ob26-ex { margin: 24px 0 0; display: grid; gap: 8px; }
.ob26-ex-k { font: 400 12px/1.2 var(--mono); color: var(--muted); letter-spacing: .02em; }
.ob26-ex-box { border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); padding: 4px 14px; }
.ob26-ex-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.ob26-ex-row + .ob26-ex-row { border-top: 1px solid var(--line); }
.ob26-ex-row span { min-width: 0; font: 400 14px/1.35 var(--sans); color: var(--ink); }
.ob26-ex-row small { display: block; font-size: 12px; color: var(--muted); }
.ob26-ex-row b { flex: none; font: 500 15px/1 var(--mono); color: var(--ink); }
#form-v:has(#alt-new:not([hidden])) .ob26-ex,
#form-v:has(#alt-new:not([hidden])) .ob26-q { display: none; }

/* ---------- connect intro, the story (intro B, Sean's pick Nov 17: "do B"; onboard-new-6.js story()) ----------
   The bloom tells it in three beats and rests on "Find your perks."; the heading's words roll with it. The page's own h1 and line stay for
   screen readers only; the three facts move into the How it works sheet behind one line by the button. An offer link never wears this. */
#s-intro.ob26-story > .title,
#s-intro.ob26-story > .sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#s-intro.ob26-story #look-sub,
#s-intro.ob26-story .footer .fine:has(> a[href="/terms"]) { display: none; }
.ob26-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 4px; }   /* the example sits under the bloom, never on it (Sean, Nov 17: it covered the bloom on desktop) */
.ob26-stage svg { display: block; width: min(240px, 25vh); height: auto; aspect-ratio: 1; overflow: visible; }
.ob26-perk { fill: var(--accent); }
.ob26-chip { translate: 0 8px; opacity: 0; display: flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 6px 18px color-mix(in srgb, var(--ink) 8%, transparent);
  font: 500 14px/1.2 var(--sans); color: var(--ink); white-space: nowrap; transition: translate var(--ease-slow), opacity var(--ease-moderate); }
.ob26-chip.on { translate: 0 0; opacity: 1; }
.ob26-chip i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ob26-chip span { overflow: hidden; text-overflow: ellipsis; }
.ob26-chip small { font: 400 11px/1 var(--mono); color: var(--muted); }
.ob26-roll { position: relative; overflow: hidden; min-height: 1.1em; font: 700 28px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); margin-top: 14px; text-align: center; }   /* centred with the bloom and the buttons (Sean, Nov 17) */
.ob26-roll span { position: absolute; inset: 0 0 auto 0; text-wrap: balance; transition: translate var(--ease-slow), opacity var(--ease-slow); }
.ob26-roll span.out { translate: 0 -60%; opacity: 0; transition: translate var(--ease-fast), opacity var(--ease-fast); }
.ob26-roll span.wait { translate: 0 60%; opacity: 0; transition: none; }
.ob26-beats { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
.ob26-beats i { width: 18px; height: 3px; border-radius: 4px; background: var(--line); transition: background-color var(--ease-moderate); }
.ob26-beats i.on { background: var(--ink); }
.ob26-how-p { text-align: center; }
.ob26-how { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 4px; border: 0; background: none; font: 400 13px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.ob26-how i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ob26-chev { color: var(--muted); }
.ob26-how:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
/* the sheet: on a phone it sits on the bottom edge, elsewhere it is a card in the middle */
.ob26-bd { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; background: color-mix(in srgb, var(--ink) 32%, transparent); }
.ob26-sheet { width: 100%; max-width: 480px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 24px calc(22px + var(--safe-b)); text-align: left; }
.ob26-sheet h2 { font: 700 22px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); margin: 0; }
.ob26-sheet .btn { width: 100%; margin-top: 22px; min-height: 52px; border-radius: 999px; }
.ob26-sheet .fine { text-align: center; margin: 12px 0 0; }
@media (min-width: 861px) { .ob26-bd { align-items: center; } .ob26-sheet { border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .ob26-roll span, .ob26-chip, .ob26-beats i { transition: none; } }
/* a short phone (an SE is 568 tall): the sticky footer takes half the screen, so the bloom shrinks and the example and the beat marks stay out */
@media (max-height: 640px) {
  #s-intro.ob26-story .ob26-top { margin-bottom: 8px; }
  .ob26-stage svg { width: min(240px, 20vh); }
  .ob26-chip, .ob26-beats { display: none; }
  .ob26-roll { font-size: 24px; margin: 0 0 12px; }
  #s-intro.ob26-story > .ob26-top { order: -2; }   /* the words above the bloom, so they clear the footer */
  #s-intro.ob26-story > .ob26-roll { order: -1; }
}
