/* Overthought & Co. — the one stylesheet.
   The brand: paper and ink, a spinning spiral O, the wide heavy Anybody face, and colour worlds.
   Every page sets --ground to its product's backdrop colour (the same colour as the picture's own backdrop),
   so pictures sit on the page with no seam. Everything else stays paper and ink.

   Contents
   1.  Tokens
   2.  Base and type
   3.  Header
   4.  Buttons, chips, fields
   5.  Brand graphics (mark, confetti, divider)
   6.  Motion helpers (rise in, tilt, view transitions)
   7.  Home hero and stage
   8.  Product cards
   9.  Page titles, sections
   10. Product page
   11. Long-form: prose, folds, tables, lists
   12. Bag, checkout, order, account (filled by app.js)
   13. Help
   14. Policies
   15. Footer
   16. Small screens
   17. Reduced motion */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #F8F7F3; --ink: #1D1E3C; --ink-2: #54567A; --white: #fff; --signal: #C7361F;
  --sky: #5FC3EC; --orange: #FF7433; --pink: #F45BA6; --sun: #FFC72C; --lime: #B5E53A; --lilac: #C9B9F2;
  --line: rgb(29 30 60 / .12);          /* hairlines, used sparingly */
  --veil: rgb(255 255 255 / .55);       /* a light panel over a coloured ground */
  --ground: var(--paper);               /* the page's colour world; set per page */

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anybody", "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r-lg: 32px; --r-md: 20px; --r-sm: 12px;

  /* Motion language: springs for things you touch, a long ease for things that arrive. */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2. Base and type ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 80px); line-height: .98; }
h2 { font-size: clamp(28px, 3.4vw, 50px); line-height: 1; }
h3 { font-size: 21px; line-height: 1.15; font-weight: 800; font-stretch: 115%; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 980px; }
.muted { color: var(--ink-2); }
.label { font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .7; }
.sku, .mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; border-radius: 8px; }
[id] { scroll-margin-top: 96px; }
.ico { width: 22px; height: 22px; flex: none; }
.nb { white-space: nowrap; } /* a hyphenated name never splits ("Pre-Popped") */

/* 3. Header: logo left; Shop, Help, Bag right. It takes the page's colour. ---- */
.head {
  position: sticky; top: 0; z-index: 30;
  background: var(--ground); transition: background-color .8s var(--ease);
  view-transition-name: head;
}
.head .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.mark span { font: 900 20px/1 var(--display); font-stretch: 125%; }
.mark .spin { width: 34px; height: 34px; flex: none; transform: rotate(var(--turn, 0deg)); transition: transform .6s var(--spring); }
.mark:hover .spin { transform: rotate(calc(var(--turn, 0deg) + 360deg)); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { font-weight: 700; font-size: 16px; text-decoration: none; padding: 10px 14px; border-radius: 99px; transition: background-color .2s, transform .25s var(--spring); }
.nav a:hover { background: var(--veil); }
.nav a:active { transform: scale(.94); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }
.bagbtn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); margin-left: 6px; }
.bagbtn .ico { width: 20px; height: 20px; }
.bagbtn .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--paper); font: 800 13px/1 var(--sans); }
.bagbtn[aria-current] .count { background: var(--paper); color: var(--ink); }
.count.bump { animation: bump .6s var(--spring); }
@keyframes bump { 35% { transform: scale(1.6) rotate(-8deg); background: var(--orange); } }

/* 4. Buttons, chips, fields -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--sans); padding: 17px 28px; border: 2px solid var(--ink); border-radius: 99px;
  background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  transition: transform .3s var(--spring), background-color .2s, color .2s, box-shadow .3s var(--ease);
}
.btn .ico { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgb(29 30 60 / .18); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.96); box-shadow: none; transition-duration: .08s; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: 600 15px/1 var(--sans); padding: 11px 16px; border: 2px solid var(--ink); border-radius: 99px;
  background: var(--veil); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: transform .3s var(--spring), background-color .2s, color .2s;
}
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--paper); }
.chip.soldout { opacity: .45; text-decoration: line-through; }
label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: 400 16px/1.3 var(--sans); padding: 13px 14px; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-sm);
  transition: box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--lilac); }
input[type=radio], input[type=checkbox] { width: auto; flex: none; margin: 4px 0 0; accent-color: var(--ink); }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row2 > * { min-width: 0; }
.note { font-size: 14px; color: var(--ink-2); }
.alert { border: 2px solid var(--ink); padding: 14px 18px; border-radius: var(--r-sm); background: var(--white); margin: 0 0 20px; }
.alert.bad { border-color: var(--signal); color: var(--signal); }
.status { font: 700 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; border-radius: 99px; padding: 5px 9px; background: rgb(29 30 60 / .08); white-space: nowrap; }

/* 5. Brand graphics ------------------------------------------------------------ */
/* A big slowly turning mark and a few drifting circles sit behind heroes. */
.hero-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-mark {
  position: absolute; width: min(78vw, 980px); aspect-ratio: 1; right: -12%; top: 50%;
  translate: 0 -50%; color: rgb(255 255 255 / .45); animation: turn 90s linear infinite;
}
.hero-mark.small { width: min(60vw, 620px); right: -10%; }
.pdp-mark { position: absolute; width: min(70vw, 820px); aspect-ratio: 1; left: -22%; top: 8%; color: rgb(255 255 255 / .35); animation: turn 120s linear infinite reverse; }
@keyframes turn { to { rotate: 360deg; } }
.confetti i { position: absolute; border-radius: 50%; animation: drift 9s ease-in-out infinite alternate; }
/* The circles keep to the edges, clear of the words (the headline starts at the page gutter). */
.confetti i:nth-child(1) { width: 22px; height: 22px; background: var(--orange); left: 1%; top: 18%; }
.confetti i:nth-child(2) { width: 14px; height: 14px; background: var(--pink); left: 44%; top: 10%; animation-delay: -2s; }
.confetti i:nth-child(3) { width: 30px; height: 30px; background: var(--sky); right: .6%; bottom: 12%; animation-delay: -4s; }
.confetti i:nth-child(4) { width: 18px; height: 18px; background: var(--lime); right: 6%; top: 14%; animation-delay: -6s; }
.confetti i:nth-child(5) { width: 12px; height: 12px; background: var(--sun); left: 1.2%; bottom: 8%; border: 2px solid var(--ink); animation-delay: -3s; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(14px, -22px); } }
/* The circles at the sides only drift up and down, so they never wander onto the headline. */
.confetti i:nth-child(1), .confetti i:nth-child(3), .confetti i:nth-child(5) { animation-name: drift-up; }
@keyframes drift-up { to { transform: translateY(-22px); } }
/* Divider: the brand dots, with the mark in the middle turning as you scroll. */
.divider { display: flex; justify-content: center; align-items: center; gap: 12px; padding: clamp(36px, 5vw, 64px) 0 0; }
.divider i { width: 14px; height: 14px; border-radius: 50%; }
.divider i:nth-child(1) { background: var(--sky); } .divider i:nth-child(2) { background: var(--orange); } .divider i:nth-child(3) { background: var(--pink); }
.divider i:nth-child(5) { background: var(--sun); } .divider i:nth-child(6) { background: var(--lime); } .divider i:nth-child(7) { background: var(--lilac); }
.divider-mark { width: 40px; height: 40px; margin: 0 8px; transform: rotate(calc(var(--turn, 0deg) * -1.5)); }

/* 6. Motion helpers ------------------------------------------------------------- */
/* Things rise in as they reach the screen. Only hidden when fx.js has confirmed it can show them again. */
.can-rise [data-rise]:not(.in) { opacity: 0; transform: translateY(48px) rotate(1.2deg) scale(.98); }
.can-rise [data-rise] { transition: opacity .7s var(--ease) var(--d, 0ms), transform .9s var(--spring) var(--d, 0ms); }
/* Pictures tilt towards the pointer (fx.js sets --rx and --ry). */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--spring); }
/* Cut-out pictures (transparent background) stand on the page's flat colour with a soft shadow beneath:
   a wide, faint one for the ambient light and a tight one where the object meets the ground. Sized per place
   with --sh (1 = page-size picture). Pictures without a good cut-out sit in a rounded frame instead. */
img.cut {
  --sh: 1;
  filter: drop-shadow(0 calc(var(--sh) * 26px) calc(var(--sh) * 24px) rgb(29 30 60 / .17)) drop-shadow(0 calc(var(--sh) * 5px) calc(var(--sh) * 6px) rgb(29 30 60 / .12));
}
/* Original renders on their own backdrop. The box around them is the same colour (its ground), and the picture's
   edges fade into it, so the backdrop seems to fill the whole box with no seam. */
img.framed {
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 57% 59% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 57% 59% at 50% 50%, #000 70%, transparent 100%);
}
/* Pictures breathe: a slow float. */
@keyframes float { 50% { transform: translateY(-12px) rotate(-.6deg); } }
/* Moving between pages: the colour world cross-fades; the header stays put. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* 7. Home hero and stage ------------------------------------------------------------ */
.hero { position: relative; background: var(--ground); transition: background-color .8s var(--ease); isolation: isolate; }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); min-height: min(calc(100svh - 76px), 820px);
  padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 56px);
}
/* The headline and the stage are separate grid cells. The headline is sized by its own column (container units), so
   its longest word ("Ordinary", about 6.6em wide in this face) always fits, in the web font or the narrower fallback. */
.hero-copy { min-width: 0; position: relative; z-index: 2; container-type: inline-size; }
.hero h1 { font-size: clamp(30px, 4.6vw, 76px); font-size: clamp(30px, 14.2cqi, 76px); overflow-wrap: break-word; }
.hero .sub { font: 600 clamp(19px, 1.7vw, 25px)/1.3 var(--sans); margin: 22px 0 30px; max-width: 26ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
/* The hero flows into the page. Below the hero, its colour carries on and fades out into the page over a long, eased
   stretch (--flow), so there is no edge, and the colour follows the product shown. The big mark fades out before the
   hero's own edge so it is not cut off, and the sections under the hero sit above the fade. */
.hero { --flow: clamp(180px, 22vw, 340px); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: var(--flow); z-index: 1; pointer-events: none;
  background: var(--ground); transition: background-color .8s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgb(0 0 0 / .86) 14%, rgb(0 0 0 / .62) 32%, rgb(0 0 0 / .36) 52%, rgb(0 0 0 / .15) 74%, rgb(0 0 0 / .04) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, rgb(0 0 0 / .86) 14%, rgb(0 0 0 / .62) 32%, rgb(0 0 0 / .36) 52%, rgb(0 0 0 / .15) 74%, rgb(0 0 0 / .04) 90%, transparent 100%);
}
.hero .hero-art { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.hero-in { z-index: 2; }
.hero ~ .divider, .hero ~ .sec { position: relative; z-index: 1; }
.stage { min-width: 0; }
.stage-pics { position: relative; aspect-ratio: 16 / 10.5; }
/* One product at a time, never two: the old one is tossed off to the left and is fully gone (.26s) before the next
   swings in from the right on a spring (it waits .3s). The page colour eases between them. Both moves stay inside the
   stage box, so a product never passes over the headline or off the screen. */
.slide {
  position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none;
  transform: translateX(12%) translateY(4%) rotate(9deg) scale(.72);
  transition: opacity .2s linear, transform .3s var(--ease);
}
.slide.out { opacity: 0; transform: translateX(-12%) translateY(-6%) rotate(-12deg) scale(.7); transition: opacity .26s cubic-bezier(.5, 0, .9, .4), transform .36s cubic-bezier(.5, 0, .9, .4); }
.slide.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s var(--ease) .3s, transform 1s var(--spring) .3s; }
/* Shown whole inside the stage box; fx.js scales each cut-out from its opaque pixels to fill the box without leaving it. */
.slide img { width: 100%; height: 100%; object-fit: contain; animation: float 6s ease-in-out infinite; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.caps { position: relative; flex: 1; min-width: 0; height: 64px; }
.cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; text-decoration: none;
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .6s var(--spring); pointer-events: none;
}
.cap.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.cap b { font: 900 clamp(20px, 1.9vw, 28px)/1.1 var(--display); font-stretch: 120%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap span { font-weight: 700; }
.cap:hover b { text-decoration: underline; text-decoration-thickness: 3px; }
/* Dots double as a progress bar for the current product. */
.dots { display: flex; gap: 6px; flex: none; }
.dots button { position: relative; width: 12px; height: 12px; padding: 0; border-radius: 99px; border: 2px solid var(--ink); background: transparent; cursor: pointer; overflow: hidden; transition: width .5s var(--spring); }
.dots button.on { width: 44px; }
.dots button i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.dots button.on i { animation: fill var(--dur, 4200ms) linear forwards; }
.paused .dots button.on i, .still .dots button.on i { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* 8. Product cards: big pictures on their own colour, in a wide/narrow rhythm. ----- */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card {
  grid-column: span 6; position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--c); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
}
/* Rows alternate wide-narrow, narrow-wide. */
.card:nth-child(4n+1), .card:nth-child(4n+4) { grid-column: span 7; }
.card:nth-child(4n+2), .card:nth-child(4n+3) { grid-column: span 5; }
.card-pic { aspect-ratio: 16 / 10; } /* no clipping: the shadow may fall past it; the card's rounded edge clips */
.card-pic img.cut { --sh: .65; }
.card:nth-child(4n+2) .card-pic, .card:nth-child(4n+3) .card-pic { aspect-ratio: 4 / 3.45; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; transform: scale(.96); transition: transform .9s var(--spring); }
.card:hover .card-pic img { transform: scale(1.02) rotate(-1.5deg) translateY(-6px); }
.card-txt { position: relative; padding: 4px clamp(18px, 2.4vw, 32px) clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.02; font-weight: 900; font-stretch: 125%; }
.card p { font-size: 16px; margin: 8px 0 0; max-width: 40ch; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font: 900 18px/1 var(--display); font-stretch: 115%; }
.go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .5s var(--spring); }
.card:hover .go { transform: rotate(-45deg) scale(1.1); }
.card:active { transform: scale(.985); }
.sticker {
  position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); rotate: -12deg;
  font: 900 12px/1 var(--display); font-stretch: 115%; text-transform: uppercase; text-align: center;
  transition: rotate .6s var(--spring);
}
.card:hover .sticker { rotate: 8deg; }
.pending-card { display: grid; place-items: center; align-content: center; gap: 10px; height: 100%; text-align: center; padding: 20px; }
.pending-card svg { width: 56px; height: 56px; }
.pending-card b { font: 900 20px/1.1 var(--display); font-stretch: 120%; }
.pending-card i { font-style: normal; color: var(--ink-2); }

/* 9. Page titles and sections ------------------------------------------------------- */
.sec { padding: clamp(40px, 6vw, 88px) 0; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.sechead p { margin: 0; font-weight: 600; color: var(--ink-2); }
.page-title { position: relative; z-index: 1; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-title h1 { font-size: clamp(36px, 5vw, 72px); }
.page-title p { font-size: clamp(17px, 1.5vw, 20px); margin: 14px 0 0; font-weight: 500; }
.page-title .label { display: block; margin-bottom: 12px; }
.help-hero .confetti i:nth-child(1) { top: auto; bottom: 16%; left: 2%; }
.help-hero .confetti i:nth-child(2) { left: 70%; top: 12%; }
.shop-hero { position: relative; margin-bottom: clamp(16px, 2vw, 28px); }
.shop-hero .confetti i:nth-child(1) { left: auto; right: 4%; top: 62%; }
.shop-hero .confetti i:nth-child(2) { left: auto; right: 14%; top: 8%; }
.shop-hero .confetti i:nth-child(3) { left: auto; right: 8%; bottom: 20%; }

/* 10. Product page --------------------------------------------------------------------- */
.pdp { position: relative; background: var(--ground); isolation: isolate; transition: background-color .6s var(--ease); }
.pdp-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-top: clamp(12px, 2vw, 32px); padding-bottom: clamp(40px, 5vw, 72px); }
.pdp-pic { position: sticky; top: 96px; }
/* Every picture is a 16:9 render on its own backdrop colour: shown whole (contain), on that colour (--c),
   with the edges feathered so no seam shows against the page. */
.pic { position: relative; aspect-ratio: 16 / 9; background: var(--c, var(--ground)); display: grid; place-items: center; overflow: hidden; border-radius: var(--r-lg); transition: background-color .6s var(--ease); }
.pic img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; animation: float 7s ease-in-out infinite; }
/* A picture swap (fx.js): the old picture drops away first and is gone before the new one pops in, so two
   products never show on top of each other. The frame never changes size. */
.pic img.incoming { opacity: 0; scale: .9; translate: 0 14px; transition: opacity .25s var(--ease) .2s, scale .7s var(--spring) .2s, translate .7s var(--spring) .2s; }
.pic img.incoming.in { opacity: 1; scale: 1; translate: 0 0; }
.pic img.leaving { opacity: 0; scale: .94; translate: 0 10px; transition: opacity .18s ease-in, scale .2s ease-in, translate .2s ease-in; }
.pdp-pic { padding-top: clamp(0px, 2vw, 24px); }
/* On a product page the page itself is the product's colour, so the frame is clear: the cut-out stands on the
   page and the turning brand mark passes freely behind it. Overflow shows so the shadow is never clipped. */
.pdp .pic { background: transparent; border-radius: 0; overflow: visible; }
.pdp-frame { position: relative; }
/* More than one picture: small thumbnails under the main one. The chosen one is ringed in ink. */
.thumbs { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.thumb {
  width: 84px; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--c); box-shadow: 0 0 0 2px rgb(29 30 60 / .14); opacity: .78;
  transition: transform .35s var(--spring), box-shadow .2s, opacity .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; scale: 1.2; --sh: .25; }
.thumb img.framed { object-fit: cover; scale: 1; -webkit-mask-image: none; mask-image: none; }
.thumb:hover { transform: translateY(-3px); opacity: 1; }
.thumb:active { transform: scale(.94); }
.thumb.on { box-shadow: 0 0 0 3px var(--ink); opacity: 1; }
/* No picture yet (some accessories): a neat label tile on the parent's colour, the spiral and the name. */
.pic.tile { background: transparent; }
.label-tile {
  display: grid; place-items: center; align-content: center; gap: 14px; width: 100%; height: 100%; padding: 20px; text-align: center;
  background: radial-gradient(closest-side circle at 50% 50%, rgb(255 255 255 / .5), rgb(255 255 255 / .18) 60%, transparent);
}
.label-disc { display: grid; place-items: center; width: clamp(56px, 22%, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--ink), 0 8px 0 rgb(29 30 60 / .12); }
.label-disc svg { width: 58%; height: 58%; color: var(--ink); }
.label-tile b { font: 900 clamp(18px, 2.2vw, 32px)/1.05 var(--display); font-stretch: 120%; max-width: 14ch; text-wrap: balance; }
.pdp .label-tile { animation: float 7s ease-in-out infinite; }
.pdp-buy { min-width: 0; padding-top: clamp(0px, 2vw, 24px); }
.pdp-buy h1 { font-size: clamp(36px, 4.2vw, 62px); margin-top: 8px; }
/* Long names ("The Emergency Sandwich") are set a size smaller so they break into two deliberate lines. */
.pdp-buy h1.long { font-size: clamp(30px, 3.1vw, 46px); font-stretch: 112%; line-height: 1.02; }
.pdp-buy .tagline { font: 600 clamp(18px, 1.5vw, 21px)/1.35 var(--sans); margin: 14px 0 0; }
.priceline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 6px; }
.priceline .big { font: 900 36px/1 var(--display); font-stretch: 115%; }
.stock { font: 700 13px/1 var(--sans); padding: 7px 11px; border-radius: 99px; background: var(--veil); }
.stock:empty { display: none; }
.stock.low { background: var(--sun); }
.stock.out { background: var(--white); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.stock-note { margin: 12px 0 0; font-weight: 600; font-size: 15px; }
.opt { margin: 20px 0 0; }
.opt .label { display: block; margin-bottom: 10px; }
.buyrow { display: flex; gap: 10px; margin: 26px 0 10px; }
/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 99px; background: var(--veil); flex: none; }
.qty button { width: 44px; height: 52px; border: 0; background: none; font: 700 22px/1 var(--sans); color: var(--ink); cursor: pointer; border-radius: 99px; transition: transform .25s var(--spring); }
.qty button:active { transform: scale(.8); }
.qty input { width: 40px; border: 0; padding: 0; text-align: center; background: none; font: 800 18px/1 var(--sans); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.qty:focus-within { box-shadow: 0 0 0 4px var(--lilac); }
/* Add to bag: the label slides away and a tick draws itself, then it returns. */
.add { flex: 1; position: relative; overflow: hidden; min-height: 56px; }
.add-lbl, .add-done { display: inline-flex; align-items: center; gap: 8px; transition: transform .5s var(--spring), opacity .25s; }
.add-done { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(110%); }
.add .tick { width: 24px; height: 24px; }
.add .tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.add.is-added { background: var(--lime); color: var(--ink); animation: pop .5s var(--spring); }
.add.is-added .add-lbl { transform: translateY(-110%); opacity: 0; }
.add.is-added .add-done { transform: none; opacity: 1; }
.add.is-added .tick path { animation: draw .45s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 30% { transform: scale(1.05); } 60% { transform: scale(.98); } }
.added-note { margin: 10px 0 0; font-weight: 600; font-size: 15px; }
.added-note:empty { display: none; }
/* Three plain facts. First sentence shown; the rest behind "More". */
.facts { margin-top: 26px; display: grid; gap: 8px; }
.fact { background: var(--veil); border-radius: var(--r-sm); font-size: 15px; }
.fact > span, .fact summary { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 16px; }
div.fact { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 16px; }
div.fact > span { display: block; padding: 0; }
.fact b { font: 800 12px/1.9 var(--sans); text-transform: uppercase; letter-spacing: .07em; }
.fact summary { list-style: none; cursor: pointer; }
.fact summary::-webkit-details-marker { display: none; }
.fact .more-link { font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.fact[open] .more-link { display: none; }
.fact > p { margin: 0; padding: 0 16px 14px calc(16px + 92px + 12px); color: var(--ink-2); }
/* The sections further down: one column of plain blocks, plenty of space. */
.pdp-more { max-width: 1060px; padding-top: clamp(24px, 4vw, 56px); }
.more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(16px, 4vw, 64px); padding: clamp(28px, 4vw, 52px) 0; }
.more > h2 { font-size: clamp(24px, 2.4vw, 34px); position: relative; padding-left: 26px; }
.more > h2::before { content: ""; position: absolute; left: 0; top: .28em; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); border: 2px solid var(--ink); }
.lead { font: 600 20px/1.4 var(--sans); }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ground); flex: none; }
/* Good to know: full sentences, read comfortably, each with a small dot in the page's colour. */
.know { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.know li { position: relative; font: 500 18px/1.6 var(--sans); padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); max-width: 62ch; }
.know li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 2px var(--ink); }
.know li:first-child { padding-top: 0; } .know li:first-child::before { top: 9px; }
.know li:last-child { border-bottom: 0; }
/* Very short feature lines (Blip's five) stay as large plain lines. */
.does { list-style: none; padding: 0; margin: 0; }
.does li { font: 600 clamp(19px, 1.7vw, 24px)/1.3 var(--sans); padding: 14px 0; border-bottom: 1px solid var(--line); max-width: none; }
.does li:first-child { padding-top: 0; }
.does li:last-child { border-bottom: 0; }
/* The specs, for the few products that have real ones. */
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { font-weight: 700; } .specs dd { margin: 0; }
.more.wide { grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.backlink { margin: 26px 0 0; }
.backlink .btn .ico { width: 18px; height: 18px; }
.backlink .btn:hover .ico { transform: translateX(-3px); }

/* Accessory cards: picture on its own colour, name, one line, price and an Add button that ticks. */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.acards.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.acard { position: relative; display: flex; flex-direction: column; background: var(--c); border-radius: var(--r-md); overflow: hidden; transition: transform .5s var(--spring), box-shadow .3s var(--ease); }
.acard:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--ink); }
.acard-pic { display: block; aspect-ratio: 16 / 10; }
.acard-pic img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.06); transition: transform .8s var(--spring); --sh: .45; }
.acard:hover .acard-pic img { transform: scale(1.12) rotate(-1deg); }
.acard-pic .pending-card { gap: 6px; }
.acard-pic .pending-card svg { width: 34px; height: 34px; opacity: .5; }
.acard-pic .pending-card b { font-size: 17px; }
.acard-txt { display: flex; flex-direction: column; flex: 1; padding: 6px 18px 18px; }
.acard h3 { font-size: 19px; line-height: 1.1; }
.acard h3 a { text-decoration: none; }
.acard h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.acard p { font-size: 15px; margin: 6px 0 0; color: var(--ink-2); }
.acard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.acard .add { flex: none; min-height: 44px; padding: 10px 18px; }
.acard.small h3 { font-size: 17px; }
.acard.small .acard-txt { padding: 4px 16px 16px; }

/* 11. Long-form ------------------------------------------------------------------------- */
.prose { min-width: 0; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h3 { margin: 26px 0 8px; } .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 20px; max-width: 62ch; } .prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; text-align: left; vertical-align: top; }
/* Folds: questions and details that open in place. Soft blocks rather than rules. */
.fold { background: var(--white); border-radius: var(--r-md); margin-bottom: 8px; transition: box-shadow .3s var(--ease); }
.fold:hover { box-shadow: 0 0 0 2px var(--ink); }
.fold summary { list-style: none; cursor: pointer; position: relative; padding: 18px 60px 18px 22px; font-weight: 700; font-size: 17px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ground); font: 700 20px/1 var(--sans); transition: rotate .4s var(--spring);
}
.fold[open] summary::after { rotate: 45deg; }
.fold > div { padding: 0 22px 20px; animation: open .4s var(--ease); }
.fold > div > :last-child { margin-bottom: 0; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.spec th { width: 36%; font-weight: 700; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 900 17px/1.1 var(--display); font-stretch: 115%; }
.cmp tbody th { font-weight: 700; width: 24%; }
.scroll { overflow-x: auto; }
.yes { font-weight: 700; } .no { color: var(--signal); font-weight: 700; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
/* Accessories, spares and other priced lists. */
.extras { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.extras li { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: var(--white); border-radius: var(--r-md); padding: 16px 18px; }
.extras .grow { flex: 1; min-width: 200px; }
.extras p { margin: 4px 0; color: var(--ink-2); font-size: 15px; }

/* 12. Bag, checkout, order, account ------------------------------------------------------------- */
.steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: clamp(24px, 3vw, 40px) 0 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: var(--white); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.steps li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(29 30 60 / .08); font: 800 14px/1 var(--sans); font-style: normal; }
.steps li i .ico { width: 18px; height: 18px; }
.steps li[aria-current] { background: var(--ink); color: var(--paper); }
.steps li[aria-current] i { background: var(--sun); color: var(--ink); }
.steps li.done { color: var(--ink); } .steps li.done i { background: var(--lime); }
.work { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.work > * { min-width: 0; }
.panel { background: var(--white); border-radius: var(--r-md); padding: clamp(18px, 2vw, 28px); box-shadow: 0 0 0 2px var(--ink); }
.panel h3 { margin-bottom: 14px; }
aside.panel { position: sticky; top: 96px; }
.work h3 { margin: 0 0 14px; }
.work form > div > h3:not(:first-child), .work > div > h3:not(:first-child) { margin-top: 28px; }
.sum { width: 100%; border-collapse: collapse; font-size: 15px; }
.sum td { padding: 7px 0; vertical-align: top; } .sum td:last-child { text-align: right; font-weight: 700; padding-left: 12px; white-space: nowrap; }
.sum tr.total td { border-top: 2px solid var(--ink); font: 900 20px/1.2 var(--display); font-stretch: 115%; padding-top: 12px; }
.pick { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 0 0 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); cursor: pointer; transition: box-shadow .2s; }
.pick:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); background: var(--white); }
.pick small { display: block; color: var(--ink-2); font-size: 13.5px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; gap: 12px 16px; padding: 14px 18px; background: var(--white); border-radius: var(--r-md); align-items: center; flex-wrap: wrap; }
.list li .grow { flex: 1; min-width: 180px; }
/* Bag lines: a thumbnail on the product's colour, name, stepper, price. */
.bagline { display: grid !important; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px 18px !important; }
.bagline { grid-template-columns: 128px minmax(0, 1fr) auto !important; }
.bagline .thumb { width: 128px; aspect-ratio: 16 / 11; border-radius: 14px; background: var(--c); overflow: hidden; display: grid; place-items: center; }
.bagline .thumb img { width: 100%; height: 100%; object-fit: contain; scale: 1.3; --sh: .22; }
.bagline .thumb svg { width: 34px; height: 34px; opacity: .5; }
.list li.bagline .grow { min-width: 0; }
.bagline .grow b a { text-decoration: none; } .bagline .grow b a:hover { text-decoration: underline; }
.bagline .each { font-size: 14px; color: var(--ink-2); }
/* The item cell stays a real table cell (so it takes all the room the price leaves); the picture and name sit in a
   row inside it. A flex table cell would be squeezed to a sliver on phones. */
.sum .thumbline td:first-child { width: 100%; }
.sum .item-line { display: flex; gap: 10px; align-items: center; }
.sum .mini { width: 56px; aspect-ratio: 16 / 11; flex: none; border-radius: 8px; background: var(--c); display: grid; place-items: center; overflow: hidden; }
.sum .mini img { width: 100%; height: 100%; object-fit: contain; scale: 1.3; --sh: .12; }
.order-items .mini { width: 72px; aspect-ratio: 16 / 11; flex: none; border-radius: 10px; background: var(--c); overflow: hidden; }
.order-items .mini img { width: 100%; height: 100%; object-fit: contain; scale: 1.3; --sh: .14; }
.bagline .thumb img.framed, .mini img.framed { object-fit: cover; scale: 1; -webkit-mask-image: none; mask-image: none; }
.bagline .line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bagline .line-total { font: 900 18px/1 var(--display); font-stretch: 115%; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 99px; padding: 2px; }
.stepper .btn { border: 0; padding: 6px 12px; background: none; color: var(--ink); box-shadow: none; }
.stepper .btn:hover { background: rgb(29 30 60 / .08); transform: none; }
.stepper .mono { min-width: 18px; text-align: center; font: 800 15px/1 var(--sans); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: 600 14px/1 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty { text-align: center; padding: clamp(32px, 6vw, 80px) 0; }
.empty svg { width: 72px; height: 72px; margin: 0 auto 16px; }
.empty p { margin-left: auto; margin-right: auto; }
.empty.small { padding: 24px 0; }
.empty.small svg { width: 44px; height: 44px; color: var(--ink-2); }
.checkout-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.field .hint { display: block; font-weight: 400; color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.field.has-error input { border-color: var(--signal); }
.field .err { display: block; color: var(--signal); font-size: 14px; font-weight: 600; margin-top: 6px; }
.decline { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.decline summary { cursor: pointer; font-weight: 600; }
.decline .chips { margin-top: 10px; }
.decline .chip { font-size: 13.5px; padding: 8px 12px; }
/* Checkout: Payment. Card only on the website for now (build.mjs SITE_PAYMENT_METHODS), so three brand tiles sit straight
   under the heading (just the words, in colours that suit each brand: no logos). With more methods switched on, method
   tiles (.mtiles) come first. The drawn card flips to the brand chosen. A card that doesn't go through shakes, with one plain
   line under the tiles. */
/* Laid out by the room the payment area itself has (a container), not by the window: the drawn card sits beside the
   brands only when the brands still get enough width; otherwise it goes underneath. */
[data-co-card] { container-type: inline-size; }
.pay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 24px; align-items: start; margin: 0 0 12px; }
.pay .paycard { max-width: 340px; }
@container (min-width: 720px) { .pay, .pay.solo { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .pay .paycard { max-width: none; } }
.pay-head { margin: 0 0 12px; font: 700 17px/1.3 var(--sans); }
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; container-type: inline-size; }
.brand {
  position: relative; display: grid; place-items: center; min-height: 74px; padding: 10px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--white); box-shadow: 0 0 0 2px var(--line); transition: transform .3s var(--spring), box-shadow .2s;
}
.brand span { font: 900 19px/1 var(--display); font-stretch: 112%; letter-spacing: -.01em; text-align: center; }
.brand.b-visa span { color: #1A1F71; font-style: italic; font-size: clamp(18px, 7.6cqi, 24px); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; }
.brand.b-mastercard span { font-size: clamp(11px, 4cqi, 14.5px); font-stretch: 100%; letter-spacing: -.02em; background: linear-gradient(90deg, #EB001B, #F79E1B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.b-american-express span { color: #fff; font-size: clamp(11.5px, 4.5cqi, 15px); font-stretch: 100%; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; }
.brand.b-american-express { background: #2E77BC; }
.brand:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgb(29 30 60 / .4); }
.brand:active { transform: scale(.95); }
.brand[aria-pressed="true"] { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--ink); }
.brand[aria-pressed="true"]::after { content: ""; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1E3C' 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 2px var(--ink); }
.brand:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.paycard { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.586; border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: linear-gradient(135deg, #34366B, var(--ink) 70%); box-shadow: 0 14px 30px rgb(29 30 60 / .22); --k: var(--lilac); }
.paycard::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; right: -18%; top: -34%; border-radius: 50%; background: var(--k); opacity: .5; }
.paycard::after { content: ""; position: absolute; width: 40%; aspect-ratio: 1; left: -12%; bottom: -30%; border-radius: 50%; background: var(--k); opacity: .22; }
.paycard > * { position: relative; z-index: 1; }
.paycard.b-visa { background: linear-gradient(135deg, #2B3192, #1A1F71 72%); --k: var(--sky); }
.paycard.b-mastercard { background: linear-gradient(135deg, #3A3B47, #18181F 72%); --k: #F79E1B; }
.paycard.b-american-express { background: linear-gradient(135deg, #4A98D9, #2066A8 72%); --k: #9FD3FF; }
.paycard.blank { background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 2px rgb(29 30 60 / .18); }
.paycard.blank::before, .paycard.blank::after { opacity: .2; }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-chip { width: 36px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #FFE08A, var(--sun)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.pc-brand { margin-left: auto; font: 900 17px/1 var(--display); font-stretch: 115%; color: var(--white); text-align: right; }
.paycard.b-visa .pc-brand { font-style: italic; text-transform: uppercase; font-size: 22px; font-stretch: 125%; }
.pc-num { font: 500 clamp(15px, 1.6vw, 18px)/1 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.pc-foot { display: flex; justify-content: space-between; gap: 16px; }
.pc-foot div { min-width: 0; }
.pc-foot small { display: block; font: 700 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.pc-foot b { display: block; font: 700 13px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paycard.flip { animation: pc-flip .7s var(--spring); }
@keyframes pc-flip { from { transform: perspective(900px) rotateY(-90deg) scale(.94); } }
.paycard.shake { animation: pc-shake .5s var(--ease); }
@keyframes pc-shake { 20% { transform: translateX(-10px) rotate(-1deg); } 40% { transform: translateX(9px) rotate(.8deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
.payerr { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--pink) 14%, var(--white)); box-shadow: 0 0 0 2px var(--signal); animation: who-in .45s var(--spring); }
.payerr b { display: block; color: var(--signal); font: 800 16px/1.3 var(--sans); }
.payerr p { margin: 2px 0 0; font-weight: 600; }
/* Ways to pay: four tiles (Card and the methods in business.payments.methods), each with a small icon drawn in CSS by
   kind. No real brand artwork. A method the bag can't use is greyed, with its reason in one line underneath. */
.mtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.mtiles.nudge { animation: pc-shake .5s var(--ease); }
.mtile {
  position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; min-height: 104px; padding: 12px 12px 12px; border: 0; border-radius: 14px;
  background: var(--white); box-shadow: 0 0 0 2px var(--line); cursor: pointer; font: inherit; color: var(--ink); text-align: left;
  transition: transform .3s var(--spring), box-shadow .2s;
}
.mtile b { font: 900 18px/1.05 var(--display); font-stretch: 110%; margin-top: 4px; }
.mtile small { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.mtile.k-wallet { background: color-mix(in srgb, var(--lime) 22%, var(--white)); }
.mtile.k-account { background: color-mix(in srgb, var(--sky) 20%, var(--white)); }
.mtile.k-pay_later { background: color-mix(in srgb, var(--sun) 24%, var(--white)); }
.mtile:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgb(29 30 60 / .4); }
.mtile:active { transform: scale(.96); }
.mtile[aria-pressed="true"] { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--ink); }
.mtile[aria-pressed="true"]::after { content: ""; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1E3C' 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 2px var(--ink); }
.mtile[aria-disabled="true"] { background: var(--paper); box-shadow: 0 0 0 2px var(--line); cursor: not-allowed; opacity: .55; filter: grayscale(1); transform: none; }
.mtile:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.mt-ico { position: relative; display: block; width: 34px; height: 24px; }
.mt-ico::before, .mt-ico::after { content: ""; position: absolute; box-sizing: border-box; }
.k-card .mt-ico::before { inset: 0; border-radius: 5px; background: var(--ink); }
.k-card .mt-ico::after { left: 5px; top: 6px; width: 9px; height: 7px; border-radius: 2px; background: var(--sun); }
.k-wallet .mt-ico::before { left: 2px; top: -2px; width: 16px; height: 28px; border-radius: 5px; border: 2.5px solid var(--ink); background: var(--white); }
.k-wallet .mt-ico::after { left: 20px; top: 5px; width: 12px; height: 14px; border-radius: 0 12px 12px 0; border: 2.5px solid var(--ink); border-left: 0; }
.k-account .mt-ico::before { left: 9px; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.k-account .mt-ico::after { left: 4px; top: 13px; width: 22px; height: 12px; border-radius: 12px 12px 3px 3px; background: var(--ink); }
.k-pay_later .mt-ico::before { left: 2px; top: -1px; width: 26px; height: 25px; border-radius: 5px; border: 2.5px solid var(--ink); border-top-width: 7px; background: var(--white); }
.k-pay_later .mt-ico::after { content: "30"; left: 2px; top: 7px; width: 26px; text-align: center; font: 800 11px/1 var(--sans); color: var(--ink); }
.why-not { list-style: none; margin: -4px 0 14px; padding: 0; font-size: 14px; color: var(--ink-2); }
.why-not li { margin: 0 0 4px; padding: 6px 10px; border-radius: 8px; transition: background-color .3s; }
.why-not li.flash { background: color-mix(in srgb, var(--sun) 40%, var(--white)); }
.pay-sub { margin: 0 0 10px; font: 700 15px/1.3 var(--sans); }
.pay-explain { margin: 4px 0 0; font: 600 17px/1.4 var(--sans); }
/* Tap: a phone that asks you to confirm, then shows a tick (or runs out of time). */
.phone { width: min(100%, 190px); justify-self: center; aspect-ratio: 9 / 17; padding: 9px; border-radius: 30px; background: var(--ink); box-shadow: 0 14px 30px rgb(29 30 60 / .25); }
.ph-screen { position: relative; height: 100%; border-radius: 22px; background: linear-gradient(180deg, #FAFFF0, color-mix(in srgb, var(--lime) 30%, var(--white))); display: flex; flex-direction: column; align-items: center; padding: 26px 12px 14px; text-align: center; overflow: hidden; }
.ph-notch { position: absolute; top: 8px; width: 46px; height: 8px; border-radius: 9px; background: var(--ink); }
.ph-side { position: absolute; right: -9px; top: 26%; width: 4px; height: 34px; border-radius: 4px; background: var(--ink); }
.ph-name { margin: 0; font: 900 15px/1 var(--display); font-stretch: 112%; }
.ph-amt { margin: 10px 0 0; font: 800 24px/1 var(--sans); }
.ph-to { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-2); }
.ph-say { margin: auto 0 0; font-size: 13px; line-height: 1.35; }
.ph-ring, .ph-done, .ph-bad { margin: auto 0 0; width: 58px; height: 58px; border-radius: 50%; }
.ph-ring { border: 4px solid rgb(29 30 60 / .12); border-top-color: var(--ink); animation: turn 1s linear infinite; }
.ph-done { display: grid; place-items: center; background: var(--lime); box-shadow: 0 0 0 3px var(--ink); animation: pop .5s var(--spring); }
.ph-bad { display: grid; place-items: center; background: color-mix(in srgb, var(--pink) 30%, var(--white)); box-shadow: 0 0 0 3px var(--signal); color: var(--signal); font: 900 30px/1 var(--display); }
.phone .ph-say:not(:first-child) { margin-top: 10px; }
.ph-ring + .ph-say, .ph-done + .ph-say, .ph-bad + .ph-say { margin-top: 10px; margin-bottom: auto; }
.tick { width: 30px; height: 30px; color: var(--ink); }
.tick path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s var(--ease) .1s forwards; }
.phone.s-confirm .ph-side { animation: side 1.2s ease-in-out infinite; }
@keyframes side { 50% { background: var(--lime); box-shadow: 0 0 10px var(--lime); } }
.phone.shake, .acct.shake, .later.shake { animation: pc-shake .5s var(--ease); }
.phone.flip, .acct.flip, .later.flip { animation: pc-flip .7s var(--spring); }
/* PayPost: a little "log in and approve" window that slides in, with Approve and Close. */
.acct { width: 100%; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 2px var(--ink), 0 14px 30px rgb(29 30 60 / .18); overflow: hidden; }
.ac-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: color-mix(in srgb, var(--sky) 35%, var(--white)); border-bottom: 2px solid var(--ink); font: 800 13px/1 var(--sans); }
.ac-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1.5px var(--ink); }
.ac-bar span { margin-left: 6px; }
.ac-body { padding: 16px; font-size: 14.5px; min-height: 120px; }
.ac-body p { margin: 0 0 8px; }
.ac-who { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.ac-pay { font-size: 16px; }
.ac-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ac-done, .lt-ok { display: flex; align-items: center; gap: 10px; font: 800 17px/1 var(--sans); }
.ac-done .tick, .lt-ok .tick { padding: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); animation: pop .5s var(--spring); }
.ac-bad { color: var(--signal); font-weight: 700; }
.acct.s-open { animation: slide-in .55s var(--spring); }
.acct.s-closing { animation: slide-out .45s var(--ease) forwards; }
@keyframes slide-in { from { transform: translateX(40px) scale(.96); opacity: 0; } }
@keyframes slide-out { to { transform: translateY(14px) scale(.94); opacity: 0; } }
/* Later: £0 today, the rest in 30 days; "checking…", then approved with the date, or a kind no. */
.later { width: 100%; border-radius: 14px; padding: 16px; background: color-mix(in srgb, var(--sun) 22%, var(--white)); box-shadow: 0 0 0 2px var(--ink); font-size: 14.5px; }
.later p { margin: 0 0 8px; }
.lt-name { font: 900 18px/1 var(--display); font-stretch: 110%; margin-bottom: 12px !important; }
.lt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.lt-split div { padding: 10px 12px; border-radius: 10px; background: var(--white); }
.lt-split small { display: block; font: 700 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.lt-split b { font: 800 20px/1.2 var(--sans); }
.lt-bar { height: 10px; border-radius: 9px; background: var(--white); overflow: hidden; margin: 6px 0 10px; box-shadow: 0 0 0 2px var(--ink); }
.lt-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; animation: fill 1.3s var(--ease) forwards; transform: scaleX(0); }
.lt-ok { margin: 4px 0 10px; }
.lt-no b { color: var(--signal); font-size: 16px; }
/* Track an order: pick, choose or paste. Nothing personal to type. */
.track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.track .panel h3 { font-size: 19px; margin-bottom: 12px; }
.order-picks { display: grid; gap: 8px; }
.order-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); transition: box-shadow .2s, transform .3s var(--spring); }
.order-pick span:last-child { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.order-pick:hover { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-1px); }
/* Bag: the made-up customer the order goes to, with Randomise. */
.sendto { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); font-size: 14px; }
.sendto p { margin: 0; }
.sendto .btn .ico { width: 16px; height: 16px; }
.panel .choices { grid-template-columns: minmax(0, 1fr); }
/* A bag with chilled and ordinary things: two little parcels, Cold and Warm. */
.parcels { display: flex; align-items: center; gap: 16px; margin: 4px 0 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); }
.parcels p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.parcel-pics { display: flex; gap: 8px; flex: none; padding-top: 6px; }
.parcel { position: relative; width: 58px; height: 46px; border-radius: 7px; display: grid; place-items: end center; padding-bottom: 6px; box-shadow: inset 0 0 0 2px var(--ink); animation: parcel-bob 3s var(--ease) infinite; }
.parcel::before { content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 16px; translate: -50% 0; background: rgb(255 255 255 / .6); box-shadow: inset 0 -2px 0 rgb(29 30 60 / .15); }
.parcel::after { content: ""; position: absolute; left: -3px; right: -3px; top: -6px; height: 9px; border-radius: 4px; background: inherit; box-shadow: inset 0 0 0 2px var(--ink); }
.parcel b { font: 800 11.5px/1 var(--sans); }
.parcel.cold { background: var(--sky); rotate: -4deg; }
.parcel.warm { background: var(--orange); rotate: 3deg; translate: 0 4px; animation-delay: -1.5s; }
@keyframes parcel-bob { 50% { transform: translateY(-3px); } }
/* Checkout: a made-up customer on a card, with Randomise beside the heading. Nobody types their own details. */
.who-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.work .who-head h3 { margin: 0; }
.who-head .btn .ico { width: 18px; height: 18px; }
.who-head .btn:hover .ico { transform: rotate(90deg); }
.who { background: var(--white); border-radius: var(--r-md); box-shadow: 0 0 0 2px var(--ink); padding: clamp(18px, 2vw, 26px); }
.who.swap { animation: who-in .55s var(--spring); }
@keyframes who-in { from { opacity: 0; transform: translateY(10px) rotate(-.6deg); } }
.who-name { font: 900 clamp(22px, 2.4vw, 30px)/1.05 var(--display); font-stretch: 120%; margin-bottom: 14px; }
.who-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; font-size: 15px; }
.who-list dt { font: 800 11.5px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.who-list dd { margin: 0; overflow-wrap: break-word; }
.who-note { margin: 10px 0 0; max-width: none; }
/* Delivery: friendly choice cards, names, times and prices all from the data. */
.choices { border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px 16px 15px; border-radius: var(--r-md); background: var(--white); box-shadow: 0 0 0 2px var(--line); font-weight: 400; cursor: pointer; transition: transform .3s var(--spring), box-shadow .2s; }
.choice:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgb(29 30 60 / .4); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.choice b { font: 900 22px/1 var(--display); font-stretch: 120%; }
.choice-price { font: 800 15px/1 var(--sans); }
.choice small { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.choice:has(input:checked) { box-shadow: 0 0 0 3px var(--ink); background: var(--sun); }
.choice:has(input:checked) small { color: var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 3px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.inline > input, .inline > select { width: auto; flex: 1; min-width: 120px; }
.sub-panel { flex-basis: 100%; background: var(--paper); border-radius: var(--r-sm); padding: 14px 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
/* Order placed: a big drawn tick. */
.placed { display: flex; gap: 18px; align-items: center; background: var(--lime); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 28px; }
.placed svg { width: 56px; height: 56px; flex: none; background: var(--ink); color: var(--lime); border-radius: 50%; padding: 12px; }
.placed svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s .2s var(--ease) forwards; }
.placed b { display: block; font: 900 clamp(20px, 2.2vw, 28px)/1.1 var(--display); font-stretch: 115%; }
.placed p { margin: 4px 0 0; }

/* 13. Help ---------------------------------------------------------------------------------- */
.help-hero { position: relative; background: var(--ground); isolation: isolate; padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.help-hero .wrap { position: relative; z-index: 1; }
.help-hero h1 { font-size: clamp(36px, 5vw, 72px); }
.bigsearch { position: relative; display: block; max-width: 760px; margin: clamp(20px, 3vw, 32px) 0 0; }
.bigsearch .ico { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; pointer-events: none; }
.bigsearch input { font: 600 clamp(18px, 1.6vw, 21px)/1.2 var(--sans); padding: 22px 22px 22px 62px; border-radius: 99px; box-shadow: 0 8px 0 rgb(29 30 60 / .12); }
.bigsearch input:focus { box-shadow: 0 8px 0 rgb(29 30 60 / .12), 0 0 0 5px var(--sky); }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: clamp(24px, 3vw, 40px); max-width: 1120px; }
.topic {
  display: grid; justify-items: start; gap: 6px; text-align: left; padding: 18px; border-radius: var(--r-md);
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; font: inherit;
  transition: transform .35s var(--spring), background-color .2s;
}
.topic .ico { width: 36px; height: 36px; padding: 7px; border-radius: 50%; margin-bottom: 4px; transition: rotate .5s var(--spring); }
.topic:nth-child(1) .ico { background: var(--sky); } .topic:nth-child(2) .ico { background: var(--orange); }
.topic:nth-child(3) .ico { background: var(--sun); } .topic:nth-child(4) .ico { background: var(--lime); } .topic:nth-child(5) .ico { background: var(--pink); }
.topic:nth-child(6) .ico { background: var(--lilac); } .topic:nth-child(7) .ico { background: var(--sky); } .topic:nth-child(8) .ico { background: var(--orange); }
.topic b { font: 900 18px/1.1 var(--display); font-stretch: 115%; }
.topic span { font-size: 13.5px; color: var(--ink-2); }
.topic:hover { transform: translateY(-4px); }
.topic:hover .ico { rotate: -12deg; }
.topic:active { transform: scale(.96); }
.topic[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.topic[aria-pressed="true"] span { color: rgb(248 247 243 / .75); }
.help-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); align-items: start; }
.answers-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.answers-head { font: 800 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0; }
.help-group + .help-group { margin-top: clamp(28px, 3.4vw, 44px); }
.help-group > h2 { font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 14px; }
.searching .help-group > h2 { display: none; }
.searching .help-group + .help-group { margin-top: 0; }
.answers .fold { background: var(--white); }
.help-side { position: sticky; top: 96px; }
.help-side h2 { font-size: 22px; margin: 0 0 14px; }
.help-side h2:not(:first-child) { margin-top: 32px; }
.actions { display: grid; gap: 10px; }
.action {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--white);
  text-decoration: none; box-shadow: 0 0 0 2px var(--ink); transition: transform .35s var(--spring), background-color .2s;
}
.action > .ico:first-child { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--lilac); }
.action:nth-child(2) > .ico:first-child { background: var(--orange); }
.action:nth-child(3) > .ico:first-child { background: var(--sun); }
.action span { flex: 1; min-width: 0; }
.action b { display: block; font-size: 16px; }
.action small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.action .go { width: 20px; height: 20px; background: none; color: var(--ink); transition: transform .35s var(--spring); }
.action:hover { transform: translateY(-3px); }
.action:hover .go { transform: translateX(4px); }
.topic:focus-visible { outline-offset: 4px; }

/* 14. Policies ---------------------------------------------------------------------------------- */
/* The index: one plain list, title and one line each. */
.policy-index { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.policy-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--spring), background-color .2s; }
.policy-index b { font: 900 clamp(19px, 1.8vw, 24px)/1.15 var(--display); font-stretch: 115%; }
.policy-index span { grid-column: 1; font-size: 15.5px; color: var(--ink-2); max-width: 70ch; }
.policy-index { max-width: 880px; }
.policy-index .go { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 0; background: none; color: var(--ink); transition: transform .35s var(--spring); }
.policy-index a:hover { padding-left: 14px; background: var(--white); }
.policy-index a:hover .go { transform: translateX(4px); }
/* A policy: readable measure, generous leading, clear headings. */
.policy-body { font-size: 18px; line-height: 1.7; }
.policy-body p, .policy-body ul, .policy-body ol { max-width: 66ch; }
.policy-body h2 { font-size: clamp(22px, 2vw, 28px); margin: 44px 0 12px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body h3 { font-size: 19px; margin: 30px 0 8px; }
.policy-body li { margin-bottom: 8px; }
.policy-body table { font-size: 15.5px; line-height: 1.5; }
.policy-body th { font-weight: 700; }
/* 404 */
.lost { position: relative; background: var(--ground); isolation: isolate; padding: clamp(56px, 10vw, 140px) 0 clamp(56px, 8vw, 120px); }
.lost .wrap { position: relative; z-index: 1; }
.lost .sub { font: 600 clamp(18px, 1.6vw, 22px)/1.4 var(--sans); margin: 20px 0 30px; max-width: 34ch; }
.lost .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.doc { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.doc aside { position: sticky; top: 96px; background: var(--white); border-radius: var(--r-md); padding: 20px; }
.doc aside .label { display: block; margin-bottom: 12px; }
/* A side panel taller than the screen would hide its bottom while it sticks, so it scrolls with the page (fx.js). */
.unstick { position: static !important; }

/* 15. Footer: small and tidy. ------------------------------------------------------------------------ */
.foot { margin-top: clamp(56px, 8vw, 120px); padding: 40px 0 32px; background: var(--ink); color: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.foot .mark .spin { width: 40px; height: 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot nav a:hover { text-decoration: underline; }
.foot-dots { display: flex; gap: 8px; margin: 28px 0 18px; }
.foot-dots i { width: 12px; height: 12px; border-radius: 50%; }
.foot-dots i:nth-child(1) { background: var(--sky); } .foot-dots i:nth-child(2) { background: var(--orange); } .foot-dots i:nth-child(3) { background: var(--pink); }
.foot-dots i:nth-child(4) { background: var(--sun); } .foot-dots i:nth-child(5) { background: var(--lime); } .foot-dots i:nth-child(6) { background: var(--lilac); }
.foot .small { margin: 0; font-size: 14px; color: rgb(248 247 243 / .72); max-width: 70ch; }
.foot :focus-visible { outline-color: var(--paper); }

/* 16. Small screens ------------------------------------------------------------------------------------ */
/* Two columns: everything in the hero fits the first screen, in short laptop windows too. The stage gives up height
   (the picture stays whole inside it) and the headline is also sized by the window's height. */
@media (min-width: 901px) {
  .stage-pics { max-height: calc(100svh - 76px - 64px - 112px); width: 100%; }
  .hero h1 { font-size: clamp(30px, min(14.2cqi, (100svh - 360px) / 5.4), 76px); }
  .hero .sub { margin: clamp(12px, 2.4svh, 22px) 0 clamp(16px, 3.4svh, 30px); }
}
@media (max-width: 1240px) {
  /* Long product names on the stage wrap onto two lines rather than being cut off. */
  .caps { height: 80px; }
  .cap b { white-space: normal; font-size: clamp(19px, 2vw, 24px); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 1080px) {
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; }
  .hero h1 { font-size: clamp(32px, 8.4vw, 64px); font-size: clamp(32px, min(14.2cqi, 8.4vw), 64px); }
  .hero .sub { margin: 16px 0 22px; }
  .hero-mark { width: 120vw; right: -50%; top: 70%; }
  .stage { margin-top: 12px; }
  .confetti i:nth-child(1), .confetti i:nth-child(2), .confetti i:nth-child(4), .confetti i:nth-child(5) { display: none; } /* titles run the full width here */
  .shop-hero .confetti i:nth-child(3) { display: none; }
  .pdp-in, .work, .help-body, .doc { grid-template-columns: minmax(0, 1fr); }
  .pdp-pic, aside.panel, .help-side, .doc aside { position: static; }
  .more { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card, .card:nth-child(n) { grid-column: span 6; }
  .card:nth-child(n) .card-pic { aspect-ratio: 4 / 3.3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head .wrap { height: 64px; gap: 10px; }
  .mark span { font-size: 15px; }
  .mark .spin { width: 28px; height: 28px; }
  .nav a { padding: 9px 10px; font-size: 15px; }
  .bagbtn span:not(.count) { display: none; }
  .bagbtn { padding: 7px 8px !important; }
  .card, .card:nth-child(n) { grid-column: 1 / -1; }
  .card:nth-child(n) .card-pic { aspect-ratio: 16 / 10; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic { padding: 14px; }
  .topic b { font-size: 16px; font-stretch: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .who-list { grid-template-columns: 1fr 1fr; }
  .who-list div:nth-child(-n+2) { grid-column: 1 / -1; }
  .brands { gap: 8px; }
  .mtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mtile { min-height: 92px; }
  .phone { width: 170px; }
  .brand { min-height: 60px; padding: 8px 4px; }
  .parcels { flex-direction: column; align-items: flex-start; }
  .thumb { width: 68px; }
  .fact > span, .fact summary, div.fact { grid-template-columns: 1fr; gap: 2px; }
  .fact > p { padding-left: 16px; }
  .bagline { grid-template-columns: 96px minmax(0, 1fr) !important; }
  .bagline .thumb { width: 96px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .acards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; } /* one per row on the narrowest phones */
  .acard-txt { padding: 4px 12px 14px; }
  .acard h3 { font-size: 16px; }
  .acard p { display: none; }
  .acard-foot { flex-wrap: wrap; }
  .acard .add { width: 100%; }
  .pdp-buy h1.long { font-size: clamp(30px, 8vw, 44px); }
  .bagline .line-end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .stage-bar { flex-wrap: wrap; }
  .caps { flex-basis: 100%; height: 80px; }
  .hero .confetti i:nth-child(3) { display: none; }
  .cap b { white-space: normal; font-size: 22px; }
}
@media (max-width: 479px) {
  /* Big page titles in the wide face: sized so a long single word ("everywhere.", "Accessibility.") fits a phone. */
  .page-title h1, .help-hero h1, .lost h1 { font-size: clamp(28px, 9vw, 36px); }
  /* Room for Shop, Help and Bag: the spinning mark stands for the name (the link keeps its label). */
  .head .mark span { display: none; }
  .head .mark .spin { width: 34px; height: 34px; }
}

/* 17. Reduced motion: keep the colour, drop the movement. ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-tilt] { transform: none; }
  .add .tick path, .placed svg path, .tick path { stroke-dashoffset: 0; }
  .lt-bar i { transform: scaleX(.6); }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.acard-pic { text-decoration: none; }
.acard-pic .label-tile { gap: 8px; padding: 12px; }
.acard-pic .label-disc { width: 46px; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 rgb(29 30 60 / .12); }
.acard-pic .label-tile b { font-size: 15px; }

/* Product cards with original renders: the picture runs edge to edge across the top of the card (the card's rounded
   corners clip it), and only its bottom edge fades into the card colour, which is measured from the picture. */
.card-pic:has(img.framed) { aspect-ratio: 16 / 9; overflow: hidden; }
.card:nth-child(4n+2) .card-pic:has(img.framed), .card:nth-child(4n+3) .card-pic:has(img.framed) { aspect-ratio: 16 / 10.5; }
.card-pic img.framed { object-fit: cover; transform: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.card:hover .card-pic img.framed { transform: scale(1.04); }

/* Original renders in the big places (home stage, product page), as the shop had them before the cut-outs: the picture
   sits straight on the page, which is the picture's own backdrop colour, and its edges fade away into it. Nothing is
   framed or layered on top. */
/* The picture's own box is its own shape (16:9), centred in the stage, so the fade reaches its real edges and no
   straight cut shows, whatever shape the stage is. */
.slide img.framed { position: absolute; left: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 16 / 9; translate: 0 -50%; scale: 1.3;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
.pdp-frame img.framed { object-fit: contain; scale: 1.12;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
