/* Sanatan Peeth — website styles (no build step)
   1 tokens · 2 base · 3 header · 4 hero · 5 sections · 6 components · 7 download · 8 pages · 9 responsive */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --saffron: #e8731a;
  --saffron-deep: #c75c0c;
  --maroon: #8a1c12;
  --gold: #f4b63f;
  --cream: #fff8ee;
  --ink: #2b1a10;

  --bg: #fff8ee;
  --bg-alt: #fdeedb;
  --surface: #ffffff;
  --surface-2: #fff3e3;
  --text: #2b1a10;
  --text-soft: #6b5242;
  --heading: #8a1c12;
  --line: #efdcc4;
  --accent: #e8731a;
  --accent-ink: #ffffff;
  --link: #a3400b;
  --badge-bg: #1d120b;
  --badge-ink: #ffffff;
  --shadow: 0 1px 2px rgba(43, 26, 16, .06), 0 10px 30px rgba(138, 28, 18, .08);
  --radius: 18px;
  --maxw: 1160px;
  --font: 'Noto Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Tiro Devanagari Hindi', 'Noto Serif', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #150d08;
    --bg-alt: #1e130c;
    --surface: #23170f;
    --surface-2: #2b1d13;
    --text: #f7eadb;
    --text-soft: #c9b19c;
    --heading: #ffc477;
    --line: #3d2a1c;
    --accent: #f08a35;
    --link: #ffb36b;
    --badge-bg: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #150d08;
  --bg-alt: #1e130c;
  --surface: #23170f;
  --surface-2: #2b1d13;
  --text: #f7eadb;
  --text-soft: #c9b19c;
  --heading: #ffc477;
  --line: #3d2a1c;
  --accent: #f08a35;
  --link: #ffb36b;
  --badge-bg: #000000;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang='hi'] body { font-size: 17.5px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 400; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.muted { color: var(--text-soft); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Language blocks: English shows unless <html lang="hi"> */
html:not([lang='hi']) [data-lang='hi'] { display: none !important; }
html[lang='hi'] [data-lang='en'] { display: none !important; }
.owner-note {
  display: inline-block; font: 600 .72rem/1.4 var(--font); letter-spacing: .02em; color: #7a4a00; background: #fff0c2;
  border: 1px dashed #d9a300; border-radius: 6px; padding: 1px 7px; vertical-align: middle; white-space: nowrap;
}

/* 3. Header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); flex-shrink: 0; }
.logo img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(138, 28, 18, .25); }
.logo span { font: 1.35rem/1 var(--font-display); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); }
.head-tools { display: flex; gap: 6px; align-items: center; margin-left: 8px; }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px;
  min-width: 40px; height: 40px; padding: 0 10px; font: 600 .9rem/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* 4. Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(1200px 600px at 80% 0%, #ffd79a 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #ffe7c7 0%, transparent 60%), var(--bg);
}
:root[data-theme='dark'] .hero::before { background: radial-gradient(1000px 600px at 80% 0%, #4a2309 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #2c1408 0%, transparent 60%), var(--bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero::before { background: radial-gradient(1000px 600px at 80% 0%, #4a2309 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #2c1408 0%, transparent 60%), var(--bg); }
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--saffron-deep); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
:root[data-theme='dark'] .eyebrow { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .eyebrow { color: var(--gold); } }
.hero h1 { margin-top: 18px; }
.hero h1 .deva { display: block; font-size: 1.15em; color: var(--maroon); }
:root[data-theme='dark'] .hero h1 .deva { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hero h1 .deva { color: var(--gold); } }
.lead { font-size: 1.18rem; color: var(--text-soft); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art picture img {
  border-radius: 36px; box-shadow: 0 30px 60px rgba(138, 28, 18, .28), 0 0 0 8px color-mix(in srgb, var(--gold) 55%, transparent);
  aspect-ratio: 1242 / 2085; object-fit: cover; width: 100%;
}
.hero-art .glow { position: absolute; inset: -40px; z-index: -1; background: radial-gradient(circle at 50% 30%, rgba(244, 182, 63, .55), transparent 65%); filter: blur(10px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--text-soft); font-size: .95rem; }
.hero-points li::before { content: '✦ '; color: var(--saffron); }

/* 5. Sections ---------------------------------------------------------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }
.kicker { display: block; font: 700 .8rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-deep); margin-bottom: 12px; }
:root[data-theme='dark'] .kicker { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .kicker { color: var(--gold); } }

.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.about-grid picture img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 6px var(--surface), 0 0 0 10px var(--gold), var(--shadow); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--text-soft); margin: 0; }
.feature.wide { grid-column: span 2; }
.tag { display: inline-block; font: 700 .72rem/1.6 var(--font); text-transform: uppercase; letter-spacing: .08em; background: var(--surface-2); color: var(--saffron-deep); border-radius: 999px; padding: 1px 9px; margin-bottom: 8px; }

/* Invite 21 */
.invite-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.ring { position: relative; width: 100%; max-width: 300px; margin-inline: auto; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: url(#ringGrad); stroke-linecap: round; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font: 3.2rem/1 var(--font-display); color: var(--heading); }
.ring-label span { color: var(--text-soft); font-size: .95rem; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.rules .n { width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 28%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line)); }

/* Family tree */
.tree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); max-width: 440px; margin-inline: auto; }
.tabbar div { text-align: center; font-size: .75rem; color: var(--text-soft); padding: 8px 2px; border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.tabbar div b { display: block; font-size: 1.25rem; line-height: 1.3; }
.tabbar .center { background: linear-gradient(135deg, var(--gold), var(--saffron)); color: #fff; transform: translateY(-14px); box-shadow: 0 10px 20px rgba(232, 115, 26, .35); font-weight: 700; }
.dots { display: flex; gap: 8px; justify-content: center; margin: 22px 0 6px; flex-wrap: wrap; }
.dots span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--saffron); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--saffron-deep); background: var(--surface); }
.dots span.on { background: var(--saffron); color: #fff; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 54px; }
.steps li::before {
  content: counter(s); position: absolute; top: 18px; left: 24px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maroon); color: #fff; font-weight: 700; font-size: .9rem;
}
.steps h3 { font-size: 1.12rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* 6. Components -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--saffron), #d4560b); color: #fff; box-shadow: 0 8px 20px rgba(232, 115, 26, .35); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* Store badges — drawn in HTML/CSS/SVG (no third-party trademark artwork) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 190px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 12px;
  background: var(--badge-bg); color: var(--badge-ink); text-decoration: none; border: 1px solid #5a4636; position: relative;
}
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .t { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .t small { font-size: .7rem; opacity: .85; letter-spacing: .02em; }
.store-badge .t b { font-size: 1.15rem; font-weight: 600; }
.store-badge:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 60%, transparent); }
.store-badge.soon { background: var(--surface-2); color: var(--text-soft); border: 1px dashed var(--text-soft); cursor: default; }
.store-badge.soon:hover { box-shadow: none; }
.store-badge .soon-pill { position: absolute; top: -9px; right: 10px; font: 700 .66rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--ink); padding: 4px 7px; border-radius: 999px; }

/* 7. Download ---------------------------------------------------------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.apk dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 14px 0; font-size: .95rem; }
.apk dt { color: var(--text-soft); }
.apk dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sha { font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); padding: 6px 8px; border-radius: 8px; display: block; word-break: break-all; }
.copy { margin-top: 6px; }
.guide { margin: 10px 0 0; padding-left: 1.2em; color: var(--text-soft); font-size: .95rem; }
.guide li { margin-bottom: 6px; }
.guide code { font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.note { font-size: .9rem; color: var(--text-soft); border-left: 3px solid var(--gold); padding-left: 12px; margin-top: 14px; }
.knobee { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.knobee-mark {
  width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f6b3a, #5aa05f); box-shadow: var(--shadow);
}
.knobee-mark svg { width: 52px; height: 52px; }

/* Footer */
.site-foot { background: #1d0f08; color: #f2e2d0; padding: 48px 0 28px; margin-top: 0; }
.site-foot a { color: #ffd08a; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: #fff; font: 600 1rem/1.3 var(--font); margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-bottom { border-top: 1px solid #3c2618; margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #c9b19c; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* 8. Sub pages --------------------------------------------------------- */
.page-hero { padding: 48px 0 24px; text-align: center; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.draft-banner { background: #fff0c2; color: #5c3a00; border: 1px dashed #d9a300; padding: 12px 16px; border-radius: 12px; margin-bottom: 24px; }
.invite-card { max-width: 620px; margin: 0 auto; text-align: center; }
.invite-card .avatar { width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 28px; box-shadow: var(--shadow); }
.invite-card .badges { justify-content: center; margin-top: 12px; }
.ref-code { display: inline-block; font: 600 1rem/1 ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px dashed var(--saffron); padding: 8px 12px; border-radius: 10px; margin-top: 6px; word-break: break-all; }
.status { min-height: 1.6em; }
[hidden] { display: none !important; }

/* 9. Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .invite-grid, .tree-grid, .download-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 360px); }
  .about-grid picture { max-width: 220px; margin-inline: auto; }
  .feature.wide { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .head-tools { margin-left: auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding-top: 28px; }
  .logo span { font-size: 1.15rem; }
  .icon-btn { min-width: 38px; height: 38px; padding: 0 8px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .store-badge { flex: 1 1 100%; }
  .knobee { grid-template-columns: 1fr; text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
  .apk dl { grid-template-columns: 1fr; gap: 2px; }
  .apk dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
