/* Gold Moment — emotional campaign page. Shares tokens with main styles. */

:root {
  color-scheme: light;
  --ink: #22181a;
  --charcoal: #32262a;
  --oxblood: #6f2126;
  --blush: #fcdddc;
  --blush-soft: #fbe9e7;
  --ivory: #fdfaf6;
  --porcelain: #f7efe9;
  --champagne: #e9dcc6;
  --gold: #b98a4e;
  --gold-deep: #a1723a;
  --gold-light: #e8cfa4;
  --muted: #7b6f6c;
  --line: rgba(34, 24, 26, 0.12);
  --line-light: rgba(253, 250, 246, 0.22);
  --font-display: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --size-base: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --size-small: 0.75rem;
  --size-kicker: 0.6875rem;
  --size-lead: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  --size-h1: clamp(2.6rem, 1.8rem + 4.4vw, 5.2rem);
  --size-h2: clamp(2rem, 1.5rem + 2.6vw, 3.6rem);
  --size-h3: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  --space-md: 2rem;
  --space-lg: clamp(3rem, 6vw, 5rem);
  --space-xl: clamp(4.5rem, 9vw, 8rem);
  --container: 74rem;
  --container-wide: 92rem;
  --motion-fast: 0.25s;
  --motion-medium: 0.55s;
  --motion-slow: 1s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --z-header: 100;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; min-width: 20rem; overflow-x: hidden; background: var(--ivory); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--oxblood); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 4px; }

.skip-link {
  position: fixed; z-index: var(--z-header); top: 0.75rem; left: 0.75rem;
  padding: 0.8rem 1rem; transform: translateY(-180%);
  background: var(--ivory); color: var(--ink); border: 1px solid var(--line);
  transition: transform var(--motion-medium) var(--ease-standard);
}
.skip-link:focus { transform: none; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; }
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
em { font-style: italic; }
p { margin: 0 0 1rem; max-width: 42rem; }
p:last-child { margin-bottom: 0; }

.kicker, .section-label {
  margin: 0 0 1.25rem; font-size: var(--size-kicker); font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
}
.kicker { color: var(--gold-light); }
.section-label { color: var(--oxblood); }
.lead { font-size: var(--size-lead); font-weight: 300; line-height: 1.7; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: 1rem 2.1rem; border: 1px solid;
  font-size: var(--size-small); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-out);
}
.button:hover { transform: translateY(-1px); }
.button.light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.button.light:hover { background: var(--gold-light); border-color: var(--gold-light); }
.button.dark { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.button.dark:hover { background: var(--oxblood); border-color: var(--oxblood); }
.button:disabled { cursor: wait; opacity: 0.58; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--size-small); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--oxblood); border-bottom: 1px solid transparent; padding-bottom: 0.2rem;
}
.text-link:hover { border-color: currentColor; }

/* Header */
.gm-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  color: var(--ivory);
  transition: background var(--motion-medium) var(--ease-standard), color var(--motion-medium) var(--ease-standard), box-shadow var(--motion-medium) var(--ease-standard);
}
.gm-header.scrolled { background: rgba(253, 250, 246, 0.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.06em; }
.wordmark-sub { margin-top: 0.3rem; font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.75; }
.gm-header nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.gm-header nav a { font-size: var(--size-small); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }
.gm-header nav a:hover { opacity: 1; }
.gm-cta {
  border: 1px solid currentColor; padding: 0.55rem 1rem;
  font-size: var(--size-small); letter-spacing: 0.18em; text-transform: uppercase;
  transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.gm-cta:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

/* Hero */
.gm-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--ivory); isolation: isolate; }
.gm-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.gm-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.gm-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,10,12,0.3) 0%, rgba(20,10,12,0.06) 38%, rgba(20,10,12,0.64) 100%); }
.gm-hero-copy { padding: clamp(2rem,5vw,4rem) clamp(1.25rem,5vw,4.5rem) clamp(4rem,9vh,6rem); max-width: 48rem; }
.gm-hero-copy .lead { color: rgba(253,250,246,0.88); }
.gm-hero-copy h1 em { color: var(--gold-light); }
.gm-hero-copy .actions { margin-top: 1.75rem; }
.preview-note {
  margin-top: 1.25rem; padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--gold-deep); background: var(--blush-soft);
  font-size: var(--size-small); color: var(--muted);
}
.gm-hero-copy .preview-note { background: rgba(252, 221, 220, 0.14); border-left-color: var(--gold-light); color: rgba(253,250,246,0.85); }

/* Statement */
.gm-statement, .gm-ai, .gm-packaging, .gm-availability {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.gm-statement h2 em, .gm-ai h2 em { color: var(--oxblood); }
.gm-statement p, .gm-ai p, .gm-packaging p, .gm-availability p { margin-left: auto; margin-right: auto; color: var(--muted); }

/* Journeys */
.gm-journeys { background: var(--porcelain); padding: var(--space-xl) 0; }
.section-heading { max-width: var(--container); margin: 0 auto var(--space-lg); padding: 0 clamp(1.25rem, 4vw, 3rem); }
.journey-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem);
  max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.journey-card {
  background: var(--ivory); padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 2px solid var(--gold-deep);
}
.journey-index { font-size: var(--size-kicker); letter-spacing: 0.24em; color: var(--gold-deep); }
.journey-card h3 { margin: 0.6rem 0 0.75rem; }
.journey-card p { color: var(--muted); }

/* Features */
.gm-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: var(--container-wide); margin: 0 auto; padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
}
.gm-feature--flip .feature-media { order: 2; }
.feature-media { overflow: hidden; aspect-ratio: 1 / 1; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.6s var(--ease-out); }
.reveal-media.visible img, .reveal.visible .reveal-media img { transform: scale(1); }
.feature-copy h2 { margin-bottom: 1.25rem; }
.feature-copy > p { color: var(--muted); }
.feature-list { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.feature-list li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 1px; background: var(--gold-deep); }
.feature-steps { margin-top: 1.75rem; display: grid; gap: 1.2rem; }
.feature-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-steps span { font-size: var(--size-kicker); letter-spacing: 0.2em; color: var(--gold-deep); padding-top: 0.35rem; }
.feature-steps strong { display: block; margin-bottom: 0.25rem; }
.feature-steps p { color: var(--muted); margin: 0; }

/* QR */
.gm-qr {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem) var(--space-xl);
}
.qr-copy > p { color: var(--muted); }
.qr-media { overflow: hidden; aspect-ratio: 4 / 5; }
.qr-media img { width: 100%; height: 100%; object-fit: cover; }

/* Availability */
.gm-availability { background: var(--ink); color: var(--ivory); max-width: none; }
.gm-availability .section-label { color: var(--gold-light); }
.gm-availability p { color: rgba(253,250,246,0.75); }
.gm-availability .actions { margin-top: 1.75rem; display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.gm-availability .text-link { color: var(--gold-light); }

/* Footer */
.gm-footer {
  background: var(--charcoal); color: rgba(253,250,246,0.8);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: var(--space-lg) clamp(1.25rem, 4vw, 3rem);
}
.gm-footer .wordmark { color: var(--ivory); }
.gm-footer p { font-size: var(--size-small); letter-spacing: 0.08em; color: rgba(253,250,246,0.55); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 899px) {
  .gm-header nav { display: none; }
  .gm-feature, .gm-qr { grid-template-columns: 1fr; }
  .gm-feature--flip .feature-media { order: 0; }
  .journey-grid { grid-template-columns: 1fr; }
  .gm-hero { min-height: 82vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .feature-media img { transform: none; }
}

.builder { padding-top: var(--space-xl); background: var(--porcelain); }
.builder-shell { max-width: 72rem; margin: 0 auto; padding: 0 5vw 7rem; }
.builder-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.builder-progress li { min-width: 0; padding: .8rem .4rem; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.builder-progress li.active { border-bottom: 2px solid var(--oxblood); color: var(--oxblood); }
.builder-progress li.complete { color: var(--ink); }
.builder-form {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(53, 35, 32, .18);
  background: #fff;
}
.builder-form[hidden], .builder-success[hidden] { display: none; }
.builder-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; border: 0; }
.builder-form legend { margin-bottom: 1rem; font-family: Georgia, serif; font-size: 1.5rem; }
.builder-form .field-intro { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.builder-form label { display: grid; gap: .45rem; font-size: .85rem; }
.field-hint, .counter { color: var(--muted); font-size: .75rem; font-weight: 400; }
.counter { float: right; font-variant-numeric: tabular-nums; }
.builder-form .wide { grid-column: 1 / -1; }
.builder-form input:not([type="checkbox"]), .builder-form select, .builder-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem;
  border: 1px solid rgba(53, 35, 32, .3);
  border-radius: 0;
  background: #fff;
  color: #352320;
  font: inherit;
}
.builder-form textarea { min-height: 8rem; resize: vertical; }
.builder-form .consent { display: flex; align-items: flex-start; }
.output-choice { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; padding: 1rem; border: 1px solid var(--line); }
.output-choice > span, .output-choice .field-hint { flex-basis: 100%; }
.output-choice label { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.experience-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; padding:1rem; border:1px solid rgba(185,138,78,.45); background:var(--ivory); }
.experience-grid > span,.experience-grid > p { grid-column:1/-1; }
.experience-grid label,.coming-soon { display:grid; grid-template-columns:auto 1fr; gap:.15rem .65rem; min-width:0; padding:.9rem; border:1px solid var(--line); background:#fff; }
.experience-grid input { grid-row:1/3; align-self:start; }
.experience-grid article { display:grid; gap:.15rem; min-width:0; padding:.9rem; border:1px solid var(--line); background:#fff; }
.experience-grid article small { color:var(--muted); overflow-wrap:anywhere; }
.bazi-disclaimer { grid-column:1/-1; margin:0; padding:.85rem; border:1px solid rgba(185,138,78,.35); background:#fff; color:var(--charcoal); font-size:.85rem; line-height:1.5; }
.coming-soon { opacity:.6; }
.privacy-mark { color:var(--gold-deep); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; }
.moment-preview { margin-top: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(185,138,78,.45); background: var(--blush-soft); text-align: center; }
.moment-preview h3 { overflow-wrap: anywhere; }
.moment-preview blockquote { max-width: 36rem; margin: 1.5rem auto; color: var(--charcoal); font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.moment-preview #preview-occasion { margin: 1rem auto 0; color: var(--gold-deep); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.moment-preview #preview-from { margin: 0 auto; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.builder-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.form-state, .ai-state { min-height: 1.5rem; }
.form-state[data-kind="error"] { color: #8b1e1e; }
.builder-success { max-width: 48rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(53, 35, 32, .18); background: #fff; }
.submission-reference { margin-top: 1rem; color: var(--oxblood); font-weight: 600; }

@media (max-width: 640px) {
  .builder-form fieldset { grid-template-columns: 1fr; }
  .builder-shell { padding-right: 1rem; padding-left: 1rem; }
  .builder-form { padding: 1rem; }
  .builder-actions .button { width: 100%; }
  .builder-progress li { font-size: .65rem; letter-spacing: .04em; }
  .experience-grid { grid-template-columns:1fr; }
}

/* Gold Moment Hub */
.gm-hub { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }
.hub-session-hint { color: #6F6552; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.hub-card { background: #FDFAF4; border: 1px solid #ECDFC8; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hub-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hub-card h3 { margin: 0; font-size: 20px; }
.hub-badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #ECDFC8; color: #1C1508; white-space: nowrap; }
.hub-badge[data-status="consumed"] { background: #B8862E; color: #FDFAF4; }
.hub-badge[data-status="reserved"] { background: #D8C19A; color: #1C1508; }
.hub-body { display: flex; flex-direction: column; gap: 12px; }
.hub-body label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.hub-body input, .hub-body select, .hub-body textarea { padding: 10px; border: 1px solid #D8C19A; border-radius: 6px; font: inherit; background: #fff; }
.hub-disclosure { font-size: 12px; color: #8A7D6B; }
.hub-result img, .hub-result video { width: 100%; border-radius: 8px; display: block; }
.hub-result audio { width: 100%; }
.hub-done, .hub-progress { color: #6F6552; }
@media (prefers-reduced-motion: reduce) { .gm-hub * { transition: none !important; animation: none !important; } }
