/* Goldy's mini-apps: "Atelier" look. Same family as the PG app (cream, ink, gold) with one accent per app.
   No external fonts or scripts: Cormorant Garamond (SIL OFL, fonts/) for headings, system sans for text. */
@font-face { font-family: 'Cormorant'; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 700; font-display: swap; src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #FBF8F3; --bg-sunken: #F4EEE5; --surface: #FFFFFF; --ink: #1F1A17; --text-2: #5B514A; --text-3: #7A6E64;
  --line: rgba(31, 26, 23, .10); --line-strong: rgba(31, 26, 23, .18);
  --gold: #B8860B; --gold-deep: #7A5A0B; --gold-tint: #F6EBD3;
  --accent: #7A1E3A; --accent-deep: #5C1229; --accent-tint: #F7E8EC; --on-accent: #FFFFFF;
  --good: #1B8F65;
  --serif: 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto, sans-serif;
  --r-card: 22px; --r-in: 14px; --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 8px 24px rgba(31, 26, 23, .06);
}
body[data-app='mehendi'] { --accent: #4E6B2F; --accent-deep: #3A5122; --accent-tint: #EEF3E6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #15110F; --bg-sunken: #1D1815; --surface: #221C19; --ink: #F4EDE6; --text-2: #CDBFB3; --text-3: #A69688;
    --line: rgba(244, 237, 230, .10); --line-strong: rgba(244, 237, 230, .18); --gold: #D9AE4F; --gold-deep: #E2BE6A; --gold-tint: #3A2F1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
  :root:not([data-theme='light']) body[data-app='tailoring'] { --accent: #D97A97; --accent-deep: #F0A3BA; --accent-tint: #3A1C26; --on-accent: #1A0A10; }
  :root:not([data-theme='light']) body[data-app='mehendi'] { --accent: #A6C47A; --accent-deep: #C3DCA0; --accent-tint: #26301A; --on-accent: #10160A; }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
.ma-boot { min-height: 100vh; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: var(--text-3); }

/* ---------- shell ---------- */
.ma { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
.ma-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 -16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ma-mono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold-deep);
  font: 700 20px/1 var(--serif); }
.ma-brand { flex: 1; min-width: 0; }
.ma-brand b { display: block; font: 700 20px/1.1 var(--serif); letter-spacing: .2px; }
.ma-brand span { font-size: 12px; color: var(--text-3); }
.ma-pill { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- hero ---------- */
.ma-hero { padding: 28px 0 8px; }
.ma-eyebrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.ma-hero h1 { font: 700 44px/1.02 var(--serif); margin: 10px 0 12px; letter-spacing: -.3px; }
.ma-hero h1 em { font-style: normal; color: var(--accent); }
.ma-hero p { margin: 0 0 20px; color: var(--text-2); font-size: 17px; }
.ma-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-btn { appearance: none; border: 0; border-radius: 999px; min-height: 50px; padding: 0 22px; font-weight: 650; font-size: 16px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.ma-btn:active { transform: translateY(1px); }
.ma-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.ma-btn--block { width: 100%; }
.ma-btn[disabled] { opacity: .5; cursor: default; }

/* stitch line: the brand divider */
.ma-stitch { height: 0; border: 0; border-top: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); margin: 26px 0; }

/* ---------- festival card ---------- */
.ma-fest { position: relative; overflow: hidden; border-radius: var(--r-card); padding: 18px; color: #FFF8EC;
  background: radial-gradient(120% 140% at 100% 0%, #C9931A 0%, transparent 55%), linear-gradient(135deg, #5C1229, #2A1410); box-shadow: var(--shadow); }
body[data-app='mehendi'] .ma-fest { background: radial-gradient(120% 140% at 100% 0%, #C9931A 0%, transparent 55%), linear-gradient(135deg, #3A5122, #1C2410); }
.ma-fest small { text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; opacity: .85; }
.ma-fest h2 { font: 700 28px/1.1 var(--serif); margin: 4px 0 6px; color: #FFF8EC; }
.ma-fest p { margin: 0; font-size: 14px; opacity: .92; }
.ma-fest__count { position: absolute; right: 16px; top: 16px; text-align: center; background: rgba(255, 248, 236, .14); border: 1px solid rgba(255, 248, 236, .28);
  border-radius: 16px; padding: 8px 12px; min-width: 64px; }
.ma-fest__count b { display: block; font: 700 26px/1 var(--serif); }
.ma-fest__count span { font-size: 11px; opacity: .85; }
.ma-fest__next { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.ma-fest__next span { white-space: nowrap; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 248, 236, .12); }

/* ---------- sections ---------- */
.ma-h2 { font: 700 26px/1.15 var(--serif); margin: 0 0 4px; }
.ma-sub { color: var(--text-3); font-size: 14px; margin: 0 0 14px; }
.ma-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ma-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.ma-card[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.ma-card b { display: block; font-weight: 650; margin-top: 8px; }
.ma-card span { font-size: 13px; color: var(--text-3); }
.ma-art { display: grid; place-items: center; height: 92px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); }
.ma-art svg { width: 76px; height: 76px; }
.ma-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.ma-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 10px 6px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; text-align: center; }
.ma-chip svg { width: 56px; height: 56px; color: var(--accent); }
.ma-chip em { font-style: normal; font-size: 10px; color: var(--gold-deep); font-weight: 650; text-transform: uppercase; letter-spacing: .6px; }

.ma-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.ma-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.ma-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold);
  color: var(--gold-deep); font: 700 18px/1 var(--serif); }
.ma-steps b { display: block; }
.ma-steps span { font-size: 14px; color: var(--text-2); }

.ma-x { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-x a { display: block; padding: 14px; border-radius: 18px; background: var(--bg-sunken); text-decoration: none; color: var(--ink); font-size: 14px; }
.ma-x a b { display: block; font: 700 18px/1.2 var(--serif); }

/* ---------- order builder ---------- */
.ma-progress { display: flex; gap: 6px; margin: 18px 0 6px; }
.ma-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); }
.ma-progress i.on { background: var(--accent); }
.ma-steplabel { font-size: 13px; color: var(--text-3); }
.ma-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.ma-bar__in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ma-bar__price { flex: 1; min-width: 0; }
.ma-bar__price small { display: block; font-size: 12px; color: var(--text-3); }
.ma-bar__price b { font: 700 22px/1.1 var(--serif); }

/* ---------- sign-in sheet ---------- */
.ma-scrim { position: fixed; inset: 0; z-index: 10; background: rgba(31, 26, 23, .42); display: grid; align-items: end; }
.ma-sheet { background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.ma-sheet h3 { font: 700 26px/1.1 var(--serif); margin: 0 0 4px; }
.ma-field { display: grid; gap: 6px; margin: 14px 0; font-size: 14px; font-weight: 600; }
.ma-field input { min-height: 50px; border-radius: var(--r-in); border: 1px solid var(--line-strong); background: var(--bg); padding: 0 14px; font-size: 17px; font-weight: 500; }
.ma-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ma-note { font-size: 13px; color: var(--text-3); }
.ma-err { color: #C0392B; font-size: 14px; }
.ma-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) { .ma-card, .ma-btn { transition: transform .15s ease, box-shadow .15s ease; } .ma-card:hover { transform: translateY(-1px); } }

/* Brand logo, hero photo and sample-design photos (4-Nov) */
.ma-logo { display: block; width: min(100%, 420px); height: auto; margin: 4px auto 18px; }
.ma-hero { text-align: center; }
.ma-hero .ma-cta { justify-content: center; }
.ma-heroimg { position: relative; margin: 22px 0 0; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.ma-heroimg img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ma-heroimg figcaption, .ma-photo small { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; color: #fff; background: rgba(0, 0, 0, .45); }
.ma-photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--accent-tint); aspect-ratio: 4 / 5; }
.ma-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-card .ma-photo small { color: #fff; font-size: 11px; }
.tl-idea { font: inherit; color: inherit; }

/* Birthday week offer (owner 5-Nov): shown on the home page during her birthday week. */
.cb-card { display: flex; gap: 12px; align-items: center; margin: 12px 16px 0; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(90deg, #FFF3D6 0%, #FDE3C2 55%, #FBD6DF 100%); color: #5A2E0B; box-shadow: 0 0 0 1px rgba(200, 120, 60, 0.25) inset; }
.cb-cake { font-size: 28px; line-height: 1; }
.cb-text { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.cb-text b { font-size: 15px; }
.cb-code { padding: 1px 6px; border-radius: 6px; background: rgba(90, 46, 11, 0.12); letter-spacing: 0.06em; }
@media (prefers-color-scheme: dark) { .cb-card { background: linear-gradient(90deg, #2E2210 0%, #3A2012 55%, #3A1626 100%); color: #FFE3A8; } }

/* Goldy's points + the one-go welcome gift (PG residents): locked = grey with a lock, active = gold. */
.gp { display: grid; gap: 10px; margin: 14px 0; }
.gp__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.875rem; }
.gw-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; }
.gw-card--locked { background: #F1EEEA; color: #5B514A; box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.14); }
.gw-card--active { background: linear-gradient(135deg, #FFF6DD 0%, #F6E3B0 60%, #EBCB7E 100%); color: #4A3606; box-shadow: 0 6px 20px rgba(184, 134, 11, 0.22); }
.gw-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.7); font-size: 1.25rem; }
.gw-card__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gw-card__title { font-weight: 650; }
.gw-card__sub { font-size: 0.8125rem; opacity: 0.85; }

/* Sign-up gift, step by step (owner 6-Nov): Ladies Tailor / Bridal Mehendi. The donut is js/step-rewards.css; these are
   the forms under it (each step's field has an id the "Get more points" rows jump to). */
.wg { margin: 14px 0; }
main > [data-testid='welcome-gift']:first-child { margin-top: 12px; }
.wg-forms { display: grid; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface, #FFFFFF); box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.08); }
.wg-form { display: grid; gap: 10px; }
.wg-form .ma-field { margin: 0; }
.wg-form .ma-field input, .wg-form .ma-field textarea { background: #FFFFFF; }
.wg-plus { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; color: #A34A08; background: #FDEBD9; }
.wg-check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.wg-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.wg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wg-ok { margin: 0; font-size: 0.875rem; color: #23704A; font-weight: 600; }
.wg-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.wg-avatar--empty { display: grid; place-items: center; background: rgba(31, 26, 23, 0.06); font-size: 1.4rem; }
.wg-file { position: relative; overflow: hidden; cursor: pointer; }
.wg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wg-file:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.wg-q { margin: 0; font-weight: 600; }
.wg-stars { display: flex; gap: 4px; }
.wg-star { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(31, 26, 23, 0.05); color: #B9AEA4; font-size: 1.5rem; cursor: pointer; }
.wg-star.is-on { color: #D9701E; background: #FDEBD9; }
.wg-star:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wg-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; text-decoration: none; width: fit-content; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .gw-card--locked { background: #26201C; color: #CDBFB3; box-shadow: inset 0 0 0 1px rgba(244, 237, 230, 0.16); }
  :root:not([data-theme='light']) .gw-card--locked .gw-card__icon { background: rgba(244, 237, 230, 0.08); }
  :root:not([data-theme='light']) .wg-forms { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(244, 237, 230, 0.12); }
  :root:not([data-theme='light']) .wg-form .ma-field input, :root:not([data-theme='light']) .wg-form .ma-field textarea { background: var(--surface); }
  :root:not([data-theme='light']) .wg-plus { color: #F6A86A; background: rgba(240, 149, 79, 0.16); }
  :root:not([data-theme='light']) .wg-ok { color: #8FD8AC; }
  :root:not([data-theme='light']) .wg-star { background: rgba(244, 237, 230, 0.08); }
}
