/* Bento landing, after the catalogue's "One ecosystem" slide: one tile per product.
   Layout: 6-column bento, two wide pay-at-table tiles on the first row, Order and Pay,
   Click and Collect and Delivery on the second. Dark like the catalogue by default; light when the
   viewer's theme is light, with the light set of product visuals. The tile gradients follow the
   backgrounds of the product visuals so the images melt into their tiles. */

.is-bento {
  --b-bg: #000;
  --b-tile-grad: linear-gradient(180deg, #262626 0%, #1a1a1a 45%, #030303 100%);
  --b-ink: #f5f5f7;
  --b-muted: #86868b;
  --b-line: rgba(255, 255, 255, 0.1);
  --b-glass: rgba(255, 255, 255, 0.08);
  --b-glass-hover: rgba(255, 255, 255, 0.14);
  --b-bar-bg: rgba(0, 0, 0, 0.72);
  --b-primary: #f5f5f7;
  --b-primary-hover: #fff;
  --b-on-primary: #000;
  --b-soon-line: rgba(255, 255, 255, 0.2);
  /* Frosted panel holding a tile's market switch and actions. */
  --b-panel: rgba(28, 28, 30, 0.55);
  --b-panel-line: rgba(255, 255, 255, 0.1);
  --b-panel-shine: rgba(255, 255, 255, 0.1);
  --b-panel-solid: #1c1c1e;
  --b-track: rgba(255, 255, 255, 0.07);
  --b-pink: #ff17e9;
  --b-pink-ink: #ff17e9;
  --b-pink-soft: rgba(255, 23, 233, 0.14);
  /* Which set of product visuals shows. */
  --b-show-dark: block;
  --b-show-light: none;
  --b-font: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;
  /* Motion: strong ease-out for entrances and presses, ease-in-out for things moving on screen. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
  background: var(--b-bg);
  color: var(--b-ink);
  font-family: var(--b-font);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .is-bento {
    --b-bg: #fff;
    --b-tile-grad: linear-gradient(180deg, #f6f6f6 0%, #ebebeb 45%, #c4c4c4 100%);
    --b-ink: #1d1d1f;
    --b-muted: #6e6e73;
    --b-line: rgba(0, 0, 0, 0.08);
    --b-glass: rgba(0, 0, 0, 0.06);
    --b-glass-hover: rgba(0, 0, 0, 0.1);
    --b-bar-bg: rgba(255, 255, 255, 0.72);
    --b-primary: #1d1d1f;
    --b-primary-hover: #000;
    --b-on-primary: #fff;
    --b-soon-line: rgba(0, 0, 0, 0.22);
    --b-panel: rgba(255, 255, 255, 0.6);
    --b-panel-line: rgba(255, 255, 255, 0.9);
    --b-panel-shine: rgba(255, 255, 255, 0.95);
    --b-panel-solid: #fff;
    --b-track: rgba(0, 0, 0, 0.05);
    --b-pink-ink: #c400ae;
    --b-pink-soft: rgba(255, 23, 233, 0.1);
    --b-show-dark: none;
    --b-show-light: block;
    color-scheme: light;
  }
}
:root[data-theme="light"] .is-bento {
  --b-bg: #fff;
  --b-tile-grad: linear-gradient(180deg, #f6f6f6 0%, #ebebeb 45%, #c4c4c4 100%);
  --b-ink: #1d1d1f;
  --b-muted: #6e6e73;
  --b-line: rgba(0, 0, 0, 0.08);
  --b-glass: rgba(0, 0, 0, 0.06);
  --b-glass-hover: rgba(0, 0, 0, 0.1);
  --b-bar-bg: rgba(255, 255, 255, 0.72);
  --b-primary: #1d1d1f;
  --b-primary-hover: #000;
  --b-on-primary: #fff;
  --b-soon-line: rgba(0, 0, 0, 0.22);
  --b-panel: rgba(255, 255, 255, 0.6);
  --b-panel-line: rgba(255, 255, 255, 0.9);
  --b-panel-shine: rgba(255, 255, 255, 0.95);
  --b-panel-solid: #fff;
  --b-track: rgba(0, 0, 0, 0.05);
  --b-pink-ink: #c400ae;
  --b-pink-soft: rgba(255, 23, 233, 0.1);
  --b-show-dark: none;
  --b-show-light: block;
  color-scheme: light;
}
/* Page width and side gutter grow with the screen, so the bento fills a large display. */
.is-bento { --b-max: 1920px; --b-gutter: clamp(16px, 4vw, 72px); }
.is-bento strong { font-weight: 500; }
.is-bento .theme-dark { display: var(--b-show-dark); }
.is-bento .theme-light { display: var(--b-show-light); }

/* Top bar: a translucent layer the page scrolls under. */
.is-bento::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--b-bar-bg); }
.b-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--b-bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--b-line); }
.b-bar-inner { max-width: var(--b-max); margin: 0 auto; padding-block: 10px; padding-left: max(var(--b-gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--b-gutter), env(safe-area-inset-right, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-logo { display: block; width: 105px; height: auto; }
.b-bar-market { display: flex; align-items: center; gap: 10px; color: var(--b-muted); font-size: 13px; }

.b-page { max-width: var(--b-max); margin: 0 auto; padding-block: clamp(72px, 6vw, 120px) 64px; padding-left: max(var(--b-gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--b-gutter), env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: clamp(56px, 4.5vw, 88px); }

/* Hero, centred like the catalogue slide. */
.b-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.b-hero h1 { margin: 0; max-width: 15ch; font-size: clamp(40px, 6vw, 108px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.b-lead { margin: 0; max-width: 56ch; color: var(--b-muted); font-size: clamp(16px, 1.3vw, 22px); line-height: 1.5; text-wrap: pretty; }

/* Segmented market switch: equal-width buttons over a thumb that slides to the selection. */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: var(--b-glass); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--count)); border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 250ms var(--ease-in-out); }
.seg button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--b-muted); font: 500 12px/1 var(--b-font); letter-spacing: 0.04em; cursor: pointer; transition: color 200ms ease; }
.seg button img { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.seg button[aria-checked="true"] { color: #000; }
.seg button[aria-checked="true"] img { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .seg button[aria-checked="false"]:hover { color: var(--b-ink); }
}
.seg button:focus-visible, .b-btn:focus-visible, .b-foot a:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 2px; }

/* The bento. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 1.3vw, 28px); }
.tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; overflow: clip; border-radius: 28px; background: var(--b-tile-grad); isolation: isolate; }
/* Narrow tiles stack copy, visual and controls; wide tiles put the visual on the right. */
.tile--wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto; grid-template-areas: "copy visual" "controls visual"; min-height: clamp(460px, 36vw, 700px); }
.tile--wide .tile-copy { grid-area: copy; }
.tile--wide .tile-visual { grid-area: visual; }
.tile--wide .tile-controls { grid-area: controls; }
.tile-copy { display: flex; flex-direction: column; gap: 8px; padding: clamp(28px, 2.3vw, 44px) clamp(28px, 2.3vw, 44px) 0; }
.tile-copy h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: clamp(30px, 2.2vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.tile-tagline { margin: 0; color: var(--b-muted); font-size: clamp(17px, 1.15vw, 21px); line-height: 1.35; text-wrap: balance; }
.tile-controls { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin: 0 16px 16px; padding: 8px; border-radius: 22px; background: var(--b-panel); border: 1px solid var(--b-panel-line); box-shadow: inset 0 1px 0 var(--b-panel-shine), 0 16px 36px rgba(0, 0, 0, 0.22); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
/* In the panel the market switch spans the full width, with larger flags: it drives the actions below. */
.tile-controls .seg { display: grid; width: 100%; background: var(--b-track); }
.tile-controls .seg button { padding: 9px 6px; gap: 7px; font-size: 13px; }
.tile-controls .seg button img { width: 22px; height: 16px; }
/* Stacked tiles: the panel floats over the bottom of the visual. */
@media (min-width: 961px), (max-width: 600px) {
  .tile:not(.tile--wide) .tile-controls { margin-top: -64px; }
}
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.b-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: 11px 14px; border: 0; border-radius: 999px; background: var(--b-glass); color: var(--b-ink); font: 500 14px/1.1 var(--b-font); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.b-btn:active { transform: scale(0.97); }
.b-btn--primary { background: var(--b-primary); color: var(--b-on-primary); }
@media (hover: hover) and (pointer: fine) {
  .b-btn:hover { background: var(--b-glass-hover); }
  .b-btn--primary:hover { background: var(--b-primary-hover); }
}

/* The visual frame holds the hover zoom; the image inside it carries the scroll parallax. */
.tile-visual { position: relative; flex: 1; min-height: clamp(300px, 24vw, 480px); margin-block: 8px 16px; transition: transform 500ms ease; }
.tile-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%); }
.tile--wide .tile-visual { margin: 0; min-height: 0; }
.tile--wide .tile-visual > img { object-position: center 12%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
@media (hover: hover) and (pointer: fine) {
  .tile:not(.tile--soon):hover .tile-visual { transform: scale(1.03); }
}

/* Parallax: while a tile crosses the viewport, its visual drifts a little slower than the page.
   Scroll-driven CSS, so it runs off the main thread; browsers without it keep a still image.
   Tiles clip with overflow: clip, not hidden, so they don't become the scroller the view tracks. */
@keyframes b-parallax {
  from { transform: translateY(-5%) scale(1.12); }
  to { transform: translateY(5%) scale(1.12); }
}
@supports (animation-timeline: view()) {
  .tile-visual > img { animation: b-parallax linear both; animation-timeline: view(); animation-range: cover; }
}

/* Delivery: present but not ready, so no fill, just a dashed outline, and the brand pink on its badge.
   Its photo has its own light, so it fades into the page on every side (rule at the end of the file). */
.tile--soon { background: transparent; border: 1.5px dashed var(--b-soon-line); }
.b-pill { padding: 4px 10px; border-radius: 999px; background: var(--b-pink-soft); color: var(--b-pink-ink); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }

.b-foot { display: flex; flex-direction: column; gap: 8px; max-width: 72ch; margin: 0 auto; color: var(--b-muted); font-size: 13px; line-height: 1.55; text-align: center; }
.b-foot p { margin: 0; }
.b-foot strong { color: var(--b-ink); }
.b-foot a { color: var(--b-ink); text-decoration-color: var(--b-pink); text-underline-offset: 3px; }

/* Arrival, once per visit: the hero lines rise in, then the tiles follow in reading order. */
@keyframes b-rise { from { opacity: 0; transform: translateY(16px); } }
.b-hero > * { animation: b-rise 700ms var(--ease-out) backwards; }
.b-hero > :nth-child(2) { animation-delay: 60ms; }
.b-hero > :nth-child(3) { animation-delay: 120ms; }
.tile { animation: b-rise 800ms var(--ease-out) backwards; animation-delay: calc(200ms + var(--order, 0) * 70ms); }

/* The QR card dialog keeps its white sheet, over a darker scrim; it grows in from the centre and leaves the same way. */
.is-bento .qr-dialog { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.is-bento .qr-dialog:not([open]) { opacity: 0; transform: scale(0.96); }
.is-bento .qr-dialog::backdrop { background: rgba(0, 0, 0, 0.7); transition: opacity 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.is-bento .qr-dialog:not([open])::backdrop { opacity: 0; }
@starting-style {
  .is-bento .qr-dialog[open] { opacity: 0; transform: scale(0.96); }
  .is-bento .qr-dialog[open]::backdrop { opacity: 0; }
}
/* The card fades in once it has been drawn. */
.is-bento .qr-preview { transition: opacity 200ms var(--ease-out); }
.is-bento .qr-preview:not([src]) { opacity: 0; }

/* Tablet: every tile full width, laid out like the wide ones. */
@media (max-width: 960px) {
  .tile, .tile--wide { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "copy visual" "controls visual"; min-height: 440px; }
  .tile .tile-copy { grid-area: copy; }
  .tile .tile-visual { grid-area: visual; margin: 0; min-height: 0; }
  .tile .tile-controls { grid-area: controls; }
  .tile .tile-visual > img { object-position: center 12%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%); mask-image: linear-gradient(to right, transparent 0, #000 12%); }
  .tile--soon { grid-template-areas: "copy visual"; grid-template-rows: 1fr; min-height: 300px; }
}
/* Phone: one column, copy, visual, then controls. */
@media (max-width: 600px) {
  .b-page { padding-block: 40px 48px; gap: 40px; }
  .b-bar-market > span { display: none; }
  .tile, .tile--wide, .tile--soon { display: flex; flex-direction: column; min-height: 0; border-radius: 24px; }
  .tile .tile-copy { padding: 24px 22px 0; }
  .tile .tile-controls { margin-inline: 12px; margin-bottom: 12px; }
  .tile .tile-visual { flex: none; height: 280px; margin-block: 8px 12px; }
  .tile .tile-visual > img { object-position: center top; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%); }
  .tile--soon .tile-visual { height: 200px; margin-bottom: 0; }
  .tile-copy h3 { font-size: 26px; }
}

/* Reduced motion: keep the fades that help reading, drop every movement. */
@keyframes b-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .b-hero > *, .tile { animation: b-fade 300ms ease backwards; }
  .seg-thumb, .tile-visual { transition: none; }
  .tile-visual > img { animation: none; }
  .b-btn { transition: background-color 150ms ease; }
  .b-btn:active, .tile:not(.tile--soon):hover .tile-visual { transform: none; }
  .is-bento .qr-dialog, .is-bento .qr-dialog:not([open]) { transform: none; }
  @starting-style { .is-bento .qr-dialog[open] { transform: none; } }
}
@media (prefers-reduced-transparency: reduce) {
  .tile-controls { background: var(--b-panel-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .b-bar { background: var(--b-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Delivery's photo: framed with rounded corners inside the dashed card, so it never runs under the text.
   After the layout rules so it wins at every width. */
.tile .tile-visual--photo { overflow: clip; margin: 8px 16px 16px; border-radius: 18px; }
.tile .tile-visual--photo > img { object-position: center 35%; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 600px) {
  .tile .tile-visual--photo { height: 240px; margin: 12px 16px 16px; }
}

/* What's new: a button in the top bar (pink dot until the latest release is opened) and a panel
   that slides in from the right, listing releases newest first. Content comes from src/releases.js. */
.b-bar-end { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b-news { position: relative; display: inline-flex; align-items: center; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--b-glass); color: var(--b-ink); font: 500 13px/1 var(--b-font); white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.b-news:active { transform: scale(0.97); }
.b-news:focus-visible, .rn-close:focus-visible, .rn-panel a:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 2px; }
.b-news-dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--b-pink); box-shadow: 0 0 0 2px var(--b-bg); }
@media (hover: hover) and (pointer: fine) {
  .b-news:hover { background: var(--b-glass-hover); }
}
.b-announce { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--b-pink-soft); color: var(--b-pink-ink); font: 500 14px/1.2 var(--b-font); cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.b-announce span { transition: transform 200ms var(--ease-out); }
.b-announce:active { transform: scale(0.97); }
.b-announce:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .b-announce:hover span { transform: translateX(3px); }
}

.rn-panel { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--b-line); background: var(--b-panel-solid); color: var(--b-ink); font-family: var(--b-font); transition: transform 300ms var(--ease-out), overlay 300ms allow-discrete, display 300ms allow-discrete; }
.rn-panel[open] { display: flex; flex-direction: column; }
.rn-panel:not([open]) { transform: translateX(100%); }
.rn-panel::backdrop { background: rgba(0, 0, 0, 0.5); transition: opacity 300ms var(--ease-out), overlay 300ms allow-discrete, display 300ms allow-discrete; }
.rn-panel:not([open])::backdrop { opacity: 0; }
@starting-style {
  .rn-panel[open] { transform: translateX(100%); }
  .rn-panel[open]::backdrop { opacity: 0; }
}
.rn-head { display: flex; align-items: center; justify-content: space-between; padding: max(20px, env(safe-area-inset-top, 0px)) 24px 16px; border-bottom: 1px solid var(--b-line); }
.rn-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.rn-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--b-glass); color: var(--b-ink); font: 400 22px/1 var(--b-font); cursor: pointer; }
.rn-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px max(24px, env(safe-area-inset-bottom, 0px)); }
.rn-release { padding-block: 20px; border-bottom: 1px solid var(--b-line); }
.rn-date { margin: 0 0 4px; color: var(--b-muted); font-size: 13px; }
.rn-release h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.rn-release ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
/* One change per row: the change itself in full ink, then a quiet line with its type, where it applies and the feedback link. */
.rn-item { display: flex; flex-direction: column; gap: 6px; padding-block: 12px; border-top: 1px solid var(--b-line); }
.rn-item:first-child { border-top: 0; padding-top: 4px; }
.rn-text { margin: 0; font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.rn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--b-muted); font-size: 12px; line-height: 1.3; }
.rn-type { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--b-ink); }
.rn-type::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b-muted); }
.rn-type--new::before { background: var(--b-pink); }
.rn-type--improved::before { background: #2f8cff; }
.rn-type--fixed::before { background: #2fbf71; }
.rn-panel a { color: var(--b-ink); text-decoration-color: var(--b-pink); text-underline-offset: 3px; }
.rn-next { border-bottom: 0; }
/* Coming next: numbered steps joined by a thin rule; the first one is up next. */
.rn-steps { margin: 4px 0 0; padding: 0; list-style: none; }
.rn-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding-bottom: 20px; }
.rn-step:last-child { padding-bottom: 0; }
.rn-step:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--b-line); }
.rn-step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--b-line); background: var(--b-panel-solid); color: var(--b-muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rn-step.is-next .rn-step-num { border-color: var(--b-pink); background: var(--b-pink); color: #fff; }
.rn-step-body { padding-top: 3px; }
.rn-step-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.rn-step-detail { margin: 2px 0 0; color: var(--b-muted); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.rn-step-pill { padding: 2px 8px; border-radius: 999px; background: var(--b-pink-soft); color: var(--b-pink-ink); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.rn-foot { margin: 8px 0 0; color: var(--b-muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
  .b-bar-end { gap: 6px; }
  .b-news { padding: 8px 10px; }
  .b-bar .seg button { padding: 6px 7px; gap: 4px; }
}
/* Small phones: the bar switch keeps its flags only. */
@media (max-width: 400px) {
  .b-bar .seg button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .b-announce, .b-announce span { transition: none; transform: none !important; }
  .rn-panel, .rn-panel:not([open]) { transform: none; transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; }
  .rn-panel:not([open]) { opacity: 0; }
  @starting-style { .rn-panel[open] { transform: none; opacity: 0; } }
}

/* Designer access (footer): "Preview here" only shows once it is switched on. */
.is-bento [data-preview] { display: none; }
[data-designer-mode] .is-bento [data-preview] { display: inline-flex; }
.b-designer { padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: var(--b-muted); font: inherit; font-size: 12px; opacity: 0.7; cursor: pointer; transition: opacity 150ms ease, background-color 150ms ease; }
.b-designer:hover { opacity: 1; }
.b-designer[aria-pressed="true"] { background: var(--b-glass); color: var(--b-ink); opacity: 1; }
.b-designer:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 2px; }

/* Loyalty switch on each tile: on by default; off removes every loyalty element from the demo link. */
.b-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 8px 8px 14px; border: 0; border-radius: 999px; background: var(--b-track); color: var(--b-ink); font: 500 13px/1.1 var(--b-font); cursor: pointer; }
.b-toggle i { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--b-glass-hover); transition: background-color 180ms ease; }
.b-toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 200ms var(--ease-out, ease); }
.b-toggle[aria-checked="true"] i { background: var(--b-pink); }
.b-toggle[aria-checked="true"] i::after { transform: translateX(14px); }
.b-toggle[aria-checked="false"] span { color: var(--b-muted); }
.b-toggle:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 2px; }

/* Guest App: a full-width dashed tile; the phone cut-out sits on the right with no mask or frame.
   Its control panel is only drawn for owners (see bento.js). */
.tile--guest, .bento--wip > .tile--guest { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; grid-template-areas: "copy visual" "controls visual"; min-height: clamp(560px, 48vw, 860px); }
.tile--guest .tile-copy { grid-area: copy; }
.tile--guest .tile-visual { grid-area: visual; }
.tile--guest .tile-controls { grid-area: controls; align-self: end; max-width: 440px; }
.tile .tile-visual--phone { margin: 0; min-height: 0; }
.tile .tile-visual--phone > img { object-fit: contain; object-position: center; padding: 24px 0; -webkit-mask-image: none; mask-image: none; animation: none; }
@media (hover: hover) and (pointer: fine) {
  .tile--guest:hover .tile-visual--phone { transform: translateY(-6px) rotate(-1deg); }
}
@media (max-width: 960px) {
  .tile--guest { grid-template-areas: "copy visual" "controls visual"; grid-template-rows: auto 1fr; min-height: 520px; }
}
@media (max-width: 600px) {
  .tile--guest { display: flex; }
  .tile--guest .tile-visual--phone { flex: none; height: 380px; }
  .tile--guest .tile-controls { max-width: none; margin-top: 0 !important; }
}

/* Owners only: Sales view / WIP view switch in the bar, WIP pill on unreleased demos */
.b-view { margin-right: auto; margin-left: 6px; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(127, 127, 127, 0.14); }
.b-view button { border: 0; padding: 6px 12px; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: 0.7; white-space: nowrap; }
.b-view button[aria-checked="true"] { opacity: 1; background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.b-view button[data-view="wip"][aria-checked="true"] { background: #ffe58a; color: #5a4300; }
.b-pill--wip { background: #ffe58a; color: #5a4300; vertical-align: middle; }
.b-pill--new { background: var(--b-pink); color: #fff; vertical-align: middle; }
@media (max-width: 560px) { .b-bar-inner:has(.b-view) .b-news { display: none; } .b-view { margin-left: 2px; } .b-view button { padding: 5px 8px; font-size: 12px; } .b-view-long { display: none; } }

/* A "coming soon" tile alone on its row (6th tile once Catering is listed): full width, copy left, photo right. */
@media (min-width: 961px) {
  .bento:not(.bento--wip) > .tile--soon:nth-child(6) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "copy visual"; min-height: 300px; }
  .bento:not(.bento--wip) > .tile--soon:nth-child(6) .tile-copy { grid-area: copy; }
  .bento:not(.bento--wip) > .tile--soon:nth-child(6) .tile-visual { grid-area: visual; margin: 16px; min-height: 0; }
}

/* WIP view only: Digital Bill full width, then the ordering modes grouped by importance
   (24 columns: Hybrid and Order and Pay 12 each, Click and Collect and Delivery 9 each, Catering 6). */
.bento--wip { grid-template-columns: repeat(24, minmax(0, 1fr)); }
.b-group-title { grid-column: 1 / -1; margin: clamp(24px, 2.5vw, 48px) 0 0; font-size: clamp(26px, 2vw, 40px); font-weight: 500; letter-spacing: -0.02em; }
.bento--wip > [data-size="hero"] { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); min-height: clamp(440px, 34vw, 640px); }
.bento--wip > [data-size="hero"] .tile-controls { max-width: 460px; }
.bento--wip > [data-size="large"] { grid-column: span 12; }
.bento--wip > [data-size="medium"] { grid-column: span 8; }
.bento--wip > [data-size="small"] { grid-column: span 6; }
.bento--wip > :is([data-size="medium"], [data-size="small"]) .tile-visual { min-height: clamp(280px, 22vw, 440px); }
.bento--wip > [data-size="small"] h3 { font-size: clamp(26px, 1.8vw, 36px); }
.bento--wip > .tile--soon .tile-visual > img { object-position: center 30%; }
@media (max-width: 1200px) and (min-width: 961px) {
  /* Small laptop: Click and Collect and Delivery share a row, Catering takes the next one on its own half. */
  .bento--wip > [data-size="medium"] { grid-column: span 12; }
  .bento--wip > [data-size="small"] { grid-column: span 12; }
}
@media (max-width: 960px) {
  .bento--wip > .tile, .bento--wip > [data-size] { grid-column: 1 / -1; }
}

/* Digital Bill: the phone sits on the bottom edge of the card, so the "Pay or share the bill" button always shows.
   No parallax zoom on this visual, it would push the bottom out of the card. */
.tile[data-product="digital-bill"] .tile-visual > img { object-position: center bottom; animation: none; }

/* Click and Collect, Delivery, Catering (third-width tiles, WIP view): same panel as the other tiles, but only as wide
   as it needs (like Hybrid's), aligned left, so the visual stays visible next to it. */
@media (min-width: 961px) {
  .bento--wip > [data-size="medium"] .tile-controls { align-self: flex-start; width: min(100% - 32px, 272px); }
}

/* The title and tagline always sit above the visual, even when a picture is scaled past its frame. */
.tile-copy { position: relative; z-index: 2; }

/* Click and Collect and Delivery: a big phone that runs off the bottom edge of the card. The picture is clipped to its own
   area (it can't climb over the title), scaled up from the bottom centre and pushed down so only the top of the phone
   shows; a soft fade at the top and a long fade into the card colour at the bottom. */
.tile:is([data-product="click-and-collect"], [data-product="delivery"]) .tile-visual { overflow: clip; margin-bottom: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 60%, transparent 100%); }
.tile:is([data-product="click-and-collect"], [data-product="delivery"]) .tile-visual > img { object-position: center bottom; animation: none; scale: 1.5; translate: 0 35%; transform-origin: 50% 100%; -webkit-mask-image: none; mask-image: none; }
/* Catering: the screen a little bigger. */
.tile[data-product="catering"] .tile-visual > img { scale: 1.18; transform-origin: 50% 70%; }

/* NEW tag: sized from the title and centred on its cap height, so it reads as part of the line of type. */
.tile-copy h3 { --tt: clamp(30px, 2.2vw, 44px); }
.tile-copy h3 .b-pill--new { align-self: center; padding: 0.42em 0.85em; font-size: calc(var(--tt) * 0.29); line-height: 1; letter-spacing: 0.05em; transform: translateY(calc(var(--tt) * -0.02)); }

/* Guest App: the brand visual is the tile's background (light in both themes, so its text stays dark). */
.tile--guest, .bento--wip > .tile--guest {
  background: #efe9e8 url('../assets/guest-app-visual.jpg') right center / cover no-repeat; border: 0;
  --b-ink: #111; --b-muted: rgba(0, 0, 0, 0.58); --b-track: rgba(0, 0, 0, 0.07); --b-glass-hover: rgba(0, 0, 0, 0.2);
  --b-panel: rgba(255, 255, 255, 0.62); --b-panel-line: rgba(255, 255, 255, 0.8); --b-panel-shine: rgba(255, 255, 255, 0.9);
  --b-primary: #111; --b-on-primary: #fff;
}
.tile--guest .tile-visual--phone { visibility: hidden; }
@media (max-width: 600px) { .tile--guest, .bento--wip > .tile--guest { background-position: 78% bottom; background-size: auto 62%; } .tile--guest .tile-visual--phone { height: 300px; } }
