/* ROUTANA — SHIP-POLISH (2026-10-28, founder ledger row 126).
   "Make sure the customer facing side is polished and sexy. With animated
   buttons 2026 website style. Intuitive for the client."

   ONE layer on top of portal.css + book.css, loaded ONLY by the customer's
   booking path (book, code, returning, booked, details, closed). The legacy
   pages and the V2 page never load it, so nothing outside the path moves.

   Rules this file keeps:
   - Every colour comes from the shop's own tokens (_brand_vars.html sets
     --brand-accent / --primary / --orange*), or from portal.css's neutral
     ramp. Shadows and rings are mixed FROM those tokens, never typed in.
   - Motion is 150-250 ms, ease-out, transform/opacity/shadow only (no
     layout properties), and portal.css's prefers-reduced-motion block plus
     the one at the bottom of this file turn it off.
   - Nothing here hides content behind an animation: every reveal starts
     from an already-visible element and only adds a short settle.
   - Nothing here changes a word, a field or what the page sends. */

:root {
  --pol-ease: cubic-bezier(.22, 1, .36, 1);       /* ease-out-quint */
  --pol-fast: 160ms;
  --pol-med: 220ms;
  --pol-r: 14px;                                  /* cards, buttons, inputs */
  --pol-r-lg: 18px;                               /* the big surfaces */
  --ik-cta-h: 52px;                               /* one CTA height, every screen */

  --pol-ink: var(--text);
  --pol-hairline: color-mix(in srgb, var(--pol-ink) 9%, transparent);
  --pol-edge: color-mix(in srgb, var(--pol-ink) 20%, var(--border));
  --pol-shadow-1: 0 1px 2px color-mix(in srgb, var(--pol-ink) 6%, transparent);
  --pol-shadow-2: 0 1px 2px color-mix(in srgb, var(--pol-ink) 6%, transparent),
                  0 8px 20px -10px color-mix(in srgb, var(--pol-ink) 22%, transparent);
  --pol-shadow-3: 0 2px 6px color-mix(in srgb, var(--pol-ink) 6%, transparent),
                  0 24px 60px -24px color-mix(in srgb, var(--pol-ink) 30%, transparent);

  /* The shop's button colour: --orange-text is the AA-safe shade of HER
     accent (SET-B's measured shade for the default orange, derived from her
     colour otherwise), so white type on it passes for every shop. */
  --pol-fill: var(--orange-text);
  --pol-fill-hover: var(--orange-hover);
  --pol-glow: color-mix(in srgb, var(--brand-accent) 45%, transparent);
  --pol-ring: color-mix(in srgb, var(--brand-accent) 24%, transparent);
  --pol-tint: color-mix(in srgb, var(--brand-accent) 7%, var(--surface));

  --pol-sel: var(--green-hover);
  --pol-sel-ring: color-mix(in srgb, var(--green) 18%, transparent);
}

/* ── ROUND 2 (2026-10-28 afternoon): "CONCIERGE PASS" ─────────────────────
   Round 1 was tidier but still read as a white form. Round 2 changes the
   frame itself, the same way on every screen of the path:
   - THE BAND: the shop's own colour as a deep, rich band across the top
     (its AA shade into its deep shade, a soft light bloom, and a faint
     route-and-GPS line drawn in white), with the shop name in white on it.
   - THE ROUTE: progress is a dashed road across the band with a pulsing
     "you are here" dot that glides to the next stop at every step.
   - THE CARD: every screen's content sits on one white card with real
     elevation, floating over the band on a soft stone background.
   - THE DOCK: on phones the main action is docked at the bottom, under the
     thumb, in a frosted bar that floats over the card.
   Every colour still comes from the shop's tokens; the only literal colours
   are white and black used as light and shade inside color-mix(). */
:root {
  --p2-deep: color-mix(in srgb, var(--orange-hover) 84%, #000);
  --p2-rich: var(--orange-text);
  --p2-canvas: color-mix(in srgb, var(--pol-ink) 6%, var(--surface));
  --p2-band-h: 232px;
  --p2-card-r: 28px;
  --p2-pad-x: 20px;
  --p2-dock-h: 76px;
  --p2-band:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--brand-accent) 55%, transparent) 0%, transparent 60%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--p2-deep) 70%, transparent) 0%, transparent 70%),
    linear-gradient(160deg, var(--p2-deep) 0%, var(--p2-rich) 62%, color-mix(in srgb, var(--brand-accent) 70%, var(--p2-rich)) 100%);
  /* the route line + GPS rings, white on the band (no colour of its own) */
  --p2-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240' fill='none' stroke='white'%3E%3Cg stroke-opacity='.12'%3E%3Ccircle cx='336' cy='58' r='40'/%3E%3Ccircle cx='336' cy='58' r='84'/%3E%3Ccircle cx='336' cy='58' r='130'/%3E%3C/g%3E%3Cpath d='M-20 226 C 60 230 96 168 170 170 S 278 112 336 58' stroke-opacity='.32' stroke-width='2.4' stroke-dasharray='.5 9' stroke-linecap='round'/%3E%3Ccircle cx='336' cy='58' r='6' fill='white' fill-opacity='.4' stroke='none'/%3E%3C/svg%3E");
  /* the main button's light: brighter at the top, deeper at the foot */
  --p2-btn-light:
    linear-gradient(180deg, color-mix(in srgb, var(--white) 18%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--p2-deep) 60%, transparent) 100%);
  --p2-card-shadow:
    0 0 0 1px color-mix(in srgb, var(--pol-ink) 5%, transparent),
    0 2px 6px -2px color-mix(in srgb, var(--pol-ink) 10%, transparent),
    0 32px 64px -32px color-mix(in srgb, var(--pol-ink) 38%, transparent);
}

/* ── THE FRAME ───────────────────────────────────────────────────────────
   A phone tap paints its own grey flash on top of our pressed state; ours is
   the one that should show. */
.portal-wrap { -webkit-tap-highlight-color: transparent; }

html, body { background: var(--p2-canvas); }
body { position: relative; }
/* THE BAND. Drawn behind the page (it scrolls away with it), a soft arc on
   its bottom edge where it shows beside the card. */
body::before {
  content: ''; position: absolute; z-index: 0; top: 0; left: 0; right: 0;
  height: var(--p2-band-h); pointer-events: none;
  background: var(--p2-motif) no-repeat right -44px top -8px / 430px 258px, var(--p2-band);
  border-radius: 0 0 50% 50% / 0 0 24px 24px;
}
.portal-wrap { position: relative; z-index: 1; background: transparent; }

.top-bar {
  position: relative; z-index: 2;
  padding: 18px var(--p2-pad-x) 50px;
}
.logo {
  color: var(--white); font-size: 18px; letter-spacing: -0.02em;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--p2-deep) 50%, transparent);
  transition: opacity var(--pol-fast) ease;
}
.logo:hover { opacity: .86; }
.logo-pin { width: 18px; height: 18px; background: var(--white); transition: transform var(--pol-med) var(--pol-ease); }
.logo-pin::after { top: 4.5px; left: 4.5px; width: 9px; height: 9px; background: var(--p2-rich); }
.logo:hover .logo-pin { transform: rotate(-45deg) translate(1px, -1px); }

.top-bar .sign-in, .top-bar .sign-in.signed-in {
  border-radius: 999px; padding: 0 16px; font-size: 13px; font-weight: 600;
  color: var(--white);
  background: color-mix(in srgb, var(--p2-deep) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 30%, transparent);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color var(--pol-fast) ease, transform var(--pol-fast) var(--pol-ease);
}
@media (hover: hover) { .top-bar .sign-in:hover { color: var(--white); background: color-mix(in srgb, var(--white) 16%, transparent); border-color: color-mix(in srgb, var(--white) 45%, transparent); } }
.top-bar .sign-in:active { transform: scale(.96); }
/* portal.css paints a signed-in greeting orange with !important; on the
   band it has to be white to read */
.top-bar .sign-in.signed-in { color: var(--white) !important; }
.top-bar .sign-in { white-space: nowrap; flex-shrink: 0; }
.top-bar .logo { min-width: 0; }

/* THE ROUTE (progress). Wordless: it fills as she moves through the steps
   the page already names on <body data-step> (book.js keeps it current). A
   dashed road in white, the travelled part solid, and a "you are here" dot
   that pulses like a map's location dot and glides to each new stop. */
body[data-step] .top-bar::after {
  content: ''; position: absolute; left: var(--p2-pad-x); right: var(--p2-pad-x); bottom: 22px;
  height: 4px; border-radius: 4px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--white) 55%, transparent), var(--white)) no-repeat 0 0 / calc(var(--p2-p, 0) * 100%) 100%,
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--white) 34%, transparent) 0 7px, transparent 7px 13px);
  transition: background-size 640ms var(--pol-ease);
}
body[data-step] .top-bar::before {
  content: ''; position: absolute; bottom: 18px; z-index: 1;
  left: calc(var(--p2-pad-x) + (100% - 2 * var(--p2-pad-x)) * var(--p2-p, 0) - 6px);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--white) 30%, transparent),
              0 2px 8px color-mix(in srgb, var(--p2-deep) 60%, transparent);
  transition: left 640ms var(--pol-ease);
  animation: p2-arrive 700ms var(--pol-ease) both, p2-gps 2.4s 700ms ease-out infinite;
}
@keyframes p2-arrive { from { transform: translateX(-26px) scale(.6); opacity: 0; } }
@keyframes p2-gps {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--white) 60%, transparent), 0 2px 8px color-mix(in srgb, var(--p2-deep) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 14px transparent, 0 2px 8px color-mix(in srgb, var(--p2-deep) 60%, transparent); }
}
body[data-step=""] .top-bar::after, body[data-step=""] .top-bar::before,
body[data-step="closed"] .top-bar::after, body[data-step="closed"] .top-bar::before { display: none; }
body[data-step=""] .top-bar, body[data-step="closed"] .top-bar { padding-bottom: 28px; }
body[data-step="phone"]   { --p2-p: .05; }
body[data-step="area"]    { --p2-p: .17; }
body[data-step="info"]    { --p2-p: .29; }
body[data-step="vehicle"] { --p2-p: .41; }
body[data-step="cart"]    { --p2-p: .53; }
body[data-step="welcome"] { --p2-p: .53; }
body[data-step="when"]    { --p2-p: .65; }
body[data-step="review"]  { --p2-p: .77; }
body[data-step="otp"]     { --p2-p: .89; }
body[data-step="success"],
body[data-step="details"] { --p2-p: 1; }
/* arrived: the dot stops pulsing and settles at the end of the road */
body[data-step="details"] .top-bar::before { animation: p2-arrive 700ms var(--pol-ease) both; }
/* booked: she has arrived - the road gives way to the seal on the card */
body[data-step="success"] .top-bar::before, body[data-step="success"] .top-bar::after { display: none; }

/* THE CARD. One white card per screen with real elevation, floating over
   the band. It fills down to the bottom of the phone so the main action has
   a home under the thumb; the room under the content belongs to the dock. */
.screen {
  position: relative; z-index: 1;
  overflow: visible;
  margin: 0 10px 10px;
  padding: 28px var(--p2-pad-x) calc(var(--p2-dock-h) + 34px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-radius: var(--p2-card-r);
  box-shadow: var(--p2-card-shadow);
  animation: p2-fade 320ms ease-out both;
}
@keyframes p2-fade { from { opacity: 0; } }
/* pages with no dock (booked, closed) need no room for one; the closed card
   hugs its few lines instead of running a tall empty sheet to the bottom */
body[data-step="success"] .screen, body[data-step="closed"] .screen { padding-bottom: 32px; }
body[data-step="closed"] .screen { flex: 0 0 auto; }
/* the foot of the card: the band's dotted route comes back faintly in the
   shop's colour and ends at a pin under the dock, so a short screen still
   has a shape instead of a blank (drawn, no words; a mask so it takes HER
   colour) */
.screen::after {
  content: ''; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 220px;
  pointer-events: none; border-radius: 0 0 var(--p2-card-r) var(--p2-card-r);
  background: color-mix(in srgb, var(--brand-accent) 22%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='black'%3E%3Cpath d='M-10 40 C 90 40 120 120 210 118 S 330 170 372 196' stroke-width='3' stroke-dasharray='.5 11' stroke-linecap='round'/%3E%3Cg stroke-opacity='.5'%3E%3Ccircle cx='372' cy='196' r='26'/%3E%3Ccircle cx='372' cy='196' r='52'/%3E%3C/g%3E%3Ccircle cx='372' cy='196' r='7' fill='black' stroke='none'/%3E%3C/svg%3E") right bottom / 400px 220px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='black'%3E%3Cpath d='M-10 40 C 90 40 120 120 210 118 S 330 170 372 196' stroke-width='3' stroke-dasharray='.5 11' stroke-linecap='round'/%3E%3Cg stroke-opacity='.5'%3E%3Ccircle cx='372' cy='196' r='26'/%3E%3Ccircle cx='372' cy='196' r='52'/%3E%3C/g%3E%3Ccircle cx='372' cy='196' r='7' fill='black' stroke='none'/%3E%3C/svg%3E") right bottom / 400px 220px no-repeat;
}
/* only the short screens get it (on a long one it would run behind the
   content); on a phone it ends just above the dock, pointing at the button */
body:not([data-step="phone"]):not([data-step="area"]):not([data-step="info"]):not([data-step="otp"]) .screen::after { display: none; }
@media (max-width: 1023px) { .screen::after { bottom: calc(var(--p2-dock-h) + 6px); border-radius: 0; } }
@media (min-width: 1024px) { .screen::after { display: none; } }
.screen > * { position: relative; z-index: 1; }
.screen > .wizard-step:not(.active) { position: static; }

/* ── HEADINGS: one size up, tighter, balanced ───────────────────────── */
.step-heading h2 {
  font-size: 26px; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 6px; text-wrap: balance;
}
.step-heading p { font-size: 14px; line-height: 1.5; text-wrap: pretty; }

/* ── STEP CHANGES ────────────────────────────────────────────────────────
   The new step settles up into place; the old one is already gone, so there
   is never a moment with two steps or a blank card. */
@keyframes pol-step {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* Round 2: the containers only fade (a transform on an ancestor would
   carry the docked button along with it); the pieces of the new step rise
   in one after another, heading first. */
.wizard-step.active { animation: p2-fade 240ms ease-out both; }
.wizard-step.active > :not(.ik-actions):not(.sticky-bar),
.screen > .step-heading, .screen > .otp-section, .screen > .success-wrap > *,
.screen > .closed-card, .screen > form > *, .screen > .rblk, .screen > .win-grid {
  animation: pol-step 420ms var(--pol-ease) both;
}
.wizard-step.active > :nth-child(2), .screen > :nth-child(2), .success-wrap > :nth-child(2), form > :nth-child(2) { animation-delay: 50ms; }
.wizard-step.active > :nth-child(3), .screen > :nth-child(3), .success-wrap > :nth-child(3), form > :nth-child(3) { animation-delay: 100ms; }
.wizard-step.active > :nth-child(4), .screen > :nth-child(4), .success-wrap > :nth-child(4), form > :nth-child(4) { animation-delay: 150ms; }
.wizard-step.active > :nth-child(n+5), .screen > :nth-child(n+5), .success-wrap > :nth-child(n+5), form > :nth-child(n+5) { animation-delay: 200ms; }

/* small reveals: a box that appears (quote line, pin card, error) */
@keyframes pol-rise {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
@keyframes pol-pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* ── INPUTS ──────────────────────────────────────────────────────────────
   Taller, softer, and a calm ring in the shop's colour instead of a hard
   3px outline. The ring + the coloured border together are the visible
   focus, at every input, for keyboard and finger alike. */
.form-input, .needby-row input, .note-mini-box {
  min-height: 52px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface);
  box-shadow: var(--pol-shadow-1);
  transition: border-color var(--pol-fast) ease, box-shadow var(--pol-fast) ease;
}
select.form-input { cursor: pointer; }
/* Chrome counts a <select> as read-only, so the year box wore the grey
   'locked' fill and looked switched off. It is a live control. */
select.form-input:read-only { background-color: var(--surface); color: var(--text); box-shadow: var(--pol-shadow-1); }
.form-input:read-only { box-shadow: none; }
@media (hover: hover) {
  .form-input:hover:not(:focus):not(:read-only),
  .needby-row input:hover:not(:focus),
  .note-mini-box:hover:not(:focus) { border-color: var(--pol-edge); }
}
.form-input:focus, .form-input:focus-visible,
.needby-row input:focus, .needby-row input:focus-visible,
.note-mini-box:focus, .note-mini-box:focus-visible {
  outline: none; border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--pol-ring);
}
.form-label { letter-spacing: .06em; margin-bottom: 8px; }
.form-hint { font-size: 12px; }

/* ── THE MAIN BUTTON ─────────────────────────────────────────────────────
   Rest: the shop's colour with a soft light from above and a glow of its
   own colour under it. Hover: lifts 1px. Press: sinks and shrinks a hair,
   instantly. Waiting on the server: keeps its colour (it used to go grey,
   so the spinner sat white-on-grey and the tap looked dead), the label
   gives way to a spinner and a slow light sweeps across. Disabled: flat. */
.ik-primary, .sticky-go {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: var(--pol-fill); color: var(--white);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--white) 10%, transparent), transparent 70%);
  border: 0; border-radius: var(--pol-r);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 22%, transparent),
              0 1px 2px color-mix(in srgb, var(--pol-ink) 12%, transparent),
              0 10px 22px -12px var(--pol-glow);
  font-size: 16px; letter-spacing: -0.01em;
  transition: transform var(--pol-fast) var(--pol-ease), box-shadow var(--pol-med) var(--pol-ease),
              background-color var(--pol-fast) ease, color var(--pol-fast) ease;
}
.ik-primary { min-height: var(--ik-cta-h); }
@media (hover: hover) {
  .ik-primary:hover:not(:disabled), .sticky-go:hover:not(:disabled) {
    background-color: var(--pol-fill-hover); transform: translateY(-1px);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 22%, transparent),
                0 2px 4px color-mix(in srgb, var(--pol-ink) 12%, transparent),
                0 16px 30px -14px var(--pol-glow);
  }
}
.ik-primary:active:not(:disabled), .sticky-go:active:not(:disabled) {
  transform: translateY(0) scale(.98); transition-duration: 70ms;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 14%, transparent),
              0 1px 2px color-mix(in srgb, var(--pol-ink) 14%, transparent);
}
.ik-primary:focus-visible, .sticky-go:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand-accent);
}
.ik-primary:disabled:not(.loading) {
  background-color: var(--surface2); background-image: none;
  color: var(--muted-strong); box-shadow: inset 0 0 0 1.5px var(--border);
}
/* waiting on the server — keeps its colour, never a dead grey tap */
.ik-primary.loading, .ik-primary.loading:disabled {
  background-color: var(--pol-fill); color: transparent; cursor: progress;
  transform: none;
}
.ik-primary.loading::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--white) 26%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: pol-sweep 1.1s ease-in-out infinite;
}
.ik-primary.loading::after { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-width: 2.5px; }
@keyframes pol-sweep { to { transform: translateX(100%); } }

/* ── THE SECOND BUTTON ───────────────────────────────────────────────────
   A real alternative ("Change something", "Skip for now", "Add this
   vehicle" in the returning lane) is a light card-button. Plain "Back" is
   quieter still: text with a hover wash, so each screen keeps ONE loud
   action. */
.ik-ghost {
  min-height: var(--ik-cta-h); border-radius: var(--pol-r);
  background: var(--surface); border: 1.5px solid var(--border);
  box-shadow: var(--pol-shadow-1); font-size: 15px;
  transition: transform var(--pol-fast) var(--pol-ease), border-color var(--pol-fast) ease,
              background-color var(--pol-fast) ease, box-shadow var(--pol-fast) ease, color var(--pol-fast) ease;
}
@media (hover: hover) {
  .ik-ghost:hover:not(:disabled) { border-color: var(--pol-edge); box-shadow: var(--pol-shadow-2); }
}
.ik-ghost:active:not(:disabled) { transform: scale(.98); transition-duration: 70ms; }
.ik-ghost:disabled { color: var(--muted); background: var(--surface2); box-shadow: none; cursor: not-allowed; }
.ik-ghost[id^="ik-back-"] {
  background: transparent; border-color: transparent; box-shadow: none;
  color: var(--muted-strong); font-weight: 600; min-height: 48px;
}
@media (hover: hover) {
  .ik-ghost[id^="ik-back-"]:hover { background: color-mix(in srgb, var(--pol-ink) 5%, transparent); border-color: transparent; box-shadow: none; color: var(--text); }
}

/* small text-buttons (Edit, Change, the skip-to-type link, Resend) */
/* the skip-to-type link was the raw accent (about 3:1 on the page); the AA
   shade of the same colour reads */
.ik-text-link { color: var(--orange-text); }
.ik-text-link, .rblk-ed, .otp-resend button, .btn-book-again, .addr-edit-btn {
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  transition: color var(--pol-fast) ease, text-decoration-color var(--pol-fast) ease, opacity var(--pol-fast) ease;
  border-radius: 8px;
}
.ik-text-link:active, .rblk-ed:active, .otp-resend button:active:not(:disabled), .btn-book-again:active, .addr-edit-btn:active { opacity: .6; }

/* ── CHOICE CARDS ────────────────────────────────────────────────────────
   Every "pick one" on the path: vehicle type, rims, Value/Premium, add-ons,
   the returning lane's vehicles, cash/card, the quick-select row. Same
   lift on hover, same press, same SELECTED look: the house green with a
   soft ring around it. */
.chip, .opt-card, .ik-addon-row, .rebook-vcheck, .access-opt, .pay-pick-btn, .quick-btn {
  border-radius: var(--pol-r); border-width: 1.5px; border-style: solid;
  background-color: var(--surface); box-shadow: var(--pol-shadow-1);
  transition: transform var(--pol-fast) var(--pol-ease), border-color var(--pol-fast) ease,
              background-color var(--pol-fast) ease, box-shadow var(--pol-med) var(--pol-ease),
              color var(--pol-fast) ease;
}
@media (hover: hover) {
  .chip:hover, .opt-card:hover, .ik-addon-row:hover, .rebook-vcheck:hover,
  .access-opt:hover, .pay-pick-btn:hover, .quick-btn:hover:not(:disabled) {
    border-color: var(--pol-edge); box-shadow: var(--pol-shadow-2); transform: translateY(-1px);
  }
}
.chip:active, .opt-card:active, .ik-addon-row:active, .rebook-vcheck:active,
.access-opt:active, .pay-pick-btn:active, .quick-btn:active:not(:disabled) {
  transform: scale(.98); transition-duration: 70ms;
}
.chip.selected, .opt-card.selected, .ik-addon-row:has(input:checked), .rebook-vcheck.checked,
.access-opt.selected, .pay-pick-btn.on, .quick-btn.on {
  border-color: var(--pol-sel); background-color: var(--green-light); color: var(--green-text);
  box-shadow: 0 0 0 3px var(--pol-sel-ring), var(--pol-shadow-1);
}
@media (hover: hover) {
  .chip.selected:hover, .opt-card.selected:hover, .ik-addon-row:has(input:checked):hover,
  .rebook-vcheck.checked:hover, .pay-pick-btn.on:hover, .quick-btn.on:hover {
    border-color: var(--pol-sel); box-shadow: 0 0 0 3px var(--pol-sel-ring), var(--pol-shadow-2);
  }
}
.chip:focus-visible, .opt-card:focus-visible, .pay-pick-btn:focus-visible, .quick-btn:focus-visible {
  outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand-accent);
}

/* The stacked "pick one" cards get a radio dot on the left that fills and
   pops when chosen, so the choice reads before the colour does. */
#ik-svc .chip, #ik-rebook-svc .chip, #ik-care-row .chip {
  position: relative; padding: 16px 16px 16px 52px; min-height: 64px;
}
#ik-svc .chip::before, #ik-rebook-svc .chip::before, #ik-care-row .chip::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 1.5px solid var(--pol-edge); background: var(--surface);
  transition: border-color var(--pol-fast) ease, background-color var(--pol-fast) ease;
}
#ik-svc .chip.selected::before, #ik-rebook-svc .chip.selected::before, #ik-care-row .chip.selected::before {
  border-color: var(--pol-sel); background-color: var(--pol-sel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
  animation: pol-pop 260ms var(--pol-ease);
}
.chip { font-size: 16px; }
.chip small { font-size: 12px; font-weight: 500; }

/* add-on rows: the box ticks in the house green, like every other choice */
.ik-addon-row { padding: 14px 16px; min-height: 56px; margin-bottom: var(--ik-gap); }
.ik-addon-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--pol-sel); }
.ik-addon-row:has(input:checked) input { animation: pol-pop 240ms var(--pol-ease); }
.rebook-vcheck input { accent-color: var(--pol-sel); }

/* quick-select row: real buttons, a touch taller. They are shortcuts, not
   the choice itself, so when on they get the green fill without the ring -
   three rings in a row out-shouted the grid they serve. */
.quick-btn { min-height: 44px; font-size: 13px; border-color: var(--border); }
.quick-btn.on { border-color: var(--green-border); box-shadow: var(--pol-shadow-1); }

/* ── THE TIME GRID ───────────────────────────────────────────────────── */
.win-grid { border-radius: var(--pol-r-lg); border-color: var(--border); box-shadow: var(--pol-shadow-2); background: var(--surface); }
.win-cell {
  min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: background-color var(--pol-med) ease, color var(--pol-med) ease, box-shadow var(--pol-med) ease;
}
.win-cell .cell-txt { transition: transform var(--pol-fast) var(--pol-ease); }
.win-cell.on .tick { animation: pol-pop 240ms var(--pol-ease); display: inline-block; }
.win-cell:not(.closed):active .cell-txt { transform: scale(.9); }
@media (hover: hover) {
  .win-cell:not(.closed):not(.on):hover { background: color-mix(in srgb, var(--green-light) 60%, var(--surface)); }
  .win-cell.on:not(.closed):hover { background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
}
.win-day { padding: 10px 12px; }

/* ── SURFACES ────────────────────────────────────────────────────────── */
.value-hero {
  border-radius: var(--pol-r-lg); padding: 16px 18px;
  background: var(--pol-tint);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 24%, transparent);
}
.value-hero-title { font-size: 15px; letter-spacing: -0.01em; }
.value-hero-sub { font-size: 13px; color: var(--muted-strong); }

.vcard, .rblk, .pin-confirm {
  border-radius: var(--pol-r-lg); border-color: var(--pol-hairline);
  box-shadow: var(--pol-shadow-2); background: var(--surface);
}
.vcard { padding: 14px 44px 14px 16px; animation: pol-rise 260ms var(--pol-ease); }
.rblk { padding: 16px 18px; margin-bottom: 10px; }
.vcard-x { border-radius: 10px; transition: background-color var(--pol-fast) ease, transform var(--pol-fast) var(--pol-ease); }
.vcard-x:active { transform: scale(.88); }
.pin-confirm:not(.hidden), .ik-banner:not(.hidden) { animation: pol-rise 260ms var(--pol-ease); }
.pin-graphic { width: 52px; height: 52px; }
.pin-confirm:not(.hidden) .pin-graphic .dot { animation: pol-drop 420ms var(--pol-ease); }
@keyframes pol-drop {
  from { transform: translateY(-14px) rotate(-45deg); opacity: 0; }
  to   { transform: rotate(-45deg); opacity: 1; }
}
.ik-banner { border-radius: var(--pol-r); padding: 12px 14px; font-size: 14px; }

.addv {
  border-radius: var(--pol-r); min-height: 52px; border-width: 1.5px;
  transition: background-color var(--pol-fast) ease, transform var(--pol-fast) var(--pol-ease), border-color var(--pol-fast) ease;
}
@media (hover: hover) { .addv:hover:not(:disabled) { background: var(--pol-tint); border-style: solid; } }
.addv:active:not(:disabled) { transform: scale(.98); }

.cart-total { font-size: 16px; padding-top: 14px; margin-top: 14px; border-top-color: var(--pol-hairline); }

/* the cart's sticky Continue bar: charcoal from the ink token, floating */
.sticky-bar {
  background: color-mix(in srgb, var(--pol-ink) 94%, transparent); color: var(--white);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--pol-r-lg); padding: 8px 8px 8px 16px; bottom: 12px;
  box-shadow: var(--pol-shadow-3);
}
.sticky-go { min-height: 48px; padding: 10px 18px; border-radius: 12px; font-size: 15px; }
.sticky-go:disabled { background-color: color-mix(in srgb, var(--white) 18%, transparent); background-image: none; box-shadow: none; }

/* errors arrive instead of appearing */
.wizard-step .otp-error:not(:empty), .otp-error.ik-error:not(:empty), #otp-error:not(:empty) {
  animation: pol-rise 220ms var(--pol-ease);
}
.wizard-step .otp-error:not(:empty), .otp-error.ik-error:not(:empty) { border-radius: 12px; }

/* ── THE CODE SCREEN ─────────────────────────────────────────────────── */
.otp-row { gap: 8px; margin: 18px 0 16px; }
.otp-digit {
  width: 48px; height: 58px; border-radius: 12px; font-size: 22px;
  box-shadow: var(--pol-shadow-1);
  transition: border-color var(--pol-fast) ease, box-shadow var(--pol-fast) ease,
              background-color var(--pol-fast) ease, transform var(--pol-fast) var(--pol-ease);
}
.otp-digit:focus, .otp-digit:focus-visible {
  outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 4px var(--pol-ring);
  transform: translateY(-2px);
}
.otp-digit[placeholder]:not(:placeholder-shown):not(:focus):not(.error) { border-color: var(--pol-edge); }
/* The code page never loaded book.css, where the centring rule lives, so its
   heading sat left above six centred boxes. Same one rule, here too. */
.ik-centered { text-align: center; }
/* checking the code with the server: the boxes breathe until it answers */
.otp-row.is-checking .otp-digit { animation: pol-breathe 900ms ease-in-out infinite; }
@keyframes pol-breathe { 50% { opacity: .55; } }
.otp-phone-display { font-size: 26px; letter-spacing: -0.02em; }
@media (max-width: 380px) { .otp-digit { width: 42px; height: 54px; } .otp-row { gap: 6px; } }

/* ── THE BOOKED SCREEN ───────────────────────────────────────────────── */
.success-wrap { padding: 32px 4px 12px; }
.success-icon { margin-bottom: 20px; }
.success-tick { overflow: visible; }
.success-tick circle { transform-origin: 28px 28px; animation: pol-pop 520ms var(--pol-ease) both; }
.success-tick path { stroke-dasharray: 34; stroke-dashoffset: 0; animation: pol-draw 420ms 260ms var(--pol-ease) both; }
@keyframes pol-draw { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
.success-icon { filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--green) 30%, transparent)); }
.success-title { font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.success-sub { font-size: 15px; text-wrap: pretty; }
.success-ref {
  display: inline-block; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--pol-hairline);
  font-variant-numeric: tabular-nums; letter-spacing: .08em; font-weight: 700; color: var(--muted-strong);
}
.btn-ics {
  min-width: 240px; justify-content: center; min-height: 48px;
  border-radius: var(--pol-r); border: 1.5px solid var(--border);
  font-size: 14px; box-shadow: var(--pol-shadow-1);
  transition: transform var(--pol-fast) var(--pol-ease), border-color var(--pol-fast) ease,
              box-shadow var(--pol-fast) ease, color var(--pol-fast) ease;
}
@media (hover: hover) { .btn-ics:hover { border-color: var(--pol-edge); color: var(--text); box-shadow: var(--pol-shadow-2); transform: translateY(-1px); } }
.btn-ics:active { transform: scale(.98); }
.btn-book-again { font-size: 15px; }
.pin-box {
  border-radius: 12px; box-shadow: var(--pol-shadow-1);
  transition: border-color var(--pol-fast) ease, box-shadow var(--pol-fast) ease;
}
.pin-box:focus { box-shadow: 0 0 0 4px var(--pol-ring); }

/* ── THE CLOSED PAGE ─────────────────────────────────────────────────── */
.closed-card h1 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.closed-mark { animation: pol-pop 520ms var(--pol-ease) both; }
.closed-call {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 22%, transparent), 0 10px 22px -12px var(--pol-glow);
  transition: transform var(--pol-fast) var(--pol-ease), background-color var(--pol-fast) ease, box-shadow var(--pol-med) var(--pol-ease);
}
@media (hover: hover) { .closed-call:hover { transform: translateY(-1px); background-color: var(--pol-fill-hover); } }
.closed-call:active { transform: scale(.98); }

/* ── DESKTOP: the booking sits in a floating card ────────────────────────
   It used to be a bare column glued to the top of a beige page. Now it is a
   card with room above it, a soft glow of the shop's own colour behind it,
   and the top bar rounded into the card. */
@media (min-width: 1024px) {
  /* Round 2: the band runs the full width of the window and the booking
     card floats on it, the shop name and the route riding the band above
     the card. */
  :root { --p2-band-h: 360px; --p2-pad-x: 40px; --p2-card-r: 32px; }
  body::before {
    background: var(--p2-motif) no-repeat calc(50% + 420px) -40px / 640px 384px, var(--p2-band);
    border-radius: 0 0 50% 50% / 0 0 48px 48px;
  }
  /* portal.css draws the column's edges and a shadow at this width; on the
     band they showed as two pale lines - the card carries the depth now */
  .portal-wrap { max-width: 600px; padding-top: 24px; min-height: 100dvh; border-left: 0; border-right: 0; box-shadow: none; }
  .top-bar { padding: 18px 20px 54px; }
  body[data-step] .top-bar::after { left: 20px; right: 20px; }
  body[data-step] .top-bar::before { left: calc(20px + (100% - 40px) * var(--p2-p, 0) - 6px); }
  .screen {
    margin: 0 0 56px; padding: 40px var(--p2-pad-x) 40px;
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--pol-ink) 5%, transparent),
      0 4px 10px -4px color-mix(in srgb, var(--pol-ink) 10%, transparent),
      0 50px 100px -40px color-mix(in srgb, var(--pol-ink) 42%, transparent);
  }
  .step-heading h2 { font-size: 34px; }
  .sticky-bar { bottom: 20px; }
}

/* ════════════════════════════════════════════════════════════════════════
   ROUND 2 — THE PIECES (overrides the round-1 rules above where they meet)
   ════════════════════════════════════════════════════════════════════════ */

/* ── HEADINGS: bigger, heavier, the screen's first read ─────────────────── */
.step-heading h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 8px; }
.step-heading p { font-size: 15px; color: var(--muted-strong); }

/* ── THE PROMISE TILE (first screen) ────────────────────────────────────
   The beige box becomes a tile with a drawn service van in the shop's
   colour (a mask, so the van takes HER colour), on a soft wash of it. */
.value-hero {
  position: relative; padding: 18px 18px 18px 76px; min-height: 84px;
  border-radius: 20px; border: 0;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand-accent) 14%, transparent), transparent 60%),
    color-mix(in srgb, var(--brand-accent) 6%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-accent) 18%, transparent);
  display: flex; flex-direction: column; justify-content: center;
}
.value-hero::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 46px; height: 46px; margin-top: -23px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--p2-rich), var(--p2-deep));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 25%, transparent),
              0 8px 16px -8px color-mix(in srgb, var(--brand-accent) 80%, transparent);
}
.value-hero::after {
  content: ''; position: absolute; left: 27px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 17H3.5V7.2c0-.7.5-1.2 1.2-1.2H14v11h-4.5'/%3E%3Cpath d='M14 9.5h3.6l3 3.6V17h-2.1'/%3E%3Cpath d='M14 17h.5'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 17H3.5V7.2c0-.7.5-1.2 1.2-1.2H14v11h-4.5'/%3E%3Cpath d='M14 9.5h3.6l3 3.6V17h-2.1'/%3E%3Cpath d='M14 17h.5'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.value-hero-title { font-size: 16px; font-weight: 800; }
.value-hero-sub { font-size: 14px; line-height: 1.45; }

/* ── INPUTS: soft filled fields that turn white and ring in her colour ── */
.form-input, .needby-row input, .note-mini-box {
  min-height: 56px; border-radius: 16px;
  background-color: color-mix(in srgb, var(--pol-ink) 3.5%, var(--surface));
  border-color: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pol-ink) 7%, transparent);
  font-size: 17px;
}
select.form-input:read-only { background-color: color-mix(in srgb, var(--pol-ink) 3.5%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pol-ink) 7%, transparent); }
.form-input:focus, .form-input:focus-visible,
.needby-row input:focus, .needby-row input:focus-visible,
.note-mini-box:focus, .note-mini-box:focus-visible {
  background-color: var(--surface); border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--pol-ring), 0 8px 20px -12px color-mix(in srgb, var(--brand-accent) 60%, transparent);
}
.form-label { color: var(--muted-strong); }

/* ── THE MAIN BUTTON: the hero of every screen ─────────────────────────
   Rest: rich, lit from above, a glow of the shop's own colour under it.
   Ready: when it wakes up (enabled), a light sweeps across it once.
   Hover: lifts, the glow grows, a sheen passes. Press: sinks, instantly.
   Waiting on the server: keeps its colour, spinner + a moving light.
   Waiting for HER (disabled): never a dead grey slab - a soft wash of the
   shop's colour, its label in the shop's colour, a slow light drifting
   across it, so it reads "ready when you are". */
.ik-primary, .sticky-go {
  min-height: 58px; border-radius: 18px;
  font-size: 17px; font-weight: 750; letter-spacing: -0.01em;
  color: var(--white);
  background-color: var(--p2-rich);
  background-image: var(--p2-btn-light);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 32%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--p2-deep) 40%, transparent),
    0 2px 4px -1px color-mix(in srgb, var(--p2-deep) 45%, transparent),
    0 16px 30px -12px color-mix(in srgb, var(--brand-accent) 75%, transparent);
  transition: transform 200ms var(--pol-ease), box-shadow 240ms var(--pol-ease),
              background-color var(--pol-fast) ease, color var(--pol-fast) ease;
}
.ik-primary::before, .sticky-go::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, color-mix(in srgb, var(--white) 34%, transparent) 50%, transparent 68%);
  transform: translateX(-110%);
}
.ik-primary:not(:disabled):not(.loading)::before, .sticky-go:not(:disabled)::before {
  animation: p2-shine 1100ms 260ms var(--pol-ease) both;
}
@keyframes p2-shine { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@media (hover: hover) {
  .ik-primary:hover:not(:disabled), .sticky-go:hover:not(:disabled) {
    background-color: var(--p2-rich); background-image: var(--p2-btn-light); transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--white) 32%, transparent),
      inset 0 -2px 0 color-mix(in srgb, var(--p2-deep) 40%, transparent),
      0 4px 8px -2px color-mix(in srgb, var(--p2-deep) 45%, transparent),
      0 24px 40px -14px color-mix(in srgb, var(--brand-accent) 85%, transparent);
  }
  .ik-primary:hover:not(:disabled):not(.loading)::before, .sticky-go:hover:not(:disabled)::before {
    animation: p2-shine 800ms var(--pol-ease) both;
  }
}
.ik-primary:active:not(:disabled), .sticky-go:active:not(:disabled) {
  background-color: var(--p2-rich); background-image: var(--p2-btn-light);
  transform: translateY(1px) scale(.97); transition-duration: 80ms;
  box-shadow:
    inset 0 2px 6px color-mix(in srgb, var(--p2-deep) 45%, transparent),
    0 1px 2px color-mix(in srgb, var(--p2-deep) 40%, transparent),
    0 6px 14px -8px color-mix(in srgb, var(--brand-accent) 70%, transparent);
}
.ik-primary:disabled:not(.loading), .sticky-go:disabled {
  color: var(--p2-rich); cursor: not-allowed;
  background-color: color-mix(in srgb, var(--brand-accent) 9%, var(--surface));
  background-image: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-accent) 36%, transparent);
}
.ik-primary:disabled:not(.loading)::before, .sticky-go:disabled::before {
  background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--brand-accent) 18%, transparent) 50%, transparent 70%);
  animation: p2-wait 3.2s ease-in-out infinite;
}
@keyframes p2-wait { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
.ik-primary.loading, .ik-primary.loading:disabled { background-color: var(--p2-rich); background-image: var(--p2-btn-light); }

/* ── THE ACTION ROW: Back on the left, the main button filling the rest.
   A real alternative ("Not quite - edit", "Change something") takes its
   own full row under them. Same row on every screen. */
.wizard-step > .ik-actions, .ik-actions:has(> #ik-bookit), body[data-step="details"] form .ik-actions {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch;
}
.ik-actions > .ik-primary { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
.ik-actions > [id^="ik-back-"] { grid-column: 1; grid-row: 1; width: auto; margin: 0; }
.ik-actions > .ik-ghost:not([id^="ik-back-"]) { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; }
.ik-actions:not(:has(> [id^="ik-back-"])) > .ik-primary { grid-column: 1 / -1; }
.ik-ghost[id^="ik-back-"] {
  min-height: 58px; padding: 0 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--pol-ink) 5%, transparent); color: var(--text);
  font-size: 15px; font-weight: 650;
}
@media (hover: hover) { .ik-ghost[id^="ik-back-"]:hover { background: color-mix(in srgb, var(--pol-ink) 9%, transparent); } }
.ik-ghost { border-radius: 18px; }
.ik-actions > .ik-ghost:not([id^="ik-back-"]) { min-height: 48px; background: transparent; box-shadow: none; border-color: color-mix(in srgb, var(--pol-ink) 12%, transparent); }

/* THE DOCK (phones and tablets): the action row floats at the bottom of
   the screen, under the thumb, frosted over whatever scrolls behind it.
   The cart's own Continue bar docks in the same place. */
@media (max-width: 1023px) {
  .wizard-step > .ik-actions, .ik-actions:has(> #ik-bookit),
  body[data-step="details"] form .ik-actions, .wizard-step > .sticky-bar {
    position: fixed; z-index: 40;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 460px; margin: 0 auto;
    padding: 9px; border-radius: 26px;
    /* 94% (was 80%, 2026-10-29): text scrolling behind the dock showed
       through it where the blur is not drawn (seen in the live walk) */
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pol-ink) 8%, transparent),
                0 20px 44px -18px color-mix(in srgb, var(--pol-ink) 45%, transparent);
    animation: p2-dock 420ms var(--pol-ease) both;
  }
  /* a two-row dock (a real alternative under the main row, e.g. the
     returning page's "Change something") needs more room under the content
     so the last line can scroll clear of it */
  .screen:has(.ik-actions > .ik-ghost:not([id^="ik-back-"]):not(.hidden)),
  body[data-step="welcome"] .screen { padding-bottom: calc(var(--p2-dock-h) + 96px + env(safe-area-inset-bottom, 0px)); }
  /* the cart keeps only Back in its own row: that one stays in the card */
  #step-cart > .ik-actions { position: static; display: block; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
  #step-cart > .ik-actions > [id^="ik-back-"] { width: 100%; }
}
@keyframes p2-dock { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 1024px) {
  /* desktop: the row sits at the foot of the card and rides along the
     bottom of the window on a long screen */
  .wizard-step > .ik-actions, .ik-actions:has(> #ik-bookit) {
    position: sticky; bottom: 16px; z-index: 5;
    padding: 10px; margin-left: -10px; margin-right: -10px; border-radius: 26px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
}

/* the cart's bar: same dock, the sum on the left, the hero button right */
.wizard-step > .sticky-bar { color: var(--text); display: flex; align-items: center; gap: 12px; padding-left: 18px; }
.sticky-sum { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.sticky-go { min-height: 56px; padding: 0 22px; border-radius: 18px; font-size: 16px; flex-shrink: 0; }
@media (min-width: 1024px) {
  .wizard-step > .sticky-bar {
    position: sticky; bottom: 16px; border-radius: 26px; padding: 9px 9px 9px 20px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pol-ink) 8%, transparent), 0 20px 44px -18px color-mix(in srgb, var(--pol-ink) 40%, transparent);
  }
}

/* ── CHOICE CARDS: tactile, and a tick that pops in when chosen ──────── */
.chip, .opt-card, .ik-addon-row, .rebook-vcheck, .access-opt, .pay-pick-btn {
  border-radius: 16px; border-color: color-mix(in srgb, var(--pol-ink) 10%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--pol-ink) 6%, transparent), 0 6px 14px -10px color-mix(in srgb, var(--pol-ink) 25%, transparent);
}
.chip.selected, .opt-card.selected, .ik-addon-row:has(input:checked), .rebook-vcheck.checked,
.access-opt.selected, .pay-pick-btn.on {
  border-color: var(--green); border-width: 2px;
  background-color: color-mix(in srgb, var(--green) 8%, var(--surface));
  box-shadow: 0 0 0 4px var(--pol-sel-ring), 0 10px 22px -14px color-mix(in srgb, var(--green) 70%, transparent);
}
/* the cards with no radio dot get a corner tick badge */
.chip { position: relative; }
.chip.selected:not(#ik-svc .chip):not(#ik-rebook-svc .chip):not(#ik-care-row .chip)::after,
.pay-pick-btn.on::after {
  content: ''; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 3px var(--surface), 0 4px 10px -2px color-mix(in srgb, var(--green) 60%, transparent);
  animation: pol-pop 300ms var(--pol-ease) both;
}
.pay-pick-btn { position: relative; }
#ik-svc .chip::before, #ik-rebook-svc .chip::before, #ik-care-row .chip::before { width: 24px; height: 24px; margin-top: -12px; }

/* ── THE TIME GRID ───────────────────────────────────────────────────── */
.quick-btn { border-radius: 999px; min-height: 46px; font-weight: 650; }
.quick-btn.on { background-color: color-mix(in srgb, var(--green) 10%, var(--surface)); border-color: var(--green); color: var(--green-text); }
.win-grid { border-radius: 22px; border: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--pol-ink) 8%, transparent), 0 14px 30px -20px color-mix(in srgb, var(--pol-ink) 40%, transparent); overflow: hidden; }
.win-cell { min-height: 56px; font-weight: 700; }
.win-cell.on { background: color-mix(in srgb, var(--green) 9%, var(--surface)); color: var(--green-text); }
.win-cell.on .tick { color: var(--green); }
/* TICKS (2026-11-05, his rule 17): no box is the jewel of the grid any
   more -- every open box looks alike; a ticked box is the green above. */
/* closed: quiet and tidy - a faint hatch, the label struck and muted */
.win-cell.closed {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pol-ink) 3%, var(--surface)) 0 7px, color-mix(in srgb, var(--pol-ink) 6%, var(--surface)) 7px 14px);
  text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent);
}

/* ── REVIEW / CART blocks: inside the card they are panels, not cards ── */
.rblk, .vcard { box-shadow: none; background: color-mix(in srgb, var(--pol-ink) 3%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pol-ink) 7%, transparent); border-radius: 20px; }
.addv { border-radius: 18px; border-color: color-mix(in srgb, var(--brand-accent) 45%, transparent); color: var(--p2-rich); font-weight: 700; }

/* ── THE CODE SCREEN ─────────────────────────────────────────────────── */
.otp-phone-display { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.otp-digit {
  width: 50px; height: 62px; border-radius: 16px; font-size: 26px; font-weight: 800;
  background: color-mix(in srgb, var(--pol-ink) 3.5%, var(--surface));
  border: 1.5px solid transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pol-ink) 8%, transparent);
}
.otp-digit:focus, .otp-digit:focus-visible { background: var(--surface); border-color: var(--brand-accent); box-shadow: 0 0 0 4px var(--pol-ring); }
.otp-digit[placeholder]:not(:placeholder-shown):not(:focus):not(.error) {
  background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-accent) 45%, transparent); box-shadow: none;
  animation: pol-pop 220ms var(--pol-ease);
}
@media (max-width: 380px) { .otp-digit { width: 44px; height: 56px; } }
/* the year box is the narrowest of the three and carries the browser's own
   arrow: at the bigger round-2 type "2020" clipped at 390 px too */
.ik-triple--ymm select.form-input { padding-left: 12px; padding-right: 2px; font-size: 16px; }

/* ── THE BOOKED MOMENT ───────────────────────────────────────────────────
   The tick sits on the edge of the card like a seal, the ring ripples out,
   a soft burst of dots in the shop's colour and the house green, the tick
   draws itself; under it her booking reads like a receipt with a torn-off
   stub for the reference. */
.success-wrap { padding: 0 0 6px; }
.success-icon {
  position: relative; width: 104px; height: 104px; margin: -82px auto 20px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pol-ink) 5%, transparent),
              0 18px 36px -14px color-mix(in srgb, var(--green) 55%, transparent);
  filter: none;
}
.success-tick { width: 84px; height: 84px; position: relative; z-index: 1; }
.success-tick circle { animation: pol-pop 560ms 80ms var(--pol-ease) both; }
.success-tick path { animation: p2-draw 460ms 420ms var(--pol-ease) both; }
/* the rounded line end would show as a dot before the tick starts drawing */
@keyframes p2-draw { 0% { stroke-dashoffset: 34; stroke-opacity: 0; } 6% { stroke-opacity: 1; } 100% { stroke-dashoffset: 0; stroke-opacity: 1; } }
.success-icon::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; pointer-events: none;
  border: 3px solid var(--green);
  animation: p2-ripple 1100ms 300ms var(--pol-ease) both;
}
@keyframes p2-ripple { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.success-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px;
  pointer-events: none; border-radius: 50%;
  background:
    radial-gradient(circle, var(--green) 0 4.5px, transparent 5px) 50% 0% / 14px 14px no-repeat,
    radial-gradient(circle, var(--brand-accent) 0 4px, transparent 4.5px) 86% 14% / 14px 14px no-repeat,
    radial-gradient(circle, var(--green) 0 3px, transparent 3.5px) 100% 50% / 14px 14px no-repeat,
    radial-gradient(circle, var(--brand-accent) 0 4.5px, transparent 5px) 86% 86% / 14px 14px no-repeat,
    radial-gradient(circle, var(--green) 0 4px, transparent 4.5px) 50% 100% / 14px 14px no-repeat,
    radial-gradient(circle, var(--brand-accent) 0 3px, transparent 3.5px) 14% 86% / 14px 14px no-repeat,
    radial-gradient(circle, var(--green) 0 4.5px, transparent 5px) 0% 50% / 14px 14px no-repeat,
    radial-gradient(circle, var(--brand-accent) 0 4px, transparent 4.5px) 14% 14% / 14px 14px no-repeat,
    radial-gradient(circle, color-mix(in srgb, var(--brand-accent) 60%, transparent) 0 2.5px, transparent 3px) 70% 3% / 10px 10px no-repeat,
    radial-gradient(circle, color-mix(in srgb, var(--green) 60%, transparent) 0 2.5px, transparent 3px) 97% 70% / 10px 10px no-repeat,
    radial-gradient(circle, color-mix(in srgb, var(--brand-accent) 60%, transparent) 0 2.5px, transparent 3px) 30% 97% / 10px 10px no-repeat,
    radial-gradient(circle, color-mix(in srgb, var(--green) 60%, transparent) 0 2.5px, transparent 3px) 3% 30% / 10px 10px no-repeat;
  animation: p2-burst 1000ms 380ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes p2-burst {
  0%   { transform: scale(.35) rotate(-12deg); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: scale(1.05) rotate(0); opacity: 0; }
}
.success-title { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.success-sub { font-size: 15px; line-height: 1.55; color: var(--muted-strong); max-width: 34ch; margin-left: auto; margin-right: auto; }
/* the stub: a dashed tear line with two notches cut into the card's edges,
   the label on it, the number big under it */
.success-ref-label {
  display: block; position: relative;
  margin: 24px calc(-1 * var(--p2-pad-x)) 0; padding: 20px var(--p2-pad-x) 0;
  border-top: 2px dashed color-mix(in srgb, var(--pol-ink) 14%, transparent);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-strong);
}
.success-ref {
  display: block; position: relative;
  margin: 4px 0 20px; padding: 0;
  border: 0; border-radius: 0;
  background: none; box-shadow: none;
  font-size: 24px; font-weight: 800; letter-spacing: .2em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.success-ref-label::before, .success-ref-label::after {
  content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--p2-canvas);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pol-ink) 5%, transparent);
}
.success-ref-label::before { left: -12px; }
.success-ref-label::after { right: -12px; }
.btn-book-again {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px;
  border-radius: 18px; text-decoration: none; font-weight: 750;
  color: var(--p2-rich); background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-accent) 35%, transparent);
  transition: transform var(--pol-fast) var(--pol-ease), background-color var(--pol-fast) ease;
}
@media (hover: hover) { .btn-book-again:hover { background: color-mix(in srgb, var(--brand-accent) 16%, var(--surface)); } }
.btn-book-again:active { transform: scale(.98); opacity: 1; }
.success-actions { width: 100%; }
.btn-ics { width: 100%; min-width: 0; min-height: 52px; border-radius: 18px; border-color: color-mix(in srgb, var(--pol-ink) 12%, transparent); box-shadow: none; }
#pin-offer { text-align: left; }

/* ── THE CLOSED PAGE ─────────────────────────────────────────────────── */
.closed-card { padding: 8px 0 4px; }
.closed-mark { width: 64px; height: 64px; border-radius: 20px; }
.closed-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.closed-call {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 26px;
  border-radius: 18px; font-weight: 750; color: var(--white);
  background-color: var(--p2-rich);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--white) 18%, transparent), transparent 50%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 32%, transparent),
              0 16px 30px -12px color-mix(in srgb, var(--brand-accent) 75%, transparent);
}

/* ── NARROW PHONES (360 px) ──────────────────────────────────────────────
   The year box is the narrowest of the three and the browser's own arrow
   sits inside it; at 360 px it clipped "2020" to "202(". Less inner padding
   on that one box only. */
@media (max-width: 380px) {
  .ik-triple--ymm select.form-input { padding-left: 10px; padding-right: 4px; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────
   portal.css already shortens every animation and transition to nothing.
   This also drops the hover lifts and press shrinks, so the page holds
   still; colour and border changes still show the state. */
@media (prefers-reduced-motion: reduce) {
  .ik-primary, .sticky-go, .ik-ghost, .chip, .opt-card, .ik-addon-row, .rebook-vcheck,
  .access-opt, .pay-pick-btn, .quick-btn, .addv, .btn-ics, .closed-call, .sign-in,
  .otp-digit, .vcard-x, .win-cell .cell-txt { transform: none !important; }
  .ik-primary.loading::before { display: none; }
  /* round 2: no pulse, no shimmer, no burst, no sliding dock; the route dot
     and every state still show, just without moving */
  body[data-step] .top-bar::before { animation: none !important; transition: none !important; }
  .ik-primary::before, .sticky-go::before,
  .success-icon::before, .success-icon::after { animation: none !important; display: none; }
  .wizard-step > .ik-actions, .ik-actions:has(> #ik-bookit), .wizard-step > .sticky-bar,
  body[data-step="details"] form .ik-actions { animation: none !important; }
}

/* ADDRESS LIST ABOVE THE BUTTONS (2026-10-29, his screenshot "perfect" = it
   was not): each piece of a step is animated, so it is its own layer, and the
   action row (docked z 40 on phones, sticky z 5 on desktop) painted over the
   open address suggestions. While the list is open its field sits on top. */
.form-group.ik-relative:has(> .addr-dropdown:not(.hidden)) { position: relative; z-index: 60; }
/* ...and the open list takes its own room, so the buttons move down under
   it instead of hiding behind it (a tap there must never pick an address) */
.form-group.ik-relative > .addr-dropdown:not(.hidden) { position: static; margin-top: 8px; }
