:root {
  --brand: #6a1b3a;
  --brand-dark: #52132c;
  --cream: #fbf9f5;
  --sand: #f5efea;
  --blush: #f8e8ee;
  --ink: #1f1a1c;
  --body: #40363b;
  --muted: #5c5055;
  --line: #e6dcd2;
  --gold: #c89d66;
  --leaf: #1f7a4c;
  --display: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 12px 18px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(230, 220, 210, .85);
  background: rgba(251, 249, 245, .9);
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  backdrop-filter: blur(16px) saturate(130%);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img, .footer-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand strong, .footer-brand strong { display: block; color: var(--ink); font-family: var(--display); font-size: 19px; line-height: 1; }
.brand small, .footer-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.section-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.hero { display: grid; gap: 42px; align-items: center; padding-block: 30px 72px; }
.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--sand);
  box-shadow: 0 30px 70px -40px rgba(106, 27, 58, .45);
}
.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  pointer-events: none;
}
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(251,249,245,.88);
  padding: 9px 13px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 500; text-wrap: balance; }
h1 { max-width: 690px; font-size: clamp(39px, 7vw, 66px); line-height: .98; letter-spacing: -.04em; }
.lede { max-width: 660px; margin: 22px 0 0; font-size: 15px; line-height: 1.75; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 26px 0 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.quick-facts li { padding: 15px 10px 15px 0; }
.quick-facts li + li { border-left: 1px solid var(--line); padding-left: 14px; }
.quick-facts strong { display: block; color: var(--brand); font-family: var(--display); font-size: 23px; line-height: 1; }
.quick-facts span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.launch-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; border: 1px solid rgba(106,27,58,.15); border-radius: 16px; background: var(--blush); padding: 14px; }
.launch-note > span { color: var(--gold); }
.launch-note p { margin: 0; font-size: 12px; line-height: 1.55; }
.launch-note strong { color: var(--brand); }
.primary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 36px -20px rgba(106,27,58,.8);
  padding: 0 22px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.personalizer { padding-block: 70px; border-top: 1px solid var(--line); }
.section-heading { max-width: 690px; margin-bottom: 30px; }
.section-heading h2, .details-intro h2, .specs h2 { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
.section-heading > p:last-child, .specs > div > p:last-child { margin: 14px 0 0; font-size: 14px; line-height: 1.65; }
.personalizer-grid { display: grid; gap: 20px; }
.controls, .preview-panel { border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 20px 50px -38px rgba(42,18,28,.38); }
.controls { padding: 20px; }
fieldset { margin: 0; border: 0; padding: 0; }
fieldset + fieldset { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
legend { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 14px; color: var(--ink); font-size: 13px; font-weight: 700; }
legend span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--blush); color: var(--brand); font-size: 9px; }
.select-wrap { display: block; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  appearance: none;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A1B3A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center;
  padding: 0 44px 0 14px;
  color: var(--ink);
  font-size: 13px;
}
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { position: relative; display: flex; min-height: 64px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--muted); font-size: 9px; font-weight: 600; text-align: center; transition: border-color .2s, background .2s; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch i { display: block; width: 22px; height: 22px; border: 2px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(31,26,28,.15); }
.swatch.is-selected { border-color: var(--brand); background: var(--blush); color: var(--brand); }
.upload-control { position: relative; display: flex; min-height: 150px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed rgba(106,27,58,.35); border-radius: 18px; background: linear-gradient(145deg, #fff, var(--blush)); padding: 20px; text-align: center; }
.upload-control strong { color: var(--ink); font-family: var(--display); font-size: 19px; }
.upload-control small { max-width: 300px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.upload-control > span { margin-top: 14px; border-radius: 999px; background: var(--brand); padding: 10px 16px; color: white; font-size: 10px; font-weight: 700; }
.upload-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.quality { display: flex; gap: 11px; align-items: flex-start; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.quality-dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 4px; border-radius: 50%; background: var(--muted); }
.quality p { margin: 0; }
.quality strong, .quality small { display: block; }
.quality strong { color: var(--ink); font-size: 11px; }
.quality small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.quality.is-good { border-color: rgba(31,122,76,.25); background: #eff9f3; }
.quality.is-good .quality-dot { background: var(--leaf); }
.quality.is-warning { border-color: rgba(181,118,24,.3); background: #fff8e8; }
.quality.is-warning .quality-dot { background: #b57618; }
.quality.is-poor { border-color: rgba(168,45,45,.25); background: #fff0f0; }
.quality.is-poor .quality-dot { background: #a82d2d; }
.locked-button { width: 100%; min-height: 52px; margin-top: 18px; border: 0; border-radius: 999px; background: #ded7d2; color: #756a6f; font-size: 11px; font-weight: 700; }
.lock-copy { margin: 10px 10px 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }

.preview-panel { align-self: start; overflow: hidden; }
.preview-topline { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 18px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.preview-room { position: relative; display: grid; min-height: 480px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #eee5db 0%, #fbf7f1 70%); padding: 38px 24px 60px; }
.preview-room::before { position: absolute; inset: 0; content: ""; opacity: .5; background: linear-gradient(120deg, rgba(255,255,255,.9), transparent 38%); }
.poster-frame { position: relative; z-index: 2; width: min(65%, 280px); aspect-ratio: var(--poster-ratio); border: 14px solid var(--frame-colour); border-radius: 2px; background: var(--frame-colour); box-shadow: 0 22px 30px -20px rgba(31,26,28,.55), 0 3px 8px rgba(31,26,28,.24); transition: aspect-ratio .25s, border-color .25s, background .25s; }
.poster-print { position: absolute; inset: 0; overflow: hidden; background: #f5f3ee; }
.poster-print > img { width: 100%; height: 100%; object-fit: cover; }
.poster-print > img[hidden], .preview-empty[hidden] { display: none !important; }
.preview-empty { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 18px; color: var(--muted); text-align: center; }
.preview-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--brand); font-size: 22px; }
.preview-empty strong { margin-top: 10px; color: var(--ink); font-family: var(--display); font-size: 15px; }
.preview-empty small { margin-top: 4px; font-size: 8px; line-height: 1.4; }
.room-shadow { position: absolute; z-index: 1; bottom: 42px; width: 50%; height: 22px; border-radius: 50%; background: rgba(42,18,28,.2); filter: blur(16px); }
.preview-help { margin: 0; border-top: 1px solid var(--line); padding: 14px 18px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.details { padding-block: 72px; }
.details-intro { max-width: 620px; }
.detail-cards { display: grid; gap: 14px; margin-top: 28px; }
.detail-cards article { border: 1px solid var(--line); border-radius: 20px; background: white; padding: 22px; }
.detail-cards article > span { color: var(--gold); font-size: 10px; font-weight: 700; }
.detail-cards h3 { margin-top: 28px; font-size: 23px; }
.detail-cards p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.specs { display: grid; gap: 30px; margin-bottom: 72px; border-radius: 28px; background: var(--brand-dark); padding: 28px 22px; color: #eadde2; }
.specs h2 { color: white; }
.specs .eyebrow { color: #d9ad75; }
.specs dl { margin: 0; }
.specs dl > div { display: grid; grid-template-columns: .85fr 1.4fr; gap: 14px; border-top: 1px solid rgba(255,255,255,.14); padding-block: 13px; }
.specs dt { color: #d2bec6; font-size: 10px; }
.specs dd { margin: 0; color: white; font-size: 11px; font-weight: 600; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 20px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
footer p { color: var(--muted); font-size: 10px; }

@media (min-width: 760px) {
  .site-header { padding-inline: max(28px, calc((100vw - 1180px) / 2)); }
  .hero { grid-template-columns: 1.08fr .92fr; padding-block: 48px 90px; }
  .hero-media { order: 2; }
  .hero-copy { order: 1; }
  .personalizer-grid { grid-template-columns: .9fr 1.1fr; gap: 26px; }
  .controls { padding: 26px; }
  .preview-room { min-height: 610px; }
  .poster-frame { width: min(58%, 340px); border-width: 17px; }
  .detail-cards { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: .8fr 1.2fr; padding: 44px; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .back-link { padding-inline: 13px; }
  .hero { gap: 28px; padding-bottom: 56px; }
  .hero-copy h1 { font-size: 39px; }
  .quick-facts strong { font-size: 21px; }
  .controls { padding: 16px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .preview-room { min-height: 430px; }
  .poster-frame { width: min(70%, 250px); border-width: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
