/* ==========================================================================
   Utsav — main stylesheet
   Vanilla CSS, no preprocessor, no framework. Mobile-first (390px baseline),
   scaling up at 640 / 960 / 1200px. Tokens below are the whole design
   system — see BRIEF.md section 6 for the rationale.
   ========================================================================== */

/* ---- self-hosted fonts (latin + devanagari cuts, no network call) ---- */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/baloo2-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/baloo2-500-deva.woff2") format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/baloo2-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/baloo2-700-deva.woff2") format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/mukta-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/mukta-400-deva.woff2") format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/mukta-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/mukta-500-deva.woff2") format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/mukta-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/mukta-600-deva.woff2") format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC;
}

/* ---- tokens ---- */
:root {
  --ink: #241417;
  --ink-soft: #352327;
  --paper: #fbf8f4;
  --paper-dim: #f1ebe3;
  --gold: #b8863c;
  --gold-soft: #efe0be;
  --charcoal: #4a3b3e;
  --charcoal-mute: #7a6a6d;
  /* Per-occasion accent — overridden inline per page via style="--accent:…".
     Falls back to gold so shared components never render unstyled. */
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);

  --font-display: "Baloo 2", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Mukta", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --shadow-card: 0 2px 10px rgba(36, 20, 23, 0.08);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
/* Several components below set their own `display` (flex/grid) on elements
   that JS also toggles via the `hidden` attribute — without this, an author
   rule like `.configurator-loading { display: flex }` wins the cascade over
   the browser's default `[hidden] { display: none }` and the element never
   actually hides. */
[hidden] { display: none !important; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

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

/* visible keyboard focus everywhere, always */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 960px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: var(--space-7); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--dim { background: var(--paper-dim); }
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: var(--space-5);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #c99a4d; }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: rgba(184, 134, 60, 0.12); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(239, 224, 190, 0.12);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 12px;
}
.brand-group { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}
.wordmark .dot { color: var(--gold); }
.header-tagline {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.015em;
  color: var(--gold-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.header-tagline::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 18px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
@media (min-width: 480px) { .header-tagline { display: inline; } }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--paper);
}
.nav-links {
  display: none;
  gap: var(--space-5);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { text-decoration: none; opacity: 0.88; }
.nav-links a:hover { opacity: 1; }
.header-cta { display: none; }

@media (min-width: 780px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
}

/* mobile nav sheet */
.nav-sheet {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-6);
  background: var(--ink);
  border-top: 1px solid rgba(239, 224, 190, 0.12);
}
.nav-sheet.is-open { display: flex; }
.nav-sheet a { color: var(--paper); text-decoration: none; font-weight: 500; }
@media (min-width: 780px) { .nav-sheet { display: none !important; } }

/* ---- signature element: the foil corner-bracket frame ---- */
.foil-frame {
  position: relative;
  padding: 14px;
}
.foil-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
  background-size:
    26px 2px, 2px 26px,
    26px 2px, 2px 26px,
    26px 2px, 2px 26px,
    26px 2px, 2px 26px;
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
}

/* ---- video frame (poster-first, aspect ratio reserved, no CLS) ---- */
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
}
.video-frame img, .video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-frame video { opacity: 0; transition: opacity 0.25s ease; }
.video-frame video.is-ready { opacity: 1; }
.video-frame .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(36,20,23,0.55), rgba(36,20,23,0) 40%);
}
.video-frame .play-btn svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.video-frame.is-playing .play-btn { display: none; }

/* ---- hero ---- */
.hero { background: var(--ink); color: var(--paper); padding-block: var(--space-7) var(--space-8); }
.hero .container { display: grid; gap: var(--space-6); }
/* Fluid, not breakpoint-gated: scales continuously with viewport instead of
   sitting at a small fixed cap until one exact media query width is crossed
   (that gap is what made it read as "stuck small" on in-between window
   sizes). */
.hero-media { width: min(460px, 82vw); margin-inline: auto; }
.hero-copy { text-align: center; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.hero-copy p {
  color: var(--gold-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}
.hero-actions { display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 520px) { .hero-actions { flex-direction: row; justify-content: center; } }

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
  .hero-copy { text-align: left; order: 1; }
  .hero-media { order: 2; margin-inline: 0 0 0 auto; }
  .hero-copy p, .hero-actions { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
}

/* ---- occasion browse (homepage) ---- */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) { .occasion-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .occasion-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }

.occasion-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: var(--paper);
  box-shadow: var(--shadow-card);
}
.occasion-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.occasion-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36,20,23,0.86) 0%, rgba(36,20,23,0.15) 55%, rgba(36,20,23,0.05) 100%);
}
.occasion-tile-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  z-index: 1;
}
.occasion-tile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.occasion-tile-tagline { font-size: 0.8rem; color: var(--gold-soft); margin-top: 2px; }
.occasion-tile-count {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(239, 224, 190, 0.18);
  border: 1px solid rgba(239, 224, 190, 0.4);
}
.occasion-tile--empty .occasion-tile-body { padding-bottom: var(--space-4); }
.occasion-tile--empty { cursor: not-allowed; }
.occasion-tile--empty img { filter: grayscale(65%); opacity: 0.55; }
.occasion-tile-count--soon { background: rgba(36,20,23,0.55); border-color: rgba(239, 224, 190, 0.25); color: var(--gold-soft); }

/* ---- template card ---- */
.card-row {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  margin-inline: calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
}
.card-row .template-card { scroll-snap-align: start; flex: 0 0 68%; }
@media (min-width: 640px) { .card-row .template-card { flex-basis: 40%; } }
@media (min-width: 960px) {
  .card-row { overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); margin-inline: 0; padding-inline: 0; }
  .card-row .template-card { flex-basis: auto; }
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) { .template-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .template-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }

.template-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.template-card .video-frame { border-radius: var(--radius) var(--radius) 0 0; }
.template-card-body { padding: var(--space-3) var(--space-4) var(--space-4); }
.template-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.template-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); }
.template-card-price { font-weight: 700; color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  white-space: nowrap;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-outline { background: transparent; border: 1px solid var(--charcoal-mute); color: var(--charcoal); }

/* ---- how it works ---- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--gold);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--gold-soft); font-size: 0.92rem; }

/* ---- trust strip ---- */
.trust-strip {
  display: flex; flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 220px; }
.trust-item svg { color: var(--accent); width: 28px; height: 28px; }
.trust-item span { font-size: 0.9rem; font-weight: 600; }

/* ---- FAQ (native details/summary — works with zero JS) ---- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
  font-weight: 600;
  font-family: var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { color: var(--gold); transition: transform 0.15s ease; flex-shrink: 0; }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item p { padding-bottom: var(--space-3); color: var(--charcoal); font-size: 0.94rem; }

/* ---- style filter chips ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--paper-dim);
  background: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal);
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.filter-count { font-size: 0.86rem; color: var(--charcoal-mute); margin-bottom: var(--space-4); }

/* ---- empty state block ---- */
.empty-state {
  border: 1.5px dashed var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}
.empty-state p { font-size: 1.02rem; margin-bottom: var(--space-4); }

/* ---- breadcrumb ---- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--charcoal-mute);
  padding-block: var(--space-3);
}
.breadcrumb a { text-decoration: none; color: var(--charcoal-mute); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin-inline: 6px; }
.breadcrumb [aria-current] { color: var(--charcoal); font-weight: 600; }

/* ---- occasion page ---- */
.occasion-hero { padding-block: var(--space-6) var(--space-5); }
.occasion-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
}
.occasion-hero .name-hi { color: var(--charcoal-mute); font-size: 1.1rem; margin-top: 2px; }
.occasion-hero .intro { max-width: 62ch; margin-top: var(--space-4); font-size: 1.02rem; }
.subevent-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.subevent-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.subevent-pill:hover { background: var(--accent-soft); }
.sibling-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.sibling-links a { text-decoration: none; color: var(--charcoal); font-weight: 500; }
.sibling-links a:hover { color: var(--accent); }

/* ---- template page ---- */
/* Fluid, not breakpoint-gated — see .hero-media above for why. */
.template-page-media { width: min(520px, 88vw); margin-inline: auto; }
.template-page-head { text-align: center; margin-top: var(--space-5); }
.template-page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.template-page-tagline { color: var(--charcoal-mute); margin-top: 4px; margin-bottom: var(--space-4); }
.template-page-badges { display: flex; justify-content: center; }
.template-page-facts {
  display: flex; justify-content: center; gap: var(--space-5);
  margin-block: var(--space-4);
  font-weight: 700;
}
.template-page-cta { text-align: center; margin-block: var(--space-5); }
.template-page-description { max-width: 60ch; margin-inline: auto; text-align: center; margin-bottom: var(--space-6); }
.customisable-list { max-width: 46ch; margin-inline: auto; }
.customisable-list li { padding-left: 24px; position: relative; padding-block: 6px; }
.customisable-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (min-width: 960px) {
  .template-page-top { display: grid; grid-template-columns: 520px 1fr; gap: var(--space-7); align-items: start; }
  .template-page-head, .template-page-badges, .template-page-facts, .template-page-cta, .template-page-description { text-align: left; justify-content: flex-start; margin-inline: 0; }
}

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--gold-soft); padding-block: var(--space-7) var(--space-6); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); margin-bottom: var(--space-3); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--gold-soft); font-size: 0.92rem; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(239,224,190,0.15);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(239,224,190,0.7);
}
.footer-bottom a { color: inherit; }

/* ---- floating WhatsApp button ---- */
.wa-float {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(36,20,23,0.28);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-float.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 960px) { .wa-float { display: none; } }

/* ---- configurator (fill details -> render preview -> pay) ---- */
.configurator-form-hint {
  max-width: 560px;
  margin: 0 auto var(--space-4);
  font-size: 0.88rem;
  color: var(--charcoal-mute);
  text-align: center;
}
.configurator-form {
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-4);
  background: var(--paper);
  border: 1.5px solid var(--paper-dim);
  border-radius: var(--radius);
  padding: var(--space-5);
}
@media (min-width: 640px) { .configurator-form { grid-template-columns: 1fr 1fr; } }
.configurator-form .field-group:has(textarea) { grid-column: 1 / -1; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.86rem; font-weight: 600; color: var(--charcoal); }
.field-input {
  font: inherit;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--paper-dim);
  background: #fff;
  color: var(--charcoal);
}
.field-input:focus-visible { border-color: var(--accent); }
.field-input-file { padding: 8px; font-size: 0.85rem; }
.configurator-form button[type="submit"] { grid-column: 1 / -1; }
.configurator-error {
  grid-column: 1 / -1;
  color: #9e2b2b;
  background: #fbe9e9;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
}
.configurator-hint { grid-column: 1 / -1; font-size: 0.86rem; color: var(--charcoal-mute); }
.configurator-hint a { color: var(--accent); font-weight: 600; }

.configurator-loading {
  max-width: 560px;
  margin: var(--space-5) auto 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--charcoal-mute);
}
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid var(--paper-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.configurator-preview { max-width: 720px; margin: var(--space-6) auto 0; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 640px) { .preview-grid { grid-template-columns: repeat(5, 1fr); } }
.preview-frame { margin: 0; }
.preview-frame img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 9 / 16; object-fit: cover; box-shadow: var(--shadow-card); }
.preview-frame figcaption { text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--charcoal-mute); margin-top: 6px; }
.configurator-payment { text-align: center; max-width: 380px; margin-inline: auto; }
.configurator-price { font-size: 1.1rem; margin-bottom: var(--space-3); }
.configurator-note { font-size: 0.85rem; color: var(--charcoal-mute); margin-top: var(--space-3); }

.configurator-success {
  max-width: 480px;
  margin: var(--space-6) auto 0;
  text-align: center;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.configurator-success-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }

/* ---- legal pages ---- */
.legal-page { max-width: 70ch; margin-inline: auto; padding-block: var(--space-7); }
.legal-page h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: var(--space-2); }
.legal-page .updated { color: var(--charcoal-mute); font-size: 0.88rem; margin-bottom: var(--space-6); }
.legal-page h2 { font-family: var(--font-display); font-size: 1.15rem; margin-top: var(--space-6); margin-bottom: var(--space-2); }
.legal-page p { margin-bottom: var(--space-3); }

/* ---- no-JS fallback ---- */
.js-only { display: none; }
.no-js .js-only { display: none !important; }
html:not(.no-js) .requires-js-hidden { display: none; }
