/* ==========================================================================
   Wedding Game Kit — global stylesheet
   Mobile-first · no frameworks · no external fonts
   ========================================================================== */

/* ------------------------------ tokens ------------------------------ */
:root {
  --ivory: #FAF7F1;
  --white: #FFFFFF;
  --ink: #292724;
  --muted: #706B64;
  --gold: #B99056;
  --gold-dark: #8E6A3E;
  --sage: #7D8B78;
  --sage-dark: #566250;
  --blush: #D9B8AE;
  --blush-pale: #F3E7E3;
  --line: #E4DDD3;

  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(41, 39, 36, .05), 0 4px 14px rgba(41, 39, 36, .07);
  --shadow-2: 0 2px 6px rgba(41, 39, 36, .07), 0 14px 34px rgba(41, 39, 36, .12);
  --shadow-3: 0 8px 20px rgba(41, 39, 36, .12), 0 28px 60px rgba(41, 39, 36, .18);
  --wrap: 1180px;
  --dur: .35s;
  --ease: cubic-bezier(.33, 1, .48, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw + 1rem, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.2vw + .9rem, 2.4rem); }
h3 { font-size: 1.22rem; }
h4 { font-family: var(--font-sans); font-size: 1.02rem; margin: 0 0 .4em; }
p  { margin: 0 0 1em; }

a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

::selection { background: var(--blush-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: .7rem 1.2rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }

.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); }

section { padding: clamp(3.4rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.7rem;
  font: 600 1rem/1.2 var(--font-sans);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg, .btn img { width: 19px; height: 19px; flex: none; }

.btn-primary {
  background: linear-gradient(140deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white); box-shadow: 0 8px 22px rgba(142, 106, 62, .32);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(142, 106, 62, .42); color: var(--white); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }

.btn-ghost {
  background: var(--white); color: var(--ink);
  border-color: var(--line); box-shadow: var(--shadow-1);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn-quiet { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; }
.btn-quiet:hover { color: var(--ink); }

.btn-lg { min-height: 56px; padding: 1rem 2.2rem; font-size: 1.06rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 247, 241, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(41,39,36,.06); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-serif); font-size: 1.18rem; letter-spacing: .02em; }
.brand-name em { font-style: normal; color: var(--gold-dark); }

.nav-links { display: none; }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 68px 0 auto 0; z-index: 89;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: .8rem 1.25rem calc(1.4rem + var(--safe-b));
  box-shadow: var(--shadow-2);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem .4rem; min-height: 50px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ivory);
}
.mobile-menu a::after { content: "→"; color: var(--gold); }
.mobile-menu .btn { width: 100%; margin-top: 1rem; }

@media (min-width: 1024px) {
  .nav-toggle, .mobile-menu { display: none; }
  .nav-links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
  .nav-links a {
    font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
    padding: .4rem 0; position: relative;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--gold); transition: right .3s var(--ease);
  }
  .nav-links a:hover::after { right: 0; }
  .nav-cta { display: inline-flex; min-height: 44px; padding: .55rem 1.3rem; }
}

/* ------------------------------ hero ------------------------------ */
.hero { padding: clamp(2.2rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); position: relative; overflow: clip; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% 8%, rgba(217,184,174,.22), transparent 65%),
    radial-gradient(55% 40% at 8% 90%, rgba(125,139,120,.14), transparent 65%),
    url("assets/patterns/botanical.svg");
  background-size: auto, auto, 340px;
  opacity: .9;
}
.hero-grid { position: relative; display: grid; gap: 2.6rem; }
.hero-grid > * { min-width: 0; max-width: 100%; }
.hero-copy { max-width: 640px; }
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.hero .lede { font-size: 1.12rem; margin-bottom: 1.7rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero-ctas .btn { flex: 1 1 220px; }
.trust-line {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--muted);
}
.trust-line img { width: 17px; height: 17px; }

/* hero stack — mobile: horizontal snap gallery */
.hero-stage { position: relative; }
.hero-stack {
  display: flex; gap: 1rem; overflow-x: auto; padding: 1.2rem .2rem 1.6rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-stack::-webkit-scrollbar { display: none; }
.hero-card {
  flex: 0 0 min(66vw, 250px); scroll-snap-align: center;
  border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-2); border: 1px solid var(--line);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: -2.3s; }
.hero-card:nth-child(3) { animation-delay: -4.1s; }
.hero-card:nth-child(4) { animation-delay: -1.2s; }
.hero-card:nth-child(5) { animation-delay: -5.5s; }
.hero-card img { width: 100%; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.hero-hint { text-align: center; font-size: .82rem; color: var(--muted); }
.hero-hint::before { content: "← "; color: var(--gold); }
.hero-hint::after { content: " →"; color: var(--gold); }

/* desktop hero: layered 3D composition */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-hint { display: none; }
  .hero-stage { perspective: 1400px; min-height: 520px; }
  .hero-stack {
    display: block; overflow: visible; padding: 0;
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(6deg) rotateY(-9deg);
    transition: transform .25s ease-out;
  }
  .hero-card {
    position: absolute; width: 250px; animation: none;
    transition: box-shadow .3s;
  }
  .hero-card:nth-child(1) { left: 6%; top: 4%;  transform: translateZ(20px) rotate(-5deg); }
  .hero-card:nth-child(2) { left: 42%; top: 0;   transform: translateZ(70px) rotate(3deg); z-index: 2; }
  .hero-card:nth-child(3) { left: 22%; top: 34%; transform: translateZ(120px) rotate(-1.5deg); z-index: 3; box-shadow: var(--shadow-3); }
  .hero-card:nth-child(4) { left: 58%; top: 42%; transform: translateZ(55px) rotate(6deg); z-index: 2; }
  .hero-card:nth-child(5) { left: -2%; top: 52%; transform: translateZ(35px) rotate(-8deg); }
  .hero-ornament { position: absolute; right: -30px; top: -34px; width: 190px; opacity: .8; transform: translateZ(10px); }
  .hero-spotlight {
    position: absolute; inset: -80px; pointer-events: none; z-index: 4;
    background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 40%), rgba(185,144,86,.13), transparent 70%);
  }
}
.hero-ornament { display: none; }
@media (min-width: 1024px) { .hero-ornament { display: block; } }

.petal {
  position: absolute; top: -24px; width: 13px; height: 13px; border-radius: 60% 40% 60% 40%;
  background: var(--blush); opacity: .55; pointer-events: none; z-index: 1;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(-30px) rotate(0) translateX(0); opacity: 0; }
  8%   { opacity: .55; }
  100% { transform: translateY(108vh) rotate(340deg) translateX(60px); opacity: 0; }
}

/* ------------------------------ marquee strip ------------------------------ */
.strip { border-block: 1px solid var(--line); background: var(--white); padding: 1rem 0; }
.strip-track { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 2.2rem; }
.strip-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.strip-item img { width: 18px; height: 18px; }

/* ------------------------------ preview gallery ------------------------------ */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 270px);
  gap: 1.1rem; overflow-x: auto; padding: .6rem .2rem 1.4rem;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { scroll-snap-align: center; text-align: center; }
.gallery-item figure { margin: 0 0 .8rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gallery-item:hover figure { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.gallery-item figcaption { font-family: var(--font-serif); font-size: 1.02rem; }
.gallery-item p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (min-width: 768px) { .gallery { grid-auto-columns: 240px; justify-content: safe center; } }

/* ------------------------------ how it works ------------------------------ */
.steps-row { display: grid; gap: 1.2rem; counter-reset: step; }
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; position: relative; box-shadow: var(--shadow-1);
}
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 2.4rem; color: var(--gold);
  opacity: .55; display: block; line-height: 1; margin-bottom: .6rem;
}
.step-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-row { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------ category showcase ------------------------------ */
.cat-grid { display: grid; gap: 1.1rem; }
.cat-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--blush); }
.cat-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: var(--blush-pale); color: var(--gold-dark);
  display: grid; place-items: center;
}
.cat-icon img { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.cat-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.cat-card a { font-size: .9rem; font-weight: 600; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------ generator shell ------------------------------ */
.generator-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-2); overflow: hidden;
}
.gen-head {
  padding: 1.5rem 1.3rem 1.2rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blush-pale), var(--white) 90%);
}
.gen-head h3 { margin: 0 0 .2rem; }
.gen-head p { margin: 0; color: var(--muted); font-size: .92rem; }

.gen-progress { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; }
.gen-progress-bar { flex: 1; height: 6px; background: var(--ivory); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.gen-progress-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width .5s var(--ease);
}
.gen-progress-label { font-size: .8rem; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }

.gen-body { padding: 1.5rem 1.3rem 6.5rem; min-height: 420px; }
@media (min-width: 768px) { .gen-body { padding: 2.2rem 2.4rem 2.4rem; } }

.gen-step { animation: stepIn .45s var(--ease); }
.gen-step[hidden] { display: none; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: none; }
}
.gen-step-title { font-size: 1.4rem; margin-bottom: .3rem; }
.gen-step-sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }

/* forms */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem;
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='m1 1.5 6 6 6-6' stroke='%238E6A3E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(185, 144, 86, .16);
}
.field .error-msg { display: none; color: #A0433A; font-size: .84rem; margin-top: .4rem; }
.field.invalid input, .field.invalid select { border-color: #C4685F; }
.field.invalid .error-msg { display: block; }

.field-row { display: grid; gap: 1rem; }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* choice chips (radio cards) */
.chip-group { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: .6rem .7rem; gap: .4rem;
  background: var(--ivory); border: 1.5px solid var(--line); border-radius: 12px;
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:active span { transform: scale(.97); }
.chip input:checked + span {
  border-color: var(--gold); background: var(--blush-pale); color: var(--gold-dark);
  box-shadow: 0 3px 12px rgba(185, 144, 86, .18);
}
.chip input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

/* theme cards */
.theme-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.theme-card { position: relative; }
.theme-card input { position: absolute; opacity: 0; inset: 0; }
.theme-card .theme-body {
  display: flex; flex-direction: column; height: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--white);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.theme-card:hover .theme-body { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.theme-card:active .theme-body { transform: scale(.985); }
.theme-card input:checked + .theme-body {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,144,86,.22), var(--shadow-2);
}
.theme-card input:focus-visible + .theme-body { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.theme-swatch {
  display: grid; place-items: center; position: relative;
  height: clamp(108px, 16vw, 138px); overflow: hidden;
}
.ts-mini {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .28rem; width: 62%; max-width: 118px; aspect-ratio: 3 / 3.9;
  border: 1px solid; border-radius: 4px;
  box-shadow: 0 5px 14px rgba(41, 39, 36, .14);
  font-family: var(--font-serif); text-align: center;
  transform: rotate(-2.5deg);
  transition: transform .3s var(--ease);
}
.theme-card:hover .ts-mini, .theme-card input:checked + .theme-body .ts-mini { transform: rotate(0) scale(1.03); }
.ts-orn { font-style: normal; font-size: .8rem; line-height: 1; }
.ts-names { font-weight: 400; font-size: clamp(.92rem, 2.6vw, 1.08rem); letter-spacing: .02em; }
.ts-names i { font-style: italic; }
.ts-rule { display: block; width: 26px; height: 1px; }
.ts-date { font-style: normal; font-family: var(--font-sans); font-size: .5rem; letter-spacing: .18em; }
.ts-dots { position: absolute; right: 10px; bottom: 9px; display: flex; gap: 5px; }
.ts-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .65);
}

.theme-info { display: block; padding: .7rem .85rem .8rem; border-top: 1px solid var(--ivory); }
.theme-name { display: block; font-weight: 700; font-size: .92rem; }
.theme-desc { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; line-height: 1.45; }

.theme-check {
  position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px;
  border-radius: 50%; background: var(--gold); color: var(--white);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.5);
  transition: opacity .25s, transform .3s var(--ease);
  box-shadow: 0 3px 9px rgba(142, 106, 62, .4);
}
.theme-check svg { width: 13px; height: 13px; }
.theme-card input:checked + .theme-body .theme-check { opacity: 1; transform: scale(1); }

.theme-live {
  margin-top: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.2rem; display: grid; gap: 1rem; align-items: center;
  background: var(--ivory);
}
@media (min-width: 768px) { .theme-live { grid-template-columns: 200px 1fr; } }
.theme-live-card {
  width: 100%; max-width: 210px; margin-inline: auto; aspect-ratio: 3 / 4.2;
  border-radius: 8px; background: var(--white); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; padding: 1rem; text-align: center; border: 1px solid var(--line);
  transition: background .35s, border-color .35s;
}
.theme-live-card .tl-orn { font-size: 1rem; letter-spacing: .3em; }
.theme-live-card .tl-names { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.25; }
.theme-live-card .tl-amp { font-family: var(--font-serif); font-style: italic; font-size: .95rem; }
.theme-live-card .tl-date { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.theme-live-card .tl-rule { width: 44px; height: 1px; }
.theme-live p { font-size: .9rem; color: var(--muted); margin: 0; }

/* game select cards */
.game-grid { display: grid; gap: .9rem; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
  position: relative;
}
.game-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,144,86,.16), var(--shadow-1);
  transform: translateY(-2px);
}
.game-card-main {
  display: flex; gap: .85rem; align-items: flex-start; width: 100%;
  padding: 1rem; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.game-card-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--ivory); display: grid; place-items: center; color: var(--gold-dark);
  transition: background .25s;
}
.game-card.selected .game-card-icon { background: var(--blush-pale); }
.game-card-icon img { width: 24px; height: 24px; }
.game-card-title { font-weight: 700; font-size: .96rem; line-height: 1.3; display: block; }
.game-card-meta { font-size: .78rem; color: var(--muted); display: block; margin-top: .15rem; }
.game-check {
  position: absolute; top: .8rem; right: .8rem; width: 24px; height: 24px;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  display: grid; place-items: center; transition: background .25s, border-color .25s;
  pointer-events: none;
}
.game-check svg { width: 13px; height: 13px; stroke: var(--white); stroke-width: 3; fill: none;
  stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease) .05s; }
.game-card.selected .game-check { background: var(--gold); border-color: var(--gold); }
.game-card.selected .game-check svg { stroke-dashoffset: 0; }

.game-card-details { border-top: 1px dashed var(--line); padding: .8rem 1rem .95rem; font-size: .86rem; color: var(--muted); }
.game-card-details[hidden] { display: none; }
.game-card-details dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; margin: .5rem 0 0; }
.game-card-details dt { font-weight: 700; color: var(--ink); }
.game-card-details dd { margin: 0; }
.game-card-more {
  background: none; border: 0; color: var(--gold-dark); font: 600 .82rem var(--font-sans);
  cursor: pointer; padding: .35rem .5rem; margin: -0.2rem 0 .35rem .6rem; border-radius: 6px;
  min-height: 32px;
}
.game-count-note { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.game-count-note .count-pill {
  background: var(--blush-pale); color: var(--gold-dark); border-radius: 99px;
  padding: .2rem .8rem; border: 1px solid var(--blush);
  transition: transform .2s var(--ease);
}
.game-count-note .count-pill.bump { transform: scale(1.14); }

/* customize accordions */
.custom-block { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; background: var(--white); overflow: hidden; }
.custom-block > summary {
  list-style: none; display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; cursor: pointer; font-weight: 700; font-size: .96rem;
  -webkit-tap-highlight-color: transparent;
}
.custom-block > summary::-webkit-details-marker { display: none; }
.custom-block > summary img { width: 22px; height: 22px; }
.custom-block > summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px;
  border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.custom-block[open] > summary::after { transform: rotate(225deg); }
.custom-block .custom-inner { padding: .2rem 1.1rem 1.2rem; border-top: 1px dashed var(--line); }
.custom-block .field { margin-bottom: 1rem; }
.custom-list { margin: .4rem 0 0; padding: 0; list-style: none; }
.custom-list li { display: grid; gap: .5rem; margin-bottom: .6rem; }
@media (min-width: 768px) { .custom-list li { grid-template-columns: 1.4fr 1fr; } }

/* print options + estimate */
.estimate-box {
  margin-top: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory); padding: 1.2rem; display: grid; gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .estimate-box { grid-template-columns: repeat(4, 1fr); } }
.estimate-item .est-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-dark); line-height: 1.1; }
.estimate-item .est-label { font-size: .78rem; color: var(--muted); }

/* generation state */
.gen-loading { text-align: center; padding: 2.5rem 0 1.5rem; }
.gen-loading-rings { width: 74px; height: 46px; margin: 0 auto 1.4rem; position: relative; }
.gen-loading-rings::before, .gen-loading-rings::after {
  content: ""; position: absolute; top: 0; width: 44px; height: 44px;
  border: 2.5px solid var(--gold); border-radius: 50%; opacity: .9;
  animation: ringPulse 1.6s ease-in-out infinite;
}
.gen-loading-rings::before { left: 0; }
.gen-loading-rings::after { right: 0; border-color: var(--gold-dark); animation-delay: -.8s; }
@keyframes ringPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.12);} }
.gen-loading h3 { margin-bottom: 1.4rem; }
.gen-tasks { list-style: none; margin: 0 auto; padding: 0; max-width: 340px; text-align: left; }
.gen-tasks li {
  display: flex; align-items: center; gap: .7rem; padding: .45rem 0;
  color: var(--muted); font-size: .93rem; opacity: .45; transition: opacity .3s;
}
.gen-tasks li .tick {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--white);
  transition: background .3s, border-color .3s;
}
.gen-tasks li .tick svg { width: 12px; height: 12px; stroke: var(--white); stroke-width: 3; fill: none; stroke-dasharray: 22; stroke-dashoffset: 22; }
.gen-tasks li.active { opacity: 1; color: var(--ink); }
.gen-tasks li.done { opacity: 1; }
.gen-tasks li.done .tick { background: var(--sage); border-color: var(--sage); }
.gen-tasks li.done .tick svg { stroke-dashoffset: 0; transition: stroke-dashoffset .35s var(--ease); }

/* wizard footer nav */
.gen-nav {
  display: flex; gap: .7rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.3rem calc(1rem + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--white);
}
.gen-nav .btn { flex: 1; }
.gen-nav .btn-quiet { flex: 0 0 auto; }
@media (max-width: 767px) {
  .gen-nav.sticky-mobile { position: sticky; bottom: 0; z-index: 20; box-shadow: 0 -8px 24px rgba(41,39,36,.08); }
}
@media (min-width: 768px) {
  .gen-nav { justify-content: flex-end; }
  .gen-nav .btn { flex: 0 0 auto; min-width: 170px; }
  .gen-nav .btn-quiet { margin-right: auto; }
}
.gen-error {
  color: #A0433A; background: #FBEeec; border: 1px solid #E8C5C0;
  padding: .7rem 1rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem;
}

/* ------------------------------ pack preview / result ------------------------------ */
.result-head { text-align: center; margin-bottom: 1.6rem; }
.result-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.result-summary {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1rem;
  padding: 0; list-style: none;
}
.result-summary li {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 99px;
  padding: .32rem .95rem; font-size: .84rem; color: var(--muted);
}
.result-summary li strong { color: var(--ink); font-weight: 600; }

.pack-viewer { display: grid; gap: 1.3rem; }
@media (min-width: 1024px) { .pack-viewer { grid-template-columns: 96px 1fr 250px; align-items: start; } }

.page-rail {
  display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .1rem .7rem;
  scrollbar-width: thin; order: 2;
}
@media (min-width: 1024px) {
  .page-rail { flex-direction: column; overflow: visible; max-height: 640px; overflow-y: auto; order: 0; padding-right: .4rem; }
}
.page-thumb {
  flex: 0 0 64px; aspect-ratio: 1 / 1.35; border-radius: 6px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; position: relative; overflow: hidden; padding: 0;
  transition: border-color .2s, transform .2s var(--ease);
}
.page-thumb:hover { transform: translateY(-2px); }
.page-thumb.current { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(185,144,86,.25); }
.page-thumb .pt-label {
  position: absolute; inset: auto 0 0; font-size: .56rem; padding: .15rem .2rem;
  background: rgba(250,247,241,.92); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-thumb .pt-art { position: absolute; inset: 0 0 14px; display: grid; place-items: center; }
.page-thumb .pt-art img { width: 20px; height: 20px; opacity: .7; }
.page-thumb.locked .pt-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(228,221,211,.55) 30%, rgba(255,255,255,.9) 50%, rgba(228,221,211,.55) 70%);
  background-size: 200% 100%;
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }

.page-stage { position: relative; order: 1; }
.pack-page {
  margin-inline: auto; width: min(100%, 460px); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); border-radius: 4px;
  position: relative; overflow: hidden;
  container-type: inline-size;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pack-page.turning { opacity: 0; transform: translateX(18px) scale(.99); }
.pack-page.ratio-a4 { aspect-ratio: 210 / 297; }
.pack-page.ratio-letter { aspect-ratio: 216 / 279; }

/* pack page inner typography scales with container width */
.pg { position: absolute; inset: 0; padding: 7.5% 8%; display: flex; flex-direction: column; font-size: 12px; }
@container (min-width: 300px) { .pg { font-size: 3.4cqw; } }
.pg .pg-frame { position: absolute; inset: 3.5%; border: 1px solid; pointer-events: none; }
.pg .pg-frame.double::after { content: ""; position: absolute; inset: 5px; border: 1px solid; opacity: .5; }
.pg-eyebrow { text-align: center; letter-spacing: .28em; text-transform: uppercase; font-size: .58em; margin-bottom: .5em; }
.pg-title { font-family: var(--font-serif); text-align: center; font-size: 1.75em; line-height: 1.2; margin: 0 0 .25em; }
.pg-sub { text-align: center; font-style: italic; font-family: var(--font-serif); font-size: .82em; margin: 0 0 1.2em; }
.pg-rule { width: 34%; height: 1px; margin: .4em auto 1.2em; }
.pg ol, .pg ul { margin: 0; padding-left: 1.4em; font-size: .78em; line-height: 1.75; }
.pg-list-plain { list-style: none !important; padding: 0 !important; }
.pg-list-plain li { display: flex; gap: .6em; align-items: baseline; margin-bottom: .55em; }
.pg-list-plain .bx { flex: none; width: .95em; height: .95em; border: 1px solid; border-radius: 3px; transform: translateY(.15em); }
.pg-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid; flex: 1; }
.pg-grid > div {
  border: .5px solid; padding: 2%; font-size: .5em; line-height: 1.25;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.pg-cover-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6em; }
.pg-cover-center .pgc-names { font-family: var(--font-serif); font-size: 2.1em; line-height: 1.2; }
.pg-cover-center .pgc-amp { font-family: var(--font-serif); font-style: italic; font-size: 1.2em; }
.pg-cover-center .pgc-date { letter-spacing: .3em; text-transform: uppercase; font-size: .62em; }
.pg-cover-center .pgc-kicker { letter-spacing: .2em; text-transform: uppercase; font-size: .55em; }
.pg-cover-list { font-size: .72em; text-align: center; line-height: 2; }
.pg-foot { margin-top: auto; text-align: center; font-size: .55em; letter-spacing: .16em; text-transform: uppercase; opacity: .75; padding-top: 1em; }
.pg-writein { border-bottom: 1px solid; height: 1.5em; margin-bottom: .9em; opacity: .65; }
.pg-q { font-size: .8em; margin-bottom: .4em; font-weight: 600; }
.pg-opts { font-size: .7em; margin: 0 0 .9em; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .2em .8em; }
.pg-opts li { display: flex; align-items: center; gap: .5em; }
.pg-opts .oc { width: .8em; height: .8em; border: 1px solid; border-radius: 50%; flex: none; }
.pg-2col { columns: 2; column-gap: 6%; font-size: .74em; line-height: 1.7; }
.pg-cardlets { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; flex: 1; }
.pg-cardlet { border: 1px dashed; border-radius: 6px; padding: 6% 5%; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: .5em; }
.pg-cardlet .pc-title { font-family: var(--font-serif); font-size: .8em; }
.pg-cardlet .pc-body { font-size: .62em; line-height: 1.5; }
.pg-cardlet .pc-lines { width: 100%; }
.pg-cardlet .pc-lines i { display: block; border-bottom: 1px solid; height: 1.1em; opacity: .5; }

.locked-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .7rem; text-align: center;
  background: linear-gradient(180deg, rgba(250,247,241,.55), rgba(250,247,241,.92) 55%);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  padding: 1.5rem;
}
.locked-overlay .lock-badge {
  width: 54px; height: 54px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  display: grid; place-items: center; color: var(--gold-dark);
  position: relative; overflow: hidden;
}
.locked-overlay .lock-badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(185,144,86,.28) 50%, transparent 65%);
  background-size: 220% 100%; animation: shimmer 3s linear infinite;
}
.locked-overlay .lock-badge img { width: 24px; height: 24px; }
.locked-overlay strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.05rem; }
.locked-overlay p { font-size: .82rem; color: var(--muted); margin: 0; max-width: 30ch; }

.page-stage-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .9rem; }
.page-stage-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, transform .15s;
}
.page-stage-nav button:hover { border-color: var(--gold); }
.page-stage-nav button:active { transform: scale(.94); }
.page-stage-nav button img { width: 18px; height: 18px; }
.page-indicator { font-size: .85rem; color: var(--muted); min-width: 90px; text-align: center; }

.pack-side { order: 3; }
.pack-contents {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 1.2rem; box-shadow: var(--shadow-1);
}
.pack-contents h4 { font-family: var(--font-serif); font-size: 1.06rem; }
.pack-contents ul { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.pack-contents li { display: flex; gap: .55rem; align-items: center; padding: .34rem 0; color: var(--muted); }
.pack-contents li img { width: 15px; height: 15px; flex: none; }
.unlock-cta { margin-top: 1.1rem; text-align: center; }
.unlock-cta .btn { width: 100%; }
.unlock-note { font-size: .8rem; color: var(--muted); margin: .7rem 0 0; }
.unlock-note-sub { font-size: .74rem; color: var(--muted); opacity: .85; margin: .3rem 0 0; }
[data-locker-error] { color: #A0433A; font-size: .84rem; margin-top: .6rem; }

.sticky-unlock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .7rem 1.1rem calc(.7rem + var(--safe-b));
  display: none; box-shadow: 0 -10px 30px rgba(41,39,36,.1);
}
.sticky-unlock .btn { width: 100%; }
@media (max-width: 1023px) { .sticky-unlock.visible { display: block; } }

/* unlocked state */
.unlocked-panel {
  border: 1px solid var(--sage); background: #F5F8F3; border-radius: var(--radius);
  padding: 1.3rem; text-align: center; margin-top: 1rem;
}
.unlocked-panel h4 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--sage-dark); }
.unlocked-panel .btn { margin: .5rem .3rem 0; }

/* dev panel */
.dev-panel {
  margin-top: 1.4rem; border: 2px dashed #C4685F; border-radius: var(--radius);
  background: #FDF6F5; padding: 1rem 1.2rem; font-size: .88rem;
}
.dev-panel strong { color: #A0433A; display: block; margin-bottom: .3rem; }
.dev-panel button {
  margin-top: .5rem; background: #A0433A; color: #fff; border: 0; border-radius: 8px;
  padding: .55rem 1rem; font: 600 .88rem var(--font-sans); cursor: pointer; min-height: 44px;
}

/* confetti canvas */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 120; }

/* ------------------------------ benefits ------------------------------ */
.benefit-grid { display: grid; gap: 1.1rem; }
@media (min-width: 768px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-1);
}
.benefit img { width: 30px; height: 30px; margin-bottom: .8rem; color: var(--gold-dark); }
.benefit h3 { font-size: 1.1rem; }
.benefit p { margin: 0; font-size: .93rem; color: var(--muted); }

/* use cases */
.usecase-list { display: grid; gap: 1rem; }
@media (min-width: 768px) { .usecase-list { grid-template-columns: repeat(2, 1fr); } }
.usecase {
  border-left: 3px solid var(--gold); background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.3rem;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.usecase h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.usecase p { margin: 0; font-size: .92rem; color: var(--muted); }

/* printing guide */
.print-steps { counter-reset: pstep; display: grid; gap: 1rem; max-width: 760px; }
.print-step { display: flex; gap: 1rem; align-items: flex-start; }
.print-step::before {
  counter-increment: pstep; content: counter(pstep);
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blush-pale); border: 1px solid var(--blush); color: var(--gold-dark);
  font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
.print-step h3 { font-size: 1.04rem; margin-bottom: .15rem; }
.print-step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* mobile experience section */
.phone-mock {
  width: min(280px, 78%); margin-inline: auto; border-radius: 34px;
  border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-2);
  padding: .8rem; position: relative;
}
.phone-mock::before {
  content: ""; display: block; width: 84px; height: 5px; margin: .2rem auto .7rem;
  border-radius: 99px; background: var(--line);
}
.phone-mock img { border-radius: 22px; border: 1px solid var(--line); }
.split { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .42rem 0; color: var(--muted); }
.checklist li img { width: 19px; height: 19px; flex: none; margin-top: .15rem; color: var(--sage-dark); }
.checklist li strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem .2rem; cursor: pointer; font-weight: 600; font-size: 1rem;
  -webkit-tap-highlight-color: transparent; min-height: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold);
  transition: transform .3s var(--ease); line-height: 1; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 .2rem 1.25rem; color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* SEO prose */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose ul { color: var(--muted); }
.prose li { margin-bottom: .35em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }

/* final CTA */
.final-cta {
  background: linear-gradient(160deg, #322E28, #292724 55%, #37312A);
  color: var(--ivory); position: relative; overflow: hidden;
}
.final-cta .eyebrow { color: var(--gold); }
.final-cta .eyebrow::before, .final-cta .eyebrow::after { background: var(--gold); }
.final-cta h2 { color: var(--white); }
.final-cta .lede { color: rgba(250,247,241,.75); }
.final-cta::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: url("assets/patterns/botanical.svg"); background-size: 300px;
  filter: invert(1);
}
.final-cta .wrap { position: relative; }

/* footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.footer-grid a:hover { color: var(--gold-dark); }
.footer-brand p { font-size: .9rem; color: var(--muted); max-width: 34ch; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--ivory);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .82rem; color: var(--muted);
}

/* ------------------------------ scroll reveal ------------------------------ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > :nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.in > :nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.in > :nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.in > :nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.in > :nth-child(6) { transition-delay: .4s; }

/* card tilt (desktop only, JS-driven) */
@media (min-width: 1024px) {
  .tiltable { transform-style: preserve-3d; will-change: transform; }
}

/* ------------------------------ support page hero ------------------------------ */
.page-hero { padding: clamp(2.6rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.4rem); position: relative; overflow: clip; }
.page-hero .crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-bottom: 1.4rem; }
.mini-demo {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 1.4rem; box-shadow: var(--shadow-1); margin: 1.6rem 0;
}
.mini-demo h3 { font-size: 1.08rem; }
.mini-demo-output {
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--ivory);
  padding: 1rem 1.1rem; margin-top: .9rem; font-size: .92rem;
}
.mini-demo-output ul { margin: 0; padding-left: 1.2rem; }
.mini-demo-output li { margin-bottom: .35em; }
.mini-bingo { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.mini-bingo div {
  border: 1px solid var(--line); aspect-ratio: 1.15; padding: 5%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(.55rem, 1.8vw, .74rem); line-height: 1.3;
}
.mini-bingo div.free { background: var(--blush-pale); color: var(--gold-dark); font-weight: 700; }

/* ------------------------------ legal pages ------------------------------ */
.legal-main { padding: clamp(2.4rem, 5vw, 4rem) 0 4rem; }
.legal-main .prose h1 { margin-bottom: .3em; }
.legal-updated { color: var(--muted); font-size: .88rem; margin-bottom: 2.4em; }

/* ------------------------------ print view (fallback PDF) ------------------------------ */
.print-root { display: none; }
@media print {
  body > *:not(.print-root) { display: none !important; }
  body { background: #fff; }
  .print-root { display: block; }
  .print-page {
    page-break-after: always; break-after: page;
    width: 100%; min-height: 96vh; position: relative;
    padding: 12mm 14mm; box-sizing: border-box;
    font-size: 12pt;
  }
  .print-page:last-child { page-break-after: auto; }
  .print-page .pg { position: static; padding: 0; height: auto; font-size: 13pt; }
  .print-page .pg-frame { display: none; }
}

/* ------------------------------ reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-card { animation: none; }
  .petal { display: none; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
[hidden] { display: none !important; }
