:root {
  --bg: #0e0d0c;
  --bg-2: #141210;
  --card: #191715;
  --card-2: #23201d;
  --line: rgba(236, 226, 210, .085);
  --line-2: rgba(236, 226, 210, .16);
  --text: #efe9e1;
  --muted: #aaa297;
  --faint: #7f786e;
  --gold: #d4af69;
  --gold-2: #ecd39c;
  --gold-ink: #1c1509;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  margin: 0;
  font: 700 12px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 13, 12, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 600 26px/1 var(--serif); letter-spacing: .01em;
}
.brand svg { width: 21px; height: 25px; color: var(--gold); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.lang {
  display: flex; padding: 3px; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  height: 30px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  font: 700 12px/1 var(--sans); letter-spacing: .06em; color: var(--faint);
}
.lang button[aria-pressed="true"] { background: var(--card-2); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 15px/1 var(--sans);
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #ebcd8d 0%, #c99d4f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 26px -12px rgba(212, 175, 105, .65);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .02); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  right: -12%; top: -30%; width: 75%; height: 150%;
  background: radial-gradient(closest-side, rgba(212, 175, 105, .13), transparent 72%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
  padding: 64px 24px 72px;
}
.hero h1 {
  margin: 20px 0 22px;
  font: 600 clamp(46px, 6.2vw, 82px)/1 var(--serif);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.lede { margin: 0; max-width: 33em; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--faint); }
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .85; }
.hero-visual { margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.hero-visual canvas {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .privacy h2 {
  margin: 14px 0 10px;
  font: 600 clamp(36px, 4.2vw, 52px)/1.05 var(--serif);
  letter-spacing: -.005em;
}
.section-head p:not(.eyebrow) { margin: 0; color: var(--muted); }
.studio { padding-top: 72px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }

/* ---------- studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px; align-items: start;
}
.preview { order: 2; position: sticky; top: 88px; }
.preview-inner { max-width: max(320px, calc((100vh - 210px) * 0.8)); margin: 0 auto; }
.controls { order: 1; display: grid; gap: 16px; }

.canvas-wrap {
  position: relative;
  border-radius: 26px; overflow: hidden;
  background: #121110;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .95), 0 0 0 1px var(--line);
}
#canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; touch-action: pan-y; }
#canvas.can-drag { cursor: grab; }
#canvas.dragging { cursor: grabbing; }
.has-photo #canvas { touch-action: none; }
.drop-hint {
  position: absolute; inset: 14px; display: grid; place-items: center;
  border: 2px dashed var(--gold); border-radius: 18px;
  background: rgba(14, 13, 12, .72); color: var(--gold-2);
  font: 600 18px/1.2 var(--sans);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.canvas-wrap.over .drop-hint { opacity: 1; }
.preview-actions { display: flex; gap: 10px; margin-top: 16px; }
.preview-actions .btn { flex: 1; }
.lbl-short { display: none; }
.fine { margin: 12px 6px 0; font-size: 13px; color: var(--faint); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 24px;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.step {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 13px/1 var(--sans); color: var(--gold);
  background: var(--card-2); border: 1px solid var(--line-2);
}
.card h3 { margin: 0; font: 700 17px/1.2 var(--sans); }

.field { display: grid; gap: 8px; margin-top: 18px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; font-weight: 500; color: var(--faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--faint); }

input[type="text"], textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
  font: 500 15px/1.4 var(--sans);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder, textarea::placeholder { color: var(--faint); }
input[type="text"]:focus, textarea:focus { border-color: rgba(212, 175, 105, .7); box-shadow: 0 0 0 3px rgba(212, 175, 105, .16); }
textarea { resize: vertical; min-height: 70px; }

/* segmented */
.seg {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
}
.seg button {
  flex: 1 1 0; min-width: 0; height: 38px; padding: 0 10px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--muted);
  transition: background-color .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  display: grid; justify-items: center; align-content: center; gap: 8px;
  min-height: 86px; padding: 12px 6px 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  font: 600 12.5px/1.2 var(--sans); color: var(--muted); text-align: center;
  transition: border-color .15s, color .15s, background-color .15s;
}
.tile:hover { color: var(--text); border-color: var(--line-2); }
.tile[aria-pressed="true"] { color: var(--text); border-color: rgba(212, 175, 105, .75); background: linear-gradient(180deg, rgba(212, 175, 105, .1), rgba(212, 175, 105, 0) 70%), var(--bg-2); }
.tile svg { width: 26px; height: 34px; }
.tile[aria-pressed="true"] svg { color: var(--gold-2); }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 10px -4px rgba(0, 0, 0, .6); }
.sw-black { background: radial-gradient(circle at 32% 28%, #45464a, #141517 55%, #08090a); }
.sw-grey { background: radial-gradient(circle at 32% 28%, #c6c8ca, #8c8f92 55%, #5d6063); }
.sw-red { background: radial-gradient(circle at 32% 28%, #b36a5b, #7a3b31 55%, #4c221d); }
.sw-marble { background: linear-gradient(135deg, transparent 45%, rgba(120, 116, 110, .55) 48%, transparent 52%), radial-gradient(circle at 32% 28%, #ffffff, #e7e4de 55%, #c3bfb7); }
.sw-gold { background: linear-gradient(160deg, #f7e5ad, #c9993f 50%, #f0d189 75%, #9c7228); }
.sw-silver { background: linear-gradient(160deg, #ffffff, #b9b8b4 50%, #eeedea 75%, #8b8a87); }
.sw-ink { background: radial-gradient(circle at 32% 28%, #3c3c3d, #121212 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.aa { font-weight: 400; font-size: 30px; line-height: 34px; color: var(--text); }
.f-roman { font-family: "Forum", serif; }
.f-classic { font-family: var(--serif); font-weight: 600; }
.f-script { font-family: "Marck Script", cursive; }

/* symbol icons */
.icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.icons button {
  height: 48px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.icons button svg { width: 24px; height: 24px; }
.icons button:hover { color: var(--text); border-color: var(--line-2); }
.icons button[aria-pressed="true"] { color: var(--gold-2); border-color: rgba(212, 175, 105, .75); background: linear-gradient(180deg, rgba(212, 175, 105, .1), rgba(212, 175, 105, 0)), var(--bg-2); }

/* range */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--card-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: linear-gradient(180deg, #ecd39c, #c99d4f); border: 0;
  box-shadow: 0 0 0 4px rgba(212, 175, 105, .16), 0 2px 6px rgba(0, 0, 0, .5);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #ecd39c, #c99d4f);
  box-shadow: 0 0 0 4px rgba(212, 175, 105, .16), 0 2px 6px rgba(0, 0, 0, .5);
}
input[type="range"]:disabled { opacity: .35; cursor: default; }

/* upload */
.drop {
  display: grid; justify-items: center; gap: 6px; margin-top: 18px;
  padding: 26px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--bg-2);
  transition: border-color .15s, background-color .15s;
}
.drop svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 4px; }
.drop strong { font-size: 15px; font-weight: 600; }
.drop span { font-size: 13px; color: var(--faint); }
.drop:hover, .drop.over { border-color: rgba(212, 175, 105, .7); background: rgba(212, 175, 105, .05); }
.photo-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.photo-row img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 10px; }
.photo-meta { display: grid; gap: 2px; min-width: 0; flex: 1; }
.photo-meta strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-meta span { font-size: 12.5px; color: var(--faint); line-height: 1.35; }
.photo-btns { display: flex; flex-direction: column; gap: 6px; }

/* ---------- how ---------- */
.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step-card { padding: 28px 26px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.step-num { font: 600 15px/1 var(--sans); letter-spacing: .12em; color: var(--gold); }
.step-card h3 { margin: 22px 0 10px; font: 600 28px/1.1 var(--serif); }
.step-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- privacy ---------- */
.privacy { padding-top: 0; }
.privacy-card {
  display: flex; gap: 28px; align-items: center;
  padding: 40px 44px;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 105, .22);
  background: radial-gradient(120% 140% at 0% 0%, rgba(212, 175, 105, .12), rgba(212, 175, 105, 0) 55%), var(--card);
}
.privacy-card svg { width: 56px; height: 56px; flex: none; color: var(--gold); }
.privacy h2 { margin: 0 0 8px; font-size: clamp(30px, 3.4vw, 40px); }
.privacy p { margin: 0; color: var(--muted); max-width: 46em; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: -4px 0 20px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer-inner > span:last-child { margin-left: auto; }
.brand-sm { font-size: 22px; color: var(--muted); }
.credit { font-size: 12.5px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--text);
  font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 44px 24px 56px; }
  .hero-visual { justify-self: center; max-width: 420px; }
  .studio-grid { grid-template-columns: 1fr; gap: 20px; }
  .preview {
    order: 0; top: 64px; z-index: 10;
    margin: 0 -24px; padding: 12px 24px;
    background: rgba(14, 13, 12, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .preview-inner { display: flex; gap: 14px; align-items: stretch; max-width: none; margin: 0; }
  .canvas-wrap { flex: none; height: min(40vh, 380px); aspect-ratio: 4 / 5; border-radius: 18px; }
  #canvas { width: 100%; height: 100%; }
  .preview-actions { flex: 1; flex-direction: column; justify-content: flex-end; margin: 0; min-width: 0; }
  .preview-actions .btn { flex: none; width: 100%; padding: 0 14px; }
  .fine { display: none; }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-grid { padding: 32px 16px 44px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .lede { font-size: 16.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
  .studio { padding-top: 48px; }
  .preview { margin: 0 -16px; padding: 10px 16px; }
  .canvas-wrap { height: min(36vh, 300px); }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .card { padding: 18px 16px 20px; border-radius: 18px; }
  .tiles { gap: 6px; }
  .tile { min-height: 78px; font-size: 12px; }
  .icons { gap: 6px; }
  .photo-row { flex-wrap: wrap; }
  .photo-btns { flex-direction: row; width: 100%; }
  .photo-btns .btn { flex: 1; }
  .privacy-card { flex-direction: column; align-items: flex-start; padding: 28px 22px; gap: 18px; }
  .footer-inner > span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
