/* ================================================================
   FRAGRANCE BOX — /pre-order landing + reservation drawer
   Black/white minimal, Inter, consistent with the brand system.
   ================================================================ */

.po { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem; color: #000; }
.po *, .po *::before, .po *::after { box-sizing: border-box; }

/* Scroll-reveal — fully self-contained (no dependency on nav.js). Baseline
   hidden, revealed by preorder.js; reduced-motion + JS-failure show everything. */
.po .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.po .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .po .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Buttons ─────────────────────────────────────────────── */
.po-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: inherit; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0 1.5rem; height: 48px; border-radius: 999px; cursor: pointer;
    border: 1px solid #000; background: #000; color: #fff;
    transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    text-decoration: none; white-space: nowrap;
}
.po-btn-primary:hover { opacity: 0.86; }
.po-btn-ghost { background: transparent; color: #000; border-color: rgba(0,0,0,0.25); }
.po-btn-ghost:hover { border-color: #000; }
.po-btn-lg { height: 54px; padding: 0 2rem; font-size: 0.875rem; }
.po-btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.po-btn:disabled { opacity: 0.5; cursor: default; }
.po-btn[aria-busy="true"] { opacity: 0.7; cursor: wait; }

/* ── Hero ────────────────────────────────────────────────── */
/* Desktop: two columns via grid areas — copy + benefits stack on the left, the
   product visual spans on the right. (Mobile re-flows to a single column.) */
.po-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: "copy visual" "trust visual";
    align-items: start;
    column-gap: clamp(1.5rem, 5vw, 4rem);
    row-gap: 0;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.po-hero-inner { grid-area: copy; }
.po-hero-visual { grid-area: visual; align-self: center; }
.po-hero .po-trust { grid-area: trust; }
.po-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0,0,0,0.5); margin: 0 0 1.1rem; }
.po-hero-title {
    font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 200; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1.25rem;
    text-wrap: balance;            /* self-correcting: balances lines instead of orphaning "Box" */
    overflow-wrap: break-word;     /* never overflow on very narrow screens */
}
.po-hero-sub { font-size: clamp(0.95rem, 1.6vw, 1.125rem); font-weight: 300; line-height: 1.6; color: rgba(0,0,0,0.62); max-width: 34rem; margin: 0 0 1.75rem; text-wrap: pretty; }
.po-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.po-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 0.5rem 1.75rem; }
.po-trust li { font-size: 0.8125rem; color: rgba(0,0,0,0.6); padding-left: 1.1rem; position: relative; }
.po-trust li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: #000; }
.po-hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
/* The CTA-overlay wrapper carries the responsive width; the image fills it. */
.po-hero-visual .fb-art-cta-wrap { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
.po-hero-img { width: 100%; height: auto; display: block; object-fit: contain; filter: saturate(0); }
.po-hero-from { font-size: 0.8125rem; letter-spacing: 0.04em; color: rgba(0,0,0,0.55); }

/* ── Sections ────────────────────────────────────────────── */
.po-section { padding: clamp(2.75rem, 7vw, 5rem) 0; border-top: 1px solid rgba(0,0,0,0.07); }
.po-section-alt { background: linear-gradient(180deg, #fafafa, #fff); border-radius: 18px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem); margin: clamp(1.5rem,4vw,2.5rem) 0; border-top: none; }
.po-h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 200; letter-spacing: -0.01em; margin: 0 0 1.5rem; }
.po-lead { font-size: clamp(0.95rem, 1.5vw, 1.0625rem); font-weight: 300; line-height: 1.6; color: rgba(0,0,0,0.62); max-width: 42rem; margin: 0 0 2rem; }

.po-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.po-card { padding: 1.75rem 1.5rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 14px; background: #fff; }
.po-card-num { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; color: rgba(0,0,0,0.35); }
.po-card h3 { font-size: 1.0625rem; font-weight: 400; margin: 0.6rem 0 0.5rem; }
.po-card p, .po-feature p, .po-steps p { font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: rgba(0,0,0,0.58); margin: 0; }

.po-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; }
.po-feature { display: flex; gap: 1rem; align-items: flex-start; }
.po-feature-ico { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.po-feature-dot { width: 10px; height: 10px; border-radius: 50%; background: #000; flex: 0 0 auto; margin: 0.4rem 0.6rem 0 0.6rem; }
.po-feature h3 { font-size: 1rem; font-weight: 400; margin: 0 0 0.35rem; }

/* How it works — centered header + a 4-step process grid that fills the width
   (was a narrow left-aligned column that left the desktop right half blank). */
.po-how-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.po-how-head .po-eyebrow { margin-bottom: 0.65rem; }
.po-how-head .po-h2 { margin-bottom: 0.85rem; }
.po-how-head .po-lead { margin-left: auto; margin-right: auto; }

.po-steps { list-style: none; margin: 0; padding: 0; counter-reset: po; max-width: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.1rem, 2.6vw, 2rem);
  position: relative; }
/* faint connector line linking the step badges across the row (desktop only) */
.po-steps::before { content: ''; position: absolute; top: 21px; left: calc(12.5% + 22px); right: calc(12.5% + 22px);
  height: 1px; background: rgba(0,0,0,0.12); z-index: 0; }
.po-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  padding: 0; border: none; position: relative; z-index: 1; }
.po-steps li span { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18); background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 500; margin-bottom: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.po-steps li:hover span { background: #000; color: #fff; border-color: #000; transform: translateY(-2px); }
.po-steps li h3 { font-size: 1rem; font-weight: 500; margin: 0; letter-spacing: -0.005em; }
@media (max-width: 860px) {
  .po-steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.5rem; }
  .po-steps::before { display: none; }
}
@media (max-width: 480px) { .po-steps { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ── Early supporter rate ────────────────────────────────── */
.po-rate-card { max-width: 40rem; }
.po-rate-card .po-btn { margin-top: 0.5rem; }
.po-fineprint { font-size: 0.75rem; line-height: 1.6; color: rgba(0,0,0,0.45); margin: 1.1rem 0 0; max-width: 40rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.po-faq { max-width: 46rem; }
.po-faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.po-faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1rem; font-weight: 400; }
.po-faq-item summary::-webkit-details-marker { display: none; }
.po-faq-mark { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.po-faq-mark::before, .po-faq-mark::after { content: ''; position: absolute; background: #000; transition: transform 0.2s ease, opacity 0.2s ease; }
.po-faq-mark::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.po-faq-mark::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.po-faq-item[open] .po-faq-mark::after { transform: scaleY(0); opacity: 0; }
.po-faq-item p { font-size: 0.9375rem; font-weight: 300; line-height: 1.65; color: rgba(0,0,0,0.6); margin: 0 0 1.1rem; max-width: 42rem; }

/* ── Final CTA ───────────────────────────────────────────── */
.po-final { text-align: center; }
.po-final .po-lead { margin-left: auto; margin-right: auto; }

/* ── Sticky reserve dock ──────────────────────────────────────────
   Floating bottom CTA shown when the hero "Reserve My Box" scrolls out of view.
   --po-dock-h is a shared "reserved space" token so other floating UI (the Ask
   Fragrance AI launcher) can coordinate spacing instead of hard-coding numbers.
   z-index 800: above page content, below the reservation drawer (z 2000). */
:root { --po-dock-h: 0px; }
body.has-reserve-dock { --po-dock-h: 84px; } /* dock height + breathing room (mobile lift) */

.po-reserve-dock {
    position: fixed;
    left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(14px);
    z-index: 800;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
    opacity: 0; pointer-events: none;
    transition: opacity 0.24s cubic-bezier(.22,1,.36,1), transform 0.24s cubic-bezier(.22,1,.36,1);
}
.po-reserve-dock.is-visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.po-reserve-dock-btn { min-height: 48px; padding: 0 1.9rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
/* Never overlay the open reservation modal */
body.po-drawer-open .po-reserve-dock { opacity: 0 !important; pointer-events: none !important; transform: translateX(-50%) translateY(14px); }

@media (max-width: 640px) {
    .po-reserve-dock {
        left: 12px; right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateY(14px);
        padding: 6px; border-radius: 22px;
    }
    .po-reserve-dock.is-visible { transform: translateY(0); }
    body.po-drawer-open .po-reserve-dock { transform: translateY(14px); }
    .po-reserve-dock-btn { width: 100%; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .po-reserve-dock { transition: opacity 0.2s ease; }
    .po-reserve-dock, .po-reserve-dock.is-visible { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
    .po-reserve-dock, .po-reserve-dock.is-visible { transform: none; }
}

/* ── Success / cancelled ─────────────────────────────────── */
.po-success { display: flex; justify-content: center; padding: clamp(2.5rem, 8vw, 6rem) 0; }
.po-success-card { max-width: 36rem; width: 100%; text-align: center; }
.po-success-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; background: #000; color: #fff; margin-bottom: 1.25rem;
}
.po-success-check svg { width: 26px; height: 26px; }
.po-success-title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 200; letter-spacing: -0.02em; margin: 0 0 1rem; }
.po-success .po-lead { margin-left: auto; margin-right: auto; }
.po-success .po-review { text-align: left; margin: 1.75rem 0; }
.po-success .po-hero-cta { justify-content: center; }
.po-next { text-align: left; margin: 2rem auto; max-width: 30rem; }
.po-next h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(0,0,0,0.45); margin: 0 0 0.75rem; }
.po-next ol { margin: 0; padding-left: 1.1rem; }
.po-next li { font-size: 0.9375rem; font-weight: 300; line-height: 1.6; color: rgba(0,0,0,0.62); margin-bottom: 0.5rem; }
.po-fineprint a { color: #000; text-decoration: underline; text-underline-offset: 2px; }

/* ── Reservation drawer ──────────────────────────────────── */
.po-drawer { position: fixed; inset: 0; z-index: 2000; visibility: hidden; }
.po-drawer.is-open { visibility: visible; }
.po-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.3s ease; }
.po-drawer.is-open .po-drawer-backdrop { opacity: 1; }
.po-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.36s cubic-bezier(0.16,1,0.3,1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.16);
}
.po-drawer.is-open .po-drawer-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .po-drawer-panel, .po-drawer-backdrop { transition: none; } }

.po-drawer-head { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem 0.75rem; }
.po-drawer-progress { flex: 1 1 auto; height: 3px; border-radius: 3px; background: rgba(0,0,0,0.1); overflow: hidden; }
.po-drawer-progress-fill { display: block; height: 100%; width: 20%; background: #000; border-radius: 3px; transition: width 0.32s cubic-bezier(0.16,1,0.3,1); }
.po-drawer-close { flex: 0 0 auto; width: 36px; height: 36px; border: none; background: none; cursor: pointer; color: #000; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.po-drawer-close:hover { background: rgba(0,0,0,0.05); }
.po-drawer-close svg { width: 20px; height: 20px; }

.po-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 0.5rem 1.5rem 1.5rem; -webkit-overflow-scrolling: touch; }
.po-step { display: none; animation: poStepIn 0.3s ease; }
.po-step.is-active { display: block; }
@keyframes poStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .po-step { animation: none; } }
.po-step-eyebrow { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(0,0,0,0.4); margin: 0.75rem 0 0.5rem; }
.po-step-title { font-size: 1.375rem; font-weight: 300; letter-spacing: -0.01em; margin: 0 0 1rem; }
.po-step-hint { font-size: 0.8125rem; line-height: 1.5; color: rgba(0,0,0,0.55); margin: -0.5rem 0 1.25rem; }

.po-choice-grid { display: grid; gap: 0.75rem; }
.po-choice {
    position: relative; text-align: left; width: 100%; font-family: inherit; cursor: pointer;
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 1.1rem 1.2rem; border: 1px solid rgba(0,0,0,0.14); border-radius: 13px; background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.po-choice:hover { border-color: rgba(0,0,0,0.45); }
.po-choice.is-selected { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.po-choice:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.po-choice-tag { font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6d1f; }
.po-choice--feature.is-selected { border-color: #b89a4e; box-shadow: inset 0 0 0 1px #b89a4e; }
.po-choice-name { font-size: 1rem; font-weight: 500; }
.po-choice-desc { font-size: 0.8125rem; font-weight: 300; line-height: 1.45; color: rgba(0,0,0,0.55); }
.po-choice-price { font-size: 0.8125rem; font-weight: 500; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }

.po-fill { margin-top: 1.1rem; }
.po-fill[hidden] { display: none; }
.po-fill-label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(0,0,0,0.4); margin: 0 0 0.5rem; }
.po-choice-row { display: flex; gap: 0.5rem; }
.po-pill {
    flex: 1 1 auto; font-family: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer;
    padding: 0.6rem 0.75rem; border: 1px solid rgba(0,0,0,0.16); border-radius: 999px; background: #fff;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.po-pill:hover { border-color: rgba(0,0,0,0.4); }
.po-pill.is-selected { background: #000; color: #fff; border-color: #000; }
.po-pill:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.po-pref-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.po-pref {
    font-family: inherit; font-size: 0.8125rem; cursor: pointer;
    padding: 0.5rem 0.95rem; border: 1px solid rgba(0,0,0,0.16); border-radius: 999px; background: #fff;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.po-pref:hover { border-color: rgba(0,0,0,0.4); }
.po-pref.is-selected { background: #000; color: #fff; border-color: #000; }
.po-pref:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.po-field { margin-bottom: 1rem; }
.po-field label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: rgba(0,0,0,0.6); margin-bottom: 0.4rem; }
.po-optional { color: rgba(0,0,0,0.4); font-weight: 400; }
.po-field input {
    width: 100%; font-family: inherit; font-size: 0.9375rem; padding: 0.7rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.18); border-radius: 10px; background: #fff; color: #000;
    transition: border-color 0.16s ease;
}
.po-field input:focus { outline: none; border-color: #000; }
.po-field input.is-invalid { border-color: #8a1f1f; }
.po-field-error { display: block; font-size: 0.75rem; color: #8a1f1f; margin-top: 0.35rem; min-height: 1em; }

.po-review { border: 1px solid rgba(0,0,0,0.1); border-radius: 13px; overflow: hidden; }
.po-review-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.875rem; }
.po-review-row:last-child { border-bottom: none; }
.po-review-row .k { color: rgba(0,0,0,0.5); }
.po-review-row .v { font-weight: 500; text-align: right; }
.po-review-row .v.free { color: #1c7d3f; }
.po-error-box { font-size: 0.8125rem; color: #8a1f1f; margin: 0.9rem 0 0; }
.po-error-box[hidden] { display: none; }
[data-po-grandfather-note][hidden] { display: none; }

.po-drawer-foot { display: flex; gap: 0.75rem; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid rgba(0,0,0,0.07); }
.po-drawer-foot .po-btn-ghost[hidden] { display: none; }
.po-drawer-foot .po-btn-next, .po-drawer-foot [data-po-next] { flex: 1 1 auto; }
.po-drawer-foot [data-po-back] { flex: 0 0 auto; }

/* ── Responsive ──────────────────────────────────────────── */
/* ── Mobile hero (≤820px): a single, intentional column ──────
   Order: badge → headline → copy → CTAs → product image → price → benefits.
   The product image is centered and scaled so it's never cropped by the nav,
   and the floating widgets are suppressed (cart dock hidden in PHP; no sticky
   bar) so nothing covers content. */
@media (max-width: 820px) {
    .po { padding-bottom: 2.5rem; }
    .po-hero {
        display: flex; flex-direction: column; align-items: stretch;
        grid-template-columns: none; grid-template-areas: none;
        gap: 1.5rem; text-align: left;
        /* clear the fixed 52px nav (matches the /order view's offset pattern) */
        padding: calc(52px + 1.25rem) 0 2rem;
    }
    .po-hero-inner  { order: 1; display: flex; flex-direction: column; }
    .po-hero-visual { order: 2; align-items: center; gap: 0.7rem; align-self: stretch; }
    .po-hero .po-trust { order: 3; }

    .po-eyebrow { margin-bottom: 0.7rem; }
    .po-hero-title { font-size: clamp(1.9rem, 8.5vw, 2.5rem); line-height: 1.1; margin-bottom: 0.85rem; }
    .po-hero-sub { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.25rem; max-width: none; }
    .po-hero-cta { gap: 0.6rem; margin-bottom: 0; }
    .po-hero-cta .po-btn { width: 100%; height: 48px; }
    .po-hero-visual .fb-art-cta-wrap { max-width: clamp(190px, 56vw, 250px); }
    .po-hero-from { font-size: 0.8125rem; }

    /* Benefits as a tidy 2×2 chip grid. */
    .po-hero .po-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .po-hero .po-trust li {
        padding: 0.6rem 0.7rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px;
        font-size: 0.75rem; line-height: 1.3; color: rgba(0,0,0,0.62);
    }
    .po-hero .po-trust li::before { display: none; }

    .po-grid-3 { grid-template-columns: 1fr; }
    .po-grid-2 { grid-template-columns: 1fr; }

}

/* ── Step 3: fragrance picker (collection-style grid in the drawer) ── */
.po-frags-bar {
    position: sticky; top: 0; z-index: 3;
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0 0.7rem; margin-bottom: 0.4rem;
    background: #fff; /* cover grid scrolling beneath */
}
.po-frags-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.po-frags-search-ico { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: rgba(0,0,0,0.4); pointer-events: none; }
.po-frags-search {
    width: 100%; box-sizing: border-box;
    padding: 0.6rem 0.8rem 0.6rem 2.1rem;
    border: 1px solid rgba(0,0,0,0.16); border-radius: 12px;
    font-family: inherit; font-size: 0.875rem; color: #111; background: #fff;
    -webkit-appearance: none; appearance: none;
    transition: border-color 0.16s ease;
}
.po-frags-search:focus { outline: none; border-color: #111; }
.po-frags-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.po-frags-count {
    flex: 0 0 auto; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: rgba(0,0,0,0.55); white-space: nowrap; font-weight: 500;
}
.po-frags-count.is-pulse { animation: poCountPulse 0.42s ease; }
@keyframes poCountPulse { 0% { transform: scale(1); } 35% { transform: scale(1.18); color: #000; } 100% { transform: scale(1); } }

.po-frags {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}
.po-frag {
    position: relative; display: flex; flex-direction: column; text-align: left;
    border: 1px solid rgba(0,0,0,0.12); border-radius: 14px; background: #fff;
    padding: 0; overflow: hidden; cursor: pointer; font-family: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}
/* search filter: [hidden] must beat the flex display above, or matches never hide */
.po-frag[hidden] { display: none !important; }
.po-frag:hover { border-color: rgba(0,0,0,0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.po-frag:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.po-frag-media {
    position: relative; width: 100%; aspect-ratio: 1 / 1; background: #f6f5f3;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.po-frag-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.po-frag-noimg { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.06); }
.po-frag-tick {
    position: absolute; top: 0.5rem; right: 0.5rem; width: 24px; height: 24px;
    border-radius: 50%; background: #111; color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.6); transition: opacity 0.16s ease, transform 0.16s ease;
}
.po-frag-tick svg { width: 14px; height: 14px; }
.po-frag-info { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.65rem 0.7rem; }
.po-frag-brand { font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(0,0,0,0.5); }
.po-frag-name { font-size: 0.8125rem; font-weight: 500; color: #111; line-height: 1.25; }
.po-frag-meta { font-size: 0.625rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(0,0,0,0.42); margin-top: 0.15rem; }

/* selected */
.po-frag.is-picked { border-color: #111; box-shadow: 0 0 0 1.5px #111 inset; }
.po-frag.is-picked .po-frag-tick { opacity: 1; transform: scale(1); }
.po-frag.is-picked .po-frag-media { background: #efeeec; }

/* disabled when the box is full */
.po-frag.is-disabled { opacity: 0.4; cursor: not-allowed; }
.po-frag.is-disabled:hover { border-color: rgba(0,0,0,0.12); box-shadow: none; }

.po-frags-none { text-align: center; color: rgba(0,0,0,0.5); font-size: 0.85rem; padding: 1.5rem 0; }

@media (prefers-reduced-motion: reduce) {
    .po-frag, .po-frag-tick { transition: none; }
    .po-frags-count.is-pulse { animation: none; }
}

/* Slightly larger tap targets on the full-width mobile sheet */
@media (max-width: 560px) {
    .po-frags { gap: 0.6rem; }
    .po-frag-name { font-size: 0.8438rem; }
    .po-frags-search { font-size: 1rem; } /* >=16px avoids iOS zoom-on-focus */
}

/* ════════════════════════════════════════════════════════════════
   CINEMATIC SUCCESS PAGE  (shared by /order/success + /pre-order/success)
   Apple-style: clears the fixed nav, animates the success mark, cascades
   the confirmation in, premium status-aware timeline, AI-pill-safe bottom.
   ──────────────────────────────────────────────────────────────── */
:root { --po-ease: cubic-bezier(.16,1,.3,1); }

.po-success {
  display: flex; justify-content: center;
  /* top: clear the 60px fixed nav (was clamped below it on mobile).
     bottom: reserve space for the floating AI pill + mobile safe area. */
  padding:
    calc(60px + clamp(1.75rem, 5vw, 3.25rem)) 0
    calc(var(--floating-ai-height, 46px) + (var(--floating-gap, 16px) * 2) + var(--safe-area-bottom, 0px) + 1.5rem);
}
.po-success-card { max-width: 38rem; width: 100%; text-align: center; }

/* ── Animated success mark ── */
.po-success-check {
  position: relative; width: clamp(64px, 16vw, 80px); height: clamp(64px, 16vw, 80px);
  margin: 0 auto 1.6rem; border-radius: 50%; background: #000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  animation: po-pop .6s var(--po-ease) both; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
}
.po-success-check svg { width: 42%; height: 42%; }
.po-success-check svg polyline, .po-success-check svg path {
  stroke-dasharray: 32; stroke-dashoffset: 32; animation: po-draw .55s var(--po-ease) .45s forwards;
}
.po-success-check::before, .po-success-check::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.22); animation: po-ring 1.2s var(--po-ease) .35s both; pointer-events: none;
}
.po-success-check::after { animation-delay: .6s; }
@keyframes po-pop { 0%{opacity:0;transform:scale(.55)} 62%{transform:scale(1.07)} 100%{opacity:1;transform:scale(1)} }
@keyframes po-draw { to { stroke-dashoffset: 0; } }
@keyframes po-ring { 0%{opacity:.65;transform:scale(1)} 100%{opacity:0;transform:scale(1.85)} }

/* ── Staggered cinematic entrance ── */
@keyframes po-rise { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform:none; } }
.po-state[data-state="confirmed"] > *:not(.po-success-check) { animation: po-rise .7s var(--po-ease) both; }
.po-state[data-state="confirmed"] > .po-eyebrow        { animation-delay: .18s; }
.po-state[data-state="confirmed"] > .po-success-title  { animation-delay: .28s; }
.po-state[data-state="confirmed"] > .po-lead           { animation-delay: .38s; }
.po-state[data-state="confirmed"] > .po-email-note     { animation-delay: .44s; }
.po-state[data-state="confirmed"] > .po-review         { animation-delay: .5s; }
.po-state[data-state="confirmed"] > .po-next           { animation-delay: .6s; }
.po-state[data-state="confirmed"] > .po-hero-cta       { animation-delay: .7s; }
.po-state[data-state="confirmed"] > .po-fineprint      { animation-delay: .78s; }
/* server-rendered states (reservation confirmed) cascade via .po-cine */
.po-cine > * { animation: po-rise .7s var(--po-ease) both; }
.po-cine > *:nth-child(2){animation-delay:.12s} .po-cine > *:nth-child(3){animation-delay:.22s}
.po-cine > *:nth-child(4){animation-delay:.32s} .po-cine > *:nth-child(5){animation-delay:.42s}
.po-cine > *:nth-child(6){animation-delay:.52s} .po-cine > *:nth-child(7){animation-delay:.62s}
.po-cine > *:nth-child(n+8){animation-delay:.7s}

/* ── Refined order card ── */
.po-success .po-review {
  text-align: left; margin: 1.75rem 0; border: 1px solid rgba(0,0,0,.09); border-radius: 16px;
  background: #fff; overflow: hidden; box-shadow: 0 24px 60px -34px rgba(0,0,0,.4);
}
.po-success .po-review-row { padding: 0.95rem 1.15rem; }
.po-success .po-review-row .v.po-confnum { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.po-email-note { font-size: .8125rem; color: rgba(0,0,0,.52); margin: -0.4rem 0 1.4rem; }
.po-email-note strong { color: #000; font-weight: 500; }

/* ── Premium status-aware timeline (replaces the plain numbered list) ── */
.po-timeline { list-style: none; margin: 2rem auto; padding: 0; max-width: 28rem; text-align: left; }
.po-timeline li { position: relative; padding: 0 0 1.55rem 2.1rem; }
.po-timeline li:last-child { padding-bottom: 0; }
.po-timeline li::before { content: ''; position: absolute; left: 8px; top: 19px; bottom: -3px; width: 1.5px; background: rgba(0,0,0,.12); }
.po-timeline li:last-child::before { display: none; }
.po-tl-dot { position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(0,0,0,.22); background: #fff; box-sizing: border-box; }
.po-timeline li.is-done .po-tl-dot { background: #000; border-color: #000; }
.po-timeline li.is-done .po-tl-dot::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 5px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.po-timeline li.is-active .po-tl-dot { border-color: #000; }
.po-timeline li.is-active .po-tl-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #000; animation: po-pulse 1.8s ease-in-out infinite; }
.po-tl-title { display: block; font-size: .9375rem; font-weight: 500; color: #000; letter-spacing: .005em; }
.po-timeline li.is-upcoming .po-tl-title { color: rgba(0,0,0,.42); }
.po-tl-sub { display: block; font-size: .8125rem; font-weight: 300; color: rgba(0,0,0,.55); margin-top: .15rem; line-height: 1.5; }
@keyframes po-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(0,0,0,.28)} 50%{box-shadow:0 0 0 6px rgba(0,0,0,0)} }

/* ── Reduced motion: show everything, no animation ── */
@media (prefers-reduced-motion: reduce) {
  .po-success-check, .po-success-check::before, .po-success-check::after,
  .po-success-check svg polyline, .po-success-check svg path,
  .po-state[data-state="confirmed"] > *, .po-cine > *, .po-timeline li.is-active .po-tl-dot::after {
    animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important;
  }
}
@media (max-width: 560px) {
  .po-success .po-review-row { flex-direction: column; gap: .15rem; }
  .po-success .po-review-row .v { text-align: left; }
}

/* ── "Your curation" block on the success pages ── */
.po-curation { text-align: left; max-width: 30rem; margin: 1.75rem auto; border: 1px solid rgba(0,0,0,.09); border-radius: 16px; padding: 1.25rem 1.35rem; background: rgba(255,255,255,.72); box-shadow: 0 18px 44px -34px rgba(0,0,0,.35); }
.po-curation h2 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(0,0,0,.45); margin: 0 0 .35rem; }
.po-curation-meta { font-size: .8125rem; color: rgba(0,0,0,.55); margin: 0 0 .9rem; }
.po-curation-note { font-size: .8125rem; color: rgba(0,0,0,.6); line-height: 1.55; margin: .9rem 0 0; }
.po-curation-list { list-style: none; margin: 0; padding: 0; }
.po-curation-list li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: .875rem; }
.po-curation-list li:last-child { border-bottom: 0; }
.po-curation-list .nm { font-weight: 500; color: #000; }
.po-curation-list .nm small { display: block; font-weight: 400; font-size: .6875rem; color: rgba(0,0,0,.5); letter-spacing: .06em; text-transform: uppercase; margin-top: .12rem; }
.po-req-badge { font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a6d1f; border: 1px solid rgba(138,109,31,.32); border-radius: 999px; padding: .1rem .42rem; margin-left: .45rem; white-space: nowrap; }
.po-curation-more { margin: .7rem 0 0; background: none; border: 0; color: #000; font-size: .8125rem; text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; }
.po-curation-saved { font-size: .8125rem; color: #1c7d3f; margin: .95rem 0 0; font-weight: 500; }
.po-state[data-state="confirmed"] > .po-curation { animation-delay: .55s; }

/* ── Copy-confirmation button + shipping note (success + order detail) ── */
.po-confnum { display: inline-flex; align-items: center; gap: .55rem; }
.po-copy { font: inherit; font-size: .625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #000; background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.12); border-radius: 999px; padding: .2rem .55rem; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; -webkit-tap-highlight-color: transparent; }
.po-copy:hover { background: rgba(0,0,0,.1); }
.po-copy:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.po-copy.is-copied { background: #1c7d3f; color: #fff; border-color: #1c7d3f; }
.po-shipnote { font-size: .8125rem; line-height: 1.55; color: rgba(0,0,0,.6); max-width: 30rem; margin: 0 auto 1.25rem; }
