/* css/peaks.css
 *
 * The one stylesheet of the Peaks of Us pages (spec §3.5, §14; redesign spec §4). Mobile first: the base
 * rules are for a phone, wider screens are the media queries. Brand: docs/peaks-of-us/brand/README.md
 * (Ink, Paper, Sunflower; Bricolage Grotesque 800 for display and headings, Manrope for titles, labels
 * and the rest). Every UI accent is cobalt (--accent); coral stays for illustrations and the comparison's
 * red ✕. Type follows Etsy's measured hierarchy in Peaks' own faces: body 16 px, captions 13–15 px, the
 * form's section headers 12 px; contrast WCAG AA or better. Sections follow the order the build added
 * them: base, header and footer, then each page. */

/* ───────── base ───────── */
:root {
    --ink: #1F2A44;
    --paper: #FFF8EE;
    --card: #FFFFFF;
    --slate: #4A5065;
    --line: #E2D6C1;
    --line-soft: #EADFCB;
    --sun: #F6B93B;
    --sun-soft: #FFE9B8;
    --coral: #F26B5B;
    --coral-deep: #C8452F;
    --lagoon: #2BB3A3;
    --error: #A6302A;
    --ok: #1D6B44;
    --accent: #2A5FC4;          /* cobalt, every UI accent (redesign spec §4.1): 5.9:1 on white */
    --accent-hover: #214EA6;
    --accent-rgb: 42, 95, 196;  /* for tints: rgba(var(--accent-rgb), 0.10) */
    --ui-muted: #666B7B;        /* the form's headers, footers and sub-lines: 4.6:1 on its #F4EEE4, AA */
    --wall: linear-gradient(180deg, #F1E9DC 0%, #EADFCD 86%, #C9A57A 86%, #B98D5E 91%, #DCD2C2 91%, #E6DDCE 100%);
    --radius: 14px;
    --head: "Bricolage Grotesque", Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.5 var(--body);
    -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
img { height: auto; }
/* The type scale (redesign spec §4.2): display and section headings in Bricolage, titles in Manrope. */
h1, h2, h3 { font-weight: 800; margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--head); letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: 32px; line-height: 1.05; }
h2 { font-size: 24px; }
h3 { font-family: var(--body); font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; }
@media (min-width: 700px) { h1 { font-size: 40px; } h2 { font-size: 28px; } h3 { font-size: 20px; } }
@media (min-width: 900px) { h1 { font-size: 48px; } h2 { font-size: 32px; } }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--slate); }
.small { font-size: 14px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
    background: var(--accent); color: #FFFFFF;
    font: 800 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn:disabled, .btn[aria-disabled="true"] { background: #9A8F86; cursor: not-allowed; }
.btn.secondary { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.btn.secondary:hover { background: var(--paper); }
.btn.wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--accent); }
.chip-button {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
    font: 700 16px/1.2 var(--body); cursor: pointer;
}
.chip-button:hover { border-color: var(--ink); }

/* ───────── admin strip, top bar, header, menu ───────── */
.admin-strip {
    display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; justify-content: center;
    padding: 2px 16px; background: var(--sun-soft); color: var(--ink); font-size: 16px; font-weight: 700; text-align: center;
}
.admin-strip a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
/* The top bar (redesign spec §4.3): one message at a time, faded out then in, never overlapping. */
.top-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: var(--ink); color: var(--paper); font: 500 13px/1.35 var(--body); }
.news { display: grid; flex: 1 1 auto; min-width: 0; margin: 0; text-align: center; }
.news-msg {
    grid-area: 1 / 1; align-self: center; padding: 6px 4px; opacity: 0; transform: translateY(6px); visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}
.news-msg.on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.28s ease 0.28s, transform 0.28s ease 0.28s, visibility 0s linear 0.28s; }
.news-msg b { color: var(--sun); font-weight: 800; }
.news-msg a { color: var(--paper); font-weight: 800; white-space: nowrap; text-decoration-thickness: 1.5px; }
.news-msg a:hover { color: var(--sun); }
.spark { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; fill: var(--sun); }
.news-btn { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--paper); font: 700 20px/1 var(--body); cursor: pointer; }
.news-btn:hover { background: rgba(255, 248, 238, 0.12); }
@media (max-width: 479px) { .news-msg a { display: none; } }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 8px 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { flex: none; width: 35px; height: 30px; }
.wordmark { font: 800 21px/1 var(--head); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav { display: none; }
.cart-link {
    position: relative; display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 800; text-decoration: none;
}
.cart-link svg { flex: 0 0 22px; max-width: none; }
/* On a phone the cart is its icon and count; the word stays for screen readers. */
.cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cart-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px;
    border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 800;
}
.menu-button {
    flex: none; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 12px;
    background: var(--ink); color: var(--paper); font: 800 16px/1 var(--body); cursor: pointer;
}
.menu-panel {
    position: fixed; inset: 0; z-index: 50; overflow-y: auto;
    padding: 16px; background: var(--paper);
}
.menu-panel ul { list-style: none; margin: 24px 0 0; padding: 0; }
.menu-panel li a {
    display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-soft);
    color: var(--ink); font: 800 24px/1.2 var(--head); text-decoration: none;
}
.menu-close, .dialog-close {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-left: auto;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 700 16px/1 var(--body); cursor: pointer;
}
.menu-panel .menu-close { display: flex; }
@media (max-width: 370px) {
    .header-inner { padding: 8px 12px; }
    .wordmark { font-size: 19px; }
}
@media (min-width: 480px) {
    .header-inner { gap: 12px; }
    .brand { gap: 10px; }
    .top-bar { padding: 4px 10px; }
    .brand img { width: 44px; height: 38px; }
    .wordmark { font-size: 26px; }
    .cart-link { padding: 0 12px; }
    .menu-button { padding: 0 14px; }
    .cart-word { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 900px) {
    .header-inner { padding: 10px 24px; gap: 20px; }
    .site-nav { display: flex; gap: 6px; }
    .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 10px; }
    .site-nav a:hover { background: var(--card); }
    .menu-button { display: none; }
}

/* ───────── footer ───────── */
.site-footer { margin-top: 64px; background: var(--ink); color: #D5DAE8; font-size: 14px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px 40px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--sun); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 16px; color: var(--paper); text-decoration: none; }
.footer-brand .wordmark { color: var(--paper); font-size: 24px; }
.footer-mark { display: inline-flex; padding: 6px 8px; border-radius: 12px; background: var(--paper); }
.footer-mark img { display: block; width: 54px; height: 46px; }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0 0 16px; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 10px; }
.map-credit { font-size: 14px; }

/* ───────── page not found ───────── */
.not-found { max-width: 760px; margin: 0 auto; padding: 64px 16px 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ───────── questions, shipping, privacy and terms ───────── */
.prose-page { max-width: 780px; margin: 0 auto; padding: 40px 16px 8px; }
.prose-page h1 { margin-bottom: 16px; }
.prose-page h2 { margin-top: 36px; }
.prose-page ul { padding-left: 22px; }
.prose-page li { margin-bottom: 10px; }
.updated { color: var(--slate); font-size: 16px; }
.map-credit-full { margin-top: 40px; color: var(--slate); font-size: 16px; }
.faq-group { margin-top: 28px; }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; padding: 12px 0; cursor: pointer; font-weight: 800; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 800 22px/1 var(--head); color: var(--accent); }
.qa[open] summary::after { content: "−"; }
.qa p { margin: 0 0 16px; color: var(--slate); }
.page-cta { margin-top: 32px; }

/* ───────── pictures and frames (spec §13.1: prints without frames, the frame drawn here) ───────── */
.pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #F7EFE2; }
.pic-missing { background: #F7EFE2 repeating-linear-gradient(135deg, transparent 0 14px, rgba(31, 42, 68, 0.04) 14px 15px); }
picture { display: block; }
.framed {
    position: relative; padding: 2.8%;
    background: var(--frame-paint, linear-gradient(135deg, #2A2A2C, #151516));
    box-shadow: 0 18px 38px rgba(31, 42, 68, 0.22), 0 3px 8px rgba(31, 42, 68, 0.16);
}
.frame-black { --frame-paint: linear-gradient(135deg, #2A2A2C, #151516); }
.frame-white { --frame-paint: linear-gradient(135deg, #FFFFFF, #ECEBE6); }
.frame-red { --frame-paint: #C8412F; }
.frame-orange { --frame-paint: #E8833A; }
.frame-yellow { --frame-paint: #F2C94C; }
.frame-pink { --frame-paint: #F2A7BE; }
.frame-lilac { --frame-paint: #B9A6DE; }
.frame-mint { --frame-paint: #A8DCC8; }
.frame-forest { --frame-paint: #2F5D46; }
.frame-ocean { --frame-paint: #2B6C9A; }
.wall { position: relative; overflow: hidden; border-radius: 24px; background: var(--wall); padding: 32px 22px 64px; }
.wall::before { content: ""; position: absolute; left: 0; top: 0; width: 60%; height: 86%; background: linear-gradient(115deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); pointer-events: none; }
.wall .framed { max-width: 520px; margin: 0 auto; }
.wall .plant { position: absolute; right: 10px; bottom: 56px; width: 74px; height: auto; }

/* ───────── photo views (redesign spec §6.1): Printify's photo + the print × its light ───────── */
.view { position: relative; overflow: hidden; width: 100%; background: #FFFFFF; }
.view-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.plate, .plate > img, .plate .art, .plate .art > img, .scene, .scene > img { position: absolute; left: 0; top: 0; max-width: none; }
.plate { width: 1000px; height: 1000px; transform-origin: 0 0; }
.plate > img, .plate .art, .plate .art > .light { width: 1000px; height: 1000px; }
.plate .art { isolation: isolate; mix-blend-mode: plus-lighter; }
@supports not (mix-blend-mode: plus-lighter) { .plate .art { mix-blend-mode: screen; } }   /* close: the base is near black under the print */
.plate .art > .map { width: 1000px; height: 750px; transform-origin: 0 0; mix-blend-mode: multiply; }
.plate .art > .map.big { width: 2800px; height: 2100px; }
.scene { width: 1536px; height: 1024px; }
.scene > .scene-room { width: 100%; height: 100%; }
.hero-scene { width: 1024px; height: 1024px; }
/* A framed print hung on a room photo: multiplied, so the white of Printify's shot vanishes and its
   shadow falls on the wall; clipped, or a faint square shows at the plate's edges. */
.scene-frame { position: absolute; mix-blend-mode: multiply; filter: brightness(1.02); clip-path: inset(14% 5% 8% 5%); }
.scene-frame .art { clip-path: inset(20% 10% 20% 10%); }
/* The sofa room's two layers (photo.js P.room): Printify's shot alone in .scene-frame (the shadow), then
   the frame and print on top, unblended and cut to the frame's edge, so they keep their own colours. */
.scene-frame > .shadow { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; max-width: none; transform-origin: 0 0; }
.scene-print { position: absolute; }
.hero-frame { left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 0 0; }
/* Until its print arrives, a photo shows alone, with a quiet shimmer. */
.view.waiting .art { visibility: hidden; }
.view.waiting::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
    background-size: 220% 100%; animation: peaks-shimmer 1.6s linear infinite;
}
@keyframes peaks-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.view-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 248, 238, 0.92); color: var(--ink); font: 700 13px/1.3 var(--body); }

/* ───────── home and occasion pages ───────── */
.hero { padding: 28px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.lede { font-size: 18px; line-height: 1.5; color: var(--slate); max-width: 32em; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 17px; }
/* "See it before you buy." under the hero button (copy-voice, 2026-11-02): bold, with a sun-yellow star in front. */
.see-first { display: flex; align-items: center; gap: 7px; margin: -4px 0 12px; color: var(--ink); font: 700 15px/1.3 var(--body); }
.see-star { flex: none; width: 18px; height: 18px; fill: var(--sun); }
.price-line { font-weight: 800; }
/* The home hero (redesign spec §5): three features, each a line icon over its words, divided by
   hairlines; the photo with a route doodle and a sticker on it. */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 460px; margin: 22px 0 0; padding: 0; list-style: none; }
.features li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; color: var(--ink); font: 700 14px/1.3 var(--body); text-align: center; }
.features li + li { border-left: 1px solid var(--line); }
.feature-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-pin { color: var(--accent); }
.feature-box { color: var(--lagoon); }
.feature-heart { color: var(--sun); }
.hero-pic { position: relative; padding: 18px 10px 26px; }
.hero-pic .pic { aspect-ratio: 1024 / 900; border-radius: 24px; box-shadow: 0 20px 50px rgba(31, 42, 68, 0.18); }
.hero-route { position: absolute; top: -3%; left: 6%; width: 34%; height: auto; transform: rotate(-4deg); }
.hero-sticker { position: absolute; top: -4%; right: -3%; width: 26%; height: auto; transform: rotate(9deg); filter: drop-shadow(0 6px 10px rgba(31, 42, 68, 0.22)); }
.band { padding: 48px 0; }
.band.white { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band.dark { background: var(--ink); color: var(--paper); }
.band.dark h2 { color: var(--paper); }
.h-next { margin-top: 40px; }
.narrow { max-width: 820px; }
.steps { display: grid; gap: 16px; list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; }
.steps li { counter-increment: step; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-soft); }
.steps li::before {
    content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 10px;
    border-radius: 10px; background: var(--accent); color: #FFFFFF; font: 800 17px/1 var(--head);
}
.steps li:nth-child(2)::before { background: var(--sun); color: var(--ink); }
.steps li:nth-child(3)::before { background: var(--lagoon); color: var(--ink); }
.steps p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.45; }
/* The home page's steps: each illustration beside its words on a phone, above them from 700 px. */
.steps.with-art li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.steps.with-art .step-art { grid-column: 1; grid-row: 1 / span 3; width: 96px; height: 96px; object-fit: contain; }
.steps.with-art li::before, .steps.with-art h3, .steps.with-art p { grid-column: 2; }
.steps.with-art li::before { margin-bottom: 0; }
.steps.with-art h3 { margin: 4px 0 2px; }
.cards { display: grid; gap: 18px; list-style: none; margin: 24px 0 0; padding: 0; }
.card { display: block; height: 100%; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.card .pic { border-radius: 8px; margin-bottom: 12px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.45; }
.occasion-card { background: #2A3757; border-color: #2A3757; color: var(--paper); }
.occasion-card p { color: #D5DAE8; }
.occasion-card:hover { background: #33416A; color: var(--paper); }
.occasion-card .pic { aspect-ratio: 1; object-fit: cover; }
/* How Peaks of Us works (2026-10-27): four numbered stops on a dotted sunflower trail that climbs left to
 * right, over a ridge in the next band's cream, so the mountains rise into "Three styles". On phones the
 * trail runs down the left, one stop a row. The numerals are the logo's colours inside a navy outline. */
.band.how-trail { position: relative; overflow: hidden; padding-bottom: 96px; border-bottom: 0; }
.how-trail h2 { margin-bottom: 6px; }
.how-lede { margin: 0 0 4px; color: var(--slate); font-size: 17px; }
.trail-wrap { position: relative; }
.trail-path { display: none; }
.trail { position: relative; display: grid; gap: 22px; list-style: none; margin: 26px 0 0; padding: 0 0 0 4px; }
.trail::before { content: ""; position: absolute; left: 28px; top: 40px; bottom: 40px; border-left: 4px dotted var(--sun); }
.trail li { position: relative; display: grid; grid-template-columns: 60px 84px minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.trail-num { grid-row: 1 / span 2; position: relative; z-index: 1; font: 800 54px/1 var(--head); color: var(--coral); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-align: center; }
.trail li:nth-child(2) .trail-num { color: var(--sun); }
.trail li:nth-child(3) .trail-num { color: var(--lagoon); }
.trail li:nth-child(4) .trail-num { color: var(--accent); }
.trail-art { grid-row: 1 / span 2; width: 84px; height: 84px; object-fit: contain; }
.trail h3 { margin: 0; align-self: end; }
.trail p { margin: 0; align-self: start; color: var(--slate); font-size: 15px; line-height: 1.45; }
.trail-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; }
.trail-ridge path { fill: var(--paper); }
@media (min-width: 900px) {
    .trail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding: 0; }
    .trail::before { display: none; }
    .trail-path { display: block; position: absolute; left: 0; right: 0; top: 120px; width: 100%; height: 120px; }
    .trail-path path { fill: none; stroke: var(--sun); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.1 14; vector-effect: non-scaling-stroke; }
    .trail li { display: block; text-align: center; }
    .trail li:nth-child(2) { margin-top: -18px; }
    .trail li:nth-child(3) { margin-top: -36px; }
    .trail li:nth-child(4) { margin-top: -54px; }
    .trail-num { display: inline-block; padding: 0 10px; font-size: 72px; }
    .trail-art { display: block; width: 168px; height: 168px; margin: 4px auto 10px; }
    .trail h3 { margin-bottom: 6px; }
    .trail-ridge { height: 90px; }
}
/* Prices: the heading beside its sticker; each card a photo on top and its order links at the bottom. */
.h-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.h-row h2 { margin: 0; }
.h-sticker { width: 92px; height: auto; transform: rotate(8deg); }
.price-card { display: flex; flex-direction: column; }
.price-card .pic { aspect-ratio: 4 / 3; object-fit: cover; background: #FFFFFF; }
.price-card .card-ctas { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; }
.card-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--accent); font: 800 15px/1.2 var(--body); text-decoration: none; }
.card-cta:hover { color: var(--accent-hover); text-decoration: underline; }
.price-card .price { margin: 2px 0; font: 800 28px/1.15 var(--head); color: var(--ink); }
.price-card .price.two { font-size: 20px; line-height: 1.3; }
.price-card .launch { margin-bottom: 8px; color: var(--accent); font-weight: 700; font-size: 14px; }
.promise-list { list-style: none; margin: 16px 0; padding: 0; }
.promise-list li { margin-bottom: 10px; padding-left: 28px; position: relative; }
.promise-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lagoon); font-weight: 800; }
.promise-grid { display: grid; gap: 20px; align-items: center; }
.promise-badge { justify-self: center; width: 170px; height: auto; }
.ideas { display: grid; gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
.ideas li { padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-soft); font-weight: 700; }
.two-up { display: grid; gap: 28px; }
.closing { position: relative; overflow: hidden; padding: 56px 0; background: var(--sun-soft); text-align: center; }
.closing-tag { position: absolute; top: -12px; right: 6%; display: none; width: 120px; height: auto; transform: rotate(7deg); }
.closing h2 { margin-bottom: 18px; }
/* The "rising" drawing above the closing heading, where the Christmas tag used to be (2026-10-27). */
.closing-art { display: block; width: 112px; height: auto; margin: -18px auto 6px; }
@media (min-width: 900px) { .closing-art { width: 132px; } }

/* ───────── reviews (drawn by common.js, only when there are any) ───────── */
.reviews { padding: 48px 0; }
.reviews-summary { font-weight: 800; }
.review-list { display: grid; gap: 16px; list-style: none; margin: 20px 0; padding: 0; }
.review { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); }
.stars { color: #B7791F; font-size: 20px; letter-spacing: 2px; }
.review-body { margin: 8px 0; white-space: pre-line; }   /* a review's own line breaks, as Thread 3 keeps them */
.review-who { margin: 0; font-weight: 800; }
.review-meta { margin: 2px 0 0; color: var(--slate); font-size: 16px; }
.review-photo { display: block; margin-top: 12px; border-radius: 10px; width: 100%; max-width: 320px; height: auto; }
.link-button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font: 800 16px/1 var(--body); text-decoration: underline; cursor: pointer; }

@media (min-width: 700px) {
    .top-bar { font-size: 14px; }
    .cards.three, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps.with-art li { grid-template-columns: minmax(0, 1fr); }
    .steps.with-art .step-art { grid-column: auto; grid-row: auto; width: 120px; height: 120px; }
    .steps.with-art li::before, .steps.with-art h3, .steps.with-art p { grid-column: auto; }
    .promise-grid { grid-template-columns: minmax(0, 1fr) 200px; }
    .closing-tag { display: block; }
    .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .hero { padding: 40px 0 56px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
    .wall { padding: 48px 28px 88px; }
    .wall .plant { width: 110px; bottom: 80px; right: 18px; }
    .band { padding: 56px 0; }
    .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .two-up { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ───────── the designer (spec §5.1) ───────── */
.designer-page { padding-bottom: 180px; }
.designer:not(.ready) { min-height: 100vh; }   /* the screen it builds takes the space at once: nothing below jumps */
.noscript { max-width: 640px; margin: 32px auto; padding: 0 16px; }
/* The gallery (redesign spec §6.3): the stage on its soft wall, thumbnails under it, no box around both.
   On a phone the gallery is pinned on top and fits about 42 % of the screen with its thumbnails
   (22 % while the keyboard is up, with the thumbnails put away). */
.designer { --thumbs-h: calc((100vw - 56px) * 0.1875 + 19px); }
.designer.no-thumbs { --thumbs-h: 0px; }   /* the digital file: no thumbnails, a taller stage */
.pinned { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.gallery { padding: 12px 16px 10px; }
.stage { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #F1E9DC 0%, #EADFCD 100%); }
.stage-inner { position: relative; width: min(100%, calc((42vh - 60px - var(--thumbs-h)) * 4 / 3)); margin: 0 auto; }
@supports (height: 1svh) { .stage-inner { width: min(100%, calc((42svh - 60px - var(--thumbs-h)) * 4 / 3)); } }
.designer.kb .stage-inner { width: min(100%, calc((22vh - 50px) * 4 / 3)); }
.designer.kb .thumbs { display: none; }
.preview { width: 100%; aspect-ratio: 4 / 3; }
.preview canvas { display: block; width: 100%; height: auto; box-shadow: 0 14px 30px rgba(31, 42, 68, 0.22), 0 2px 6px rgba(31, 42, 68, 0.14); }
.stage-photo { position: absolute; inset: 0; z-index: 1; }
.stage-photo .view.cover { position: absolute; inset: 0; width: auto; }
.example-tag { position: absolute; z-index: 2; left: 14px; top: 14px; max-width: calc(100% - 28px); margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.3; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { display: block; padding: 0; border: 0; background: none; color: var(--slate); font: 600 12px/1.25 var(--body); text-align: center; cursor: pointer; }
.thumb[aria-pressed="true"] { color: var(--ink); font-weight: 800; }
.tbox { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 4px; overflow: hidden; border: 1.5px solid rgba(31, 42, 68, 0.12); border-radius: 8px; background: #FFFFFF; }
.thumb[aria-pressed="true"] .tbox { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.tbox > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-label { display: block; }
/* The drawing moment (redesign spec §7.5): peaks rising out of a map, a turning sun, a speech bubble. */
.veil { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; background: rgba(255, 248, 238, 0.86); text-align: center; }
.veil-rise { width: 54%; max-width: 300px; height: auto; min-height: 0; object-fit: contain; transform-origin: 50% 90%; animation: peaks-rise 1.8s ease-in-out infinite alternate; }
.veil-sun { position: absolute; right: 8%; top: 8%; width: 16%; height: auto; animation: peaks-turn 9s linear infinite; }
.bubble { position: relative; flex: none; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); font: 800 16px/1.3 var(--body); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--card); transform: translateX(-50%) rotate(45deg); }
@keyframes peaks-rise { from { transform: translateY(14px) scaleY(0.82); } to { transform: none; } }
@keyframes peaks-turn { to { transform: rotate(360deg); } }
@keyframes peaks-spin { to { transform: rotate(360deg); } }
.preview-error { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(255, 248, 238, 0.95); text-align: center; font-weight: 700; }
.preview-error.designer-error { position: static; min-height: 40vh; }
/* The form (redesign spec §7.1; one-page spec §3.1): the four steps on one page, each its own card under
   a numbered heading, holding inset grouped lists after Apple's HIG: section headers above, white groups
   of rows with hairlines inset from the leading edge, footers below. */
.form-col { padding: 0 16px 24px; }
.form-card { padding: 0; border: 0; background: none; }
.panels { padding: 0; }
.panel { display: flex; flex-direction: column; padding: 14px 10px; border: 1px solid var(--line-soft); border-radius: 22px; background: #F4EEE4; }
.panel + .panel { margin-top: 14px; }
.step-h { display: flex; align-items: center; gap: 10px; margin: 0 6px 8px; font: 800 22px/1.15 var(--head); letter-spacing: -0.02em; outline: none; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 16px/30px var(--body); letter-spacing: 0; text-align: center; }
.gh { margin: 14px 14px 6px; color: var(--ui-muted); font: 700 12px/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; }
.step-h + .panel-msg + .gh { margin-top: 4px; }
/* "Up to 9 places, one price." under the step 1 heading, in line with its title. */
.step-h + .panel-msg + .gf { margin: -2px 6px 10px 46px; }
.gf { margin: 7px 14px 0; color: var(--ui-muted); font: 400 13px/1.4 var(--body); }
.gf.ok { color: var(--ok); font-weight: 700; }
.group { --sep: rgba(31, 42, 68, 0.12); margin: 0; padding: 0; overflow: hidden; border-radius: 12px; background: #FFFFFF; list-style: none; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px 6px 14px; border: 0; background-color: transparent; color: var(--ink); font: 400 16px/1.3 var(--body); text-align: left; }
button.row { cursor: pointer; }
button.row:hover { background-color: #FBF8F3; }
/* The focus ring, drawn inside a full-width row's edges (the group's rounded corners would cut it off):
   sun, ink, sun, as outside. */
.group .row:focus-visible { outline-offset: -5px; box-shadow: inset 0 0 0 6px var(--sun); }
/* Messages, notes and hints, as the cart and review pages use them; the form card's own sizes below. */
.panel-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #FCE9E6; color: var(--error); font-weight: 700; }
.form-card .panel-msg { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.note { color: var(--slate); font-size: 16px; margin: 10px 0; }
.hint { color: var(--slate); font-size: 16px; margin: 6px 0 0; }
.row-edit .hint { font-size: 14px; }
/* Places (redesign spec §7.2; one-page spec §3.2): one group of rows, hairlines inset past the number
   badge, the place field last, under a full hairline once there are rows. */
.place-rows { margin: 0; padding: 0; list-style: none; }
.place-row { position: relative; }
.place-row + .place-row::before { content: ""; position: absolute; top: 0; right: 0; left: 50px; height: 1px; background: var(--sep); }
.place-row.row-alert { box-shadow: inset 0 0 0 2px var(--error); }
.row-main { gap: 8px; padding-right: 8px; }
.row-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun-soft); color: var(--ink); font: 800 13px/26px var(--body); text-align: center; }
.row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.no-name { color: var(--ui-muted); font-size: 14px; font-weight: 400; }
.icon-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.icon-btn svg { display: block; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; }
/* Edit (Done while open): a soft accent pill (one-page spec §3.3). */
.chip-button.edit-btn { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); font: 700 14px/1 var(--body); }
.chip-button.edit-btn:hover { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-hover); }   /* accent on the 0.16 tint is 4.1:1; this is 5.4:1 */
.remove-btn { color: #7A7F90; }
.remove-btn:hover { color: var(--error); background: rgba(166, 48, 42, 0.08); }
.row-spin { flex: none; width: 22px; height: 22px; margin-right: 8px; border: 3px solid var(--line); border-top-color: var(--lagoon); border-radius: 50%; animation: peaks-spin 0.9s linear infinite; }
.row-edit { padding: 4px 14px 14px 50px; }
.row-edit label, .field label { display: block; margin-bottom: 6px; font-weight: 800; }
/* The editor's three groups, "Name on the print", "Map view" and "Print order", each titled and under a
   hairline (one-page spec §3.3). */
.row-edit > label { padding-top: 12px; border-top: 1px solid var(--sep); }
.row-zoom, .row-move { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sep); }
.zoom-label { flex: 0 0 100%; margin: 0; font-size: 16px; font-weight: 800; }
.chip-button.zoom-btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
.row-edit .chip-button:disabled { opacity: 0.4; cursor: not-allowed; }   /* − Wider, + Closer, ↑ Move up, ↓ Move down at their limits */
/* The place field, always open under the list: its label, the field with an accent border (greyed out
   when the print is full), the help line in the caption style, the answers under it. */
.inline-search { position: relative; padding: 12px; }
.place-rows:not([hidden]):not(:empty) + .inline-search { border-top: 1px solid var(--sep); }
.inline-label { display: block; margin: 0 2px 6px; font: 800 15px/1.3 var(--body); }
.designer .inline-search input[type="search"] { min-height: 52px; border-color: var(--accent); border-width: 2px; }
.designer .inline-search input[type="search"]:disabled { border-color: #C9BFAE; background: #F4EEE4; }
.inline-search .search-hint { min-height: 0; margin: 8px 2px 0; font-size: 14px; }
.inline-search .search-hint.idle { color: var(--ui-muted); font-weight: 400; font-size: 13px; line-height: 1.4; }
.inline-search .results { margin: 8px 0 0; }
.inline-search .results:empty { display: none; }
.inline-search .result { min-height: 52px; padding: 8px 12px; background: #FBF8F3; }
.inline-search .result strong { font-size: 16px; }
.inline-search .result span { color: var(--ui-muted); font-size: 14px; }
.powered { margin: 4px 14px 0; font-size: 12px; }
.powered a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ui-muted); }
.undo { margin: 10px 0 0; padding: 8px 14px; border-radius: 12px; background: var(--sun-soft); font-size: 15px; }
.designer input[type="text"], .designer input[type="search"] {
    width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #B9AA90; border-radius: 10px;
    background: #FFFFFF; color: var(--ink); font: 400 16px/1.3 var(--body);
}
.designer input::placeholder { color: #6B7080; }
.counter { margin: 4px 0 0; text-align: right; font-size: 16px; color: var(--slate); }   /* as the review page uses them */
.warn { margin: 4px 0 0; color: var(--error); font-size: 16px; font-weight: 700; }
.form-card .counter, .form-card .warn { font-size: 13px; }
.form-card .counter { color: var(--ui-muted); }
/* Words (redesign spec §7.2): a 104 px bold label and a borderless field per row; the counter and the
   warning under their row; a focused row gets a 3 px accent mark on its leading edge. */
.word-field { position: relative; }
.word-field + .word-field::before { content: ""; position: absolute; top: 0; right: 0; left: 14px; height: 1px; background: var(--sep); }
.word-row { gap: 0; }
.word-row:focus-within { box-shadow: inset 3px 0 0 var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.word-row label { flex: none; width: 104px; font-size: 15px; font-weight: 700; }
.designer .word-row input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; min-height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.designer .word-row input[type="text"]:focus-visible { box-shadow: none; }   /* the row shows the focus: its tint and accent mark */
.word-field .counter, .word-field .warn { margin: -4px 0 0; padding: 0 12px 8px 118px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.chips .chip-button { min-height: 36px; padding: 0 12px; border: 0; background: rgba(31, 42, 68, 0.07); font: 600 14px/1.2 var(--body); }
.chips .chip-button:hover { background: rgba(31, 42, 68, 0.12); }
/* Look (redesign spec §7.2): picture tiles, 4:3 with a hairline ring; the chosen one ringed in accent,
   with a check badge and a bold label. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.tile { position: relative; padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px/1.25 var(--body); text-align: center; cursor: pointer; }
.tile[aria-pressed="true"] { font-weight: 800; }
.tile:disabled { opacity: 0.4; cursor: not-allowed; }
.tile-pic { display: block; aspect-ratio: 4 / 3; margin-bottom: 6px; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px rgba(31, 42, 68, 0.12); background-size: cover; background-position: center; }
.tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
/* A Look tile's new picture (designer.js showLook): hidden at once, then fading in over the old one,
   which the tile keeps as its background. */
.tile-pic img.fading { opacity: 0; transition: none; }
.tile[aria-pressed="true"] .tile-pic { box-shadow: 0 0 0 3px var(--accent); }
.tile-badge { position: absolute; top: 6px; right: 6px; display: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #FFFFFF; }
.tile[aria-pressed="true"] .tile-badge { display: flex; }
.tile-label { display: block; }
.shape-swatch { display: flex; align-items: center; justify-content: center; background: #F7EFE2; color: var(--ink); font-size: 26px; }
.shape-mountains .shape-swatch::before { content: "▲▲"; }
.shape-circle .shape-swatch::before { content: "●"; }
.shape-heart .shape-swatch::before { content: "♥"; }
.swatch-confetti { background: linear-gradient(90deg, #F26B5B 0 33%, #F6B93B 33% 66%, #2BB3A3 66%); }
.swatch-atlas { background: linear-gradient(90deg, #EADBBE, #C9A57A); }
.swatch-midnight { background: linear-gradient(90deg, #1F2A44 0 62%, #D9B45A 62%); }
/* Frame (redesign spec §7.2): finish rows with a trailing price and a checkmark; the frame colour as a
   value row over its swatches; each size a small print drawn to scale on a soft wall. */
.finishes > .row, .color-box .swatches { position: relative; }
.finishes > .row + .row::before, .color-box .swatches::before { content: ""; position: absolute; top: 0; right: 0; left: 14px; height: 1px; background: var(--sep); }
.row .grow { flex: 1 1 auto; min-width: 0; }
.finish .name { display: block; font-weight: 700; }
.finish .sub { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 13px; }
.row .val { flex: none; color: var(--ui-muted); font-size: 15px; }
.finish[aria-pressed="true"] .val { color: var(--ink); font-weight: 700; }
svg.check { flex: none; color: var(--accent); }   /* svg: the review page has a label.check */
svg.check.off { visibility: hidden; }
.color-box { margin-top: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
.swatch { width: 36px; height: 36px; padding: 0; border: 1.5px solid rgba(31, 42, 68, 0.22); border-radius: 50%; background: var(--paint); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--accent); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sizebox { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 10px; background: linear-gradient(180deg, #F3ECE1, #E9DFCF); box-shadow: 0 0 0 1px rgba(31, 42, 68, 0.12); }
.size-tile[aria-pressed="true"] .sizebox { box-shadow: 0 0 0 3px var(--accent); }
.mini { display: block; aspect-ratio: 4 / 3; background: #FFFFFF; box-shadow: 0 4px 10px rgba(31, 42, 68, 0.22); }
.mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini-16x12 { width: 55%; }
.mini-24x18 { width: 82%; }
.mini.frame { padding: 5%; }
.mini.canvas { box-shadow: 3px 4px 0 rgba(31, 42, 68, 0.22), 0 4px 10px rgba(31, 42, 68, 0.18); }
.sz { display: block; }
.size-price { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 13px; font-weight: 500; }
.reviews-line { margin: 14px 14px 0; font-weight: 700; }
/* The price bar (redesign spec §7.3): on a phone, fixed at the bottom and translucent. */
.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -4px 12px rgba(31, 42, 68, 0.08);
}
.bar-row { display: flex; align-items: center; gap: 14px; }
.bar-text { flex: 1; min-width: 0; }
.bar-price { margin: 0; font: 800 24px/1.15 var(--head); }
/* Beside the price, what it is for (one-page spec §3.4): a link to step 4. */
.bar-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.bar-summary { min-height: 24px; padding: 0; border: 0; background: none; color: var(--accent); font: 700 13px/1.3 var(--body); text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bar-launch, .bar-arrive, .bar-xmas { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.35; }
.bar-xmas { color: var(--accent); }
.add-to-cart { flex: none; min-width: 0; padding-left: 16px; padding-right: 16px; }
/* On a phone the button is at most 168 px wide; "Add your first place" may wrap to two lines. */
@media (max-width: 899px) { .add-to-cart { max-width: 168px; white-space: normal; line-height: 1.15; } }
.bar-msg { margin: 0 0 8px; color: var(--error); font-size: 14px; font-weight: 700; }
.reviews-panel { position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 16px; background: var(--paper); }
.search-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.search-head h2 { margin: 0; font-size: 26px; }
.search-field { position: relative; }
.search-field input[type="search"] { padding-right: 46px; }
/* Empty, the place field never shows the spinner: its placeholder takes that room, and a long one ends
   in an ellipsis rather than mid-word. */
.designer .inline-search input[type="search"]:placeholder-shown { padding-right: 12px; text-overflow: ellipsis; }
.search-spin { position: absolute; top: 50%; right: 14px; width: 22px; height: 22px; margin-top: -11px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: peaks-spin 0.8s linear infinite; }
/* Under 3 letters the hint counts down beside three dots that fill as letters are typed. */
.search-hint { display: flex; align-items: center; gap: 10px; min-height: 1.5em; margin: 8px 0; color: var(--ink); font-weight: 600; }
.letter-dots { display: inline-flex; gap: 5px; }
.letter-dots i { width: 8px; height: 8px; border-radius: 50%; background: #D9CFBF; }
.letter-dots i.on { background: var(--accent); }
.results { display: grid; gap: 8px; list-style: none; margin: 8px 0; padding: 0; }
.results.busy { opacity: 0.45; transition: opacity 0.2s; }
.result {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 56px; padding: 10px 14px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-align: left; font: 400 16px/1.3 var(--body); cursor: pointer;
}
.result strong { font-size: 18px; }
.ask-panel { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(31, 42, 68, 0.45); }
.dialog-box { max-width: 520px; padding: 24px; border-radius: 20px; background: var(--paper); }
.dialog-box h2 { font-size: 26px; }
.ask-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
body.dialog-open { overflow: hidden; }
@media (min-width: 900px) {
    .designer-page { padding-bottom: 24px; }
    .designer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 32px; max-width: 1200px; margin: 0 auto; padding: 24px; align-items: start; }
    .pinned { position: sticky; top: 16px; z-index: auto; background: none; }
    .gallery { padding: 0; }
    .form-col { display: flex; flex-direction: column; gap: 14px; padding: 0; }
    .stage { padding: 40px; border-radius: 24px; }
    .stage-inner { width: 100%; }
    .thumbs { gap: 10px; margin-top: 12px; }
    .thumb { font-size: 13px; }
    /* the bar stays in view at the bottom of the form column while it scrolls (one-page spec §3.4) */
    .bottom-bar { position: sticky; bottom: 16px; z-index: 5; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 28px rgba(31, 42, 68, 0.16); }
    .reviews-panel { inset: 40px auto auto 50%; transform: translateX(-50%); width: 640px; max-height: calc(100vh - 80px); border-radius: 20px; box-shadow: 0 24px 60px rgba(31, 42, 68, 0.3); }
}

/* ───────── the cart ───────── */
.cart-page { max-width: 720px; padding-top: 24px; padding-bottom: 8px; }
.cart-page h1:focus { outline: none; }
.cart-items { display: grid; gap: 12px; list-style: none; margin: 0 0 8px; padding: 0; }
.cart-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); }
.cart-snap { display: block; width: 112px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line-soft); }
/* The picture is a button that opens the zoom; a magnifier badge in its corner says so. */
.cart-zoom { position: relative; display: block; align-self: start; width: 112px; padding: 0; border: 0; border-radius: 6px; background: none; line-height: 0; cursor: zoom-in; }
.zoom-badge { position: absolute; right: 5px; bottom: 5px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 1px 4px rgba(31, 42, 68, 0.25); }
.cart-zoom:hover .zoom-badge { background: #FFFFFF; color: var(--accent); }
.zoom-panel { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 16px 20px; background: rgba(20, 26, 40, 0.86); }
.zoom-img { display: block; width: auto; max-width: min(100%, 1200px); height: auto; max-height: calc(100vh - 150px); border-radius: 6px; background: #FFFFFF; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.zoom-cap { margin: 0; color: #FFFFFF; text-align: center; }
.zoom-cap strong { display: block; font-weight: 800; }
.zoom-cap span { display: block; color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.zoom-close { position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--ink); font: 800 15px/1 var(--body); cursor: pointer; }
.cart-item-title { margin: 0 0 2px; font: 800 18px/1.3 var(--body); letter-spacing: 0; }
.cart-item p { margin: 0; font-size: 16px; line-height: 1.45; }
.cart-item-names { color: var(--slate); overflow-wrap: anywhere; }
.cart-item-digital { color: var(--ok); font-weight: 700; }
.cart-remove { margin-top: 2px; padding: 0; }
.design-another a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.promo { margin: 4px 0 12px; }
.promo-form { margin-top: 8px; }
.promo-form label { display: block; margin-bottom: 6px; font-weight: 800; }
.promo-row { display: flex; gap: 8px; }
.promo-row input {
    flex: 1; min-width: 0; min-height: 52px; padding: 10px 12px; border: 1.5px solid #B9AA90; border-radius: 10px;
    background: #FFFFFF; color: var(--ink); font: 700 18px/1.3 var(--body); text-transform: uppercase;
}
.field-msg { margin: 6px 0 0; color: var(--error); font-weight: 700; font-size: 16px; }
.promo-set { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-weight: 800; }
.promo-note { margin: 4px 0 0; color: var(--error); font-size: 16px; font-weight: 700; }
.totals { margin: 0 0 8px; padding: 12px 0 0; border-top: 1px solid var(--line-soft); }
.total-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.total-line dt, .total-line dd { margin: 0; }
.total-line.grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); font: 800 24px/1.2 var(--head); }
.tax-note, .arrival { margin: 0 0 4px; color: var(--slate); font-size: 16px; }
.arrival.xmas { color: var(--accent); font-weight: 700; }
.checkout { margin-top: 18px; }
.card-note { margin: 8px 0 18px; color: var(--slate); font-size: 16px; text-align: center; }
.paypal { margin: 0 0 18px; }
.paypal-test { margin: 0 0 8px; color: var(--accent); font-size: 16px; font-weight: 800; text-align: center; }
.paypal-buttons { min-height: 48px; }
.promise-line { margin: 0; text-align: center; }
.promise-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.cart-empty, .cart-failed { padding: 24px 0; }
.cart-loading { color: var(--slate); }
@media (min-width: 600px) {
    .cart-item { grid-template-columns: 160px minmax(0, 1fr); }
    .cart-snap { width: 160px; }
}

/* ───────── the thank-you page ───────── */
.thanks-page { max-width: 720px; padding-top: 24px; padding-bottom: 8px; }
/* The heading beside the parcel (redesign spec §8); a photo of each design across the top of its card. */
.thanks-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.thanks-parcel { flex: none; width: 96px; height: auto; transform: rotate(-6deg); }
.thanks-page h1 { margin: 0; font-size: 28px; }
.thanks-item.has-photo { padding: 0; overflow: hidden; }
.thanks-photo .view, .thanks-flat { display: block; width: 100%; }
.thanks-flat { height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-soft); }
.thanks-text { padding: 14px 16px; }
.thanks-status { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--sun-soft); font-weight: 700; }
.order-line { margin: 0 0 14px; overflow-wrap: anywhere; }
.thanks-items { display: grid; gap: 12px; list-style: none; margin: 0 0 14px; padding: 0; }
.thanks-item { padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); }
.thanks-item-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.thanks-snap { display: block; width: 112px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line-soft); }
.thanks-names { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.thanks-title { margin: 0; color: var(--slate); font-size: 16px; }
.downloads { display: grid; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.dl {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px;
    border-radius: 12px; background: var(--ink); color: #FFFFFF; font-weight: 800; text-decoration: none;
}
.dl:hover { background: #2C3A5C; color: #FFFFFF; }
.dl.waiting { background: var(--slate); }
.links-note { color: var(--slate); font-size: 16px; }
@media (min-width: 900px) {
    .thanks-page h1 { font-size: 32px; }
}
@media (min-width: 600px) {
    .thanks-item-top { grid-template-columns: 160px minmax(0, 1fr); }
    .thanks-snap { width: 160px; }
}

/* ───────── the review page ───────── */
.review-page { max-width: 640px; padding-top: 24px; padding-bottom: 8px; }
.review-page .lede { font-size: 18px; }
.review-design { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); }
.review-design img { flex: none; width: 96px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line-soft); }
.review-design p { margin: 0; font-size: 16px; }
.review-design-names { font-weight: 800; overflow-wrap: anywhere; }
.review-design-title { color: var(--slate); }
.review-form fieldset, .which { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.review-form legend, .which legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 19px; }
.which { display: grid; gap: 8px; }
.which-option { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
.which-option input { flex: none; width: 22px; height: 22px; accent-color: var(--ink); }
.which-option .review-design { flex: 1; min-width: 0; }
.faces legend { text-align: center; width: 100%; }
.face-row { display: flex; justify-content: space-between; gap: 4px; }
.face {
    display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0;
    border: 0; border-radius: 14px; background: none; color: var(--ink); cursor: pointer; font-family: var(--body);
}
.face-emoji { font-size: 38px; line-height: 1; }
.face-ends { display: flex; justify-content: space-between; margin-top: 4px; color: var(--slate); font-size: 16px; line-height: 1.2; }
.face.sel { background: #FFF3D6; box-shadow: 0 0 0 2px var(--ink); }
.face.dim { opacity: 0.45; }
.sorry { margin: 22px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 16px; line-height: 1.5; }
.sorry a { color: var(--sun); font-weight: 800; }
.reason-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.reason { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 800 16px/1 var(--body); cursor: pointer; }
.reason[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); background: #FFF3D6; }
.step2 .field { margin: 18px 0 0; }
.review-form label { font-weight: 800; }
.review-form .field > label:not(.photo-pick) { display: block; margin-bottom: 6px; }
.review-form textarea, .review-form input[type="text"] {
    width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #B9AA90; border-radius: 10px;
    background: #FFFFFF; color: var(--ink); font: 400 18px/1.4 var(--body);
}
.review-form textarea { min-height: 120px; resize: vertical; }
.field-pair { display: grid; gap: 0 12px; }
.photo-label { margin: 0 0 8px; font-weight: 800; }
.review-form .photo-pick {
    display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px dashed #C9B89A; border-radius: 12px;
    background: var(--card); color: var(--ink); font-weight: 800; cursor: pointer;
}
#review-photo:focus-visible + .photo-pick { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); }
.photo-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.photo-preview img { width: 120px; height: auto; border-radius: 8px; }
.review-form .check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.review-form .btn { margin-top: 22px; }
.review-form .btn:disabled { background: #E3D9C9; color: #6B7080; cursor: not-allowed; }
.review-form .note { text-align: center; }
.issue { margin-top: 18px; text-align: center; color: var(--slate); font-size: 16px; }
.review-state { font-size: 20px; }
@media (min-width: 600px) {
    .field-pair { grid-template-columns: 1fr 1fr; }
    .face { width: 76px; height: 72px; }
    .face-emoji { font-size: 44px; }
}

/* ───────── the admin sign-in ───────── */
.login-page { max-width: 480px; padding-top: 40px; padding-bottom: 24px; }
.login-note { padding: 10px 12px; border-radius: 10px; background: var(--sun-soft); font-weight: 700; }
.login-note.error { background: #FCE9E6; color: var(--error); }
.login-form label { display: block; margin-bottom: 6px; font-weight: 800; }
.login-form input[type="email"],
.login-form input[name="code"] {
    width: 100%; min-height: 52px; margin-bottom: 16px; padding: 10px 12px; border: 1.5px solid #B9AA90; border-radius: 10px;
    background: #FFFFFF; color: var(--ink); font: 400 18px/1.3 var(--body);
}
.login-form input[name="code"] { font-size: 22px; letter-spacing: .15em; font-variant-numeric: tabular-nums; }

/* ───────── text boxes in focus ─────────
   A softer focus than the ink and sun ring buttons keep: an accent border (5.9:1 on white) with a soft
   accent glow (Brandon, 2026-10-16). Last in the file, so it wins over each form's own border. The Words
   rows' borderless fields show it on their row instead (.word-row:focus-within). */
input[type="text"]:focus-visible, input[type="search"]:focus-visible, input[type="email"]:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16); }
