:root {
  --bg: #15110d;
  --bg-2: #1d1712;
  --card: #241c15;
  --line: #3a2e23;
  --text: #f6efe4;
  --muted: #b8a993;
  --glow: #ffd98a;
  --accent: #f0b65a;
  --accent-ink: #1a130b;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.02em; }
h1 em { font-style: italic; font-weight: 400; color: var(--glow); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--accent); margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { padding: 88px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: .95rem 1.6rem;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 30px -8px rgba(240, 182, 90, .6);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(240, 182, 90, .8); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(21, 17, 13, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; text-decoration: none; }
.brand span { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-left: .35rem; }
.nav nav { display: flex; align-items: center; gap: 1.6rem; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* HERO */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; }
.price-hint { color: var(--muted); font-size: .9rem; }
.hero-media { position: relative; margin: 0; justify-self: center; }
.hero-media img { position: relative; border-radius: 22px; max-height: 620px; width: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.glow { position: absolute; inset: 20% -10%; background: radial-gradient(closest-side, rgba(255, 210, 130, .35), transparent); filter: blur(40px); }

/* STEPS */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px; }
.steps img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; width: 100%; margin-bottom: 1.1rem; }
.steps h3, .steps p { padding: 0 6px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { position: absolute; top: 24px; left: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* CONFIGURATOR */
.create { background: var(--bg-2); border-block: 1px solid var(--line); }
.create-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.preview-col { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; }

.frame {
  --w: 5; --h: 7;
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: var(--w) / var(--h);
  background: #0e0b08;
  border: 18px solid #1b1714;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #2c2620, 0 30px 60px -20px rgba(0,0,0,.8);
  transition: box-shadow .4s, aspect-ratio .3s;
}
.frame[data-size="4x6"] { --w: 4; --h: 6; width: min(100%, 340px); }
.frame[data-orientation="horizontal"] { aspect-ratio: var(--h) / var(--w); width: min(100%, 460px); }
.frame[data-orientation="horizontal"][data-size="4x6"] { width: min(100%, 400px); }
.frame.lit { box-shadow: inset 0 0 0 1px #2c2620, 0 0 90px -10px rgba(255, 205, 120, .45), 0 30px 60px -20px rgba(0,0,0,.8); }
.frame canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.frame canvas:active { cursor: grabbing; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #6d5c48; font-size: .9rem; text-align: center; padding: 1rem; background: linear-gradient(#f4e6c8, #e9d4ab); }
.frame:not(.lit) .placeholder { background: linear-gradient(#ecebe6, #d9d7d0); }
.placeholder.hidden { display: none; }

.preview-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.switch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.switch button { background: none; border: 0; color: var(--muted); font: 500 .88rem var(--sans); padding: .45rem 1rem; border-radius: 999px; cursor: pointer; }
.switch button.active { background: var(--text); color: var(--bg); }
.zoom { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .88rem; }
.zoom input { accent-color: var(--accent); width: 120px; }
.hint { color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }

.order-col h2 { margin-bottom: .2em; }
fieldset { border: 0; padding: 0; margin: 1.8rem 0 0; }
legend { font-weight: 600; margin-bottom: .7rem; padding: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; flex-direction: column; gap: 2px; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, background .15s; }
.opt small { color: var(--muted); }
.opt input:checked + span { border-color: var(--accent); background: rgba(240, 182, 90, .08); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.drop { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.6rem 1rem; border: 1.5px dashed #5a4a39; border-radius: 12px; background: var(--card); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(240, 182, 90, .06); }
.drop.has-file { border-style: solid; border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop small { color: var(--muted); }
.tip { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }

textarea { width: 100%; resize: vertical; background: var(--card); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; font: inherit; }
textarea:focus { outline: none; border-color: var(--accent); }

.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.total strong { font-family: var(--serif); font-size: 2rem; }
.order-col .btn-block { margin-top: 1rem; }
.msg { min-height: 1.4em; font-size: .9rem; margin: .8rem 0 0; color: var(--glow); }
.msg.error { color: #ff9b85; }
.secure { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; margin: .2rem 0 0; }

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.5rem; }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); width: 100%; }
.occasions { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.occasions li { border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; color: var(--muted); }

/* IDEAS */
.ideas { background: var(--bg-2); border-block: 1px solid var(--line); }
.ideas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 2.5rem 0 1rem; }
.ideas-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ideas-grid img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.ideas-grid figcaption, .idea-cta { display: flex; flex-direction: column; gap: 2px; padding: .8rem 1rem 1rem; }
.ideas-grid figcaption span, .idea-cta span { color: var(--muted); font-size: .85rem; }
.idea-cta { justify-content: center; text-decoration: none; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: rgba(240, 182, 90, .06); min-height: 160px; }
.idea-cta b { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.idea-cta span { color: var(--accent); }
@media (max-width: 860px) { .ideas-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '−'; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); margin: .7rem 0 0; }

.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-inner, .create-inner { grid-template-columns: 1fr; }
  .hero-media img { max-height: 460px; }
  .preview-col { position: static; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .nav nav a:not(.btn) { display: none; }
}
