/* Pothichoru pilot landing page */
:root {
  --primary: #2F5D34;        /* banana leaf */
  --primary-dark: #244A29;
  --accent: #C9A23F;         /* kasavu gold */
  --accent-soft: #F3E6C2;
  --support: #4E8A3E;        /* young leaf */
  --support-soft: #E4EDD8;
  --clay: #B5562F;           /* mann chatti */
  --ink: #3A2A1E;            /* coconut shell */
  --ink-2: #6A5A4B;
  --cream: #FBF5E8;          /* rice paper */
  --cream-2: #F3E9D2;
  --white: #FFFDF7;
  --line: #E6D9BD;
  --wa: #1F9D55;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(58, 42, 30, .05), 0 10px 28px rgba(58, 42, 30, .08);
  --display: "Fraunces", Georgia, serif;
  --ml: "Baloo Chettan 2", "Manjari", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; color: var(--primary); }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .925rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-ghost .ico { color: var(--wa); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-wa { background: var(--accent); color: var(--ink); }
.btn-wa:hover { background: #B8902F; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; color: var(--primary); --mid: var(--accent); }
.wordmark { font: 800 1.7rem/1 var(--display); letter-spacing: -.01em; padding-top: 4px; }
.w-tiffin { color: var(--primary); }
.w-wala { color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.sm-only { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-a { width: 520px; height: 520px; right: -160px; top: -140px; background: radial-gradient(circle at 40% 40%, var(--accent-soft), transparent 68%); }
.blob-b { width: 360px; height: 360px; left: -140px; bottom: -160px; background: radial-gradient(circle, var(--support-soft), transparent 68%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--support-soft); color: var(--support);
  font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h1 .hl { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink); margin: 20px 0 32px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.hero-card {
  background: var(--white); border-radius: 28px; padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  max-width: 400px; justify-self: center; width: 100%;
}
.hc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hc-icon { width: 52px; height: 52px; color: var(--primary); --mid: var(--accent); background: var(--cream-2); border-radius: 16px; padding: 8px; }
.hc-title { font: 800 1.5rem/1 var(--display); color: var(--primary); padding-top: 4px; }
.hc-sub { font-size: .875rem; color: var(--support); font-weight: 600; }
.week { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 8px 10px; align-items: center; }
.wk-h { text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.wk-d { font-size: .85rem; font-weight: 500; color: var(--ink-2); width: 40px; }
.week i { display: block; height: 26px; border-radius: 8px; background: var(--accent-soft); position: relative; }
.week i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.week i:nth-of-type(3n+2)::after { background: var(--primary); }
.week i:nth-of-type(3n)::after { background: var(--support); }
.hc-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .95rem; }
.hc-foot strong { color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--cream-2); }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.section-lead { color: var(--ink-2); font-size: 1.1rem; margin: 10px 0 40px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 14px; background: var(--primary); color: #fff;
  font: 800 1.4rem/1 var(--display); padding-top: 3px;
}
.step:nth-child(2) .step-num { background: var(--accent); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--support); }
.step:nth-child(4) .step-num { background: var(--ink); }
.step p { color: var(--ink-2); margin-top: 6px; font-size: .975rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan h3 { font: 800 1.6rem/1.1 var(--display); color: var(--primary); margin: 12px 0 8px; padding-top: 2px; }
.plan-top p { color: var(--ink-2); font-size: .975rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--support); background: var(--support-soft); padding: 4px 10px; border-radius: 999px; }
.tag-accent { color: var(--ink); background: var(--accent); }
.price { display: flex; align-items: baseline; gap: 4px; }
.amt { font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.per { color: var(--ink-2); }
.ticks { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--support-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234E8A3E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.why { padding: 4px 0; }
.why-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--support-soft); color: var(--support); margin-bottom: 16px; }
.why-ico svg { width: 26px; height: 26px; }
.why p { color: var(--ink-2); margin-top: 6px; font-size: .975rem; }

/* Pilot note */
.note {
  position: relative; max-width: 760px; margin: 0 auto;
  background: var(--white); border-radius: 28px; padding: 40px; border: 1px solid var(--line);
}
.note h2 { margin: 16px 0 16px; }
.note p { font-size: 1.075rem; margin-bottom: 12px; }
.note .sign { font-weight: 600; color: var(--support); margin: 20px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--ink);
  font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px;
}
.badge .dot { background: var(--primary); }
.badge-light { background: rgba(255, 255, 255, .15); color: #fff; }
.badge-light .dot { background: var(--accent); }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.025rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%232F5D34' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }

/* Signup */
.section-signup { background: var(--primary); color: #fff; }
.signup-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.signup-copy h2 { color: #fff; margin: 16px 0 14px; }
.signup-copy > p { font-size: 1.1rem; color: rgba(255, 255, 255, .88); max-width: 40ch; }
.alt { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.alt p { margin-bottom: 12px; color: rgba(255, 255, 255, .88); }

.form-card { background: var(--cream); color: var(--ink); border-radius: 28px; padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .925rem; margin-bottom: 6px; padding: 0; }
input[type="text"], input[type="tel"], select {
  width: 100%; height: 52px; padding: 0 16px;
  font: 400 1rem var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  -webkit-appearance: none; appearance: none;
}
select {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%233A2A1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/18px no-repeat;
  padding-right: 44px;
}
input::placeholder { color: #A8998C; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 93, 52, .15); }
.invalid input, .invalid select { border-color: #C0392B; }
.phone { display: flex; }
.cc { display: grid; place-items: center; padding: 0 14px; background: var(--cream-2); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 600; color: var(--ink-2); }
.phone input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer;
}
.seg input:checked + span { border-color: var(--primary); background: #E9F1E1; color: var(--primary); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.vd { width: 16px; height: 16px; border: 2px solid; border-radius: 3px; position: relative; flex: none; }
.vd::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.veg { color: #2E8B57; }
.nonveg { color: #A0352B; }
.err { color: #B03A2E; font-size: .85rem; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.error { background: #E9F1E1; color: var(--primary-dark); padding: 12px 14px; border-radius: var(--radius-sm); }
#lead-form .small { margin-top: 12px; }

.done { text-align: center; padding: 24px 8px; }
.done:focus { outline: none; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--support); --mid: var(--accent); }
.done h3 { font: 800 1.6rem/1.2 var(--display); color: var(--primary); margin-bottom: 12px; }
.done p { color: var(--ink-2); margin-bottom: 16px; }

/* Footer */
.site-footer { padding: 48px 0 100px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.tagline { margin: 12px 0 4px; font-weight: 500; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.footer-links a:hover { border-color: var(--primary); color: var(--primary); }
.footer-links .ico { width: 20px; height: 20px; }
.copy { margin-top: 32px; }

/* Floating WhatsApp (mobile only) */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.fab svg { width: 30px; height: 30px; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .hero-inner, .signup-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { justify-self: start; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .nav, .lg-only { display: none; }
  .sm-only { display: inline; }
  .header-inner .btn-wa { margin-left: auto; }
  .wordmark { font-size: 1.5rem; }
  .logo-mark { width: 30px; height: 30px; }
  .hero { padding: 36px 0 56px; }
  .lead { font-size: 1.1rem; }
  .cta-row .btn { width: 100%; }
  .section { padding: 60px 0; }
  .section-lead { margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step p { margin-top: 2px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .why { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .why-ico { grid-row: span 2; margin: 0; }
  .note { padding: 28px 22px; }
  .form-card { padding: 24px 18px; border-radius: 24px; }
  .fab { display: grid; }
}

/* Per-meal price, Sunday row, price comparison */
.permeal { font-size: .875rem; color: var(--support); font-weight: 500; margin-top: 2px; }
.wk-off { grid-column: 2 / -1; font-size: .8rem; color: var(--ink-2); background: var(--cream-2); border-radius: 8px; padding: 4px 10px; line-height: 1.4; }
.compare { margin: 32px auto 0; max-width: 720px; background: var(--white); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.compare-title { font: 800 1.3rem/1 var(--display); color: var(--primary); margin-bottom: 12px; padding-top: 2px; }
.compare-rows { display: grid; gap: 10px; }
.compare-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .975rem; }
.compare-row strong { white-space: nowrap; font-weight: 600; }
.compare-row .strike { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(47, 93, 52, .6); }
.compare-row .good { color: var(--support); font-size: 1.1rem; }
@media (max-width: 720px) {
  .compare { padding: 18px; }
  .compare-row { flex-direction: column; gap: 2px; }
}

/* SaaS-style emphasis on the Full Day plan */
.plans { align-items: center; }
.plan-featured {
  position: relative; overflow: hidden;
  padding-top: 64px; padding-bottom: 32px;
  border: 3px solid var(--primary);
  box-shadow: 0 18px 48px rgba(47, 93, 52, .22);
  transform: scale(1.04);
  z-index: 1;
}
.ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--primary); color: #fff; text-align: center;
  font-weight: 600; font-size: .85rem; letter-spacing: .03em; padding: 9px 12px;
}
.plan-featured .amt { font-size: 2.1rem; color: var(--primary); }
.was { font-size: .85rem; color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(47, 93, 52, .55); margin-bottom: 2px; }
.save {
  display: inline-block; margin-top: 10px;
  background: var(--support); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 6px 12px; border-radius: 999px;
}
.save-sm { color: var(--support); font-weight: 600; }
.plan-one, .plan-two { opacity: .96; }

@media (max-width: 960px) {
  .plan-featured { transform: none; order: -1; }  /* phones see Full Day first */
}

/* =========================================================
   Pothichoru brand layer
   ========================================================= */
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.3rem); }
h1 .hl { color: var(--clay); font-style: italic; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }

/* Wordmark */
.logo { gap: 10px; }
.logo-mark { width: 40px; height: 40px; color: var(--primary); --fold: #4E8A3E; --string: #F3E9D2; --knot: var(--accent); }
.wordmark { display: flex; flex-direction: column; padding-top: 0; font: inherit; }
.wm-ml { font: 800 1.55rem/1 var(--ml); color: var(--primary); padding-top: 6px; }
.wm-en { font: 600 .62rem/1 var(--body); letter-spacing: .32em; color: var(--accent); margin-top: 2px; }

/* Kasavu divider: two thin gold lines like a mundu border */
.kasavu { height: 9px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); opacity: .75; margin: 0; background: linear-gradient(var(--cream), var(--cream)) padding-box; }
.kasavu { max-width: 1120px; margin: 0 auto; }

/* Hero */
.hero { padding: 48px 0 64px; background:
  radial-gradient(600px 380px at 92% 10%, var(--support-soft), transparent 70%),
  radial-gradient(420px 300px at -5% 100%, var(--accent-soft), transparent 70%); }
.eyebrow { background: var(--support-soft); color: var(--primary); }
.lead { max-width: 38ch; }
@media (min-width: 961px) { .hero-inner { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Pothichoru animation ---------- */
.pothi-stage { margin: 0; text-align: center; }
.pothi-btn { all: unset; cursor: pointer; display: block; width: 100%; max-width: 480px; margin: 0 auto; border-radius: 24px; }
.pothi-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pothi { width: 100%; height: auto; overflow: visible; }
.pothi-note { font: 600 1.35rem/1 var(--hand); color: var(--clay); margin-top: 4px; }

.pothi .parcel, .pothi .opened, .pothi .flap-top, .pothi .flap-bot, .pothi .string, .pothi .food, .pothi .steam path {
  transform-box: fill-box; transform-origin: center;
}
.pothi .flap-top { transform-origin: center top; }
.pothi .flap-bot { transform-origin: center bottom; }

/* Resting (final) state */
.pothi .parcel { opacity: 0; }
.pothi .steam path { opacity: 0; animation: steam 2.6s ease-in-out infinite; }
.pothi .steam .s2 { animation-delay: .8s; }
.pothi .steam .s3 { animation-delay: 1.6s; }

/* Play sequence */
.pothi.play .parcel   { animation: parcel 2.5s ease both; }
.pothi.play .string   { animation: untie .6s ease 1.15s both; }
.pothi.play .flap-top { animation: flap .6s ease-in 1.6s both; }
.pothi.play .flap-bot { animation: flap .6s ease-in 1.6s both; }
.pothi.play .opened   { animation: open .7s cubic-bezier(.2, .9, .3, 1.2) 2s both; }
.pothi.play .food     { animation: pop .45s cubic-bezier(.2, .9, .3, 1.4) both; }
.pothi.play .f1 { animation-delay: 2.45s; }
.pothi.play .f2 { animation-delay: 2.65s; }
.pothi.play .f3 { animation-delay: 2.8s; }
.pothi.play .f4 { animation-delay: 2.95s; }
.pothi.play .f5 { animation-delay: 3.1s; }
.pothi.play .f6 { animation-delay: 3.25s; }
.pothi.play .steam { animation: fadein .6s ease 3.5s both; }

@keyframes parcel {
  0%   { opacity: 0; transform: translateY(-50px) rotate(-4deg); }
  25%  { opacity: 1; transform: translateY(6px) rotate(1deg); }
  35%  { transform: translateY(0) rotate(0); }
  78%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes untie { to { opacity: 0; transform: scale(1.2); } }
@keyframes flap  { to { opacity: 0; transform: scaleY(0); } }
@keyframes open  { from { opacity: 0; transform: scale(.45) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes pop   { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(8px); }
  35%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(-22px); }
}
@media (prefers-reduced-motion: reduce) {
  .pothi.play *, .pothi.play .parcel, .pothi.play .opened { animation: none !important; }
  .pothi .steam path { animation: none; opacity: .5; }
  .pothi-note { display: none; }
}

/* ---------- Kazhicho ---------- */
.kz-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.kz-ml { font: 800 clamp(3rem, 8vw, 4.6rem)/1 var(--ml); color: var(--clay); padding-top: 10px; }
.kz-tr { font: 600 1.6rem/1.2 var(--hand); color: var(--ink); margin: 4px 0 18px; }
.kz-tr .muted { font-size: 1.2rem; }
.kz-copy h2 { margin-bottom: 14px; }
.kz-copy p + p { margin-top: 12px; }
.kz-copy > p:not(.kz-ml):not(.kz-tr) { font-size: 1.075rem; max-width: 46ch; }

.chat { background: #EFE7D8; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 400px; justify-self: center; width: 100%; }
.chat-head { display: flex; align-items: center; gap: 12px; background: var(--primary); color: #fff; padding: 12px 16px; }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 600; }
.chat-name { font-weight: 600; }
.chat-status { font-size: .75rem; opacity: .8; }
.chat-body { padding: 18px 14px; display: grid; gap: 8px; background:
  radial-gradient(circle at 20% 30%, rgba(201, 162, 63, .08) 0 2px, transparent 3px) 0 0/22px 22px, #EFE7D8; }
.bubble { position: relative; max-width: 82%; padding: 8px 12px 18px; border-radius: 12px; font-size: .95rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bubble.them { background: #fff; justify-self: start; border-top-left-radius: 4px; }
.bubble.me { background: #DCEFC9; justify-self: end; border-top-right-radius: 4px; }
.time { position: absolute; right: 10px; bottom: 4px; font-size: .68rem; color: var(--ink-2); }
.chat-foot { font-size: .8rem; color: var(--ink-2); padding: 10px 16px 14px; background: #EFE7D8; }

/* ---------- Amma's rules ---------- */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.rule { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.rule::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.said { font: 600 1.65rem/1.15 var(--hand); color: var(--clay); margin-bottom: 12px; }
.rule p:not(.said) { color: var(--ink-2); font-size: .975rem; }

/* Steps: leaf-coloured numbers */
.step-num { font-family: var(--display); }
.step:nth-child(2) .step-num { background: var(--accent); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--clay); }
.step:nth-child(4) .step-num { background: var(--support); }

/* Plans */
.plan h3 { font-family: var(--display); font-weight: 700; }
.ribbon { background: var(--primary); }
.tag-accent { background: var(--accent); color: var(--ink); }
.plan-featured .amt { color: var(--primary); }
.save { background: var(--clay); }
.save-sm { color: var(--clay); }
.compare { border-color: var(--accent); }
.compare-title { font-family: var(--display); font-weight: 700; color: var(--primary); }

/* Note */
.note { background: var(--white); }
.note h2 { color: var(--primary); }
.note .sign { font: 600 1.6rem/1 var(--hand); color: var(--clay); }
.badge { background: var(--accent-soft); }
.badge .dot { background: var(--clay); }

/* Signup: banana-leaf green */
.section-signup { background: var(--primary); }
.badge-light { background: rgba(255, 255, 255, .14); color: #fff; }
.badge-light .dot { background: var(--accent); }
.done-icon { color: var(--primary); --fold: #4E8A3E; --string: #F3E9D2; --knot: var(--accent); }
.done h3 { font-family: var(--display); color: var(--primary); }

.site-footer { padding-top: 0; border-top: 0; }
.site-footer .kasavu { margin-bottom: 40px; }

@media (max-width: 960px) {
  .kz-inner { grid-template-columns: 1fr; gap: 36px; }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .pothi-btn { max-width: 420px; }
}
@media (max-width: 720px) {
  .wm-ml { font-size: 1.35rem; }
  .logo-mark { width: 34px; height: 34px; }
  .hero { padding: 28px 0 48px; }
  .rules { grid-template-columns: 1fr; gap: 14px; }
  .said { font-size: 1.5rem; }
}
@media (max-width: 960px) {
  .pothi-stage { order: -1; }
  .pothi-btn { max-width: 340px; }
  .hero-inner { gap: 8px; }
}

/* Staircase plans: each card grows by the same step, bottoms aligned */
@media (min-width: 961px) {
  .plans { align-items: end; }
  .plan { justify-content: flex-start; }
  .plan:nth-child(1) { min-height: 520px; }
  .plan:nth-child(2) { min-height: 590px; }
  .plan-featured { min-height: 660px; transform: none; }
  .plan .btn { margin-top: auto; }
  .plan .ticks { margin-bottom: 8px; }
}

/* =========================================================
   Mobile-first pass (most visitors come from WhatsApp on phones)
   ========================================================= */
.fab { display: none; }
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  h2 { font-size: 1.8rem; }
  .section-lead { font-size: 1rem; margin: 8px 0 22px; }

  /* Header */
  .wm-ml { font-size: 1.3rem; }
  .wm-en { font-size: .56rem; }
  .header-inner .btn-wa { min-height: 40px; padding: 0 14px; }

  /* Hero: headline and main button inside the first screen */
  .hero { padding: 4px 0 28px; }
  .pothi-btn { max-width: 250px; }
  .pothi-note { display: none; }
  h1 { font-size: 2.15rem; line-height: 1.08; }
  .lead { font-size: 1rem; line-height: 1.55; margin: 12px 0 18px; }
  .cta-row { gap: 10px; margin-bottom: 12px; }
  .cta-row .btn-lg { min-height: 52px; font-size: 1rem; }

  /* Kazhicho */
  .kz-ml { font-size: 2.8rem; }
  .kz-tr { font-size: 1.35rem; margin-bottom: 12px; }
  .kz-copy > p:not(.kz-ml):not(.kz-tr) { font-size: 1rem; }
  .chat { max-width: none; border-radius: 20px; }
  .bubble { font-size: .9rem; }

  /* Steps */
  .step { padding: 16px; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .925rem; }

  /* Plans: Full Day in full, the other two as compact rows */
  .plans { gap: 12px; }
  .plan-featured { padding: 56px 20px 22px; gap: 16px; }
  .plan-featured .amt { font-size: 1.9rem; }
  .plan:not(.plan-featured) {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: 4px 12px; padding: 16px 18px;
  }
  .plan:not(.plan-featured) .plan-top p,
  .plan:not(.plan-featured) .ticks,
  .plan:not(.plan-featured) .tag,
  .plan:not(.plan-featured) .was { display: none; }
  .plan:not(.plan-featured) h3 { margin: 0; font-size: 1.25rem; }
  .plan:not(.plan-featured) .price { justify-content: flex-end; }
  .plan:not(.plan-featured) .amt { font-size: 1.35rem; }
  .plan:not(.plan-featured) .permeal { text-align: right; font-size: .78rem; }
  .plan:not(.plan-featured) .btn { grid-column: 1 / -1; min-height: 44px; margin-top: 8px; }
  .compare { margin-top: 20px; }

  /* Rules, note, FAQ */
  .rules { margin-top: 22px; }
  .rule { padding: 18px; }
  .said { font-size: 1.45rem; margin-bottom: 8px; }
  .note { padding: 24px 18px; border-radius: 22px; }
  .note p { font-size: 1rem; }
  .faq summary { padding: 16px 52px 16px 16px; font-size: 1rem; }
  .faq details p { padding: 0 16px 16px; }

  /* Signup */
  .signup-inner { gap: 24px; }
  .signup-copy > p { font-size: 1rem; }
  .alt { margin-top: 20px; padding-top: 18px; }
  .form-card { padding: 20px 16px; }

  /* Sticky action bar */
  .fab {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto; height: auto; border-radius: 999px; padding: 6px;
    background: var(--white); box-shadow: 0 8px 28px rgba(58, 42, 30, .22); border: 1px solid var(--line);
  }
  .mbar-main { flex: 1; min-height: 48px; }
  .mbar-wa { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wa); color: #fff; flex: none; }
  .mbar-wa svg { width: 26px; height: 26px; }
  .site-footer { padding-bottom: 110px; }
}
@media (max-width: 360px) {
  h1 { font-size: 1.95rem; }
  .pothi-btn { max-width: 220px; }
}

/* =========================================================
   Refer & earn
   ========================================================= */
.ref-banner { display: inline-block; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 14px; font-size: .95rem; margin-bottom: 16px; }
.ref-banner[hidden], .ref-note[hidden] { display: none; }
.ref-note { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: .925rem; margin-bottom: 16px; }
.done .ref-note { margin: 0 auto 16px; max-width: 34ch; }
.done-refer { display: block; margin-top: 18px; font-weight: 600; color: var(--primary); }

.refer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.refer-copy h2 { margin: 14px 0 12px; }
.refer-copy > p { font-size: 1.05rem; max-width: 44ch; }
.reward-table { margin: 22px 0 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.rt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.rt-row span:not(:first-child) { text-align: right; font-weight: 600; color: var(--primary); }
.rt-head { border-top: 0; background: var(--cream-2); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.rt-head span:not(:first-child) { color: var(--ink-2); }
.rt-best { background: #EEF4E6; }
.rt-best span:first-child { font-weight: 600; }

.refer-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.refer-card h3 { font-family: var(--display); font-size: 1.5rem; color: var(--primary); margin-bottom: 8px; }
.refer-card > div > p { color: var(--ink-2); margin-bottom: 18px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #DADCE0; gap: 12px; }
.btn-google:hover { background: #F8F9FA; border-color: #C6C9CE; }
.btn-google svg { width: 22px; height: 22px; }
.btn-google[disabled] { opacity: .7; cursor: progress; }

.me { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.me img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.me-name { font-weight: 600; }
.linkbtn { all: unset; cursor: pointer; font-size: .85rem; color: var(--ink-2); text-decoration: underline; }
.linkbtn:focus-visible { outline: 2px solid var(--accent); }

.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.ref-stats div { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.ref-stats strong { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--primary); }
.ref-stats span { font-size: .78rem; color: var(--ink-2); }

.lbl { display: block; font-weight: 600; font-size: .9rem; margin: 6px 0 6px; }
.linkbox { display: flex; gap: 8px; margin-bottom: 12px; }
.linkbox input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; font: 400 .95rem var(--body); color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.linkbox input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 93, 52, .15); }
.linkbox .btn { min-height: 46px; flex: none; }
.btn-wa-share { background: var(--wa); color: #fff; margin-bottom: 20px; }
.btn-wa-share:hover { background: #188647; }
#upi-msg { font-size: .85rem; margin: -4px 0 8px; }
#upi-msg.ok { color: var(--support); }
#upi-msg.err { color: #B03A2E; }

.ref-h { font-size: 1rem; margin: 18px 0 10px; }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ref-list .empty { color: var(--ink-2); font-size: .925rem; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.ref-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--cream); }
.ref-top { display: flex; justify-content: space-between; align-items: baseline; }
.ref-amt { font-weight: 600; color: var(--primary); }
.ref-row p { font-size: .82rem; color: var(--ink-2); margin-top: 2px; }
.ref-row.status-paid { background: #EEF4E6; border-color: #CFE0BF; }

@media (max-width: 960px) {
  .refer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .refer-card { padding: 20px 16px; border-radius: 20px; }
  .rt-row { padding: 10px 12px; font-size: .875rem; grid-template-columns: 1.3fr 1fr 1fr; }
  .ref-banner { font-size: .875rem; padding: 8px 12px; margin-bottom: 12px; }
}

/* =========================================================
   Referral: hero chip + homepage teaser
   ========================================================= */
.ref-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink);
  font-size: .9rem; font-weight: 500;
}
.ref-chip strong { color: var(--clay); }
.ref-chip:hover { background: #EEDDB0; }

.section-refer { padding: 8px 0 56px; }
.ref-teaser {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 24px 28px; border-radius: 24px; text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, #F6ECD3, #EAF1E1); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rt-emoji { font-size: 2.4rem; line-height: 1; }
.rt-body { display: grid; gap: 4px; }
.rt-h { font: 700 1.4rem/1.2 var(--display); color: var(--primary); }
.rt-p { color: var(--ink-2); }
.rt-p strong { color: var(--clay); }
.rt-btn { white-space: nowrap; }

/* =========================================================
   /refer page
   ========================================================= */
.page-refer .site-footer { padding-bottom: 48px; }
.rf-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50vh; color: var(--ink-2); }
.rf-loading[hidden] { display: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.rf-hero { padding: 56px 0 64px; background:
  radial-gradient(600px 380px at 92% 10%, var(--support-soft), transparent 70%),
  radial-gradient(420px 300px at -5% 100%, var(--accent-soft), transparent 70%); }
.rf-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.rf-copy .lead { max-width: 44ch; }

.rf-money {
  display: flex; align-items: center; gap: 18px; margin-top: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px;
  box-shadow: var(--shadow); max-width: 480px;
}
.rf-amt { font: 700 3.2rem/1 var(--display); color: var(--clay); letter-spacing: -.02em; }
.rf-money-h { font-weight: 600; color: var(--primary); }
.rf-money-txt p:not(.rf-money-h) { color: var(--ink-2); font-size: .95rem; }

.rf-signin {
  background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px;
  box-shadow: 0 18px 48px rgba(47, 93, 52, .14); text-align: center;
}
.rf-signin-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--primary); --fold: #4E8A3E; --string: #F3E9D2; --knot: var(--accent); }
.rf-signin h2 { font-size: 1.8rem; margin-bottom: 6px; }
.rf-signin > p { color: var(--ink-2); margin-bottom: 18px; }
.rf-signin .err:empty { display: none; }
.rf-signin .err { margin-top: 10px; }
.rf-assure { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; text-align: left; font-size: .875rem; color: var(--ink-2); }
.rf-assure li { position: relative; padding-left: 24px; }
.rf-assure li::before { content: "✓"; position: absolute; left: 4px; color: var(--support); font-weight: 700; }

.rf-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rf-steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.rf-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: #fff; font: 700 1.3rem/1 var(--display); margin-bottom: 14px; }
.rf-steps li:nth-child(2) .rf-num { background: var(--accent); color: var(--ink); }
.rf-steps li:nth-child(3) .rf-num { background: var(--clay); }
.rf-steps p { color: var(--ink-2); margin-top: 6px; font-size: .975rem; }

.rf-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.who-emoji { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.who p { font-size: 1rem; }
.rf-close { margin-top: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; }
.rf-close-note { font: 600 1.6rem/1.25 var(--hand); color: var(--clay); }
.rf-close-btn { min-width: 300px; }

/* Dashboard */
.rf-dash { padding-top: 40px; }
.rf-dash .me { margin-bottom: 24px; }
.rf-dash .me img { width: 52px; height: 52px; }
.me-hi { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.dash-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 16px; }
.dash-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.dash-h { font: 700 1.25rem/1.2 var(--display); color: var(--primary); margin-bottom: 14px; }
.dash-link { border: 2px solid var(--primary); box-shadow: 0 12px 32px rgba(47, 93, 52, .12); }
.dash-link .btn-wa-share { margin-bottom: 10px; }
.dash-card .reward-table { margin: 0 0 12px; }
.rf-dash .ref-stats { margin-bottom: 0; }
.rf-dash .ref-stats div { background: var(--white); }

@media (max-width: 960px) {
  .rf-hero-inner, .dash-grid { grid-template-columns: 1fr; gap: 28px; }
  .rf-signin { max-width: 480px; }
  .rf-who { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ref-chip { font-size: .85rem; margin-top: 10px; }
  .ref-teaser { grid-template-columns: 1fr; gap: 12px; padding: 20px; text-align: left; }
  .rt-emoji { font-size: 2rem; }
  .rt-h { font-size: 1.25rem; }
  .rt-btn { width: 100%; }
  .section-refer { padding: 0 0 40px; }

  .rf-hero { padding: 24px 0 40px; }
  .rf-hero-inner { gap: 20px; }
  .rf-money { padding: 14px 16px; gap: 14px; }
  .rf-amt { font-size: 2.5rem; }
  .rf-signin { padding: 24px 18px; border-radius: 22px; }
  .rf-signin h2 { font-size: 1.5rem; }
  .rf-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .rf-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .rf-num { grid-row: span 2; margin: 0; }
  .rf-who { grid-template-columns: 1fr; gap: 10px; }
  .who { display: flex; gap: 14px; align-items: center; padding: 16px; }
  .who-emoji { margin: 0; }
  .rf-close { grid-template-columns: 1fr; padding: 20px 18px; gap: 16px; }
  .rf-close-btn { min-width: 0; }
  .rf-close-note { font-size: 1.4rem; }
  .rf-dash { padding-top: 24px; }
  .dash-card { padding: 18px 16px; }
}
img[hidden], svg[hidden] { display: none !important; }
@media (max-width: 720px) { .rf-signin-icon { display: none; } .rf-signin { padding-top: 22px; } }

/* =========================================================
   Sign-in box + join flow
   ========================================================= */
.auth-box { display: grid; gap: 12px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .82rem; margin: 4px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-email, .auth-phone { display: grid; gap: 10px; }
.auth-email input, .auth-phone input[name=otp] {
  width: 100%; height: 50px; padding: 0 14px; font: 400 1rem var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.auth-email input:focus, .auth-phone input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 93, 52, .15); }
.auth-phone .phone input { height: 50px; }
.auth-switch { font-size: .875rem; color: var(--ink-2); text-align: center; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; }
.auth-switch .linkbtn { color: var(--primary); font-weight: 600; }
.auth-msg { font-size: .875rem; }
.auth-msg:empty { display: none; }
.auth-msg.err { color: #B03A2E; }
.auth-msg.ok { color: var(--support); }

.step-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.card-h { font: 700 1.5rem/1.2 var(--display); color: var(--primary); }
.card-sub { color: var(--ink-2); font-size: .925rem; margin: 6px 0 18px; }
.card-sub .linkbtn { color: var(--primary); }
.hint { font-size: .8rem; color: var(--ink-2); margin-top: 6px; }

.join-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.join-steps li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .92); }
.join-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: .875rem; flex: none; }
.enquiry { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .925rem; color: rgba(255, 255, 255, .8); }
.enquiry a { color: #fff; font-weight: 600; }

.done-summary { list-style: none; margin: 4px 0 16px; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.done-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .925rem; }
.done-summary li:first-child { border-top: 0; }
.done-summary span { color: var(--ink-2); }
.done-summary strong { text-align: right; }
.done #edit-details { margin-bottom: 4px; }
.done .done-refer { margin: 14px 0 6px; }
.header-inner [data-account] { min-width: 96px; }

@media (max-width: 720px) {
  .card-h { font-size: 1.3rem; }
  .join-steps { margin-top: 16px; }
  .enquiry { margin-top: 16px; }
}

[hidden] { display: none !important; }

/* Limited spots notice + compact FAQ */
.spots {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  background: #F7E3D8; color: var(--clay); border: 1px solid #EBC3AE;
}
.spots-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 rgba(181, 86, 47, .5); animation: spotPulse 1.8s ease-out infinite; }
@keyframes spotPulse { 0% { box-shadow: 0 0 0 0 rgba(181, 86, 47, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(181, 86, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .spots-dot { animation: none; } }
.hero .cta-row .btn-primary { min-width: 220px; }
.faq-more { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: .95rem; }
.faq-more a { color: var(--primary); font-weight: 600; }
@media (max-width: 720px) {
  .spots { font-size: .8rem; margin-bottom: 12px; }
  .hero .cta-row .btn-primary { width: 100%; }
}

/* Halal badge */
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero-badges .spots { margin-bottom: 0; }
.halal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--support-soft); color: var(--primary); border: 1px solid #C5D7B4;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.halal-ar {
  display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: #FBF5E8;
  font-family: "Noto Naskh Arabic", "Geeza Pro", "Noto Sans Arabic", serif; font-weight: 700; font-size: .95rem; line-height: 1;
}
.footer-halal { margin: 10px 0 6px; }
.seg-note { font-size: .72rem; font-weight: 600; color: var(--support); background: var(--support-soft); border-radius: 999px; padding: 1px 7px; margin-left: 2px; }
@media (max-width: 720px) {
  .hero-badges { margin-bottom: 12px; gap: 6px; }
  .halal { font-size: .78rem; }
  .halal-ar { height: 23px; font-size: .85rem; }
}
