/* Barbwired On Demand: its own look.
   The barber pole means "live": spinning red/white/blue appears only on things that are live right now.
   Big Shoulders for time and money, Geist (the main site's face) for everything else. */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders OD';
  src: url('fonts/big-shoulders-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Tokens live on .od (On Demand pages) and .od-scope (the dashboard tab), never on :root,
   so they can't collide with the main site's variables of the same name. */
.od, .od-scope {
  --bg: #EEF0F3;
  --surface: #FFFFFF;
  --surface-2: #F5F6F8;
  --text: #12151C;
  --muted: #5D6575;
  --line: #DCE0E7;
  --red: #E0242F;
  --red-2: #B81822;
  --on-red: #FFFFFF;
  --blue: #1D46D2;
  --on-blue: #FFFFFF;
  --bit: #12151C;
  --white: #FFFFFF;
  --map-bg: #E4E7EC;
  --map-street: #D2D7DF;
  --map-art: #C1C8D3;
  --map-fwy: #B3BCCB;
  --ring: rgba(29, 70, 210, .16);
  --scrim: rgba(10, 17, 41, .42);
  --shadow: 0 1px 0 rgba(18, 21, 28, .04), 0 18px 40px -18px rgba(18, 21, 28, .35);
  --f-ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-disp: 'Big Shoulders OD', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --pole: repeating-linear-gradient(-45deg, var(--red) 0 7px, var(--white) 7px 12px, var(--blue) 12px 19px, var(--white) 19px 24px);
  --pole-ring: repeating-conic-gradient(var(--red) 0 20deg, var(--white) 20deg 30deg, var(--blue) 30deg 50deg, var(--white) 50deg 60deg);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* Night: the main site's dark switch (html[data-theme="dark"], saved as barbwired.theme) */
:root[data-theme="dark"] .od, :root[data-theme="dark"] .od-scope {
  --bg: #0A1129; --surface: #111A38; --surface-2: #172247; --text: #F1F3F8; --muted: #98A3C0; --line: #24305A;
  --red: #FF3A45; --red-2: #E0242F; --blue: #6B8CFF; --on-blue: #0A1129; --bit: #FFFFFF;
  --map-bg: #0D1532; --map-street: #17224A; --map-art: #21305F; --map-fwy: #2A3A74;
  --ring: rgba(107, 140, 255, .2); --scrim: rgba(3, 6, 18, .6);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="dark"] body.od { background: #0A1129; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.od-locked { overflow: hidden; }
/* nothing (waves, confetti) may widen the page on phones */
html:has(> body.od) { overflow-x: hidden; }
body.od { overflow-x: clip; }
body.od {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.45 var(--f-ui); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100vh; min-height: 100dvh;
}
:where(.od, .od-scope) img { max-width: 100%; display: block; }
:where(.od, .od-scope) a { color: inherit; }
:where(.od, .od-scope) button { font: inherit; color: inherit; }
:is(.od, .od-scope) :focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.od-scope { font-family: var(--f-ui); color: var(--text); }
.od-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.od-display { font-family: var(--f-disp); font-weight: 700; letter-spacing: .005em; line-height: .92; }
/* digits inside a big number: same size as the number, fixed width so timers don't wobble */
.dg { display: inline-block; width: .5em; text-align: center; font-size: inherit !important; font-weight: inherit !important; color: inherit !important; letter-spacing: 0 !important; }
.od-muted { color: var(--muted); }

/* ---------- the pole ---------- */
.pole { background: var(--pole); background-size: 33.94px 33.94px; animation: od-pole 1.1s linear infinite; }
@keyframes od-pole { to { background-position: 0 33.94px; } }
@keyframes od-spin { to { transform: rotate(1turn); } }

/* ---------- header ---------- */
.odh {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.odh__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.odh__brand img { width: 38px; height: 38px; }
.od-mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-disp); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.od-mark .pole { width: 9px; height: 24px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 18%, transparent); }
.od-mark.is-off .pole { animation: none; filter: grayscale(1) opacity(.45); }
.odh__sp { flex: 1; }
.od-iconbtn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: transform .25s var(--spring), background .2s;
}
.od-iconbtn:active { transform: scale(.88); }
.od-iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-iconbtn[aria-pressed="false"] .on, .od-iconbtn[aria-pressed="true"] .off { display: none; }
.odh__link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }

/* ---------- buttons ---------- */
.od-btn {
  --b: var(--surface); --c: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--b); color: var(--c); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .32s var(--spring), box-shadow .2s, background .2s, opacity .2s;
}
.od-btn:active:not(:disabled) { transform: scale(.955); transition-duration: .08s; }
.od-btn:disabled { opacity: .45; cursor: not-allowed; }
.od-btn--red { --b: var(--red); --c: var(--on-red); border-color: transparent; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--red) 80%, transparent); }
.od-btn--red:hover:not(:disabled) { --b: var(--red-2); }
.od-btn--ink { --b: var(--text); --c: var(--bg); border-color: transparent; }
.od-btn--blue { --b: var(--blue); --c: var(--on-blue); border-color: transparent; }
.od-btn--ghost { --b: transparent; }
.od-btn--wide { width: 100%; }
.od-btn--big { min-height: 60px; font-size: 17px; }
.od-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.od-btn .od-btn__price { font-family: var(--f-disp); font-size: 22px; font-weight: 700; letter-spacing: .01em; padding-left: 12px; margin-left: 2px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.od-link { background: none; border: 0; padding: 6px 2px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.od-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: transform .3s var(--spring), border-color .15s, background .15s, color .15s;
}
.od-chip:active { transform: scale(.93); transition-duration: .08s; }
.od-chip[aria-pressed="true"], .od-chip[aria-checked="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ---------- avatars (pole ring = live) ---------- */
.od-av { --s: 44px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; flex: none; }
.od-av::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--line); }
.od-av.is-live::before { background: var(--pole-ring); animation: od-spin 3.2s linear infinite; }
.od-av__face { position: relative; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--surface); }
.od-av--0 .od-av__face { background: #1B2440; color: #fff; }
.od-av--1 .od-av__face { background: var(--blue); color: var(--on-blue); }
.od-av--2 .od-av__face { background: #7A1F27; color: #fff; }
.od-av__face b { font-family: var(--f-disp); font-weight: 700; font-size: calc(var(--s) * .4); letter-spacing: .02em; }
.od-av__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- photos ---------- */
.od-photo { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.od-photo__art, .od-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- stars ---------- */
.od-stars { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.od-stars svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- radar ---------- */
.od-radar { position: relative; aspect-ratio: 1; width: 100%; border-radius: 32px; overflow: hidden; background: var(--map-bg); isolation: isolate; }
.od-radar__map, .od-radar__route { position: absolute; inset: 0; width: 100%; height: 100%; }
.od-radar__map .st { stroke: var(--map-street); stroke-width: 2.2; }
.od-radar__map .art { stroke: var(--map-art); stroke-width: 5; }
.od-radar__map .fwy { stroke: var(--map-fwy); stroke-width: 11; fill: none; stroke-linecap: round; }
.od-radar__map .ring { fill: none; stroke: var(--blue); stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 3 6; }
.od-radar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 52%, color-mix(in srgb, var(--map-bg) 85%, transparent) 78%); }
.od-radar__sweep { position: absolute; inset: -10%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, var(--ring) 355deg, transparent 360deg); animation: od-spin 5.5s linear infinite; pointer-events: none; }
.od-radar.is-quiet .od-radar__sweep { display: none; }
.od-radar__labels span { position: absolute; left: 50%; transform: translate(-50%, -50%); font-size: 10.5px; font-weight: 600; color: var(--blue); opacity: .75; background: var(--map-bg); padding: 0 4px; border-radius: 4px; }
.od-radar__route path { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 9; animation: od-march 1s linear infinite; }
@keyframes od-march { to { stroke-dashoffset: -11; } }
.od-radar__you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; z-index: 2; }
.od-radar__you i { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--surface); box-shadow: 0 0 0 0 var(--ring); animation: od-ping 2.2s var(--ease) infinite; }
.od-radar__you b { position: absolute; top: 22px; font-size: 11px; font-weight: 700; color: var(--blue); }
@keyframes od-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 45%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.od-pin { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; z-index: 3;
  transition: left 1.2s linear, top 1.2s linear, transform .3s var(--spring); }
.od-pin .od-av { --s: 46px; box-shadow: var(--shadow); border-radius: 50%; }
.od-pin:hover { transform: translate(-50%, -50%) scale(1.08); }
.od-pin:active { transform: translate(-50%, -50%) scale(.92); }
.od-pin.is-new { animation: od-pop .6s var(--spring) both; }
.od-pin.is-focus { z-index: 4; transform: translate(-50%, -50%) scale(1.15); }
.od-pin__eta { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--surface); padding: 1px 7px; border-radius: 999px; box-shadow: var(--shadow); }
@keyframes od-pop { from { transform: translate(-50%, -50%) scale(0); } }

/* ---------- 6.0: the real map ---------- */
.od-map { position: relative; width: 100%; aspect-ratio: 1; border-radius: 32px; overflow: hidden; background: var(--map-bg); isolation: isolate; z-index: 0; }
.od-map .leaflet-container, .od-map.leaflet-container { background: var(--map-bg); font-family: var(--f-ui); }
/* OpenStreetMap's colorful tiles, calmed down to match On Demand (and flipped at night) */
.od-map--osm .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.88); }
:root[data-theme="dark"] .od-map--osm .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(.9) hue-rotate(180deg); }
.od-map .leaflet-control-attribution { font-size: 9.5px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); border-radius: 8px 0 0 0; }
.od-map .leaflet-control-attribution a { color: var(--muted); }
.od-map .leaflet-control-zoom { border: 0; box-shadow: var(--shadow); border-radius: 14px; overflow: hidden; margin: 0 12px 14px 0; }
.od-map .leaflet-control-zoom a { background: var(--surface); color: var(--text); border-color: var(--line); width: 34px; height: 34px; line-height: 34px; }
/* Leaflet places the icon's top-left corner on the spot (and owns its transform), so the pieces center themselves */
.od-mapin { background: none; border: 0; cursor: pointer; width: 0 !important; height: 0 !important; }
.od-mapin .od-av { --s: 44px; position: absolute; left: -22px; top: -22px; box-shadow: var(--shadow); border-radius: 50%; }
.od-mapin.is-focus .od-av { --s: 52px; left: -26px; top: -26px; }
.od-mapin .od-pin__eta { position: absolute; left: 0; top: 24px; transform: translateX(-50%); }
.od-mapin.is-focus .od-pin__eta { top: 28px; }
.od-mapyou { background: none; border: 0; }
.od-mapyou i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--surface); animation: od-ping 2.2s var(--ease) infinite; }
.od-mapyou b { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--blue); white-space: nowrap; text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface); }
.odc__mini.od-map { aspect-ratio: 16 / 10; border-radius: 24px; }

/* Earliest available */
.odc__fast .od-btn small { display: block; font: 500 12.5px/1.3 var(--f-ui); opacity: .85; margin-top: 2px; }

/* A barber, short and to the point */
.odp__line { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13.5px; }
.odp__eta { display: inline-flex; align-items: baseline; gap: 4px; color: var(--text); font-weight: 600; }

/* Ready to go */
.od-ready { display: grid; gap: 10px; }
.od-ready__item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px/1.3 var(--f-ui); cursor: pointer; min-height: 52px; }
.od-ready__item i { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.od-ready__item i svg { width: 16px; height: 16px; fill: none; stroke: var(--on-red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.od-ready__item[aria-checked="true"] { border-color: var(--red); }
.od-ready__item[aria-checked="true"] i { background: var(--red); border-color: var(--red); }
.od-ready__item[aria-checked="true"] i svg { opacity: 1; }
.od-ready__fine { color: var(--muted); font-size: 13px; margin: 2px 2px 0; }

.odb__still { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--red) 12%, var(--surface)); border: 1.5px solid var(--red); }
.odb__still[hidden] { display: none; }
.odb__still p { margin: 0; flex: 1; font-size: 14px; line-height: 1.35; }
.odb__still p b { display: block; font-size: 15px; }
.odb__still.is-paused { background: var(--red); color: var(--on-red); }
.odb__still.is-paused .od-btn { background: var(--surface); color: var(--text); }

/* Both sides live: people looking, and the barber's own area */
.odb__area { display: grid; gap: 10px; }
.odb__area[hidden] { display: none; }
.odb__area .od-map { aspect-ratio: 16 / 11; border-radius: 26px; }
.odb__demand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.odb__demand i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 var(--ring); animation: od-ping 2.2s var(--ease) infinite; }
.odb__demand span { color: var(--muted); font-weight: 500; }

/* "My cut is done": the client confirms, then pays the rest and tips */
.od-confirm { display: grid; gap: 10px; justify-items: center; text-align: center; }
.od-tell { padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--blue) 10%, var(--surface)); font-size: 14px; line-height: 1.4; }

/* ---------- sheet ---------- */
.od-sheetwrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.od-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; }
.od-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 92dvh;
  display: flex; flex-direction: column; background: var(--surface); border-radius: 28px 28px 0 0;
  transform: translateY(105%); transition: transform .42s var(--ease); outline: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.od-sheet--tall { height: 92dvh; }
.od-sheetwrap.is-open { pointer-events: auto; }
.od-sheetwrap.is-open .od-scrim { opacity: 1; }
.od-sheetwrap.is-open .od-sheet { transform: none; }
.od-sheet__grab { flex: none; height: 26px; width: 100%; border: 0; background: none; cursor: grab; touch-action: none; position: relative; }
.od-sheet__grab::after { content: ''; position: absolute; left: 50%; top: 10px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
.od-sheet__body { overflow: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
@media (min-width: 900px) {
  .od-sheet { bottom: 50%; transform: translateY(calc(50% + 40px)) scale(.97); opacity: 0; border-radius: 28px; transition: transform .38s var(--ease), opacity .25s; }
  .od-sheetwrap.is-open .od-sheet { transform: translateY(50%); opacity: 1; }
  .od-sheet--tall { height: auto; }
}

/* ---------- toast + confetti ---------- */
#od-toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.od-toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 16px; font-weight: 500; box-shadow: var(--shadow); animation: od-drop .45s var(--spring) both; }
.od-toast--bad { background: var(--red); color: var(--on-red); }
.od-toast.is-out { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes od-drop { from { transform: translateY(-16px) scale(.96); opacity: 0; } }
.od-bit { position: fixed; z-index: 95; width: 7px; height: 13px; border-radius: 2px; pointer-events: none; }

/* ---------- hold to go live ---------- */
.od-hold {
  --p: 0; --size: min(62vw, 248px);
  position: relative; width: var(--size); height: var(--size); border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .4s var(--spring);
}
.od-hold::before { content: ''; position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--p) * 360deg), var(--line) 0);
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
          mask: radial-gradient(circle closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
.od-hold.is-holding { transform: scale(calc(1 - var(--p) * .06)); transition: none; }
.od-hold__in { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; }
.od-hold__big { font-family: var(--f-disp); font-weight: 700; font-size: 44px; line-height: .9; }
.od-hold__small { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.od-hold__fill { position: absolute; inset: 10px; border-radius: 50%; background: var(--pole); background-size: 33.94px 33.94px; opacity: calc(var(--p) * .18); }
.od-hold.is-hint { animation: od-nudge .45s var(--ease); }
.od-hold.is-hint .od-hold__small { color: var(--red); }
@keyframes od-nudge { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }

/* live state of the same button */
.od-hold.is-live { background: var(--surface); }
.od-hold.is-live::before { background: var(--pole-ring); animation: od-spin 4s linear infinite;
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
          mask: radial-gradient(circle closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.od-hold.is-live .od-hold__big { color: var(--red); }
.od-waves { position: absolute; inset: 0; pointer-events: none; }
.od-waves i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: od-wave 3s var(--ease) infinite; }
.od-waves i:nth-child(2) { animation-delay: 1s; }
.od-waves i:nth-child(3) { animation-delay: 2s; }
@keyframes od-wave { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.42); opacity: 0; } }

/* ---------- slide to accept ---------- */
.od-slide { --x: 0px; --sp: 0; position: relative; height: 68px; border-radius: 999px; background: color-mix(in srgb, var(--red) calc(14% + var(--sp) * 86%), var(--surface-2)); overflow: hidden; user-select: none; -webkit-user-select: none; }
.od-slide__label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 56px; font-weight: 600; font-size: 16.5px; color: var(--text); opacity: calc(1 - var(--sp) * 1.6); pointer-events: none; }
.od-slide__label span { background: linear-gradient(90deg, var(--text) 40%, color-mix(in srgb, var(--text) 35%, transparent) 50%, var(--text) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: od-shine 2.4s linear infinite; }
@keyframes od-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.od-slide__thumb { position: absolute; left: 6px; top: 6px; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: grab; touch-action: none;
  background: var(--red); color: var(--on-red); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); transform: translateX(var(--x)); transition: transform .45s var(--spring); }
.od-slide.is-drag .od-slide__thumb { transition: none; cursor: grabbing; }
.od-slide__thumb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.od-slide.is-done .od-slide__thumb { background: var(--white); color: var(--red); }
.od-slide.is-hint .od-slide__thumb { animation: od-hint .6s var(--ease); }
@keyframes od-hint { 30% { transform: translateX(28px); } 60% { transform: translateX(-2px); } }

/* ---------- lists ---------- */
.od-list { list-style: none; margin: 0; padding: 0; }
.od-row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 10px; margin: 0 -10px; border: 0; border-radius: 18px; background: none; text-align: left; cursor: pointer;
  transition: background .15s, transform .3s var(--spring);
}
.od-row:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.od-row:active { transform: scale(.98); transition-duration: .08s; }
.od-row + .od-row { box-shadow: 0 -1px 0 var(--line); }
.od-row__name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.od-row__meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.od-row__eta { text-align: right; }
.od-row__eta b { display: block; font-family: var(--f-disp); font-size: 28px; line-height: .9; }
.od-row__eta span { font-size: 12px; color: var(--muted); }

/* ---------- section titles ---------- */
.od-h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 22px 0 6px; }
.od-h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 0; }

/* =========================================================
   CLIENT
   ========================================================= */
.odc { width: 100%; max-width: 560px; margin: 0 auto; padding: 4px 16px calc(120px + env(safe-area-inset-bottom)); }
.odc__map { position: relative; margin-top: 8px; }
.odc__status { position: absolute; left: 14px; top: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; }
.odc__status .pole { width: 8px; height: 18px; border-radius: 4px; }
.odc__status.is-none .pole { animation: none; filter: grayscale(1) opacity(.5); }

/* the one-line address picker */
.od-place { position: relative; }
.od-place__btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: transform .3s var(--spring); }
.od-place__btn:active { transform: scale(.98); }
.od-place__pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); flex: none; }
.od-place__pin svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.od-place__txt { flex: 1; min-width: 0; }
.od-place__label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.od-place__addr { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-place__chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--spring); flex: none; }
.od-place.is-open .od-place__chev { transform: rotate(180deg); }
.od-place__menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.od-place.is-open .od-place__menu { grid-template-rows: 1fr; }
.od-place__menu > div { overflow: hidden; }
.od-place__inner { margin-top: 8px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.od-place__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.od-place__opt:hover { background: var(--surface-2); }
.od-place__opt[aria-checked="true"]::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.od-place__opt small { display: block; color: var(--muted); }
.od-place__new { display: grid; gap: 8px; padding: 8px 4px 4px; }
.od-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; }
.od-input:focus { outline: none; border-color: var(--blue); }
.od-input--area { min-height: 72px; padding: 12px 14px; resize: vertical; }
.od-field { display: grid; gap: 6px; }
.od-field > span { font-size: 13px; font-weight: 600; color: var(--muted); }

/* fastest available */
.odc__fast { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.odc__fast .od-btn { width: 100%; max-width: 528px; margin: 0 auto; display: flex; }
@media (min-width: 960px) {
  .odc { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 32px; align-items: start; padding-bottom: 40px; }
  .odc__left { position: sticky; top: 72px; }
  .odc__fast { position: static; padding: 8px 0 0; background: none; }
  .odc__fast .od-btn { max-width: none; }
  .odc__right .od-h2:first-of-type { margin-top: 18px; }
}
.odc__empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.odc__empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* barber sheet */
.odp__head { display: flex; align-items: center; gap: 14px; }
.odp__head .od-av { --s: 64px; }
.odp__name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.odp__meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.odp__bio { margin: 12px 0 0; }
.odp__photos { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
.odp__photos::-webkit-scrollbar { display: none; }
.odp__photos .od-photo { aspect-ratio: 4 / 5; scroll-snap-align: start; }
.od-cuts { display: grid; gap: 8px; }
.od-cut { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: transform .3s var(--spring), border-color .15s, box-shadow .15s; }
.od-cut:active { transform: scale(.975); transition-duration: .08s; }
.od-cut b { font-weight: 600; }
.od-cut small { grid-column: 1; color: var(--muted); }
.od-cut__price { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-disp); font-size: 28px; }
.od-cut[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 1.5px var(--red) inset; }
.od-bill { margin: 16px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 6px; font-size: 14.5px; }
.od-bill div { display: flex; justify-content: space-between; gap: 12px; }
.od-bill dt { color: var(--muted); }
.od-bill dd { margin: 0; font-variant-numeric: tabular-nums; }
.od-bill .is-total { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); font-weight: 650; font-size: 16px; }
.od-bill .is-total dt { color: var(--text); }
.od-bill s { color: var(--muted); }
.od-bill__note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.od-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.odp__cta { position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(to top, var(--surface) 75%, transparent); margin-top: 8px; }

/* full-screen stages (waiting, on the way, done) */
.od-stage { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; display: flex; flex-direction: column; animation: od-rise .45s var(--ease) both; }
@keyframes od-rise { from { transform: translateY(24px); opacity: 0; } }
.od-stage__in { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.od-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.od-stage__foot { margin-top: auto; display: grid; gap: 10px; }

/* the countdown ring while waiting for a barber */
.od-ring { --k: 1; position: relative; width: min(70vw, 260px); aspect-ratio: 1; margin: 12px auto 0; display: grid; place-items: center; }
.od-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.od-ring circle { fill: none; stroke-width: 3; }
.od-ring .bg { stroke: var(--line); }
.od-ring .fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--k) * 100); transition: stroke-dashoffset 1s linear; }
.od-ring .od-av { --s: 112px; }
.od-ring__pulse { position: absolute; inset: 18%; border-radius: 50%; border: 2px solid var(--red); animation: od-wave 2.2s var(--ease) infinite; opacity: 0; }
.od-ring__sec { position: absolute; bottom: 12%; font-family: var(--f-disp); font-size: 22px; background: var(--bg); padding: 0 8px; }
.od-stage__title { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 0; }
.od-stage__sub { text-align: center; color: var(--muted); margin: 0 auto; max-width: 34ch; }

/* the be-there-by countdown */
.od-count { text-align: center; }
.od-count__num { font-family: var(--f-disp); font-weight: 700; font-size: clamp(84px, 26vw, 128px); line-height: .85; letter-spacing: .01em; }
.od-count__lbl { color: var(--muted); font-weight: 500; margin-top: 6px; }
.od-count.is-tight .od-count__num { color: var(--red); }
.od-count.is-late .od-count__num { color: var(--red); }
.od-track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.od-track i { display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: var(--pole); background-size: 33.94px 33.94px; animation: od-pole 1.1s linear infinite; border-radius: 4px; transition: width 1s linear; }

.od-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.od-steps li { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); transition: color .3s, border-color .3s; }
.od-steps li.is-done { color: var(--text); border-color: var(--text); }
.od-steps li.is-now { color: var(--red); border-color: var(--red); }

.od-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.od-who .od-av { --s: 52px; }
.od-who__txt { flex: 1; min-width: 0; }
.od-who__txt b { display: block; font-size: 16.5px; }
.od-who__txt span { color: var(--muted); font-size: 13.5px; }
.od-note { font-size: 13.5px; color: var(--muted); text-align: center; }
.od-note b { color: var(--text); font-weight: 600; }

.od-check { width: 96px; height: 96px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--on-red); animation: od-pop2 .6s var(--spring) both; }
.od-check svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: od-draw .5s .25s var(--ease) forwards; }
@keyframes od-pop2 { from { transform: scale(0); } }
@keyframes od-draw { to { stroke-dashoffset: 0; } }

.od-rate { display: flex; justify-content: center; gap: 6px; }
.od-rate button { width: 50px; height: 50px; border: 0; background: none; cursor: pointer; color: var(--line); transition: transform .35s var(--spring), color .15s; padding: 0; }
.od-rate button svg { width: 100%; height: 100%; fill: currentColor; }
.od-rate button.is-on { color: var(--red); transform: scale(1.12); }
.od-rate button:active { transform: scale(.85); }
.od-tips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   BARBER
   ========================================================= */
.odb { width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 16px calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 22px; }
.odb__state { text-align: center; display: grid; gap: 6px; justify-items: center; padding-top: 6px; }
.odb__label { font-size: 15px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.odb__label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.odb.is-live .odb__label { color: var(--red); }
.odb.is-live .odb__label .dot { background: var(--red); animation: od-blink 1.2s steps(2) infinite; }
@keyframes od-blink { 50% { opacity: .2; } }
.odb__holdwrap { position: relative; display: grid; place-items: center; padding: 26px 0 10px; }
.odb__today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.odb__today div { background: var(--surface); padding: 14px 10px 12px; text-align: center; }
.odb__today b { display: block; font-family: var(--f-disp); font-size: 34px; line-height: .95; }
.odb__today span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.odb__radius { display: grid; gap: 10px; }
.odb__radius .od-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.odb__prof { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; cursor: pointer; text-align: left; width: 100%; transition: transform .3s var(--spring); }
.odb__prof:active { transform: scale(.98); }
.odb__prof .od-av { --s: 50px; }
.odb__prof b { display: block; }
.odb__prof span { color: var(--muted); font-size: 13.5px; }
.odb__prof svg { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }

/* incoming request: DoorDash-style offer card */
.od-offer { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; justify-items: center; overflow: auto; animation: od-fade .2s both; }
@keyframes od-fade { from { opacity: 0; } }
.od-offer__card { width: 100%; max-width: 520px; background: var(--surface); border-radius: 30px 30px 0 0; padding: 20px 20px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 16px; animation: od-up .5s var(--spring) both; position: relative; overflow: hidden; }
@media (min-width: 640px) { .od-offer { align-items: center; } .od-offer__card { border-radius: 30px; } }
@keyframes od-up { from { transform: translateY(70%); } }
.od-offer__bar { position: absolute; left: 0; top: 0; height: 5px; width: 100%; transform-origin: left; background: var(--pole); background-size: 33.94px 33.94px; animation: od-pole 1.1s linear infinite; }
.od-offer__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.od-offer__tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--red); }
.od-offer__timer { position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--f-disp); font-size: 22px; }
.od-offer__timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.od-offer__timer circle { fill: none; stroke-width: 4; }
.od-offer__timer .bg { stroke: var(--line); }
.od-offer__timer .fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear; }
.od-offer__pay { display: grid; gap: 2px; }
.od-offer__pay b { font-family: var(--f-disp); font-size: 76px; line-height: .85; }
.od-offer__pay span { color: var(--muted); font-weight: 500; }
.od-offer__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.od-offer__facts div { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; }
.od-offer__facts b { display: block; font-family: var(--f-disp); font-size: 26px; line-height: 1; }
.od-offer__facts span { font-size: 12px; color: var(--muted); font-weight: 500; }
.od-offer__client { display: flex; align-items: center; gap: 12px; }
.od-offer__client .od-av { --s: 44px; }
.od-offer__client b { display: block; }
.od-offer__client span { font-size: 13.5px; color: var(--muted); }
.od-offer__no { justify-self: center; }

.od-addr { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.od-addr b { font-size: 17px; }
.od-addr span { color: var(--muted); font-size: 14px; }
.od-earn { text-align: center; }
.od-earn b { display: block; font-family: var(--f-disp); font-size: clamp(80px, 24vw, 120px); line-height: .85; color: var(--red); }
.od-earn span { color: var(--muted); }

/* =========================================================
   DASHBOARD TAB (od-tab.js) + profile editor
   ========================================================= */
.od-tab { display: grid; gap: 18px; color: var(--text); font-family: var(--f-ui); }
.od-scope > .od-tab { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 3vw, 28px); }
.od-tab__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.od-tab__head .od-mark { font-size: 34px; }
.od-tab__head .od-mark .pole { height: 30px; width: 11px; }
.od-tab__lede { font-size: 17px; margin: 0; max-width: 46ch; }
.od-tab--soon .od-mark .pole { animation-duration: 2.4s; }
.od-tab__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (max-width: 560px) { .od-tab__stats { grid-template-columns: repeat(2, 1fr); } }
.od-tab__stats div { background: var(--surface); padding: 14px 12px; }
.od-tab__stats b { display: block; font-family: var(--f-disp); font-size: 34px; line-height: .95; }
.od-tab__stats span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.od-tab__live { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); }
.od-tab__live b { display: block; }
.od-tab__live span { font-size: 13.5px; color: var(--muted); }
.od-switch { position: relative; width: 58px; height: 34px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; flex: none; transition: background .25s; }
.od-switch::after { content: ''; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .4s var(--spring); }
.od-switch[aria-checked="true"] { background: var(--red); }
.od-switch[aria-checked="true"]::after { transform: translateX(24px); }
.od-switch:active::after { width: 32px; }
.od-switch[aria-checked="true"]:active::after { transform: translateX(18px); }
.od-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 640px) { .od-gal { grid-template-columns: repeat(6, 1fr); } }
.od-gal button { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; transition: transform .3s var(--spring); }
.od-gal button:active { transform: scale(.92); }
.od-gal .od-photo { aspect-ratio: 1; }
.od-gal button::after { content: attr(data-n); position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .85); color: transparent; border: 2px solid rgba(0, 0, 0, .15); transition: transform .3s var(--spring); }
.od-gal button[aria-pressed="true"]::after { background: var(--red); color: var(--on-red); border-color: var(--white); transform: scale(1.1); }
.od-gal button[aria-pressed="true"] .od-photo { box-shadow: 0 0 0 3px var(--red); }
.od-menu { display: grid; gap: 8px; }
.od-menu__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.od-menu__row.is-off { opacity: .55; }
.od-menu__row small { display: block; color: var(--muted); }
.od-price { display: inline-flex; align-items: center; gap: 2px; padding: 0 10px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); }
.od-price:focus-within { border-color: var(--blue); }
.od-price input { width: 52px; border: 0; background: none; font: 700 22px var(--f-disp); color: var(--text); text-align: right; padding: 0; }
.od-price input:focus { outline: none; }
.od-price span { font: 700 22px var(--f-disp); color: var(--muted); }
.od-tab__foot { display: flex; gap: 10px; flex-wrap: wrap; }
.od-soon { display: inline-block; color: var(--red); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: lowercase; margin: 0; }

.od-retry { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: 14.5px; }
.odc__mini.od-radar { aspect-ratio: 16 / 10; border-radius: 24px; }
.od-flash { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; pointer-events: none; background: color-mix(in srgb, var(--bg) 55%, transparent); animation: od-flash 1.5s var(--ease) forwards; }
.od-flash .od-check { width: 132px; height: 132px; }
.od-flash .od-check svg { width: 64px; height: 64px; }
@keyframes od-flash { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.od-offer__cuts { display: block; font-size: 13px; color: var(--muted); }
.od-place__new .od-link { justify-self: start; text-align: left; }

.od-bill__split { display: block !important; padding-top: 8px; border-top: 1px dashed var(--line); }
.od-bill__split dt { display: grid; gap: 1px; color: var(--text) !important; }
.od-bill__split b { font-weight: 650; }
.od-bill__split span { color: var(--muted); font-size: 13px; }
.od-cardel { margin-top: 10px; min-height: 10px; }
.od-cardel[hidden] { display: none; }
.od-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.od-fine svg { width: 15px; height: 15px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.od-ring__sec { font-variant-numeric: tabular-nums; }
.od-offer__timer span { font-size: 17px; }

/* =========================================================
   LOCK SCREEN
   ========================================================= */
.od-lock { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 32px 20px; text-align: center; }
.od-lock__home { position: absolute; top: 18px; left: 16px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.od-lock__home img { width: 38px; height: 38px; }
.od-lock__pole { width: 22px; height: 96px; border-radius: 11px; margin-bottom: 8px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 15%, transparent); }
.od-lock h1 { font-size: clamp(64px, 18vw, 120px); margin: 0; }
.od-lock .od-soon { font-size: 15px; }
.od-lock__copy { max-width: 34ch; color: var(--muted); margin: 0 0 8px; }
.od-lock__admin { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* =========================================================
   LANDING
   ========================================================= */
.odl section { padding: 0 16px; }
.odl__wrap { max-width: 1120px; margin: 0 auto; }
.odl__hero { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 56px; }
@media (min-width: 900px) { .odl__hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; } }
.odl__h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(72px, 19vw, 132px); line-height: .84; letter-spacing: -.005em; margin: 0; }
.odl__h1 span { display: block; white-space: nowrap; }
@media (min-width: 900px) { .odl__h1 { font-size: clamp(96px, 9.4vw, 132px); } }
.odl__lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 32ch; margin: 22px 0 0; color: var(--muted); }
.odl__lede b { color: var(--text); font-weight: 600; }
.odl__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.odl__live { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; font-size: 14px; }
.odl__live .pole { width: 8px; height: 20px; border-radius: 4px; }
.odl__stage { position: relative; }
.odl__stage .od-radar { box-shadow: var(--shadow); }
.odl__float { position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.odl__float .od-av { --s: 38px; }
.odl__float b { display: block; font-size: 14.5px; }
.odl__float span { color: var(--muted); font-size: 12.5px; }
.odl__float--a { left: -6px; bottom: 9%; animation: od-rise .6s 1.4s var(--ease) both; }
.odl__float--b { right: -6px; top: 8%; animation: od-rise .6s 2.2s var(--ease) both; }
.odl__float--b .num { display: block; font-family: var(--f-disp); font-size: 34px; line-height: .9; color: var(--red); }
@media (max-width: 520px) { .odl__float--a { left: 6px; } .odl__float--b { right: 6px; } }

.odl__band { padding-top: 64px !important; padding-bottom: 64px !important; border-top: 1px solid var(--line); }
.odl__h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 0; max-width: 18ch; }
.odl__p { color: var(--muted); max-width: 52ch; font-size: 16.5px; margin: 14px 0 0; }
.odl__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .odl__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* a real request, minute by minute */
.odl__log { list-style: none; margin: 0; padding: 0; display: grid; }
.odl__log li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.odl__log li:last-child { border-bottom: 1px solid var(--line); }
.odl__log time { font-family: var(--f-disp); font-size: 30px; line-height: .95; }
.odl__log time small { display: block; font-family: var(--f-ui); font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.odl__log b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.odl__log p { margin: 0; color: var(--muted); }

.odl__try { display: grid; justify-items: center; gap: 18px; padding: 28px 16px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.odl__try .od-hold { --size: min(56vw, 210px); }
.odl__try .od-hold__big { font-size: 38px; }
.odl__ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.odl__ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.odl__ticks li::before { content: ''; width: 10px; height: 22px; border-radius: 5px; background: var(--pole); background-size: 33.94px 33.94px; margin-top: 1px; }

.odl__rule { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .odl__rule { grid-template-columns: 1fr 1fr; gap: 64px; } }
.odl__math { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 10px 26px; padding: 26px; border-radius: 32px; background: var(--text); color: var(--bg); }
.odl__math div b { display: block; font-family: var(--f-disp); font-size: clamp(64px, 12vw, 104px); line-height: .85; }
.odl__math div span { font-size: 13.5px; opacity: .7; }
.odl__math i { font-style: normal; font-family: var(--f-disp); font-size: 48px; opacity: .5; padding-bottom: 18px; }
.odl__math .is-red b { color: var(--red); }
.odl__math p { grid-column: 1 / -1; margin: 6px 0 0; opacity: .78; font-size: 14.5px; }

.odl__end { text-align: center; padding-top: 72px !important; padding-bottom: 72px !important; border-top: 1px solid var(--line); }
.odl__end .odl__h2 { margin: 0 auto; }
.odl__end .odl__ctas { justify-content: center; }
.odl__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; max-width: 1152px; margin: 0 auto; }
.odl__foot a { color: inherit; }

/* =========================================================
   the Demo tab (owners and admins): a tab on the right edge, a drawer of jumps and switches
   ========================================================= */
.od-demotab {
  position: fixed; right: 0; top: 50%; z-index: 87; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 12px 8px 14px 9px; border: 1px solid var(--line); border-right: 0; border-radius: 14px 0 0 14px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer;
  font: 700 11px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase;
  transition: padding .3s var(--spring);
}
.od-demotab:hover { padding-right: 12px; }
.od-demotab:active { padding-right: 6px; transition-duration: .08s; }
.od-demotab span:last-child { writing-mode: vertical-rl; transform: rotate(180deg); }
.od-demotab .pole { width: 8px; height: 22px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 18%, transparent); }
.od-demo { position: fixed; inset: 0; z-index: 88; }
.od-demo[hidden] { display: none; }
.od-demo__scrim { position: absolute; inset: 0; background: var(--scrim); animation: od-fade .2s both; }
.od-demo__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 92vw);
  display: flex; flex-direction: column; background: var(--bg); box-shadow: var(--shadow);
  border-radius: 24px 0 0 24px; animation: od-slidein .34s var(--ease) both;
}
@keyframes od-slidein { from { transform: translateX(100%); } }
.od-demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 14px 6px 20px; }
.od-demo__head .od-mark { font-size: 24px; }
.od-demo__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 22px; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
.od-demo__lede { margin: 0; color: var(--muted); font-size: 14px; }
.od-demo__group { display: grid; gap: 10px; }
.od-demo__group h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.od-demo__note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.od-demo__chips, .od-demo__row { display: flex; flex-wrap: wrap; gap: 8px; }
.od-demo__chips .od-chip { min-height: 38px; padding: 0 14px; font-size: 14px; }
.od-demo__group > .od-btn { justify-self: start; }
.od-demo__jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.od-demo__jump {
  display: grid; gap: 3px; align-content: start; text-align: left; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  transition: transform .3s var(--spring), border-color .15s;
}
.od-demo__jump:hover { border-color: var(--text); }
.od-demo__jump:active { transform: scale(.95); transition-duration: .08s; }
.od-demo__jump b { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.od-demo__jump span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.od-demo__foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .od-demo__panel, .od-demo__scrim { animation: none; } }

/* =========================================================
   motion off
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .pole, .od-av.is-live::before, .od-radar__sweep, .od-radar__route path, .od-waves i, .od-hold.is-live::before,
  .od-track i, .od-offer__bar, .od-slide__label span, .od-ring__pulse,
  .od-radar__you i, .odb.is-live .odb__label .dot { animation: none !important; }
  .od-stage, .od-pin.is-new, .od-toast, .od-check, .od-offer__card, .odl__float, .od-flash { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .od-pin { transition: none; }
}

/* landing: the sample offer sits in the page, not over it */
.od-offer__card--inline { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: none; animation: od-rise .45s var(--ease) both; text-align: left; }
@media (prefers-reduced-motion: reduce) { .od-offer__card--inline { animation: none; } }
.od-offer__card--inline .od-offer__pay b { font-size: 64px; }
.od-offer__card--inline .od-check { margin-top: 18px; }
