/* Corporate Gifting — concrete jar candles.
   Stand-alone: shares nothing with the toy shop's index.html. */
:root {
  --bg: #F6F2EC;
  --bg-2: #EDE6DC;
  --panel: #FFFFFF;
  --ink: #1F1D1A;
  --muted: #6B655C;
  --line: #E4DCD0;
  --accent: #1E4D3A;          /* the banner's deep green */
  --accent-hover: #163a2c;
  --accent-soft: #E6EEE9;
  --gold: #B08D3C;
  --wa: #1E9E58;
  --ok: #1E7B4F;
  --err: #B3261E;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,29,26,.05), 0 10px 30px rgba(31,29,26,.07);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: rgba(31,29,26,.04); border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246,242,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 10px 16px; flex-wrap: wrap; padding-block: 8px; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tools > a.shop-link { color: var(--muted); text-decoration: none; font-weight: 500; }
.tools > a.shop-link:hover { color: var(--ink); }
.wabtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13.5px;
  color: #0f6b3a; background: #eafaf0; border: 1px solid #bfeccf; white-space: nowrap; }
.wabtn:hover { background: #dcf7e6; border-color: #8fdca9; }
.wabtn svg { flex: none; color: #25d366; }
.pinbox { position: relative; display: flex; align-items: center; }
.pinbox input { width: 132px; padding: 9px 12px 9px 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  font-weight: 700; letter-spacing: .08em; outline: none; font-size: 14px; }
.pinbox input::placeholder { font-weight: 600; letter-spacing: 0; }
.pinbox input:focus, .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,77,58,.12); }
.pinbox.need input { border-color: #E3B341; background: #FFF9E8; }
.pinbox input.ok { border-color: #B7D3C3; background: var(--accent-soft); color: var(--accent); }
.pinbox input.bad { border-color: #F0A39B; background: #FEF3F2; color: var(--err); }
.pinbox svg, .search > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .45; pointer-events: none; }
.search { position: relative; }
.search input { width: 240px; padding: 9px 12px 9px 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); outline: none; font-size: 14px; }
.q-results { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; width: min(420px, 92vw); max-height: 60vh; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(31,29,26,.16); }
.q-results li { padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.q-results li[aria-selected=true], .q-results li:hover { background: var(--accent-soft); }
.q-results b { display: block; font-size: 13.5px; }
.q-results small { color: var(--muted); }
.q-results .none { cursor: default; color: var(--muted); }
.q-results .none:hover { background: none; }
.shipnote { border-top: 1px solid var(--line); font-size: 13px; padding: 7px 24px; text-align: center; color: var(--ink); background: var(--accent-soft); }
.shipnote.ask { background: #FFF9E8; color: #7A5A10; }
.shipnote.bad { background: #FEF3F2; color: var(--err); }
.shipnote b { font-weight: 700; }
.eta { margin: 0 0 14px; font-size: 13px; color: var(--accent); font-weight: 500; }
.eta:empty { display: none; }
.eta-sum { margin: -4px 0 12px; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.eta.warn { color: #9A5B00; background: #FFF6E0; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 19px; text-decoration: none; white-space: nowrap; }
.logo span { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-left: 6px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink) !important; font-weight: 600; }
.cart-link b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }

/* ---- banner ---- */
.banner { padding: 20px 0 8px; }
.banner-fig { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.banner-fig img { width: 100%; height: auto; }
.tier-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.tier-pick button { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 18px; transition: border-color .15s, box-shadow .15s; }
.tier-pick button:hover { box-shadow: var(--shadow); }
.tier-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.tier-pick span { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.tier-pick b { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.tier-pick small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* ---- studio: 3 columns ---- */
.studio { padding: 40px 0 64px; }
.studio-head { margin-bottom: 22px; }
.studio-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.studio-head p { margin: 8px 0 0; max-width: 60em; }
.studio-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 380px; gap: 24px; align-items: start; }

/* left: options */
.opts { position: sticky; top: 112px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  max-height: calc(100vh - 128px); overflow-y: auto; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
select, .field input[type=text], .field textarea {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B655C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
select:hover, .field input:hover, .field textarea:hover { border-color: #cfc5b6; }
.field textarea { resize: vertical; }
.help { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.help.bad { color: var(--err); }
.field .bad { border-color: var(--err); }
.ink-row { display: flex; gap: 8px; }
.ink-row input[type=color] { flex: none; width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--panel); cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.qty button { border: 0; background: var(--bg); width: 30px; height: 30px; cursor: pointer; font-size: 16px; }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 600; padding: 0; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg button { width: 40px; height: 40px; font-size: 18px; }
.qty-lg input { width: 72px; font-size: 16px; }
.quick-qty { display: flex; gap: 6px; margin-top: 8px; }
.quick-qty button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.quick-qty button:hover { border-color: var(--ink); }
.form-err { color: var(--err); font-size: 13px; margin: 0 0 10px; }
#addBtn { margin-top: 4px; }
#cancelEdit { margin-top: 8px; }

/* centre: stage */
.stage { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stage-card { position: relative; border-radius: 22px; padding: 22px 22px 26px; text-align: center; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, #EFE7DC, #F6F1EA); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tier-badge { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--panel);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.stage-price { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.stage-price small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; }
.stage-jar { width: min(400px, 80%); margin: 6px auto 0; }
.stage-jar .jar { width: 100%; height: auto; display: block; }
.stage-cap { font-size: 13px; color: var(--muted); margin: 14px 0 16px; }
.stage-cap b { color: var(--ink); }
.tag-card { position: relative; max-width: 420px; margin: 0 auto; background: #FFFDF8; border: 1px solid #E9E0D1; border-radius: 6px;
  padding: 16px 22px 18px 44px; text-align: left; box-shadow: 0 6px 16px rgba(60,40,20,.08); transform: rotate(-1deg); }
.tag-hole { position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.tag-label { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.tag-text { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.4; color: #3a332c; overflow-wrap: anywhere; }
.incl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.incl-pic { aspect-ratio: 1 / 1; border-radius: 12px; background-image: url("../img/hero-banner.jpg"); background-repeat: no-repeat; background-size: 330% auto; background-color: var(--bg-2); }
.incl-pic[data-tier=essential] { background-position: 3% 62%; }
.incl-pic[data-tier=personalised] { background-position: 50% 64%; }
.incl-pic[data-tier=premium] { background-position: 92% 52%; }
.incl h3 { font-size: 19px; }
.incl p { margin: 4px 0 10px; font-size: 14px; }
.incl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.incl-list li { font-size: 12px; font-weight: 500; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* right: cart */
.cart { position: sticky; top: 112px; }
.cart-in { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px;
  max-height: calc(100vh - 128px); overflow-y: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-head h2, .details h2 { font-size: 21px; }
.cart-head span { font-size: 13px; }
.cart-empty { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 16px; margin: 0; }
.lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.line.editing { border-color: var(--gold); background: #FFFBF2; }
.line-jar { grid-row: span 3; width: 44px; }
.line-jar .jar { width: 100%; height: auto; display: block; }
.line-title { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-title small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.line-text { font-size: 12px; color: var(--muted); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.line-unit { font-size: 12px; color: var(--muted); }
.line-total { font-weight: 700; font-size: 14px; white-space: nowrap; }
.line-acts { display: flex; gap: 10px; font-size: 12px; }
.line-acts button { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.line-acts button:hover { color: var(--ink); }
.line-acts .rm:hover { color: var(--err); }

.sum { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.sum dl { margin: 0 0 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; font-weight: 500; }
.sum dd.neg { color: var(--ok); }
.nudge { font-size: 13px; background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-weight: 500; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-transform: uppercase; font-size: 14px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; font-size: 13px; background: var(--accent-soft); border-radius: 999px; padding: 7px 14px; color: var(--accent); font-weight: 600; }
.coupon-on button { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 12px; }
.coupon-msg { font-size: 12px; margin: 6px 2px 0; color: var(--err); }
.coupon-msg.ok { color: var(--ok); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.total span { font-weight: 600; }
.total small { color: var(--muted); font-weight: 400; font-size: 12px; }
.total b { font-family: var(--serif); font-size: 26px; }

.details { display: flex; flex-direction: column; gap: 10px; }
.details .back { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.details .back:hover { color: var(--ink); }
.details label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.details label > input, .details label > textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 400; color: var(--ink); background: var(--panel); }
.details textarea { resize: vertical; }
.details .bad { border-color: var(--err) !important; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.opt { font-weight: 400; }
.secure { font-size: 12px; color: var(--muted); text-align: center; margin: -2px 0 2px; }

/* ---- builder extras ---- */
.dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dots button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px rgba(0,0,0,.14); cursor: pointer; padding: 0; }
.dots button.on { box-shadow: 0 0 0 2px var(--ink); }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.check-row b { display: block; font-size: 14px; }
.check-row small { display: block; font-size: 12px; color: var(--muted); }
.msgs { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.msgs legend { padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.msgs[disabled] { opacity: .45; }
.msgs[disabled] .msg { cursor: not-allowed; }
.msg-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 2px; }
.msg { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.msg input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.msg:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.drop { position: relative; display: block; border: 1.5px dashed #CFC5B6; border-radius: 12px; padding: 14px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--muted); }
.drop-empty b { color: var(--ink); font-size: 14px; }
.drop-empty small { font-size: 11px; }
.drop-full { display: flex; gap: 10px; align-items: center; }
.drop-full img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.drop-full b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.drop-full small { font-size: 12px; color: var(--muted); }
.drop-full small.bad { color: var(--err); }
.link-btn { border: 0; background: none; padding: 0; margin-top: 6px; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--err); }

/* ---- the jar scene: a soft-lit wall, a stone table, greenery ---- */
.scene { position: relative; isolation: isolate; margin: -22px -22px 0; padding: 22px 22px 6px;
  background:
    radial-gradient(60% 50% at 22% 8%, rgba(255,250,240,.95) 0%, rgba(255,250,240,0) 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(120,95,70,.10) 0%, rgba(120,95,70,0) 70%),
    linear-gradient(180deg, #F8F2E9 0%, #F1E7DA 76%, #E3D7C7 76.4%, #ECE3D7 86%, #E6DBCD 100%); }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 60px, rgba(255,255,255,.35) 60px 64px, rgba(255,255,255,0) 64px 140px); mask-image: linear-gradient(180deg, #000 0%, transparent 55%); }
.sprig { position: absolute; z-index: 0; pointer-events: none; }
.sprig-l { left: 2%; bottom: 14%; width: clamp(84px, 19%, 160px); transform: rotate(-6deg); }
.sprig-r { right: 5%; bottom: 15%; width: clamp(70px, 16%, 130px); }
.leaf-shadow { position: absolute; z-index: 0; left: -4%; top: -6%; width: 46%; opacity: .07; filter: blur(5px); pointer-events: none; transform: rotate(18deg); }
.scene > *:not(.sprig):not(.leaf-shadow) { position: relative; z-index: 1; }
.ref { position: absolute !important; right: 16px; top: 64px; margin: 0; width: 86px; background: #fff; padding: 5px 5px 3px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(60,40,20,.14); transform: rotate(3deg); text-align: center; }
.ref img { width: 100%; height: auto; border-radius: 6px; }
.ref figcaption { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.tag-logo { float: right; max-width: 76px; max-height: 40px; object-fit: contain; margin: -4px -8px 4px 10px; }

/* ---- how ---- */
.how { padding: 56px 0; background: var(--panel); border-block: 1px solid var(--line); }
.how h2 { font-size: 30px; margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.steps span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.steps h3 { font-size: 20px; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.spec-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.spec-note b { color: var(--ink); }

/* ---- flame ---- */
.flame { transform-origin: 150px 54px; animation: flick 2.4s ease-in-out infinite; }
@keyframes flick { 0%,100% { transform: scale(1,1) } 30% { transform: scale(.96,1.05) rotate(-1.5deg) } 60% { transform: scale(1.03,.97) rotate(1deg) } }
@media (prefers-reduced-motion: reduce) { .flame { animation: none } html { scroll-behavior: auto } }

/* ---- success dialog ---- */
.done { border: 0; border-radius: 20px; padding: 28px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; }
.done::backdrop { background: rgba(31,29,26,.45); }
.done-tick { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.done h2 { font-size: 24px; }
.done p { color: var(--muted); }
.done-lines { list-style: none; margin: 0 0 16px; text-align: left; font-size: 13px; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.done-lines li { padding: 3px 0; }
.done .btn + .btn { margin-top: 8px; }

/* ---- footer, toast, mobile bar ---- */
.foot { padding: 28px 0 90px; font-size: 13px; }
.foot p { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.mbar { display: none; }

/* ---- responsive ---- */
@media (max-width: 1240px) {
  .studio-grid { grid-template-columns: 290px minmax(0, 1fr); }
  .cart { grid-column: 1 / -1; position: static; }
  .cart-in { max-height: none; }
}
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .opts { position: static; max-height: none; order: 2; }
  .stage { order: 1; }
  .cart { order: 3; }
  .tier-pick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps, .spec-note { grid-template-columns: minmax(0, 1fr); }
  .tools { width: 100%; }
  .search { flex: 1 1 100%; order: 5; }
  .search input { width: 100%; }
  .cart-link { margin-left: auto; }
  .shipnote { font-size: 12px; padding: 6px 16px; }
  .sn-make { display: none; }
  .tools > a.shop-link { display: none; }
  .wabtn span { display: none; }
  .wabtn { padding: 8px 10px; }
  .pinbox input { width: 118px; }
  html { scroll-padding-top: 150px; }
  .mbar:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; justify-content: space-between; align-items: center;
    background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; text-decoration: none; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .toast { bottom: 84px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo span { display: none; }
  .banner { padding-top: 12px; }
  .banner-fig { border-radius: 12px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .incl { grid-template-columns: 96px minmax(0, 1fr); }
  .stage-card { padding: 16px 14px 20px; }
  .scene { margin: -16px -14px 0; padding: 16px 14px 4px; }
  .tag-text { font-size: 15px; }
  .tier-badge { white-space: nowrap; font-size: 11px; }
  .ref { width: 64px; top: 58px; right: 10px; }
  .ref figcaption { font-size: 8px; letter-spacing: .02em; white-space: nowrap; }
  .sprig-l { width: 72px; left: 0; }
  .sprig-r { width: 60px; right: 2%; }
  .stage-price { text-align: right; line-height: 1.2; }
  .stage-price small { display: block; }
}
