/* ============================================================
   Kadkita — kad jemputan perkahwinan digital
   Bahasa visual: kanvas putih Zola, kad media bersudut bulat,
   serif paparan + sans UI, pastel songket sebagai penanda kategori.
   ============================================================ */

:root {
  --ink: #0e0e0e;
  --ink-2: #4a4a4a;
  --ink-3: #7d7d7d;
  --line: #e4e4e4;
  --line-strong: #c9c9c4;
  --surface: #f7f7f5;
  --white: #fff;

  /* pastel songket — penanda kategori/tema, bukan hiasan gradien */
  --pandan: #dcefdd;
  --kunyit: #f7e7bc;
  --sireh: #e6d8f3;
  --langit: #cfe7f2;

  --maroon: #7a1436;
  --teal: #005759;

  --r-card: 28px;
  --r-md: 16px;
  --r-pill: 999px;

  --wrap: 1180px;
  --pad: 24px;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 16px; top: 12px; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
}

/* ---------- tipografi ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8rem; color: var(--ink-3); }

/* ---------- butang ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: #2b2b2b; border-color: #2b2b2b; }
.btn:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--surface); border-color: var(--ink); }

.btn-light {
  background: #fff; color: var(--ink); border-color: #fff;
}
.btn-light:hover { background: #f1f1ee; border-color: #f1f1ee; }

.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.burger {
  width: 44px; height: 44px;
  margin-left: -10px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.burger span {
  display: block; width: 18px; height: 1.6px; background: currentColor; position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-right: auto;
}
.brand strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.brand svg { display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.drawer { border-bottom: 1px solid var(--line); display: none; }
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; margin: 0; padding: 18px 0 26px; }
.drawer li + li { border-top: 1px solid var(--line); }
.drawer a {
  display: block; padding: 16px 0; text-decoration: none;
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .nav { display: none; }
}


/* ---------- hero ---------- */

.hero { padding: 22px 0 0; }

.hero-media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 7;
  animation: heroIn 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.42), transparent);
}
.hero-tag {
  position: absolute;
  left: 22px; bottom: 22px; right: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  z-index: 2;
}
.hero-tag .chip {
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border: 0;
  font-weight: 500;
}
.hero-title { margin: 40px auto 0; text-align: center; max-width: 22ch; }
.hero-sub {
  margin: 18px auto 0;
  text-align: center;
  max-width: 54ch;
  color: var(--ink-2);
}
.hero-cta { justify-content: center; }

@keyframes heroIn {
  from { opacity: 0; transform: scale(.985) translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- strip kategori (pil) ---------- */

.strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 34px 0 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .chip { scroll-snap-align: start; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
a.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.chip-pandan { background: var(--pandan); border-color: transparent; }
.chip-kunyit { background: var(--kunyit); border-color: transparent; }
.chip-sireh { background: var(--sireh); border-color: transparent; }
.chip-langit { background: var(--langit); border-color: transparent; }

/* ---------- seksyen ---------- */

.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.hairline { border-top: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 44px; }

/* blok berselang-seli: media + teks */
.block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.block.rev .block-media { order: 2; }
.block-media {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.block-media img { width: 100%; height: 100%; object-fit: cover; }
.block-media.tall { aspect-ratio: 3 / 4; }
.block-copy h2 { margin-bottom: 16px; }
.block-copy .actions { margin-top: 22px; }

@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; }
  .block.rev .block-media { order: 0; }
}

/* jalur pastel bergilir sebagai pemisah kategori */
.band {
  border-radius: var(--r-card);
  padding: 56px clamp(24px, 5vw, 60px);
}
.band-pandan { background: var(--pandan); }
.band-kunyit { background: var(--kunyit); }
.band-sireh  { background: var(--sireh); }
.band-langit { background: var(--langit); }
.band-surface { background: var(--surface); }

/* ---------- jubin "beza kadkita" ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tile {
  border-radius: var(--r-card);
  padding: 34px 32px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tile svg { color: var(--ink); }
.tile h3 { font-size: 1.35rem; }
.tile p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
.tile .meta { margin-top: auto; font-size: 0.82rem; color: var(--ink-2); }

@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- tema / galeri ---------- */

.themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 34px 26px;
}
.theme-card { text-decoration: none; }
.theme-card figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.theme-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.theme-card:hover img { transform: scale(1.035); }
.theme-card h3 { margin: 16px 0 6px; font-size: 1.2rem; }
.theme-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.price-tag { font-size: 0.9rem; color: var(--ink-2); }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 0 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- telefon (mockup demo langsung) ---------- */

.phone-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.phone {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  border: 10px solid #16161a;
  border-radius: 42px;
  overflow: hidden;
  background: #111;
  position: relative;
  box-shadow: 0 26px 60px rgba(14,14,14,.18);
}
.phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.phone a.overlay {
  position: absolute; inset: 0; z-index: 3;
  border-radius: 32px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 22px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 34%);
  opacity: 0;
  transition: opacity .25s ease;
}
.phone:hover a.overlay, .phone:focus-within a.overlay { opacity: 1; }
.phone a.overlay span {
  background: rgba(255,255,255,.94); color: var(--ink);
  padding: 10px 18px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 500;
}
@media (max-width: 900px) { .phone-wrap { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- harga ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.plan.featured { background: var(--pandan); border-color: transparent; }
.plan h3 { font-size: 1.5rem; }
.plan .tag {
  align-self: flex-start;
  background: var(--ink); color: #fff;
  font-size: .78rem; padding: 5px 12px; border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.plan .amount {
  font-family: var(--serif);
  font-size: 2.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0 4px;
}
.plan .amount small { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); letter-spacing: 0; }
.plan ul { list-style: none; margin: 22px 0 30px; padding: 0; }
.plan li {
  padding: 11px 0 11px 26px;
  position: relative;
  font-size: .96rem;
  color: var(--ink-2);
  border-top: 1px solid rgba(14,14,14,.09);
}
.plan li::before {
  content: "";
  position: absolute; left: 4px; top: 21px;
  width: 9px; height: 5px;
  border-left: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(-45deg);
}
.plan li strong { color: var(--ink); font-weight: 500; }
.plan .btn { margin-top: auto; }

@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* jadual perbandingan */
.table-scroll { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .95rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink);
}
table.compare td:first-child { font-weight: 500; width: 32%; }
table.compare tbody tr:hover { background: var(--surface); }

/* ---------- langkah ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .n {
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.02em;
  display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- soal lazim ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 72ch; }

/* ---------- testimoni / nota ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 30px;
  font-size: .98rem;
}
.quote p { color: var(--ink); }
.quote .who { margin-top: 16px; color: var(--ink-2); font-size: .88rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* CTA hujung */
.cta-band {
  border-radius: var(--r-card);
  background: var(--maroon);
  color: #fff;
  padding: clamp(40px, 6vw, 76px);
}
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; }
.cta-band .btn-light { margin-top: 8px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}
.foot h4 {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--ink);
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot .legal {
  margin-top: 54px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  font-size: .82rem; color: var(--ink-3);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- animasi masuk ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .theme-card img { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- penapis tema ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 0 34px;
}
.is-hidden { display: none !important; }

.count-line { color: var(--ink-2); font-size: .92rem; padding-bottom: 18px; }

/* ============================================================
   Halaman demo kad jemputan (demo.html)
   ============================================================ */

body.invite {
  background: #fbfaf7;
  padding-bottom: 76px;   /* ruang untuk butang "kembali" yang terapung */
}
body.invite.locked { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #0e0e0e;
  color: #fff;
  text-align: center;
  padding: 30px;
  transition: opacity .8s ease, visibility .8s ease;
}
.gate[hidden] { display: none; }
.gate.gone { opacity: 0; visibility: hidden; }
.gate .cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .62;
}
.gate::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(0,0,0,.62), rgba(0,0,0,.86));
}
.gate .inner { position: relative; z-index: 2; max-width: 30ch; }
.gate .small { letter-spacing: .18em; font-size: .78rem; color: rgba(255,255,255,.75); }
.gate h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 14px 0 6px; }
.gate .date { color: rgba(255,255,255,.82); margin-bottom: 30px; }
.gate .btn-light:hover { background: #fff; }

.iv-section { padding: 76px 0; }
.iv-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.ornament {
  width: 120px; height: 14px; margin: 22px auto;
  color: var(--maroon); opacity: .8;
}

.iv-head { padding: 84px 0 40px; text-align: center; }
.iv-head .kicker { letter-spacing: .2em; font-size: .75rem; color: var(--ink-3); }
.iv-names {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 10px 0 14px;
}
.iv-names .amp { color: var(--maroon); font-style: italic; }

.ayat { font-size: 1.02rem; color: var(--ink-2); }
.ayat .ar {
  direction: rtl;
  font-size: 1.35rem;
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: 14px;
}

.couple { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; }
@media (max-width: 700px) { .couple { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; text-align: center; }
.person .portrait {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px;
  background: var(--surface);
}
.person .portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.45rem; }
.person p { color: var(--ink-2); font-size: .92rem; }

.countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cd-cell {
  min-width: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 12px;
}
.cd-cell b {
  display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: -0.02em;
}
.cd-cell span { font-size: .74rem; letter-spacing: .12em; color: var(--ink-3); }

.iv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(26px, 4vw, 44px);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px dashed var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .t { font-family: var(--serif); font-size: 1.15rem; }
.timeline .d h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline .d p { font-size: .92rem; color: var(--ink-2); margin: 0; }

.dress { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; }
.dress .sw { text-align: center; font-size: .8rem; color: var(--ink-2); }
.dress .sw i {
  display: block; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1); margin-bottom: 8px;
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.gallery img.wide { grid-column: span 3; aspect-ratio: 16 / 7; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,14,14,.07);
}
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 11px 20px; font-size: .95rem; cursor: pointer;
}
.radio-row input { accent-color: var(--maroon); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.notice {
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: .92rem;
  background: var(--pandan);
  margin-bottom: 20px;
}
.notice.warn { background: var(--kunyit); }
.notice.error { background: #f7d9d9; }

.wishes { list-style: none; margin: 26px 0 0; padding: 0; }
.wishes li { border-top: 1px solid var(--line); padding: 18px 0; }
.wishes .w-name { font-weight: 500; }
.wishes .w-time { font-size: .78rem; color: var(--ink-3); margin-left: 8px; }
.wishes .w-text { color: var(--ink-2); font-size: .96rem; margin-top: 4px; }

.gift {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 12px;
}
.gift .acct { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.copy-btn {
  min-height: 40px; padding: 0 16px; font-size: .88rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { border-color: var(--ink); }

.iv-foot { text-align: center; padding: 70px 0 90px; color: var(--ink-2); font-size: .95rem; }
.iv-foot .by { margin-top: 24px; }

.back-home {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 18px; border-radius: var(--r-pill); font-size: .85rem;
  box-shadow: 0 10px 26px rgba(14,14,14,.2);
}

/* ---------- kad demo: penyesuaian ---------- */
html.embedded .back-home { display: none; }
html.embedded body { padding-bottom: 0; }

/* ---------- penyesuaian akhir (selepas semua peraturan asas) ---------- */
@media (max-width: 700px) {
  /* pada skrin kecil, potret penuh lebih baik daripada jalur lebar */
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-tag { left: 14px; right: 14px; bottom: 14px; }
}
