/* Atharsoft company site. Brand: "Grape pop" (KidsStories/brand/colors.md). */
@font-face { font-family: "Baloo"; src: url("/assets/fonts/BalooBhaijaan2_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Baloo"; src: url("/assets/fonts/BalooBhaijaan2_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Readex"; src: url("/assets/fonts/ReadexPro_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex"; src: url("/assets/fonts/ReadexPro_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --purple: #7C4DFF;
  --purple-deep: #5A2FE0;
  --purple-ink: #3B1F9E;
  --lavender: #F1ECFF;
  --cream: #FFF8EC;
  --cream-deep: #FBEFD6;
  --tangerine: #FF9F1C;
  --coral: #FF6B6B;
  --sun: #FFC83D;
  --sky: #22C1EE;
  --mint: #7FE0C3;
  --ink: #2A1F5C;
  --ink-soft: #5C5480;
  --rule: rgba(42, 31, 92, 0.12);
  --shadow: 0 24px 60px rgba(42, 31, 92, 0.18);
  --radius: 28px;
  --head: "Baloo", "Baloo Bhaijaan 2", ui-rounded, system-ui, sans-serif;
  --body: "Readex", "Readex Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple-deep); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.01em; font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 16px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 236, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav a:not(.button) { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--tangerine); color: var(--ink);
  font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 8px 0 rgba(42, 31, 92, 0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 0 rgba(42, 31, 92, 0.14); }
.button:active { transform: translateY(2px); box-shadow: 0 4px 0 rgba(42, 31, 92, 0.14); }
.button.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.button.soft { background: var(--lavender); color: var(--purple-ink); box-shadow: 0 8px 0 rgba(124, 77, 255, 0.14); }
.button svg { width: 20px; height: 20px; }
.nav .button { padding: 10px 18px; font-size: 16px; box-shadow: 0 5px 0 rgba(42, 31, 92, 0.12); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 2px 0 rgba(42, 31, 92, 0.08); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.eyebrow.purple { background: var(--lavender); color: var(--purple-ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #9B7BFF 0%, transparent 60%),
              radial-gradient(800px 500px at -10% 110%, #5A2FE0 0%, transparent 60%),
              linear-gradient(160deg, #7C4DFF 0%, #6A3FF0 55%, #5A2FE0 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.07);
}
.hero::before { width: 520px; height: 520px; left: -160px; top: -200px; }
.hero::after { width: 380px; height: 380px; right: 8%; bottom: -200px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: rgba(255, 255, 255, 0.92); max-width: 34em; margin-bottom: 32px; }
.hero-product { max-width: 34em; margin-bottom: 28px; color: rgba(255, 255, 255, 0.92); font-size: 18px; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.hero-art .phone { position: relative; z-index: 2; width: 300px; transform: rotate(-3deg); }
.hero-art .pip { position: absolute; z-index: 3; width: 290px; right: -20px; bottom: -28px; filter: drop-shadow(0 18px 24px rgba(42, 31, 92, 0.35)); }
.hero-art .blob { position: absolute; z-index: 1; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #B49CFF, #7C4DFF 70%); opacity: 0.55; left: 50%; top: 50%; transform: translate(-50%, -45%); }
.hero-art .badge { position: absolute; z-index: 4; padding: 10px 16px; border-radius: 18px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 16px; box-shadow: var(--shadow); }
.hero-art .badge.a { left: -10px; top: 60px; transform: rotate(-6deg); }
.hero-art .badge.b { left: 0; bottom: 120px; transform: rotate(4deg); }
.hero-art .badge .star { color: var(--tangerine); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; }
  .hero-art { min-height: 520px; margin-top: 8px; }
  .hero-art .pip { width: 240px; right: 0; }
  .hero-art .badge.a { left: 0; }
}
@media (max-width: 480px) {
  .hero-art { min-height: 460px; }
  .hero-art .phone { width: 240px; }
  .hero-art .pip { width: 190px; right: -6px; }
  .hero-art .badge { display: none; }
}

/* Trust strip */
.strip { background: var(--cream-deep); border-bottom: 1px solid var(--rule); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; padding: 16px 24px; }

/* Phone frame */
.phone { width: 280px; padding: 10px; border-radius: 46px; background: #1E1740; box-shadow: var(--shadow); }
.phone img { display: block; width: 100%; border-radius: 36px; }
.phone.sm { width: 240px; border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 32px; }

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 42em; margin-bottom: 48px; }
.section-head p { font-size: 19px; color: var(--ink-soft); margin: 14px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lavender { background: var(--lavender); }
.white { background: #fff; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }

.card { padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: 0 2px 0 rgba(42, 31, 92, 0.06), 0 12px 32px rgba(42, 31, 92, 0.06); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: var(--lavender); color: var(--purple-ink); font-family: var(--head); font-weight: 800; font-size: 20px; }
.card .num.sun { background: var(--sun); color: var(--ink); }
.card .num.coral { background: var(--coral); color: var(--ink); }
.card .num.sky { background: var(--sky); color: var(--ink); }
.card .num.mint { background: var(--mint); color: var(--ink); }
.card.tinted { background: var(--cream); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px dashed var(--rule); }
.feature .art { display: flex; justify-content: center; align-items: center; position: relative; }
.feature .art .buddy { position: absolute; width: 150px; bottom: -16px; right: calc(50% - 230px); filter: drop-shadow(0 12px 16px rgba(42, 31, 92, 0.25)); }
.feature .art .buddy.left { right: auto; left: calc(50% - 230px); }
.feature.flip .art { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.feature p { font-size: 18px; color: var(--ink-soft); }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding: 8px 0 8px 32px; font-size: 17px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 -3px 0 rgba(42, 31, 92, 0.12); }
.feature li::after { content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 5px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .art { order: 0; }
  .feature .art .buddy { width: 120px; right: max(0px, calc(50% - 230px)); }
  .feature .art .buddy.left { left: max(0px, calc(50% - 230px)); right: auto; }
}

/* Games */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.game { text-align: center; }
.game .phone { margin: 0 auto 22px; }
.game h3 { margin-bottom: 6px; }
.game p { color: var(--ink-soft); font-size: 16px; margin: 0; }
@media (max-width: 900px) { .games { grid-template-columns: 1fr; } }
.game-extra { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .game-extra { grid-template-columns: 1fr; } }

/* Friends */
.friend { text-align: center; padding: 28px 22px; }
.friend img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 14px; display: block; }
.friend h3 { font-size: 22px; margin-bottom: 6px; }
.friend p { font-size: 15px; }

/* Channel */
.channel { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.channel img { width: 96px; height: 96px; border-radius: 50%; }
.channel h3 { margin-bottom: 6px; }
.channel p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .channel { grid-template-columns: 1fr; text-align: center; } .channel img { margin: 0 auto; } }

/* CTA band */
.band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #7C4DFF, #5A2FE0); }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.9); font-size: 19px; max-width: 36em; }
.band .pip { width: 220px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.25)); }
.band small { display: block; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } .band .pip { width: 170px; margin: 0 auto; } }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about p { font-size: 18px; color: var(--ink-soft); }
.about .card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 16px; }
.about .card dt { color: var(--ink-soft); }
.about .card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.about address { font-style: normal; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .about .card dl { grid-template-columns: 1fr; gap: 4px; }
  .about .card dd + dt { margin-top: 12px; }
}

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 36px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Text pages (privacy, support, 404) */
.page { max-width: 760px; padding: 64px 24px 96px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.page .updated { margin: 0 0 36px; color: var(--ink-soft); font-size: 15px; }
.page h2 { margin: 44px 0 12px; font-size: 28px; }
.page h3 { margin: 26px 0 6px; font-size: 19px; font-weight: 700; }
.page p, .page li { color: var(--ink-soft); }
.page strong { color: var(--ink); }
.page ul { padding-left: 22px; }
.page .toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.page .note { padding: 18px 22px; border-radius: 18px; background: var(--lavender); color: var(--purple-ink); }
.page.center { text-align: center; }
.page .big-pip { width: 220px; margin: 0 auto 10px; display: block; }
