/* Bombat Kannada — public site. One stylesheet, no build step.
   Palette is the app's own (client/theme.css): cream page, navy ink-accent,
   brand yellow and orange as fills. Dark follows the app's dark palette, in
   which navy disappears and yellow carries the actions. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --line: #e8e3da;
  --ink: #1f1c18;
  --ink-dim: #574f45;
  --ink-faint: #6f685e;
  --accent: #1B2A6B;          /* navy: links, buttons */
  --on-accent: #ffffff;
  --cta: #FFCF31;             /* brand yellow */
  --on-cta: #1B2A6B;
  --orange: #E8873D;          /* fill only */
  --orange-text: #B4561B;     /* orange as words: 4.6:1 on --bg */
  --red: #D32F2F;
  --good: #2f7d45;
  --ring: #C08A00;
  --frame: #1d1a17;
  --hero-fade: linear-gradient(90deg, #faf7f2 0%, rgba(250,247,242,.92) 45%, rgba(250,247,242,.15) 100%);
  --hero-fade-sm: linear-gradient(180deg, rgba(250,247,242,.6) 0%, rgba(250,247,242,.85) 40%, #faf7f2 92%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --kn: "Noto Sans Kannada", "Kannada Sangam MN", "Tunga", sans-serif;
  color-scheme: light;
}

/* Dark: the visitor's system setting, unless they chose light with the
   toggle; and always when they chose dark. Written twice because a media
   query cannot be combined with an attribute selector any other way. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14100d; --surface: #1f1a16; --surface-2: #2a231d; --line: #3a3129;
    --ink: #f4efe8; --ink-dim: #c2b6a7; --ink-faint: #a0958a;
    --accent: #FFCF31; --on-accent: #14100d; --cta: #FFCF31; --on-cta: #14100d;
    --orange-text: #E8873D; --good: #6bbf7b; --ring: #FFCF31; --frame: #000;
    --hero-fade: linear-gradient(90deg, #14100d 0%, rgba(20,16,13,.92) 45%, rgba(20,16,13,.35) 100%);
    --hero-fade-sm: linear-gradient(180deg, rgba(20,16,13,.6) 0%, rgba(20,16,13,.85) 40%, #14100d 92%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14100d; --surface: #1f1a16; --surface-2: #2a231d; --line: #3a3129;
  --ink: #f4efe8; --ink-dim: #c2b6a7; --ink-faint: #a0958a;
  --accent: #FFCF31; --on-accent: #14100d; --cta: #FFCF31; --on-cta: #14100d;
  --orange-text: #E8873D; --good: #6bbf7b; --ring: #FFCF31; --frame: #000;
  --hero-fade: linear-gradient(90deg, #14100d 0%, rgba(20,16,13,.92) 45%, rgba(20,16,13,.35) 100%);
  --hero-fade-sm: linear-gradient(180deg, rgba(20,16,13,.6) 0%, rgba(20,16,13,.85) 40%, #14100d 92%);
  color-scheme: dark;
}

/* Each screenshot exists in both themes; show the one that matches. */
.d { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .l { display: none; }
  :root:not([data-theme="light"]) .d { display: block; }
}
:root[data-theme="dark"] .l { display: none; }
:root[data-theme="dark"] .d { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
[lang="kn"] { font-family: var(--kn); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 18px; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav a:hover { color: var(--ink); }
@media (min-width: 920px) { .nav { display: flex; } }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: block; } .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 16px/1.2 var(--sans); text-decoration: none; border: 2px solid transparent;
}
.btn-cta { background: var(--cta); color: var(--on-cta); border-color: color-mix(in srgb, var(--cta) 70%, #000); }
.btn-cta:hover { filter: brightness(1.04); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.site-head .btn-sm { display: none; }
@media (min-width: 480px) { .site-head .btn-sm { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-fade-sm); }
@media (min-width: 900px) { .hero-bg::after { background: var(--hero-fade); } }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 64px; padding-bottom: 72px; } }
.hero-logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 6px 24px rgba(0,0,0,.15); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 8.5vw, 72px); color: var(--accent); }
:root[data-theme="dark"] .hero h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 { color: var(--ink); } }
.brush { position: relative; white-space: nowrap; }
.brush::after { content: ""; position: absolute; left: 0; right: -.1em; bottom: .02em; height: .16em; background: var(--cta); border-radius: 4px; transform: rotate(-1.5deg); z-index: -1; }
.hero h1 .brush { z-index: 0; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-dim); max-width: 36em; }
.lede strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-note { font-size: 14px; color: var(--ink-faint); }
.tagline { font-size: 15px; color: var(--ink-dim); margin-top: 6px; }
.tagline .motto { color: var(--red); font-weight: 700; }
:root[data-theme="dark"] .tagline .motto { color: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tagline .motto { color: var(--orange); } }
.hero-phone { justify-self: center; width: min(300px, 78vw); }

/* ---------- phone frame ---------- */
.phone {
  background: var(--frame); border-radius: 38px; padding: 9px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 60px -18px rgba(27,42,107,.45), 0 8px 18px rgba(0,0,0,.12);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 64px; height: 6px; border-radius: 6px; background: #3b3631; z-index: 1; opacity: .7; }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 600 / 1299; object-fit: cover; object-position: top; background: var(--surface-2); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.kicker { font: 800 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
.section-lede { font-size: 19px; color: var(--ink-dim); max-width: 42em; }
.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* history */
.hist-grid { display: grid; gap: 40px; margin-top: 36px; }
@media (min-width: 900px) { .hist-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hist-grid h3 { font-family: var(--serif); font-size: 26px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--cta); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.timeline .when { display: block; font-weight: 800; font-size: 14px; color: var(--orange-text); letter-spacing: .02em; }
.timeline p { margin: 2px 0 0; color: var(--ink-dim); }
.timeline b { color: var(--ink); }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 40px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.facts .n { display: block; font: 700 30px/1.1 var(--serif); color: var(--accent); }
:root[data-theme="dark"] .facts .n { color: var(--cta); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts .n { color: var(--cta); } }
.facts .t { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-dim); }
.source { font-size: 13px; color: var(--ink-faint); margin-top: 18px; }

/* why */
.why-grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-dim); margin: 0; }
.say { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; }
.say b { display: block; font-size: 17px; color: var(--ink); }
.say [lang="hi"] { color: var(--ink-faint); font-size: 14px; }
.ico { font-size: 26px; line-height: 1; margin-bottom: 10px; display: block; }

/* features */
.features { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: 1fr 1fr 1fr; gap: 36px 28px; } }
.feature { display: flex; flex-direction: column; gap: 18px; }
.feature .phone { width: min(260px, 72vw); align-self: center; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--ink-dim); margin: 0; }
.more { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 48px 0 0; padding: 0; list-style: none; }
.more li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--ink-dim); font-size: 15px; }
.more b { color: var(--ink); display: block; font-size: 16px; }

/* how */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.steps > li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cta); color: #1B2A6B; font: 800 18px/1 var(--sans); margin-bottom: 14px; }
.steps > li > p { color: var(--ink-dim); margin: 0; }
.lesson-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.lesson-steps li { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-dim); border: 1px solid var(--line); }

/* pricing */
.price-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); }
.plan .tag { font: 800 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-text); }
.plan h3 { font-family: var(--serif); font-size: 28px; margin: 8px 0 10px; }
.plan ul { margin: 0 0 22px; padding-left: 20px; color: var(--ink-dim); }
.plan li { margin-bottom: 6px; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* faq */
.faq { margin-top: 32px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 400; color: var(--ink-faint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-dim); margin: 0 0 18px; }

/* final cta */
.final { text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 18px; }
.final .hero-cta { justify-content: center; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--ink-dim); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--ink); }
.legal-line { margin-top: 28px; font-size: 13px; color: var(--ink-faint); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; }
.notfound .hero-cta { justify-content: center; }

/* Pre-launch (5 Nov): what is here now, what comes at launch, and that it is tentative. */
.prelaunch-note { margin: 18px auto 0; max-width: 720px; padding: 12px 14px; border-radius: 12px; font-size: .95rem;
  line-height: 1.5; background: #fff6e0; border: 1px solid #f0d58a; color: #4a3a12; }
.prelaunch-note b { color: #7a3e12; }
:root[data-theme="dark"] .prelaunch-note { background: #2c2416; border-color: #5a4720; color: #f0e2c0; }
:root[data-theme="dark"] .prelaunch-note b { color: #f2b51c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prelaunch-note { background: #2c2416; border-color: #5a4720; color: #f0e2c0; } }
