/* Place models: the configurator, the landing page and the place pages.
   Built on studio.css tokens only; the one colour of its own is --venture (the plate's gold). */
.pm, .pl { --venture: #b8860b; --pm-gold: #d4a531; --pm-radius: var(--radius-m); }

/* ---------- Shared bits ---------- */
.pm [hidden], .pl [hidden] { display: none !important; }
.pm-label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.3rem; }
.pm-note { font-size: 0.92rem; color: var(--ink-2); }
.pm-input {
  width: 100%; min-height: 48px; padding: 0.6rem 0.85rem; border-radius: var(--radius-s);
  border: 1.5px solid color-mix(in oklab, var(--ink) 24%, transparent); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.pm-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
textarea.pm-input { resize: vertical; min-height: 5.5rem; }
.pm-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); list-style: none; }
.pm-chip {
  min-height: 44px; padding: 0 1rem; border-radius: var(--radius-pill); cursor: pointer;
  border: 1.5px solid color-mix(in oklab, var(--ink) 24%, transparent); background: var(--surface); color: var(--ink);
  font: 600 0.95rem/1 var(--font-text);
}
.pm-chip:hover { border-color: var(--ink); }
.pm-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pm-textbtn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 0.95rem/1.2 var(--font-text); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pm-price { flex: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-thumb { flex: none; width: 56px; height: 56px; border-radius: var(--radius-s); object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
[data-option="frame"] .pm-swatches { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.pm-still { margin: var(--space-xs) 0 0; display: grid; gap: var(--space-2xs); max-width: 22rem; }
.pm-still img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface-2); }
.pm-still figcaption { font-size: 0.86rem; color: var(--ink-2); }
.pl-render--tall .pl-render__slot { aspect-ratio: 4 / 5; }
.pm-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18), inset 0 -6px 10px rgb(0 0 0 / 0.14); }

/* ---------- Configurator ---------- */
.pm-top { padding-block: var(--space-m) var(--space-m); }
.pm-top .lede { max-width: 52ch; }
.pm-private { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); font-size: 0.92rem; color: var(--ink-2); }

.pm-layout { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); }
.pm-see { min-width: 0; display: grid; gap: var(--space-m); grid-template-columns: minmax(0, 1fr); }
.pm-step { min-width: 0; display: grid; gap: var(--space-s); align-content: start; }
.pm-step__title { display: flex; align-items: center; gap: 0.7rem; font-size: var(--step-2); }
.pm-num {
  flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 650 1rem/1 var(--font-text);
}

.pm-search__box { position: relative; }
.pm-results {
  position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 4px); list-style: none; padding: 0.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-2); max-height: 60vh; overflow: auto;
}
.pm-results li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: 44px; padding: 0.4rem 0.6rem; border-radius: 6px; cursor: pointer; }
.pm-results li span { min-width: 0; overflow-wrap: anywhere; }
.pm-results li small { flex: none; color: var(--ink-2); font-size: 0.8rem; }
.pm-results li:hover, .pm-results li[aria-selected="true"] { background: color-mix(in oklab, var(--accent) 14%, transparent); }

.pm-mapwrap { position: relative; }
.pm-map { height: clamp(300px, 62vh, 520px); border-radius: var(--pm-radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
.pm-map .leaflet-container, .pm-map.leaflet-container { font: inherit; background: var(--surface-2); }
.pm-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; color: #16201e; }
.pm-map .leaflet-control-attribution { font-size: 0.68rem; }
.pm-layers { position: absolute; z-index: 500; right: 10px; top: 10px; display: flex; gap: 6px; }
.pm-layers .pm-chip { box-shadow: var(--shadow-1); }
.pm-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); margin: 0; }
.pm-readout dt { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pm-readout dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-areas { display: grid; gap: 0.2rem; }

/* The stage: the preview with the running total. On a phone it stays in view while the options scroll. */
.pm-stage {
  min-width: 0; position: sticky; top: 0; z-index: 15; align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pm-radius); box-shadow: var(--shadow-1); overflow: hidden;
}
.pm-stage__canvas {
  position: relative; height: clamp(210px, 36vh, 340px);
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in oklab, var(--venture) 16%, var(--surface)), var(--surface-2));
}
.pm-stage__canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pm-stage__canvas canvas:active { cursor: grabbing; }
.pm-stage__wait { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-s); text-align: center; color: var(--ink-2); font-size: 0.92rem; }
.pm-stage__proof, .pl-proof { margin: 0; padding: 0 0.8rem 0.5rem; font-size: 0.8rem; line-height: 1.35; color: var(--ink-2); }
.pl-proof { padding: 0.5rem 0 0; }
.pm-stage__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: 0.5rem 0.8rem; border-top: 1px solid var(--line); }
.pm-stage__total strong { font: 600 1.35rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.pm-landmarks { padding: 0.5rem 0.8rem 0.7rem; border-top: 1px solid var(--line); display: grid; gap: 0.2rem; }
.pm-landmark { display: grid; padding: 0.35rem 0.7rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: 0.88rem; line-height: 1.3; }
.pm-landmark span { color: var(--ink-2); font-size: 0.8rem; }

.pm-options { display: grid; gap: var(--space-m); }
.pm-field { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-2xs); }
.pm-field legend, .pm-legend { padding: 0; margin: 0 0 var(--space-2xs); font: 650 0.82rem/1.2 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pm-cards { display: grid; gap: var(--space-2xs); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.pm-swatches { display: grid; gap: var(--space-2xs); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.pm-card, .pm-check {
  position: relative; display: flex; align-items: center; gap: 0.7rem; min-height: 56px; padding: 0.65rem 0.85rem; cursor: pointer;
  border: 1.5px solid color-mix(in oklab, var(--ink) 18%, transparent); border-radius: var(--radius-s); background: var(--surface);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.pm-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pm-card__body, .pm-check__body { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.pm-card__body strong, .pm-check__body strong { font-weight: 600; }
.pm-card__body span, .pm-check__body span { font-size: 0.86rem; color: var(--ink-2); }
.pm-card:hover, .pm-check:hover { border-color: color-mix(in oklab, var(--ink) 50%, transparent); }
.pm-card:has(input:checked) { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.pm-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pm-check::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid color-mix(in oklab, var(--ink) 45%, transparent); background: var(--surface); }
.pm-check--on { cursor: default; }
.pm-check:has(input:checked)::before, .pm-check--on::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pm-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-check:has(input:checked) { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, var(--surface)); }
.pm-sub { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding-top: var(--space-3xs); }
.pm-tint { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem 0 0.5rem; border-radius: var(--radius-pill); border: 1.5px solid color-mix(in oklab, var(--ink) 18%, transparent); background: var(--surface); cursor: pointer; font-size: 0.92rem; font-weight: 550; }
.pm-tint input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pm-tint:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pm-tint:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-gold { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: 0.95rem; }
.pm-gold__dot { flex: none; width: 22px; height: 22px; border-radius: 5px; border: 2px dashed color-mix(in oklab, var(--ink) 40%, transparent); }
.pm-gold.is-set .pm-gold__dot { border: 0; background: linear-gradient(135deg, #f1cf6b, var(--pm-gold) 55%, #9a7414); box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); }
.pm-pair { display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.pm-summary { padding: var(--space-s); border-radius: var(--pm-radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--space-xs); }
.pm-lines { margin: 0; display: grid; }
.pm-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-s); padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.pm-lines dt { min-width: 0; display: grid; font-weight: 550; line-height: 1.3; }
.pm-lines dt small { font-size: 0.84rem; font-weight: 400; color: var(--ink-2); }
.pm-lines dd { margin: 0; flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pm-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-s); font-weight: 600; }
.pm-total strong { font: 600 var(--step-3)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.pm-request, .pm-done { display: grid; gap: var(--space-s); }
.pm-request .btn { justify-self: start; }
.pm-done { padding: var(--space-s); border-radius: var(--pm-radius); border: 1.5px solid var(--accent); background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
.pm-spec { margin: 0; padding: var(--space-xs); border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); font: 0.84rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (min-width: 960px) {
  .pm-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-l) var(--space-xl); align-items: start; }
  .pm-see { display: contents; }
  .pm-find, .pm-build, .pm-order { grid-column: 1; }
  .pm-stage { grid-column: 2; grid-row: 1 / span 3; top: 5.5rem; }
  .pm-stage__canvas { height: min(62vh, 560px); }
  .pm-map { height: 440px; }
}

/* ---------- Landing and place pages ---------- */
.pl-hero { padding-block: var(--space-l) var(--space-xl); }
.pl-hero__grid { display: grid; gap: var(--space-l); align-items: center; }
.pl-hero__text { display: grid; gap: var(--space-m); justify-items: start; }
.pl-hero .display { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.2rem); }
.pl-hero .display em { font-style: normal; color: var(--venture); }
.pl-from { font-size: 0.95rem; color: var(--ink-2); }
.pl-from strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-stage {
  position: relative; min-width: 0; aspect-ratio: 1 / 1; max-height: 78vh; width: 100%; border-radius: var(--radius-l); overflow: hidden;
  background: radial-gradient(110% 90% at 50% 8%, color-mix(in oklab, var(--venture) 20%, var(--surface)), var(--surface-2));
  border: 1px solid var(--line);
}
.pl-stage canvas { display: block; width: 100%; height: 100%; }
.pl-stage .tag--over { z-index: 2; }
.pl-stage__poster { position: absolute; inset: 0; display: grid; place-items: center; }
.pl-stage__poster svg { width: 78%; height: auto; }
.pl-stage[data-live] .pl-stage__poster { display: none; }
.pl-stage__price { position: absolute; top: 10px; right: 12px; z-index: 2; margin: 0; display: flex; align-items: baseline; gap: 0.45rem; padding: 0.3rem 0.65rem; border-radius: var(--radius-s); background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.86rem; pointer-events: none; }
.pl-stage__price strong { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.pl-stage[data-nogl] .pl-stage__price { display: none; }
.pl-stage__caption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; font-size: 0.8rem; color: var(--ink-2); text-align: right; pointer-events: none; }
@media (min-width: 960px) { .pl-hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--space-xl); } }

.pl-steps { display: grid; gap: var(--space-m); list-style: none; counter-reset: s; }
@media (min-width: 820px) { .pl-steps { grid-template-columns: repeat(3, 1fr); } }
.pl-steps li { counter-increment: s; display: grid; gap: var(--space-2xs); align-content: start; padding-top: var(--space-s); border-top: 2px solid var(--ink); }
.pl-steps li::before { content: counter(s); font: 600 var(--step-3)/1 var(--font-display); color: var(--venture); }
.pl-steps h3 { font-size: var(--step-2); }
.pl-steps p { color: var(--ink-2); }

.pl-diff { display: grid; gap: var(--space-m); list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.pl-diff li { display: grid; gap: var(--space-2xs); align-content: start; }
.pl-diff h3 { font-size: var(--step-1); font-family: var(--font-text); font-weight: 650; letter-spacing: 0; }
.pl-diff p { color: var(--ink-2); }
.pl-swatch { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-m); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.pl-swatch svg { width: 100%; height: 100%; }

.pl-gifts { display: grid; gap: var(--space-s); list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.pl-gifts li { padding: var(--space-s); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.3rem; align-content: start; }
.pl-gifts h3 { font-size: var(--step-1); }
.pl-gifts p { color: var(--ink-2); font-size: 0.97rem; }
.pl-gifts .pl-engraved { margin-top: 0.4rem; padding: 0.5rem 0.7rem; border-radius: 6px; background: #1b1b1d; color: #e9e5db; font: 600 0.8rem/1.3 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }

.pl-prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pl-prices th, .pl-prices td { text-align: left; padding: 0.7rem 0.6rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.pl-prices thead th { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pl-prices td:not(:first-child), .pl-prices thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.pl-prices tbody th { font-weight: 550; }
.pl-prices tbody th small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.86rem; }
.pl-tablewrap { overflow-x: auto; }

.pl-renders { display: grid; gap: var(--space-m); list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pl-render { margin: 0; display: grid; gap: var(--space-2xs); }
.pl-render__slot { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-m); overflow: hidden; border: 1.5px dashed color-mix(in oklab, var(--ink) 26%, transparent); background: var(--surface-2); display: grid; place-items: center; text-align: center; padding: var(--space-s); color: var(--ink-2); font-size: 0.9rem; }
.pl-render__slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-render:has(img) .pl-render__slot { border-style: solid; border-color: var(--line); }
.pl-render figcaption { font-size: 0.92rem; color: var(--ink-2); }
.pl-landmarks { display: grid; gap: var(--space-xs); list-style: none; grid-auto-flow: column; grid-auto-columns: minmax(11.5rem, 1fr); overflow-x: auto; padding-bottom: var(--space-2xs); scroll-snap-type: x proximity; }
.pl-landmarks li { scroll-snap-align: start; padding: var(--space-s); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.2rem; align-content: start; }
.pl-landmarks strong { font: 600 var(--step-1)/1.2 var(--font-display); }
.pl-landmarks span { color: var(--ink-2); font-size: 0.9rem; }
.pl-landmarks .pill { justify-self: start; margin-top: 0.3rem; }

.pl-stagewrap { min-width: 0; display: grid; gap: var(--space-xs); }
.pl-toggles { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s); }
.pl-places { display: grid; gap: var(--space-s); list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.pl-place { position: relative; display: grid; gap: 0.15rem; min-height: 72px; padding: var(--space-s) 3rem var(--space-s) var(--space-s); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow-1); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.pl-place:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pl-place strong { font: 600 var(--step-2)/1.15 var(--font-display); }
.pl-place span { color: var(--ink-2); font-size: 0.92rem; }
.pl-place svg { position: absolute; right: var(--space-s); top: var(--space-s); width: 1.1rem; height: 1.1rem; color: var(--ink-2); }
.pl-cta { display: grid; gap: var(--space-m); justify-items: start; }
.contact-band .pl-from, .contact-band .pl-from strong { color: var(--band-ink-2); }

@media (prefers-reduced-motion: reduce) { .pm-card, .pm-check { transition: none; } }

/* The landmark strip sits in the sticky stage, so on a phone it is one row that scrolls sideways. */
.pm-landmarks .pm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pm-landmarks .pm-chips::-webkit-scrollbar { display: none; }
.pm-landmarks .pm-landmark { flex: 0 0 auto; }
.pm-landmarks .pm-label { margin: 0; }
@media (max-width: 959px) { .pm-stage__canvas { height: min(38vh, 300px); } }
.pl-tablewrap { overflow-x: auto; }
.pl-prices { min-width: 30rem; }
.pm-map .leaflet-control-attribution { font-size: 12px; }
.pl-stage[data-nogl] { display: grid; }
.pl-stage[data-nogl] .tag--over { display: none; }
.pl-stage[data-nogl] .pl-stage__caption { position: static; align-self: center; padding: var(--space-m); text-align: center; font-size: 0.95rem; }
@font-face { font-family: "Dancing Script"; src: url("/assets/fonts/dancing-script-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Stardos Stencil"; src: url("/assets/fonts/stardos-stencil-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* launch features: turn, icons, routes, stage tools */
.pm-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-s); }
.pm-turn { display: flex; align-items: center; gap: var(--space-2xs); }
.pm-turn__now { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-drawbar { display: contents; }
.pm-chip--go { border-color: var(--accent); color: var(--accent); font-weight: 650; }
.pm-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.pm-icon { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 44px; border-radius: var(--radius-s); border: 1.5px solid color-mix(in oklab, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink); }
.pm-icon svg { width: 24px; height: 24px; }
.pm-icon input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pm-icon:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--pm-accent, var(--venture)); background: color-mix(in oklab, var(--accent) 9%, var(--surface)); }
.pm-icon:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-marks { list-style: none; display: grid; gap: 6px; }
.pm-marks:empty { display: none; }
.pm-mark { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0.35rem 0.35rem 0.35rem 0.6rem; border-radius: var(--radius-s); background: var(--surface-2); }
.pm-mark__icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--pm-accent, var(--venture)); cursor: pointer; }
.pm-mark__icon svg { width: 24px; height: 24px; }
.pm-mark__body { min-width: 0; display: grid; gap: 2px; }
.pm-mark__body .pm-input { min-height: 44px; }
.pm-mark__body small { font-size: 0.82rem; color: var(--ink-2); }
.pm-mark__tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 0.7rem; }
.pm-mark__tools .pm-textbtn { font-size: 0.86rem; min-width: 44px; }
.pm-warn { color: var(--ink); padding: 0.6rem 0.8rem; border-radius: var(--radius-s); background: color-mix(in oklab, var(--pm-gold) 22%, var(--surface)); }
.pm-file { position: relative; display: inline-flex; align-items: center; }
.pm-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pm-file:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-giftmore { display: grid; gap: var(--space-3xs); }
.pm-check:has(input:disabled), .pm-card:has(input:disabled) { opacity: 0.6; }
.pm-card:has(input:disabled), .pm-card:has(input:disabled) input { cursor: not-allowed; }
.pm-stage__tools { display: flex; gap: 6px; padding: 0 0.8rem 0.6rem; overflow-x: auto; scrollbar-width: none; }
.pm-stage__tools .pm-chip { flex: none; }
.pm-cutoff { padding: 0.7rem 0.9rem; border-radius: var(--radius-s); background: color-mix(in oklab, var(--pm-gold) 22%, var(--surface)); font-weight: 600; }
.pm-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pm-accent, var(--venture)); border: 2px solid currentColor; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); }
.pm-pin svg { width: 17px; height: 17px; }
.pm-map[data-mode="icon"], .pm-map[data-mode="route"], .pm-map[data-mode="extra"] { cursor: crosshair; }
textarea.pm-input { resize: vertical; min-height: 5.5rem; padding-block: 0.6rem; line-height: 1.45; }
.pm-save { display: grid; gap: var(--space-2xs); padding: var(--space-s); border-radius: var(--pm-radius); background: var(--surface-2); }
.pm-save__row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.pm-save__row .pm-input { flex: 1 1 14rem; width: auto; }
.pm-mail { display: grid; gap: var(--space-xs); padding: var(--space-s); border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.pm-mail__head { display: grid; gap: 2px; font-size: 0.86rem; color: var(--ink-2); padding-bottom: var(--space-2xs); border-bottom: 1px solid var(--line); }
.pm-mail__head strong { font: 600 1.15rem/1.25 var(--font-display); color: var(--ink); }
.pm-mail__shot { width: 100%; border-radius: var(--radius-s); background: var(--surface-2); }
.pm-mail__clip { font-size: 0.92rem; font-weight: 600; }
.pm-mail__offer { font-weight: 600; padding: var(--space-2xs) var(--space-xs); border: 1px dashed var(--line); border-radius: 6px; }
.pm-mail__link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* The address field on the landing pages, and the ways to pay */
.pl-entry { display: grid; gap: var(--space-2xs); max-width: 34rem; }
.pl-entry__row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.pl-entry__row .pm-input { flex: 1 1 12rem; width: auto; min-width: 0; min-height: 48px; }
.pl-entry__row .btn { flex: 0 0 auto; min-height: 48px; }
.pl-pay { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pl-pay li { padding: 0.28rem 0.6rem; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--surface); color: var(--ink); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; }

/* What the price already holds */
.pl-incl { display: grid; gap: 0.45rem; margin: var(--space-xs) 0 0; padding: 0; list-style: none; }
.pl-incl li { position: relative; padding-left: 1.5rem; }
.pl-incl li::before { content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--pm-accent, #b8891f); border-bottom: 2px solid var(--pm-accent, #b8891f); transform: rotate(-45deg); }
.pm-incl { font-size: 0.95rem; color: var(--ink); }

/* Gift vouchers: the block on the landing page, the code field in the price step */
.pl-voucher { padding: var(--space-m); border-radius: var(--radius-m); border: 1px solid var(--line); background: color-mix(in oklab, var(--pm-gold) 12%, var(--surface)); }
.pl-voucher__values { display: grid; gap: var(--space-2xs); padding-top: var(--space-2xs); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.pl-voucher__values li { display: grid; gap: 0.1rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.pl-voucher__values strong { font: 600 var(--step-1)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.pl-voucher__values span span, .pl-voucher__values li > span { color: var(--ink-2); font-size: 0.9rem; }
.pl-voucher__values strong span { color: inherit; font-size: inherit; }
.pm-textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-underline-offset: 0.2em; }
.pm-redeem { display: grid; gap: var(--space-2xs); padding-top: var(--space-xs); border-top: 1px solid var(--line); }
.pm-redeem .pm-input[readonly] { background: var(--surface-2); }
.pm-voucherlink a { display: inline-block; padding-block: 0.7rem; color: var(--accent); font-weight: 600; text-underline-offset: 0.2em; }

/* The reveal: a voucher's link opens on a gift box */
.pg-reveal { padding-block: var(--space-m) var(--space-xl); }
.pg-reveal__grid { display: grid; gap: var(--space-s); max-width: 44rem; }
.pg-text { display: grid; gap: var(--space-2xs); }
.pg-text .display { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.6rem); }
.pg-stagewrap { position: relative; display: grid; }
.pg-stage { max-height: 58vh; }
.pg-open { position: absolute; left: 0; right: 0; bottom: var(--space-s); display: flex; justify-content: center; z-index: 3; }
.pg-open .btn { box-shadow: 0 6px 22px rgb(0 0 0 / 0.22); }
.pg-after { display: grid; gap: var(--space-xs); }
.pg-after:focus { outline: none; }
.pg-note { margin: 0; padding: var(--space-s); border-radius: var(--radius-m); background: color-mix(in oklab, var(--pm-gold) 14%, var(--surface)); border: 1px solid var(--line); display: grid; gap: 0.4rem; }
.pg-note blockquote { margin: 0; font: 500 var(--step-1)/1.4 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.pg-note figcaption { color: var(--ink-2); font-size: 0.95rem; }
.pg-note figcaption:not(:empty)::before { content: "— "; }
.pg-hint { padding: 0.7rem 0.9rem; border-radius: var(--radius-s); background: var(--surface-2); color: var(--ink); overflow-wrap: anywhere; }
.pg-code { display: grid; gap: var(--space-2xs); }
@media (prefers-reduced-motion: no-preference) { .pg-after:not([hidden]) > * { animation: pg-in 0.5s var(--ease-out, ease-out) both; } .pg-after > :nth-child(2) { animation-delay: 0.12s; } .pg-after > :nth-child(n+3) { animation-delay: 0.24s; } }
@keyframes pg-in { from { opacity: 0; transform: translateY(10px); } }

/* The reveal: a gift link opens the configurator on the closed box. Everything else waits behind it. */
.pm-reveal { padding-block: var(--space-m) var(--space-s); }
.pm-reveal__text { display: grid; gap: var(--space-2xs); }
.pm-reveal__text .display { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.6rem); }
.pm-reveal__open { position: absolute; left: 0; right: 0; bottom: var(--space-s); display: flex; justify-content: center; z-index: 3; padding-inline: var(--space-s); }
.pm-reveal__open .btn { box-shadow: 0 6px 22px rgb(0 0 0 / 0.22); }
.pm-reveal__after { display: grid; gap: var(--space-xs); padding-bottom: var(--space-xl); }
.pm-reveal__after:focus { outline: none; }
:root[data-reveal] :is(.pm-top, .pm-find, .pm-build, .pm-assist, .pm-order, .pm-stage__bar, .pm-stage__proof, .pm-stage__tools, .pm-landmarks) { display: none; }
:root[data-reveal] .pm-layout { grid-template-columns: minmax(0, 1fr); max-width: 44rem; margin-inline: 0; }
:root[data-reveal] .pm-see { display: grid; }
:root[data-reveal] .pm-stage { position: relative; top: auto; grid-column: auto; grid-row: auto; }
:root[data-reveal] .pm-stage__canvas { height: min(54vh, 460px); }
@media (prefers-reduced-motion: no-preference) { .pm-reveal__after:not([hidden]) > * { animation: pg-in 0.5s var(--ease-out, ease-out) both; } .pm-reveal__after > :nth-child(2) { animation-delay: 0.12s; } .pm-reveal__after > :nth-child(n+3) { animation-delay: 0.24s; } }

/* Help while designing */
.pm-assist { display: grid; gap: var(--space-2xs); padding: var(--space-s); border-radius: var(--pm-radius); border: 1px solid var(--line); background: var(--surface); }
.pm-assist__log { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; max-height: 22rem; overflow-y: auto; }
.pm-turn { display: grid; gap: 0.3rem; max-width: 88%; padding: 0.55rem 0.75rem; border-radius: 0.9rem; background: var(--surface-2); overflow-wrap: anywhere; }
.pm-turn--you { justify-self: end; background: color-mix(in oklab, var(--accent) 14%, var(--surface)); }
.pm-turn__changes { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; color: var(--ink-2); }

/* Gift mode: someone is spending a voucher, so prices step back */
.pm-giftbar, .pm-giftfrom, .pm-giftsum { margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-s); background: color-mix(in oklab, var(--pm-gold) 14%, var(--surface)); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.pm-giftsum { font: 500 var(--step-1)/1.4 var(--font-display); }
.pm-breakdown > summary { display: none; }
:root[data-gifted] .pm-breakdown > summary { display: block; min-height: 44px; padding-block: 0.6rem; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; }
:root[data-gifted] .pm-stage__total strong { font-size: 1.05rem; }
:root[data-gifted] .pm-incl, :root[data-gifted] #pm-redeem .pm-label { display: none; }
