/* 囍 Big Day marketing site. The app's own look: cream, Chinese red, gold, white cards. */
:root {
  --cream: #fff8f0;
  --cream-deep: #fbefe2;
  --blush: #f8e7e3;
  --red: #b3261e;
  --red-deep: #8f1d17;
  --gold: #b8860b;
  --gold-soft: #f3e3bd;
  --ink: #2b1d1a;
  --muted: #76655f;
  --line: #eadbd3;
  --card: #ffffff;
  --green: #2e7d32;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", -apple-system, "PingFang HK", "Helvetica Neue", sans-serif;
  --radius: 18px;
  color-scheme: light;
}

/* English pages: Latin fonts first, so punctuation like ’ isn't set full-width by the CJK fonts. */
html:lang(en) {
  --serif: "Noto Serif", Georgia, "Noto Serif TC", serif;
  --sans: -apple-system, "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 22px; line-height: 1;
}
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--red); }
.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px;
  color: var(--ink); text-decoration: none; background: var(--card);
}
.lang:hover { border-color: var(--red); color: var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: "囍"; position: absolute; right: -60px; top: -40px; font-family: var(--serif);
  font-size: 520px; line-height: 1; color: var(--red); opacity: 0.045; pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 22px; }
.nw { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--red); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; min-width: 172px;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.2; }
.store b { display: block; font-size: 16px; line-height: 1.25; font-weight: 600; }
.store[aria-disabled="true"] { opacity: 0.88; cursor: default; }
.soon { font-size: 14px; color: var(--muted); }

/* ---------- phone mock ---------- */
.phone {
  width: 300px; margin-inline: auto; border-radius: 46px; padding: 12px; background: #1d1412;
  box-shadow: 0 40px 80px -30px rgba(80, 20, 10, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.2);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px;
  border-radius: 20px; background: #1d1412; z-index: 2;
}
.screen {
  border-radius: 36px; background: var(--cream); overflow: hidden; height: 600px;
  padding: 54px 14px 14px; font-size: 13px; line-height: 1.45; position: relative;
}
.app-title { text-align: center; font-weight: 700; font-size: 15px; }
.app-sub { text-align: center; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.app-sub::after { content: " ▾"; color: var(--red); }
.m-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  margin-bottom: 8px;
}
.m-count { background: var(--blush); border-color: transparent; text-align: center; padding: 12px; }
.m-count .n { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--red); line-height: 1.1; }
.m-count .l { color: var(--muted); font-size: 11px; }
.m-seg { font-size: 11px; font-weight: 700; color: var(--gold); margin: 10px 2px 6px; letter-spacing: 0.05em; }
.m-ev { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: start; }
.m-ev .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-ev .ti { font-weight: 600; }
.m-ev .loc { color: var(--muted); font-size: 11px; }
.m-ev.done { opacity: 0.55; }
.m-ev.now { border: 1.5px solid var(--red); box-shadow: 0 6px 16px -10px var(--red); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.b {
  font-size: 10px; padding: 1px 7px; border-radius: 999px; background: var(--cream-deep); color: var(--muted);
  font-weight: 500;
}
.b.red { background: var(--red); color: #fff; }
.b.gold { background: var(--gold-soft); color: #7a5a06; }
.b.green { background: #e3f1e4; color: var(--green); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
.head { max-width: 640px; margin-bottom: 48px; }
.head.center { text-align: center; margin-inline: auto; }
.head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 14px; }
.head p { color: var(--muted); font-size: 18px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 16px; }
.feature .copy > p { color: var(--muted); font-size: 18px; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--blush);
}
.tag { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.12em; }

.stage {
  background: linear-gradient(160deg, var(--blush), var(--cream-deep));
  border-radius: 28px; padding: 40px 28px; display: grid; place-items: center; min-height: 420px;
  position: relative; overflow: hidden;
}
.stage.gold { background: linear-gradient(160deg, #fbf1d9, var(--cream-deep)); }
.panel {
  width: min(380px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; box-shadow: 0 30px 60px -36px rgba(80, 20, 10, 0.4); font-size: 14px;
}
.panel + .panel { margin-top: 14px; }
.panel h4 { margin: 0 0 10px; font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: 0.04em; }

/* alarm */
.lock {
  width: min(360px, 100%); text-align: center; color: #fff; padding: 8px 0 0;
}
.lock .clock { font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.lock .date { color: var(--muted); margin-bottom: 26px; }
.notif {
  text-align: left; background: rgba(255, 255, 255, 0.86); color: var(--ink); border-radius: 22px; padding: 14px 16px;
  box-shadow: 0 20px 40px -24px rgba(60, 10, 0, 0.5); display: grid; grid-template-columns: 38px 1fr; gap: 12px;
  backdrop-filter: blur(10px);
}
.notif + .notif { margin-top: 10px; opacity: 0.8; transform: scale(0.96); }
.notif .ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px;
}
.notif b { display: block; font-size: 14px; }
.notif span { font-size: 13px; color: var(--muted); }
.notif .when { float: right; font-size: 12px; color: var(--muted); }

/* rehearsal */
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--cream); }
.row .who { font-weight: 600; flex: 1; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ok { color: var(--green); font-size: 13px; font-weight: 600; }
.wait { color: var(--gold); font-size: 13px; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: var(--cream-deep); overflow: hidden; margin: 6px 0 14px; }
.bar i { display: block; height: 100%; width: 62%; background: var(--red); border-radius: 6px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.cal .dow { color: var(--muted); font-size: 11px; padding-bottom: 4px; }
.cal .d { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; position: relative; padding-bottom: 6px; }
.cal .d.fade { color: #c9b9b2; }
.cal .d.today { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); font-weight: 700; }
.cal .d.sel { background: var(--red); color: #fff; font-weight: 700; }
.cal .d.xi { color: var(--red); font-family: var(--serif); font-weight: 700; }
.cal .d i {
  position: absolute; bottom: 5px; left: 50%; translate: -50% 0; display: flex; gap: 2px;
}
.cal .d i b { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal .d i b.r { background: var(--red); }
.cal .d i b.g { background: #bfb1ab; }
.cal .d.sel i b { background: #fff; }
.task { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.tick.on { background: var(--green); border-color: var(--green); position: relative; }
.tick.on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* vendors */
.vtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.vtable th, .vtable td { padding: 7px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.vtable th { color: var(--muted); font-weight: 500; font-size: 12px; }
.vtable tr.chosen td { background: #fdf6e6; }
.vtable .best { color: var(--green); font-weight: 600; }

/* invitation */
.invite { text-align: center; }
.invite .names { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--red); }
.invite .when { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.seat { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--red); line-height: 1.1; }
.mates { margin-top: 8px; color: var(--muted); font-size: 13px; }
.mates b { color: var(--ink); }
.menu { list-style: none; margin: 0; padding: 0; text-align: center; font-family: var(--serif); }
.menu li { padding: 5px 0; }
.menu li small { display: block; font-family: var(--sans); color: var(--muted); font-size: 11px; }
.qr {
  width: 108px; height: 108px; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 8px;
  position: absolute; right: 26px; bottom: 26px; box-shadow: 0 20px 40px -24px rgba(60, 10, 0, 0.5);
}
.rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.rsvp span { border: 1.5px solid var(--red); color: var(--red); border-radius: 10px; padding: 6px; font-weight: 600; text-align: center; }
.rsvp span.on { background: var(--red); color: #fff; }

/* album */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; overflow: hidden; }
.grid3 div { aspect-ratio: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.chip.o { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* small features */
.smalls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.small { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.small .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--blush); color: var(--red);
  display: grid; place-items: center; margin-bottom: 16px;
}
.small .ico svg { width: 22px; height: 22px; }
.small h3 { font-size: 19px; margin-bottom: 8px; }
.small p { color: var(--muted); font-size: 15px; }

/* who */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.who-card { background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.who-card .k { font-family: var(--serif); font-size: 30px; color: var(--red); font-weight: 700; }
.who-card h3 { font-size: 20px; margin: 6px 0 10px; }
.who-card p { color: var(--muted); font-size: 15px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; display: flex;
  flex-direction: column; position: relative;
}
.plan.pop { border: 2px solid var(--red); box-shadow: 0 30px 60px -40px var(--red); }
.plan .flag {
  position: absolute; top: -13px; left: 28px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px;
}
.plan h3 { font-size: 22px; }
.price { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--red); margin: 10px 0 2px; line-height: 1.1; }
.price small { font-size: 18px; font-weight: 600; margin-right: 2px; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.free {
  margin-top: 22px; padding: 22px 26px; border-radius: 18px; background: var(--card); border: 1px dashed var(--gold);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.free b { font-family: var(--serif); font-size: 20px; color: var(--gold); }
.free p { color: var(--muted); flex: 1; min-width: 240px; font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; text-align: center; }

/* faq */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* closing + footer */
.closing { text-align: center; padding: 110px 0; background: var(--red); color: #fff; position: relative; overflow: hidden; }
.closing::before {
  content: "囍"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-family: var(--serif);
  font-size: 460px; line-height: 1; opacity: 0.08;
}
.closing h2 { font-size: clamp(32px, 4.4vw, 52px); position: relative; }
.closing p { opacity: 0.85; margin: 14px 0 30px; font-size: 18px; position: relative; }
.closing .stores { justify-content: center; position: relative; }
.closing .store { background: #fff; color: var(--ink); }
footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }

/* legal pages */
.doc { max-width: 760px; margin-inline: auto; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: #4a3a35; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.lost { text-align: center; padding: 140px 0; }
.lost .big { font-family: var(--serif); font-size: 120px; color: var(--red); line-height: 1; }
.lost p { color: var(--muted); margin: 16px 0 26px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .copy { order: 0; }
  .smalls { grid-template-columns: repeat(2, 1fr); }
  .plans, .who-grid { grid-template-columns: 1fr; }
  .plan.pop { order: -1; }
  .top nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .smalls { grid-template-columns: 1fr; }
  .stage { padding: 28px 16px; min-height: 0; border-radius: 22px; }
  .phone { width: 280px; }
  .screen { height: 560px; }
  .qr { display: none; }
  .feature + .feature { margin-top: 80px; }
  footer nav { margin-left: 0; }
}
