/* Mess Book Premium offer page — Mess Book brand: deep green + gold */
:root {
  --green: #124d3f;
  --green-dark: #0c3a2f;
  --green-soft: #e7f0ed;
  --gold: #ebb83a;
  --gold-dark: #d9a429;
  --bg: #f6f7f5;
  --card: #ffffff;
  --ink: #17231f;
  --muted: #5d6b66;
  --line: #e2e7e4;
  --amber-bg: #fff6e0;
  --amber-line: #f1d38a;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 77, 63, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: Poppins, Inter, sans-serif; line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin: 0 0 1em; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.icon-lg { width: 48px; height: 48px; color: var(--green); }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 Poppins, Inter, sans-serif;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: var(--gold); color: var(--green-dark); box-shadow: 0 6px 18px rgba(235, 184, 58, 0.35); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }
.btn-ghost { background: var(--card); color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, 0.3); }
.btn-whatsapp:hover { background: #18934a; }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem Poppins, sans-serif; color: #fff; text-decoration: none; }
.brand img { border-radius: 8px; }
.topbar-tag { font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.07) 0 28%, transparent 28.2%),
    radial-gradient(circle at 95% 105%, rgba(255, 255, 255, 0.06) 0 30%, transparent 30.2%),
    var(--green);
}
.hero-inner { display: grid; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 0; }
.hero-copy { padding-bottom: 8px; }
.pill {
  display: inline-block; margin-bottom: 20px; padding: 10px 20px; border-radius: 999px;
  background: rgba(235, 184, 58, 0.18); border: 1px solid rgba(235, 184, 58, 0.45);
  color: var(--gold); font-weight: 700; font-size: 1.02rem;
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { color: var(--gold); }
.lead { font-size: 1.1rem; color: #d6e5e0; max-width: 34em; margin-bottom: 26px; }
.lead strong { color: #fff; }
.hero-phone { justify-self: center; width: min(290px, 78vw); }
.hero-phone img {
  border-radius: 34px 34px 0 0; border: 8px solid #0b2c24; border-bottom: 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.25);
  max-height: 440px; object-fit: cover; object-position: top;
}
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; padding-top: 64px; }
  .hero-copy { padding-bottom: 64px; }
  .hero-phone img { max-height: 520px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--card); }

/* ---------- Plans ---------- */
.plans-grid { display: grid; gap: 20px; margin: 28px auto 24px; max-width: 760px; }
@media (min-width: 680px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
.plan-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.plan-card.is-best { border: 2px solid var(--gold); }
.best-tag {
  position: absolute; top: -14px; left: 24px; margin: 0; padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: var(--green-dark); font: 700 0.78rem Poppins, sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-card h3 { font-size: 1.15rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.price { font: 800 2.8rem/1 Poppins, sans-serif; color: var(--green); margin-bottom: 6px; }
.per { color: var(--muted); font-size: 0.92rem; }
.price s { font-size: 1.25rem; font-weight: 600; color: #9aa6a2; margin-left: 6px; text-decoration-thickness: 2px; }
.save {
  display: inline-block; align-self: flex-start; margin: 2px 0 8px; padding: 3px 10px; border-radius: 999px;
  background: #e3f3ea; color: #0f5c34; font-weight: 700; font-size: 0.85rem;
}
.compare-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin: -8px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 22px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.ticks .icon { color: var(--green); margin-top: 3px; }

.notice {
  display: flex; gap: 12px; max-width: 760px; margin: 0 auto; padding: 16px 18px;
  background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 14px; font-size: 0.95rem;
}
.notice .icon { color: #a87406; margin-top: 3px; }
.notice-sub { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.steps h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.step-no {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--gold); font: 700 1rem Poppins, sans-serif;
}

/* ---------- FAQ ---------- */
.faq { margin: 24px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 600 1.4rem Poppins, sans-serif; color: var(--green);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.closed .icon-lg { margin: 0 auto 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: #b8ccc5; padding: 28px 0; font-size: 0.9rem; text-align: center; }
.footer p { margin: 0 0 6px; }
.footer a { color: #fff; }

/* ---------- Checkout pop-up ---------- */
.checkout {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  border: 0; border-radius: 22px; padding: 26px 22px 20px; background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.checkout::backdrop { background: rgba(12, 58, 47, 0.6); backdrop-filter: blur(3px); }
.checkout-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.checkout-kicker { margin: 0 0 4px; color: var(--green); font-weight: 600; font-size: 0.85rem; }
.checkout h2 { font-size: 1.5rem; margin-bottom: 16px; }
.plan-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.pick {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line);
  border-radius: 14px; cursor: pointer;
}
.pick:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pick input { accent-color: var(--green); width: 20px; height: 20px; margin: 0; }
.pick span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pick small { color: var(--muted); }
.pick b { font: 700 1.25rem Poppins, sans-serif; color: var(--green); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; padding: 13px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.field input:focus { border-color: var(--green); outline: none; }
.checkout-india {
  display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; padding: 10px 12px; margin: 4px 0 14px;
  background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 10px;
}
.checkout-india .icon { color: #a87406; margin-top: 2px; }
.checkout-error { color: #b42318; background: #fdecea; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; }
.checkout-fine { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Receipt page ---------- */
.receipt-main { padding: 32px 0 48px; }
.receipt-wrap { max-width: 520px; }
.receipt { background: var(--card); border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow); }
.receipt-loading { text-align: center; color: var(--muted); padding: 40px 0; }
.receipt-spinner {
  display: inline-block; width: 36px; height: 36px; border-radius: 50%;
  border: 4px solid var(--green-soft); border-top-color: var(--green); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.receipt-head { text-align: center; margin-bottom: 20px; }
.receipt-head h1 { font-size: 1.7rem; outline: none; }
.receipt-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin-bottom: 12px; }
.receipt-icon .icon { width: 30px; height: 30px; }
.receipt-icon.is-paid { background: var(--green-soft); color: var(--green); }
.receipt-icon.is-pending { background: var(--amber-bg); color: #a87406; }
.receipt-icon.is-other { background: #eef1f0; color: var(--muted); }
.receipt-kicker { margin: 0; color: var(--muted); font-weight: 600; }
.receipt-amount { font: 800 2.4rem/1.1 Poppins, sans-serif; color: var(--green); margin: 4px 0; }
.receipt-for { color: var(--muted); }
.receipt-todo { background: var(--green-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.receipt-todo h2 { font-size: 1.05rem; margin-bottom: 8px; }
.receipt-todo ol { margin: 0; padding-left: 20px; }
.receipt-todo li { margin-bottom: 6px; }
.receipt-hint { font-size: 0.88rem; color: var(--muted); text-align: center; margin: 10px 0 20px; }
.receipt-details { margin: 0 0 16px; border-top: 1px solid var(--line); }
.receipt-details div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-details dt { color: var(--muted); }
.receipt-details dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.receipt-email, .receipt-fine { font-size: 0.85rem; color: var(--muted); }
.receipt .btn + .btn { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt-spinner { animation-duration: 2.5s; }
}
.field-help { display: block; margin-top: 5px; font-size: 0.8rem; color: var(--muted); }
.field-help strong { color: var(--ink); font-weight: 600; }
.pill [data-countdown] { font-variant-numeric: tabular-nums; }
