:root {
  --bg: #FDFBF7;
  --card: #F4EFE6;
  --card2: #EFE9DD;
  --line: #E2DACB;
  --brown: #783F19;
  --deep: #5C2E10;
  --tan: #D2B48C;
  --sienna: #A0522D;
  --green: #2D5A27;
  --text: #2C2A29;
  --text2: #4A4745;
  --muted: #7A7570;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 12px 32px -12px rgba(60, 35, 15, .22);
  --font: "Plus Jakarta Sans", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
html[lang="ta"] body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3 { letter-spacing: 0; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 12px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sienna); margin-bottom: 12px; }
html[lang="ta"] .eyebrow { letter-spacing: .02em; text-transform: none; }
.eyebrow.light { color: var(--tan); }
.h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 800; max-width: 760px; }
html[lang="ta"] .h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; }
.h2.light { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--brown); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 16px; padding: 12px 20px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible, .lang button:focus-visible, summary:focus-visible, .gallery:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 12.5px; opacity: .8; }
.btn-sm { padding: 9px 16px; border-radius: 12px; font-size: 14px; }
.btn-lg { padding: 15px 24px; font-size: 17px; border-radius: 18px; }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--brown); }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--bg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(253, 251, 247, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 12px; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-weight: 800; font-size: 17px; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 600; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text2); }
.links a:hover { color: var(--brown); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: 700 13px var(--font); border: 0; background: transparent; color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brown); color: #fff; }

/* hero */
.hero { position: relative; padding: 56px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(210, 180, 140, .55), rgba(210, 180, 140, 0) 65%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.03; font-weight: 800; }
html[lang="ta"] .hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); margin-top: 22px; max-width: 580px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text2); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 76vw); aspect-ratio: 1080 / 2400; border-radius: 42px;
  background: #1d1714; padding: 10px; box-shadow: 0 30px 60px -20px rgba(60, 30, 10, .45), 0 0 0 1px rgba(0, 0, 0, .1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: var(--bg); }
.phone-hero { width: min(320px, 74vw); transform: rotate(2.5deg); }
.float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--text2);
}
.float-count { left: -6%; top: 4%; display: grid; }
.float-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sienna); font-weight: 700; }
.float-num { font-size: 15px; color: var(--text); }
.float-num b { font-size: 30px; font-weight: 800; color: var(--brown); }
.float-omr { right: -8px; bottom: 14%; max-width: 230px; display: grid; gap: 8px; }
.omr-row { display: flex; gap: 6px; }
.omr-row i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tan); font-style: normal; font-size: 11px; display: grid; place-items: center; color: var(--brown); }
.omr-row i.b { background: var(--text); border-color: var(--text); }
.omr-row i.e { background: var(--tan); border-color: var(--tan); font-weight: 800; color: var(--text); }

/* countdown band */
.countband { background: var(--brown); color: #fff; padding: 46px 0; }
.count-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.count-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.count-copy p { color: #f6e8d6; }
.count-grid { display: flex; gap: 14px; }
.count-grid div { min-width: 86px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 12px 8px; }
.count-grid b { display: block; font-size: 38px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.count-grid span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); }
.count-facts { grid-column: 1 / -1; list-style: none; margin: 10px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(210, 180, 140, .35); display: flex; flex-wrap: wrap; gap: 10px 40px; }
.count-facts b { font-size: 22px; }
.count-facts span { color: #f6e8d6; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--card); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat h3 { font-size: 18px; font-weight: 800; margin: 16px 0 8px; line-height: 1.3; }
.feat p { font-size: 15px; color: var(--text2); }
.ico { width: 52px; height: 52px; border-radius: 16px; background: var(--tan); display: grid; place-items: center; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.ta span { font-size: 26px; font-weight: 800; color: var(--deep); }

.stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stats li { background: var(--card); border-radius: 18px; padding: 18px 14px; text-align: center; }
.stats b { display: block; font-size: 30px; font-weight: 800; color: var(--brown); line-height: 1.2; }
.stats span { font-size: 13.5px; color: var(--text2); font-weight: 600; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two.center { align-items: center; }
.table-wrap { margin-top: 26px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.pattern { width: 100%; border-collapse: collapse; font-size: 15px; }
.pattern th, .pattern td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.pattern th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--card2); }
.pattern td:first-child { font-weight: 800; color: var(--brown); }
.pattern td:nth-child(3), .pattern td:nth-child(4), .pattern th:nth-child(3), .pattern th:nth-child(4) { text-align: center; font-variant-numeric: tabular-nums; }
.pattern tfoot td { font-weight: 800; border-bottom: 0; }
.rules { background: var(--brown); color: #fff; border-radius: var(--radius); padding: 26px; }
.rules h3 { font-size: 19px; margin-bottom: 14px; }
.rules ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.rules li b { background: rgba(255, 255, 255, .12); border-radius: 12px; text-align: center; padding: 6px 0; font-size: 17px; }
.rules .small { color: #f6e8d6; }
.units { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.units h3 { font-size: 17px; margin-bottom: 14px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr 1.1fr 30px; align-items: center; gap: 12px; font-size: 14px; color: var(--text2); }
.bar i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--sienna) var(--w), var(--card2) var(--w)); }
.bar.b i { background: linear-gradient(90deg, var(--brown) var(--w), var(--card2) var(--w)); }
.bar.c i { background: linear-gradient(90deg, var(--green) var(--w), var(--card2) var(--w)); }
.bar b { text-align: right; color: var(--text); }

.phone-tilt { margin-inline: auto; transform: rotate(-2deg); }
.steps { display: grid; gap: 18px; margin: 30px 0 22px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.dot { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--sienna); display: grid; place-items: center; font-weight: 800; color: var(--sienna); }
.step h3 { font-size: 18px; }
.step p { color: var(--text2); font-size: 15px; }

.gal-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.gal-nav { display: flex; gap: 10px; flex: none; }
.gal-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brown); font-size: 20px; cursor: pointer; }
.gal-nav button:hover { background: var(--brown); color: #fff; }
.gal-nav button:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.gallery { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px max(16px, calc((100vw - 1160px) / 2)) 30px; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 14px; }
.gallery .phone { width: 250px; border-radius: 36px; padding: 8px; }
.gallery .phone img { border-radius: 29px; }
.gallery figcaption { font-weight: 700; font-size: 15px; color: var(--text2); max-width: 250px; text-align: center; }

.timeline { list-style: none; margin: 28px 0 14px; padding: 0 0 0 26px; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.timeline li { position: relative; display: grid; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--sienna); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.now::before { background: var(--tan); border-color: var(--brown); box-shadow: 0 0 0 6px rgba(210, 180, 140, .35); }
.timeline time { font-size: 13px; font-weight: 700; color: var(--sienna); letter-spacing: .04em; }
.timeline b { font-size: 17px; }
.timeline .tag { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--muted); }
.timeline li.now .tag { background: var(--green); color: #fff; }
.posts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.posts h3 { font-size: 19px; margin-bottom: 12px; }
.posts ul { list-style: none; margin: 0 0 12px; padding: 0; }
.posts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.posts li b { color: var(--brown); font-variant-numeric: tabular-nums; }

.download { background: linear-gradient(135deg, var(--brown), var(--deep)); color: #fff; }
.dl-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.dl-copy p { color: #f6e8d6; margin: 14px 0 26px; font-size: 18px; }
.medal { width: 96px; height: 96px; margin-bottom: 18px; }
.hash { font-size: 12.5px; margin-top: 18px !important; color: #e7d3bb !important; word-break: break-all; }
.hash code { font-size: 11.5px; }
.dl-steps { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px; }
.dl-steps h3 { font-size: 19px; margin-bottom: 12px; }
.dl-steps ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; }
.dl-steps .small { color: #f6e8d6; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 26px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--sienna); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--text2); }

.footer { background: var(--card); padding: 50px 0 24px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-in > div:first-child { max-width: 460px; display: grid; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.foot-links a { font-weight: 600; text-decoration: none; color: var(--text2); }
.foot-links a:hover { color: var(--brown); }
.copy { margin-top: 30px; font-size: 13px; color: var(--muted); }

.sticky-dl { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feat { transition: none; }
}

/* responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero { padding: 28px 0 56px; }
  .hero-in, .two, .dl-in, .count-in { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 10px; }
  .float-count { left: 0; top: 2%; }
  .float-omr { right: 0; }
  .count-grid div { min-width: 0; flex: 1; }
  .section { padding: 64px 0; }
  .two { gap: 36px; }
}
@media (max-width: 560px) {
  .nav-in { height: 62px; gap: 10px; }
  .brand small { display: none; }
  .nav-actions .btn-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { width: 100%; justify-content: center; }
  .count-grid { gap: 8px; }
  .count-grid b { font-size: 28px; }
  .float-omr { display: none; }
  .bar { grid-template-columns: 1fr 1fr 26px; font-size: 13px; }
  .gallery .phone { width: 210px; }
  .gal-nav { display: none; }
  .sticky-dl { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; transform: translateY(140%); transition: transform .25s ease; }
  .sticky-dl.show { transform: none; }
  .sticky-dl .btn { width: 100%; justify-content: center; box-shadow: var(--shadow); }
  body { padding-bottom: 84px; }
}

/* USP: 10,000 questions */
.usp { background: linear-gradient(180deg, var(--bg), var(--card)); }
.usp-lead { max-width: 720px; margin-top: 14px; font-size: 17px; }
.usp-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 18px; margin-top: 36px; }
.usp-big { background: var(--brown); color: #fff; border-radius: var(--radius); padding: 28px 24px; display: grid; align-content: center; gap: 8px; }
.usp-big b { font-size: clamp(48px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.usp-big span { color: #f6e8d6; font-size: 15px; }
.usp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.usp-card h3 { font-size: 18px; margin: 12px 0 8px; line-height: 1.3; }
.usp-card p { font-size: 14.5px; color: var(--text2); }
.usp-num { width: 34px; height: 34px; border-radius: 50%; background: var(--tan); display: grid; place-items: center; font-weight: 800; color: var(--deep); }
.activate { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
.activate h3 { font-size: 17px; margin-bottom: 10px; }
.activate a { color: #fff; }
@media (max-width: 1020px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usp-grid { grid-template-columns: 1fr; } }
