/* Ovencraft V2 · Emil Kowalski's Apple Design skill
   System font with size-specific tracking; translucent materials for floating chrome;
   instant press feedback; the order lives in a sheet (phone) or a docked panel (desktop). */

:root {
  --bg: #FBFAF8;
  --surface: #F2EEEA;
  --ink: #35261F;
  --ink-2: #6A5D55;
  --hair: rgba(53, 38, 31, .12);
  --gold: #AA792C;
  --primary: #35261F;
  --on-primary: #FFFFFF;
  --error: #B3261E;
  --material: rgba(251, 250, 248, .74);
  --material-strong: rgba(255, 255, 255, .86);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font: 100%/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; touch-action: manipulation; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(170, 121, 44, .28); }
:focus-visible { outline: 3px solid rgba(170, 121, 44, .55); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

/* Press feedback lives on the press, and it is instant */
.btn, .add, .step, .chip, .bag-btn, .back, .seg label { transition: transform 100ms ease-out, background-color 160ms ease, box-shadow 160ms ease; }
.btn:active, .add:active, .step:active, .chip:active, .bag-btn:active, .back:active { transform: scale(.97); }

/* Nav: translucent layer, content scrolls under it; a soft edge appears only when content is beneath */
.nav { position: sticky; top: 0; z-index: 40; background: var(--material); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(rgba(53, 38, 31, .07), transparent); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.nav.scrolled::after { opacity: 1; }
.nav-inner { max-width: 1320px; margin: 0 auto; height: 60px; padding: 0 max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 116px; height: auto; }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 0; background: rgba(53, 38, 31, .07); font-weight: 600; font-size: .95rem; letter-spacing: -0.005em; cursor: pointer; }
.bag-btn:hover { background: rgba(53, 38, 31, .11); }
.bag-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #8A5A1B; color: #fff; font-size: .78rem; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; will-change: transform; }

.page { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 40px; padding: 0 max(20px, env(safe-area-inset-left)); align-items: start; }

/* Hero */
.hero { text-align: center; padding: 56px 0 24px; }
.hero-mark { width: 92px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.038em; font-weight: 700; max-width: 14ch; margin: 0 auto; }
.hero-sub { font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink-2); max-width: 40ch; margin: 18px auto 36px; }
.hero-sub strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.hero-photos { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; }
.hero-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: 0 18px 40px -18px rgba(53, 38, 31, .45); }
.hero-photos img:nth-child(2) { border-radius: 30px; box-shadow: 0 28px 60px -22px rgba(53, 38, 31, .55); }

/* Menu */
.menu { padding: 56px 0 24px; }
.menu > h2, .how > h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
.chips { position: sticky; top: 60px; z-index: 5; display: flex; gap: 8px; margin: 18px -4px 22px; padding: 10px 4px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--bg) 70%, rgba(251, 250, 248, 0)); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); font-weight: 600; font-size: .93rem; letter-spacing: -0.005em; cursor: pointer; }
.chip:hover { background: #E9E3DD; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
.card { display: flex; flex-direction: column; }
.card-photo { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .card:hover .card-photo img { transform: scale(1.025); } }
.card-text { padding: 12px 2px 10px; }
.card-name { font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.card-note { margin: 2px 0 0; font-size: .86rem; color: #8A5A1B; font-weight: 600; }
.card-price { margin: 3px 0 0; color: var(--ink-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.card-control { margin-top: auto; padding: 0 2px; }
.card.in-order .card-photo { box-shadow: inset 0 0 0 3px var(--gold); }
.card.in-order .card-photo img { opacity: .97; }

.add { height: 44px; min-width: 88px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--primary); color: var(--on-primary); font-weight: 600; letter-spacing: -0.005em; cursor: pointer; }
.add:hover { background: #4A3A31; }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--surface); }
.step { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.step:hover { background: rgba(53, 38, 31, .07); }
.step:disabled { opacity: .35; cursor: not-allowed; }
.step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.step-qty { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* How it works: a real sequence, so it is numbered */
.how { padding: 48px 0 24px; }
.how-list { list-style: none; counter-reset: how; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-list li { counter-increment: how; background: var(--surface); border-radius: 20px; padding: 20px; color: var(--ink-2); line-height: 1.45; }
.how-list li::before { content: counter(how); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; align-items: center; justify-content: center; margin-bottom: 12px; }
.how-list strong { display: block; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.foot { padding: 48px 0 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .95rem; border-top: 1px solid var(--hair); margin-top: 40px; }
.foot p { margin: 0; }

/* Order panel: docked on wide screens, a sheet on phones */
.sheet { position: sticky; top: 76px; height: calc(100vh - 92px); height: calc(100dvh - 92px); display: flex; flex-direction: column; border-radius: 24px; background: var(--material-strong); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 60px -28px rgba(53, 38, 31, .45), 0 0 0 1px var(--hair); overflow: hidden; z-index: 20; }
.sheet-grab { flex: none; position: relative; touch-action: none; }
.handle { display: none; }
.sheet-head { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border: 0; background: transparent; text-align: left; cursor: default; }
.sheet-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.025em; }
.sheet-meta { display: flex; gap: 8px; color: var(--ink-2); font-size: .92rem; font-variant-numeric: tabular-nums; }
.sheet-meta strong { color: var(--ink); }
.sheet-body { flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.track { display: flex; width: 200%; will-change: transform; }
.view { width: 50%; padding: 4px 22px 26px; }
.empty { color: var(--ink-2); margin: 8px 0 0; text-align: center; padding: 36px 12px 12px; }
.empty::before { content: ""; display: block; width: 120px; height: 78px; margin: 0 auto 16px; background: url("logo-mark.svg") center / contain no-repeat; opacity: .28; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.line:first-child { border-top: 0; }
.line img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; grid-row: span 2; }
.line-main { display: flex; flex-direction: column; min-width: 0; }
.line-name { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.line-note, .line-each { font-size: .84rem; color: var(--ink-2); }
.line-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
.line .stepper { height: 38px; background: rgba(53, 38, 31, .06); }
.line .step { width: 38px; height: 38px; }
.line-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.total, .pay-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-top: 4px; border-top: 1px solid var(--hair); font-weight: 600; }
.total strong, .pay-row strong { font-size: 1.25rem; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border-radius: 16px; border: 0; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #4A3A31; }
.btn-quiet { background: transparent; color: var(--ink); margin-top: 6px; }
.btn-quiet:hover { background: rgba(53, 38, 31, .06); }

.back { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 12px 0 4px; margin-left: -6px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: #8A5A1B; cursor: pointer; }
.back:hover { background: rgba(170, 121, 44, .1); }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.view-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.025em; margin: 6px 0 16px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.group-box { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.group-box .field { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-top: 1px solid var(--hair); }
.group-box .field:first-child { border-top: 0; }
.group-box label { font-weight: 600; font-size: .95rem; }
.group-box input, .group-box textarea { width: 100%; border: 0; background: transparent; padding: 14px 0; font-size: 1rem; outline: none; resize: none; }
.group-box textarea { line-height: 1.4; }
.group-box .field:focus-within { background: rgba(170, 121, 44, .06); }
.group-box ::placeholder { color: #8E8179; }
.group-box [aria-invalid="true"] { color: var(--error); }
.group-box .field:has([aria-invalid="true"]) label { color: var(--error); }
.err { margin: -6px 2px 0; font-size: .88rem; font-weight: 600; color: var(--error); }
.err:empty { display: none; }
.seg-field .err { margin: 8px 2px 0; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(179, 38, 30, .08); color: var(--error); font-weight: 600; }
.seg-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-field legend { font-weight: 600; font-size: .95rem; padding: 0 2px; margin-bottom: 8px; }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 13px; background: #ECE6E0; }
.seg .choice { flex: 1; position: relative; display: flex; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(53, 38, 31, .18), 0 0 0 .5px rgba(53, 38, 31, .08); }
.seg input:focus-visible + span { outline: 3px solid rgba(170, 121, 44, .55); outline-offset: 1px; }
.seg-field.invalid .seg { box-shadow: 0 0 0 1.5px var(--error); }
.note { margin: 8px 2px 0; font-size: .86rem; color: var(--ink-2); }

.done { text-align: center; outline: none; padding-top: 8px; }
.tick { width: 64px; height: 64px; margin: 8px auto 12px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 151; }
.tick path { stroke-dasharray: 40; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) .tick circle { animation: draw .5s cubic-bezier(.2, .8, .2, 1) both; }
  .done:not([hidden]) .tick path { animation: draw .35s .3s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes draw { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
}
.done h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.done > p { color: var(--ink-2); margin: 8px 0 14px; }
.done-text { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font: .88rem/1.55 system-ui, sans-serif; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); padding: 14px; margin: 0 0 14px; }

.scrim { position: fixed; inset: 0; z-index: 45; background: #1C130F; opacity: 0; }

/* Phones: the order becomes a bottom sheet you can drag, flick or tap */
@media (max-width: 899px) {
  .page { display: block; }
  .main { padding-bottom: 110px; }
  .hero { padding-top: 32px; }
  .hero-photos { gap: 10px; }
  .hero-photos img { border-radius: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card-photo { border-radius: 18px; }
  .card-name { font-size: 1rem; }
  .card-price { font-size: .9rem; }
  .add { width: 100%; }
  .stepper { width: 100%; justify-content: space-between; }
  .line .stepper { width: auto; }
  .how-list { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 90vh; height: 90svh; border-radius: 22px 22px 0 0; z-index: 50; transform: translate3d(0, 120%, 0); will-change: transform; padding-bottom: var(--safe-bottom); box-shadow: 0 -1px 0 rgba(255, 255, 255, .8) inset, 0 -12px 40px -12px rgba(53, 38, 31, .35), 0 0 0 1px var(--hair); }
  .sheet-grab { cursor: grab; }
  .sheet.dragging .sheet-grab { cursor: grabbing; }
  .handle { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(53, 38, 31, .25); margin: 8px auto 0; }
  .sheet-head { padding: 10px 20px 18px; cursor: pointer; align-items: center; min-height: 63px; }
  .sheet-title { font-size: 1.2rem; }
  .sheet-meta strong { font-size: 1.05rem; }
  .sheet.pressed .sheet-head { opacity: .85; }
  .view { padding: 0 18px 28px; }
}
@media (max-width: 380px) {
  .group-box .field { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav, .sheet, .group-box { box-shadow: 0 0 0 1px var(--ink); }
  .nav { background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  .card-photo img { transition: none; }
  .btn:active, .add:active, .step:active, .chip:active, .bag-btn:active, .back:active { transform: none; }
}

/* Search, favourites and sign-in (shared parts in features.css). Apple materials: grouped fields,
   a switch for "remember", the account panel as a translucent card. */
:root {
  --oc-ink: var(--ink); --oc-on-ink: #fff; --oc-muted: var(--ink-2); --oc-line: var(--hair); --oc-line-strong: rgba(53, 38, 31, .2);
  --oc-field: #fff; --oc-tint: var(--surface); --oc-surface: rgba(255, 255, 255, .92); --oc-accent: var(--ink); --oc-on-accent: #fff;
  --oc-accent-strong: var(--ink); --oc-heart: #C8372D; --oc-ring: rgba(170, 121, 44, .45); --oc-error: var(--error);
  --oc-radius: 22px; --oc-radius-sm: 14px; --oc-display: inherit; --oc-display-weight: 700; --oc-font: inherit;
  --oc-toast-bg: rgba(40, 28, 23, .92); --oc-toast-ink: #fff; --oc-scrim: rgba(28, 19, 15, .3);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav .acct-btn { height: 40px; min-height: 40px; padding: 0 14px 0 10px; background: rgba(53, 38, 31, .07); font-size: .95rem; letter-spacing: -0.005em; transition: transform 100ms ease-out, background-color 160ms ease; }
.nav .acct-btn:hover { background: rgba(53, 38, 31, .11); }
.nav .acct-btn:active { transform: scale(.97); }
.nav .acct-btn svg { width: 19px; height: 19px; }
.nav .acct-btn.signed-in { padding-left: 6px; }
.menu [data-menu] { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.menu .tools { display: contents; }
.menu .search { flex: 1 1 240px; max-width: none; margin-top: 18px; }
.menu .tools > .chip-fav { margin-top: 18px; height: 44px; }
.menu .chips { flex: 1 0 100%; margin: 8px -4px 22px; }
.menu .grid, .menu .no-match { flex: 1 0 100%; }
.search-input { height: 44px; border: 0; border-radius: 12px; background: var(--surface); font-size: 1.02rem; letter-spacing: -0.01em; }
.search-input:hover { background: #ECE6E0; }
.search-input:focus { background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 0 0 4px rgba(170, 121, 44, .3); }
.search-clear { width: 40px; height: 40px; padding: 11px; }
.no-match { border-style: solid; border-color: var(--hair); background: #fff; border-radius: 20px; }
.no-match-btn { border: 0; background: var(--surface); }
.fav::before { -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); background: rgba(255, 255, 255, .78); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.acct { -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 70px -24px rgba(53, 38, 31, .5), 0 0 0 1px var(--hair); }
.acct-title { letter-spacing: -0.025em; font-size: 1.4rem; }
.acct-provider { border: 0; background: #fff; box-shadow: 0 0 0 1px var(--hair); font-weight: 600; letter-spacing: -0.01em; transition: transform 100ms ease-out, background-color 160ms ease; }
.acct-provider:hover { background: #fff; box-shadow: 0 0 0 1px rgba(53, 38, 31, .3); }
.acct-provider:active { transform: scale(.97); }
.acct-out { border: 0; background: var(--surface); }
.acct-out:hover { background: #E9E3DD; color: var(--ink); }
.saved-note { margin: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--hair); font-size: .93rem; }
.note-provider { border: 0; background: var(--surface); }
.note-provider:hover { background: #E9E3DD; }
.remember { justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--hair); font-weight: 600; font-size: .95rem; }
.remember input { -webkit-appearance: none; appearance: none; position: relative; width: 48px; height: 30px; border-radius: 15px; background: #D8D0C9; transition: background-color .2s ease; }
.remember input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transition: transform .32s cubic-bezier(.3, 1.35, .5, 1); }
.remember input:checked { background: var(--ink); }
.remember input:checked::before { transform: translateX(18px); }
.remember input:focus-visible { outline: 3px solid rgba(170, 121, 44, .55); outline-offset: 2px; }
@media (max-width: 899px) { :root { --oc-toast-bottom: 92px; } }
@media (prefers-reduced-transparency: reduce) {
  .acct { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fav::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .remember input::before { transition: none; } }
@media (max-width: 560px) {
  .menu .search { flex-basis: 200px; }
  .menu .tools > .chip-fav { padding: 0 13px; }
  .menu .chip-fav .fav-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Delivery day and time choices carry a second line (date, or the slot's hours) */
.seg span small { display: block; margin-top: 1px; font-size: .74rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.seg span { flex-direction: column; min-height: 50px; padding: 6px 4px; text-align: center; line-height: 1.2; }
.seg input:checked + span small { color: var(--ink-2); }
.date-box { margin-top: 10px; }

/* Text pages: privacy and delivery terms, page not found */
.doc { max-width: 680px; margin: 0 auto; padding: 32px max(20px, env(safe-area-inset-left)) 80px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 6px; }
.doc-date { color: var(--ink-2); margin: 0 0 28px; font-size: .95rem; }
.doc h2 { font-size: 1.2rem; letter-spacing: -0.015em; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.6; max-width: 66ch; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li + li { margin-top: 8px; }
.doc .btn { margin-top: 8px; }
.doc-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(53, 38, 31, .07); font-weight: 600; font-size: .95rem; text-decoration: none; }
.doc-back:hover { background: rgba(53, 38, 31, .11); }
.day-note { margin: 8px 2px 0; }

/* Delivery pin: the map moves under a pin fixed at its centre */
.pin-box { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.pin-map { height: 240px; background: var(--surface); z-index: 0; }
.pin-map:focus-visible { outline: 3px solid rgba(170, 121, 44, .55); outline-offset: -3px; border-radius: 16px 16px 0 0; }
.pin-mark { position: absolute; left: 50%; top: 120px; width: 30px; height: 41px; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; fill: var(--ink); filter: drop-shadow(0 3px 4px rgba(53, 38, 31, .35)); transition: transform 160ms ease-out, opacity 200ms ease; }
.pin-mark circle { fill: #fff; }
.pin-box::after { content: ""; position: absolute; left: 50%; top: 120px; width: 8px; height: 4px; margin: -2px 0 0 -4px; border-radius: 50%; background: rgba(53, 38, 31, .35); z-index: 499; pointer-events: none; }
.pin-box.is-moving .pin-mark { transform: translate(-50%, calc(-100% - 8px)); }
.pin-box:not(.pin-live) .pin-mark, .pin-box:not(.pin-live)::after { opacity: 0; }
.pin-failed .pin-map, .pin-failed .pin-mark, .pin-failed::after { display: none; }
.pin-bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--hair); }
.pin-failed .pin-bar { border-top: 0; }
.pin-status { flex: 1; margin: 0; font-size: .88rem; line-height: 1.35; color: var(--ink-2); }
.pin-box[data-state="ok"] .pin-status { color: var(--ink); }
.pin-box[data-state="bad"] .pin-status { color: var(--error); font-weight: 600; }
.pin-box[data-state="warn"] .pin-status { color: #8A5A1B; }
.pin-locate { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; transition: transform 100ms ease-out, background-color 160ms ease; }
.pin-locate:hover { background: #E9E3DD; }
.pin-locate:active { transform: scale(.97); }
.pin-locate:disabled { opacity: .6; cursor: progress; }
.pin-map .leaflet-control-zoom { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair), 0 4px 12px -4px rgba(53, 38, 31, .3); }
.pin-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: var(--ink); font-weight: 500; }
.pin-map .leaflet-control-attribution { font-size: .68rem; background: rgba(255, 255, 255, .82); color: var(--ink-2); }
.pin-map .leaflet-control-attribution a { color: var(--ink-2); }
.pin-field .note { margin-top: 6px; }
.pay-note { margin: -8px 2px 0; }
.allergy { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.allergy strong, .foot-allergy strong { color: var(--ink); font-weight: 600; }
.foot-allergy { flex-basis: 100%; font-size: .88rem; }
.pay-lines { display: flex; flex-direction: column; border-top: 1px solid var(--hair); margin-top: 4px; padding-top: 10px; }
.pay-line { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pay-lines .pay-row { border-top: 0; margin-top: 0; padding: 8px 0 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot { justify-content: flex-start; column-gap: 28px; } .foot-links { flex-basis: 100%; }
