/* =========================================================================
   /clip — Web fallback styles. Mirrors the iOS App Clip's hi-fi visual
   language (Phase 1 redesign) so the page reads as the same product.
   Brand tokens come from the design handoff at
   ~/Downloads/handoff/assets/colors_and_type.css.
   ========================================================================= */

@font-face {
  font-family: "Nersans Three";
  src: url("/clip/NersansThree.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette — matches GMSBrand.swift / colors_and_type.css */
  --gms-terracotta: #B0482D;
  --gms-beige:      #EEDBC3;
  --gms-beige-warm: #FDE7DA;
  --gms-blue:       #001DA2;
  --gms-bg:         #FBF6F1;
  --gms-ink:        #000044;
  --gms-white:      #FFFFFF;

  /* Type families */
  --font-display: "Nersans Three", "Quicksand", "Varela Round", system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing — 4px base */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 28px; --sp-8: 32px; --sp-9: 40px; --sp-10: 48px;

  /* Radii — large + soft */
  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-card: 36px; --r-pill: 999px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--gms-beige-warm);
  color: var(--gms-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }

/* ─── State machine ──────────────────────────────────────────────────── */

/* All states are display:none until JS adds .is-active. The inline critical
   CSS in the layout sets the same rule so we never get a flash of the wrong
   state during the JS warm-up. */
[data-state] { display: none; }
[data-state].is-active {
  display: block;
  animation: fadeUp 200ms var(--ease-soft) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Screens ────────────────────────────────────────────────────────── */

.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--sp-7) var(--sp-7) var(--sp-9);
  overflow: hidden; /* contain blob overflow */
}
.screen-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
}

/* Backgrounds per state. The /app page (US-56) shares the entry look.
   Already-in moved to terracotta with US-56 so it matches the confirm
   screen it stands in for; its text flips below. */
.screen--entry,
.screen--entry-return,
.screen--reward,
.screen--app { background: var(--gms-beige-warm); }
.screen--confirm,
.screen--already { background: var(--gms-terracotta); color: var(--gms-beige-warm); }

/* Blob layer — decorative organic shapes positioned per state. iOS uses the
   same blobs; the SVG files are byte-identical. */
.blob-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.blob { position: absolute; pointer-events: none; }
.blob--top-right    { top: 0;  right: 0; }
.blob--top-left     { top: 0;  left: 0; }
.blob--bottom-right { bottom: 0; right: 0; }
.blob--bottom-left  { bottom: 0; left: 0; }

/* ─── Typography ─────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow--terracotta { color: var(--gms-terracotta); }
.eyebrow--muted      { color: rgba(0, 0, 68, 0.55); letter-spacing: 0.11em; }
.screen--already .eyebrow--muted { color: rgba(253, 231, 218, 0.75); }
.eyebrow--checked-in { color: var(--gms-beige-warm); }
.eyebrow--checked-in .check-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gms-beige-warm);
  color: var(--gms-terracotta);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hero {
  font-family: var(--font-display);
  /* Defaults to the confirm/already size (52pt in iOS). Entry/reward
     override below to match the iOS hi-fi's per-state hero scale.
     `overflow-wrap: anywhere` is the web equivalent of iOS's
     `minimumScaleFactor(0.75)` — long first names on the
     entry-return state wrap instead of clipping off the right edge. */
  font-size: clamp(40px, 13vw, 52px);
  font-weight: 400; /* NersansThree's only weight */
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--gms-ink);
  margin: 0 0 var(--sp-5);
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Programmatic focus on state transition is for screen readers only —
   suppress the visible outline so we don't paint a default browser ring
   over the hero typography. Keyboard focus visibility is preserved on
   actual interactive elements (buttons, inputs) via :focus-visible. */
.hero:focus { outline: none; }
.hero--on-terracotta { color: var(--gms-beige-warm); }
.screen--entry .hero,
.screen--entry-return .hero,
.screen--app .hero { font-size: clamp(44px, 14vw, 56px); }
.hero--reward { font-size: clamp(52px, 16vw, 66px); margin-bottom: var(--sp-4); }

.lead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--gms-ink);
  margin: 0 0 var(--sp-7);
  max-width: 320px;
}
.lead--reward {
  color: rgba(0, 0, 68, 0.78);
  margin-bottom: var(--sp-7);
}
.screen--already .lead { color: var(--gms-beige-warm); }

.footnote {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(0, 0, 68, 0.45);
  text-align: center;
  margin: var(--sp-4) 0 0;
}
.tail {
  font-size: 14px;
  text-align: center;
  margin: var(--sp-7) 0 0;
}
.tail--on-terracotta { color: rgba(253, 231, 218, 0.85); }

/* ─── Form ───────────────────────────────────────────────────────────── */

.form { display: block; }
.field { display: block; margin: 0 0 var(--sp-4); }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 68, 0.6);
  margin-bottom: 8px;
}
/* Email's OPTIONAL chip — blue, not gray (design §0 note: gray reads
   broken, blue reads informational). */
.field-optional {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gms-blue);
  background: rgba(0, 29, 162, 0.09);
  padding: 3px 7px;
  border-radius: 999px;
  vertical-align: 1px;
  margin-left: 4px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  height: 54px;
  padding: 0 var(--sp-5);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--gms-white);
  color: var(--gms-ink);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-body);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 160ms var(--ease-soft);
}
.field input::placeholder { color: rgba(0, 0, 68, 0.35); font-weight: 400; }
.field input:focus { border-color: var(--gms-terracotta); }
.field-help {
  display: block;
  font-size: 11px;
  /* 11px is small text under WCAG (<14px), so we need >=4.5:1 contrast.
     0.55 alpha on beige-warm sits at ~4.4:1 — borderline AA fail. 0.65
     bumps to ~4.9:1 while still reading visually as helper text. */
  color: rgba(0, 0, 68, 0.65);
  margin-top: 6px;
}

.error {
  font-size: 13px;
  font-weight: 500;
  color: var(--gms-terracotta);
  margin: var(--sp-4) 0 0;
  min-height: 0;
  transition: min-height 160ms var(--ease-soft);
}
.error:not(:empty) { min-height: 1em; }
.screen--confirm .error { color: var(--gms-beige-warm); }
/* A note in the error line, not an error: a teacher's tap isn't counted. */
.error.is-note { color: var(--gms-ink); }

/* ─── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 var(--sp-7);
  border: none;
  border-radius: var(--r-pill);
  background: var(--gms-terracotta);
  color: var(--gms-beige-warm);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* A long label ("Download to claim your reward") wraps to two lines on
     a phone: keep both lines centred and tight enough for the 56px pill. */
  text-align: center;
  line-height: 1.2;
  text-decoration: none; /* anchor variants of .btn (app CTAs) */
  cursor: pointer;
  transition: transform 120ms var(--ease-pop), opacity 160ms;
  margin-top: var(--sp-7);
  /* Removes the 300ms tap delay still present in some mobile Safari
     versions — important for the immediate-feedback feel iOS users
     get from the App Clip's native button. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 3px; }

.btn--primary { background: var(--gms-terracotta); color: var(--gms-beige-warm); }
.btn--ghost {
  background: transparent;
  color: var(--gms-ink);
  border: 1.5px solid var(--gms-ink);
}
.btn--secondary {
  background: var(--gms-ink);
  color: var(--gms-beige-warm);
}
/* Compact second-option slot: "Or use it in your browser" under "Get the
   app", or the web claim path under "Download to claim your reward".
   Smaller height + ghost-style outline so it reads as the alternative,
   not a competing primary. */
.btn--tertiary {
  height: 44px;
  font-size: 14px;
  background: transparent;
  color: var(--gms-ink);
  border: 1.5px solid rgba(0, 0, 68, 0.35);
  margin-top: var(--sp-3);
}
/* Confirm and already-in have a terracotta canvas — flip the tertiary's
   ink tokens to beigeWarm so the outline reads against the dark ground.
   The reward screen and /app sit on beige-warm, where the default ink
   tokens already have enough contrast — adding the override there would
   render the button invisible (beige outline on beige canvas). */
.screen--confirm .btn--tertiary,
.screen--already .btn--tertiary {
  color: var(--gms-beige-warm);
  border-color: rgba(253, 231, 218, 0.45);
}

/* US-56 — "Get the app" carries a download glyph and stays on one line. */
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; margin-right: 10px; }
.btn--nowrap .btn-label { white-space: nowrap; }

/* One-line note under an app CTA ("Free on Google Play"). */
.cta-note {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: rgba(0, 0, 68, 0.7);
  margin: 0;
}
.screen--confirm .cta-note,
.screen--already .cta-note { font-size: 11.5px; color: var(--gms-beige-warm); }

.btn-spinner { display: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .btn-spinner {
  display: inline-block;
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 700ms linear infinite;
}
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-stack { display: grid; gap: var(--sp-3); margin-top: var(--sp-7); }

/* /app: the official store badges, unaltered. Google's file carries its own
   clear space, so it is drawn larger to match Apple's at 50 px. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-badge--google img { height: 75px; margin: -12.5px -12px; }

.link-button {
  background: transparent;
  border: none;
  color: rgba(0, 0, 68, 0.7);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 4px 6px;
  touch-action: manipulation;
}
.link-button:focus-visible { outline: 2px solid var(--gms-terracotta); outline-offset: 2px; border-radius: 4px; }

/* ─── Trophy / stamp card ────────────────────────────────────────────── */

.trophy-card {
  position: relative;
  background: var(--gms-terracotta);
  color: var(--gms-beige-warm);
  border-radius: var(--r-card);
  padding: 28px 26px;
  margin: var(--sp-6) 0;
}
.trophy-card--beige {
  background: var(--gms-beige-warm);
  color: var(--gms-ink);
}

.trophy-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 231, 218, 0.75);
  margin: 0 0 4px;
}
.trophy-label--on-beige { color: rgba(0, 0, 68, 0.6); }

.trophy-numeral {
  font-family: var(--font-display);
  font-size: 82px;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.trophy-numeral-total {
  font-size: 28px;
  color: rgba(253, 231, 218, 0.7);
}
.trophy-numeral--terracotta { color: var(--gms-terracotta); }
.trophy-numeral-total--terracotta { color: rgba(176, 72, 45, 0.5); }

.trophy-footer {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(253, 231, 218, 0.9);
  margin: var(--sp-4) 0 0;
}
.trophy-footer--ink { color: rgba(0, 0, 68, 0.8); }

/* ─── Stamp grid ─────────────────────────────────────────────────────── */

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  justify-items: center;
  margin-top: var(--sp-4);
}
.stamp-cell {
  display: grid;
  grid-template-rows: 30px 12px;
  justify-items: center;
  gap: 3px;
}
.stamp-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}
.stamp-dot.is-filled {
  background: var(--stamp-fill, currentColor);
  border-color: var(--stamp-fill, currentColor);
}
.stamp-dot.is-filled .stamp-star { display: block; }
.stamp-star {
  display: none;
  width: 16px; height: 16px;
  fill: var(--stamp-star-color, var(--gms-beige-warm));
}
.stamp-grid--on-terracotta {
  --stamp-fill: var(--gms-beige-warm);
  --stamp-star-color: var(--gms-terracotta);
  color: rgba(253, 231, 218, 0.3); /* empty border */
}
.stamp-grid--on-beige {
  --stamp-fill: var(--gms-terracotta);
  --stamp-star-color: var(--gms-beige-warm);
  color: rgba(0, 0, 68, 0.18); /* empty border */
}

.stamp-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp-fill, currentColor);
  opacity: 0.85;
}
.stamp-label.is-used { opacity: 0.55; }
.stamp-label--placeholder { visibility: hidden; }

/* ─── "One stamp per day" pill ───────────────────────────────────────── */

.rule-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(176, 72, 45, 0.10);
  color: var(--gms-terracotta);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.rule-pill-glyph { color: var(--gms-terracotta); }
/* Already-in sits on terracotta since US-56. */
.screen--already .rule-pill { background: rgba(253, 231, 218, 0.16); color: var(--gms-beige-warm); }
.screen--already .rule-pill-glyph { color: currentColor; }

/* ─── Legal footer ───────────────────────────────────────────────────── */

.legal-footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  font-size: 11px;
  /* The footer always sits on the body's beige-warm bg (the active
     screen takes 100vh; the footer is below that fold). So ink-at-low-
     opacity is correct regardless of which screen is active — earlier
     state-conditional rules tried to recolor it for the terracotta
     confirm state but flipped it to beige-warm-on-beige-warm = invisible. */
  color: rgba(0, 0, 68, 0.55);
}
.legal-footer a { color: inherit; text-decoration: underline; }
.legal-footer .dot { margin: 0 var(--sp-2); }

/* ─── Smart app banner (iOS only) ────────────────────────────────────── */

.smart-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 14px;
  background: var(--gms-ink);
  color: var(--gms-beige-warm);
  font-size: 13px;
  border-bottom: 1px solid rgba(253, 231, 218, 0.1);
}
.smart-banner.is-dismissed { display: none; }
.smart-banner-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
}
.smart-banner-title { font-weight: 600; }
.smart-banner-sub {
  font-size: 11.5px;
  color: rgba(253, 231, 218, 0.65);
  margin-top: 2px;
}
.smart-banner-dismiss {
  background: transparent;
  border: none;
  color: rgba(253, 231, 218, 0.65);
  font-size: 22px;
  line-height: 1;
  /* 44x44 meets the iOS HIG / Material 48dp touch-target minimum.
     The visible × stays 22px via font-size; the rest is invisible
     hit area centered around the glyph. */
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.smart-banner-dismiss:hover { color: var(--gms-beige-warm); }

/* ─── Reward state polish ────────────────────────────────────────────── */

.trophy-card--reward {
  animation: trophySnap 400ms var(--ease-soft) 150ms both;
}
@keyframes trophySnap {
  0%   { transform: scale(1.0); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1.0); }
}

/* ─── Stamp landing animation ────────────────────────────────────────── */

/* Each filled stamp pops in: scale 0.5 → 1.0, opacity 0 → 1.0 over 250ms
   with a 30ms stagger by index. Matches iOS StampDots animation timing
   exactly. CSS variable --stamp-i is set inline per cell so the same
   keyframe drives all ten with different delays. */
.stamp-grid.is-animating .stamp-dot.is-filled {
  animation: stampPop 250ms var(--ease-pop) both;
  animation-delay: calc(var(--stamp-i, 0) * 30ms);
}
@keyframes stampPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1.0); opacity: 1; }
}

/* ─── Confetti ───────────────────────────────────────────────────────── */

/* Confetti container is positioned absolutely over the reward screen.
   Particles are inserted by JS (so their geometry is randomised once per
   appearance rather than baked into CSS). Each particle is a small
   colored rectangle that falls from above the viewport to below, while
   spinning. Accessibility: pointer-events none, aria-hidden true. */
.confetti {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -40px;
  width: 10px;
  height: 5px;
  border-radius: 1.5px;
  opacity: 0.92;
  animation: confettiFall 1500ms ease-in forwards;
  will-change: transform, opacity;
}
.confetti-piece.is-round { width: 8px; height: 8px; border-radius: 50%; }
@keyframes confettiFall {
  to {
    /* End position is set per-particle inline as a CSS custom property
       so each piece travels a slightly different x-offset. y always
       lands beyond the visible area. */
    transform: translate(var(--cx, 0), 110vh) rotate(var(--cr, 720deg));
    opacity: 0;
  }
}

/* Reduced-motion: skip confetti entirely. The reward state still reads
   as celebratory thanks to the trophy snap + display-font hero. */
@media (prefers-reduced-motion: reduce) {
  .stamp-grid.is-animating .stamp-dot.is-filled { animation: none; }
  .confetti-piece { display: none; }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (min-width: 600px) {
  .screen { padding: var(--sp-9) var(--sp-9) var(--sp-10); }
  .hero { font-size: 64px; }
  .hero--reward { font-size: 76px; }
}

/* Reduce motion: disable the trophy snap and the fadeUp keyframe. */
@media (prefers-reduced-motion: reduce) {
  [data-state].is-active { animation: none; }
  .trophy-card--reward { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   V2 PARTNER LOYALTY — the stamp moment (one-shot, ~1.6s, rests on the
   final frame). Curves from the design handoff (loyalty-moment.jsx);
   the 5s looping demo timeline is compressed to a single pass. All
   animation classes are gated on prefers-reduced-motion: reduce →
   static final frame, same information.
   ═══════════════════════════════════════════════════════════════════ */

.screen--moment { background: var(--beige-warm, #FDE7DA); color: var(--ink, #000044); }
.moment-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 86dvh; text-align: center; position: relative; }
.moment-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,68,0.08); color: var(--ink, #000044); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 26px; }
.moment-stage { position: relative; }
.moment-count { margin: 30px 0 0; font-family: var(--font-display); font-size: 84px; line-height: 0.9; color: var(--terracotta, #B0482D); }
.moment-count-total { font-size: 40px; color: var(--ink, #000044); opacity: 0.55; }
.moment-title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.moment-sub { margin: 8px 0 0; font-size: 15px; font-weight: 600; opacity: 0.65; white-space: nowrap; }
.moment-done { position: absolute; bottom: 4px; left: 0; right: 0; padding: 15px 0; border-radius: 999px; border: 2px solid var(--ink, #000044); background: transparent; color: var(--ink, #000044); font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }

/* One-shot entrance timeline (forwards fill = rests on final frame). */
@media (prefers-reduced-motion: no-preference) {
  .sm-liquid { animation: smRiseOnce 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.19s both; }
  .moment-stage svg { animation: smSquashOnce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.19s both; transform-origin: bottom center; }
  .moment-count { animation: smPopOnce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s both; }
  .moment-title { animation: smUpOnce 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.29s both; }
  .moment-sub { animation: smUpOnce 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
  .moment-done { animation: smFadeOnce 0.3s ease 0.9s both; }
}
.moment-inner.is-static .sm-liquid,
.moment-inner.is-static .moment-stage svg,
.moment-inner.is-static .moment-count,
.moment-inner.is-static .moment-title,
.moment-inner.is-static .moment-sub,
.moment-inner.is-static .moment-done { animation: none; }

@keyframes smRiseOnce { from { transform: translateY(var(--rise-from, 29px)); } to { transform: translateY(0); } }
@keyframes smSquashOnce {
  0% { transform: scale(1); }
  30% { transform: scale(1.06, 0.94); }
  65% { transform: scale(0.98, 1.02); }
  100% { transform: scale(1); }
}
@keyframes smPopOnce { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes smUpOnce { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes smFadeOnce { from { opacity: 0; } to { opacity: 1; } }

/* Classic star punch */
.sm-stargrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: calc(52px * 5 + 14px * 4 + 2px); }
.sm-starcell { position: relative; width: 52px; height: 52px; display: block; }
.sm-star { width: 52px; height: 52px; display: block; }
.sm-star path { fill: none; stroke: rgba(0,0,68,0.25); }
.sm-star.is-filled path { fill: var(--terracotta, #B0482D); stroke: var(--terracotta, #B0482D); }
.sm-ring { position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--terracotta, #B0482D); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sm-punch { animation: smPunchOnce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; transform-origin: center; }
  .sm-ring { animation: smRingOnce 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
}
@keyframes smPunchOnce {
  0% { transform: scale(2.6) rotate(-28deg); opacity: 0; }
  55% { transform: scale(0.88) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes smRingOnce {
  0% { transform: scale(0.3); opacity: 0; }
  30% { opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Completion takeover */
.screen--moment-complete { background: var(--terracotta, #B0482D); color: var(--beige-warm, #FDE7DA); }
.moment-pill--on-ter { background: rgba(253,231,218,0.18); color: var(--beige-warm, #FDE7DA); }
.moment-halo { position: relative; margin: 30px 0 6px; }
.moment-halo::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; background: rgba(253,231,218,0.12); }
.moment-halo .moment-stage { position: relative; }
.momentc-title { margin: 26px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 42px; text-transform: uppercase; line-height: 0.95; max-width: 310px; }
.momentc-sub { margin: 12px 0 0; font-size: 15px; font-weight: 600; opacity: 0.85; max-width: 270px; line-height: 1.5; }
.screen--moment-complete .moment-inner { padding-bottom: 150px; }
.momentc-actions { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; flex-direction: column; gap: 10px; }
.momentc-primary { display: block; padding: 17px 0; border-radius: 999px; background: var(--beige-warm, #FDE7DA); color: var(--terracotta, #B0482D); text-align: center; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }
.momentc-later { padding: 13px 0; background: transparent; border: none; color: var(--beige-warm, #FDE7DA); opacity: 0.8; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .screen--moment-complete .moment-halo { animation: smPopOnce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }
  .momentc-title { animation: smUpOnce 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
  .momentc-sub { animation: smUpOnce 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
}

/* ── V2 install-nudge upsell (design 2026-07-20: B card + C takeover) ──
   Takeover: ink canvas announcement, shown once ever per member between
   the stamp moment and the confirm. Card: quieter ink offer card slotted
   above the confirm's wallet CTAs. Both render server-driven copy from
   `loyalty.upsell`; the halo/actions reuse the moment-complete patterns
   so the two celebrations stay visually related. */
.screen--upsell { background: var(--ink, #000044); color: var(--beige-warm, #FDE7DA); }
.moment-pill--on-ink { background: rgba(253,231,218,0.14); color: var(--beige-warm, #FDE7DA); }
.upsell-halo { position: relative; margin: 30px 0 6px; }
.upsell-halo::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; background: rgba(253,231,218,0.08); }
.upsell-halo .moment-stage { position: relative; }
.upsell-title { margin: 26px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; text-transform: uppercase; line-height: 0.98; max-width: 310px; }
.upsell-sub { margin: 14px 0 0; font-size: 15px; font-weight: 600; opacity: 0.88; max-width: 280px; line-height: 1.55; }
.upsell-keep { margin: 10px 0 0; font-size: 12.5px; opacity: 0.55; max-width: 260px; }
.screen--upsell .moment-inner { padding-bottom: 150px; }
.momentc-primary--upsell { color: var(--ink, #000044); }
@media (prefers-reduced-motion: no-preference) {
  .screen--upsell .upsell-halo { animation: smPopOnce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }
  .upsell-title { animation: smUpOnce 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
  .upsell-sub, .upsell-keep { animation: smUpOnce 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
}

/* Confirm-screen offer card (upsell style "card") */
.upsell-card { position: relative; overflow: hidden; background: var(--ink, #000044); color: var(--beige-warm, #FDE7DA); border-radius: 24px; padding: 20px 22px; margin: 18px 0 0; text-align: left; }
.upsell-card-pill { display: inline-block; font-family: var(--font-display); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(253,231,218,0.16); padding: 4px 10px; border-radius: 999px; margin: 0; }
.upsell-card-head { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.upsell-card-disc { width: 40px; height: 40px; border-radius: 999px; background: var(--beige-warm, #FDE7DA); color: var(--terracotta, #B0482D); font-family: var(--font-display); font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.upsell-card-disc--logo { background: #fff; }
.upsell-card-disc--logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upsell-card-title { font-family: var(--font-display); text-transform: uppercase; font-size: 21px; line-height: 1.05; margin: 0; }
.upsell-card-body { position: relative; font-size: 13px; line-height: 1.5; color: rgba(253,231,218,0.82); margin: 10px 0 0; }
.upsell-card-keep { position: relative; font-size: 11.5px; color: rgba(253,231,218,0.55); margin: 6px 0 0; }
.upsell-card-cta { position: relative; display: block; margin-top: 14px; padding: 13px 0; border-radius: 999px; background: var(--beige-warm, #FDE7DA); color: var(--terracotta, #B0482D); text-align: center; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }
.upsell-card-emoji { position: absolute; right: -10px; bottom: -14px; font-size: 76px; opacity: 0.14; transform: rotate(-12deg); pointer-events: none; }

/* V2 — the active partner card strip on the confirm screen (vessel at
   real fill + count + this tap's honest outcome line). */
.partner-context { display: flex; align-items: center; gap: 14px; background: var(--white, #FFFFFF); border-radius: 20px; padding: 14px 16px; margin: 18px 0 0; text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 68, 0.06); }
.partner-context-vessel { flex: none; display: flex; }
.partner-context-copy { min-width: 0; }
.partner-context-name { font-family: var(--font-display); text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.02em; color: var(--ink, #000044); margin: 0; }
.partner-context-count { font-size: 13px; color: var(--ink, #000044); margin: 3px 0 0; }
.partner-context-count b { font-weight: 800; }
.partner-context-line { font-size: 12.5px; color: rgba(0, 0, 68, 0.6); margin: 4px 0 0; line-height: 1.4; }
.partner-context-line.is-stamped { color: #157A4E; font-weight: 700; }

/* =========================================================================
   Stars, not circles (B-01 "Stamps are stars"; the App Clip's StampDots
   draw the same star). Every cell is a star: filled per stamp, an outline
   for the rest. The circle is gone; the pop animation is unchanged.
   ========================================================================= */
.stamp-dot, .stamp-dot.is-filled { border: none; border-radius: 0; background: transparent; }
.stamp-star, .stamp-dot.is-filled .stamp-star { display: block; width: 30px; height: 30px; overflow: visible; }
.stamp-star path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.stamp-dot.is-filled .stamp-star path { fill: var(--stamp-fill); stroke: var(--stamp-fill); stroke-width: 1.85; }
.stamp-grid--on-terracotta { color: rgba(253, 231, 218, 0.4); }
.stamp-grid--on-beige { color: rgba(0, 0, 68, 0.22); }

/* =========================================================================
   Stamps to spend (B-01) — the check-in steps and the balance, mirroring
   the App Clip (StampsCheckInView / StampsAlreadyView). A stamp is filled
   once confirmed and a dashed outline while it's reserved; the star path
   is normalised to 70 units (pathLength) so the dash is even.
   ========================================================================= */
.gm-star { display: inline-block; flex: none; overflow: visible; color: var(--gms-terracotta); vertical-align: -1px; }
.gm-star path { stroke-linejoin: round; }
.gm-star.is-confirmed path { fill: currentColor; stroke: currentColor; stroke-width: 1.85; }
.gm-star.is-reserved path { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-dasharray: 4.4 2.6; stroke-dashoffset: 2.2; stroke-linecap: round; }
.gm-star.is-reserved[width="50"] path { stroke-width: 1.8; stroke-dasharray: 2.3 1.2; stroke-dashoffset: 1.15; }
.gm-star.is-empty path { fill: none; stroke: rgba(0, 0, 68, 0.22); stroke-width: 1.8; }
.gm-stars { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.gm-stars-row { display: flex; align-items: center; gap: 6px; }
/* Past nine: the stamps beyond the grid, in its empty tenth slot. */
.gm-more { flex: none; height: var(--star-size); min-width: calc(var(--star-size) * 1.35); padding: 0 calc(var(--star-size) * 0.28); box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--gms-terracotta); color: var(--gms-beige-warm); font-family: var(--font-display); font-size: calc(var(--star-size) * 0.52); line-height: 1; }

.screen--stamps { background: var(--gms-terracotta); color: var(--gms-beige-warm); }
.screen--stamps-already { background: var(--gms-beige); color: var(--gms-ink); }
.hero--stamps { font-size: clamp(34px, 11vw, 40px); line-height: 0.95; margin-bottom: 18px; }
.eyebrow--ink-muted { color: rgba(0, 0, 68, 0.65); letter-spacing: 0.13em; }
.screen--stamps-already .hero { font-size: clamp(40px, 13vw, 48px); margin-bottom: 12px; }
.lead--ink { color: var(--gms-ink); margin-bottom: 14px; }
.rule-pill--ink { background: transparent; color: var(--gms-ink); border: 1.5px solid var(--gms-ink); font-family: var(--font-body); font-weight: 800; font-size: 10.5px; letter-spacing: 0.1em; padding: 5px 10px; margin-bottom: 0; }

.st-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(0, 0, 68, 0.65); }
.st-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.st-chip--solid { background: var(--gms-terracotta); color: var(--gms-beige-warm); border: 1.5px solid var(--gms-terracotta); }
.st-chip--dashed { color: var(--gms-terracotta); border: 1.5px dashed var(--gms-terracotta); }
/* A small spinner (B-12's "Finishing your booking"). */
.st-step-ico { width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.st-step-ico.is-active { border: 2.5px solid rgba(176, 72, 45, 0.25); border-top-color: var(--gms-terracotta); animation: spin 800ms linear infinite; }

/* After: what the confirmed stamps cover, or the honest miss. */
.st-after { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease-out, transform 420ms ease-out; }
.st-after.is-in { opacity: 1; transform: none; }
.st-balance { background: var(--gms-beige-warm); color: var(--gms-ink); border-radius: 32px; padding: 16px 18px; margin-top: 18px; }
.st-balance-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.st-balance-top .st-label { margin: 0; }
.st-balance-row { display: flex; align-items: center; gap: 16px; }
.st-balance--already { padding: 18px 20px; }
.st-balance--already .st-balance-row { justify-content: space-between; }
.st-total { font-family: var(--font-display); font-size: 46px; line-height: 0.9; color: var(--gms-terracotta); }
.st-line { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.st-class, .st-row { display: flex; align-items: center; gap: 12px; background: var(--gms-beige-warm); color: var(--gms-ink); text-decoration: none; }
.st-class { margin-top: 14px; padding: 16px 18px; border-radius: 20px; }
.st-class-main, .st-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-class-main b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; text-transform: uppercase; color: var(--gms-terracotta); }
.st-class-main span { font-size: 12.5px; font-weight: 600; color: rgba(0, 0, 68, 0.65); }
.st-section { margin: 16px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gms-beige-warm); }
.st-row { margin-top: 8px; padding: 11px 12px 11px 16px; border-radius: 20px; }
.st-row-main b { font-size: 14px; font-weight: 700; }
.st-row-main span { font-size: 12px; font-weight: 500; color: rgba(0, 0, 68, 0.65); }
.st-pill { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; box-sizing: border-box; }
.st-pill--take { background: var(--gms-terracotta); color: var(--gms-beige-warm); border: 2px solid var(--gms-terracotta); }
.st-pill--more { color: var(--gms-ink); border: 2px solid rgba(0, 0, 68, 0.3); }
.st-pill--confirming { color: var(--gms-terracotta); border: 2px dashed var(--gms-terracotta); }
.st-more { margin: 7px 0 0; font-size: 12px; color: var(--gms-beige-warm); }
.btn--beige { background: var(--gms-beige-warm); color: var(--gms-terracotta); }
.st-cta { margin-top: 18px; }
.st-note { margin: 8px 0 0; text-align: center; font-size: 11.5px; line-height: 1.4; color: var(--gms-beige-warm); }
.st-note--gap { margin-top: 14px; font-size: 12px; }
.st-note--ink { color: rgba(0, 0, 68, 0.65); font-size: 12px; }
.st-miss { margin: 18px 0 0; font-size: 14px; line-height: 1.45; color: var(--gms-beige-warm); }
.screen--stamps-already .st-cta { margin-top: 28px; }

/* US-75 — already in / no booking: the benefits, then the app first and the
   browser second, as a link (Raj: "shouldn't feel like a button"). */
.st-status { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px; border-radius: 20px; background: var(--gms-beige-warm); color: var(--gms-ink); }
.st-status .st-label { margin: 0 0 3px; }
.st-status-line { margin: 0; font-size: 14px; font-weight: 700; }
.st-miss--sub { margin-top: 8px; font-size: 13.5px; }
.st-link { display: block; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; color: var(--gms-terracotta); text-decoration: underline; text-underline-offset: 3px; }
.st-link--light { color: var(--gms-beige-warm); }

/* Raj, 3 Oct 2026 — no booking under the name they gave: type it as it is
   on the booking and look again (/clip/name). A beige-warm card on the
   terracotta ground, like the status card above it. */
.st-fix { margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--gms-beige-warm); color: var(--gms-ink); }
.st-fix-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.st-fix-help { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: rgba(0, 0, 68, 0.75); }
.st-fix input { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; height: 48px; padding: 0 14px; border: 2px solid rgba(0, 0, 68, 0.2); border-radius: 14px; background: #ffffff; color: var(--gms-ink); font: inherit; font-size: 16px; font-weight: 600; }
.st-fix input:focus { outline: none; border-color: var(--gms-terracotta); }
/* Two fields since 3 Oct 2026 (Raj): First name, Last name. */
.st-fix-field { display: block; margin-top: 12px; }
.st-fix-field .st-label { margin: 0; }
.st-fix-field input { margin-top: 6px; }
.st-fix-error { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--gms-terracotta); }
.st-fix-error:empty { display: none; }
.st-fix .btn { margin-top: 12px; width: 100%; }
/* T5 (tap-match.md section 9): "What's your full name?", asked once in the
   same card. The question in the display face; Not now is a quiet button
   under Save. White on the already-in screen's beige ground. */
.st-fix-title--ask { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.st-fix-later { display: block; width: 100%; margin-top: 4px; padding: 12px 0 2px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: rgba(0, 0, 68, 0.7); cursor: pointer; }
.st-fix-later:disabled { opacity: 0.5; cursor: default; }
.screen--stamps-already .st-fix { margin: 4px 0 16px; background: #ffffff; }
.screen--stamps-already .st-row { background: #ffffff; }
.screen--stamps-already .st-section,
.screen--stamps-already .st-more { color: rgba(0, 0, 68, 0.65); }
@media (prefers-reduced-motion: reduce) {
  .st-after { transition: none; }
  .st-step-ico.is-active { animation-duration: 2s; }
}

/* Self check-in (Raj, 3 Oct 2026): the texted code a new or prepared number
   enters once per browser. Sits under the form that asked for it. */
.code-step { margin-top: 16px; }
.code-step[hidden] { display: none; }
.code-step-lead { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.code-step .code-step-back { display: block; margin: 14px auto 0; }
/* The form's own button steps aside while the code step stands in for it. */
.btn[hidden] { display: none; }

/* J8 (the free class to TapIn design): the app card after a browser
   check-in, for someone who doesn't use the app yet. Terracotta, a shade
   deeper where the screen itself is terracotta. */
.app-nudge {
  margin-top: 24px;
  padding: 22px 16px 18px;
  border-radius: 22px;
  background: var(--gms-terracotta);
  color: var(--gms-beige-warm);
  text-align: left;
}
.screen--stamps .app-nudge,
.screen--confirm .app-nudge { background: #8E3720; }
.app-nudge-title { margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 800; }
.app-nudge-body { margin: 0 0 16px; font-size: 14.5px; line-height: 1.45; opacity: 0.92; }
/* One line for the store label on a 375px phone ("Download on the App
   Store" is the longest); it still wraps on anything narrower. */
.app-nudge .btn { width: 100%; margin-top: 0; padding: 0 12px; font-size: 15px; letter-spacing: 0.02em; }
.app-nudge-open {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gms-beige-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-nudge-phone { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.4; opacity: 0.8; }

/* =========================================================================
   B-12 — book the next class at the counter (design B12Classes to
   B12Booked): after a tap that found no booking, "Not booked yet?" lists
   today's next classes; Book opens a sheet (the texted code, choose how to
   pay, Stripe's card form), then booked, and today's stamp confirmed.
   ========================================================================= */

/* "Have you booked a class? Which one?" (8 Nov 2026, the canvas page "Which
   class? (ask at the tap)"; Raj: "the least amount of text, but quickly
   readable"). Under the gold title alone, one white card: the question
   (24px), big Yes and No pills; Yes opens "Which one?" (22px) under a thin
   divider, one short row per class ("13:15 · Power Moves Pilates"), then the
   plain "My class isn't here". The same rows for "How did you book?". */
.wc-ask { margin: 0; font-family: var(--font-body); font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--gms-ink); }
.wc-ask label { cursor: inherit; }
.wc-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wc-pill {
  height: 56px; border: 2px solid var(--gms-ink); border-radius: 999px; background: #FFFFFF; color: var(--gms-ink);
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.wc-pill--yes, .wc-pill.is-on { background: var(--gms-ink); color: #FFFFFF; }
.wc-pill:focus-visible, .wc-plain:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 2px; }
.wc-pill:disabled, .wc-plain:disabled { opacity: 0.55; cursor: default; }
.wc-classes { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 68, 0.15); scroll-margin-top: 16px; }
.wc-classes[hidden] { display: none; }
.wc-sub { margin: 0; font-family: var(--font-body); font-size: 22px; font-weight: 800; line-height: 1.2; outline: none; }
.wc-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wc-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; box-sizing: border-box; padding: 10px 14px;
  border: 2px solid rgba(0, 0, 68, 0.15); border-radius: 16px; background: #FFFFFF; color: var(--gms-ink);
  font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.wc-option:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 2px; }
.wc-option:disabled { cursor: default; opacity: 0.55; }
.wc-option.is-busy { opacity: 1; border-color: var(--gms-terracotta); }
.wc-option-main { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.wc-chev { flex: none; color: rgba(0, 0, 68, 0.5); }
.wc-plain {
  display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 0 4px; border: 0; background: none;
  font: inherit; font-size: 15px; font-weight: 700; color: rgba(0, 0, 68, 0.75); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; touch-action: manipulation;
}
/* What they told us, and green's class: the class big, one short line. */
.wc-class b { overflow-wrap: anywhere; }
.wc-stamp { gap: 12px; }
.wc-stamp .st-status-line { font-size: 16px; }
/* No: the class starting now, big, with "Book this class"; the rest under
   "Later today", one short row each with its own Book. */
.wc-book .btn { margin-top: 12px; width: 100%; }
.wc-book + .bk-card { margin-top: 16px; }
.ci .bk-card .wc-option-main { font-size: 15px; }


/* "Not booked yet?" */
.bk-card { margin-top: 10px; padding: 16px 16px 6px; border-radius: 20px; background: var(--gms-beige-warm); color: var(--gms-ink); }
.bk-card .st-label { margin: 0; }
.bk-card-line { margin: 4px 0 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.bk-list { list-style: none; margin: 6px 0 0; padding: 0; }
.bk-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bk-row + .bk-row { border-top: 1px solid rgba(0, 0, 68, 0.12); }
.bk-time { flex: none; width: 50px; font-family: var(--font-display); font-size: 21px; line-height: 1; color: var(--gms-terracotta); }
.bk-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-row-main b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.bk-row-main span { font-size: 12px; font-weight: 500; line-height: 1.35; color: rgba(0, 0, 68, 0.65); }
.bk-pill {
  flex: none; height: 32px; padding: 0 16px; border: 2px solid var(--gms-terracotta); border-radius: 999px;
  background: var(--gms-terracotta); color: var(--gms-beige-warm); font-family: var(--font-display); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; touch-action: manipulation;
}
.bk-pill:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 2px; }
.bk-pill--off { padding: 0 14px; border-color: rgba(0, 0, 68, 0.3); background: transparent; color: rgba(0, 0, 68, 0.65); cursor: default; }

/* The sheet over the check-in (the report sheet's shape). */
body.bk-open { overflow: hidden; }
.bk-root { position: fixed; inset: 0; z-index: 70; }
.bk-root[hidden] { display: none; }
.bk-scrim { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(0, 0, 68, 0.45); cursor: pointer; }
.bk-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; max-height: calc(100dvh - 40px); margin: 0 auto;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; box-sizing: border-box;
  padding: 10px 22px calc(28px + env(safe-area-inset-bottom, 0px)); border-radius: 32px 32px 0 0;
  background: var(--gms-bg); color: var(--gms-ink); animation: bk-up 260ms var(--ease-soft);
}
@keyframes bk-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk-sheet { animation: none; } }
.bk-grabber { width: 36px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: rgba(0, 0, 68, 0.2); }
.bk-when { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0, 0, 68, 0.65); }
.bk-title { margin: 8px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 0.95; text-transform: uppercase; }
.bk-detail { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: rgba(0, 0, 68, 0.65); }
.bk-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bk-note { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--gms-beige); }
.bk-note-head { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gms-terracotta); }
.bk-note-head b { font-size: 14px; font-weight: 800; color: var(--gms-ink); }
.bk-note p:not(.bk-note-head) { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; }
.bk-note--plain .bk-note-head b { font-size: 15px; }

.bk-cta { height: 54px; margin-top: 18px; font-size: 15px; letter-spacing: 0.05em; }
.bk-secondary {
  display: block; width: 100%; height: 48px; margin-top: 10px; border: 2px solid rgba(0, 0, 68, 0.25); border-radius: 999px;
  background: transparent; color: rgba(0, 0, 68, 0.75); font-family: var(--font-display); font-size: 13.5px;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; touch-action: manipulation;
}
.bk-foot { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.4; color: rgba(0, 0, 68, 0.65); }
.bk-foot:empty { display: none; }
.bk-error { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--gms-terracotta); }
.bk-error:empty { display: none; }
.bk-h { margin: 20px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 1; text-transform: uppercase; }
.bk-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; }
.bk-link {
  display: block; margin-top: 14px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 700;
  color: var(--gms-terracotta); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Six boxes over one input (iOS fills it in from the text). */
.bk-code { position: relative; display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; }
.bk-code input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px;
  color: transparent; caret-color: transparent; z-index: 1;
}
.bk-code-box {
  flex: 1; max-width: 46px; height: 56px; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border: 2px solid rgba(0, 0, 68, 0.2); border-radius: 14px; background: #ffffff; font-size: 24px; font-weight: 700;
}
.bk-code-box.is-current { border-color: var(--gms-terracotta); }

/* Choose how to pay. */
.bk-label { margin: 16px 0 0; }
.bk-label--gap { margin-top: 12px; }
.bk-line { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
.bk-option {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px;
  border: 2px solid rgba(0, 0, 68, 0.14); border-radius: 16px; background: #ffffff; cursor: pointer;
}
.bk-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-option.is-picked { border-color: var(--gms-terracotta); }
.bk-option:focus-within { outline: 3px solid var(--gms-blue); outline-offset: 2px; }
.bk-radio {
  flex: none; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid rgba(0, 0, 68, 0.3); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.bk-option.is-picked .bk-radio { border-color: var(--gms-terracotta); }
.bk-option.is-picked .bk-radio::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--gms-terracotta); }
.bk-option-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-option-main b { font-size: 14.5px; font-weight: 800; }
.bk-option-main span { margin-top: 1px; font-size: 12px; color: rgba(0, 0, 68, 0.65); }
.bk-price { flex: none; font-family: var(--font-display); font-size: 20px; color: var(--gms-terracotta); }
.bk-email { display: block; margin-top: 14px; }
.bk-email .st-label { margin: 0; }
.bk-email input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; height: 48px; padding: 0 14px;
  border: 2px solid rgba(0, 0, 68, 0.2); border-radius: 14px; background: #ffffff; color: var(--gms-ink); font: inherit; font-size: 16px;
}
.bk-email input:focus { outline: none; border-color: var(--gms-terracotta); }
.bk-email-help { display: block; margin-top: 6px; font-size: 12px; color: rgba(0, 0, 68, 0.65); }

/* The pay step: what they're buying, then Stripe's own forms. */
.bk-order { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: #ffffff; }
.bk-order > span:first-child { flex: 1; display: flex; flex-direction: column; }
.bk-order b { font-size: 14.5px; font-weight: 800; }
.bk-order span span { margin-top: 1px; font-size: 12px; color: rgba(0, 0, 68, 0.65); }
.bk-express { margin-top: 14px; }
.bk-express:empty { display: none; }
.bk-element { margin-top: 14px; min-height: 40px; }

.bk-wait { display: flex; flex-direction: column; align-items: center; padding: 26px 0 8px; text-align: center; }
.bk-wait p { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.bk-wait .bk-h { margin-top: 14px; }
.bk-wait .bk-sub { margin-top: 6px; font-weight: 400; }
.bk-wait--page { margin-top: 16px; padding: 22px 16px; border-radius: 20px; background: var(--gms-beige-warm); color: var(--gms-ink); }

/* B12Booked: "You're booked" under today's stamp. */
.bk-booked { margin-top: 10px; padding: 14px 16px; border-radius: 20px; background: var(--gms-beige-warm); color: var(--gms-ink); }
.bk-booked .st-label { margin: 0; }
.bk-booked-name { margin: 4px 0 0; font-size: 16px; font-weight: 800; }
.bk-booked-line { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: rgba(0, 0, 68, 0.75); }

/* B12BookedLater: a found account with no booking for the tap, booked later
   today. */
.bk-later-title { margin: 0; font-size: 16px; font-weight: 800; }
.bk-booked--later .bk-row { padding: 10px 0 0; }
.bk-later-note {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(0, 0, 68, 0.12);
  font-size: 13px; line-height: 1.45; color: rgba(0, 0, 68, 0.75);
}

/* ─── Checked in: green, not checked in yet: gold (30 Oct 2026) ───────────
   docs/2026-10-30-checked-in-green.md; canvas page "Checked in: green".
   Three states, the whole screen: checking (warm beige head, ink spinner),
   checked in (p-checked-in #147A4F, white text) and not checked in yet
   (p-not-checked-in #D4A82C, ink #000044 text). The terracotta ground goes;
   cards sit on the colour in white, stars stay terracotta, a class on us is
   blue. Buttons: white with green text on green, ink with white on gold. */
.screen.ci { padding: 0 0 var(--sp-9); }
/* Fewest words (8 Nov 2026): every state full bleed, no lighter band under
   the title. Finding your booking is warm beige edge to edge. */
.screen.ci--checking { background: var(--gms-beige-warm); color: var(--gms-ink); }
.screen.ci--in { background: #147A4F; color: #FFFFFF; }
.screen.ci--not { background: #D4A82C; color: #000044; }
.ci-head { position: relative; overflow: hidden; padding: 64px 26px 26px; }
.ci--checking .fw-blob { color: var(--gms-ink); opacity: 0.07; }
.ci--in .fw-blob { color: #FFFFFF; opacity: 0.08; }
.ci--not .fw-blob { color: var(--gms-ink); opacity: 0.06; }
.ci-head-inner { position: relative; z-index: 2; max-width: 480px; margin: 0 auto; }
.ci-mark { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ci-mark--in { background: #FFFFFF; }
.ci-mark--not { background: #000044; }
.ci-spin { animation: ci-spin 0.9s linear infinite; }
@keyframes ci-spin { to { transform: rotate(360deg); } }
.ci-eyebrow { margin: 16px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ci-eyebrow[hidden], .ci-lead[hidden], .ci-next[hidden] { display: none; }
/* p-hero: a long name wraps; it never shrinks. */
.ci-title { margin: 16px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.ci-title:focus { outline: none; }
/* p-answer: the one line under a status title. */
.ci-lead { margin: 12px 0 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
.ci-next { margin: 14px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.4; font-weight: 800; }
.ci-next-tag { flex-shrink: 0; margin-top: 1px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: #000044; color: #D4A82C; border-radius: 999px; padding: 3px 8px; }
.ci-body { padding: 0 26px; }

/* White cards on the colour. */
.ci .st-balance, .ci .st-row, .ci .st-status, .ci .st-fix, .ci .bk-card, .ci .bk-booked, .ci .app-nudge,
.ci-class, .ci-code { background: #FFFFFF; color: #000044; }
.ci .st-note, .ci .st-section, .ci .st-more, .ci .st-miss, .ci .st-link--light { color: inherit; }
.ci .st-class { background: var(--gms-blue); color: var(--gms-beige-warm); }
.ci .st-class-main b { color: var(--gms-beige-warm); }
.ci .st-class-main span { color: rgba(253, 231, 218, 0.8); }
.ci .st-class .st-pill--take { background: var(--gms-beige-warm); color: var(--gms-blue); }
.ci--in .btn--beige, .ci--in .btn--primary.st-cta { background: #FFFFFF; color: #147A4F; }
.ci--not .btn--beige, .ci--not .btn--primary.st-cta, .ci-btn-ink { background: #000044; color: #FFFFFF; }
.ci-class { margin-top: 18px; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ci-class b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; text-transform: uppercase; }
.ci-class span { font-size: 13px; font-weight: 600; color: rgba(0, 0, 68, 0.65); }
.ci-code { margin-top: 16px; border-radius: 20px; padding: 16px 18px; }
.ci-code-digits { margin: 4px 0 0; font-family: var(--font-display); font-size: 72px; line-height: 1; letter-spacing: 0.08em; }
.ci-code-sub { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.ci-code-line { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.ci-code-wait { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ci-spin-sm { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 68, 0.15); border-top-color: #000044;
  animation: ci-spin 0.9s linear infinite; }
.ci-btn-ink { width: 100%; height: 56px; margin-top: 20px; }
.ci-small { margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .ci-spin, .ci-spin-sm { animation: none; } }

/* A Door iPad's "They book it on their phone" code (DoorQr): the class it books,
   named above the check-in (app/views/clip/_door_book.html.erb). */
.door-book { margin: calc(-1 * var(--sp-4)) 0 var(--sp-6); max-width: 340px; padding: 12px 16px; border-radius: 16px;
  background: #FFFFFF; color: var(--gms-ink); font-family: var(--font-body); font-size: 15px; line-height: 1.4; }
.door-book b { font-weight: 700; }

/* ─── No text? The email way in (docs/2026-11-04-email-way-in.md, 3) ────
   The canvas "No text yet? The email way in": the card on the code step,
   then Use your email, Check your email and Nice to meet you on their own
   warm-beige screen, and "Is this still your email?" as a sheet over the
   check-in (app.js, showWayIn). */
.screen--email-way { background: var(--gms-beige-warm); }
.nt-hero { font-size: clamp(38px, 12vw, 42px); line-height: 0.96; margin-bottom: 12px; }
.nt-lead { font-size: 15px; font-weight: 500; margin-bottom: 22px; max-width: 330px; }
.nt-card { margin-top: 22px; background: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.nt-card-head { display: flex; align-items: center; gap: 12px; }
.nt-envelope { flex: none; display: block; }
.nt-card-text { display: flex; flex-direction: column; gap: 3px; }
.nt-card-title { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; line-height: 1; color: var(--gms-ink); }
.nt-card-line { font-size: 13px; line-height: 1.4; font-weight: 500; color: rgba(0, 0, 68, 0.75); }
.nt-outline { display: block; width: 100%; height: 52px; border: 2px solid var(--gms-terracotta); border-radius: 999px; background: #fff; color: var(--gms-terracotta); font-family: var(--font-display); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
.nt-form .btn { margin-top: 6px; }
.nt-info { margin-top: 16px; background: #fff; border-radius: 20px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; font-weight: 500; color: rgba(0, 0, 68, 0.8); }
.nt-info svg { flex: none; margin-top: 1px; }
.screen--email-way .nt-back { display: block; margin: 16px auto 0; color: var(--gms-terracotta); font-weight: 600; font-size: 14px; }
.nt-wait { background: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nt-wait[hidden] { display: none; }
.nt-wait-line { font-size: 15px; font-weight: 600; text-align: center; color: var(--gms-ink); }
.nt-waiting { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(0, 0, 68, 0.65); }
.nt-spinner { width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 3px solid rgba(0, 0, 68, 0.2); border-top-color: var(--gms-terracotta); animation: nt-spin 1s linear infinite; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nt-spinner { animation: none; } }
.nt-fine { margin: 16px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: rgba(0, 0, 68, 0.72); }
.nt-address { margin: 0 0 22px; background: #fff; border-radius: 24px; padding: 18px 20px; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--gms-ink); }
.nt-address .nt-envelope { width: 34px; height: 26px; }
.nt-sheet { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--gms-beige-warm); padding: var(--sp-7) var(--sp-7) var(--sp-9); }
.nt-sheet-inner { max-width: 480px; margin: 0 auto; }
.nt-prompt-actions { display: flex; flex-direction: column; gap: 12px; }
.nt-prompt-actions .btn { margin-top: 0; }
.nt-sheet .nt-quiet { display: block; margin: 18px auto 0; color: rgba(0, 0, 68, 0.65); font-weight: 600; font-size: 14px; }

/* Find your studio account, rows that answer on a tap (`tap_to_answer`):
   "Is this you?" (docs/2026-11-08-fewest-words-screens.md, section 5) and
   B-14's "Have you been here before?" (docs/2026-11-08-buyer-flow.md). The
   sheet on p-ground-warm; the title's one line in p-answer; one white card,
   the question in p-question (system 24/800), big one-line rows in p-answer
   (system 18/800, 58 tall, radius 18, p-ground fill); the other actions as
   plain links. */
.bk-sheet:has(.sa-tap) { background: var(--gms-beige-warm); }
.sa-line { margin: 8px 0 0; font-family: var(--font-body); font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--gms-ink); }
.sa-card { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 20px; border-radius: 24px; background: #FFFFFF; }
.sa-question { margin: 0 0 4px; font-family: var(--font-body); font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--gms-ink); }
.sa-card .bk-error:empty { display: none; }
.sa-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px;
  box-sizing: border-box; padding: 14px 18px; border: 2px solid transparent; border-radius: 18px; background: var(--gms-bg);
  color: var(--gms-ink); font-family: var(--font-body); font-size: 18px; font-weight: 800; line-height: 1.25; text-align: left;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sa-row:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 2px; }
.sa-row:disabled { opacity: 0.55; cursor: default; }
.sa-row.is-open { border-color: var(--gms-terracotta); }
.sa-chev { flex: none; font-size: 24px; line-height: 1; opacity: 0.5; }
.sa-open-box[hidden] { display: none; }
.sa-open-box textarea {
  width: 100%; min-height: 96px; box-sizing: border-box; padding: 14px 16px; border: 1.5px solid rgba(0, 0, 68, 0.18);
  border-radius: 16px; background: var(--gms-bg); font: inherit; font-size: 17px; line-height: 1.4; color: var(--gms-ink); resize: vertical;
}
.sa-tap .sa-link {
  height: auto; min-height: 44px; border: 0; border-radius: 0; font-family: var(--font-body); font-size: 15px; font-weight: 700;
  letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; color: var(--gms-ink);
}
/* ─── Fewest words, biggest type (8 Nov 2026) ───────────────────────────
   docs/2026-11-08-fewest-words-screens.md, screens 1 to 4; the GMS Design
   System's Product principles 9 and 10; the TapIn app canvas page "Fewest
   words, biggest type". One question or one fact per screen, in big type:
   titles Nersans p-hero (44, caps), the line under a title p-answer (18,
   800), questions p-question (24, 800), rows p-answer. Rows: full width, 58
   tall, radius 18, p-ground on a white card. */
.fw-blob { position: absolute; z-index: 0; width: 260px; height: 226px; right: -90px; top: -40px; pointer-events: none; }

/* Screen 4, Sign in: your number. The whole screen p-action terracotta,
   the blob ink 35%, CHECK IN and its line in warm beige, one warm beige
   card. */
.screen.fw { padding: 0 0 var(--sp-9); }
.fw--action { background: var(--gms-terracotta); color: var(--gms-beige-warm); }
.fw--action .fw-blob { color: var(--gms-ink); opacity: 0.35; }
.fw-head { position: relative; padding: 64px 26px 26px; }
.fw-head-inner { position: relative; z-index: 2; max-width: 480px; margin: 0 auto; }
.fw-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.fw-title:focus { outline: none; }
.fw-line { margin: 12px 0 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
.fw-head .door-book { margin: 16px 0 0; }

.fw-card { position: relative; z-index: 2; box-sizing: border-box; background: #FFFFFF; color: var(--gms-ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fw--action .fw-card { width: calc(100% - 44px); max-width: 488px; margin: 16px auto 0; }
.fw-card--warm { background: var(--gms-beige-warm); }
.fw-form { display: flex; flex-direction: column; gap: 12px; }
.fw-question { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--gms-ink); }
.fw-sub { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: rgba(0, 0, 68, 0.75); }
.fw-card .error { margin: 0; font-size: 15px; font-weight: 700; }
.fw-card .error:empty { display: none; }

/* The phone field: white, 58 tall, the dial code (a native select laid
   over it) then the number. */
.fw-phone { display: flex; align-items: center; height: 58px; box-sizing: border-box; padding: 0 16px; border: 2px solid transparent; border-radius: 18px; background: #FFFFFF; transition: border-color 160ms var(--ease-soft); }
.fw-phone:focus-within { border-color: var(--gms-terracotta); }
.fw-dial { position: relative; flex: none; display: flex; align-items: center; gap: 6px; align-self: stretch; padding-right: 12px; margin-right: 12px; }
.fw-dial::after { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 2px; background: rgba(0, 0, 68, 0.12); }
.fw-dial-code { font-size: 18px; font-weight: 800; color: var(--gms-ink); }
.fw-dial-code::after { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 2px 4px 7px; border-right: 2px solid rgba(0, 0, 68, 0.45); border-bottom: 2px solid rgba(0, 0, 68, 0.45); transform: rotate(45deg); vertical-align: middle; }
.fw-dial-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.fw-dial:has(.fw-dial-select:focus-visible) { outline: 3px solid var(--gms-blue); outline-offset: 2px; border-radius: 8px; }
.fw-phone input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--gms-ink); font: inherit; font-size: 18px; font-weight: 800; outline: none; -webkit-appearance: none; appearance: none; }
.fw-phone input::placeholder { color: rgba(0, 0, 68, 0.45); font-weight: 700; }

/* The terracotta primary, 58 tall, Nersans 19. */
.fw-btn { height: 58px; margin-top: 0; font-size: 19px; letter-spacing: 0.05em; }
.fw-legal { margin: 0; text-align: center; font-size: 12px; line-height: 1.4; color: rgba(0, 0, 68, 0.72); }
.fw-legal a { color: var(--gms-terracotta); text-decoration: underline; text-underline-offset: 2px; }

/* The texted code, in the card in the button's place. */
.fw-card .code-step { margin-top: 0; display: flex; flex-direction: column; gap: 12px; }
.fw-card .code-step .field { margin: 0; }
.fw-card .code-step-lead { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.fw-card .code-step .field input { height: 58px; border: 2px solid transparent; border-radius: 18px; font-size: 18px; font-weight: 800; }
.fw-card .code-step .field input:focus { border-color: var(--gms-terracotta); }
.fw-card .code-step .error { margin: 0; }
.fw-card .code-step .btn { height: 58px; margin-top: 0; font-size: 19px; letter-spacing: 0.05em; }
.fw-card .code-step .code-step-back { margin: 0 auto; font-size: 15px; font-weight: 700; color: rgba(0, 0, 68, 0.75); }
.fw-card .nt-card { margin-top: 0; background: #FFFFFF; }

/* Screen 2, checked in: the class on the green, no card. */
.ci .fw-class { margin: 0; padding: 0 0 6px; }
.fw-class-name { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
/* Solid white: white at 85% on the green is 4.3:1, under 4.5:1. */
.fw-class-line { margin: 4px 0 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: #FFFFFF; }
.ci .fw-card { margin: 16px -4px 0; }
/* Gold: the card 26 under the line, as on the board (the head's own 26). */
.ci--not .fw-card { margin-top: 0; }
/* The whole page in the result's colour, the legal footer included: no
   beige band under the green or the gold. */
body:has(.screen.ci--in.is-active) { background: #147A4F; }
body:has(.screen.ci--in.is-active) .legal-footer { color: #FFFFFF; }
body:has(.screen.ci--not.is-active) { background: #D4A82C; }
body:has(.screen.ci--not.is-active) .legal-footer { color: #000044; }
.ci .fw-classic { margin: 16px -4px 0; }
/* The stamps: "Stamps" on the rows' left edge, the balance inside a big
   solid terracotta star lined up with the USE IT pills. */
.fw-stamps { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 3px 0 16px; }
.fw-stamps-label { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; }
.fw-star { position: relative; flex: none; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; color: var(--gms-terracotta); }
.fw-star svg { position: absolute; inset: 0; overflow: visible; }
.fw-star-n { position: relative; margin-top: 6px; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--gms-beige-warm); }
.fw-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.fw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; box-sizing: border-box; padding: 8px 10px 8px 16px; border-radius: 18px; background: var(--gms-bg); color: var(--gms-ink); font-size: 18px; line-height: 1.25; font-weight: 800; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fw-row:focus-visible, .fw-link:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 2px; }
.fw-row-label { min-width: 0; overflow-wrap: anywhere; }
.fw-pill { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--gms-terracotta); color: var(--gms-beige-warm); font-family: var(--font-display); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; }
.fw-link { display: flex; align-items: center; justify-content: center; align-self: center; min-height: 48px; padding: 0 8px; color: var(--gms-ink); font-size: 17px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Screen 3, the name fix: labels 13 caps, fields 58 tall on p-ground, the
   names in p-answer, CHECK AGAIN. */
.fw-field { display: flex; flex-direction: column; gap: 6px; }
.fw-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0, 0, 68, 0.72); }
.fw-field input { height: 58px; box-sizing: border-box; padding: 0 16px; border: 2px solid transparent; border-radius: 18px; background: var(--gms-bg); color: var(--gms-ink); font: inherit; font-size: 18px; font-weight: 800; outline: none; -webkit-appearance: none; appearance: none; }
.fw-field input:focus { border-color: var(--gms-terracotta); }
.fw-card .st-fix-error { margin: 0; font-size: 15px; }

/* "Number changed? Use your email" (9 Nov 2026; ClipNumberChange): the plain
   link on screen 4's card, then Use your email and Check your email in the
   same look (full-bleed terracotta, one warm beige card). Add your number is
   screen 4 with its words swapped. */
.fw-plain { align-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--gms-ink); font: inherit; font-size: 16px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fw-plain[hidden] { display: none; }
/* The code step brings its own "Use a different number": one link only. */
.fw-card:has(#code-step) #number-changed-back { display: none; }
.fw-plain:focus-visible { outline: 3px solid var(--gms-blue); outline-offset: 2px; border-radius: 8px; }
.fw-email { height: 58px; box-sizing: border-box; width: 100%; padding: 0 16px; border: 2px solid transparent; border-radius: 18px; background: #FFFFFF; color: var(--gms-ink); font: inherit; font-size: 18px; font-weight: 800; outline: none; -webkit-appearance: none; appearance: none; }
.fw-email:focus { border-color: var(--gms-terracotta); }
.fw-email::placeholder { color: rgba(0, 0, 68, 0.45); font-weight: 700; }
.fw-card .nc-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 16px; border-radius: 18px; background: #FFFFFF; text-align: center; }
.fw-card .nc-wait[hidden] { display: none; }
.nc-wait-line { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--gms-ink); }
.nc-waiting { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: rgba(0, 0, 68, 0.75); }
.nc-fine { margin: 0; text-align: center; font-size: 15px; line-height: 1.35; font-weight: 700; color: rgba(0, 0, 68, 0.75); }

/* One screen for every code (CodeScreen; Raj, 13 Nov 2026): the job's small
   heading over "Enter your code" / "Confirm it's you", the name card, and
   the change link under the hint. */
.bk-eyebrow, .cs-eyebrow { margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gms-terracotta); }
.bk-eyebrow + .bk-h { margin-top: 8px; }
.bk-who { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: #fff; }
.bk-who-dot { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--gms-terracotta); color: var(--gms-beige-warm); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.bk-who-text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: rgba(0, 0, 68, 0.72); }
.bk-who-text b { font-size: 16px; color: var(--gms-ink); }
.bk-change { display: block; margin: 14px auto 0; }
.code-step .cs-eyebrow { margin-top: 0; }
.code-step .cs-title { margin: 6px 0 0; font-family: var(--font-display); font-size: 28px; line-height: 1; text-transform: uppercase; }
.code-step .cs-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.code-step .cs-hint { margin: 10px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: rgba(0, 0, 68, 0.72); }
.code-step .bk-code { margin-top: 16px; }
.nc-wait.cs-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 16px; padding: 22px 16px; border-radius: 18px; background: #FFFFFF; text-align: center; }

/* ─── The 1.13 redesign (enable_web_113, 17 Nov 2026) ─────────────────────
   Board 10's Web row (TapIn app canvas, App screens (1.13)). Solid
   surfaces only, the apps' tokens. Green: "All set, Nora" and one white
   card pinned to the bottom, Stamps in a terracotta star and two rewards
   with hearts. Two steps (Urban Sports Club, EGYM Wellpass): peach until
   both are done, step rows on the left in a 60 px column. */
.screen.ci.look-113 { padding-bottom: 44px; }
.screen.ci.look-113.is-active { display: flex; flex-direction: column; }
.ci.look-113 .ci-body { flex: 1; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
.ci.look-113 .ci-body > .st-after { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 480px; margin: 0 auto; }
.ci.look-113.ci--in .ci-body > .st-after > :first-child,
.ci.look-113.ci--now .ci-body > .st-after > :first-child { margin-top: auto; }
.ci.look-113.ci--in .ci-body > .st-after > .as-card:first-child { margin-top: auto; }
.ci.look-113 .ci-head { width: 100%; box-sizing: border-box; }

.screen.ci--step, .screen.ci--now { background: var(--gms-beige-warm); color: var(--gms-ink); }
.ci--step .fw-blob, .ci--now .fw-blob { color: var(--gms-ink); opacity: 0.07; }
.ci-mark--step { background: #000044; }
.ci-mark--now { background: #B0482D; }
.ci-mark-n { font-family: var(--font-display); font-size: 25px; line-height: 1; color: #FDE7DA; }
body:has(.screen.ci--step.is-active), body:has(.screen.ci--now.is-active) { background: var(--gms-beige-warm); }

/* The step rows. */
.ts-top[hidden], .ts-below[hidden] { display: none; }
.ts-row { margin: 0; display: flex; align-items: center; gap: 14px; }
.ts-row--waiting { opacity: 0.55; }
.ts-dot { width: 60px; flex: none; display: flex; justify-content: center; }
.ts-n { width: 36px; height: 36px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid #B0482D; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; line-height: 1; color: #B0482D; }
.ts-tick { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ts-tick--navy { background: #000044; }
.ts-tick--white { background: #FFFFFF; }
.ts-name { font-family: var(--font-display); font-size: 20px; line-height: 1; text-transform: uppercase; }
.ts-line { display: block; width: 3px; height: 96px; margin: 8px 0 8px 28.5px; border-radius: 2px; background: rgba(0, 0, 68, 0.25); }
.ts-line--short { height: 40px; margin: 22px 0 10px 28.5px; }
.ci--in .ts-line { background: rgba(255, 255, 255, 0.45); }
.ci--in .ts-name { color: #FFFFFF; }

/* A gold end in step 1: the small strip above the "!". */
.ts-strip { margin: -24px 0 18px; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; line-height: 1; text-transform: uppercase; }
.ts-strip-mark { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #000044; color: #D4A82C; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 800; }
.ts-strip-line { width: 22px; height: 2px; flex: none; background: rgba(0, 0, 68, 0.35); }
.ts-strip-n { width: 24px; height: 24px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(0, 0, 68, 0.45); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(0, 0, 68, 0.55); }
.ts-strip-name { color: rgba(0, 0, 68, 0.55); }

/* Step 2 in focus: Open <partner> and Done at the bottom. */
.ts-actions { display: flex; flex-direction: column; gap: 6px; margin: 0 -4px; }
.ts-open { width: 100%; height: 64px; margin: 0; padding: 0 16px; font-size: 18px; letter-spacing: 0.03em; white-space: nowrap; }
.ts-done { height: 48px; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 800; color: #000044; text-decoration: underline; cursor: pointer; }

/* The swap: step 1 shrinks up while step 2 grows into its place. */
@keyframes ts-shrink { from { transform: translateY(60px) scale(1.6); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes ts-grow { from { transform: translateY(110px) scale(0.6); opacity: 0.55; } to { transform: none; opacity: 1; } }
.ts-swap .ts-top { transform-origin: 0 0; animation: ts-shrink 500ms var(--ease-soft); }
.ts-swap .ci-mark, .ts-swap .ci-title { transform-origin: 0 50%; animation: ts-grow 500ms var(--ease-soft); }
@media (prefers-reduced-motion: reduce) { .ts-swap .ts-top, .ts-swap .ci-mark, .ts-swap .ci-title { animation: none; } }

/* The green's one card. */
.as-card { margin: 16px -4px 0; background: #FFFFFF; color: #000044; border-radius: 24px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.as-stamps { display: flex; align-items: center; justify-content: space-between; padding-left: 4px; }
.as-stamps-label { margin: 0; font-size: 20px; font-weight: 800; }
.as-star { position: relative; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.as-star svg { position: absolute; inset: 0; }
.as-star-n { position: relative; margin-top: 5px; font-family: var(--font-display); font-size: 20px; line-height: 1; color: #FDE7DA; }
.as-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-radius: 16px; background: #FBF6F1; padding: 0 6px 0 16px; }
.as-row-label { flex: 1; font-size: 17px; font-weight: 800; color: #000044; text-decoration: none; overflow-wrap: anywhere; }
.as-heart { width: 44px; height: 44px; flex: none; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.as-heart path { fill: none; }
.as-heart[aria-pressed="true"] path { fill: #B0482D; }

/* 1.13 (board 10c; Raj, 18 Nov 2026, decision 11): under the green card,
   when they apply, the small last-name ask, the app row and "Something
   wrong? Tell us", each one line on the green. Solid tints, no glass. */
.as-ask { margin: 12px -4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 8px 8px 8px 14px; }
.as-ask-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.as-ask-q { flex: none; color: #FFFFFF; font-size: 15px; font-weight: 800; }
.as-ask-input { flex: 1; min-width: 0; height: 40px; box-sizing: border-box; border: 0; border-radius: 12px; background: #F2F2F2; padding: 0 12px; font: inherit; font-size: 16px; color: #000044; }
.as-ask-save { flex: none; height: 40px; border: 0; border-radius: 999px; background: #FFFFFF; color: #147A4F; font: inherit; font-size: 15px; font-weight: 800; padding: 0 16px; cursor: pointer; }
.as-ask-save:disabled { opacity: 0.6; }
.as-ask-error { flex-basis: 100%; margin: 0; color: #FFFFFF; font-size: 14px; }
.as-ask-error:empty { display: none; }
.as-app { margin: 10px -4px 0; min-height: 52px; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 8px 14px 8px 10px; color: #FFFFFF; text-decoration: none; }
.as-app-gm { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #B0482D; color: #FDE7DA; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.as-app-title { flex: 1; font-size: 16px; font-weight: 800; }
.as-app-chev { flex: none; font-size: 22px; font-weight: 800; }
.ci.look-113 .rp-cliplink { display: block; margin: 12px auto 0; color: #FFFFFF; font-size: 15px; font-weight: 700; text-decoration: underline; }
