/* styles.css — app chrome: landing, form, nav, gallery, modals.
 * NOT the biodata documents themselves (see templates.css).
 *
 * The product is wedding stationery, so the interface is dressed like
 * stationery: a Playfair display face for headings, warm ivory paper, maroon
 * and gold, hairline gold rules with a centred flourish, and restrained
 * shadow. Controls stay in a clean sans (Outfit, with Mukta for Devanagari
 * and Mukta Vaani for Gujarati) because forms should be
 * legible and familiar, not decorative.
 */

:root {
  color-scheme: light;

  /* paper + ink */
  --paper: #fdf9f2;
  --paper-2: #f7efe1;
  --paper-3: #f2e7d4;
  --card: #fffdf8;
  --ink: #2a2118;
  --muted: #7d7263;

  /* accents */
  --maroon: #7a1d3f;
  --maroon-dark: #5e142f;
  --maroon-soft: #f3e3e8;
  --gold: #b08a3c;
  --gold-light: #e8d5a8;
  --gold-wash: #faf2df;
  --sage: #5f7a4e;

  --line: #e6dac2;
  --line-soft: #efe6d6;
  --danger: #a13b3b;

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;

  --font-ui: 'Outfit', 'Mukta', 'Mukta Vaani', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Bengali', 'Noto Naskh Arabic', system-ui, sans-serif;
  --font-display: 'Playfair Display', 'Tiro Devanagari Marathi', 'Rasa', 'Tiro Tamil', 'Tiro Telugu', 'Tiro Kannada', 'Tiro Bangla', 'Noto Naskh Arabic', Georgia, serif;
  --font-serif: 'EB Garamond', 'Tiro Devanagari Marathi', 'Rasa', 'Tiro Tamil', 'Tiro Telugu', 'Tiro Kannada', 'Tiro Bangla', 'Noto Naskh Arabic', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06), 0 2px 8px rgba(60, 40, 20, .05);
  --shadow-md: 0 4px 14px rgba(60, 40, 20, .09), 0 12px 32px rgba(60, 40, 20, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* anything scrolled into view clears the sticky header */
html { scroll-padding-top: 116px; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--maroon); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ================================================================ topbar == */
.topbar {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 22px;
  background: rgba(253, 249, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0;
  font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink);
}
.topbar-brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
  color: #f6e6c9; font-family: var(--font-display); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--gold-light);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.lang-select {
  font-family: var(--font-ui); font-size: 13.5px; color: var(--ink);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card);
}

/* ================================================================ buttons == */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 500; line-height: 1;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(160deg, #8a2247, var(--maroon-dark)); color: #fdf2e2; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--card); color: var(--maroon); border-color: var(--gold-light); }
.btn-secondary:hover:not(:disabled) { background: var(--gold-wash); }
.btn-gold { background: linear-gradient(160deg, #c79c45, #9c7628); color: #fffaf0; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { color: var(--maroon); background: var(--paper-2); }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-block { width: 100%; }

/* ============================================================ ornaments == */
/* Hairline rule with a centred gold lozenge — echoes the documents. */
.rule-flourish {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold); margin: 0 auto 26px; max-width: 420px;
}
.rule-flourish::before, .rule-flourish::after {
  content: ""; flex: 1 1 auto; height: 1px; background: currentColor; opacity: .45;
}
.rule-flourish i {
  width: 9px; height: 9px; transform: rotate(45deg);
  background: currentColor; border-radius: 2px; flex: 0 0 auto;
}
.dot-gold {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  display: inline-block; margin-right: 8px; flex: 0 0 auto;
}

/* ================================================================== hero == */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 24px 84px;
  background:
    radial-gradient(120% 100% at 12% -10%, #fffdf9 0%, var(--paper) 42%, #f4ebdd 100%);
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(38% 52% at 18% 30%, rgba(122, 29, 63, .16), transparent 70%),
    radial-gradient(40% 55% at 82% 20%, rgba(176, 138, 60, .20), transparent 72%),
    radial-gradient(34% 44% at 60% 76%, rgba(95, 122, 78, .14), transparent 72%);
  filter: blur(6px);
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--maroon);
  background: #fff; border: 1px solid var(--gold-light);
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.hero h1 {
  font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.028em;
  margin: 0 0 18px; text-wrap: balance; max-width: 14ch;
}
.hero .sub {
  font-family: var(--font-serif); font-size: 20px; line-height: 1.6;
  color: #5c5244; max-width: 46ch; margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-quiet { background: transparent; color: var(--ink); border-color: transparent; }
.btn-quiet:hover:not(:disabled) { background: rgba(0, 0, 0, .045); }
.btn-light { background: #fff; color: var(--maroon); }

.hero-facts { display: flex; gap: 38px; list-style: none; padding: 0; margin: 0; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b {
  font-family: var(--font-display); font-size: 27px; font-weight: 600;
  color: var(--maroon); line-height: 1;
}
.hero-facts span { font-size: 12.5px; color: var(--muted); }

/* the showcase deck — the product's own output as the hero image */
.hero-stage { position: relative; height: 470px; }
.stage-deck { position: absolute; inset: 0; }
.stage-card {
  position: absolute; width: 250px; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 26px 60px rgba(60, 38, 18, .22);
  border: 1px solid rgba(0, 0, 0, .06);
}
.stage-card .mini-thumb { overflow: hidden; }
.stage-card .biodata-page { pointer-events: none; box-shadow: none; }
.stage-card.s0 { left: 4%; top: 6%; transform: rotate(-7deg); z-index: 1; }
.stage-card.s1 { left: 27%; top: 0; transform: rotate(-1deg); z-index: 3; }
.stage-card.s2 { right: 2%; top: 9%; transform: rotate(7deg); z-index: 2; }

/* ============================================================== sections == */
.section { padding: 76px 24px; max-width: var(--maxw); margin: 0 auto; }
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sec-eyebrow {
  display: inline-block; font-size: 11.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12;
  letter-spacing: -.022em; margin-bottom: 12px; text-wrap: balance;
}
.section .section-sub { color: var(--muted); font-size: 15.5px; margin: 0; }
.sec-cta { text-align: center; margin-top: 36px; }
.section + .section { border-top: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- steps -- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { position: relative; padding: 26px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.steps .n {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--maroon); color: #fdf2e2;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 14px;
}
.steps h3 { font-size: 19px; margin-bottom: 7px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------- design gallery -- */
.mini-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px; max-width: 900px; margin: 0 auto; align-items: start;
}
.mini-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-card .mini-thumb {
  overflow: hidden; position: relative; background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.mini-card .mini-thumb .biodata-page { pointer-events: none; box-shadow: none; }
.mini-card .mini-label {
  padding: 13px 15px; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.mini-card .mini-label .nm { font-family: var(--font-display); font-weight: 600; }
.badge {
  font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.badge-free { background: #e8f0e3; color: #47613a; }
.badge-premium { background: var(--gold-wash); color: #7a5a10; border: 1px solid var(--gold-light); }

/* ------------------------------------------------------------- features -- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; max-width: 1060px; margin: 0 auto;
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--muted); }
.feature.f-wide { grid-column: span 2; }
.feature.f-accent { background: linear-gradient(160deg, #7c2044, var(--maroon-dark)); border-color: transparent; }
.feature.f-accent h3 { color: #fdf0e0; }
.feature.f-accent p { color: rgba(253, 240, 224, .82); }
.translit-demo {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 14px 16px;
  background: var(--paper-2); border: 1px dashed var(--gold-light); border-radius: 12px;
}
.translit-demo span { font-size: 15px; color: var(--muted); }
.translit-demo i { color: var(--gold); font-style: normal; }
.translit-demo b { font-family: var(--font-serif); font-size: 21px; color: var(--maroon); }

/* -------------------------------------------------------------- pricing -- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; max-width: 920px; margin: 0 auto;
}
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 24px 30px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash), var(--shadow-md);
  transform: translateY(-8px);
}
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fffaf0; font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.price-card .tier {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.price-card .amt {
  font-family: var(--font-display); font-size: 42px; font-weight: 600;
  color: var(--maroon); margin: 10px 0 8px; line-height: 1;
}
.price-card .desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------ cta band -- */
.cta-band {
  text-align: center; padding: 74px 24px;
  background: linear-gradient(150deg, #7c2044 0%, var(--maroon-dark) 60%, #3f0d20 100%);
  color: #fdf2e2;
}
.cta-band h2 { font-size: clamp(27px, 3.6vw, 40px); color: #fdf2e2; margin-bottom: 10px; letter-spacing: -.022em; }
.cta-band p { font-family: var(--font-serif); font-size: 18px; color: rgba(253, 242, 226, .8); margin: 0 0 28px; }

/* -------------------------------------------------------------- footer -- */
.footer {
  border-top: 1px solid var(--line); background: var(--paper-2);
  padding: 34px 24px; text-align: center; font-size: 13.5px; color: var(--muted);
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; align-items: center;
}
.foot-brand { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--maroon); text-decoration: underline; }

/* keep the old privacy box available for the details element */
.privacy-box {
  max-width: 720px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.privacy-box summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 9px; }
.privacy-box summary::-webkit-details-marker { display: none; }
.privacy-box p { margin: 12px 0 0; color: #5c5244; font-size: 14.5px; line-height: 1.65; }

/* ============================================================ workspace == */
.workspace { display: flex; align-items: stretch; min-height: calc(100vh - 104px); }
.form-panel {
  flex: 1 1 430px; max-width: 540px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; background: var(--paper);
}
.preview-panel {
  flex: 1 1 520px; background: var(--paper-2); display: flex; flex-direction: column;
  align-items: center; padding: 28px 18px 44px; overflow: auto;
  background-image: radial-gradient(circle at 1px 1px, rgba(176, 138, 60, .10) 1px, transparent 0);
  background-size: 22px 22px;
}
.preview-scale-wrap { transform-origin: top left; }
.preview-scale-outer { flex-shrink: 0; box-shadow: 0 10px 30px rgba(60, 35, 10, .16); }

/* ----------------------------------------------------------- step meter -- */
.step-progress { padding: 18px 26px 4px; }
.step-progress .label {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.step-progress .bar { height: 4px; background: var(--line); border-radius: 6px; overflow: hidden; }
.step-progress .bar-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  transition: width .3s ease;
}

.form-scroll { flex: 1 1 auto; overflow-y: auto; padding: 20px 26px 26px; }
.form-step-title { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin-bottom: 4px; }
.form-step-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

/* --------------------------------------------------------------- fields -- */
.field { margin-bottom: 17px; }
.field > label {
  display: block; font-size: 13px; font-weight: 500; color: #4e4536; margin-bottom: 6px;
}
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="date"], .field input[type="time"], .field select, .field textarea,
.repeat-block input, .sibling-row input, .sibling-row select, [data-partner] {
  width: 100%; font-family: var(--font-ui); font-size: 14.5px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); transition: border-color .14s ease, box-shadow .14s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus,
.repeat-block input:focus, .sibling-row input:focus, .sibling-row select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; text-align: right; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1 1 0; }
.field-toggle, .visibility-toggle {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted);
  margin-top: 8px; cursor: pointer;
}
.field-toggle input, .visibility-toggle input { width: 16px; height: 16px; accent-color: var(--maroon); }

/* transliteration suggestion */
.translit-row { margin-top: 7px; min-height: 22px; }
.translit-hint {
  display: inline-block; font-family: var(--font-serif); font-size: 16px; color: var(--maroon);
  background: var(--maroon-soft); border: 1px dashed rgba(122, 29, 63, .3);
  padding: 2px 10px; border-radius: 8px; line-height: 1.5;
}
.translit-hint:empty { display: none; }
.translit-btn { flex: 0 0 auto; white-space: nowrap; }

/* repeatable blocks */
.repeat-block {
  position: relative; background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px 14px 4px; margin-bottom: 12px;
}
.repeat-block .field { margin-bottom: 10px; }
.repeat-remove { position: absolute; top: 8px; right: 8px; padding: 4px 9px; font-size: 12px; }
.sibling-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 8px; align-items: center; padding: 12px; }
.sibling-row .field { margin-bottom: 0; }

/* form footer */
.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 26px; border-top: 1px solid var(--line); background: var(--card);
}

/* ------------------------------------------------------------ photo step -- */
.photo-crop-box {
  position: relative; width: 240px; height: 300px; margin: 6px auto 14px;
  border-radius: var(--radius); overflow: hidden; background: var(--paper-3);
  border: 1px solid var(--line); cursor: grab; touch-action: none;
}
.photo-crop-box:active { cursor: grabbing; }
.photo-crop-box img { position: absolute; left: 50%; top: 50%; width: 100%; user-select: none; }
.photo-controls { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.photo-controls input[type="range"] { width: 240px; accent-color: var(--maroon); }

/* ------------------------------------------------------------ mobile tabs -- */
.mobile-tabs { display: none; border-bottom: 1px solid var(--line); background: var(--card); }
.mobile-tabs button {
  flex: 1 1 0; padding: 14px 10px; border: 0; background: none;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.mobile-tabs button.active { color: var(--maroon); border-bottom-color: var(--maroon); }

/* ================================================================ gallery == */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 20px; padding: 18px 24px 40px; max-width: var(--maxw); margin: 0 auto;
}
.gallery-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.gallery-card:hover, .gallery-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-card.selected { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon-soft), var(--shadow-md); }
.gallery-card .mini-thumb {
  overflow: hidden; position: relative; background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.gallery-card .mini-thumb .biodata-page { pointer-events: none; box-shadow: none; }
.gallery-card .mini-label { padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; }
.gallery-card .mini-label .name { font-family: var(--font-display); font-size: 15px; font-weight: 600; display: block; }
.gallery-card .mini-label .family { font-size: 11.5px; color: var(--muted); }

/* ================================================= review / export screen == */
.review-wrap { max-width: 920px; margin: 0 auto; padding: 26px 20px 64px; text-align: center; }
.review-wrap h2 { font-size: 27px; }
.review-preview { display: flex; justify-content: center; margin: 16px 0 22px; }
.export-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 14px; }

/* ================================================================== modal == */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(42, 27, 16, .5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 18px;
}
.modal-box {
  background: var(--card); border-radius: var(--radius-lg); max-width: 400px; width: 100%;
  padding: 28px 26px; text-align: center; border: 1px solid var(--gold-light);
  box-shadow: var(--shadow-md);
}
.modal-box h3 { font-size: 21px; margin-bottom: 10px; }
.modal-box p { font-size: 14px; color: #5c5244; margin: 0 0 8px; }
.modal-box p:last-of-type { margin-bottom: 18px; }

/* ================================================================== toast == */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: #33261a; color: #fbf3e6; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  z-index: 200; max-width: min(88vw, 460px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================== responsive */
@media (max-width: 880px) {
  .mobile-tabs { display: flex; }
  .workspace { display: block; min-height: 0; }
  .form-panel { max-width: none; border-right: 0; }
  .workspace.view-edit .preview-panel { display: none; }
  .workspace.view-preview .form-panel { display: none; }
  .preview-panel { padding: 20px 14px 36px; }
  .form-scroll { padding: 18px 18px 22px; }
  .step-progress { padding: 14px 18px 2px; }
  .form-actions { padding: 12px 18px; position: sticky; bottom: 0; }
  .hero { padding: 44px 18px 54px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { max-width: none; }
  .hero-stage { height: 330px; }
  .stage-card { width: 168px; }
  .stage-card.s0 { left: 0; top: 8%; }
  .stage-card.s1 { left: 50%; margin-left: -84px; top: 0; }
  .stage-card.s2 { right: 0; top: 11%; }
  .hero-facts { gap: 26px; }
  .section { padding: 52px 18px; }
  .sec-head { margin-bottom: 28px; }
  .feature.f-wide { grid-column: span 1; }
  .price-card.featured { transform: none; }
  .cta-band { padding: 54px 18px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 14px 16px 34px; }
  .sibling-row { grid-template-columns: 1fr 1fr; }
  .review-wrap { padding: 20px 16px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================ print rules == */
@media print {
  body * { visibility: hidden !important; }
  #reviewPreviewWrap, #reviewPreviewWrap * { visibility: visible !important; }
  #reviewPreviewWrap {
    position: fixed !important; left: 0 !important; top: 0 !important;
    transform: scale(var(--print-fit, 1)) !important; transform-origin: top left !important;
    width: 794px !important; height: auto !important;
    margin: 0 !important; overflow: visible !important;
  }
  #reviewPreviewWrap .biodata-page { box-shadow: none !important; }
  .toast { display: none !important; }
  /* print the illustrations at rest: couple upright, no petals mid-fall */
  .il-anim *, .il-anim { animation: none !important; }
  @page { size: A4; margin: 0; }
}


/* =========================================================== site header ==
   The privacy promise rides above every screen, and the language switch is
   a proper control rather than a small select in the corner. */
.site-head { position: sticky; top: 0; z-index: 50; }
.privacy-strip {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 8px 16px; font-size: 13px; line-height: 1.3; text-align: center;
  background: linear-gradient(90deg, #5e142f, #7a1d3f 50%, #5e142f); color: #fdeccf;
}
.privacy-strip svg { width: 16px; height: 16px; color: #f4c96b; flex: 0 0 auto; }
.privacy-strip b { font-weight: 600; color: #fff6e6; }
.privacy-strip .ps-more { color: rgba(253, 236, 207, .75); }
.privacy-strip .ps-more::before { content: "—"; margin: 0 8px; opacity: .6; }

.topbar { padding: 10px 22px; }
.topbar-brand { gap: 11px; text-align: left; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 700; color: var(--maroon); letter-spacing: -.01em; }
.brand-native { font-family: var(--font-ui); font-size: 12px; color: var(--muted); font-weight: 500; }

.lang-switch {
  display: inline-flex; padding: 4px; gap: 2px;
  background: #fff; border: 1px solid var(--gold-light); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ls-btn {
  border: 0; background: transparent; color: var(--ink);
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 1;
  padding: 10px 16px; border-radius: 999px; min-height: 40px;
  transition: background .15s ease, color .15s ease;
}
.ls-btn:hover { background: var(--gold-wash); }
.ls-btn.on { background: linear-gradient(160deg, #8a2247, var(--maroon-dark)); color: #fdf2e2; box-shadow: var(--shadow-sm); }
.lang-mobile {
  display: none; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--maroon);
  background: #fff; border: 1px solid var(--gold-light); border-radius: 999px;
  padding: 9px 14px; min-height: 44px; box-shadow: var(--shadow-sm);
}
.lang-mobile svg { width: 18px; height: 18px; }

.lang-sheet-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(30, 14, 8, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.lang-sheet {
  width: 100%; max-width: 520px; background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
}
.lang-sheet-head h3 { font-size: 21px; margin-bottom: 4px; }
.lang-sheet-head p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.lang-sheet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left;
}
.lang-opt .n { font-size: 20px; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.lang-opt .e { font-size: 12.5px; color: var(--muted); }
.lang-opt.on { border-color: var(--maroon); background: var(--maroon-soft); }

/* ================================================================ hero 2 == */
.hero2 {
  position: relative; overflow: hidden; padding: 56px 24px 72px;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(244, 201, 107, .32), transparent 70%),
    radial-gradient(45% 55% at 8% 12%, rgba(242, 92, 122, .14), transparent 70%),
    radial-gradient(120% 100% at 50% 0%, #fffdf8 0%, var(--paper) 50%, #f6ecdc 100%);
  border-bottom: 1px solid var(--line);
}
.hero2-petals { position: absolute; inset: 0; pointer-events: none; opacity: .75; }
.hero2-petals svg { width: 100%; height: 100%; }
.hero2-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: center;
}
.privacy-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #cfe3c4; color: #2f5d22; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(47, 93, 34, .12);
}
.privacy-pill svg { width: 18px; height: 18px; color: #3f7d32; }
.hero2 h1 {
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 18px; text-wrap: balance; max-width: 16ch;
}
.hero2 .sub { font-family: var(--font-serif); font-size: 19.5px; line-height: 1.6; color: #5c5244; max-width: 46ch; margin: 0 0 28px; }
.hero2 .hero-ctas { margin-bottom: 26px; }
.hero-langs { display: flex; flex-direction: column; gap: 10px; }
.hl-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.hl-label svg { width: 16px; height: 16px; }
.hl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hl-chip {
  font-family: var(--font-ui); font-size: 16px; font-weight: 500; color: var(--ink);
  padding: 10px 18px; min-height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .8); border: 1.5px solid var(--line);
}
.hl-chip:hover { border-color: var(--gold); }
.hl-chip.on { border-color: var(--maroon); color: var(--maroon); background: #fff; font-weight: 600; box-shadow: 0 0 0 3px var(--maroon-soft); }

.hero2-stage { position: relative; height: 500px; }
.hero2-stage .stage-card { width: 240px; }
.hero2-stage .stage-card.s0 { left: 0; top: 30px; transform: rotate(-8deg); z-index: 1; }
.hero2-stage .stage-card.s1 { left: 150px; top: 0; transform: rotate(-1deg); z-index: 3; }
.hero2-stage .stage-card.s2 { right: 0; top: 40px; transform: rotate(7deg); z-index: 2; }
.stage-couple {
  position: absolute; left: -30px; bottom: -34px; width: 230px; z-index: 5;
  filter: drop-shadow(0 16px 22px rgba(60, 30, 10, .18));
}
.stage-couple svg { width: 100%; height: auto; display: block; }

/* ======================================================== privacy band == */
.privacy-band {
  background: linear-gradient(150deg, #3f0d20 0%, #5e142f 45%, #7a1d3f 100%);
  color: #fdf0dc; padding: 56px 24px;
}
.pb-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; }
.pb-art svg { width: 180px; height: 180px; display: block; }
.privacy-band .sec-eyebrow { color: #f4c96b; }
.privacy-band h2 { font-size: clamp(26px, 3.4vw, 38px); color: #fff6e6; margin-bottom: 10px; letter-spacing: -.02em; }
.privacy-band p { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; color: rgba(253, 240, 220, .85); margin: 0 0 20px; max-width: 56ch; }
.pb-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pb-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #fff6e6; }
.pb-points svg { width: 22px; height: 22px; color: #9fd68a; }

/* gallery on the landing: all ten, tappable */
.mini-gallery { max-width: 1120px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
button.mini-card { padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.badge-premium { text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* closing band with the couple */
.cta-band { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; text-align: left; }
.cta-couple { width: 190px; flex: 0 0 auto; }
.cta-couple svg { width: 100%; height: auto; display: block; }
.footer .foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer .foot-brand .brand-mark { width: 26px; height: 26px; }
.foot-made { color: var(--muted); }

/* ======================================================== unlock prompt == */
.unlock-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  max-width: 640px; margin: 4px auto 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--gold-wash); border: 1px solid var(--gold-light); font-size: 14px; color: #6b4e12;
}
.modal-box.unlock-box { max-width: 460px; text-align: center; padding-top: 18px; }
.unlock-art { width: 150px; margin: 0 auto -6px; }
.unlock-art svg { width: 100%; height: auto; display: block; }
.unlock-name { font-family: var(--font-display); font-size: 18px; color: var(--maroon); margin: 2px 0 16px; }
.unlock-kicker { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--gold); margin: 0 0 2px; }
.unlock-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.unlock-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
}
.unlock-opt:hover { border-color: var(--gold); }
.unlock-opt .amt { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--maroon); line-height: 1; }
.unlock-opt .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.unlock-opt.best { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.unlock-opt .ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fffaf0; font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.unlock-note { font-size: 13.5px; color: #7a5a10; background: var(--gold-wash); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.unlock-foot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ============================================================== mobile == */
@media (max-width: 860px) {
  .hero2-inner { grid-template-columns: 1fr; }
  .hero2-stage { height: 420px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .hero2-stage .stage-card { width: 190px; }
  .hero2-stage .stage-card.s1 { left: calc(50% - 95px); }
  .stage-couple { left: -6px; width: 170px; bottom: -20px; }
  .pb-inner { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .pb-art svg { width: 120px; height: 120px; }
}
@media (max-width: 720px) {
  .lang-switch { display: none; }
  .lang-mobile { display: inline-flex; }
  .privacy-strip .ps-more { display: none; }
  .topbar { padding: 8px 14px; }
  .brand-name { font-size: 19px; }
  .hero2 { padding: 34px 16px 56px; }
  .hero2 .sub { font-size: 17.5px; }
  .hero2-stage { height: 360px; }
  .hero2-stage .stage-card { width: 160px; }
  .hero2-stage .stage-card.s0 { top: 30px; }
  .hero2-stage .stage-card.s1 { left: calc(50% - 80px); }
  .stage-couple { width: 150px; }
  .mini-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mini-card .mini-label { padding: 10px; flex-wrap: wrap; font-size: 13px; }
  .unlock-options { grid-template-columns: 1fr; }
  .cta-band { text-align: center; }
}

.feature-grid.fg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lang-row span { font-family: var(--font-display); font-size: 17px; padding: 6px 13px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); color: var(--maroon); }
@media (max-width: 720px) { .feature-grid.fg-2 { grid-template-columns: 1fr; } }

/* Devanagari and Gujarati sit visually larger than Latin at the same size */
html[lang="mr"] .hero2 h1, html[lang="hi"] .hero2 h1, html[lang="gu"] .hero2 h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.22; letter-spacing: 0; }
html[lang="mr"] .sec-head h2, html[lang="hi"] .sec-head h2, html[lang="gu"] .sec-head h2,
html[lang="mr"] .privacy-band h2, html[lang="hi"] .privacy-band h2, html[lang="gu"] .privacy-band h2 { line-height: 1.3; letter-spacing: 0; }
html[lang="mr"] .sec-eyebrow, html[lang="hi"] .sec-eyebrow, html[lang="gu"] .sec-eyebrow { letter-spacing: .04em; font-size: 13px; }

/* blessing line picker */
.inv-card { border: 1.5px dashed var(--gold-light); border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; background: #fffdf8; }
.inv-card.on { border-style: solid; border-color: var(--gold); background: var(--gold-wash); }
.inv-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.inv-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--maroon); flex: 0 0 auto; }
.inv-text { display: flex; flex-direction: column; gap: 2px; }
.inv-text b { font-size: 14.5px; color: var(--ink); }
.inv-text small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.inv-body { margin-top: 12px; }
.inv-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.inv-chip { font-size: 14px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-serif); }
.inv-chip.on { border-color: var(--maroon); color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon-soft); font-weight: 600; }
.inv-body input[type="text"] { width: 100%; }

/* ======================================================= design filters == */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0 18px; }
.fchip {
  font-family: var(--font-ui); font-size: 13.5px; color: var(--ink);
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.fchip:hover { border-color: var(--gold-light); }
.fchip.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.gallery-grid + .filter-chips, .mg-filters .filter-chips { margin-top: 0; }
.nophoto-tag { display: block; font-size: 11px; color: var(--muted); font-family: var(--font-ui); margin-top: 1px; }

/* ================================================ preview bar (create) == */
.preview-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  width: 100%; margin: 0 auto 10px; max-width: 794px; font-family: var(--font-ui);
}
.preview-bar .pv-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.preview-bar .pv-change { margin-left: auto; }
.pv-wm-note { margin: -4px auto 10px; font-size: 12.5px; color: var(--muted); font-family: var(--font-ui); }
.nophoto-note {
  margin: 0 auto 12px; max-width: 560px; font-size: 13.5px; color: #6b4a12; text-align: center;
  background: var(--gold-wash); border: 1px solid var(--gold-light); border-radius: 12px; padding: 8px 14px;
}

/* ================================================== back + design picker == */
.top-back {
  display: inline-flex; align-items: center; gap: 4px; margin-right: 10px;
  font-family: var(--font-ui); font-size: 14px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; cursor: pointer;
}
.top-back svg { width: 16px; height: 16px; }
.top-back:hover { border-color: var(--gold-light); }
@media (max-width: 560px) { .top-back span { display: none; } .top-back { padding: 6px; margin-right: 6px; } }
.dp-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.dp-card {
  display: flex; flex-direction: column; gap: 5px; align-items: stretch; text-align: left; padding: 6px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-family: var(--font-ui);
}
.dp-card.on { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-soft); }
.dp-card .mini-thumb { position: relative; overflow: hidden; border-radius: 6px; background: #eee; }
.dp-card .mini-thumb .biodata-page { box-shadow: none; }
.dp-card .dp-name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.dp-card .badge { align-self: flex-start; }
.dp-grid .dp-card[style*="display: none"] { display: none; }
.topbar-left { display: flex; align-items: center; min-width: 0; }
/* the preview stays in view while the form (or the design list) scrolls */
@media (min-width: 861px) {
  /* app-shell: the workspace fills the viewport under the topbar, each panel scrolls on its own */
  .workspace { height: calc(100vh - var(--tb-h, 58px)); height: calc(100dvh - var(--tb-h, 58px)); min-height: 420px; align-items: stretch; overflow: hidden; }
  .form-panel { min-height: 0; height: 100%; }
  .form-scroll { min-height: 0; }
  .preview-panel { min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
}
