/* Warm brand palette, matched to storefront.css. The builder used to be dark
   navy with a purple accent while the landing page that links to it is warm
   cream -- customers crossed a brand boundary mid-funnel, on the surface where
   they spend the most time. One palette, defined once on each side. */
:root {
  --bg: #f7f2ea;
  --bg-2: #f1e9dd;
  --panel: #fffdf9;
  --panel-2: #fbf6ef;
  --line: #d9ccbd;
  --text: #1f2937;
  --muted: #5f6b7a;
  --soft: #3f4854;
  --accent: #8f5b3e;
  --link: #7a4a30;   /* 6.6:1 on the page, 7.3:1 on a panel */
  --accent-2: #22c55e;
  --accent-3: #38bdf8;
  --warn: #a8690a;
  --danger: #b3261e;
  --shadow: 0 26px 60px rgba(52, 40, 28, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(143, 91, 62, 0.06), transparent 26%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font: 16px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--link); text-decoration: none; }
/* Text links inside prose are underlined: colour alone is not a signal
   somebody with low vision or colour-blindness can act on. Navigation and
   buttons opt out below, where position already says what they are. */
.policy a, .policy-foot a, main p a, main li a { text-decoration: underline; text-underline-offset: 2px; }
.nav a, .cta, .btn, a.btn, a.cta { text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
.wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 249, 0.86);
  border-bottom: 1px solid rgba(52, 40, 28, 0.13);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 91, 62, 0.18), rgba(122, 96, 62, 0.14));
  border: 1px solid rgba(143, 91, 62, 0.225);
  font-weight: 800;
}
.brand h1, .brand h2, .brand p {
  margin: 0;
}
.brand-title {
  font-size: 18px;
  font-weight: 800;
}
.brand-sub {
  font-size: 13px;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav a, .nav button {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fffdf9;
  color: var(--text);
  border: 1px solid rgba(52, 40, 28, 0.13);
}
.hero {
  padding: 34px 0 20px;
}
.hero-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(143, 91, 62, 0.12), rgba(143, 91, 62, 0.07));
  border: 1px solid rgba(52, 40, 28, 0.13);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(143, 91, 62, 0.27);
  background: rgba(143, 91, 62, 0.11);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}
.hero p {
  margin: 0 0 14px;
  color: var(--soft);
  max-width: 820px;
}
.pills, .micro-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill, .micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(247, 242, 234, 0.72);
  border: 1px solid rgba(52, 40, 28, 0.13);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.micro-pill {
  padding: 6px 10px;
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 18px;
  padding: 18px 0 38px;
}
.panel {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(52, 40, 28, 0.13);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel h2, .panel h3, .panel h4 {
  margin: 0 0 10px;
  line-height: 1.12;
}
.panel p, .muted {
  color: var(--muted);
}
.stack > * + * {
  margin-top: 18px;
}
.section-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.section-head h3 {
  margin-bottom: 4px;
}
.grid {
  display: grid;
  gap: 12px;
}
.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.choice, .mini-card {
  padding: 15px;
  border-radius: 18px;
  background: rgba(52, 40, 28, 0.035);
  border: 1px solid rgba(52, 40, 28, 0.13);
  color: var(--text);
  text-align: left;
  min-height: 110px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.choice:hover, .mini-card:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 91, 62, 0.413);
}
.choice.active, .mini-card.active {
  background: linear-gradient(180deg, rgba(143, 91, 62, 0.13), rgba(122, 96, 62, 0.07));
  border-color: rgba(143, 91, 62, 0.54);
}
.choice-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.choice-copy {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
label {
  display: block;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 6px;
  font-weight: 700;
}
/* email and tel were missing from this list, so the support form's email field
   rendered unstyled — visibly narrower and shorter than the two fields beside
   it, which reads as broken rather than as a design. Enumerating input types is
   how that happens; every new type has to be remembered. */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="date"], input[type="month"],
input[type="number"], textarea, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--text);
  padding: 12px 14px;
}
::placeholder { color: #6b6357; opacity: 1; }
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="url"]:focus, input[type="search"]:focus, input[type="date"]:focus,
input[type="month"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 91, 62, 0.16);
}
textarea {
  min-height: 92px;
  resize: vertical;
}
.switch-row, .inline-options, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segment button, .ghost, .primary, .secondary {
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(52, 40, 28, 0.13);
  background: #fffdf9;
  color: var(--text);
}
.segment button.active, .ghost.active {
  background: rgba(143, 91, 62, 0.16);
  border-color: rgba(143, 91, 62, 0.45);
}
.primary {
  background: linear-gradient(135deg, rgba(143, 91, 62, 0.92), rgba(122, 96, 62, 0.85));
  color: white;
  font-weight: 800;
}
.secondary {
  background: rgba(143, 91, 62, 0.072);
  border-color: rgba(143, 91, 62, 0.192);
}
.ghost {
  background: transparent;
}
.note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(143, 91, 62, 0.07);
  border: 1px solid rgba(143, 91, 62, 0.12);
  color: var(--soft);
}
.warn-note {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.24);
}
.danger-note {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.22);
}
.preview-shell {
  display: grid;
  gap: 16px;
}
.preview-card {
  background: rgba(52, 40, 28, 0.035);
  border: 1px solid rgba(52, 40, 28, 0.13);
  border-radius: 22px;
  padding: 18px;
}
.preview-stage {
  min-height: 520px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(52, 40, 28, 0.035), rgba(52, 40, 28, 0.012));
  overflow: hidden;
}
.preview-stage svg {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .24));
}
.preview-stage img {
  width: min(100%, 430px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 34px rgba(0, 0, 0, .24);
  background: #f1e9dd;
}
.sample-preview-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffdf9;
  border: 1px solid rgba(52, 40, 28, 0.13);
  color: var(--soft);
  font-size: 13px;
}
.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.kpi {
  padding: 16px;
  border-radius: 16px;
  background: rgba(52, 40, 28, 0.035);
  border: 1px solid rgba(52, 40, 28, 0.13);
}
.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800;
}
.kpi-value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
}
.price-table, .table {
  width: 100%;
  border-collapse: collapse;
}
.price-table td, .price-table th, .table td, .table th {
  border-bottom: 1px solid rgba(52, 40, 28, 0.13);
  padding: 11px 6px;
  text-align: left;
  vertical-align: top;
}
.table th, .price-table th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.total-row td {
  font-weight: 800;
  font-size: 17px;
}
.list {
  margin: 0;
  padding-left: 18px;
}
.list li + li {
  margin-top: 8px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.status.good { background: rgba(122, 96, 62, 0.105); color: #166534; border: 1px solid rgba(122, 96, 62, 0.21); }
.status.warn { background: rgba(245,158,11,.14); color: #8a5a00; border: 1px solid rgba(245,158,11,.3); }
.status.bad { background: rgba(239,68,68,.14); color: #a1201a; border: 1px solid rgba(239,68,68,.3); }
.status.info { background: rgba(143, 91, 62, 0.084); color: #1d4ed8; border: 1px solid rgba(143, 91, 62, 0.168); }
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fffdf9;
  border: 1px solid rgba(52, 40, 28, 0.13);
}
.code-block, pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 16px;
  border-radius: 16px;
  background: rgba(52, 40, 28, 0.275);
  border: 1px solid rgba(52, 40, 28, 0.13);
  color: var(--soft);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hidden {
  display: none !important;
}
.footer {
  padding: 14px 0 50px;
  color: var(--muted);
  font-size: 13px;
}
.docs-shell {
  min-height: 680px;
  border: 1px solid rgba(52, 40, 28, 0.13);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(52, 40, 28, 0.225);
}
.docs-shell iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
  background: white;
}
.summary-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(52, 40, 28, 0.035);
  border: 1px solid rgba(52, 40, 28, 0.13);
}
.summary-card h4 {
  margin-bottom: 8px;
}
@media (max-width: 1040px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: min(100% - 20px, 1280px);
  }
  .hero-card, .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar .inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-stage {
    min-height: 400px;
  }
}

/* founder sign-in + server-backed dashboard controls */
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}
.login-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 80px;
}
.login-panel {
  width: 100%;
  max-width: 460px;
}
.login-panel form { margin-top: 18px; }
.approval-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.approval-actions button {
  padding: 6px 12px;
  font-size: 13px;
}
.session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Brand mark -----------------------------------------------------
   The pin from the artwork itself: ring, dot, and a suggestion of the
   street grid it sits on. Replaces the "PWH" initials, which read as a
   placeholder and told a first-time visitor nothing. */
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
  background: none;
  border: 0;
  padding: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.pwh-disc { fill: #f4ece1; stroke: rgba(143, 91, 62, 0.40); stroke-width: 1.5; }
.pwh-grid path {
  fill: none;
  /* Heavier and darker than the first attempt: two lines at 3.2 survive being
     scaled to a favicon, where four at 1.4 turned into grey haze. */
  stroke: rgba(143, 91, 62, 0.55);
  stroke-width: 3.2;
  stroke-linecap: butt;
}
.pwh-ring { fill: none; stroke: #8f5b3e; stroke-width: 3; }
.pwh-dot { fill: #8f5b3e; }
.brand-title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.005em;
}

/* --- Builder: step flow --------------------------------------------- */
.builder-head { padding: 30px 0 6px; }
.builder-head h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.builder-head > p { margin: 0 0 20px; color: var(--muted); max-width: 60ch; }

.step-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: none;
}
.step-rail li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.step-rail li span {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(52, 40, 28, 0.07);
  color: var(--soft);
  font-size: 13px;
}
.step-rail li.done { color: var(--accent); border-color: rgba(143, 91, 62, 0.35); }
.step-rail li.done span { background: rgba(143, 91, 62, 0.14); color: var(--accent); }
.step-rail li.active {
  background: var(--accent); border-color: var(--accent); color: #fffdf9;
}
.step-rail li.active span { background: rgba(255,255,255,0.24); color: #fffdf9; }

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.step h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 6px;
}

/* --- Builder: colourway swatches ------------------------------------ */
.swatch-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.swatch {
  display: block;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
}
.swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 91, 62, 0.18);
}
.swatch-chip {
  position: relative;
  display: block;
  height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(52, 40, 28, 0.14);
  overflow: hidden;
}
.swatch-chip i {
  position: absolute; left: 0; right: 0; height: 6px; display: block;
}
.swatch-chip i:nth-of-type(1) { top: 16px; height: 4px; }
.swatch-chip i:nth-of-type(2) { bottom: 0; height: 18px; }
.swatch-chip i:nth-of-type(3) { top: 30px; left: 8px; width: 26px; height: 12px; border-radius: 3px; right: auto; }
.swatch-chip b {
  position: absolute; top: 26px; right: 16px;
  width: 10px; height: 10px; border-radius: 50%;
}
.swatch-name {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* --- Builder: live preview ------------------------------------------ */
.pv-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 14px 38px rgba(52, 40, 28, 0.20);
}
.pv-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.preview-shell { position: sticky; top: 84px; align-self: start; }

/* Ambiguous-address candidates: the lookup knows which places it could not
   choose between, so the customer gets to choose rather than being stuck. */
.geo-choices { display: grid; gap: 8px; margin-top: 10px; }
.geo-choices:empty { display: none; }
.geo-choice {
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.geo-choice:hover { border-color: var(--accent); background: rgba(143, 91, 62, 0.06); }

/* Character counters: the box now shows how much the print can hold. */
.char-count {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.char-count.full { color: var(--accent); font-weight: 700; opacity: 1; }

/* --- Add to cart ----------------------------------------------------- */
.add-to-cart {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.add-to-cart label {
  display: block;
  margin-bottom: 6px;
}
.add-to-cart input {
  width: 84px;
}
.add-to-cart .primary {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 999px;
}
.cart-feedback { margin: 12px 0 0; font-size: 14px; min-height: 1.2em; }
.cart-feedback.good { color: #3f6212; }
.cart-feedback.problem { color: var(--danger); }
.cart-feedback a { color: var(--accent); font-weight: 700; }
[data-cart-count].empty { opacity: 0.8; }

/* --- Cart page ------------------------------------------------------- */
.cart-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  background: #efe7db;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.cart-thumb svg { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 6px 16px rgba(52,40,28,.18); }
.cart-detail h3 { margin: 0 0 6px; font-family: "EB Garamond", Georgia, serif; font-size: 21px; font-weight: 600; }
.cart-detail p { margin: 0 0 4px; }
.cart-detail .small { font-size: 12.5px; }
.cart-line-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.cart-line-actions label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.cart-line-actions input { width: 76px; }
.cart-price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.cart-empty { text-align: center; padding: 40px 10px; }
.cart-empty p { margin: 0 0 18px; color: var(--muted); }
.btn-link {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
}
@media (max-width: 720px) {
  .cart-line { grid-template-columns: 90px minmax(0, 1fr); }
  .cart-price { grid-column: 2; }
}

/* --- Framed / poster presentation ------------------------------------ */
.pv-mount { display: block; }
.pv-frame {
  padding: 4.5%;
  border-radius: 2px;
  background: var(--frame-face, #1c1a17);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 0 14px rgba(0,0,0,0.35),
    0 22px 48px rgba(52, 40, 28, 0.34);
}
.pv-mount[data-frame="white"] { --frame-face: #f4f1ea; --frame-edge: rgba(0,0,0,0.16); }
.pv-mount[data-frame="oak"]   { --frame-face: #b98a52; --frame-edge: rgba(0,0,0,0.18); }
.pv-mount[data-frame="black"] { --frame-face: #1c1a17; --frame-edge: rgba(255,255,255,0.10); }
.pv-mount[data-frame="white"] .pv-frame,
.pv-mount[data-frame="oak"] .pv-frame {
  box-shadow:
    inset 0 0 0 1px var(--frame-edge),
    inset 0 0 12px rgba(0,0,0,0.14),
    0 22px 48px rgba(52, 40, 28, 0.30);
}
.pv-mat {
  padding: 9%;
  background: #fbf8f2;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10), inset 0 2px 10px rgba(0,0,0,0.10);
}
.pv-mat.no-mat { padding: 0; background: none; box-shadow: none; }
.pv-mat .pv-svg { box-shadow: 0 1px 4px rgba(0,0,0,0.28); border-radius: 0; }
.pv-mount.is-poster .pv-svg { box-shadow: 0 18px 40px rgba(52, 40, 28, 0.26); }
.pv-scale {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Drop-a-pin picker ------------------------------------------------ */
.pk-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(40, 30, 20, 0.42);
  display: grid; place-items: center;
  padding: 20px;
}
.pk-panel {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(52, 40, 28, 0.35);
  padding: 22px;
  width: min(520px, 100%);
}
.pk-head h3 {
  margin: 0 0 4px;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-size: 24px;
}
.pk-head p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.pk-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efe7db;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.pk-stage.dragging { cursor: grabbing; }
.pk-canvas { position: absolute; }
.pk-canvas svg { display: block; pointer-events: none; }
.pk-cross {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.pk-cross svg { width: 54px; height: 54px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
.pk-busy {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,253,249,0.92);
  font-size: 12px; color: var(--muted);
  opacity: 0; transition: opacity .15s;
}
.pk-busy.on { opacity: 1; }
.pk-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; }
.pk-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,253,249,0.95);
  color: var(--text);
  font-size: 17px; font-weight: 700;
  cursor: pointer;
}
.pk-readout {
  margin: 12px 0 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.pk-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* --- Format choice --------------------------------------------------- */
.fmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.fmt-card {
  display: grid;
  align-content: start;
  gap: 6px;
  text-align: left;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.fmt-card:hover { border-color: var(--accent); }
.fmt-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 91, 62, 0.18);
  background: rgba(143, 91, 62, 0.05);
}
.fmt-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 21px; font-weight: 600; color: var(--text);
}
.fmt-price {
  font-size: 26px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.fmt-copy { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* --- Upgrade nudge on the review step -------------------------------- */
.upgrade {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(143, 91, 62, 0.30);
  background: rgba(143, 91, 62, 0.07);
}
.upgrade p { margin: 0; font-size: 14.5px; color: var(--text); }
.upgrade strong { font-weight: 700; }
.upgrade .secondary { white-space: nowrap; }

/* --- Proof-read gate -------------------------------------------------- */
.proof-panel { width: min(560px, 100%); }
.proof-table { width: 100%; border-collapse: collapse; margin: 4px 0 4px; }
.proof-table th {
  text-align: left; vertical-align: top;
  padding: 8px 14px 8px 0;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted); white-space: nowrap; width: 1%;
}
.proof-table td { padding: 8px 0; font-size: 15px; color: var(--text); }
.proof-table tr + tr th, .proof-table tr + tr td { border-top: 1px solid var(--line); }
.proof-rule td { padding: 0; height: 10px; border-top: 0 !important; }
.pk-panel label { display: block; margin-bottom: 6px; }
.pk-panel input[type="email"] { margin-bottom: 4px; }

/* --- A choice the customer made that something else took away ---------- */
.notice-warn {
  margin: 0 0 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 105, 10, 0.38);
  background: rgba(168, 105, 10, 0.09);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}
.mini-card.disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: rgba(52, 40, 28, 0.04);
}
.mini-card.disabled .choice-title { color: var(--muted); }
.choice.disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: rgba(52, 40, 28, 0.04);
}
.choice-blocked {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7a4a06;
}

/* ---- policy pages -------------------------------------------------------
   Long-form reading, not a shop screen: a narrow measure, generous leading and
   real hierarchy, so a refund policy is something a worried customer can
   actually read rather than skim in a panic. */
.policy { max-width: 34rem; padding: 2.5rem 0 3rem; }
.policy h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -0.02em; }
.policy h2 { font-size: 1.15rem; margin: 2.25rem 0 .5rem; letter-spacing: -0.01em; }
.policy h3 { font-size: 1rem; margin: 1.5rem 0 .35rem; }
.policy p, .policy li { line-height: 1.65; }
.policy .lede { font-size: 1.05rem; opacity: .78; margin-bottom: .5rem; }
.policy ul { padding-left: 1.15rem; }
.policy li { margin: .35rem 0; }
.policy strong { font-weight: 650; }
/* The footer used to fade itself with opacity, which dragged its LINKS down
   with it — the email address and the policy links were the exact thing the
   owner could not read. Fade the plain text only. */
.policy-foot { padding: 1.5rem 0 3rem; font-size: .875rem; text-align: center; color: var(--muted); }
.policy-foot a { color: var(--link); }
.policy-foot p { margin: .25rem 0; }

/* ---- thank-you page ----------------------------------------------------- */
.thanks-orders { list-style: none; padding: 0; margin: 1.25rem 0; }
.thanks-orders li {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline;
  padding: .75rem 0; border-top: 1px solid var(--line, #e2e8f0);
}
.thanks-orders li:last-child { border-bottom: 1px solid var(--line, #e2e8f0); }
.thanks-orders span { font-weight: 600; }
.thanks-steps { padding-left: 1.15rem; }
.thanks-steps li { margin: .5rem 0; line-height: 1.6; }

/* ---- call to action -----------------------------------------------------
   `.cta` was used on the thank-you page and never defined here, so it rendered
   as plain text — a primary action that did not look like one. White on the
   accent brown measures 5.5:1, comfortably past AA. */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fffdf9;
  font-weight: 650;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  transition: background .15s ease, transform .15s ease;
}
.cta:hover { background: #7a4a30; transform: translateY(-1px); }
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Keyboard users need to see where they are. Several pages had no visible
   focus ring at all, which makes the site unusable without a mouse. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- checkout add-on ---------------------------------------------------- */
.addon {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 1rem;
}
.addon-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.addon-row input { margin-top: 3px; flex: 0 0 auto; }
.addon-row > span { display: block; }
.addon-note { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }

/* ---- order page extras --------------------------------------------------
   What else was on the order. A customer who paid for the digital files had no
   confirmation of it anywhere on the page they were sent to. */
.extras { list-style: none; padding: 0; margin: .75rem 0 0; }
.extras li {
  padding: .5rem .75rem; margin: .35rem 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); font-size: .95rem;
}

/* ---- phones --------------------------------------------------------------
   The footer policy links are a row of NAVIGATION, not prose, and at 17px tall
   with hairline gaps they are genuinely hard to hit with a thumb. Give them
   real vertical room on small screens without turning them into buttons. */
@media (max-width: 620px) {
  .policy-foot p { line-height: 2.2; }
  .policy-foot a { display: inline-block; padding: 6px 2px; }
  /* Form controls comfortably thumb-sized. */
  input, select, textarea, button { min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { min-height: 0; }
}

/* ---- builder on a phone --------------------------------------------------
   Two things that only show up at thumb scale. */
@media (max-width: 620px) {
  /* Zoom sits on a map the customer is dragging with the same thumb. 34px wide
     is a miss waiting to happen; the 44 already applied to height goes across
     too. */
  .pk-btn { width: 44px; height: 44px; }
  .pk-zoom { right: 12px; bottom: 12px; gap: 8px; }

  /* The section head puts a heading and a row of badges side by side, which at
     390px squeezed "Your piece" onto two lines with the badges crowding it.
     Stack them: there is no width to share. */
  .section-head { display: block; }
  .section-head .badge-row { margin-top: 8px; }
}
