/* Bumi — learnbumi.com · Format A "Editorial slab" */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-var.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-italic-var.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif Tamil"; src: url("/fonts/noto-serif-tamil-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; src: url("/fonts/mukta-malar-tamil-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; src: url("/fonts/mukta-malar-tamil-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; src: url("/fonts/mukta-malar-tamil-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

:root {
  --cream: #fbf8f2;
  --cream-2: #f3ede2;
  --paper: #fffdf9;
  --ink: #2a1f1a;
  --ink-2: #3d2b22;
  --muted: #6b574a;
  --line: #e4d9c8;
  --tan: #e0c49a;
  --tan-2: #c9a77c;
  --slab: #2a1f1a;
  --slab-line: rgba(251, 248, 242, .22);
  --on-dark: #fbf8f2;
  --on-dark-muted: rgba(251, 248, 242, .72);
  --saffron: #f2a33a;
  --saffron-hover: #f6b558;
  --saffron-soft: #fde7c4;
  --forest: #1f4a3e;
  --gutter: 16px;
  --slab-x: 8px;
  --slab-r: 28px;
  --maxw: 1180px;
  --serif: "Newsreader", "Noto Serif Tamil", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ta-serif: "Noto Serif Tamil", "Tamil Sangam MN", "Latha", var(--serif);
  --ta-sans: "Mukta Malar", "Noto Sans Tamil", "Tamil Sangam MN", "Latha", var(--sans);
}
@media (min-width: 640px) { :root { --gutter: 32px; --slab-x: 14px; --slab-r: 36px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --slab-x: 20px; --slab-r: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 450;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.slab-dark :focus-visible, .slab-forest :focus-visible, .slab-offer :focus-visible, .word-stage :focus-visible { outline-color: var(--saffron); }
[lang="ta"] { font-family: var(--ta-sans); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.022em; line-height: 1.02;
  font-size: clamp(38px, 5.6vw, 72px); font-optical-sizing: auto; text-wrap: balance;
}
.display em { font-style: italic; font-weight: 380; }
.display .tone { color: var(--tan); }
.kicker { font-family: var(--serif); font-size: 20px; line-height: 1.2; font-style: italic; color: var(--muted); margin-bottom: 18px; letter-spacing: -.005em; }
.kicker-on-dark { color: var(--tan-2); }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 34em; }
@media (min-width: 960px) { .body-lg { font-size: 19px; } }
.aside { font-size: 15.5px; color: var(--muted); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 34em; }
.aside [lang="ta"] { font-weight: 600; color: var(--ink); }
.micro { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- stickers ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--saffron); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 14px 6px; font-family: var(--sans); font-weight: 650; font-size: 14.5px; line-height: 1.15;
  letter-spacing: .005em; white-space: nowrap;
  box-shadow: 2px 3px 0 rgba(42, 31, 26, .9);
  transform: rotate(-4deg);
}
.tag [lang="ta"] { font-family: var(--ta-sans); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 16.5px; line-height: 1.2; letter-spacing: -.003em;
  text-decoration: none; text-align: center; cursor: pointer; color: var(--ink); background: var(--cream);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-buy { background: var(--saffron); }
.btn-buy:hover { background: var(--saffron-hover); }
.btn-quiet { background: transparent; }
.btn-quiet:hover { background: var(--paper); }
.btn-price { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; padding-left: 10px; border-left: 1.5px solid rgba(42, 31, 26, .35); white-space: nowrap; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 8px 2px; cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--tan-2); }
.link-btn:hover { text-decoration-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.cta-center { justify-content: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; padding: 10px var(--slab-x) 0; pointer-events: none; }
.nav-bar {
  pointer-events: auto; max-width: 780px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 14px; background: rgba(251, 248, 242, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border: 1px solid var(--line); border-radius: 14px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.nav.scrolled .nav-bar { border-color: #d8cab4; box-shadow: 0 10px 30px -18px rgba(42, 31, 26, .45); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { width: 34px; height: 31px; object-fit: contain; }
.logo span { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: -.03em; line-height: 1; }
.nav-links { display: flex; gap: 30px; margin-left: auto; margin-right: 4px; }
.nav-links .nl-wide { display: none; }
.nav-links a { text-decoration: none; font-weight: 550; font-size: 15.5px; color: var(--ink); }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--tan-2); }
@media (min-width: 760px) { .nav-links { margin: 0; } .nav-links .nl-wide { display: inline; } }
@media (max-width: 400px) { .nav-links a { font-size: 14.5px; } .nav-bar { gap: 8px; } }
.btn-nav { min-height: 44px; padding: 8px 16px; font-size: 15px; background: var(--saffron-soft); white-space: nowrap; }
.btn-nav:hover { background: var(--saffron); }
@media (max-width: 370px) { .btn-nav { padding: 8px 12px; font-size: 14px; } .logo span { font-size: 24px; } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 24px; }
}
.hero h1 { position: relative; font-size: clamp(50px, 8.2vw, 108px); line-height: .98; letter-spacing: -.03em; }
.hero h1 .line { display: block; }
.hero h1 .line-1 { position: relative; width: fit-content; }
.hero h1 .line-2 { position: relative; display: inline-block; }
.hero h1 em { font-weight: 360; }
.swash { position: absolute; left: 2%; right: 4%; bottom: -.08em; width: 96%; height: .2em; color: var(--saffron); }
@media (max-width: 400px) { .cta-row .btn-buy { font-size: 15px; padding: 12px 14px; gap: 8px; } .cta-row .btn-price { font-size: 16px; padding-left: 8px; } }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 30em; margin-top: 30px; }
@media (min-width: 960px) { .lede { font-size: 21px; } }

@media (max-width: 959px) {  }

/* ---------- slabs ---------- */
.slab { position: relative; margin: 0 var(--slab-x); border-radius: var(--slab-r); padding: 76px 0; }
@media (min-width: 960px) { .slab { padding: 120px 0; } }
.slab-dark { background: var(--slab); color: var(--on-dark); }
.slab-dark .body-lg { color: var(--on-dark-muted); }
.slab-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .slab-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } .watch { align-items: start; } .watch-copy { padding-top: 40px; } }

/* watch (chips + clip demo) */
.watch .display { max-width: 11em; }
.watch .body-lg { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 14px; max-width: 34em; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-dark); border: 1.5px solid rgba(251, 248, 242, .55);
  font-weight: 600; font-size: 15.5px; transition: background-color .15s ease, transform .2s cubic-bezier(.3,1.6,.5,1), border-color .15s;
}
.chip:hover { border-color: var(--on-dark); background: rgba(251, 248, 242, .06); }
.chip[aria-pressed="true"] { background: var(--saffron); color: var(--ink); border-color: var(--saffron); transform: rotate(-3deg); }

.watch-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.next-clip { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--on-dark-muted); font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 10px 14px; border-radius: 999px; }
.next-clip:hover { color: var(--on-dark); background: rgba(251, 248, 242, .08); }
.clip-credit { font-size: 12.5px; color: rgba(251, 248, 242, .6); text-align: center; max-width: 30em; }
.clip-credit a { color: var(--on-dark-muted); text-underline-offset: 3px; }
.chip:disabled { opacity: .45; cursor: default; }
.chip:disabled:hover { background: transparent; border-color: rgba(251, 248, 242, .55); }

/* ---------- cream features ---------- */
.feature { padding: 96px 0 24px; }
.feature + .feature { padding-top: 72px; }
.feature-flip { padding-bottom: 104px; }
@media (min-width: 960px) { .feature { padding: 140px 0 40px; } .feature + .feature { padding-top: 120px; } .feature-flip { padding-bottom: 150px; } }
.feature-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 1.08fr .92fr; gap: 80px; }
  .feature-flip .feature-grid { grid-template-columns: .92fr 1.08fr; }
}
@media (max-width: 959px) { #demo-words .feature-copy { order: -1; } }
.feature-copy .display { max-width: 9.5em; margin-bottom: 22px; }
.ray-wrap { position: relative; display: inline-block; }
.rays-title { position: absolute; width: .62em; left: -.36em; top: -.36em; color: var(--saffron); transform: rotate(-10deg); }

/* word demo */
.word-stage {
  position: relative; border-radius: 32px; padding: 26px 18px 18px; color: var(--on-dark); overflow: hidden;
  background:
    radial-gradient(60% 50% at 18% 18%, rgba(240, 150, 70, .85), transparent 70%),
    radial-gradient(55% 60% at 88% 26%, rgba(46, 96, 104, .9), transparent 70%),
    radial-gradient(70% 55% at 40% 70%, rgba(150, 62, 30, .95), transparent 75%),
    radial-gradient(60% 40% at 90% 95%, rgba(214, 160, 90, .7), transparent 70%),
    #3a2219;
}
.word-stage::before { content: ""; position: absolute; inset: 0; background: rgba(28, 18, 12, .28); pointer-events: none; }
.word-stage > * { position: relative; }
@media (min-width: 640px) { .word-stage { padding: 34px 30px 26px; } }
.stage-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 248, 242, .82); }
.sentence-wrap { position: relative; padding: 44px 0 36px; }
.sentence { display: flex; flex-wrap: wrap; gap: 4px 6px; row-gap: 40px; }
.w {
  position: relative; background: none; border: 0; cursor: pointer; padding: 2px 6px; border-radius: 10px;
  font-family: var(--ta-serif); font-weight: 500; font-size: 27px; line-height: 1.4; color: var(--on-dark);
  transition: background-color .15s ease;
}
@media (min-width: 640px) { .w { font-size: 32px; } }
.w:hover { background: rgba(251, 248, 242, .12); }
.w[aria-pressed="true"] { color: #fff; }
.scribble { position: absolute; left: -12px; top: -12px; width: calc(100% + 24px); height: calc(100% + 22px); pointer-events: none; overflow: visible; }
.scribble { animation: wipe .5s ease-out backwards; }
.scribble path { fill: none; stroke: var(--saffron); stroke-width: 3; stroke-linecap: round; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
.sentence-en { font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(251, 248, 242, .9); }
.word-card {
  margin-top: 20px; background: #1d1511; border: 2px solid rgba(251, 248, 242, .9); border-radius: 22px; padding: 20px 20px 18px; color: var(--on-dark);
}
.word-card[data-anim] { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wc-word { font-family: var(--ta-serif); font-size: 28px; line-height: 1.3; font-weight: 500; }
.wc-meta { font-size: 14.5px; color: var(--on-dark-muted); }
.wc-meta i { font-family: var(--serif); font-size: 17px; color: var(--on-dark); }
.wc-save { flex-shrink: 0; min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid rgba(251, 248, 242, .6); background: transparent; color: var(--on-dark); font-weight: 600; font-size: 14px; cursor: pointer; }
.wc-save:hover { border-color: var(--on-dark); }
.wc-save[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.wc-meaning { font-family: var(--serif); font-size: 25px; line-height: 1.2; margin-top: 10px; }
.wc-grid { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(251, 248, 242, .16); }
@media (min-width: 640px) { .wc-grid { grid-template-columns: 1fr 1fr; gap: 14px 22px; } .wc-grid .wc-row:first-child { grid-column: 1 / -1; } }
.wc-row h4 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron); margin-bottom: 4px; }
.wc-row p { font-size: 15px; line-height: 1.5; color: rgba(251, 248, 242, .86); }
.wc-ex-ta { font-family: var(--ta-sans); font-weight: 600; color: var(--on-dark) !important; }
.wc-ex-ro { font-family: var(--serif); font-style: italic; font-size: 16px !important; }
.wc-sw b { font-weight: 600; color: var(--on-dark-muted); font-size: 13.5px; margin-right: 4px; }
.wc-sw [lang="ta"] { color: var(--on-dark); font-weight: 600; }

/* review demo */
.review-stage {
  position: relative; border-radius: 32px; padding: 64px 18px 28px; min-height: 420px;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 55% at 80% 18%, rgba(167, 196, 150, .9), transparent 70%),
    radial-gradient(60% 60% at 15% 80%, rgba(234, 186, 112, .85), transparent 72%),
    radial-gradient(50% 50% at 50% 50%, rgba(220, 205, 170, .9), transparent 80%),
    #bfae86;
}
@media (min-width: 640px) { .review-stage { padding: 72px 40px 44px; min-height: 480px; } }
.tag-review { position: absolute; top: 24px; right: 22px; transform: rotate(4deg); }
.review-mascot { position: absolute; width: 132px; left: -8px; bottom: -22px; z-index: 2; }
@media (min-width: 640px) { .review-mascot { width: 170px; left: -36px; bottom: -30px; } }
.fc {
  width: min(100%, 360px); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 22px;
  padding: 18px 20px 20px; box-shadow: 5px 6px 0 var(--ink); position: relative; z-index: 1;
}
.fc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fc-progress { display: flex; gap: 5px; }
.fc-progress i { width: 18px; height: 4px; border-radius: 3px; background: var(--line); }
.fc-progress i.cur { background: var(--saffron); }
.fc-progress i.done { background: var(--ink); }
.fc-face { text-align: center; padding: 30px 0 22px; }
.fc-ta { font-family: var(--ta-serif); font-weight: 500; font-size: 36px; line-height: 1.35; }
.fc-ro { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.fc-en { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fc-note { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.fc-note [lang="ta"] { color: var(--ink); }
.fc-reveal { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--saffron); font-weight: 600; cursor: pointer; }
.fc-reveal:hover { background: var(--saffron-hover); }
.fc-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rate { min-height: 52px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-weight: 600; font-size: 14.5px; line-height: 1.1; display: grid; place-content: center; gap: 1px; padding: 4px 2px; }
.rate small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rate:hover { background: var(--saffron-soft); }
.rate.good { background: var(--saffron); }
.rate.good:hover { background: var(--saffron-hover); }
.fc-done { text-align: center; padding: 24px 0 6px; }
.fc-done h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.fc-done p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.fc-done .btn { min-height: 44px; margin-top: 16px; font-size: 15px; }

/* ---------- why ---------- */
.slab-head { display: grid; gap: 22px; margin-bottom: 52px; }
@media (min-width: 960px) { .slab-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; margin-bottom: 72px; } }
.why-cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .why-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; } }
.why-card { border: 1.5px solid var(--slab-line); border-radius: 24px; padding: 30px 26px 28px; display: flex; flex-direction: column; }
@media (min-width: 820px) { .why-card { padding: 40px 30px 32px; text-align: center; align-items: center; } }
.why-ico { width: 40px; height: 40px; color: var(--saffron); margin-bottom: 22px; }
.why-card h3 { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 12px; }
.why-card p { color: var(--on-dark-muted); font-size: 16px; line-height: 1.55; }
.why-card .cite { margin-top: auto; padding-top: 18px; font-size: 13px; line-height: 1.45; color: rgba(251, 248, 242, .55); }
.why-card .cite cite { font-style: italic; }
.why-card .cite a { color: var(--tan); text-underline-offset: 3px; }

/* ---------- offer ---------- */
.slab-offer { margin-top: 20px; overflow: hidden; color: var(--on-dark); padding: 88px 0 72px; isolation: isolate; }
@media (min-width: 960px) { .slab-offer { padding: 120px 0 110px; margin-top: 20px; } }
.offer-scene { position: absolute; inset: 0; z-index: -1; }
.offer-scene > svg:first-child { width: 100%; height: 100%; }
.offer-scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(30, 18, 12, .25), rgba(30, 18, 12, .55)); }
.offer-dots { position: absolute; right: 2%; top: 4%; width: min(40%, 360px); opacity: .8; z-index: 1; }
.offer-inner { display: grid; justify-items: center; gap: 40px; text-align: center; }
.offer-title { font-size: clamp(44px, 7vw, 96px); max-width: 9em; text-shadow: 0 2px 30px rgba(30, 18, 12, .35); }
.offer-card {
  position: relative; width: min(100%, 440px); background: var(--cream); color: var(--ink); border-radius: 28px;
  padding: 36px 24px 24px; text-align: left; box-shadow: 0 40px 80px -30px rgba(20, 10, 5, .6);
}
@media (min-width: 480px) { .offer-card { padding: 40px 34px 28px; } }
.tag-offer { position: absolute; top: -16px; right: 18px; transform: rotate(4deg); }
.price { display: flex; align-items: flex-end; gap: 12px; font-family: var(--serif); }
.price-num { font-size: 96px; line-height: .8; letter-spacing: -.04em; }
.price-unit { font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.25; padding-bottom: 4px; }
.offer-sub { margin-top: 18px; color: var(--muted); font-size: 16px; }
.checks { list-style: none; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--saffron) 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='%232a1f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; border: 1.5px solid var(--ink); }
.offer-card .btn + .btn { margin-top: 10px; }
.stripe-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.slab-forest { background: var(--forest); color: var(--on-dark); margin-top: 150px; }
@media (min-width: 960px) { .slab-forest { margin-top: 190px; } }
.faq-peek { position: absolute; z-index: 2; width: 200px; right: 9%; bottom: calc(100% - 26px); pointer-events: none; }
@media (min-width: 960px) { .faq-peek { width: 270px; right: 12%; bottom: calc(100% - 34px); } }
.faq-title { font-size: clamp(52px, 8vw, 112px); line-height: .92; margin-bottom: 48px; }
@media (min-width: 960px) { .faq-title { margin-bottom: 72px; } }
.faq { display: grid; gap: 14px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; } }
.faq-col { display: grid; gap: 14px; }
@media (min-width: 900px) { .faq-col { gap: 18px; } }
.faq-item { border: 1.5px solid rgba(251, 248, 242, .55); border-radius: 18px; transition: border-color .15s, background-color .15s; }
.faq-item:hover { border-color: var(--on-dark); }
.faq-item[open] { border-color: var(--on-dark); background: rgba(251, 248, 242, .04); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 20px 22px; font-weight: 550; font-size: 17px; line-height: 1.35; border-radius: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.ans { padding: 0 22px 22px; color: rgba(251, 248, 242, .82); font-size: 16px; line-height: 1.6; }
.ans p + p { margin-top: 10px; }
.ans a { color: var(--on-dark); text-decoration-color: var(--saffron); text-underline-offset: 3px; }

/* ---------- final + footer ---------- */
.final { padding: 120px 0 40px; text-align: center; }
@media (min-width: 960px) { .final { padding: 170px 0 60px; } }
.final .display { font-size: clamp(42px, 6.4vw, 84px); max-width: 11em; margin: 0 auto; }
.final .body-lg { margin: 24px auto 0; }
.footer { padding: 24px 0 28px; }
.wordmark {
  font-family: var(--serif); font-weight: 420; font-size: min(36vw, 480px); line-height: .8; letter-spacing: -.018em;
  margin: clamp(40px, 7vw, 96px) 0 24px -0.04em; color: var(--ink); white-space: nowrap; user-select: none;
}
.wm-i { position: relative; display: inline-block; }
.wm-i img { position: absolute; width: .3em; left: 50%; bottom: .6em; transform: translateX(-46%) rotate(-6deg); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-base a { text-decoration: none; overflow-wrap: anywhere; }
.footer-base a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ph-slide, .ph-chunk, .word-card[data-anim], .scribble { transition: none !important; animation: none !important; }
}

/* ---------- dialog ---------- */
dialog.modal { border: 2px solid var(--ink); padding: 0; border-radius: 26px; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--cream); color: var(--ink); box-shadow: 6px 8px 0 var(--ink); }
dialog.modal::backdrop { background: rgba(42, 31, 26, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-inner { padding: 28px 22px 22px; position: relative; }
@media (min-width: 480px) { .modal-inner { padding: 34px 32px 28px; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { border-color: var(--ink); }
.modal img.m-mascot { width: 76px; height: auto; margin-bottom: 10px; }
.modal h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; letter-spacing: -.02em; padding-right: 36px; }
.modal p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.field { margin-top: 18px; display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select { font: inherit; font-size: 17px; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #d6c8b3; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--saffron-soft); }
.field .opt { font-weight: 450; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal .btn-block { margin-top: 20px; }
.form-msg { margin-top: 12px; font-size: 14.5px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.err { color: #a3260c; }
.modal .fine { font-size: 13px; text-align: center; margin-top: 14px; }
.success-state { text-align: center; padding: 6px 0; }
.success-state img.m-mascot { margin: 0 auto 10px; width: 90px; }
.success-state h2 { padding-right: 0; }
.success-state .btn { margin-top: 20px; }

/* ---------- simple pages ---------- */
.page { padding: 56px 0 40px; }
.page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.page .display { font-size: clamp(44px, 7vw, 76px); margin-bottom: 12px; }
.page .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; margin: 40px 0 10px; }
.page p, .page li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 22px; margin: 12px 0; }
.page li + li { margin-top: 8px; }
.page a { text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.center-page { padding: 48px 0 40px; text-align: center; }
.center-page .wrap { max-width: calc(640px + 2 * var(--gutter)); }
.center-page img { width: 220px; margin: 0 auto 28px; }
.center-page .display { font-size: clamp(44px, 7vw, 76px); }
.center-page p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 20px auto 30px; max-width: 32em; }
.center-page a:not(.btn) { color: var(--ink); text-decoration-color: var(--saffron); text-underline-offset: 3px; }

/* ---------- transliteration (shown with every Tamil string) ---------- */
.tx { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; vertical-align: top; }
.tx .tr { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .52em; line-height: 1.25; opacity: .78; margin-top: .1em; letter-spacing: .005em; }
.tr-in { font-family: var(--serif); font-style: italic; font-weight: 400; opacity: .8; }
.credits { padding-left: 22px; }
.credits .by { color: var(--muted); }
.signoff { font-family: var(--serif); font-style: italic; margin-top: -18px !important; }

/* ---------- hero art: phone + mascot ---------- */
.hero-art { position: relative; display: flex; justify-content: center; padding: 4px 0 0; }
.hero-art .phone-wrap { --pw: 286px; z-index: 1; }
.hero-art .rays { position: absolute; width: 60px; left: calc(50% + 116px); top: -14px; color: var(--saffron); transform: rotate(14deg); }
.hero-mascot { position: absolute; z-index: 2; width: 150px; left: calc(50% - 282px); bottom: 26px; pointer-events: none; }
@media (max-width: 959px) { .hero-art .phone-wrap { --pw: 262px; } .hero-mascot { width: 112px; left: calc(50% - 230px); } .hero-art .rays { left: calc(50% + 104px); width: 52px; } }
@media (max-width: 420px) { .hero-art .phone-wrap { --pw: 256px; } .hero-mascot { width: 92px; left: max(-6px, calc(50% - 214px)); bottom: 30px; } .hero-art .rays { left: auto; right: 4px; } }

/* ---------- phone mockup (iPhone Pro proportions: screen 1206 × 2622) ---------- */
.phone-wrap { --pw: 280px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone {
  position: relative; width: var(--pw); flex-shrink: 0;
  padding: calc(var(--pw) * .011); border-radius: calc(var(--pw) * .165);
  background: linear-gradient(135deg, #e9e6e1 0%, #a19e99 16%, #d9d6d1 32%, #84817c 50%, #cfccc6 68%, #8e8b86 84%, #e0ddd8 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 50px 80px -34px rgba(30, 18, 10, .55), 0 18px 34px -16px rgba(30, 18, 10, .38), 0 2px 4px rgba(30, 18, 10, .2);
}
.phone-bezel { background: #050505; border-radius: calc(var(--pw) * .154); padding: calc(var(--pw) * .026); }
.phone-screen {
  position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .128); overflow: hidden; background: #0d0b0a;
  container-type: inline-size; isolation: isolate; color: #fff; transform: translateZ(0);
  --vh: 61%;
}
.pb { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #6f6c68, #cfccc7 60%, #8c8984); }
.pb-action { left: -2px; top: 17%; height: 4.5%; }
.pb-up { left: -2px; top: 24%; height: 8%; }
.pb-down { left: -2px; top: 34%; height: 8%; }
.pb-power { right: -2px; top: 27%; height: 12%; background: linear-gradient(270deg, #6f6c68, #cfccc7 60%, #8c8984); }
.ph-island { position: absolute; z-index: 6; top: 2.7cqw; left: 50%; transform: translateX(-50%); width: 31cqw; height: 9cqw; border-radius: 99px; background: #000; }
.ph-status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 14.4cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 7.5cqw 0 10.5cqw; font: 600 4.5cqw/1 var(--sans); letter-spacing: -.01em; text-shadow: 0 0 6px rgba(0,0,0,.35); }
.ph-icons { display: flex; gap: 1.6cqw; align-items: center; }
.ph-icons svg { width: auto; height: 3.5cqw; fill: currentColor; }

/* slides: poster on top, solid caption sheet below; they slide vertically as one unit */
.ph-slides { position: absolute; inset: 0; z-index: 1; }
.ph-slide { position: absolute; inset: 0; visibility: hidden; transform: translateY(100%); background: #0d0b0a; }
.ph-slide.is-on { visibility: visible; transform: none; }
.ph-slide.anim { visibility: visible; transition: transform .55s cubic-bezier(.65, 0, .25, 1); }
.ph-poster { position: absolute; left: 0; right: 0; top: 14.4cqw; height: calc(var(--vh) - 14.4cqw); overflow: hidden; background: #1a1411; }
.ph-poster > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-thumb { position: absolute; left: 50%; top: 50%; max-width: none; transform: translate(-50%, -50%); width: 100%; }
.ph-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--vh); background: var(--paper); color: var(--ink);
  border-radius: 5.5cqw 5.5cqw 0 0; padding: 4.6cqw 5.5cqw 5cqw; display: flex; flex-direction: column;
}
.ph-handle { position: absolute; top: 1.8cqw; left: 50%; transform: translateX(-50%); width: 10cqw; height: 1.1cqw; border-radius: 9px; background: #d9cdbb; }
.ph-head { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding-bottom: 2.6cqw; border-bottom: 1px solid var(--line); font: 600 3.5cqw/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ph-kind b { color: #b0570b; font-weight: 700; }
.ph-dots { display: flex; gap: 1.2cqw; }
.ph-dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #dccfbd; }
.ph-dots i.on { background: var(--saffron); width: 4cqw; border-radius: 9px; }
.ph-cap { flex: 1; display: grid; align-content: center; text-align: center; padding-top: 1.5cqw; min-height: 0; }
.ph-sent { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s; }
.ph-sent.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .28s ease, visibility 0s; }
.ph-line { display: grid; }
.ph-chunk { grid-area: 1 / 1; display: flex; visibility: hidden; flex-wrap: wrap; justify-content: center; align-content: center; gap: .6cqw 1.4cqw; }
.ph-chunk.is-on { visibility: visible; }
.ph-w { background: none; border: 0; padding: .7cqw 1.3cqw; border-radius: 2.2cqw; color: var(--ink); cursor: pointer; font-size: 8.6cqw; font-weight: 600; transition: background-color .15s, color .15s; }
span.ph-w { cursor: default; }
button.ph-w [lang="ta"] { text-decoration: underline dotted rgba(176, 87, 11, .55); text-underline-offset: .28em; text-decoration-thickness: 1.5px; }
.ph-w [lang="ta"] { font-family: var(--ta-sans); font-weight: 600; }
.ph-w .tr { font-size: .52em; color: var(--muted); opacity: 1; }
.ph-w.now { background: var(--saffron); }
.ph-w.now .tr { color: var(--ink); }
.ph-w:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ph-whole { font-size: 6.8cqw; font-weight: 600; }
.ph-whole .tr { color: var(--muted); }
.ph-en { margin-top: 2.6cqw; font: 500 4.7cqw/1.35 var(--sans); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* two YouTube players per phone (front plays, back pre-rolls the next loop); covers only the video area */
.ph-yt { position: absolute; z-index: 2; left: 0; right: 0; top: 14.4cqw; height: calc(var(--vh) - 14.4cqw); overflow: hidden; }
.ph-ytp { position: absolute; inset: 0; }
.ph-ytp[hidden] { display: none; }
.ph-ytp iframe, .ph-ytp .ph-yt-slot { position: absolute; border: 0; }
.ph-progress { position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--vh) - 2px); height: 2px; background: rgba(255,255,255,.18); pointer-events: none; }
.ph-progress i { display: block; height: 100%; width: 0; background: var(--saffron); }
.ph-gloss { position: absolute; z-index: 7; left: 6cqw; right: 6cqw; bottom: calc(100% - var(--vh) + 4cqw); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4.5cqw; padding: 3cqw 4cqw; box-shadow: 2px 3px 0 var(--ink); text-align: center; opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .18s, transform .18s; pointer-events: none; }
.ph-gloss.on { opacity: 1; transform: none; }
.ph-gloss .g-ta { font: 600 7cqw/1.25 var(--ta-sans); }
.ph-gloss .g-tr { font: italic 4.6cqw/1.2 var(--serif); color: var(--muted); }
.ph-gloss .g-en { font: 500 4.4cqw/1.35 var(--sans); margin-top: 1.4cqw; }
.ph-gloss:empty { display: none; }
.ph-hint { background: none; border: 0; color: var(--muted); font: 600 13.5px/1.2 var(--sans); padding: 8px 12px; border-radius: 99px; cursor: pointer; }
.ph-hint:hover { color: var(--ink); background: rgba(42,31,26,.06); }
.slab-dark .ph-hint { color: var(--on-dark-muted); }
.slab-dark .ph-hint:hover { color: var(--on-dark); background: rgba(251,248,242,.08); }
.ph-hint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.watch-demo .phone-wrap { --pw: 280px; }
@media (max-width: 420px) { .watch-demo .phone-wrap { --pw: 256px; } }
@media (prefers-reduced-motion: reduce) { .ph-hint span { animation: none; } .ph-slide.anim, .ph-sent, .ph-sent.is-on { transition: none; } }

/* tap-a-word tokens: Tamil with transliteration underneath */
.w .tx .tr { font-size: .5em; opacity: .82; }
.sentence { row-gap: 46px; }
.w [lang="ta"] { font-family: var(--ta-serif); font-weight: 500; }
.chip small { font-size: .82em; font-weight: 500; opacity: .7; margin-left: 4px; }
.word-card { text-align: left; }
.wc-tr { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--on-dark-muted); margin-top: 2px; }
.word-card .wc-meaning { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(251, 248, 242, .16); }
.sentence-wrap { padding: 30px 0 22px; }
.ph-ytlink { font: 600 3.3cqw/1 var(--sans); letter-spacing: .02em; text-transform: none; color: #b0570b; text-decoration: none; }
.ph-ytlink:hover { text-decoration: underline; }
/* the YouTube iframe is clickable; keep our status bar / island from blocking its title bar */
.ph-status, .ph-island { pointer-events: none; }
.ph-slide { pointer-events: none; } .ph-slide.is-on { pointer-events: auto; }
/* sound: browsers only autoplay muted; first tap on the video (or the button) turns sound on for both phones */
.ph-shield { position: absolute; z-index: 3; left: 0; right: 0; top: calc(14.4cqw + 16cqw); bottom: calc(100% - var(--vh) + 16cqw); background: transparent; border: 0; padding: 0; cursor: pointer; }
.sound-on .ph-shield { display: none; }
.ph-sound { position: absolute; z-index: 4; left: 3.5cqw; bottom: calc(100% - var(--vh) + 3.5cqw); display: inline-flex; align-items: center; gap: 1.6cqw; min-height: 36px; min-width: 36px; padding: 0 3.6cqw 0 2.6cqw; border-radius: 99px; border: 0; background: rgba(0, 0, 0, .62); color: #fff; font: 600 13px/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ph-sound svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.ph-sound .i-on { display: none; }
.sound-on .ph-sound { padding: 0; justify-content: center; }
.sound-on .ph-sound .i-on { display: block; } .sound-on .ph-sound .i-off, .sound-on .ph-sound span { display: none; }
.ph-sound:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.yt-off .ph-sound, .yt-off .ph-shield { display: none; }
.modal-retry { margin-top: 10px; }
.footer-updates { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer-updates:hover { color: var(--ink); }
.price-unit .tax { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.cap-note { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
