/* Public pages: one per job (home, quiz, perfumes and queue, reserve, FAQ), sharing the header nav and this stylesheet. */
:root {
  --bg: #f2f4f1;
  --surface: #ffffff;
  --sunk: #e8ece9;
  --ink: #15211e;
  --muted: #515d59;
  --line: #d3dbd6;
  --accent: #905716;
  --accent-ink: #ffffff;
  --deep: #0f4a46;
  --ok: #1d7047;
  --glass: rgba(21, 33, 30, 0.07);
  --todo: #fff1c9;
  --todo-ink: #6b4a00;
  --field-line: #7d8883;
  /* inverted surface (the reserve card): its own role tokens, applied by .checkout */
  --inv-bg: #15211e; --inv-ink: #f2f4f1; --inv-muted: #b9c3bf; --inv-line: #34433e; --inv-field-line: #73807b;
  --inv-accent: #e8b05a; --inv-accent-ink: #1a1206; --inv-scheme: dark;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1614; --surface: #17211e; --sunk: #121b18; --ink: #e5ebe7; --muted: #b3beba; --line: #2c3a35;
    --accent: #e6b160; --accent-ink: #1a1206; --deep: #7fc6bd; --ok: #6fd3a0; --glass: rgba(229, 235, 231, 0.08);
    --todo: #3a2f12; --todo-ink: #f3d27a; --field-line: #6c7a75; color-scheme: dark;
    --inv-bg: #e5ebe7; --inv-ink: #15211e; --inv-muted: #465250; --inv-line: #b9c3be; --inv-field-line: #6c7773;
    --inv-accent: #7f4a10; --inv-accent-ink: #ffffff; --inv-scheme: light;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1614; --surface: #17211e; --sunk: #121b18; --ink: #e5ebe7; --muted: #b3beba; --line: #2c3a35;
  --accent: #e6b160; --accent-ink: #1a1206; --deep: #7fc6bd; --ok: #6fd3a0; --glass: rgba(229, 235, 231, 0.08);
  --todo: #3a2f12; --todo-ink: #f3d27a; --field-line: #6c7a75; color-scheme: dark;
  --inv-bg: #e5ebe7; --inv-ink: #15211e; --inv-muted: #465250; --inv-line: #b9c3be; --inv-field-line: #6c7773;
  --inv-accent: #7f4a10; --inv-accent-ink: #ffffff; --inv-scheme: light;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 3rem;
}
.wrap { max-width: 1080px; margin: 0 auto; display: grid; gap: 7rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; max-width: 33rem; }
.eyebrow { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--deep); }
.muted { color: var(--muted); }
.todo { background: var(--todo); color: var(--todo-ink); border-radius: 4px; padding: 0 0.3em; font-family: var(--mono); font-size: 0.85em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* top bar */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 1rem; }
.tools { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: auto; }
.langlink, .signin { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.langlink .code { text-transform: uppercase; letter-spacing: 0.04em; }
.signin { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.langlink:hover, .signin:hover { background: var(--sunk); color: var(--ink); }
.logo { font: 800 1.6rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--body);
  min-height: 48px; padding: 0 1.35rem; border-radius: 999px; transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { min-height: 40px; padding: 0 1rem; font-size: 0.92rem; }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); transition: background 0.15s ease, color 0.15s ease;
}
.iconbtn:hover { background: var(--sunk); color: var(--ink); }
.iconbtn:disabled { opacity: 0.3; cursor: default; background: transparent; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding-top: 1rem; }
.hero > * { min-width: 0; }
.hero .lead { display: grid; gap: 1.3rem; }
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.textlink { color: var(--ink); font-weight: 500; align-self: center; text-underline-offset: 0.2em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* vial graphic */
.v { display: grid; justify-items: center; }
.v .cap { width: 60%; height: 10px; border-radius: 4px 4px 1px 1px; background: var(--ink); }
.v .tube { position: relative; border-radius: 5px 5px 14px 14px; background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.v .juice { position: absolute; inset: auto 0 0 0; height: var(--lvl, 74%); background: var(--c, #d9a441); }
.v .juice::after { content: ""; position: absolute; inset: 0 auto 0 18%; width: 16%; background: rgba(255, 255, 255, 0.28); border-radius: 4px; }
.v.lg .tube { width: 40px; height: 104px; }
.v.md .tube { width: 32px; height: 78px; }
.v.sm .tube { width: 18px; height: 40px; }
.v.sm .cap { height: 6px; }

/* sections */
section { display: grid; gap: 1.75rem; scroll-margin-top: 1rem; }
.head { display: grid; gap: 0.65rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps > * { min-width: 0; }
.step { display: grid; gap: 0.45rem; align-content: start; }
.step .n { font: 500 0.8rem/1 var(--mono); color: var(--accent); }

/* quiz */
.quiz { background: var(--surface); border-radius: 26px; padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 1.5rem; box-shadow: 0 1px 0 var(--line); }
.progress { display: grid; gap: 0.5rem; }
.progress .track { height: 6px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.progress .fill { height: 100%; width: 25%; background: var(--accent); border-radius: 99px; transition: width 0.3s ease; }
.progress .label { font: 500 0.8rem var(--mono); color: var(--muted); }
.qstep { display: grid; gap: 1rem; }
[hidden] { display: none !important; }
.qstep[hidden] { display: none; }
.qstep h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.opt {
  min-height: 64px; border-radius: 16px; border: 0; cursor: pointer; text-align: left; padding: 0.9rem 1.1rem;
  background: var(--sunk); color: var(--ink); font: 600 1rem/1.3 var(--body); box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.opt { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.85rem; }
.opt .bottle { --h: 2.75rem; width: 2.5rem; justify-content: center; }
.vis { width: 2.5rem; height: 2.5rem; flex: none; display: block; }
.vis-lg { width: 3.5rem; height: 3.5rem; display: block; }
.vis-s { width: 1rem; height: 1rem; vertical-align: -0.2rem; margin-right: 0.3rem; display: inline-block; }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.opt[aria-pressed="true"] small { color: inherit; opacity: 0.75; }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
select {
  font: 500 1rem var(--body); color: var(--ink); background: var(--sunk); border: 1.5px solid var(--field-line);
  border-radius: 12px; min-height: 48px; padding: 0 0.9rem; max-width: 100%; width: 100%;
}
.result { display: grid; gap: 1.25rem; }
.result[hidden] { display: none; }
.match { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; background: var(--sunk); border-radius: 20px; padding: 1.25rem; }
.match > * { min-width: 0; }
.match .code { font: 500 0.85rem var(--mono); color: var(--accent); }
.match .name { font: 800 1.6rem/1.1 var(--display); }
.alts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.92rem; }

/* shop: catalogue + queue */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chipbtn {
  min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 0; cursor: pointer; font: 500 0.92rem var(--body);
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
/* perfume card: bottle first, the name, its notes as pictures, one full-width action */
.card { position: relative; background: var(--surface); border-radius: 20px; padding: 1.5rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; box-shadow: 0 1px 0 var(--line); }
.card > * { min-width: 0; max-width: 100%; }
.card.best { box-shadow: inset 0 0 0 2px var(--accent); }
.card .ribbon { position: absolute; top: -0.45rem; left: -0.45rem; padding: 0.3rem 0.65rem; border-radius: 4px; background: var(--ink); color: var(--bg); font: 700 0.75rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.card .flags { position: absolute; top: 1rem; left: 0.9rem; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; justify-items: center; }
.card.best .flags { top: 2.1rem; }
.card .flags li { display: grid; justify-items: center; gap: 0.2rem; max-width: 4.5rem; font: 600 0.62rem/1.1 var(--body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.card .flags img { width: 22px; height: 22px; }
.card .bottle.md { --h: 150px; margin: 0.25rem 0 0.9rem; }
.card .code { margin: 0; font: 700 1.15rem var(--display); letter-spacing: 0.08em; color: var(--accent); }
.card .like { margin: 0; font-weight: 500; line-height: 1.3; }
.card .notes { list-style: none; width: 100%; margin: 0.7rem 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.card .notes li { display: grid; justify-items: center; align-content: start; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); line-height: 1.2; }
.card .notes img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.18)); }
.card .add { width: 100%; margin-top: auto; }
.card .add[aria-pressed="true"] { background: var(--sunk); color: var(--ok); }

.queue { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1rem); background: var(--surface); border-radius: 24px; padding: 1.25rem; display: grid; gap: 1.1rem; box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px rgba(15, 74, 70, 0.5); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sunk); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button {
  min-height: 48px; border: 0; border-radius: 11px; cursor: pointer; background: transparent; color: var(--ink);
  font: 600 0.95rem/1.15 var(--body); display: grid; place-items: center; padding: 0.35rem;
}
.seg button small { font: 400 0.78rem var(--body); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.flash { font-size: 0.88rem; min-height: 1.3em; color: var(--deep); }

/* prices */
.pricegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pricegrid > * { min-width: 0; }
.plan { background: var(--surface); border-radius: 24px; padding: 1.6rem; display: grid; gap: 1rem; align-content: start; box-shadow: 0 1px 0 var(--line); }
.plan.hl { box-shadow: inset 0 0 0 2px var(--accent); }
.plan .badge { justify-self: start; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 0.4rem 0.6rem; border-radius: 6px; }
.plan .amount { font: 800 2.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.plan .amount small { font: 400 1rem var(--body); color: var(--muted); }
.plan .was { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.plan li { display: flex; gap: 0.5rem; align-items: flex-start; }
.plan li svg { color: var(--ok); margin-top: 0.2rem; }
.compare { font-size: 0.92rem; color: var(--muted); }

/* checkout */
.checkout {
  --bg: var(--inv-bg); --ink: var(--inv-ink); --muted: var(--inv-muted); --line: var(--inv-line); --field-line: var(--inv-field-line);
  --accent: var(--inv-accent); --accent-ink: var(--inv-accent-ink); color-scheme: var(--inv-scheme);
  background: var(--bg); color: var(--ink); border-radius: 28px; padding: clamp(1.5rem, 5vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.checkout > *, .checkout-form > * { min-width: 0; display: grid; gap: 1.1rem; align-content: start; }
.checkout-form, .member { grid-column: 1 / -1; }
.checkout-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "head sum" "s1 sum" "s2 sum"; gap: 2.25rem 3rem; align-items: start; }
/* reserve: the title, the order summary beside the two steps (delivery, then payment) */
.rvhead { grid-area: head; }
.summary { grid-area: sum; position: sticky; top: 1rem; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); border-radius: 20px; padding: 1.4rem; box-shadow: inset 0 0 0 1px var(--line); }
.sumhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sumhead h2 { font-size: 1.15rem; }
.summary .field { border-top: 1px solid var(--line); padding-top: 1rem; }
.cstep { grid-area: s1; border: 0; margin: 0; padding: 0; min-width: 0; }
.cstep + .cstep { grid-area: s2; border-top: 1px solid var(--line); padding-top: 2.25rem; }
.cstep legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 0.7rem; font: 700 1.2rem/1.2 var(--display); }
.cstep .n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.95rem; flex: none; }
.cstep ul { color: var(--muted); font-size: 0.95rem; }
.cstep ul b { color: var(--ink); }
.cstep .btn, .summary .btn { width: 100%; }
/* the pay button on its way to the terms: collapsed to a circle */
.drop { position: fixed; z-index: 30; translate: -50% -50%; width: 48px; padding: 0; overflow: hidden; white-space: nowrap; pointer-events: none; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.45); }
@keyframes spread { from { clip-path: inset(0 calc(50% - 24px) round 999px); } }
.spread { animation: spread 0.35s cubic-bezier(0.05, 0.7, 0.1, 1); }
#stepPay { scroll-margin-top: 1rem; }
@media (max-width: 920px) { .checkout-form { grid-template-areas: "head" "sum" "s1" "s2"; } .summary { position: static; } }
.checkout [hidden] { display: none !important; }
.checkout select, .checkout input[type=tel] { min-height: 48px; }
.checkout .eyebrow { color: var(--accent); }
.checkout ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; }
.lines { display: grid; gap: 0.6rem; font-variant-numeric: tabular-nums; }
.line { display: flex; justify-content: space-between; gap: 1rem; }
.line.total { border-top: 1px solid var(--line); padding-top: 0.75rem; font-weight: 600; font-size: 1.1rem; }
.line .neg { color: var(--accent); }
.field { display: grid; gap: 0.4rem; }
.field input, .field select {
  min-height: 48px; border-radius: 12px; border: 1.5px solid var(--field-line); background: transparent; color: var(--ink);
  font: 500 1rem var(--body); padding: 0 0.9rem; max-width: 100%;
}
.field select option { color: var(--ink); background: var(--bg); }
#invite { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.hint { font-size: 0.85rem; min-height: 1.2em; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--accent); }
.status { font-size: 0.9rem; min-height: 1.4em; }

/* invite */
.invite { background: var(--surface); border-radius: 26px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; box-shadow: 0 1px 0 var(--line); }
.invite > * { min-width: 0; }
.codebox { display: grid; gap: 0.75rem; justify-items: start; background: var(--sunk); border-radius: 20px; padding: 1.4rem; }
.code-big { font: 500 clamp(1.5rem, 4vw, 2.1rem)/1 var(--mono); letter-spacing: 0.08em; }
.codebox .row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* faq */
details { border-bottom: 1px solid var(--line); padding-block: 1.05rem; }
summary { cursor: pointer; font: 700 1.05rem/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 0.7rem; color: var(--muted); }
.final { display: grid; gap: 1.2rem; }
/* footer: brand and help, the pages, the terms, how to pay; the brand disclaimer last */
footer { border-top: 1px solid var(--line); padding-top: 2.5rem; font-size: 0.92rem; color: var(--muted); display: grid; gap: 2rem; }
.fcols { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.fbrand { display: grid; gap: 0.6rem; align-content: start; justify-items: start; max-width: 22rem; }
.fbrand img { display: block; height: 26px; width: auto; margin-bottom: 0.3rem; }
.fbrand p { margin: 0; }
footer h2 { font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.6rem; }
footer nav { display: grid; align-content: start; justify-items: start; }
footer nav a { text-decoration: none; padding-block: 0.35rem; }
footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.pay { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; max-width: 13rem; }
.pay li { display: flex; justify-content: center; align-items: center; height: 2.25rem; padding-inline: 0.35rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; }
.pay li.mtn { background: #ffcb05; }
.pay img { height: auto; max-height: 18px; width: auto; max-width: 100%; display: block; }
.pay img[alt="Visa"] { max-height: 13px; }
.fine { margin: 0; max-width: none; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.8rem; text-wrap: pretty; }
@media (max-width: 820px) { .fcols { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } .fbrand, .fcols > :last-child { grid-column: 1 / -1; } }

/* mobile action bar, in thumb reach */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -20px rgba(0, 0, 0, 0.3);
  padding: 0.7rem max(16px, env(safe-area-inset-right, 0px)) calc(0.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.mbar .s { font-size: 0.9rem; line-height: 1.25; }
.mbar .s b { display: block; font-size: 1rem; }

/* desktop: the pinned queue never outgrows the screen; only the months scroll, the total and Reserve stay in view */
@media (min-width: 921px) {
  .queue { max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; }
  .queue > * { flex-shrink: 0; }
  .queue > .qlist { flex-shrink: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -0.4rem; padding: 0.1rem 0.4rem; }
}
@media (max-width: 920px) {
  .hero, .checkout, .checkout-form, .invite, .shop { grid-template-columns: 1fr; }
  .queue { position: static; }
  .mbar { display: flex; }
  body { padding-bottom: 6rem; }
  .wrap { gap: 4rem; }
}
@media (max-width: 620px) { .steps, .pricegrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* queue: an ordered list grouped by delivery month */
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.qtally { font: 600 0.9rem var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.qlist:empty, .flash:empty { display: none; }
.qintro { margin: -0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.qempty { display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding: 1.25rem 0.75rem; border-radius: 16px; background: var(--sunk); color: var(--muted); font-size: 0.92rem; }
.qempty p { margin: 0; max-width: 26ch; }
.qlist, .qlist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.qlist { gap: 1rem; }
.qgroup { display: grid; gap: 0.45rem; }
.qmonth { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; }
.qmonth em { font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 99px; padding: 0.1rem 0.55rem; }
.qn { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.78rem; }
.qitem { display: grid; grid-template-columns: auto auto 1fr auto; gap: 0.55rem; align-items: center; background: var(--sunk); border-radius: 14px; padding: 0.45rem 0.35rem 0.45rem 0.4rem; min-height: 58px; }
.qitem > * { min-width: 0; }
.qitem .t { display: grid; line-height: 1.3; }
.qitem .t b { font-size: 0.8rem; color: var(--accent); }
.qitem .t span { font-size: 0.88rem; overflow-wrap: anywhere; }
.qitem .acts { display: flex; }
.qitem.dragging { opacity: 0.45; }
.grip { color: var(--muted); cursor: grab; font-size: 0.8rem; letter-spacing: -2px; padding-inline: 0.15rem; user-select: none; }
.qgroup.later { opacity: 0.6; }
.qtotal { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 0.75rem; font-size: 0.95rem; }
.pack { border-radius: 18px; background: var(--sunk); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, var(--line)); padding: 0.35rem; display: grid; gap: 0.2rem; }
.packtag { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); padding: 0.1rem 0.1rem 0.1rem 0.4rem; }
.packtag .acts { margin-left: auto; display: flex; }
.pack.dragging { opacity: 0.45; }
.pack[draggable="true"] .packtag { cursor: grab; }
.pack ol { gap: 0; }
.pack .qitem { background: transparent; border-radius: 12px; min-height: 46px; padding-block: 0.25rem; grid-template-columns: auto 1fr auto; padding-left: 0.6rem; }
.pack .qitem + .qitem, .pack .qslot { border-top: 1.5px dashed var(--line); border-radius: 0; }
.qslot { list-style: none; font-size: 0.85rem; color: var(--muted); padding: 0.85rem 0.75rem; }
@media (hover: none) { .grip { display: none; } .qitem { grid-template-columns: auto 1fr auto; } }

/* flat perfume bottle, tinted per perfume */
.bottle { --h: 36px; display: flex; flex: none; align-items: end; height: var(--h); }
.bottle img { height: 100%; width: auto; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25)); }
.bottle img + img { margin-inline-start: calc(var(--h) * -0.06); }
.bottle.md { --h: 84px; }
.bottle.lg { --h: 96px; }
.chipbtn .who { height: 1.6rem; width: auto; margin-right: 0.4rem; }

/* build your box: format, then who, then perfumes */
.build { display: grid; gap: 2rem; min-width: 0; }
.bstep { display: grid; gap: 0.9rem; }
/* perfumes page: one step at a time */
.stepper { list-style: none; margin: 0 0 0.4rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.stepper button { width: 100%; display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0 0; border: 0; border-top: 3px solid var(--line); background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 0.9rem; text-align: start; cursor: pointer; }
.stepper button .qn { flex: none; background: var(--line); color: var(--ink); }
.stepper button.done, .stepper button[aria-current] { border-top-color: var(--accent); color: var(--ink); }
.stepper button[aria-current] .qn, .stepper button.done .qn { background: var(--accent); color: var(--accent-ink); }
.stepper button:disabled { cursor: default; opacity: 0.6; }
.stephead:focus { outline: none; }
.stepnav { display: flex; gap: 0.6rem; }
.stephead { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; margin: 0; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fmt { display: grid; gap: 0.3rem; justify-items: start; text-align: left; cursor: pointer; padding: 1rem 1.1rem; border-radius: 18px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; min-height: 48px; }
.fmt b { font-size: 1.05rem; }
.fmt small { color: var(--muted); font-size: 0.88rem; }
.fmt-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 0.4rem; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.2)); }
.fmt-price { font-weight: 600; margin-top: 0.3rem; }
.fmt-price s { color: var(--muted); font-weight: 400; margin-left: 0.3rem; }
.fmt[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.chipbtn { display: inline-flex; align-items: center; }
.qformat { margin: -0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.qformat a { color: var(--accent); }
#moreToggle { justify-self: start; }
@media (max-width: 620px) { .formats { gap: 0.6rem; } .fmt { padding: 0.8rem; } .fmt b { font-size: 0.95rem; } }

/* site nav: one page per job */
.nav { display: flex; gap: 0.25rem; margin-left: 1.5rem; }
.nav a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 0.85rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
main { display: grid; gap: 5rem; }
main h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
@media (max-width: 620px) {
  /* phone: the pages as a segmented row under the logo, same shape as the format switch */
  .nav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--sunk); }
  .nav a { border-radius: 10px; }
  .nav a[aria-current="page"] { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
}
.checkout .textlink { color: var(--accent); justify-self: start; }

/* wrapping: even headings and labels, no lone last word in running text; capped line length */
summary, .card .like, .qitem .t span, .stephead, .fmt b { text-wrap: balance; }
p, li, label, .notes, .hint, .status, .fmt small { text-wrap: pretty; }
/* queue row with up, down and remove: arrows stacked so the perfume name keeps its width */
.qitem .acts:has(> :nth-child(3)) { display: grid; grid-template: "u x" "d x" / auto auto; align-items: center; }
.qitem .acts:has(> :nth-child(3)) > :nth-child(1) { grid-area: u; height: 26px; }
.qitem .acts:has(> :nth-child(3)) > :nth-child(2) { grid-area: d; height: 26px; }
.qitem .acts:has(> :nth-child(3)) > :nth-child(3) { grid-area: x; }
.qmonth em, .line > span:last-child { white-space: nowrap; }
.line > span { text-wrap: balance; }
/* home: the bottle in daily life */
.usage { display: grid; gap: 1.5rem; }
.usage-head { display: grid; gap: 0.6rem; }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); }
.usage figure { margin: 0; display: grid; gap: 0.5rem; }
.usage img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--sunk); }
.usage figcaption { font-weight: 600; }
/* free bottle, free shipping, refilled bottles: what the price includes */
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-weight: 600; font-size: 0.95rem; }
.perks li { display: inline-flex; align-items: center; gap: 0.35rem; }
.perks .i { color: var(--ok); }
.line .free { color: var(--accent); font-weight: 600; }
::placeholder { color: var(--muted); opacity: 1; }

/* hero: the two atomizers on a warm disc, tilted toward each other */
.hero-photo { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: clamp(300px, 44vw, 520px); isolation: isolate; }
.hero-photo::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 6%; width: min(92%, 440px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.hero-photo::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 2%; width: 46%; height: 18px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), transparent); }
.wrap > .bar { margin-bottom: -3rem; }
/* the photos are cut flat at the base: round the corners to the bottle's own curve */
.hero-photo .ph { border-radius: 0 0 14% 14% / 0 0 2% 2%; height: clamp(250px, 34vw, 430px); width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.16)); }
.ph-argent { rotate: 7deg; translate: 14% -6%; }
.ph-noir { rotate: -5deg; translate: -12% 0; }

/* home: the closing call to action and its reassurance read as one group */
.close { display: grid; gap: 0.75rem; }

/* founder price: a tag pinned to the product photo */
.pricetag { position: absolute; z-index: 2; inset-inline-start: 2%; bottom: 16%; margin: 0; max-width: none; rotate: -4deg;
  display: grid; gap: 0.1rem; padding: 0.85rem 1.1rem 0.9rem; border-radius: 18px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.pricetag .k { font: 600 0.72rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.pricetag .rows { display: grid; grid-template-columns: auto auto auto; column-gap: 0.7rem; row-gap: 0.1rem; align-items: baseline; margin-top: 0.3rem; }
.pricetag b { font: 800 1.45rem/1.15 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.pricetag s { opacity: 0.8; font-size: 0.86rem; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pricetag span { font-size: 0.86rem; white-space: nowrap; }
.pricetag .left { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; font-weight: 600; }
.pricetag .left::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: tagpulse 1.8s ease-out infinite; }
@keyframes tagpulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .pricetag .left::before { animation: none; } }
@media (max-width: 620px) { .pricetag { inset-inline-start: 0; bottom: 8%; } .pricetag b { font-size: 1.2rem; } }
.contact { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.contact a:hover { background: var(--sunk); }
.contact a .i { width: 16px; height: 16px; margin-right: 0.4rem; }
.contact .wa { background: #25d366; color: #0b2e17; box-shadow: none; }
.contact .wa:hover { background: #1ebe5a; }
.contact .fill { fill: currentColor; stroke: none; }
