/* Mystery Creations — storefront styles */
:root {
  --ink: #0c1016;
  --ink-2: #141a24;
  --ink-3: #1c2433;
  --line: rgba(232, 214, 176, 0.16);
  --line-strong: rgba(232, 214, 176, 0.32);
  --cream: #f6efe0;
  --cream-dim: #d9d0bc;
  --gold: #d4b05a;
  --gold-bright: #f0d78a;
  --gold-deep: #9a7a32;
  --copper: #c57a48;
  --rose: #c45c4a;
  --mist: #9aa3b5;
  --paper: #fbf6ec;
  --paper-2: #efe6d2;
  --success: #3e9a6e;
  --danger: #c45c4a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 76px;
  --bar-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px));
  scroll-padding-bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(212, 176, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 10%, rgba(110, 196, 216, 0.05), transparent 50%),
    radial-gradient(800px 700px at 50% 120%, rgba(196, 92, 74, 0.05), transparent 50%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  max-width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  margin-left: max(20px, env(safe-area-inset-left, 0px));
  margin-right: max(20px, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(12, 16, 22, 0.94);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
}

.monogram {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.wordmark-text [data-store-name],
.wordmark-text strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cream);
}

.wordmark-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 22px;
}

.nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}


.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle svg { width: 20px; height: 20px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #2a210c;
  box-shadow: 0 8px 24px rgba(212, 176, 90, 0.22);
}


.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cream);
}


.btn-rose {
  background: var(--rose);
  color: #fff8f4;
}


.btn-wide { width: 100%; }

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--paper);
}

.hero h1 em {
  font-style: italic;
  font-weight: 450;
  color: var(--gold-bright);
}

.lede {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 34em;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-frame {
  width: min(100%, 440px);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 215, 138, 0.12), transparent 55%),
    var(--ink-2);
  box-shadow: inset 0 0 0 12px rgba(12, 16, 22, 0.4), var(--shadow);
  position: relative;
}

.hero-frame svg { width: 72%; height: auto; }

.orbit {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(232, 214, 176, 0.22);
  border-radius: 50%;
  animation: spin 48s linear infinite;
  pointer-events: none;
}
.orbit-2 {
  inset: -18px;
  animation-duration: 72s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(232, 214, 176, 0.08);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-head {
  max-width: 40em;
  margin-bottom: 44px;
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.section-head p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: linear-gradient(180deg, rgba(28, 36, 51, 0.8), rgba(20, 26, 36, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step p { margin: 0; color: var(--cream-dim); }

/* Tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tier-card {
  appearance: none;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px 18px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  width: 100%;
}

.tier-card.is-selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 176, 90, 0.12), rgba(20, 26, 36, 0.9));
  box-shadow: 0 0 0 1px var(--gold);
}

.box-visual {
  height: 72px;
  display: grid;
  place-items: end center;
  margin-bottom: 6px;
}
.box-visual svg { overflow: visible; }

.tier-size {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.tier-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.tier-price {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
}

.tier-card p.blurb {
  margin: 0;
  color: var(--mist);
  font-size: 0.82rem;
  line-height: 1.45;
  flex: 1;
}

.selected-mark {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  min-height: 1em;
}

/* Themes */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.theme-card {
  appearance: none;
  width: 100%;
  text-align: left;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.theme-card.is-selected {
  border-color: var(--theme-accent, var(--gold));
  box-shadow: 0 0 0 1px var(--theme-accent, var(--gold));
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-accent, var(--gold)) 16%, transparent), var(--ink-2));
}

.theme-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--theme-accent, var(--gold)) 18%, var(--ink-3));
  color: var(--theme-accent, var(--gold-bright));
}
.theme-icon svg { width: 32px; height: 32px; }

.theme-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.theme-card p {
  margin: 0;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.5;
  flex: 1;
}

/* Checkout / order */
.checkout-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-size: 0.98rem;
}
.summary-row span:first-child { color: var(--mist); }
.summary-row strong { font-weight: 500; }
.summary-total {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.25rem;
  font-family: var(--font-serif);
}

.checkout-note {
  margin: 8px 0 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.checkout-callout {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 22px 20px;
  background: rgba(12, 16, 22, 0.4);
}
.checkout-callout h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 500;
}
.stripe-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.checkout-callout p { margin: 0 0 14px; color: var(--mist); font-size: 0.9rem; }
.hint { color: var(--mist); font-size: 0.82rem; margin: 10px 0 0; }


/* Order form (dropdown checkout) */
.order-form {
  display: grid;
  gap: 28px;
}
.order-fields {
  display: grid;
  gap: 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 28px 24px;
}
.order-form .field {
  display: grid;
  gap: 8px;
}
.order-form label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--cream);
  font-weight: 500;
}
.order-form .optional {
  color: var(--mist);
  font-weight: 400;
}
.order-form select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f0d78a' stroke-width='1.8' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.order-form textarea {
  min-height: 104px;
  line-height: 1.45;
}
.order-form textarea#recipient {
  min-height: 88px;
}
.tier-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 16, 22, 0.45);
}
.tier-summary .box-visual { color: var(--gold-bright); }
.tier-summary h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.tier-summary .tier-price {
  margin: 4px 0 6px;
  color: var(--gold-bright);
  font-weight: 500;
}
.tier-summary .blurb {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}
.theme-hint {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.9rem;
}
.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.note-meta .hint { margin: 0; flex: 1; }
.char-count {
  color: var(--mist);
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Compact read-only overviews */
.tier-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.overview-tier {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.overview-tier h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.overview-tier .tier-price {
  margin: 2px 0 6px;
  color: var(--gold-bright);
  font-weight: 500;
}
.overview-tier .blurb {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.88rem;
}
.theme-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.overview-theme {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--theme-accent, var(--gold));
  border-radius: 16px;
  padding: 16px 18px 18px;
}
.overview-theme h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
  font-weight: 500;
}
.overview-theme p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  background: #1c2433;
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 800px; }

details.faq {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  min-height: 44px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq p {
  margin: 0 0 16px;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

label { font-size: 0.82rem; color: var(--cream-dim); display: grid; gap: 6px; }

input, textarea, select {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  width: 100%;
  font-size: 16px; /* iOS zooms inputs under 16px */
  min-height: 44px;
  max-width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 176, 90, 0.18);
}
textarea { min-height: 140px; resize: vertical; }

.form-status { min-height: 1.4em; font-size: 0.9rem; margin: 0; }
.form-status.is-ok { color: #8fddb4; }
.form-status.is-err { color: #f0a398; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  color: var(--mist);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--cream-dim);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
}


.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 78ch;
  line-height: 1.6;
  color: #8b93a3;
  font-size: 0.8rem;
}

/* Sticky order bar */
.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(14, 18, 26, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.order-bar[hidden] { display: none !important; }
.order-bar.is-visible { transform: translateY(0); display: block; }

.order-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bar-h);
  padding-block: 10px;
}

.order-bar-copy { min-width: 0; }
.order-bar-copy p { margin: 0; color: var(--mist); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.order-bar-copy h2 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Legal pages */
.legal {
  padding: 64px 0 120px;
  position: relative;
  z-index: 2;
}
.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.legal .meta { color: var(--mist); margin: 0 0 36px; }
.legal h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 32px 0 10px;
}
.legal p, .legal li { color: var(--cream-dim); max-width: 70ch; }
.legal ul { padding-left: 1.2em; }

/* Success */
.success-card {
  max-width: 560px;
  margin: 80px auto 120px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.success-card h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.4rem;
  margin: 16px 0 12px;
}
.success-card p { color: var(--cream-dim); }

/* Modal checkout (same content, mobile-friendly overlay option) */
body.has-bar { padding-bottom: calc(var(--bar-h) + 28px + env(safe-area-inset-bottom, 0px)); }
body.has-bar #checkout { padding-bottom: calc(84px + var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
body.has-bar .site-footer { padding-bottom: calc(var(--bar-h) + 36px + env(safe-area-inset-bottom, 0px)); }
body.has-bar .legal { padding-bottom: calc(120px + var(--bar-h) + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 1040px) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-grid, .theme-overview { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .checkout-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; order: -1; margin-bottom: 8px; }
  .hero-frame { width: min(52vw, 210px); }
  .hero { padding: 20px 0 48px; }
  .lede { margin-bottom: 22px; font-size: 1.05rem; }
}

@media (max-width: 1040px) and (min-width: 761px) {
  .hero-frame { width: min(58vw, 320px); }
  .hero { padding: 36px 0 64px; }
  .hero-art { min-height: 280px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c1016;
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 18px;
    gap: 0;
    z-index: 45;
    box-shadow: 0 28px 40px rgba(0, 0, 0, 0.55);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--cream);
  }
  .header-cta { display: none; }
  .header-cta.header-cta-mobile { display: inline-flex; }
}

@media (max-width: 760px) {
  .wrap {
    width: min(1160px, calc(100% - 28px));
    margin-left: max(14px, env(safe-area-inset-left, 0px));
    margin-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .steps { grid-template-columns: 1fr; }
  .tier-grid, .theme-grid { grid-template-columns: 1fr 1fr; }
  .theme-overview { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .checkout-panel, .contact-form, .order-fields { padding: 22px 18px; }
  .tier-overview, .theme-overview { grid-template-columns: 1fr; }
  .order-bar-inner { flex-wrap: nowrap; gap: 12px; min-height: 72px; padding-block: 8px; }
  .order-bar .btn { flex: 0 0 auto; padding: 10px 16px; min-height: 44px; }
  .order-bar-copy h2 { font-size: 0.98rem; }
  .wordmark-text { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .tier-grid { grid-template-columns: 1fr; }
  .theme-grid, .theme-overview { grid-template-columns: 1fr; }
  .note-meta { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 760px) {
  #order .section-head { margin-bottom: 18px; }
  #order h2 { font-size: 2rem; }
  .checkout-panel { gap: 16px; }
  .summary-row { padding-bottom: 8px; }
  .checkout-callout { padding: 14px 14px 12px; }
  .checkout-note { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit, .orbit-2, .btn, .tier-card, .theme-card, .order-bar { animation: none; transition: none; }
}

/* Hover-only affordances — don't stick on touch */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--cream); }
  .nav a:hover { color: var(--cream); }
  .btn:hover { transform: translateY(-1px); }
  .btn-gold:hover { color: #2a210c; }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
  .btn-rose:hover { color: #fff8f4; }
  .tier-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
  }
  .theme-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
  }
  .footer-links a:hover { color: var(--gold-bright); }
}

a, button, .tier-card, .theme-card, summary {
  touch-action: manipulation;
}

/* Short landscape phones: keep CTAs on screen, shrink chrome */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .hero-art { display: none; }
  .hero { padding: 16px 0 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .lede { margin-bottom: 16px; }
  .section { padding: 36px 0; }
}

@media (max-width: 360px) {
  .wordmark-text [data-store-name],
  .wordmark-text strong { font-size: 1rem; }
  .monogram { width: 32px; height: 32px; }
}

.legal p, .legal li, .disclaimer, .lede, .checkout-note, .form-status {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* iOS Safari's layout viewport is often ~659–740px, not the full device height */
@media (max-width: 960px) and (max-height: 760px) {
  .hero-art { margin-bottom: 0; }
  .hero-frame { width: min(34vw, 120px); }
  .hero { padding: 8px 0 20px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .lede { margin-bottom: 14px; font-size: 0.98rem; }
  .eyebrow { margin-bottom: 10px; }
}
@media (max-width: 960px) and (max-height: 600px) {
  .hero-art { display: none; }
}

