/* ==========================================================================
   Village Info — landing page styles
   Mobile-first. Light, warm neutral base; one green brand colour;
   marigold used sparingly for the offer.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --tint: #eef5ef;          /* soft green section tint */
  --tint-warm: #fbf4e6;     /* soft marigold tint */
  --ink: #17211c;
  --ink-2: #3b4640;
  --muted: #5f6a64;
  --line: #e6e1d7;
  --brand: #13703f;
  --brand-strong: #0d5a31;
  --brand-soft: #e2f0e6;
  --marigold: #e9a23b;
  --marigold-ink: #8a4f00;
  --phone: #121614;

  --font: "Inter", "Noto Sans Malayalam", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ml: "Noto Sans Malayalam", "Inter", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(23 33 28 / 0.05), 0 8px 24px rgb(23 33 28 / 0.06);
  --shadow-lg: 0 30px 60px -20px rgb(23 33 28 / 0.28);

  --container: 1120px;
  --gutter: 16px;
  --section-y: clamp(72px, 11vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.ml { font-family: var(--font-ml); letter-spacing: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(780px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-lead { margin-top: 16px; font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); }
.center .section-lead { margin-inline: auto; max-width: 36rem; }
.chapter { margin-bottom: 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.fine { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 14px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgb(19 112 63 / 0.55); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-lg { min-height: 58px; padding: 15px 26px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 0.9375rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }
@media (max-width: 519px) { .btn-row > .btn { flex: 1 1 100%; } }

/* ---------- 4. Scroll progress + top bar ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

.topbar { position: relative; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); }
@media (min-width: 900px) {
  .topbar { position: sticky; top: 0; backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
  .topbar.is-scrolled { border-bottom-color: var(--line); }
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); }
.wordmark-mark::after { content: ""; position: absolute; inset: 8px 8px 7px; border: 2.5px solid #fff; border-top-color: transparent; border-radius: 3px 3px 5px 5px; }
.wordmark-mark::before { content: ""; position: absolute; left: 50%; top: 5px; width: 12px; height: 12px; border: 2.5px solid #fff; border-right: 0; border-bottom: 0; transform: translateX(-50%) rotate(45deg); }
@media (max-width: 379px) { .topbar .btn-sm span { display: none; } }
.brand { display: grid; justify-items: start; }
.wordmark { min-height: 36px; }
/* Sits under "Village Info", lined up with the text rather than the icon */
.byline {
  display: inline-flex; align-items: center; min-height: 24px; margin: -8px 0 -4px 40px;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none;
}
.byline:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 5. Phone frame ---------- */
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  background: var(--phone);
  border-radius: 44px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 0.08);
}
.phone > img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: #fff; }

/* ---------- 6. Reveal animations (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="pop"] { transform: translateY(14px) scale(0.96); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(20px, 5vw, 64px) clamp(72px, 9vw, 112px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; min-height: calc(100vh - 68px - 190px); } }
.hero-kicker {
  display: inline-block; margin-bottom: 18px; padding: 7px 16px;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.075rem); font-weight: 600; line-height: 1.5;
  color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px;
}
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 4.6rem); letter-spacing: -0.035em; }
.hero-lead { margin-top: 20px; max-width: 33rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-2); }
.hero .btn-row { margin-top: 32px; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }

.icon-stack { display: inline-flex; flex: none; }
.icon-stack img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--bg); background: #fff; object-fit: cover; }
.icon-stack img + img { margin-left: -8px; }

.hero-visual { position: relative; display: flex; justify-content: center; padding-block: 8px 12px; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 6% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); z-index: -1; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px;
  font-size: 0.9375rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-chip img { width: 34px; height: 34px; }
.float-chip-a { top: 18%; left: max(0px, calc(50% - 230px)); }
.float-chip-b { bottom: 20%; right: max(0px, calc(50% - 230px)); animation-delay: -3s; }
@media (max-width: 419px) { .float-chip-a { left: 0; } .float-chip-b { right: 0; } }

/* Entrance: plays once on load (pure CSS, so it works without JS) */
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.phone-hero { animation: rise-phone 1s var(--ease) 0.15s both; }
.float-chip-a { animation: rise 0.8s var(--ease) 0.6s both, float 6s ease-in-out 1.4s infinite; }
.float-chip-b { animation: rise 0.8s var(--ease) 0.75s both, float 6s ease-in-out 1.6s infinite reverse; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.8125rem; font-weight: 600; color: var(--muted); text-decoration: none;
}
.scroll-cue .icon { animation: nudge 2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--brand); }
@media (min-width: 900px) { .scroll-cue { display: flex; } }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- 8. Questions (group chat) ---------- */
.questions { background: var(--surface); border-block: 1px solid var(--line); }
.questions-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .questions-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.chat { max-width: 460px; width: 100%; justify-self: center; overflow: hidden; background: #f3efe7; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--brand); color: #fff; }
.chat-head strong { display: block; font-size: 1rem; line-height: 1.2; }
.chat-head span { font-size: 0.8125rem; opacity: 0.85; }
.chat-avatar { flex: none; border-radius: 50%; background: rgb(255 255 255 / 0.22); }
.chat-body { list-style: none; margin: 0; display: grid; gap: 10px; padding: 20px 16px 24px; }
.bubble {
  position: relative; justify-self: start; max-width: 86%; padding: 10px 14px;
  font-size: 1rem; line-height: 1.45; background: var(--surface);
  border-radius: 4px 16px 16px 16px; box-shadow: 0 1px 1px rgb(23 33 28 / 0.08);
}
.bubble-alt { justify-self: end; background: #dcf1e1; border-radius: 16px 4px 16px 16px; }

/* ---------- 9. Solution (scattered → together) ---------- */
.solution { overflow: clip; }
.converge { margin-top: clamp(40px, 6vw, 64px); }
.converge-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 620px; margin-inline: auto; }
.converge-chips li {
  padding: 10px 18px; font-weight: 600; font-size: 0.975rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  transition: transform 1s var(--ease), opacity 1s var(--ease), background-color 0.6s, border-color 0.6s, color 0.6s;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .converge:not(.is-visible) .converge-chips li { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0.55; }
.converge.is-visible .converge-chips li { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.converge-result {
  display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 36px; text-align: center;
  transition: opacity 0.8s var(--ease) 0.7s, transform 0.8s var(--ease) 0.7s;
}
.js .converge:not(.is-visible) .converge-result { opacity: 0; transform: translateY(16px); }
.converge-result .icon-stack img { width: 52px; height: 52px; border-radius: 14px; }
.converge-result p { max-width: 30rem; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); line-height: 1.45; color: var(--ink-2); }
.converge-result strong { color: var(--ink); }
@media (max-width: 599px) {
  .converge-chips li { font-size: 0.9375rem; padding: 9px 14px; }
  .js .converge:not(.is-visible) .converge-chips li { transform: translate(calc(var(--x) * 0.5), calc(var(--y) * 0.6)) rotate(var(--r)); }
}

/* ---------- 10. App story: full screens only, no zooming ---------- */
.app-story { background: var(--tint); }
.story-grid { display: grid; gap: 32px; justify-items: center; }
.story-phone { display: flex; justify-content: center; }
.phone-story { width: min(260px, 64vw); }
.phone-screen { position: absolute; inset: 10px; overflow: hidden; border-radius: 34px; background: #fff; }
.phone-story .layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; border-radius: 0; background: #fff;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.phone-story .layer.is-active { opacity: 1; }

.story-steps { display: grid; gap: 12px; width: 100%; max-width: 520px; counter-reset: none; }
.story-step { padding: 20px 20px 22px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.step-num { display: inline-block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; color: var(--brand); }
.story-step h3 { margin-top: 6px; font-size: 1.2rem; }
.story-step p { margin-top: 6px; color: var(--ink-2); }
/* A step's own full screenshot (mobile), once category screenshots are added */
.step-shot { width: min(200px, 56vw); margin: 0 auto 18px; padding: 7px; background: var(--phone); border-radius: 32px; box-shadow: var(--shadow-lg); }
.step-shot img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 26px; background: #fff; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; justify-items: stretch; }
  .story-phone { position: sticky; top: calc(50vh - min(300px, 36vh) - 10px); }
  .phone-story { width: min(300px, calc(72vh * 9 / 19.5)); }
  .story-steps { gap: 0; max-width: none; }
  .story-step { display: flex; flex-direction: column; justify-content: center; min-height: 64vh; padding: 0; background: none; box-shadow: none; opacity: 0.35; transition: opacity 0.4s; }
  .story-step.is-active { opacity: 1; }
  .step-shot { display: none; } /* the sticky phone shows it on desktop */
  .story-step h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
  .story-step p { margin-top: 12px; font-size: 1.15rem; max-width: 26rem; }
  html:not(.js) .story-step { opacity: 1; min-height: 0; padding-block: 40px; }
}

/* ---------- 11. What's inside ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .inside-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.inside-item {
  display: flex; flex-direction: column; align-items: flex-start; padding: 20px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.inside-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.inside-item img { width: 56px; height: 56px; object-fit: contain; }
.inside-item h3 { margin-top: 14px; font-size: 1.075rem; }
.inside-item p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.inside-item-ads { background: var(--tint-warm); border-color: transparent; }
.inside-item-ads .inside-ad { width: 100%; max-width: 132px; height: auto; aspect-ratio: 640 / 350; border-radius: 8px; object-fit: cover; }
.inside-more { margin-top: 20px; color: var(--muted); }
@media (max-width: 379px) { .inside-item { padding: 16px 14px; } }

/* ---------- 12. Real-life videos (reels) ---------- */
.video { background: var(--surface); border-block: 1px solid var(--line); }
/* Mobile: swipeable row with the next card peeking in; desktop: three columns */
ul.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 16px;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; }
@media (min-width: 900px) {
  ul.reels { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: min(900px, calc((100vh - 220px) * 9 / 16 * 3 + 56px)); margin-inline: auto; padding: 0; overflow: visible; }
}
.reel-media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16;
  background: #0d100e; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.reel-media img, .reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel-media img { transition: transform 0.6s var(--ease); }
.reel-media:hover img { transform: scale(1.03); }
.reel-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.35)); pointer-events: none; }
.reel-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; color: var(--ink);
  background: rgb(255 255 255 / 0.92); border-radius: 50%; box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  transition: transform 0.25s var(--ease);
}
.reel-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.reel-media:hover .reel-play { transform: scale(1.08); }
.reel-media.is-playing::after, .reel-media.is-playing .reel-play { display: none; }
.reel-ml { margin-top: 16px; font-weight: 700; font-size: 1.05rem; color: var(--brand-strong); }
.reel h3 { margin-top: 2px; font-size: 1.15rem; }
.reels-follow { margin-top: 32px; text-align: center; }
.reel-ig { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.reel-ig:hover { text-decoration: underline; }
.reel-ig .icon { width: 1.05em; height: 1.05em; }
.reel > p:last-of-type { margin-top: 6px; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- 13. Already running ---------- */
.running-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .running-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .running-grid { grid-template-columns: repeat(4, 1fr); } }
.community {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.community-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px -10px rgb(23 33 28 / 0.35); }
.community h3 { margin-top: 20px; font-size: 1.5rem; }
.community-ml { margin-top: 2px; font-weight: 600; color: var(--brand-strong); }
.community-place { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.community-place::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgb(31 157 85 / 0.18); vertical-align: 1px; }
.community-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 18px; font-size: 0.9375rem; font-weight: 600; }
.community-links a { display: inline-block; padding: 6px 0; }

/* ---------- 14. Your own app ---------- */
.own-app { background: var(--tint); }
.own-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .own-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.own-visual { --tile: clamp(88px, 25vw, 124px); display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: calc(var(--tile) * 3 + 32px); margin-inline: auto; }
.own-visual img, .own-next { width: var(--tile); height: var(--tile); border-radius: 28%; }
.own-visual img { box-shadow: 0 16px 30px -14px rgb(23 33 28 / 0.4); }
.own-next {
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.15rem); line-height: 1.15; color: var(--brand);
  border: 2.5px dashed color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.own-next.is-visible, html:not(.js) .own-next { animation: breathe 3s ease-in-out 1s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list .icon { margin-top: 2px; color: var(--brand); }

/* ---------- 15. Sponsorship ---------- */
.flow { display: grid; gap: 10px; margin: 40px auto 0; max-width: 720px; counter-reset: flow; }
.flow li { position: relative; padding: 18px 20px; font-weight: 700; font-size: 1.075rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow li:last-child { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 767px) {
  .flow li + li::before { content: ""; position: absolute; left: 50%; top: -11px; width: 2px; height: 12px; background: var(--line); }
}
@media (min-width: 768px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .flow li { display: grid; place-items: center; min-height: 92px; }
  .flow li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
}
.free-callout {
  display: inline-block; margin-top: 28px; padding: 14px 22px;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); font-weight: 800; letter-spacing: -0.01em;
  color: var(--brand-strong); background: var(--brand-soft); border-radius: var(--radius);
}
.sponsor-sub { margin-top: 48px; font-size: 1.05rem; color: var(--ink-2); }
.sponsor-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.sponsor-list li { padding: 10px 18px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }

/* ---------- 16. Local advertisements ---------- */
.ads { background: var(--tint-warm); }
.ads-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ads-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.carousel { padding: 12px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-slide img { width: 100%; aspect-ratio: 640 / 350; object-fit: cover; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.carousel-dots { display: flex; gap: 2px; }
.carousel-dots button { width: 32px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background-color 0.2s, width 0.2s; }
.carousel-dots button[aria-current="true"]::before { width: 22px; border-radius: 99px; background: var(--brand); }
.carousel-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.carousel-toggle .icon { width: 14px; height: 14px; }
.carousel-toggle .icon-play, .carousel-toggle[aria-pressed="true"] .icon-pause { display: none; }
.carousel-toggle[aria-pressed="true"] .icon-play { display: block; }
.ads-caption { margin-top: 14px; text-align: center; font-size: 0.875rem; color: var(--muted); }
.ads-intro { margin-top: 22px; font-weight: 600; }
.ads .check-list { margin-top: 12px; }
.ads .check-list li { font-weight: 500; }

/* ---------- 17. Offer + custom ---------- */
.offer { background: var(--surface); }
.offer-card {
  position: relative; padding: clamp(28px, 6vw, 56px) clamp(22px, 6vw, 56px);
  text-align: center; background: var(--bg); border: 2px solid var(--brand); border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgb(19 112 63 / 0.35);
}
.offer-badge {
  display: inline-block; padding: 8px 16px; line-height: 1.4;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--marigold-ink); background: color-mix(in srgb, var(--marigold) 22%, var(--surface)); border-radius: 999px;
}
.offer-price { margin-top: 18px; font-size: clamp(3.6rem, 2.4rem + 7vw, 6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.offer-term { margin-top: 10px; font-size: 1.1rem; font-weight: 700; color: var(--ink-2); }
.offer-slots { display: inline-block; margin-top: 16px; padding: 6px 14px; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; }
.offer-list { display: grid; gap: 12px; margin: 30px auto 32px; max-width: 30rem; text-align: left; }
.offer-list li { display: flex; gap: 12px; align-items: flex-start; }
.offer-list .icon { margin-top: 2px; color: var(--brand); }
.offer-note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

.custom {
  display: grid; gap: 18px; align-items: center; margin-top: 20px; padding: 24px;
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.custom h3 { font-size: 1.25rem; }
.custom p { margin-top: 6px; color: var(--ink-2); }
.custom .btn { justify-self: start; }
@media (min-width: 700px) { .custom { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* Add-on picker (inside the offer card) */
.addons { margin: 0 auto 8px; padding: 0; max-width: 34rem; border: 0; text-align: left; }
.addons legend { margin-bottom: 12px; padding: 0; font-weight: 800; font-size: 1.05rem; }
.addons legend span { font-weight: 500; color: var(--muted); }
.addon {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 14px;
  margin-top: 10px; padding: 14px 16px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.addon:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon-box {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  border: 2px solid #b9b3a6; border-radius: 8px; background: var(--surface); color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.addon-box .icon { width: 16px; height: 16px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s var(--ease); }
.addon input:checked + .addon-box { background: var(--brand); border-color: var(--brand); }
.addon input:checked + .addon-box .icon { opacity: 1; transform: none; }
.addon input:focus-visible + .addon-box { outline: 3px solid var(--brand); outline-offset: 3px; }
.addon:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.addon-body strong { display: block; font-size: 1rem; line-height: 1.3; }
.addon-body small { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.addon-price { display: grid; justify-items: end; text-align: right; line-height: 1.2; }
.addon-price b { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.addon-price s { font-size: 0.875rem; color: var(--muted); }
.addon-price em { margin-top: 4px; padding: 2px 8px; font-style: normal; font-size: 0.75rem; font-weight: 800; color: var(--marigold-ink); background: color-mix(in srgb, var(--marigold) 22%, var(--surface)); border-radius: 999px; white-space: nowrap; }
.addon-price-quote { max-width: 5.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.addon-featured { border-color: color-mix(in srgb, var(--marigold) 60%, var(--line)); }
@media (max-width: 459px) {
  .addon { grid-template-columns: auto 1fr; }
  .addon-price { grid-column: 2; grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; gap: 8px; text-align: left; }
  .addon-price em { margin-top: 0; }
  .addon-price-quote { max-width: none; }
}
.addons-note { margin: 12px auto 0; max-width: 34rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); text-align: left; }
.offer-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  margin: 20px auto 18px; max-width: 34rem; padding: 14px 18px; text-align: left;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 14px;
}
.offer-total span { font-weight: 600; color: var(--ink-2); }
.offer-total strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.offer-total small { flex-basis: 100%; text-align: right; font-size: 0.8125rem; color: var(--muted); }
.offer-total.is-bumped strong { animation: bump 0.35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.08); color: var(--brand); } }
.offer-list { margin-bottom: 26px; }

/* Without JS the checkboxes can't change the message, so show a plain sentence instead */
.addons-static { margin: 0 auto 20px; max-width: 34rem; padding: 14px 16px; text-align: left; font-size: 0.9375rem; color: var(--ink-2); background: var(--surface); border-radius: 14px; }
.js .addons-static { display: none; }
html:not(.js) .addons, html:not(.js) .offer-total, html:not(.js) .addons-note { display: none; }

/* ---------- 18. Final CTA ---------- */
.final { padding-block: var(--section-y); background: var(--tint); }
.final-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.final-icons img, .own-next-sm { width: 56px; height: 56px; border-radius: 16px; }
.own-next-sm { font-size: 1.4rem; border-width: 2px; }
.final h2 { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 3.8rem); }
.final-ml { margin-top: 12px; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 600; color: var(--brand-strong); }
.final .btn-row { margin-top: 32px; }

/* ---------- 19. Footer ---------- */
.footer { padding: 28px 0 32px; font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-policies { flex-basis: 100%; margin: 0; font-size: 0.875rem; }

/* ---------- 20. Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: 96px; } }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .converge:not(.is-visible) .converge-chips li, .js .converge:not(.is-visible) .converge-result { opacity: 1; transform: none; }
}

/* Keep the offer button on one line on small phones */
@media (max-width: 400px) {
  .offer-card { padding-inline: 16px; }
  .offer-card .btn { gap: 8px; padding-inline: 10px; font-size: 0.975rem; }
}
.offer-card > .btn-block { max-width: 34rem; margin-inline: auto; }

/* Erattupetta icon has a white background with a drawn border; round it exactly like its border (30%) */
img[src$="erattupetta.webp"] { border-radius: 30% !important; background: transparent !important; }

/* Anchor jumps (e.g. hero button → #offer) stop below the sticky desktop header */
@media (min-width: 900px) { html { scroll-padding-top: 76px; } }
.scroll-anchor { display: block; height: 0; scroll-margin-top: 20px; }
.addon-price .addon-free { color: var(--brand); }

/* ---------- 22. Payment pop-up (Razorpay) ---------- */
.checkout {
  width: min(100% - 24px, 30rem); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto;
  color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.checkout::backdrop { background: rgb(23 33 28 / 0.55); }
.checkout[open] { animation: checkout-in 0.25s var(--ease); }
@keyframes checkout-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.checkout-step { padding: 28px 20px 22px; }
@media (min-width: 480px) { .checkout-step { padding: 32px 28px 26px; } }
.checkout h2 { font-size: 1.5rem; padding-right: 36px; }
.checkout-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.checkout-close:hover { color: var(--ink); background: var(--bg); }
.checkout-close .icon { width: 20px; height: 20px; }
.checkout-kicker {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; font-size: 0.8125rem; font-weight: 700;
  color: var(--marigold-ink); background: color-mix(in srgb, var(--marigold) 22%, var(--surface)); border-radius: 999px;
}

.plans { display: grid; gap: 10px; margin: 20px 0 18px; padding: 0; border: 0; }
.plan {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); box-shadow: inset 0 0 0 1px var(--brand); }
.plan:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.plan-body strong { display: block; line-height: 1.3; }
.plan-body small { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.plan-price { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.fields { display: grid; gap: 12px; margin-bottom: 16px; }
.field { display: grid; gap: 4px; }
.field span { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.field span small { font-size: inherit; font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.phone-input { position: relative; display: block; }
.field .phone-code {
  position: absolute; inset: 0 auto 0 0; display: grid; place-items: center; width: 56px;
  font-size: 1rem; font-weight: 600; color: var(--ink-2); border-right: 1.5px solid var(--line); pointer-events: none;
}
.phone-input input { padding-left: 68px; }

.checkout-error { margin-bottom: 12px; padding: 10px 14px; font-size: 0.875rem; color: #9b1c1c; background: #fdecec; border-radius: 12px; }
.checkout .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.checkout-fine { margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); text-align: center; }
.checkout-wa { display: block; margin-top: 10px; padding: 6px; font-size: 0.9375rem; font-weight: 600; text-align: center; }


/* ---------- 23. Payment success page (success.html) ---------- */
.receipt-body { display: flex; flex-direction: column; min-height: 100vh; }
.receipt-main { flex: 1; padding-block: 16px 64px; }
.receipt-wrap { max-width: calc(34rem + var(--gutter) * 2); }
.receipt {
  padding: 28px 20px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 480px) { .receipt { padding: 36px 32px 28px; } }
.receipt-state > * + * { margin-top: 16px; }
.receipt-state > .btn + .btn { margin-top: 12px; }

.receipt-head { text-align: center; }
.receipt-head h1 { margin-top: 6px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem); outline: none; }
.receipt-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; }
.receipt-icon .icon { width: 32px; height: 32px; }
.receipt-icon.is-paid { color: #fff; background: var(--brand); box-shadow: 0 0 0 8px var(--brand-soft); animation: receipt-pop 0.45s var(--ease); }
.receipt-icon.is-pending { color: var(--marigold-ink); background: color-mix(in srgb, var(--marigold) 22%, var(--surface)); }
.receipt-icon.is-other { color: var(--muted); background: var(--bg); }
@keyframes receipt-pop { from { opacity: 0; transform: scale(0.6); } }
.receipt-kicker { font-weight: 600; color: var(--brand-strong); }
.receipt-amount { margin-top: 10px; font-size: clamp(2.6rem, 2rem + 3vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.receipt-for { margin-top: 8px; color: var(--ink-2); }
.receipt-hint { margin-top: 8px !important; font-size: 0.875rem; color: var(--muted); text-align: center; }

.receipt-details { display: grid; margin-top: 24px !important; padding: 4px 16px; background: var(--bg); border-radius: var(--radius); }
.receipt-details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; }
/* Divider above each row but the first, so hidden rows at the end leave no stray line */
.receipt-details > div + div { border-top: 1px solid var(--line); }
.receipt-details > div[hidden] { display: none; }
.receipt-details dt { font-size: 0.9375rem; color: var(--muted); }
.receipt-details dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.receipt-details code { font-size: 0.875rem; overflow-wrap: anywhere; }

.receipt-block { margin-top: 24px !important; }
.receipt-block h2 { margin-bottom: 10px; font-size: 1.05rem; letter-spacing: -0.01em; }
.receipt-items li { position: relative; padding: 6px 0 6px 22px; color: var(--ink-2); }
.receipt-items li::before { content: ""; position: absolute; left: 4px; top: 0.95em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.next-steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.next-steps li { position: relative; display: flex; align-items: center; min-height: 28px; padding-left: 40px; font-weight: 600; color: var(--ink); counter-increment: step; }
.next-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 28px; height: 28px;
  font-size: 0.875rem; font-weight: 800; color: var(--brand-strong); background: var(--brand-soft); border-radius: 50%;
}
.receipt-email { padding: 12px 14px; font-size: 0.9375rem; color: var(--ink-2); background: var(--brand-soft); border-radius: 12px; }
.receipt-state > .btn-secondary { margin-top: 24px; }
.receipt-fine { font-size: 0.8125rem; color: var(--muted); text-align: center; }

.receipt-loading { display: grid; justify-items: center; gap: 14px; padding: 48px 0; color: var(--muted); text-align: center; }
.receipt-spinner { width: 36px; height: 36px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: receipt-spin 0.8s linear infinite; }
@keyframes receipt-spin { to { transform: rotate(360deg); } }
