/* Uni Marriage Bureau main web page "/" (home.mjs). Its own wedding theme: sindoor red and marigold on warm ivory, deep plum header.
   UMR-004 v1.6: ~1280px wide, nothing overlaps, steps down on small screens, never a horizontal scroll.
   Only body.is-home pages use it; the member page and the Free Login page keep their own look. */
body.is-home {
  --kh-seal: #b3122e; --kh-seal-2: #d12b47; --kh-deep: #3b0a2a; --kh-gold: #f59e0b; --kh-gold-soft: #fde7c8;
  --kh-paper: #fff9f2; --kh-paper-2: #fbeee0; --kh-card: #ffffff; --kh-text: #2a1a1f; --kh-muted: #6c5a5f; --kh-line: #e8dccf;
  --kh-ok: #1f7a4d; --kh-wait: #a2650c;
  background: var(--kh-paper); color: var(--kh-text);
}
@media (prefers-color-scheme: dark) {
  body.is-home {
    --kh-seal: #f2788e; --kh-seal-2: #f797a8; --kh-deep: #24061a; --kh-gold: #fbbf24; --kh-gold-soft: #3a2b12;
    --kh-paper: #161012; --kh-paper-2: #1e1518; --kh-card: #241a1d; --kh-text: #f2e9eb; --kh-muted: #b9a7ac; --kh-line: #3a2c30;
    --kh-ok: #6fd3a0; --kh-wait: #f0bd55;
  }
}
body.is-home .top { background: var(--kh-deep); }
body.is-home main.wrap { max-width: none; padding: 0; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-tag { font-size: .72rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.home-nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92rem; white-space: nowrap; opacity: .9; }
.home-nav a:hover, .home-nav a:focus-visible { background: rgba(255,255,255,.12); opacity: 1; }
@media (max-width: 1060px) { .home-nav { display: none; } }
@media (max-width: 640px) { .brand-tag { display: none; } }

.kh { overflow-x: clip; }
.kh-in { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.kh svg { flex: none; }
.kh h3 { margin: 10px 0 6px; font-size: 1.06rem; }
.kh p { margin: 0; }

/* hero */
.kh-hero { padding: 56px 0 44px; background: radial-gradient(1100px 420px at 85% 10%, rgba(226,167,46,.18), transparent 60%), var(--kh-paper); }
.kh-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.kh-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 8px; border-radius: 999px; background: var(--kh-gold-soft); color: var(--kh-seal); font-weight: 700; font-size: .85rem; margin-bottom: 18px !important; }
.kh-badge svg { width: 18px; height: 18px; }
.kh-h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; color: var(--kh-text); letter-spacing: -.01em; }
.kh-h1 span, .kh-h1 em { display: block; }
.kh-h1 em { font-style: normal; color: var(--kh-seal); }
.kh-lead { font-size: 1.08rem; color: var(--kh-muted); max-width: 640px; }
.kh-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.kh-btn { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--kh-line); color: var(--kh-text); background: var(--kh-card); }
.kh-btn.main { background: var(--kh-seal); border-color: var(--kh-seal); color: #fff; }
.kh-btn:hover, .kh-btn:focus-visible { filter: brightness(1.07); }
.kh-btn.light { background: var(--kh-gold); border-color: var(--kh-gold); color: #2a1a1f; white-space: nowrap; }
.kh-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--kh-muted); font-size: .95rem; }
.kh-ticks li { display: flex; align-items: center; gap: 6px; }
.kh-ticks svg { width: 18px; height: 18px; color: var(--kh-ok); }

/* the sample card */
.kh-sample { margin: 0; }
.kh-card { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px -28px rgba(74,15,34,.45); max-width: 460px; margin-left: auto; position: relative; }
.kh-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--kh-seal), var(--kh-gold)); }
.kh-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kh-card-top small { display: block; color: var(--kh-muted); }
.kh-seal { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--kh-seal); color: #fff; }
.kh-seal svg { width: 24px; height: 24px; }
.kh-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--kh-paper-2); margin-bottom: 10px; }
.kh-who small { color: var(--kh-muted); font-family: ui-monospace, Consolas, monospace; font-size: .8rem; word-break: break-all; }
.kh-ok { display: flex; align-items: center; gap: 8px; color: var(--kh-ok); font-weight: 700; margin: 6px 0 10px; }
.kh-ok svg { width: 20px; height: 20px; }
.kh-doc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--kh-line); }
.kh-doc > div { display: flex; flex-direction: column; min-width: 0; }
.kh-doc code { font-size: .85rem; color: var(--kh-muted); }
.kh-pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.kh-pill.ok { background: rgba(31,122,77,.12); color: var(--kh-ok); }
.kh-pill.wait { background: rgba(226,167,46,.18); color: var(--kh-wait); }
.kh-sample figcaption { text-align: right; font-size: .82rem; color: var(--kh-muted); margin-top: 10px; }

/* stats */
.kh-stats { padding: 0 0 8px; }
.kh-stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kh-stat { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kh-stat strong { font-size: 1.9rem; color: var(--kh-seal); line-height: 1.1; }
.kh-stat span { color: var(--kh-muted); font-size: .92rem; }

/* sections */
.kh-sec { padding: 56px 0; }
.kh-sec.kh-alt { background: var(--kh-paper-2); }
.kh-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; color: var(--kh-text); }
.kh-sub { color: var(--kh-muted); margin: 0 0 26px !important; max-width: 760px; }
.kh-h2 + .kh-grid3, .kh-h2 + .kh-grid4, .kh-h2 + .kh-faq { margin-top: 22px; }
.kh-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kh-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kh-feat { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 16px; padding: 20px; }
.kh-feat p { color: var(--kh-muted); font-size: .95rem; }
.kh-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--kh-gold-soft); color: var(--kh-seal); }

/* documents */
.kh-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kh-docbox { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 16px; padding: 20px; }
.kh-docbox.id { border-top: 4px solid var(--kh-seal); }
.kh-docbox h3 { margin-top: 0; }
.kh-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kh-chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--kh-line); background: var(--kh-paper); font-weight: 600; font-size: .92rem; }
.kh-chips.id li { border-color: var(--kh-seal); color: var(--kh-seal); }

/* how it works */
.kh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.kh-steps li { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 16px; padding: 20px; }
.kh-steps p { color: var(--kh-muted); font-size: .95rem; }
.kh-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--kh-seal); color: #fff; font-weight: 800; }

/* FAQ */
.kh-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: start; }
.kh-faq details { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; padding: 14px 18px; }
.kh-faq summary { cursor: pointer; font-weight: 700; }
.kh-faq details p { color: var(--kh-muted); margin-top: 10px; }

/* closing call */
.kh-cta { padding: 44px 0; background: linear-gradient(120deg, var(--kh-deep), #7a1a37); color: #fff; }
.kh-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kh-cta h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.kh-cta p { opacity: .9; }

/* the MyAppClub section uses the dialog's boxes on paper */
#myappclub .club-box, #myappclub .club-app { background: var(--kh-card); border-color: var(--kh-line); color: var(--kh-text); }
#myappclub .pill.live { background: var(--kh-seal); border-color: var(--kh-seal); }

/* step down on smaller screens */
@media (max-width: 1060px) {
  .kh-hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kh-card { margin: 0 auto; }
  .kh-sample figcaption { text-align: center; }
  .kh-grid4, .kh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .kh-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-faq, .kh-docs { grid-template-columns: minmax(0, 1fr); }
  .kh-cta-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .kh-in { padding: 0 16px; }
  .kh-hero { padding: 32px 0 28px; }
  .kh-sec { padding: 40px 0; }
  .kh-grid3, .kh-grid4, .kh-steps { grid-template-columns: minmax(0, 1fr); }
  .kh-stat strong { font-size: 1.5rem; }
}
.kh-cta .kh-android { margin-top: 10px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 600; font-size: .9rem; }
@media (max-width: 520px) { .top .brand, .brand-txt { flex: none; } .top-in { gap: 6px; } .top select { max-width: 96px; padding: 6px 4px; } .top .free-login { padding: 7px 12px; } }

/* plans from the Admin (home.mjs) */
.kh-price { font-size: 1.5rem; font-weight: 700; color: var(--kh-seal); margin: 4px 0; }
