/* Polokey store. Built on the "B · Wallet" design of the brand page.
   No inline scripts or styles: the page CSP forbids them. */

/* One family for the whole store: Outfit, a variable font (every weight
   from one file). It is drawn small for its size, so each of its two
   files is scaled up by 9%: the letters then stand about as tall, and
   run about as wide, as the sizes on these pages were set for. A browser
   that does not know "size-adjust" shows it a little smaller. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 109%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Letters such as ł, ő or ş in product names: loaded only when a page has one. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 109%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The taka sign (৳) is on every page that shows a price. It has a file of
   its own, one kilobyte cut from Noto Sans Bengali, so the hundred
   kilobytes of Bangla letters below are fetched only by a page that has
   Bangla text on it. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/taka-sign.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+09F3;
}

/* Bangla, so a Bangla plan name is drawn by a designed font instead of
   whatever the device has. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/noto-sans-bengali.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09F2, U+09F4-09FE, U+200C-200D, U+25CC;
}

:root {
  --bg: #F2F3F7;
  --surface: #FFFFFF;
  --ink: #121826;
  --muted: #4A5468;
  --night-muted: #C4CAD8;
  --accent: #296FD9;
  --link: #1F5BC4;
  --link-hover: #16449A;
  /* Headings use the same family as the text, in its heavy weights. */
  --display: "Outfit", "Noto Sans Bengali", system-ui, sans-serif;
  --pad: clamp(16px, 2vw, 24px);
  /* The sticky header (two rows) on screens 1024 px and wider. */
  --header-h: 126px;

  /* The page system. Two widths: catalogue pages, and forms, reading
     and account pages. */
  --wide: 1240px;
  --narrow: 880px;
  --line: #E3E7EE;
  --line-strong: #CBD2DE;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 1px 2px rgba(18, 24, 38, 0.05);
  --shadow-lift: 0 14px 30px -22px rgba(18, 24, 38, 0.45);
  /* Gap between the panels of a page. */
  --stack: 16px;
  /* Type scale, outside the home hero: one page title, one section
     heading, one panel heading; two prices (a list price, a total). */
  --title-page: calc(clamp(26px, 1.25vw + 14px, 32px) * var(--fs-title));
  --title-section: calc(clamp(21px, 0.5vw + 18px, 24px) * var(--fs-title));
  --title-panel: calc(20px * var(--fs-title));
  --price-total: calc(clamp(26px, 0.4vw + 22px, 30px) * var(--fs-title));
  /* Text size: every size from 14px up is multiplied by one of these
     (running text by --fs-text, headings and prices by --fs-title), so the
     whole store's type is set here. 1 is the size written in the rule.
     Smaller labels, form fields (16px stops iOS zooming into them) and the
     art on product cards are not scaled. */
  --fs-text: 0.96;
  --fs-title: 0.94;
  /* Controls: one height for a page's main button and its form fields, a
     lower one for the buttons beside them. They are drawn light (thin
     lines, medium weight); only a page's one main action is filled. */
  --control: 46px;
  --control-sm: 40px;
  --control-radius: 10px;
}

/* Phones: type a little smaller still, headings most. */
@media (max-width: 600px) {
  :root {
    --fs-text: 0.94;
    --fs-title: 0.88;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Noto Sans Bengali", "Kohinoor Bangla", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: calc(16px * var(--fs-text, 1));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg {
  display: block;
  flex: none;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

/* Bangla letters are drawn small for their size. Only inside the page:
   on <html> (a Bangla policy) this would make every rem larger too. */
body [lang="bn"] {
  font-size: 1.08em;
}

/* Headings at the shared sizes. */
.page-title,
.page-head h1,
.banner h1,
.thanks-text h1,
.account-head h1,
.lost h1 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-page);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  overflow-wrap: break-word;
}

/* Product names run long: the title steps down past about 40 letters. */
.page-title--long {
  font-size: calc(clamp(22px, 0.6vw + 17px, 26px) * var(--fs-title, 1));
  letter-spacing: -0.015em;
}

/* Prices: a list price (cards, plans, lines) and a total. */
.price,
.ticket-price,
.plan-price,
.quote-option-price,
.account-row-total {
  font-family: "Outfit", "Noto Sans Bengali", system-ui, sans-serif;
  font-size: calc(16px * var(--fs-text, 1));
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.price-total {
  font-family: var(--display);
  font-size: var(--price-total);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Links inside text: one look everywhere. Low specificity on purpose,
   so links with a look of their own (crumbs, buttons) keep it. */
main :where(a:not([class])),
.link-button {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main :where(a:not([class])):hover,
.link-button:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
  outline-color: #fff;
}

/* Colours of the product cards (no inline styles, so one class each) */

.c-claude { --c: #444CB2; }
.c-capcut { --c: #B83B07; }
.c-loora { --c: #006B6C; }
.c-kits { --c: #803197; }
.c-academi { --c: #824C00; }
.c-ps { --c: #224FA7; }
.c-steam { --c: #2B3F51; }
.c-apple { --c: #2D333D; }
.c-gplay { --c: #006E3B; }
.c-ff { --c: #B32517; }
.c-pubg { --c: #805D00; }

/* Top bar */

.topbar {
  background: #121826;
  color: #F2F3F7;
  font-size: 13px;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 9px;
}

.topbar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: #F2F3F7;
  color: #121826;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.topbar a {
  color: #F2F3F7;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .topbar-link {
    display: none;
  }

  .topbar p {
    min-width: 0;
  }

  .topbar p span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* A test copy of the store (sandbox payments) says so on every page. */
.topbar--test {
  background: #FDE68A;
  color: #121826;
}

.topbar--test .topbar-chip {
  background: #121826;
  color: #FDE68A;
}

.topbar--test a {
  color: #121826;
}

/* Header: a full-width white bar (brand, search, actions) with the
   category row under it, sticky together on wide screens. */

.header-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #E3E7EE;
  box-shadow: 0 6px 18px -14px rgba(18, 24, 38, 0.35);
}

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 10px 24px;
}

.site-header .header-nav {
  margin-left: auto;
}

/* Below 1024 px the search takes its own full-width row (beside the
   links it would be squeezed to a few letters), and the two-row header
   scrolls away with the page instead of staying on top. */
@media (max-width: 1023px) {
  .header-shell {
    position: relative;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-header .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

/* Links and keyboard focus land below the sticky header, not under it. */
@media (min-width: 1024px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

/* The wordmark (store/partials/logo): drawn in two colours. */
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  aspect-ratio: 1104 / 318;
  overflow: visible;
}

.pk-navy {
  fill: #0B2147;
}

.pk-blue {
  fill: #136EE7;
}

/* Still, the eye is closed, as in the artwork. */
.pk-pupil {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scale(0);
}

/* The mark is always doing something, on a six-second round: the eye
   opens (the lid flips up on the line between its corners and the pupil
   shows), looks towards the key and back, blinks, looks again and closes;
   the key's bit turns about the shaft and back, as a key does in a lock,
   once while the eye watches and once while it rests. Only transforms
   move, so nothing is laid out again; never for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .brand-logo .pk-lid {
    transform-box: fill-box;
    transform-origin: 50% 18%;
    animation: pk-lid 6s ease-in-out infinite;
  }

  .brand-logo .pk-pupil {
    animation: pk-pupil 6s ease-in-out infinite;
  }

  .brand-logo .pk-bit {
    transform-box: fill-box;
    transform-origin: 50% -44.5%;
    animation: pk-bit 6s ease-in-out infinite;
  }
}

@keyframes pk-lid {
  0%,
  83%,
  100% {
    transform: scaleY(1);
  }

  6%,
  46%,
  51%,
  77% {
    transform: scaleY(-1);
  }

  48.5% {
    transform: scaleY(1);
  }
}

@keyframes pk-pupil {
  0%,
  2%,
  82%,
  100% {
    transform: translate(0, 0) scale(0);
  }

  7%,
  12%,
  44%,
  46%,
  51%,
  77% {
    transform: translate(0, 0) scale(1);
  }

  22% {
    transform: translate(15px, 0) scale(1);
  }

  36% {
    transform: translate(-13px, 0) scale(1);
  }

  48.5% {
    transform: translate(0, 0) scale(1, 0.1);
  }

  60% {
    transform: translate(11px, -5px) scale(1);
  }

  70% {
    transform: translate(-9px, 4px) scale(1);
  }
}

@keyframes pk-bit {
  0%,
  24%,
  40%,
  80%,
  100% {
    transform: scaleY(1);
  }

  30%,
  34%,
  87%,
  93% {
    transform: scaleY(-1);
  }
}

.header-cta {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px -12px rgba(41, 111, 217, 0.95);
}

.header-cta:hover {
  color: #fff;
  background: #1F5BC4;
}

.header-cta:focus-visible,
.header-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Category row: a blue "Shop by category" button that opens every
   category with its count, then one sideways-scrolling row of links. */

.cats {
  border-top: 1px solid #EDF0F4;
}

.cats-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cats-all {
  flex: none;
  position: relative;
}

.cats-all summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin-block: 6px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.cats-all summary::-webkit-details-marker {
  display: none;
}

.cats-all summary:hover,
.cats-all[open] summary {
  background: #1F5BC4;
}

.cats-all summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cats-caret {
  margin-left: 2px;
  opacity: 0.85;
}

.cats-all[open] .cats-caret {
  transform: rotate(180deg);
}

.cats-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 30;
  width: min(680px, calc(100vw - 2 * var(--pad)));
  padding: 10px;
  background: #fff;
  border: 1px solid #E3E7EE;
  border-radius: 14px;
  box-shadow: 0 28px 56px -28px rgba(18, 24, 38, 0.5);
}

.cats-panel ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
}

@media (max-width: 600px) {
  .cats-panel ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cats-panel a {
    padding: 0 10px;
    font-size: 13.5px;
  }
}

.cats-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 500;
  text-decoration: none;
}

.cats-panel a:hover {
  background: #EEF3FC;
  color: var(--link);
}

.cats-panel a[aria-current="page"] {
  background: #E7EEFB;
  color: var(--link);
}

.cats-count {
  min-width: 34px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #F2F3F7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* The row never wraps: it scrolls sideways and fades out at the edge. */
.cats-quick {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}

/* Room after the last link, so it can scroll clear of the fade. */
.cats-quick::after {
  content: "";
  flex: none;
  width: 56px;
}

.cats-quick.is-scrolled {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
}

.cats-quick::-webkit-scrollbar {
  display: none;
}

.cats-quick li {
  flex: none;
}

.cats-quick a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  color: #3A4F66;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.cats-quick a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.cats-quick a:hover {
  color: var(--link);
}

.cats-quick a[aria-current="page"] {
  color: var(--link);
}

.cats-quick a[aria-current="page"]::after {
  background: var(--accent);
}

.cats-quick a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .cats-inner {
    gap: 6px;
  }

  .cats-all summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cats-all summary {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .cats-caret {
    display: none;
  }

  .cats-quick a {
    min-height: 50px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* Hero */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: clip;
  padding: clamp(36px, 5vw, 72px) var(--pad) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 40px 56px;
}

.hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(18, 24, 38, 0.08);
  font-size: 13px;
  font-weight: 600;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E49E22;
}

.hero h1,
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(clamp(34px, 9vw + 4px, 64px) * var(--fs-title, 1));
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  max-width: 32em;
  font-size: calc(18px * var(--fs-title, 1));
  line-height: 1.6;
  color: var(--muted);
}

/* The slogan under the heading: a drawing of the Bangla letters, in the
   blue of the logo's "key". */
.slogan {
  margin: 0;
}

.slogan img {
  display: block;
  width: min(100%, 340px);
  height: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

/* Buttons: two sizes. The main action of a page (--control, 46 px), and
   compact (.btn-compact, --control-sm, 40 px) for the ones beside it. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control);
  padding: 0 20px;
  border-radius: var(--control-radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: calc(15.5px * var(--fs-text, 1));
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 16px -12px rgba(41, 111, 217, 0.7);
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  color: #fff;
  background: var(--link);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* A link that stands alone ("View all", "How it works"). */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--link);
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 980px) and (max-width: 1199px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
  }
}

@media (min-width: 980px) {

  .hero h1,
  .hero-title {
    font-size: calc(clamp(44px, 4.6vw, 68px) * var(--fs-title, 1));
  }

  .slot {
    width: clamp(240px, 22vw + 40px, 300px);
  }
}

/* The wallet */

.wallet {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 470px;
  margin-inline: auto;
}

.toast {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px -18px rgba(18, 24, 38, 0.45);
  font-size: 13px;
  font-weight: 600;
}

.toast--left {
  left: 0;
  top: 18px;
}

.toast--right {
  right: 0;
  top: 82px;
}

.toast-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.toast-icon--green {
  background: #DCF7E1;
  color: #09672E;
}

.toast-icon--amber {
  background: #FEEDC9;
  color: #845000;
}

.slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  margin: 0 auto;
  width: clamp(214px, 56vw, 300px);
  aspect-ratio: 1.586;
  transform-origin: 50% 150%;
}

/* Same spread as the design: horizontal offsets follow the page width, capped on wide screens. */
.slot-1 { transform: translate(min(1vw, 14px), -66px) rotate(2deg); z-index: 4; }
.slot-2 { transform: translate(max(-5vw, -72px), -24px) rotate(-12deg); z-index: 3; }
.slot-3 { transform: translate(min(6vw, 86px), -16px) rotate(13deg); z-index: 2; }
.slot-4 { transform: translate(max(-9vw, -130px), 4px) rotate(-24deg); z-index: 1; }

/* 980–1199 px: a tighter fan, so the left cards stay out of the text column. */
@media (min-width: 980px) and (max-width: 1199px) {
  .slot-2 { transform: translate(-30px, -24px) rotate(-12deg); }
  .slot-4 { transform: translate(-48px, 4px) rotate(-24deg); }
}

@media (min-width: 980px) and (max-width: 1099px) {
  .slot-2 { transform: translate(-6px, -24px) rotate(-12deg); }
  .slot-4 { transform: translate(-12px, 4px) rotate(-22deg); }
}

.deal {
  width: 100%;
  height: 100%;
}

.pocket {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 196px;
  border-radius: 30px;
  background: #121826;
  box-shadow: 0 30px 60px -32px rgba(18, 24, 38, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pocket::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(242, 243, 247, 0.16);
  border-radius: 22px;
}

.pocket span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(242, 243, 247, 0.6);
}

/* Phones: a tighter heading and a shorter wallet (200 px), so the first
   screen ends on the start of "Popular now" above the dock, not on the
   dark wallet under the dark dock, and it is plain there is more below.
   Same fan, scaled down. */
@media (max-width: 600px) {
  .hero {
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .hero-text {
    gap: 12px;
  }

  .hero h1,
  .hero-title {
    font-size: calc(clamp(30px, 8vw + 3px, 40px) * var(--fs-title, 1));
  }

  .hero .lede {
    font-size: calc(16px * var(--fs-text, 1));
    line-height: 1.5;
  }

  /* The two ways in stay on one line on a 360 px phone. */
  .hero-actions {
    gap: 10px 12px;
  }

  .wallet {
    height: 200px;
  }

  .pocket {
    height: 84px;
    border-radius: 20px;
  }

  .pocket::before {
    inset: 7px;
    border-radius: 16px;
  }

  .pocket span {
    bottom: 14px;
    font-size: 11px;
  }

  .slot {
    bottom: 38px;
    width: clamp(140px, 40vw, 184px);
  }

  .slot-1 { transform: translate(1vw, -28px) rotate(2deg); }
  .slot-2 { transform: translate(-6vw, -9px) rotate(-12deg); }
  .slot-3 { transform: translate(7vw, -6px) rotate(13deg); }
  .slot-4 { transform: translate(-10vw, 3px) rotate(-22deg); }

  .wallet .gcard {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .wallet .gcard-name {
    font-size: calc(17px * var(--fs-text, 1));
    letter-spacing: 0;
  }

  .wallet .plate {
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
    font-size: 12px;
  }

  .toast {
    padding: 6px 12px 6px 6px;
    font-size: 12px;
  }

  .toast-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .toast--left {
    top: 0;
  }

  .toast--right {
    top: 34px;
  }
}

/* Short phone screens (or a browser bar taking room): a smaller wallet
   still, so it never sits under the dock. */
@media (max-width: 600px) and (max-height: 760px) {
  .hero {
    padding-top: 14px;
  }

  .hero-text {
    gap: 10px;
  }

  .wallet {
    height: 160px;
  }

  .pocket {
    height: 68px;
    border-radius: 18px;
  }

  .pocket span {
    bottom: 10px;
  }

  .slot {
    bottom: 30px;
    width: clamp(120px, 34vw, 156px);
  }

  .slot-1 { transform: translate(1vw, -22px) rotate(2deg); }
  .slot-2 { transform: translate(-6vw, -7px) rotate(-12deg); }
  .slot-3 { transform: translate(7vw, -5px) rotate(13deg); }
  .slot-4 { transform: translate(-10vw, 2px) rotate(-22deg); }

  .toast--right {
    top: 26px;
  }
}

/* Gift-card shaped cards (wallet deck and the gift card row) */

.gcard {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--c);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 24px 40px -22px rgba(18, 24, 38, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gcard::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, 0.08);
}

.gcard-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.plate {
  flex: none;
  height: 36px;
  min-width: 36px;
  padding: 5px 7px;
  border-radius: 10px;
  background: #fff;
  color: var(--c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.18);
  font-family: var(--display);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 800;
  letter-spacing: 0;
}

.small-caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gcard-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gcard-name {
  font-family: var(--display);
  font-size: calc(clamp(20px, 1.8vw, 26px) * var(--fs-title, 1));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.gcard-note {
  position: relative;
  font-size: 13px;
}

.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.sheen::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-200%) skewX(-16deg);
}

/* One load sequence: text rises, cards come out of the pocket, two notes appear, one sheen. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .deal {
    animation: deal 1.1s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  }

  .slot-4 .deal { animation-delay: 0.25s; }
  .slot-3 .deal { animation-delay: 0.39s; }
  .slot-2 .deal { animation-delay: 0.53s; }
  .slot-1 .deal { animation-delay: 0.67s; }

  .toast {
    animation: toast 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  }

  .toast--left { animation-delay: 1.6s; }
  .toast--right { animation-delay: 1.95s; }

  .wallet .sheen::after {
    animation: sheen 2.2s ease-in-out 2.4s both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes deal {
  from { transform: translateY(190px); }
  to { transform: none; }
}

@keyframes toast {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes sheen {
  from { transform: translateX(-200%) skewX(-16deg); }
  to { transform: translateX(480%) skewX(-16deg); }
}

/* Sections */

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section--first {
  padding-top: clamp(24px, 3vw, 40px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section h2,
.deliveries > h2,
.account-subhead {
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  margin: 0;
  font-size: calc(14px * var(--fs-text, 1));
  color: var(--muted);
}

/* A section head: title with a short muted line under it, a link on the right. */
.section-titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Product tickets */

/* Product cards: one size everywhere. The art (the product's colour and
   initials, or its picture), the name in two lines at most, then a
   perforation and the price. */
.tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(184px, 100%), 1fr));
  gap: 16px;
}

.ticket {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.ticket:hover {
  border-color: var(--line-strong);
}

/* Quiet art for a product with no picture yet: a light wash of its
   colour, its initials on a plate in the full colour, and the ring of
   the gift cards. Square, like the picture it stands in for, so the
   names in a row of cards stay on one line. */
.ticket-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #F4F5F8;
  background: color-mix(in srgb, var(--c) 11%, #fff);
  overflow: hidden;
}

.ticket-art::before {
  content: "";
  position: absolute;
  right: -30%;
  top: -30%;
  width: 96%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 18px solid rgba(18, 24, 38, 0.04);
  border-color: color-mix(in srgb, var(--c) 10%, transparent);
}

.ticket-art .plate {
  position: relative;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
  font-size: calc(20px * var(--fs-title, 1));
  box-shadow: 0 6px 14px -8px var(--c);
}

.ticket h3 {
  position: relative;
  margin: 0;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  /* Two lines at most (the full name is on the product page); two lines'
     room always, so cards in a row line up. */
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The tear line of a ticket: a dashed line with a notch at each edge. */
.perf {
  position: relative;
  height: 0;
  margin: 0 14px;
  border-top: 1.5px dashed #DCE0E8;
}

.perf::before,
.perf::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
}

.perf::before {
  left: -23px;
}

.perf::after {
  right: -23px;
}

.ticket-status {
  margin: 0;
  padding: 10px 14px 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* Gift card row */

.gift-row {
  list-style: none;
  margin: 0 calc(-1 * var(--pad));
  padding: 6px var(--pad) 22px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: thin;
}

.gift-row li {
  flex: none;
  width: min(268px, 72vw);
  aspect-ratio: 1.586;
  scroll-snap-align: start;
}

.gift-row .gcard {
  box-shadow: 0 20px 36px -26px rgba(18, 24, 38, 0.75);
}

.gift-row .gcard::before {
  top: auto;
  bottom: -36px;
  right: -36px;
  width: 140px;
  height: 140px;
  border-width: 16px;
}

.gift-row .gcard-name {
  font-size: calc(24px * var(--fs-title, 1));
  line-height: 1.05;
}

@media (min-width: 720px) {
  .gift-row {
    margin: 0;
    padding: 6px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .gift-row li {
    width: auto;
  }
}

@media (min-width: 980px) {
  .gift-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* How it will work */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #E0ECFF;
  color: var(--link);
  font-family: var(--display);
  font-size: calc(18px * var(--fs-title, 1));
  font-weight: 800;
}

.steps h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-panel);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  font-size: calc(15px * var(--fs-text, 1));
  line-height: 1.6;
  color: var(--muted);
}

/* How orders are handled: a slim strip of three facts. */

.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}

.band div {
  position: relative;
  min-height: 34px;
  padding-left: 46px;
}

.band dt {
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.band-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #EEF3FC;
  color: var(--link);
}

.band dd {
  margin: 2px 0 0;
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.5;
  color: var(--muted);
}

/* Footer: white, five columns on wide screens, then a quiet grey bar. */

/* 404 */

.lost {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--pad) clamp(56px, 8vw, 104px);
}

.lost h1 {
  margin-bottom: 12px;
}

.lost p {
  margin: 0 0 24px;
  max-width: 36rem;
  font-size: calc(17px * var(--fs-text, 1));
  color: var(--muted);
}

/* 404: search, then the pages people look for. */
.lost-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.lost-search input {
  flex: 1;
  min-width: 0;
  min-height: var(--control);
  padding: 0 16px;
  border-radius: var(--control-radius);
  border: 1px solid #858FA1;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.lost-search input::placeholder {
  color: #5F687A;
}

.lost-search input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.lost-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Store ===== */

/* Product tile colours, one per tone (white text passes 4.5:1 on each) */

.t1 { --c: #444CB2; }
.t2 { --c: #B83B07; }
.t3 { --c: #006B6C; }
.t4 { --c: #803197; }
.t5 { --c: #824C00; }
.t6 { --c: #224FA7; }
.t7 { --c: #2B3F51; }
.t8 { --c: #006E3B; }

button {
  font: inherit;
}

.btn-primary {
  border: 0;
  cursor: pointer;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control);
  padding: 0 18px;
  border-radius: var(--control-radius);
  border: 1px solid #858FA1;
  background: #fff;
  color: var(--ink);
  font-size: calc(15.5px * var(--fs-text, 1));
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-compact {
  min-height: var(--control-sm);
  padding: 0 14px;
  border-radius: 10px;
  font-size: calc(14.5px * var(--fs-text, 1));
}

/* Header links */

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  color: #3A4F66;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover,
.header-link[aria-current="page"] {
  color: var(--link);
  background: #EEF3FC;
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .header-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .header-link {
    width: 46px;
    padding: 0;
    justify-content: center;
    background: #F2F3F7;
  }
}

/* Flash notice */

.notice {
  max-width: 1240px;
  margin: 14px auto 0;
  padding: 0 clamp(10px, 2vw, 24px);
}

.notice p {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #E0ECFF;
  color: #16449A;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
}

/* Product tickets as links (the whole card is clickable) */

.ticket {
  position: relative;
}

.ticket-link {
  color: inherit;
  text-decoration: none;
}

.ticket-link:hover {
  color: inherit;
}

.ticket-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.ticket-link:focus-visible {
  outline: none;
}

.ticket:has(.ticket-link:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ticket-status {
  justify-content: space-between;
  flex-wrap: wrap;
}

.empty {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

/* Page heads and breadcrumbs */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crumbs {
  margin: 0;
  font-size: calc(14px * var(--fs-text, 1));
  color: var(--muted);
}

.crumbs a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.crumbs a:hover {
  color: var(--ink);
}

/* Product page */

/* Two columns from 880 px: the card in a frame on the left; crumbs,
   title, price and plans on the right. Phones: title, card, then price
   and plans. */
.product {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "media" "buy";
  align-items: start;
  gap: 18px 48px;
}

/* Phones: the price and the plans come right after the name, where the
   first screen shows them; the product's card follows, as a lower band. */
@media (max-width: 600px) {
  .product {
    grid-template-areas: "head" "buy" "media";
  }
}

@media (min-width: 880px) {
  .product {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "media head" "media buy";
    row-gap: 20px;
  }
}

.product-head {
  grid-area: head;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The current page's crumb is the product name again: one line is enough. */
.product-head .crumbs {
  display: flex;
  min-width: 0;
  white-space: nowrap;
}

.product-head .crumbs a {
  flex: none;
}

.product-head .crumbs > span[aria-hidden] {
  flex: none;
  white-space: pre;
}

.product-head .crumbs [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-summary {
  margin: 0;
  max-width: 34em;
  font-size: calc(16px * var(--fs-text, 1));
  color: var(--muted);
}

/* The frame: the product's colour, lightly, with the pocket's stitching. */
.product-media {
  grid-area: media;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 6% 10%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #F7F8FB;
  background: color-mix(in srgb, var(--c) 9%, #fff);
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(18, 24, 38, 0.1);
  border-radius: 11px;
  pointer-events: none;
}

.product-media.has-image {
  background: #fff;
}

@media (max-width: 600px) {
  .product-media {
    aspect-ratio: 2 / 1;
    padding: 4% 16%;
  }
}

/* Tablets: one column, so the frame stays a low band. */
@media (min-width: 601px) and (max-width: 879px) {
  .product-media {
    aspect-ratio: auto;
    height: 320px;
    padding: 24px;
  }

  .product-media .product-stage {
    width: min(100%, 360px);
  }
}

@media (min-width: 880px) {
  .product-media {
    aspect-ratio: 5 / 4;
    padding: 10%;
  }
}

@media (min-width: 1024px) {
  .product-media {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.product-card {
  width: 100%;
  aspect-ratio: 1.586;
}

/* The name on the card stays small: the page title says it in full. */
.product-card .gcard-name {
  font-size: calc(clamp(18px, 1.3vw + 6px, 22px) * var(--fs-title, 1));
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Below the two columns: the plans as a table, and the description. */
/* Under the picture and the buy box, the same on every product and in the
   same order: links to the page's parts, the short facts, the product's
   own text and plans, how an order reaches the customer, what to know
   first, and where to get help. One column on a phone; on a wide screen
   the facts and the help links stand beside the rest. */
.product-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack);
}

.product-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--stack);
}

@media (min-width: 980px) {
  .product-body {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    grid-template-areas: "main help";
    column-gap: 24px;
  }

  .product-main {
    grid-area: main;
  }

  .product-help {
    grid-area: help;
    align-self: start;
  }
}

/* A part that folds away: its title is the button, with a chevron that
   turns when it is open. */
.panel.fold {
  display: block;
  padding: 0;
}

.fold-body {
  padding: 0 22px 22px;
}

.fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.fold > summary::-webkit-details-marker {
  display: none;
}

.fold > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
}

.fold[open] > summary {
  padding-bottom: 16px;
}

.fold[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.fold > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* How an order reaches the customer: numbered, joined by a line. */
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: route;
}

.route li {
  counter-increment: route;
  position: relative;
  padding: 0 0 20px 52px;
}

.route li:last-child {
  padding-bottom: 0;
}

.route li::before {
  content: counter(route);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #E0ECFF;
  color: var(--link);
  font-family: var(--display);
  font-size: calc(16px * var(--fs-text, 1));
  font-weight: 800;
}

.route li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.route h3 {
  margin: 0;
  padding-top: 6px;
  font-family: var(--display);
  font-size: calc(17px * var(--fs-text, 1));
  font-weight: 700;
  letter-spacing: -0.01em;
}

.route p {
  margin: 4px 0 0;
  max-width: 40em;
  color: var(--muted);
  font-size: calc(15px * var(--fs-text, 1));
  line-height: 1.6;
}

/* What to know before ordering. */
.know {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.know li {
  position: relative;
  max-width: 44em;
  padding-left: 22px;
  color: var(--muted);
  font-size: calc(15px * var(--fs-text, 1));
  line-height: 1.6;
}

.know li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.know strong {
  color: var(--ink);
}

/* Where to get help: plain rows of links. */
.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  text-decoration: none;
}

.side-links li:first-child a {
  border-top: 0;
}

.side-links a:hover {
  text-decoration: underline;
}

/* A product's own text: headings, lists and steps the admin wrote
   (App\Support\ProductText). */
.prose--product {
  max-width: 44em;
}

.prose--product > :first-child {
  margin-top: 0;
}

.prose--product > :last-child {
  margin-bottom: 0;
}

.prose--product h3 {
  margin: 1.3em 0 0.4em;
  font-family: var(--display);
  font-size: calc(19px * var(--fs-title, 1));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose--product h4 {
  margin: 1.1em 0 0.3em;
  font-size: calc(16px * var(--fs-text, 1));
  font-weight: 700;
}

.prose--product ul,
.prose--product ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.prose--product li {
  margin: 0 0 0.35em;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(15px * var(--fs-text, 1));
}

.plan-table th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}

.plan-table td {
  padding: 10px 0;
  border-bottom: 1px solid #EEF0F4;
  vertical-align: top;
}

.plan-table tr:last-child td {
  border-bottom: 0;
}

/* A plan's note in the table, under its name. */
.plan-table-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.plan-table th:last-child,
.plan-table td:last-child {
  padding-left: 16px;
  text-align: right;
  white-space: nowrap;
}

.plan-table td:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.facts {
  margin: 0;
  display: grid;
  gap: 10px;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: calc(15px * var(--fs-text, 1));
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 40em;
  color: var(--ink);
  font-size: calc(16px * var(--fs-text, 1));
  line-height: 1.7;
}

/* A page written in Bangla (the Bangla policies): the same 8% larger. */
.prose:lang(bn) {
  font-size: calc(17px * var(--fs-text, 1));
}

.prose p {
  margin: 0 0 1em;
}

.prose h2 {
  margin: 1.4em 0 0.5em;
  font-family: var(--display);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* A page that opens with a heading (questions and answers, contact)
   starts at the top of its paper. */
.prose > h2:first-child {
  margin-top: 0;
}

/* Policies: version line and numbered items */

.prose .policy-meta {
  color: var(--muted);
  font-size: calc(14px * var(--fs-text, 1));
}

.prose .policy-list {
  margin: 0 0 1em;
  padding-left: 1.6em;
}

.prose .policy-list li {
  margin: 0 0 0.6em;
  padding-left: 0.2em;
}

/* Buy box */

/* The buy box: a ticket. Price and facts, the plans, a tear line, the button. */
.buy {
  grid-area: buy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.buy-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
}

.buy-price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  color: var(--accent);
}

.buy-price-from {
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  color: var(--muted);
}

.buy-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 500;
  color: var(--muted);
}

.buy-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fact-icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #EEF3FC;
  color: var(--link);
}

.fact-icon--green {
  background: #DCF7E1;
  color: #09672E;
}

.fact-icon--amber {
  background: #FEEDC9;
  color: #845000;
}

.buy-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 22px;
  border-top: 1px solid #EEF0F4;
}

.buy h2,
.panel h2,
.checkout-form h2,
.request-form h2,
.receipt-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-panel);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.plans {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.plans legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 700;
}

.plan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}

.plan input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.plan:has(input:checked) {
  border-color: var(--accent);
  background: #F3F7FF;
}

/* A plan's own note. Each stands after its plan in the page; only the
   chosen plan's is shown, moved under all the plans, whichever way they
   are laid out. A browser that cannot tell which plan is chosen shows
   them all. */
.plan-note {
  display: none;
  order: 99;
  flex-basis: 100%;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: calc(15px * var(--fs-text, 1));
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* One point a line, with a tick; a point to mind before buying is amber,
   with an "!" in place of the tick. */
.point {
  position: relative;
  padding: 7px 0 7px 32px;
}

.point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #DCF7E1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309672E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.point--mind {
  color: #7A3E00;
  font-weight: 600;
}

.point--mind::before {
  background: #FEEDC9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23845000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 17.5v.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Under the buy button: delivery time, hours, where it arrives, help. */
.reach {
  margin: 0;
  padding: 6px 22px 10px;
  border-top: 1px solid #EEF0F4;
  background: #FAFBFD;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.reach div {
  padding: 12px 0 12px 40px;
  position: relative;
  border-top: 1px solid var(--line);
}

.reach div:first-child {
  border-top: 0;
}

.reach dt {
  color: var(--muted);
  font-size: 13.5px;
}

.reach dt .fact-icon {
  position: absolute;
  left: 0;
  top: 13px;
}

.reach dd {
  margin: 0;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  line-height: 1.45;
}

.plan:has(input:checked) + .plan-note,
.plan-note--only {
  display: block;
}

.plan-note--only {
  margin: 0 22px 18px;
}

.plan-note--checkout {
  margin: 12px 0;
}

@supports not selector(:has(*)) {
  .plan-note {
    display: block;
  }
}

.plan-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.plan--static {
  cursor: default;
}

/* Up to six short plans: chips that wrap. The radio is the whole chip. */
.plans--pills {
  display: flex;
  flex-wrap: wrap;
}

.plans--pills .plan {
  position: relative;
  min-height: 40px;
  padding: 8px 14px;
  gap: 10px;
  border-radius: 999px;
}

.plans--pills .plan input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.plans--pills .plan-name {
  flex: none;
}

.plans--pills .plan-price {
  font-weight: 600;
  color: var(--muted);
}

.plans--pills .plan:has(input:checked) {
  border-color: var(--accent);
  background: #F3F7FF;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plans--pills .plan:has(input:checked) .plan-price {
  color: var(--ink);
}

.plans--pills .plan:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.soon {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #FFF4DE;
  color: #5E3E00;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
}

/* Form fields */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: var(--control);
  /* 24 px of text and 10 above and below: exactly the control height. */
  padding: 10px 14px;
  border-radius: var(--control-radius);
  border: 1px solid #858FA1;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5F687A;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: #B3261E;
}

.field-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.field-error {
  margin: 0;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  color: #B3261E;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding-block: 4px;
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.5;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Order and tracking pages */

.order {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Order and request numbers are typed back in: plain letters, no tight tracking. */
.order-number {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.status--pending_payment {
  background: #E6E9F0;
  color: #333B4F;
}

.status--paid {
  background: #FFF4DE;
  color: #5E3E00;
}

.status--delivered {
  background: #DDF5E8;
  color: #0B5A33;
}

.status--cancelled {
  background: #FDE7E5;
  color: #8C1D18;
}

/* Paid, then cancelled before delivery and paid back, or being so. */
.status--refunded,
.status--cancelling {
  background: #E6E9F0;
  color: #333B4F;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel p {
  margin: 0;
}

.panel--warn {
  background: #FFF4DE;
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.line-muted {
  color: var(--muted);
  font-size: calc(14px * var(--fs-text, 1));
}

.line-total {
  padding-top: 10px;
  border-top: 1px solid #E1E4EC;
  font-weight: 700;
}

.delivery-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delivery-item h3 {
  margin: 0;
  font-size: calc(16px * var(--fs-text, 1));
  font-weight: 700;
}

.delivery {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #121826;
  color: #F2F3F7;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: calc(15px * var(--fs-text, 1));
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.keep-link input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #858FA1;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--pad) clamp(48px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.narrow .lede {
  font-size: calc(17px * var(--fs-text, 1));
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.support-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

/* Store tweaks to the brand page layout */

.hero .lede {
  max-width: 26em;
}

/* Search in the header */

.search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: #F2F3F7;
}

.search:hover {
  border-color: #D5DAE3;
}

.search:focus-within {
  background: #fff;
  border-color: var(--accent);
  outline: 3px solid rgba(41, 111, 217, 0.25);
  outline-offset: 0;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.search input::placeholder {
  color: #6B7486;
}

.search input:focus-visible {
  outline: none;
}

.search button {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.search button:hover {
  background: #1F5BC4;
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

/* Section heads with a "see all" link */

.section-head--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 20px;
}

.section-head--row .link-arrow {
  margin-bottom: -8px;
}

/* Previous / next */

.pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding-top: 8px;
}

.pages-where {
  font-size: calc(14px * var(--fs-text, 1));
  color: var(--muted);
}

.is-disabled {
  opacity: 0.45;
  cursor: default;
}

/* A row of product cards is a rail: it scrolls sideways and stops on a
   card. Five cards fill a wide screen; on a phone the row runs to the
   edges of the screen and is swiped. The room around the cards, taken back
   by the margins, is for their shadow, their lift under the pointer and
   the focus ring, which a scrolling box would otherwise cut off. */

.tickets--row {
  --rail-gap: 16px;
  --rail-side: 10px;
  display: flex;
  gap: var(--rail-gap);
  margin: -8px calc(-1 * var(--rail-side)) -18px;
  padding: 8px var(--rail-side) 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-side);
  scrollbar-width: none;
}

.tickets--row::-webkit-scrollbar {
  display: none;
}

.tickets--row > li {
  flex: none;
  width: calc((100% - 4 * var(--rail-gap)) / 5);
  scroll-snap-align: start;
}

/* On a phone or tablet a row always ends on a card cut by the edge of the
   screen, so it is plain there is more to swipe to: two cards and a third
   of the next on a phone, three and then four on wider screens. The cards'
   box and one side margin together are the screen from the first card to
   its right edge. */
@media (max-width: 979px) {
  .tickets--row {
    --rail-gap: 12px;
    --rail-side: var(--pad);
    --rail-whole: 2;
  }

  .tickets--row > li {
    width: calc((100% + var(--rail-side) - var(--rail-whole) * var(--rail-gap)) / (var(--rail-whole) + 0.3));
  }
}

@media (min-width: 560px) and (max-width: 979px) {
  .tickets--row {
    --rail-whole: 3;
  }
}

@media (min-width: 760px) and (max-width: 979px) {
  .tickets--row {
    --rail-whole: 4;
  }
}

/* The narrower cards of a phone's row: a little less room at the sides
   and a slightly smaller name. */
@media (max-width: 559px) {
  .tickets--row {
    --rail-gap: 10px;
  }

  .tickets--row .ticket-info,
  .tickets--row .ticket-status {
    padding-inline: 12px;
  }

  .tickets--row .ticket h3 {
    font-size: calc(14px * var(--fs-text, 1));
  }

  .tickets--row .perf {
    margin-inline: 12px;
  }

  .tickets--row .perf::before {
    left: -21px;
  }

  .tickets--row .perf::after {
    right: -21px;
  }
}

/* Beside a row's heading: "View all", then the rail's buttons. The buttons
   stay hidden until assets/rail.js finds more cards than fit. */

.section-tools {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: -8px;
  margin-left: auto;
}

.section-tools .link-arrow {
  margin-bottom: 0;
}

.rail-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rail-controls[hidden],
.rail-pause[hidden] {
  display: none;
}

.rail-btn {
  flex: none;
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* Drawn small; the area that takes the tap is wider. */
.rail-btn::after {
  content: "";
  position: absolute;
  inset: -5px;
}

.rail-btn:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.rail-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rail-btn[aria-disabled="true"] {
  opacity: 0.38;
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}

/* The marks: an arrowhead each way; two bars while the rows move, a
   triangle once they are stopped. */
.rail-prev::before,
.rail-next::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  border-radius: 1px;
  transform: translateX(-2px) rotate(45deg);
}

.rail-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.rail-pause {
  color: var(--muted);
}

.rail-pause::before {
  content: "";
  width: 8px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2.5px;
  border-radius: 1px;
}

.rail-pause[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  border-radius: 0;
  transform: translateX(1px);
}

/* A phone is swiped, so it has no arrows; the stop button stays. */
@media (max-width: 719px) {
  .rail-prev,
  .rail-next {
    display: none;
  }
}

/* Under the pointer a card lifts, its mark or picture comes forward, and a
   band of light crosses the art once. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ticket {
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease, border-color 0.15s ease;
  }

  .ticket:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft), 0 18px 28px -18px rgba(18, 24, 38, 0.42);
  }

  .ticket-art .plate,
  .ticket-media img {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .ticket:hover .ticket-art .plate {
    transform: translateY(-2px) scale(1.07);
  }

  .ticket:hover .ticket-media img {
    transform: scale(1.05);
  }

  .ticket-art::after,
  .ticket-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.6) 50%, transparent 64%);
    transform: translateX(-101%);
    pointer-events: none;
  }

  .ticket:hover .ticket-art::after,
  .ticket:hover .ticket-media::after {
    transform: translateX(101%);
    transition: transform 0.75s ease;
  }
}

/* A phone has no pointer, so there the same band of light crosses a card
   once, the first time most of the card is on screen (assets/seen.js
   marks it), and the card gives a little under the finger. In a row the
   light waits for the card to have arrived. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .ticket {
    transition: transform 0.18s ease, border-color 0.15s ease;
  }

  .ticket:active {
    transform: scale(0.98);
  }

  .ticket-art::after,
  .ticket-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.62) 50%, transparent 64%);
    transform: translateX(-101%);
    pointer-events: none;
  }

  .ticket.is-seen .ticket-art::after,
  .ticket.is-seen .ticket-media::after {
    animation: ticket-light 0.9s ease 0.15s both;
  }

  .rail .ticket.is-seen .ticket-art::after,
  .rail .ticket.is-seen .ticket-media::after {
    animation-delay: 0.55s;
  }
}

@keyframes ticket-light {
  from { transform: translateX(-101%); }
  to { transform: translateX(101%); }
}

/* The cards of a row below the fold come in one after another the first
   time the row is seen: assets/rail.js marks the row as waiting, then as
   in. Without the script, in print, or for visitors who asked for less
   motion, the cards are simply there. */
@media screen and (prefers-reduced-motion: no-preference) {
  .rail.is-waiting .tickets--row > li {
    opacity: 0;
  }

  .rail.is-in .tickets--row > li {
    animation: ticket-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--ticket-wait, 0s) backwards;
  }

  .rail.is-in .tickets--row > li:nth-child(2) {
    --ticket-wait: 0.06s;
  }

  .rail.is-in .tickets--row > li:nth-child(3) {
    --ticket-wait: 0.12s;
  }

  .rail.is-in .tickets--row > li:nth-child(4) {
    --ticket-wait: 0.18s;
  }

  .rail.is-in .tickets--row > li:nth-child(5) {
    --ticket-wait: 0.24s;
  }

  .rail.is-in .tickets--row > li:nth-child(n + 6) {
    --ticket-wait: 0.3s;
  }
}

/* A row that moves by itself is a carousel in the round. A card coming in
   at the right swings flat like a door hung on its left edge, and a card
   going out at the left swings away on its right edge, each exactly as far
   as the row has carried it: the row's own scrolling drives it, so a swipe
   does the same. Only for rows near the screen (assets/rail.js marks them
   live), only where the browser can tie an animation to scrolling, and
   never for visitors who asked for less motion. Neither animation holds a
   card once it is fully in the row, so its lift under the pointer stays. */
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .rail.is-live .tickets--row > li {
      animation: ticket-swing-in linear backwards, ticket-swing-out linear forwards;
      animation-timeline: view(inline), view(inline);
      animation-range: entry, exit;
    }

    .rail.is-live.is-in .tickets--row > li {
      animation: ticket-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--ticket-wait, 0s) backwards, ticket-swing-in linear backwards, ticket-swing-out linear forwards;
      animation-timeline: auto, view(inline), view(inline);
      animation-range: normal, entry, exit;
    }
  }
}

@keyframes ticket-swing-in {
  from {
    opacity: 0.45;
    transform: perspective(900px) rotateY(52deg);
    transform-origin: 0 50%;
  }

  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg);
    transform-origin: 0 50%;
  }
}

@keyframes ticket-swing-out {
  from {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg);
    transform-origin: 100% 50%;
  }

  to {
    opacity: 0.45;
    transform: perspective(900px) rotateY(-52deg);
    transform-origin: 100% 50%;
  }
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* The wallet art in the store has no plan notes under the card names;
   keep the names where the brand page shows them, above the pocket. */
.wallet .gcard-body {
  padding-bottom: 25px;
}

@media (max-width: 600px) {
  .wallet .gcard-body {
    padding-bottom: 8px;
  }
}

/* ===== Every page in the wallet style =====
   Product, checkout, thank-you, order, track, lists and reading pages
   reuse the home page's pieces: gift cards, tickets with perforations,
   the dark pocket and the floating notes. */

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.toast-icon--red {
  background: #FDE7E5;
  color: #8C1D18;
}

/* Order steps: the three steps of "How it works" */

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.journey-step + .journey-step::before {
  content: "";
  flex: none;
  width: clamp(14px, 4vw, 44px);
  height: 2px;
  border-radius: 2px;
  background: #D5DAE3;
}

.journey-step.is-done + .journey-step::before {
  background: #8BCB9F;
}

.journey-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #D5DAE3;
  background: #fff;
  color: var(--muted);
  font-family: var(--display);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 800;
}

.journey-step.is-now {
  color: var(--ink);
}

.is-now .journey-mark {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(41, 111, 217, 0.9);
}

.is-done .journey-mark {
  border-color: #DCF7E1;
  background: #DCF7E1;
  color: #09672E;
}

@media (max-width: 560px) {
  /* Phones: only the current step keeps its words on screen. */
  .journey-step:not(.is-now) .journey-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .journey:not(:has(.is-now)) .journey-step:last-child .journey-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* Product page: the card in its frame, a second one fanned out behind */

.product-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
}

.product-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c) 62%, #121826);
  transform: translate(4%, -6%) rotate(6deg);
}

.product-media.has-image .product-stage::before {
  background: #DDE1EA;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card {
    animation: card-in 0.8s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  }

  .product-stage::before {
    animation: back-in 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) 0.08s both;
  }

  .product-stage .sheen::after {
    animation: sheen 2s ease-in-out 0.9s both;
  }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}

@keyframes back-in {
  from { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  to { opacity: 1; transform: translate(4%, -6%) rotate(6deg); }
}

.buy-form {
  display: flex;
  flex-direction: column;
}

.buy .perf,
.receipt .perf {
  margin: 0 22px;
}

.buy .perf::before,
.receipt .perf::before {
  left: -31px;
}

.buy .perf::after,
.receipt .perf::after {
  right: -31px;
}

.buy-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 20px;
}

.plan {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.plan:hover {
  border-color: #AEB7C6;
}

/* Checkout: the order as a ticket whose top is the product's card */

/* On phones: the order, the form, then what happens after paying. On
   wide screens the form has the first column and the order with "After
   you pay" under it has the second, so neither column runs on alone. */
.checkout {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "summary"
    "form"
    "next";
  gap: 20px 28px;
  align-items: start;
}

.checkout-head {
  grid-area: head;
  gap: 14px;
}

.checkout-summary {
  grid-area: summary;
}

.checkout-form {
  grid-area: form;
}

.checkout-next {
  grid-area: next;
}

/* Phones: the form first, under one line saying what is being paid for
   (.checkout-mini); the full order, with what the plan includes, after
   it. Wider screens show the order beside the form and no line. */
.checkout-mini {
  display: none;
}

@media (max-width: 600px) {
  .checkout {
    grid-template-areas:
      "head"
      "form"
      "summary"
      "next";
  }

  .checkout-mini {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    margin: -4px 0 6px;
    padding: 12px 14px;
    border-radius: var(--control-radius);
    background: var(--bg);
  }

  .checkout-mini p {
    margin: 0;
  }

  .checkout-mini-what {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-weight: 700;
  }

  .checkout-mini-plan {
    font-weight: 500;
    color: var(--muted);
  }

  .checkout-mini-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    color: var(--muted);
  }

  .checkout-mini-total .price-total {
    font-size: calc(20px * var(--fs-title, 1));
    color: var(--ink);
  }

  .checkout-mini-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    font-size: calc(14px * var(--fs-text, 1));
  }
}

@media (min-width: 880px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "head head"
      "form summary"
      "form next";
  }
}

.checkout-next h2 {
  margin: 0;
  font-size: var(--title-panel);
}

/* The steps after paying: a numbered line down the left, as the order of
   things is the point. */
.after-steps {
  counter-reset: after;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.after-steps li {
  counter-increment: after;
  position: relative;
  padding-left: 38px;
  color: var(--muted);
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.5;
}

.after-steps li::before {
  content: counter(after);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E2EBFA;
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
}

.after-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 30px;
  bottom: -12px;
  width: 1px;
  background: var(--line-strong);
}

.after-steps strong {
  display: block;
  color: var(--ink);
  font-size: calc(15px * var(--fs-text, 1));
}

.after-help {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.after-help p {
  margin: 0;
  color: var(--muted);
  font-size: calc(14px * var(--fs-text, 1));
}

.order-ticket {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.order-ticket-top {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: -1px -1px 0;
  padding: 18px 20px 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--c);
  color: #fff;
  overflow: hidden;
}

.order-ticket-top::before,
.code-card-top::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, 0.08);
}

.order-ticket-top .gcard-top {
  margin-bottom: 18px;
}

.order-ticket-name {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-panel);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-ticket-plan {
  position: relative;
  margin: 0;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
}

.order-ticket .perf,
.code-card .perf {
  margin: 0 20px;
}

.order-ticket .perf::before,
.code-card .perf::before {
  left: -29px;
}

.order-ticket .perf::after,
.code-card .perf::after {
  right: -29px;
}

.order-ticket-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 18px;
}

.order-ticket-body .line-muted {
  margin: 0;
}

.order-ticket-total {
  align-self: stretch;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.trust-mini {
  list-style: none;
  margin: 2px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #E8EBF1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.trust-mini li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-mini svg {
  color: #09672E;
}

/* Thank-you page: the card goes into the wallet */

.thanks {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thanks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 26px 48px;
}

.thanks-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.thanks-text .lede {
  max-width: 30em;
  font-size: calc(17px * var(--fs-text, 1));
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.thanks-actions form {
  margin: 0;
}

.thanks .drop {
  order: -1;
}

.thanks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--stack);
}

.thanks-side,
.order-side {
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

@media (min-width: 880px) {
  .thanks-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  }

  .thanks .drop {
    order: 0;
  }

  .thanks-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.drop {
  position: relative;
  width: min(100%, 420px);
  height: 340px;
  margin-inline: auto;
}

.drop-pocket {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  border-radius: 28px;
  background: #121826;
  box-shadow: 0 30px 60px -32px rgba(18, 24, 38, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.drop-pocket::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(242, 243, 247, 0.16);
  border-radius: 20px;
}

.drop-pocket span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(242, 243, 247, 0.6);
}

.drop-card {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 76px;
  width: min(290px, 74%);
  aspect-ratio: 1.586;
  transform: translateX(-50%) rotate(-3deg);
}

.drop-card .gcard {
  justify-content: flex-start;
  gap: 12px;
}

.drop-card .gcard-name {
  font-size: calc(22px * var(--fs-title, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-toast {
  left: 0;
  top: 6px;
}

.drop--wait .drop-toast,
.drop--out .drop-toast,
.drop--void .drop-toast {
  top: auto;
  left: -4px;
  bottom: 116px;
}

.drop--wait .drop-card,
.drop--void .drop-card {
  bottom: 152px;
  transform: translateX(-50%) rotate(3deg);
}

.drop--void .drop-card {
  filter: grayscale(1);
  opacity: 0.5;
}

.drop--out .drop-card {
  left: 60%;
  bottom: 118px;
  transform: translateX(-50%) rotate(12deg);
}

@media (max-width: 600px) {
  .drop {
    width: min(100%, 340px);
    height: 268px;
  }

  .drop-pocket {
    height: 110px;
    border-radius: 24px;
  }

  .drop-card {
    width: min(240px, 72%);
    bottom: 66px;
  }

  .drop-card .gcard-name {
    font-size: calc(20px * var(--fs-title, 1));
  }

  .drop--wait .drop-card,
  .drop--void .drop-card {
    bottom: 118px;
  }

  .drop--out .drop-card {
    bottom: 96px;
  }

  .drop--wait .drop-toast,
  .drop--out .drop-toast,
  .drop--void .drop-toast {
    bottom: 88px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .drop--in .drop-card {
    animation: drop-in 1.05s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s both;
  }

  .drop--in .drop-toast {
    animation: toast 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) 1.05s both;
  }

  .drop--in .sheen::after {
    animation: sheen 1.8s ease-in-out 1.3s both;
  }

  .drop--out .drop-toast {
    animation: toast 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.2s both;
  }
}

@keyframes drop-in {
  0% { opacity: 0; transform: translate(-50%, -170px) rotate(-12deg); }
  25% { opacity: 1; }
  68% { transform: translate(-50%, 10px) rotate(-2deg); }
  100% { opacity: 1; transform: translate(-50%, 0) rotate(-3deg); }
}

/* Receipt: dark head, perforation, lines */

.receipt {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.receipt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: -1px -1px 0;
  padding: 18px 22px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #121826;
  color: #F2F3F7;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
}

.receipt-body p {
  margin: 0;
}

.line-total {
  align-items: baseline;
}

.panel--quiet {
  box-shadow: none;
}

/* A button whose form is on its way (assets/once.js). */
button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* "Make a new link", under the link it replaces. */
.keep-new {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

.keep-new p {
  margin: 0;
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.5;
  color: var(--muted);
}

/* A part reached from "Waiting for you" stops with its box's top edge on
   screen, not with its heading against the edge. */
.order .panel h2 {
  scroll-margin-top: 30px;
}

/* On the order page the form stands alone in a part that folds away, so
   it needs no line above it. */
.fold-body > .keep-new {
  padding-top: 0;
  border-top: 0;
}

/* Order page: delivered codes on the product's card */

.order-head {
  gap: 10px;
}

.order-head .status {
  align-self: flex-start;
}

.deliveries {
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

.code-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #121826;
  color: #F2F3F7;
  box-shadow: var(--shadow-soft);
}

.code-card-top {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 20px 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--c);
  color: #fff;
  overflow: hidden;
}

.code-card-top h3 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-panel);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.perf--night {
  border-top-color: rgba(242, 243, 247, 0.2);
}

.code-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
}

.code-card .delivery {
  border: 1px solid rgba(242, 243, 247, 0.14);
  background: rgba(242, 243, 247, 0.06);
}

.code-card-when {
  margin: 0;
  font-size: 13px;
  color: var(--night-muted);
}

/* Track page */

.track {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
}

.track-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.track-text .lede {
  font-size: calc(17px * var(--fs-text, 1));
}

/* The lookup, and under it "Find my orders" for a customer with no number. */
.track-forms {
  display: grid;
  gap: 20px;
}

.track-form-title {
  margin: 0;
  font-size: var(--title-panel);
}

.track-art {
  position: relative;
  width: min(300px, 100%);
  margin-left: 12px;
}

.receipt--art {
  transform: rotate(-4deg);
}

.receipt-art-number {
  font-family: var(--display);
  font-size: var(--title-panel);
  font-weight: 800;
  letter-spacing: 0;
}

.bar {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: #E6E9F0;
}

.bar--short {
  width: 58%;
}

.track-art .toast {
  right: -18px;
  bottom: -18px;
}

@media (min-width: 880px) {
  .track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
}

@media (max-width: 879px) {
  .track-art {
    display: none;
  }
}

/* Lists and reading pages open with a light banner: crumbs, title and
   count. On list pages the first products stand on it as cards, lit from
   the left and mirrored in the surface they stand on, and the banner
   takes a wash of the front card's colour, so every category and search
   gets a banner of its own. */

.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  min-height: 108px;
  padding: 22px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  background: linear-gradient(104deg, #fff 52%, #EDF3FD 100%);
}

.banner.has-art {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 196px;
  padding-block: 0;
  background: #fff;
  background: linear-gradient(104deg, #fff 0%, #fff 34%, color-mix(in srgb, var(--c) 18%, #fff) 100%);
}

.banner-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 22px;
}

.banner:not(.has-art) .banner-text {
  padding-block: 0;
}

.banner h1 {
  overflow-wrap: anywhere;
}

.banner-sub {
  margin: 0;
  max-width: 34em;
  font-size: calc(14px * var(--fs-text, 1));
  color: var(--muted);
}

/* The cards: three in a shallow arc, the outer two turned inward. The
   first product is the one in front. */
.banner-art {
  position: relative;
  align-self: stretch;
  width: 420px;
  perspective: 560px;
  perspective-origin: 50% 36%;
}

/* A glow of the front card's colour on the wall behind the cards, and the
   surface they stand on: a paler strip that fades out toward the text. */
.banner-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -40px 0 -120px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) calc(100% - 56px), rgba(255, 255, 255, 0.85) calc(100% - 56px), rgba(255, 255, 255, 0.3) 100%),
    radial-gradient(60% 80% at 58% 44%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%);
  mask-image: linear-gradient(to right, transparent, #000 34%);
}

/* Where the cards touch the surface. */
.banner-art::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 44px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 24, 38, 0.34), rgba(18, 24, 38, 0));
}

.banner-art--2::after {
  left: 60px;
  right: 70px;
}

.banner-art--1::after {
  left: 112px;
  right: 112px;
}

.banner-card {
  position: absolute;
  bottom: 56px;
  width: 176px;
  aspect-ratio: 1.586;
  /* Mirrored in the surface, fading out just below the card. */
  -webkit-box-reflect: below 3px linear-gradient(to bottom, rgba(255, 255, 255, 0) 66%, rgba(255, 255, 255, 0.16));
}

/* The front card stays flat, so its words stay sharp. */
.banner-card:nth-child(1) { left: 122px; z-index: 3; }
.banner-card:nth-child(2) { left: 10px; z-index: 2; transform: translateZ(-70px) rotateY(34deg); }
.banner-card:nth-child(3) { left: 234px; z-index: 1; transform: translateZ(-70px) rotateY(-36deg); }
.banner-art--2 .banner-card:nth-child(1) { left: 164px; }
.banner-art--2 .banner-card:nth-child(2) { left: 52px; }
.banner-art--1 .banner-card:nth-child(1) { left: 122px; }

.banner-card .gcard {
  padding: 10px 12px 11px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(18, 24, 38, 0.3);
}

/* Light from the upper left, shade toward the lower right. */
.banner-card .gcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 38%, rgba(18, 24, 38, 0.18) 100%);
  pointer-events: none;
}

.banner-card .gcard::before {
  right: -30px;
  top: -30px;
  width: 96px;
  height: 96px;
  border-width: 12px;
}

.banner-card .plate {
  height: 26px;
  min-width: 26px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 11px;
}

.banner-card .small-caps {
  font-size: 8.5px;
}

.banner-card .gcard-body .small-caps {
  display: none;
}

.banner-card .gcard-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* A product with its own picture stands as that picture: a square tile
   showing all of it, so the mirror under it shows the picture too. */
.banner-card--photo {
  width: 124px;
  aspect-ratio: 1;
  /* More of a picture shows in the mirror than of a plain card. */
  -webkit-box-reflect: below 3px linear-gradient(to bottom, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.36));
}

.banner-card--photo:nth-child(1) { left: 148px; }
.banner-card--photo:nth-child(2) { left: 44px; }
.banner-card--photo:nth-child(3) { left: 252px; }

/* (Two classes on the card, so the smaller paddings set for phones
   further down never put a frame round the picture.) */
.banner-card--photo .gcard.gcard--image {
  padding: 0;
  background: #fff;
}

.banner-card--photo .gcard-body {
  display: none;
}

.banner-card--photo .gcard-media {
  border-radius: inherit;
  background: #fff;
}

/* Phones: the cards sit in the top right corner beside the crumbs, and
   the title takes the full width under them. */
@media (max-width: 600px) {
  .banner {
    padding: 16px 18px 18px;
    border-radius: 16px;
  }

  .banner.has-art {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "crumbs art"
      "title title"
      "sub sub";
    align-items: start;
    row-gap: 4px;
    min-height: 0;
    padding: 0 18px 18px;
  }

  .banner.has-art .banner-text {
    display: contents;
  }

  .banner.has-art .crumbs {
    grid-area: crumbs;
    align-self: center;
  }

  /* Beside the cards there is room for the way back only; the page's own
     name is the title right under it. */
  .banner.has-art .crumbs > [aria-current="page"],
  .banner.has-art .crumbs > [aria-hidden="true"]:nth-last-child(2) {
    display: none;
  }

  .banner.has-art h1 {
    grid-area: title;
  }

  .banner.has-art .banner-sub {
    grid-area: sub;
  }

  .banner-art {
    grid-area: art;
    width: 184px;
    height: 100px;
    margin-right: -4px;
    perspective: 320px;
  }

  /* No strip of surface here (it would cut across the title): the glow
     and the reflection are enough. */
  .banner-art::before {
    inset: 0 -22px 0 -60px;
    background: radial-gradient(60% 80% at 58% 44%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  }

  .banner-art::after {
    left: 16px;
    right: 16px;
    bottom: 21px;
    height: 10px;
  }

  /* On a phone the cards are small, so their mirror is stronger and
     longer than on a wide screen, or it would not read as one at all. */
  .banner-card {
    bottom: 34px;
    width: 86px;
    -webkit-box-reflect: below 2px linear-gradient(to bottom, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.46));
  }

  .banner-card:nth-child(1) { left: 49px; }
  .banner-card:nth-child(2) { left: 0; transform: translateZ(-36px) rotateY(34deg); }
  .banner-card:nth-child(3) { left: 98px; transform: translateZ(-36px) rotateY(-36deg); }
  .banner-art--2 .banner-card:nth-child(1) { left: 68px; }
  .banner-art--2 .banner-card:nth-child(2) { left: 16px; }
  .banner-art--1 .banner-card:nth-child(1) { left: 49px; }

  .banner-card .gcard {
    padding: 6px 7px;
    border-radius: 8px;
  }

  .banner-card .gcard::before {
    right: -20px;
    top: -20px;
    width: 60px;
    height: 60px;
    border-width: 8px;
  }

  .banner-card .plate {
    height: 19px;
    min-width: 19px;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 9px;
  }

  .banner-card .small-caps,
  .banner-card .gcard-body {
    display: none;
  }

  .banner-card--photo {
    width: 62px;
    -webkit-box-reflect: below 2px linear-gradient(to bottom, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.56));
  }

  .banner-card--photo:nth-child(1) { left: 61px; }
  .banner-card--photo:nth-child(2) { left: 10px; }
  .banner-card--photo:nth-child(3) { left: 112px; }
}

/* One arrival: the cards settle onto the surface, then light crosses the
   front one once. */
@media (prefers-reduced-motion: no-preference) {
  .banner-card {
    animation: settle 0.7s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  }

  .banner-card:nth-child(2) { animation-delay: 0.08s; }
  .banner-card:nth-child(3) { animation-delay: 0.16s; }

  .banner-card .sheen::after {
    animation: sheen 1.5s ease-in-out 0.7s both;
  }
}

@keyframes settle {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

/* Sort links under a list's head. */
.sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: -4px;
}

.sort-label {
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  color: var(--muted);
}

.sort ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sort a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3A4F66;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  text-decoration: none;
}

.sort a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.sort a[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Phones: one row that scrolls sideways, so products start sooner. */
@media (max-width: 600px) {
  .sort {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sort::-webkit-scrollbar {
    display: none;
  }

  .sort-label {
    flex: none;
  }

  .sort ul {
    flex-wrap: nowrap;
  }

  .sort li {
    flex: none;
  }
}

.reading {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

.paper {
  max-width: none;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.paper > :last-child {
  margin-bottom: 0;
}

/* About 70 characters a line, however wide the paper is. */
.paper.prose > * {
  max-width: 70ch;
}

/* A page that isn't written yet. */
.blank-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.blank-card p {
  margin: 0;
  font-size: calc(17px * var(--fs-text, 1));
}

.blank-card strong {
  color: var(--ink);
  font-weight: 700;
}

.blank-art {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #EEF3FC;
  color: var(--link);
}

.blank-text {
  min-width: 0;
  padding-top: 2px;
}

.blank-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  .blank-card {
    flex-direction: column;
    gap: 14px;
  }
}

/* The empty slot where a request's price will appear. */
.blank-card.request-wait {
  align-items: center;
  border: 2px dashed #C3CAD7;
  background: transparent;
}

.blank-plate {
  flex: none;
  width: 64px;
  aspect-ratio: 1.586;
  border-radius: 10px;
  border: 2px dashed #B3BBCA;
}

/* Error pages: an empty pocket */

.lost-art {
  position: relative;
  width: min(260px, 70vw);
  height: 176px;
  margin-bottom: 30px;
}

.lost-art .drop-pocket {
  height: 96px;
  border-radius: 22px;
}

.lost-art .drop-pocket span {
  bottom: 18px;
}

.lost-card {
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: 64%;
  aspect-ratio: 1.586;
  border: 2px dashed #B3BBCA;
  border-radius: 16px;
  transform: translateX(-50%) rotate(-7deg);
}

/* Home: let the browser skip work for category rows below the fold */

#products > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

/* ===== Product images =====
   A product with its own image shows it whole on a white card; products
   without one keep their colour card. */

.gcard--image {
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 40px -24px rgba(18, 24, 38, 0.55), inset 0 0 0 1px rgba(18, 24, 38, 0.06);
}

.gcard--image::before {
  display: none;
}

.gcard-media {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #F7F8FB;
  overflow: hidden;
}

/* The image fills its box and shows whole. Positioned, because a square
   logo in a flex or grid box would otherwise set the box's height itself. */
.gcard-media img,
.ticket-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gcard--image .gcard-body {
  flex: none;
}

.gcard--image .small-caps {
  color: var(--muted);
}

.gcard--image .gcard-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .gcard--image .gcard-name {
  font-size: calc(clamp(18px, 1.3vw + 6px, 22px) * var(--fs-title, 1));
}

/* A card's picture has a square box and fills it: product pictures are
   square, so nothing is cropped, stretched or left small in the middle.
   One that is not square shows whole, on white. The box hides what a
   picture grows past its edge under the pointer. */
.ticket-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}


.ticket-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}

.ticket-info .small-caps {
  color: var(--muted);
}

.thumb {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.18);
}

.order-ticket-top.has-image,
.code-card-top.has-image {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #E8EBF1;
}

.order-ticket-top.has-image::before,
.code-card-top.has-image::before {
  display: none;
}

.order-ticket-top.has-image .small-caps,
.code-card-top.has-image .small-caps {
  color: var(--muted);
}

/* ===== What was delivered, by type ===== */

.secret {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(242, 243, 247, 0.14);
  background: rgba(242, 243, 247, 0.06);
  color: #F2F3F7;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: calc(15px * var(--fs-text, 1));
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

.codes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.secrets {
  margin: 0;
  display: grid;
  gap: 12px;
}

.secrets div {
  display: grid;
  gap: 6px;
}

.secrets dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--night-muted);
}

.secrets dd {
  margin: 0;
}

.btn-invite {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 18px;
  border-radius: var(--control-radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.btn-invite:hover {
  color: var(--ink);
  background: #E8EEFB;
}

.invite-url {
  margin: 0;
}

.invite-url .secret {
  font-size: 13px;
}

.activated {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: calc(17px * var(--fs-text, 1));
}

.activated strong {
  overflow-wrap: anywhere;
}

.code-card-fact {
  margin: 0;
  font-size: calc(15px * var(--fs-text, 1));
  color: #F2F3F7;
}

.code-card-note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 243, 247, 0.12);
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.6;
  color: #D9DDE6;
  white-space: pre-line;
}

/* The name area grows, so perforations and prices line up across a row. */
.ticket > .ticket-info {
  flex: 1;
}


/* ===== Request a product ===== */

.request {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.request-head {
  gap: 12px;
}

.request-form h2 {
  margin-top: 10px;
}

.request-form h2:first-of-type {
  margin-top: 0;
}

.optional {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.kinds {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kinds legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 700;
}

.kind {
  position: relative;
}

.kind input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.kind span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 500;
}

.kind input:checked + span {
  border-color: var(--accent);
  background: #EEF4FF;
  color: var(--link-hover);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.kind input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Questions for one type only: shown by the chosen type, no script needed. */
.only-for {
  display: none;
}

.request-form:has(input[name="kind"][value="subscription"]:checked) .only-subscription,
.request-form:has(input[name="kind"][value="giftcard"]:checked) .only-giftcard,
.request-form:has(input[name="kind"][value="topup"]:checked) .only-topup,
.request-form:has(input[name="kind"][value="software"]:checked) .only-software {
  display: grid;
}

.deliver-pick {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: #F3F5F9;
  gap: 10px;
}

.deliver-pick legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 700;
}

.deliver-pick .field-hint {
  display: block;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.field select {
  width: 100%;
  min-height: var(--control);
  padding: 0 12px;
  border-radius: var(--control-radius);
  border: 1px solid #858FA1;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* A mobile number (checkout, request form): the country code, then the number. Each
   choice in the code's list starts with the country's flag. With
   assets/phone.js the box shows only the chosen flag and code (the
   face), and the list lies over it unseen, so it opens, takes the keyboard
   and is read out as any list is. Without the script the list shows as it
   is. */
.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 7.75rem) minmax(0, 1fr);
  gap: 8px;
}

.dial {
  position: relative;
  display: grid;
  min-width: 0;
}

.dial select {
  text-overflow: ellipsis;
}

.dial--face select {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dial-face {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control);
  padding: 0 30px 0 12px;
  border-radius: var(--control-radius);
  border: 1px solid #858FA1;
  background: #fff;
  color: var(--ink);
  font-size: calc(16px * var(--fs-text, 1));
  white-space: nowrap;
}

.dial-face::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
}

.dial-flag {
  font-size: calc(20px * var(--fs-title, 1));
  line-height: 1;
}

.dial--face select:focus-visible + .dial-face {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.dial--face select[aria-invalid="true"] + .dial-face {
  border-color: #B3261E;
}

/* Where the device draws a flag as two letters (Chrome and Edge on
   Windows; assets/phone.js marks the page), the flags come from this
   font. It holds nothing but flags and is fetched only then. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("/assets/fonts/twemoji-country-flags.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF;
}

.needs-flags .dial select,
.needs-flags .dial-face {
  font-family: "Twemoji Country Flags", "Outfit", "Noto Sans Bengali", system-ui, sans-serif;
}

.estimate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #121826;
  color: #F2F3F7;
}

.estimate[hidden] {
  display: none;
}

.estimate-label {
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  color: var(--night-muted);
}

.estimate-value {
  grid-row: span 2;
  font-family: var(--display);
  font-size: var(--price-total);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.estimate-note {
  font-size: 13px;
  color: var(--night-muted);
}

.request-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px 48px;
}

.hold {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
}

.reason,
.our-note {
  align-self: stretch;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #FDE7E5;
  color: #5F1410;
}

.our-note {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(18, 24, 38, 0.08);
}

.reason-label,
.our-note-label {
  font-size: 13px;
  font-weight: 700;
}

.reason p,
.our-note p {
  margin: 4px 0 0;
  white-space: pre-line;
}

.quote {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.quote-options {
  margin: 0;
  padding: 18px 18px 20px;
  border: 0;
  display: grid;
  gap: 10px;
}

.quote-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.quote-option input {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.quote-option:has(input:checked) {
  border-color: var(--accent);
  background: #F3F7FF;
}

.quote-option-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quote-option-price {
  grid-row: span 2;
}

.quote-option-note {
  font-size: 13px;
  color: var(--muted);
}

.quote .perf {
  margin: 0 22px;
}

.quote .perf::before {
  left: -31px;
}

.quote .perf::after {
  right: -31px;
}

.quote-foot {
  padding: 18px;
}

.quote-decline {
  margin: 0;
  padding: 0 18px 16px;
  text-align: center;
}

.link-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
  cursor: pointer;
}

.inline-form {
  margin: 0;
}

.request-wait {
  min-height: 160px;
  justify-content: center;
}

.asked {
  margin: 0;
  display: grid;
  gap: 10px;
}

.asked div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) 1fr;
  gap: 12px;
}

.asked dt {
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  color: var(--muted);
}

.asked dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 880px) {
  .request-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
}

@media (max-width: 480px) {
  .price-row {
    grid-template-columns: 1fr 1fr;
  }

  .price-row .field:first-child {
    grid-column: 1 / -1;
  }

  .estimate {
    grid-template-columns: 1fr;
  }

  .estimate-value {
    grid-row: auto;
  }

  .asked div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ===== Home: category tiles — a small wallet per category =====
   The pocket holds the category's first three products, fanned like the
   hero wallet. The whole tile is the link. Sizes follow the tile's own
   width (cqw), with fixed values first for browsers without them. */

.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(136px, 100%), 1fr));
  gap: 14px;
}

@media (min-width: 720px) {
  .shelf {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
}

.shelf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  container-type: inline-size;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

.shelf-tile:hover {
  color: inherit;
}

.shelf-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shelf-cards {
  position: relative;
  flex: none;
  height: 84px;
  height: calc(34cqw + 24px);
}

.shelf-card {
  position: absolute;
  left: 25%;
  top: 12px;
  top: 8cqw;
  width: 50%;
  aspect-ratio: 1.586;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--c, #2D333D);
  color: #fff;
  font-family: var(--display);
  font-size: calc(18px * var(--fs-title, 1));
  font-size: clamp(14px, 9cqw, 22px);
  font-weight: 800;
  box-shadow: 0 14px 26px -18px rgba(18, 24, 38, 0.75);
  transform-origin: 50% 140%;
  transition: rotate 0.25s ease, translate 0.25s ease;
}

.shelf-card:nth-child(1) { z-index: 3; }
.shelf-card:nth-child(2) { z-index: 2; rotate: -14deg; }
.shelf-card:nth-child(3) { z-index: 1; rotate: 14deg; }

.shelf-card--image {
  background: #fff;
  box-shadow: 0 14px 26px -18px rgba(18, 24, 38, 0.75), inset 0 0 0 1px rgba(18, 24, 38, 0.08);
}

.shelf-card img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.shelf-tile:hover .shelf-card:nth-child(1) { translate: 0 -5px; }
.shelf-tile:hover .shelf-card:nth-child(2) { rotate: -20deg; translate: -4px -2px; }
.shelf-tile:hover .shelf-card:nth-child(3) { rotate: 20deg; translate: 4px -2px; }

.shelf-pocket {
  position: relative;
  z-index: 4;
  flex: 1;
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 78px;
  padding: 16px 14px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.shelf-pocket::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(242, 243, 247, 0.16);
  border-radius: 9px;
  pointer-events: none;
}

.shelf-name {
  position: relative;
  font-family: var(--display);
  font-size: calc(17px * var(--fs-text, 1));
  font-size: clamp(15px, 4cqw + 8px, 20px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

.shelf-count {
  position: relative;
  font-size: 13px;
  color: var(--night-muted);
}

/* ===== Home: "Request a product" — an empty slot in the wallet ===== */

.ask {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--night-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
  overflow: hidden;
}

.ask::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(242, 243, 247, 0.16);
  border-radius: 11px;
  pointer-events: none;
}

.ask-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 34em;
}

.section .ask h2 {
  color: #fff;
}

.ask p {
  margin: 0;
  font-size: calc(16px * var(--fs-text, 1));
  line-height: 1.55;
}

.ask .btn-primary {
  margin-top: 6px;
}

.ask-slot {
  position: relative;
  display: none;
  justify-content: center;
}

.ask-card {
  width: min(200px, 100%);
  aspect-ratio: 1.586;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px dashed rgba(242, 243, 247, 0.35);
  color: rgba(242, 243, 247, 0.75);
  rotate: -6deg;
}

@media (min-width: 720px) {
  .ask {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .ask-slot {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shelf-card {
    transition: none;
  }
}

/* In the wallet picture a product's image card is its logo alone, kept in
   the part of the card that shows above the pocket. */
.wallet .gcard--image .gcard-body {
  display: none;
}

.wallet .gcard--image .gcard-media {
  flex: none;
  height: 66%;
  background: transparent;
}

/* ===== Screenshots with a request ===== */

.field input[type="file"] {
  padding: 8px;
  border-style: dashed;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.shots {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shots a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #F7F8FB;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.18);
}

.shots img {
  display: block;
  width: auto;
  height: 72px;
  max-width: 160px;
  object-fit: cover;
}

/* ===== Header search: suggestions as you type ===== */

.search {
  position: relative;
}

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: -1px;
  right: -1px;
  z-index: 30;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(18, 24, 38, 0.04), 0 24px 48px -20px rgba(18, 24, 38, 0.45), 0 0 0 1px rgba(18, 24, 38, 0.06);
}

.suggest a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.suggest [aria-selected="true"] a,
.suggest a:hover {
  background: #EEF3FC;
}

.suggest-media {
  flex: none;
  position: relative;
  width: 52px;
  aspect-ratio: 1.586;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--c, #2D333D);
  color: #fff;
  font-family: var(--display);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 800;
  overflow: hidden;
}

.suggest-media--image {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(18, 24, 38, 0.1);
}

.suggest-media img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
}

.suggest-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggest-name {
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .suggest-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
}

.suggest-meta {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-price {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.suggest .suggest-more {
  justify-content: center;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--link);
}

/* Customer account pages */

.account {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.account-head h1 {
  margin-bottom: 4px;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.account-nav a,
.account-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  background: #fff;
  color: #3A4F66;
  font: inherit;
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.account-nav a:hover,
.account-nav button:hover,
.account-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--link);
}

.account-nav form {
  margin: 0;
}

.account-subhead {
  margin-top: 16px;
}

.account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.account-row:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.account-row-main,
.passkey-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-row-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-row-meta {
  font-size: 13px;
  color: var(--muted);
}

.account-row-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-points {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.account-panel .btn-primary {
  gap: 10px;
}

.account-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.account-or::before,
.account-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E3E7EE;
}

.account-resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

/* The bot check's widget (store/partials/bot-check): a line of its own in
   whatever form it stands in. */
.bot-check {
  width: 100%;
}

.account-resend a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: calc(15px * var(--fs-text, 1));
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.field .code-input {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.3em;
  text-align: center;
}

.passkey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.passkey-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EDF0F4;
}

.passkey-list form {
  margin: 0;
}

.link-button--danger {
  color: #B3261E;
}

.link-button--danger:hover {
  color: #8C1D18;
}

[data-passkey][aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* Phones: list pages show two cards a row, without the category label. */
@media (max-width: 599px) {
  .tickets:not(.tickets--row) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tickets:not(.tickets--row) .ticket-info .small-caps {
    display: none;
  }

  .tickets:not(.tickets--row) .ticket-info,
  .tickets:not(.tickets--row) .ticket-status {
    padding-inline: 12px;
  }

  .tickets:not(.tickets--row) .ticket-status {
    gap: 2px 6px;
  }
}

/* Products with many plans: compact tiles instead of a long list. */
.plans--many {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.plans--many .plan {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 10px;
  padding: 10px 12px;
}

.plans--many .plan-name {
  flex: 1;
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.3;
}

.plans--many .plan-price {
  flex-basis: 100%;
  padding-left: 30px;
  font-size: calc(16px * var(--fs-text, 1));
}

/* ===== Estimates in the visitor's currency =====
   Shown beside a taka price to a visitor who picked USD or EUR in the
   header. Taka stays the price, so the estimate is always the quieter of
   the two. */

.approx {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.buy-approx {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.4;
}

.plan-price .approx {
  margin-left: 2px;
  font-size: 12.5px;
}

.plans--many .plan-price .approx {
  display: block;
  margin-left: 0;
}

/* The estimate sits under the taka price in a suggestion, both to the right. */
.suggest-price {
  text-align: right;
}

.suggest-approx {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* ===== Hero slides =====
   The top of the home page turns through the store: the brand's own
   picture first, then a slide for each of the first categories, with its
   name, count, lowest price and three of its products as cards. Each
   slide sets its cards out, and brings them in, in its own way: a fanned
   hand, a mirrored row, a flight of steps, a floating stack. Every slide
   shares one grid cell, so the page below never moves. */

.hero--slides {
  display: block;
}

.hero-track {
  display: grid;
  touch-action: pan-y;
}

.hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 40px 56px;
  visibility: hidden;
  opacity: 0;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

/* The slide going out fades while the next one's cards come in. Its
   words go first and quickly, so two headings are never read at once. */
.hero-slide.is-leaving {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.hero-slide.is-leaving .hero-text {
  opacity: 0;
  transition: opacity 0.1s ease;
}

@media (min-width: 980px) {
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: none;
    align-items: center;
  }
}

@media (min-width: 980px) and (max-width: 1199px) {
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
  }
}

@media (max-width: 600px) {
  .hero-slide {
    gap: 16px;
  }
}

/* One column (phones and tablets): the first slide's words are the
   longest, so a category slide gives the room it has left to its cards. */
@media (max-width: 979px) {
  .hero-slide:not(:first-child) {
    grid-template-rows: auto 1fr;
  }

  .hero-slide:not(:first-child) .slide-stage {
    height: 100%;
    min-height: 250px;
  }
}

@media (max-width: 600px) {
  .hero-slide:not(:first-child) .slide-stage {
    min-height: 200px;
  }
}

@media (max-width: 600px) and (max-height: 760px) {
  .hero-slide:not(:first-child) .slide-stage {
    min-height: 160px;
  }

  .slide-stage {
    height: 160px;
  }
}

/* A slide's entrance plays each time it comes on screen: off screen its
   animations are taken away, so they start again when it returns. */
.hero-slide:not(.is-active) .rise,
.hero-slide:not(.is-active) .deal,
.hero-slide:not(.is-active) .toast,
.hero-slide:not(.is-active) .sheen::after {
  animation: none;
}

.hero-price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  color: var(--accent);
}

.hero-price-from {
  font-size: calc(16px * var(--fs-text, 1));
  font-weight: 600;
  color: var(--muted);
}

.hero-price .price-total {
  font-size: calc(clamp(26px, 2.4vw, 34px) * var(--fs-title, 1));
}

/* The stage: the same box as the wallet picture, lit with the colour of
   the slide's first card. */
.slide-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 470px;
  margin-inline: auto;
  perspective: 1200px;
  perspective-origin: 50% 40%;
}

.slide-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 2% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, transparent), transparent);
}

.slide-card {
  --w: clamp(214px, 20vw + 26px, 286px);
  position: absolute;
  left: calc(50% - var(--w) / 2);
  top: calc(50% - var(--w) / 3.172);
  width: var(--w);
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
}

.slide-in {
  width: 100%;
  height: 100%;
}

.slide-card:nth-child(1) { z-index: 3; }
.slide-card:nth-child(2) { z-index: 2; }
.slide-card:nth-child(3) { z-index: 1; }

/* A product's own picture: a square tile showing the whole picture, so
   a mirror under it shows the picture too. (Two classes on the card, so
   the phone paddings further down never put a frame round the picture.) */
.slide-card--photo {
  --w: clamp(150px, 14vw + 18px, 200px);
  top: calc(50% - var(--w) / 2);
  aspect-ratio: 1;
}

.slide-card--photo .gcard.gcard--image {
  padding: 0;
  background: #fff;
}

.slide-card--photo .gcard-body {
  display: none;
}

.slide-card--photo .gcard-media {
  border-radius: inherit;
  background: #fff;
}

.slide-card .gcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 38%, rgba(18, 24, 38, 0.16) 100%);
  pointer-events: none;
}

/* A long product name keeps to two lines on its card. */
.slide-card .gcard-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: calc(clamp(18px, 1.5vw, 22px) * var(--fs-title, 1));
  line-height: 1.08;
  padding-bottom: 2px;
}

/* 1. A fanned hand: the outer cards swing out from behind the middle one. */
.hero-slide--fan .slide-card {
  transform-origin: 50% 210%;
}

.hero-slide--fan .slide-card:nth-child(1) { transform: translateY(-6%); }
.hero-slide--fan .slide-card:nth-child(2) { transform: rotate(-17deg); }
.hero-slide--fan .slide-card:nth-child(3) { transform: rotate(17deg); }

.hero-slide--fan .slide-in {
  transform-origin: 50% 210%;
}

.hero-slide--fan .slide-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 15%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 24, 38, 0.3), rgba(18, 24, 38, 0));
}

/* 2. A mirrored row: the middle card faces front, the outer two turn
   inward, and all three are mirrored in the surface under them. */
.hero-slide--mirror .slide-card {
  top: calc(44% - var(--w) / 3.172);
}

.hero-slide--mirror .slide-card--photo {
  top: calc(44% - var(--w) / 2);
}

.hero-slide--mirror .slide-card:nth-child(2) { transform: translateX(-64%) translateZ(-130px) rotateY(40deg); }
.hero-slide--mirror .slide-card:nth-child(3) { transform: translateX(64%) translateZ(-130px) rotateY(-40deg); }

.hero-slide--mirror .slide-in {
  -webkit-box-reflect: below 6px linear-gradient(to bottom, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.24));
}

.hero-slide--mirror .gcard {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(18, 24, 38, 0.3);
}

.hero-slide--mirror .slide-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4%;
  right: -4%;
  top: calc(44% + var(--floor, 96px));
  bottom: 6%;
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  /* The surface has no edges: it fades out to both sides. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}

/* 3. A flight of steps: three cards climbing to the right. */
.hero-slide--steps .slide-card:nth-child(1) { transform: translate(-24%, 44%) rotate(-7deg); }
.hero-slide--steps .slide-card:nth-child(2) { transform: translate(4%, -4%) rotate(-7deg); }
.hero-slide--steps .slide-card:nth-child(3) { transform: translate(32%, -52%) rotate(-7deg); }

/* 4. A floating stack: three layers seen from above, one over another. */
.hero-slide--stack .slide-stage {
  perspective: 1600px;
}

.hero-slide--stack .slide-card:nth-child(1) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(96px); }
.hero-slide--stack .slide-card:nth-child(2) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(12px); }
.hero-slide--stack .slide-card:nth-child(3) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(-72px); }

.hero-slide--stack .gcard {
  box-shadow: 0 44px 46px -18px rgba(18, 24, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* With two cards, or one, the same pictures with fewer cards. */
.slide-stage--2 .slide-card:nth-child(1) { z-index: 2; }
.hero-slide--mirror .slide-stage--2 .slide-card:nth-child(1) { transform: translateX(34%); }
.hero-slide--mirror .slide-stage--2 .slide-card:nth-child(2) { transform: translateX(-46%) translateZ(-110px) rotateY(34deg); }
.hero-slide--fan .slide-stage--2 .slide-card:nth-child(1) { transform: rotate(9deg); }
.hero-slide--fan .slide-stage--2 .slide-card:nth-child(2) { transform: rotate(-11deg); }
.hero-slide--steps .slide-stage--2 .slide-card:nth-child(1) { transform: translate(-14%, 24%) rotate(-7deg); }
.hero-slide--steps .slide-stage--2 .slide-card:nth-child(2) { transform: translate(16%, -26%) rotate(-7deg); }
.hero-slide--stack .slide-stage--2 .slide-card:nth-child(1) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(60px); }
.hero-slide--stack .slide-stage--2 .slide-card:nth-child(2) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(-40px); }
.slide-stage--1 .slide-card:nth-child(1) { transform: none; }
.hero-slide--stack .slide-stage--1 .slide-card:nth-child(1) { transform: rotateX(56deg) rotateZ(-34deg); }

/* Phones: a shorter stage, like the wallet's. */
@media (max-width: 600px) {
  .slide-stage {
    height: 200px;
    perspective: 800px;
  }

  .slide-card {
    --w: clamp(132px, 38vw, 172px);
  }

  .slide-card--photo {
    --w: clamp(104px, 30vw, 136px);
  }

  .slide-card .gcard {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .slide-card .gcard-name {
    font-size: calc(16px * var(--fs-text, 1));
    letter-spacing: 0;
  }

  .slide-card .plate {
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
    font-size: 12px;
  }

  .hero-slide--mirror .slide-card:nth-child(2) { transform: translateX(-58%) translateZ(-90px) rotateY(40deg); }
  .hero-slide--mirror .slide-card:nth-child(3) { transform: translateX(58%) translateZ(-90px) rotateY(-40deg); }
  .hero-slide--mirror .slide-stage::after { --floor: 62px; }
  .hero-slide--stack .slide-card:nth-child(1) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(60px); }
  .hero-slide--stack .slide-card:nth-child(2) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(6px); }
  .hero-slide--stack .slide-card:nth-child(3) { transform: rotateX(56deg) rotateZ(-34deg) translateZ(-48px); }
}

/* Arrows, a marker for each slide, and pause. The script shows them. */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 14px;
  margin-left: -10px;
}

.hero-controls[hidden],
.hero-pause[hidden] {
  display: none;
}

.hero-arrow,
.hero-pause {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.hero-arrow:hover,
.hero-pause:hover {
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(18, 24, 38, 0.5);
}

.hero-arrow:focus-visible,
.hero-pause:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-pause {
  margin-left: 6px;
  color: var(--muted);
}

.hero-pause-off,
.hero-pause[aria-pressed="true"] .hero-pause-on {
  display: none;
}

.hero-pause[aria-pressed="true"] .hero-pause-off {
  display: block;
}

.hero-dots {
  display: flex;
  align-items: center;
}

/* Each marker is a short bar; the one for the slide on screen is longer
   and fills up while its slide is showing. */
.hero-dot {
  width: 30px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.hero-dot span {
  position: relative;
  display: block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: #C3CAD7;
  overflow: hidden;
}

.hero-dot:hover span {
  background: #9AA4B5;
}

.hero-dot[aria-current="true"] {
  width: 58px;
}

.hero-dot[aria-current="true"] span {
  width: 46px;
  background: #C3CAD7;
}

.hero-dot[aria-current="true"] span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
}

@media (max-width: 979px) {
  .hero-controls {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .hero-controls {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-dot,
  .hero-dot span {
    transition: width 0.3s ease, background-color 0.2s ease;
  }

  /* The slow turn: the marker fills in seven seconds, and the script
     shows the next slide when it is full. It waits while the pointer or
     keyboard focus is on the slides, and in a tab nobody is looking at. */
  .hero--slides.is-playing .hero-dot[aria-current="true"] span::after {
    animation: hero-progress 7s linear both;
  }

  .hero--slides.is-playing.is-away .hero-dot[aria-current="true"] span::after,
  .hero--slides.is-playing:focus-within .hero-dot[aria-current="true"] span::after {
    animation-play-state: paused;
  }

  @media (hover: hover) {
    .hero--slides.is-playing:hover .hero-dot[aria-current="true"] span::after {
      animation-play-state: paused;
    }
  }

  /* The words of a category slide rise in, one after another, once the
     words before them have gone. */
  .hero-slide.is-active:not(:first-child) .hero-text > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
  }

  .hero-slide.is-active:not(:first-child) .hero-text > :nth-child(2) { animation-delay: 0.18s; }
  .hero-slide.is-active:not(:first-child) .hero-text > :nth-child(3) { animation-delay: 0.24s; }
  .hero-slide.is-active:not(:first-child) .hero-text > :nth-child(4) { animation-delay: 0.3s; }

  .hero--slides .hero-slide:first-child .rise {
    animation-delay: 0.12s;
  }

  /* Each slide's cards arrive in that slide's own way, then light
     crosses the front card once. */
  .hero-slide.is-active .slide-in {
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.24, 1);
    animation-fill-mode: both;
  }

  .hero-slide.is-active .slide-card:nth-child(2) .slide-in { animation-delay: 0.1s; }
  .hero-slide.is-active .slide-card:nth-child(3) .slide-in { animation-delay: 0.2s; }

  .hero-slide--fan.is-active .slide-card:nth-child(1) .slide-in { animation-name: fan-middle; }
  .hero-slide--fan.is-active .slide-card:nth-child(2) .slide-in { animation-name: fan-left; }
  .hero-slide--fan.is-active .slide-card:nth-child(3) .slide-in { animation-name: fan-right; }

  .hero-slide--mirror.is-active .slide-card:nth-child(1) .slide-in { animation-name: turn-in; }
  .hero-slide--mirror.is-active .slide-card:nth-child(2) .slide-in { animation-name: turn-in-left; }
  .hero-slide--mirror.is-active .slide-card:nth-child(3) .slide-in { animation-name: turn-in-right; }

  .hero-slide--steps.is-active .slide-in {
    animation-name: step-up;
    animation-timing-function: cubic-bezier(0.2, 1.25, 0.32, 1);
  }

  .hero-slide--steps.is-active .slide-card:nth-child(1) .slide-in { animation-delay: 0.24s; }
  .hero-slide--steps.is-active .slide-card:nth-child(2) .slide-in { animation-delay: 0.12s; }
  .hero-slide--steps.is-active .slide-card:nth-child(3) .slide-in { animation-delay: 0s; }

  .hero-slide--stack.is-active .slide-in { animation-name: drop-on; }
  .hero-slide--stack.is-active .slide-card:nth-child(1) .slide-in { animation-delay: 0.3s; }
  .hero-slide--stack.is-active .slide-card:nth-child(2) .slide-in { animation-delay: 0.15s; }
  .hero-slide--stack.is-active .slide-card:nth-child(3) .slide-in { animation-delay: 0s; }

  .hero-slide.is-active .slide-card .sheen::after {
    animation: sheen 1.6s ease-in-out 1s both;
  }
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fan-middle {
  from { opacity: 0; transform: translateY(46px); }
  to { opacity: 1; transform: none; }
}

@keyframes fan-left {
  from { opacity: 0; transform: rotate(17deg) translateY(46px); }
  to { opacity: 1; transform: none; }
}

@keyframes fan-right {
  from { opacity: 0; transform: rotate(-17deg) translateY(46px); }
  to { opacity: 1; transform: none; }
}

@keyframes turn-in {
  from { opacity: 0; transform: rotateY(-88deg); }
  to { opacity: 1; transform: none; }
}

@keyframes turn-in-left {
  from { opacity: 0; transform: translateX(-60px) rotateY(70deg); }
  to { opacity: 1; transform: none; }
}

@keyframes turn-in-right {
  from { opacity: 0; transform: translateX(60px) rotateY(-70deg); }
  to { opacity: 1; transform: none; }
}

@keyframes step-up {
  from { opacity: 0; transform: translateY(130px); }
  to { opacity: 1; transform: none; }
}

@keyframes drop-on {
  from { opacity: 0; transform: translateZ(240px); }
  to { opacity: 1; transform: none; }
}


/* ===== Order page: what the team wrote to the customer =====
   The team's own words keep their line breaks and never run off the
   page. */
.team-words {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.team-messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.team-messages li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.team-messages li:first-child {
  padding-top: 0;
  border-top: 0;
}

/* Product page: buyers' reviews (App\Reviews\Reviews) use the same list,
   one under the other with a line between. */
.reviews-sum,
.review-rating {
  margin: 0;
}

.review-rating {
  margin-bottom: 4px;
  font-weight: 700;
}

.reviews .line-muted {
  margin-top: 6px;
}

/* The reviews after the newest ten fold away under "Show more reviews". */
.reviews-more {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reviews-more > summary {
  font-weight: 600;
  cursor: pointer;
}

.reviews-more > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reviews-more > .reviews {
  margin-top: 14px;
}

.team-messages time {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

/* Order page: the buttons under a question from the team, and under a
   refund offer. Side by side, each on its own line where they do not fit. */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Order page: extra charges, one under the other, each with its own
   button to pay. */
.extra-charges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.extra-charges li {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.extra-charges li:first-child {
  padding-top: 0;
  border-top: 0;
}

/* The choice of payment gateway, shown only when a visitor may use more
   than one (store/partials/pay-with). */
.pay-with {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pay-with legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
}

.pay-with-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.pay-with-option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.pay-with-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pay-with-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pay-with-test {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FEEDC9;
  color: #7A3E00;
  font-size: 12.5px;
  font-weight: 600;
}

/* Safari on a phone zooms the page into a text field whose type is under
   16px (see header.css for the search field). */
@media (max-width: 600px) {
  .keep-link input {
    font-size: 16px;
  }
}
