/* The new onboarding look (PL_ONBOARD=new or ?ob=new, onboard_look.py). Loaded only then. Layout and colour are Tailwind (tw: classes in
   onboard-new-1.js, tw.css); this file holds what Tailwind cannot say: keyframes, the loader and hiding the classic page. Every class is
   ob21-: nothing else uses the prefix. */
html[data-ob="new"] #inv { display: none; }   /* the classic invite page stays in the DOM: its script is the only owner of state, requests and taps */

/* Buttons: styles.css has an unlayered `button{font:inherit;color:inherit}` that beats any tw: font or colour utility, so a button's type and colour
   live here (a class outranks the bare element). Layout, size and shape stay Tailwind. */
.ob21-btn { font: 600 16px/1.2 var(--sans); color: var(--ob21-btn-ink, var(--on-ink)); text-decoration: none; }
.ob21-quiet { font: 500 15px/1.2 var(--sans); color: var(--ink); }

/* The held offer's dashed edge: a colour mix of ink, which a tw: utility would wrap in an @supports block (test_tailwind allows only .tw: rules). */
.ob21-ticket { border: 1px dashed color-mix(in srgb, var(--ink) 26%, transparent); }

/* Invite test variant A3: the example card from a sample shopper (onboard-new-1.js example()). Tokens only; the prototype's own card. */
.ob21-ex { margin-top: 20px; padding: 16px; border-radius: 24px; background: var(--fill); }
.ob21-ex-k { display: block; font: 400 12.5px/1.3 var(--mono); color: var(--muted); }
.ob21-ex-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; }
.ob21-ex-pic { width: 44px; height: 44px; border-radius: 12px; background: var(--card); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ob21-ex-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ob21-ex-name { font: 600 17px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.ob21-ex-way { font: 500 13px/1 var(--mono); background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 6px 12px; }
.ob21-ex-ba { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 400 13px/1.3 var(--mono); color: var(--muted); }
.ob21-ex-ba i { flex: 1 1 auto; min-width: 12px; height: 1px; background: var(--ink); }
.ob21-ex-b { color: var(--coral); font-weight: 500; }
.ob21-ex-ft { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font: 400 14px/1.3 var(--sans); color: var(--text2); }
.ob21-ex-ft b { font: 600 20px/1 var(--sans); color: var(--ink); }

/* Arrive: children rise a little and fade in; the sticky footer only fades (a transformed parent unsticks it). */
@keyframes ob21-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ob21-fade { from { opacity: 0; } }
.ob21-rise { animation: ob21-rise var(--mo-t-380) var(--ease-moderate, cubic-bezier(.2, .8, .2, 1)) backwards; animation-delay: var(--ob21-d, 0ms); }
.ob21-fade { animation: ob21-fade var(--duration-land) ease-out backwards; }

/* Loader (kit: the mark): one tile, a coral point stepping round its corners. Shown after 200 ms, kept for at least 400 ms (onboard-new-1.js). */
.ob21-load { width: 32px; height: 32px; border-radius: 9px; background: var(--fill); position: relative; margin: 28px auto 0; opacity: 0; animation: ob21-fade var(--duration-press) ease-out var(--mo-t-200) forwards; }
.ob21-load::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); top: 4px; left: 4px; animation: ob21-step var(--mo-t-680) steps(1) infinite; }
@keyframes ob21-step { 0% { top: 4px; left: 4px; } 25% { top: 4px; left: 21px; } 50% { top: 21px; left: 21px; } 75% { top: 21px; left: 4px; } }

/* The brand's logo fades in over its letter, like the classic page. */
.ob21-mark img { opacity: 0; transition: opacity var(--mo-t-200); }
.ob21-mark img.ok { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ob21-rise { animation-name: ob21-fade; }
  .ob21-load::after { animation: none; top: 4px; left: 21px; }
  .ob21-mark img { transition: none; }
}

/* Motion tokens (style kit, #1373): the values the literals had. */
html[data-ob="new"]{--duration-land:240ms;--duration-press:120ms;--mo-t-200:200ms;--mo-t-380:380ms;--mo-t-680:680ms}
