/* PROTOTYPE — throwaway styles. Base + one block per variant. */
:root {
  --ink: #161616; --muted: #8b8985; --line: #ebe9e6; --soft: #f7f6f3; --bg: #fff; --gold: #b39a6b;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 300 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.title { font: 300 34px/1.1 var(--serif); margin: 0 0 6px; letter-spacing: .01em; }
.brand { font: 400 22px var(--serif); letter-spacing: .32em; text-transform: uppercase; }

/* buttons */
.btn { border: 1px solid var(--ink); padding: 13px 22px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transition: .2s; }
.btn:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 8px 14px; font-size: 10px; }

/* top bar */
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar nav { display: flex; gap: 32px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.topbar nav .on { color: var(--ink); }
.topbar-r { min-width: 80px; text-align: right; font-size: 18px; }

/* viewer */
.rv-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.rv-tip { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .15s; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; z-index: 5; white-space: nowrap; }

/* controls */
.pc { display: flex; flex-direction: column; gap: 26px; padding: 6px 0 10px; }
.c-field { display: flex; flex-direction: column; gap: 10px; }
.c-head { display: flex; justify-content: space-between; align-items: baseline; }
.c-head label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.c-val { font: 400 16px var(--serif); }
.c-info { margin: 0; font-size: 12px; color: var(--muted); }
.c-ticks { display: flex; justify-content: space-between; font-size: 10px; color: #b5b2ad; margin-top: -4px; }
.c-ticks span { cursor: pointer; min-width: 14px; text-align: center; }
.c-ticks span.on { color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -7px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); padding: 8px 15px; font-size: 12px; border-radius: 999px; transition: .15s; }
.chip:hover { border-color: #c9c6c0; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.shape { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 9px; border: 1px solid transparent; font-size: 10.5px; color: var(--muted); transition: .15s; }
.shape svg { color: #9b978f; }
.shape:hover { background: var(--soft); }
.shape.on { border-color: var(--ink); color: var(--ink); }
.shape.on svg { color: var(--ink); }
.swatches { display: flex; gap: 12px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0, var(--m) 45%, color-mix(in srgb, var(--m), #000 22%) 100%); outline: 1px solid transparent; outline-offset: 3px; }
.swatch.on { outline-color: var(--ink); }

/* prompt box */
.pb { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 4px 4px 20px; transition: border-color .15s; }
.pb:focus-within { border-color: var(--ink); }
.pb-input { flex: 1; border: 0; outline: 0; font: 300 14px var(--sans); background: transparent; min-width: 0; padding: 9px 0; }
.pb-input::placeholder { color: #aaa69f; }
.pb-go { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; flex: none; }


/* ---------- A: Atelier ---------- */
.va { height: 100vh; display: flex; flex-direction: column; }
.va-main { flex: 1; display: grid; grid-template-columns: 1fr 440px; min-height: 0; }
.va-stage { position: relative; background: #fff; overflow: hidden; }
.va-hint { position: absolute; top: 22px; left: 0; right: 0; text-align: center; margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--muted); z-index: 2; pointer-events: none; }
.va-prompt { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(620px, 88%); z-index: 2; }
.va-prompt .pb { box-shadow: 0 10px 40px rgba(0,0,0,.07); padding-left: 24px; }
.va-reply { margin: 0 0 10px; text-align: center; font: italic 400 17px var(--serif); color: #555; opacity: 0; transition: opacity .3s; min-height: 1em; }
.va-reply.on { opacity: 1; }
.va-panel { border-left: 1px solid var(--line); padding: 38px 40px 90px; overflow-y: auto; }
.va-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.va-price .muted { font-size: 11px; }
.va-acc { border-top: 1px solid var(--line); margin-bottom: 28px; }
.va-sec { border-bottom: 1px solid var(--line); }
.va-sec summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; flex-direction: column; gap: 3px; position: relative; }
.va-sec summary::-webkit-details-marker { display: none; }
.va-sec summary::after { content: '+'; position: absolute; right: 0; top: 18px; font-size: 18px; font-weight: 200; }
.va-sec[open] summary::after { content: '–'; }
.va-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.va-sum { font-size: 12px; color: var(--muted); }
.va-sec .pc { padding-bottom: 28px; }
.va .btn-dark { width: 100%; }

/* ---------- B: Guided steps ---------- */
.vb { height: 100vh; display: flex; flex-direction: column; }
.vb-top { height: 84px; }
.vb-steps { display: flex; gap: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.vb-step { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; text-align: left; padding: 10px 26px; border-left: 1px solid var(--line); min-width: 190px; color: var(--muted); }
.vb-step:first-child { border-left: 0; }
.vb-step > span:nth-child(2) { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.vb-step small { grid-column: 2; font-size: 11px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b2afa9; }
.vb-num { font: 400 15px var(--serif); grid-row: span 2; }
.vb-step.on { color: var(--ink); }
.vb-step.on .vb-num { border-bottom: 1px solid var(--ink); }
.vb-step.done { color: #6b6964; }
.vb-main { flex: 1; display: grid; grid-template-columns: 480px 1fr; min-height: 0; }
.vb-side { border-right: 1px solid var(--line); overflow-y: auto; }
.vb-panel { padding: 44px 48px 90px; }
.vb-copy { margin: 0 0 26px; }
.vb-ask { margin-bottom: 30px; }
.vb-eg { font-size: 12px; color: #aaa69f; margin: 8px 0 0 20px; }
.vb-reply { font: italic 400 15px var(--serif); color: #555; margin: 6px 0 0 20px; min-height: 1em; }
.vb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.vb-stage { position: relative; background: linear-gradient(#fff, #faf9f7); overflow: hidden; }
.vb-views { position: absolute; top: 22px; right: 26px; z-index: 2; display: flex; gap: 2px; border: 1px solid var(--line); background: #fff; }
.vb-views button { padding: 8px 14px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vb-views button:hover { color: var(--ink); background: var(--soft); }
.vb-hint { position: absolute; left: 26px; top: 24px; margin: 0; font-size: 11px; color: var(--muted); z-index: 2; pointer-events: none; }
.vb-review .eyebrow { margin: 22px 0 6px; }
.vb-name { font: 400 22px var(--serif); margin: 0; }
.vb-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

/* ---------- C: Muse ---------- */
.vc { position: fixed; inset: 0; }
.vc-stage { position: absolute; inset: 0; }
.vc-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 26px 36px; pointer-events: none; z-index: 3; }
.vc-top > * { pointer-events: auto; }
.vc-meta { display: flex; align-items: center; gap: 20px; }
.vc-title { font: italic 400 19px var(--serif); color: #555; }
.vc-price { font: 400 22px var(--serif); }
.vc-chat { position: absolute; left: 28px; top: 96px; bottom: 140px; width: 360px; display: flex; flex-direction: column; gap: 14px; z-index: 3; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border: 1px solid var(--line); padding: 24px; }
.vc-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; font-size: 13px; padding: 10px 14px; }
.msg.bot { font: 400 17px/1.35 var(--serif); padding: 4px 0; color: #3b3a38; }
.msg.me { align-self: flex-end; background: var(--soft); border-radius: 14px 14px 2px 14px; }
.vc-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-suggest .chip { font-size: 11px; padding: 6px 11px; }
.vc-card { position: absolute; z-index: 6; width: 340px; max-height: calc(100vh - 230px); overflow-y: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0,0,0,.1); padding: 20px 22px 8px; display: flex; flex-direction: column; gap: 14px; }
.vc-card-head { display: flex; justify-content: space-between; align-items: center; }
.vc-card-head .eyebrow { margin: 0; color: var(--ink); }
.vc-card-sum { margin: -8px 0 0; font-size: 12px; }
.vc-card .x { font-size: 22px; font-weight: 200; line-height: 1; }
.vc-card .shapes { grid-template-columns: repeat(4, 1fr); }
.vc-4c { position: absolute; left: 28px; right: 28px; bottom: 60px; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; padding: 16px 28px 12px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.vc-4c .c-field { gap: 6px; }
.vc-stage { left: 400px; bottom: 120px; }

/* passcode gate */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.gate-copy { font: italic 300 22px var(--serif); color: var(--muted); margin: 0 0 18px; }
.gate-row { display: flex; gap: 10px; }
.gate-input { border: 1px solid var(--line); padding: 12px 16px; font: 300 14px var(--sans); width: 220px; outline: 0; letter-spacing: .1em; }
.gate-input:focus { border-color: var(--ink); }
.gate-msg { min-height: 1.2em; margin: 0; font-size: 12px; color: #a05a5a; }

/* new controls */
.tint { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; }
.tint::-webkit-color-swatch-wrapper { padding: 3px; } .tint::-webkit-color-swatch { border: 0; border-radius: 999px; }
.engrave { border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; font: italic 400 18px var(--serif); outline: 0; }
.engrave:focus { border-bottom-color: var(--ink); }
.pb-go.busy { animation: pulse 1s ease-in-out infinite; }
.pb-input:disabled { color: #aaa; }
@keyframes pulse { 50% { opacity: .35; } }

/* match a photo */
.photo-btn { margin: 14px 0 0 20px; font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.photo-btn::before { content: '↑ '; }
.photo-btn:hover { color: #000; }
.photo-btn.busy { animation: pulse 1s ease-in-out infinite; }
.vb-again .photo-btn { margin-left: 0; }
.vb-again { margin-top: 28px; }
.vb-photo { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px; background: var(--soft); margin-bottom: 26px; }
.vb-photo img { width: 120px; height: 120px; object-fit: cover; display: block; }
.vb-photo .eyebrow { margin-bottom: 6px; }
.vb-photo-text { font: italic 400 16px/1.35 var(--serif); margin: 0 0 8px; color: #3b3a38; }

/* ---------- phones: ring pinned on top, controls scroll underneath ---------- */
@media (max-width: 820px) {
  .vb { height: 100dvh; }
  .vb-top { height: auto; flex-wrap: wrap; padding: 12px 16px 0; gap: 8px 0; border-bottom: 1px solid var(--line); }
  .vb-top .brand { font-size: 17px; letter-spacing: .26em; }
  .vb-top .topbar-r { min-width: 0; }
  .vb-steps { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 8px; width: calc(100% + 32px); }
  .vb-steps::-webkit-scrollbar { display: none; }
  .vb-step { min-width: 0; flex: 1 0 auto; padding: 10px 12px 12px; border-left: 0; display: flex; align-items: baseline; gap: 6px; }
  .vb-step small { display: none; }
  .vb-step.on { box-shadow: inset 0 -1px 0 var(--ink); }
  .vb-step.on .vb-num { border-bottom: 0; }
  .vb-main { grid-template-columns: 1fr; grid-template-rows: 42dvh 1fr; }
  .vb-stage { order: -1; border-bottom: 1px solid var(--line); }
  .vb-side { border-right: 0; }
  .vb-hint { display: none; }
  .vb-views { top: auto; bottom: 10px; right: 50%; transform: translateX(50%); }
  .vb-views button { padding: 7px 10px; font-size: 10px; white-space: nowrap; }
  .vb-panel { padding: 24px 20px 40px; }
  .title { font-size: 28px; }
  .vb-copy { margin-bottom: 18px; }
  .pb-input, .gate-input, .engrave { font-size: 16px; } /* ≥16px stops iOS zoom-on-focus */
  .chip { padding: 9px 14px; }
  .shape { padding: 10px 2px 8px; }
  input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -11px; }
  input[type=range]::-moz-range-thumb { width: 20px; height: 20px; }
  input[type=range] { height: 28px; }
  .vb-nav { position: sticky; bottom: 0; background: #fff; margin: 28px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .vb-nav .btn { flex: 1; padding: 14px 12px; }
  .vb-photo { grid-template-columns: 84px 1fr; padding: 12px; gap: 12px; }
  .vb-photo img { width: 84px; height: 84px; }
  .gate { padding: 0 24px; }
  .gate-row { flex-direction: column; width: 100%; max-width: 320px; }
  .gate-input { width: 100%; }
  .rv-tip { display: none; }
}

/* ---------- try it on ---------- */
.to { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; }
.to-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.to-head .eyebrow { margin: 0; color: var(--ink); flex: 1; }
.to-head .x { font-size: 26px; font-weight: 200; line-height: 1; }
.to-src { font-size: 12px; border-bottom: 1px solid var(--ink); }
.to-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--soft); overflow: hidden; }
.to-canvas { display: block; touch-action: none; }
.to-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.to-start { max-width: 420px; padding: 24px; text-align: center; }
.to-start .title { margin-bottom: 10px; }
.to-choices { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 16px; }
.to-msg { margin: 0; padding: 10px 20px 0; min-height: 1.5em; text-align: center; font: italic 400 16px var(--serif); color: #555; }
.to-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
.to-range { display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.to-range input { width: 130px; }
.vb-try { position: absolute; left: 26px; bottom: 24px; z-index: 2; }
@media (max-width: 820px) {
  .vb-try { left: 12px; bottom: auto; top: 10px; padding: 8px 12px; }
  .to-range input { width: 110px; }
  .to-controls .btn { flex-basis: 100%; padding: 13px; }
}
.vb-try-review { width: 100%; margin-bottom: 22px; }
