/* eCards: "Haveli Couture". Emerald and old gold outside, an ivory "invitation paper" form inside.
   Playfair Display headings, Jost body, Nastaliq Urdu. Readability first: solid strokes, high contrast. */
:root {
  --emerald-900: #07150f; --emerald-800: #0b1f19; --emerald-700: #10302a; --emerald-600: #174238;
  --gold: #c9a24a; --gold-hi: #f3dd9a; --gold-lo: #8a6420;
  --ivory: #f6efe2; --ivory-dim: #eadfca; --muted: #c4b8a0;
  --paper: #fbf6ec; --paper-2: #f3ead8; --ink: #1d1a14; --ink-2: #5a5244; --edge: #d9cbb0; --red: #b3261e;
  --line: rgba(201,162,74,.32); --line-soft: rgba(246,239,226,.14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --foil: linear-gradient(100deg, #8a6420 0%, #f3dd9a 22%, #c9a24a 40%, #fff2c6 52%, #b8892e 70%, #f3dd9a 88%, #8a6420 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; color: var(--ivory); font: 400 16px/1.55 var(--sans); }
body {
  min-height: 100vh; padding-bottom: 120px; overflow-x: hidden;
  background:
    radial-gradient(120% 50% at 50% -10%, rgba(201,162,74,.18), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='none' stroke='%23c9a24a' stroke-opacity='.07' stroke-width='1'><path d='M32 4c8 10 8 18 0 28c-8-10-8-18 0-28Z'/><path d='M32 32c8 10 8 18 0 28c-8-10-8-18 0-28Z'/><path d='M4 32c10-8 18-8 28 0c-10 8-18 8-28 0Z'/><path d='M32 32c10-8 18-8 28 0c-10 8-18 8-28 0Z'/><circle cx='32' cy='32' r='2'/></g></svg>"),
    linear-gradient(180deg, var(--emerald-800), var(--emerald-900));
}
.grain { display: none; }
main { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top { max-width: 520px; margin: 0 auto; padding: 16px 16px 4px; display: flex; align-items: baseline; justify-content: space-between; }
.brand { text-decoration: none; color: var(--ivory); display: inline-flex; align-items: baseline; gap: 1px; }
.brand .mono { font: italic 700 30px/1 var(--serif); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .word { font: 600 22px/1 var(--serif); }
.brand.small .mono { font-size: 22px; } .brand.small .word { font-size: 16px; }
.house { font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 20px 0 4px; text-align: center; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 8px 0 8px; font: 700 clamp(34px, 10vw, 48px)/1.08 var(--serif); }
.hero h1 em { font-style: italic; font-weight: 600; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0 auto 2px; max-width: 30ch; font: 500 17px/1.45 var(--sans); color: var(--ivory); }
.ur-tag { margin: 0 0 2px; font: 400 21px/2.1 var(--urdu); color: var(--gold-hi); }
.ticks { list-style: none; margin: 4px auto 16px; padding: 0; display: grid; gap: 5px; justify-items: center; }
.ticks li { font: 400 15px/1.3 var(--sans); color: var(--ivory-dim); }
.ticks li::before { content: "✓"; color: var(--gold-hi); font-weight: 600; margin-right: 8px; }
.price { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,21,15,.5); }
.price .now { font: 700 28px/1 var(--serif); color: var(--gold-hi); }
.price .was { font: 400 15px/1 var(--sans); color: var(--muted); text-decoration: line-through; }
.price .tag { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-900); background: var(--foil); padding: 6px 10px; border-radius: 99px; }

/* ---------- steps ---------- */
.step-h { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font: 700 21px/1.2 var(--serif); color: var(--ivory); }
.step-h .n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--foil); color: var(--emerald-900); font: 700 16px/1 var(--sans); }
.step-h small { margin-left: auto; font: 400 13px/1.2 var(--sans); color: var(--muted); }
.step-h.dark { color: var(--ink); margin: 26px 0 12px; }
.step-h.dark:first-child { margin-top: 4px; }
.step-h.dark small { color: var(--ink-2); }

/* ---------- 1. designs: 3-up grid, whole card visible ---------- */
.designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.design { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 0; border: 0; background: none; color: var(--ivory); cursor: pointer; text-align: center; }
.design .pic { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--line-soft); transition: border-color .25s, transform .25s, box-shadow .25s; }
.design img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.design .name { font: 600 14px/1.2 var(--serif); }
.design .tick { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; background: var(--foil); color: var(--emerald-900); font: 700 13px/1 var(--sans); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.design.on .pic { border-color: var(--gold-hi); outline-color: transparent; box-shadow: 0 10px 26px rgba(0,0,0,.45); transform: translateY(-2px); }
.design.on .tick { display: grid; }
.design.on .name { color: var(--gold-hi); }

/* ---------- live preview arch ---------- */
.stage { margin-top: 22px; text-align: center; }
.arch { position: relative; width: min(100%, 300px, calc(58vh * 340 / 604)); aspect-ratio: 340 / 604; margin: 0 auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.55)); }
.arch-line { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); pointer-events: none; z-index: 2; }
.screen { position: absolute; inset: 0; overflow: hidden; border-radius: 34px 34px 14px 14px; background: #000; }
.screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.live { margin: 14px 0 0; font: 500 13px/1.4 var(--sans); color: var(--ivory-dim); }
.live .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #3ddc84; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } }

/* ---------- 2-4. the form: ivory paper, solid boxes, labels above ---------- */
.paper { margin-top: 26px; padding: 22px 16px 18px; border-radius: 20px; color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); box-shadow: 0 0 0 1px rgba(201,162,74,.55), 0 20px 50px rgba(0,0,0,.35); }
.q { display: block; margin: 0 0 16px; }
.ql { display: block; margin: 0 0 6px; font: 600 15.5px/1.3 var(--sans); color: var(--ink); }
.ql i { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 13.5px; margin-left: 4px; }
.q input { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 12px; background: #fff; color: var(--ink);
  font: 500 18px/1.2 var(--sans); outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.q input::placeholder { color: #a99f8c; font-weight: 400; }
.q input:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 4px rgba(201,162,74,.22); }
.q input[type="date"], .q input[type="time"] { font-size: 16px; min-width: 0; padding: 12px 8px 12px 12px; }
.q.bad input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,38,30,.15); }
.err { display: none; margin-top: 6px; font: 500 13.5px/1.3 var(--sans); color: var(--red); }
.q.bad .err { display: block; }
.row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.row > * { min-width: 0; }
.lang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang button { min-height: 52px; border: 1.5px solid var(--edge); border-radius: 12px; background: #fff; color: var(--ink); font: 600 16px/1 var(--sans); cursor: pointer; transition: all .2s; }
.lang button[lang="ur"] { font: 600 20px/1 var(--urdu); padding-bottom: 8px; }
.lang button.on { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-hi); box-shadow: 0 6px 16px rgba(11,31,25,.25); }

/* Urdu spelling: one small line under the box */
.ur-out { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 400 13.5px/1.3 var(--sans); color: var(--ink-2); }
.ur-out:empty { display: none; }
.ur-out .u { font: 600 19px/2 var(--urdu); color: var(--emerald-700); direction: rtl; }
.ur-out .guess { color: #9a6b12; font-size: 12.5px; }
.ur-out .ed { margin-left: auto; min-height: 34px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 99px; background: #fff; color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.ur-out input.uin { flex: 1; min-height: 44px; padding: 4px 10px; direction: rtl; text-align: right; font: 600 19px/2 var(--urdu); border: 1.5px solid var(--gold-lo); border-radius: 10px; background: #fff; color: var(--ink); }

/* music */
.tracks { display: grid; gap: 8px; margin-bottom: 4px; }
.trk { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 62px; border: 1.5px solid var(--edge); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.trk.on { border-color: var(--emerald-700); box-shadow: 0 0 0 3px rgba(23,66,56,.15); }
.trk input { position: absolute; opacity: 0; pointer-events: none; }
.trk .play { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--emerald-800); color: var(--gold-hi); cursor: pointer; }
.trk .play svg { width: 15px; height: 15px; }
.trk .t { flex: 1; text-align: left; } .trk .t b { display: block; font: 600 15.5px/1.2 var(--sans); color: var(--ink); } .trk .t small { color: var(--ink-2); font-size: 13px; }
.trk .chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--edge); flex: none; }
.trk.on .chk { border-color: var(--emerald-700); background: radial-gradient(circle, var(--emerald-700) 45%, transparent 50%); }
.trk.playing .t small::after { content: "  · playing"; color: var(--emerald-700); font-weight: 600; }
.fine { margin: 4px 0 0; font: 400 13.5px/1.45 var(--sans); color: var(--ink-2); }

/* floating "see my card" button while typing */
.peek { position: fixed; right: 12px; top: 12px; z-index: 39; display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 99px;
  background: var(--emerald-800); color: var(--gold-hi); font: 600 14.5px/1 var(--sans); box-shadow: 0 0 0 1px var(--gold), 0 10px 24px rgba(0,0,0,.4); cursor: pointer; }
.peek svg { width: 18px; height: 18px; }
.peek.show { display: inline-flex; }

/* ---------- promise / compare / how / faq ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.promise ul { list-style: none; margin: 30px 0 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.promise li b { display: block; font: 600 17px/1.2 var(--serif); color: var(--gold-hi); }
.promise li span { font-size: 14px; color: var(--ivory-dim); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs > div { padding: 16px 14px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(7,21,15,.45); }
.vs .win { border-color: var(--gold); background: linear-gradient(160deg, rgba(201,162,74,.16), rgba(7,21,15,.5)); }
.vs .k { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vs .v { display: block; margin: 8px 0 4px; font: 700 26px/1 var(--serif); }
.vs .win .v { color: var(--gold-hi); }
.vs .strike { text-decoration: line-through; color: var(--ivory-dim); }
.vs .s { font-size: 13px; color: var(--ivory-dim); }
.how ol { list-style: none; margin: 0; padding: 0; }
.how li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.how li:last-child { border: 0; }
.how .n { flex: none; width: 44px; font: italic 700 30px/1 var(--serif); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how b { font: 600 17px/1.25 var(--serif); } .how p { margin: 4px 0 0; color: var(--ivory-dim); font-size: 15px; }
details { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font: 600 16.5px/1.3 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--gold); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 8px 0 0; color: var(--ivory-dim); font-size: 15px; }
.foot { text-align: center; padding: 36px 0 10px; color: var(--muted); font-size: 13px; } .foot p { margin: 6px 0 0; }

/* ---------- sticky CTA ---------- */
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7,21,15,0), rgba(7,21,15,.94) 30%); }
.cta button { width: 100%; max-width: 488px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 58px; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #23b45f, #168a46); color: #fff; font: 600 17px/1 var(--sans);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 26px rgba(22,138,70,.35); }
.cta button svg { width: 24px; height: 24px; flex: none; }
.cta button span { flex: 1; text-align: left; white-space: nowrap; }
.cta button b { font: 700 19px/1 var(--serif); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); }
.cta button:disabled { opacity: .65; }
#msg { max-width: 488px; margin: 8px auto 0; padding: 10px 12px; border-radius: 12px; text-align: center; font: 500 14px/1.4 var(--sans); color: var(--ink); background: var(--gold-hi); }
#msg:empty { display: none; }
@media (min-width: 720px) { .hero { padding-top: 36px; } }

/* optional extras: hashtag, dress code */
.extras { margin: 4px 0 6px; padding: 0; border: 1.5px dashed var(--edge); border-radius: 14px; background: rgba(255,255,255,.5); }
.extras summary { padding: 14px; font: 600 15.5px/1.3 var(--sans); color: var(--ink); }
.extras summary small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.extras summary::after { color: var(--gold-lo); }
.extras[open] { padding-bottom: 2px; } .extras .q { margin: 0 14px 14px; }
.q select { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 12px; background: #fff; color: var(--ink); font: 500 17px/1.2 var(--sans); }
