/* Rajat-Online-App-Download — single page stylesheet (no external requests) */

:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --ink: #14232b;
  --muted: #475a63;
  --brand: #0b5d66;
  --brand-d: #073f46;
  --brand-l: #d9eef0;
  --accent: #ff7a59;
  --sand: #f1ebdd;
  --line: #e3dccd;
  --radius: 20px;
  --shadow: 0 22px 44px -22px rgba(7, 63, 70, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-d); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.55rem; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: -4px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; }
.nav a.link { display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a.link:hover { background: var(--brand-l); }
.ext::after { content: "↗"; font-size: .8em; margin-left: .25em; opacity: .7; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--accent); color: #2a0e06; border: 2px solid var(--accent); }
.btn:hover { background: #ff9073; color: #2a0e06; }
.btn.ghost { background: transparent; color: var(--brand-d); border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand-l); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #0c1418; color: #fff; text-decoration: none; padding: 9px 16px 9px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); min-width: 168px; line-height: 1.15; }
.store:hover { background: #1b2a31; color: #fff; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: .68rem; opacity: .85; letter-spacing: .02em; }
.store b { font-size: 1.05rem; font-weight: 700; }
.store.on-light { border-color: #0c1418; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, #073f46 0%, #0b5d66 55%, #13808b 100%); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: auto -10% -35% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 89, .35), transparent 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 64px 72px; position: relative; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #ffd2c4; margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d7ecee; max-width: 36rem; }
.dl-block { display: flex; gap: 22px; align-items: flex-start; margin-top: 28px; flex-wrap: wrap; }
.dl-block .app-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); flex: none; }
.dl-block h2 { font-size: 1.5rem; margin-bottom: 12px; color: #fff; font-family: var(--font); font-weight: 700; }
.dl-block p { margin: 14px 0 0; color: #d7ecee; }
.dl-block p a { color: #fff; font-weight: 700; }
.dl-block p a:hover { color: #ffd2c4; }

/* ---------- device mock-ups (original art) ---------- */
.stage { position: relative; aspect-ratio: 1 / 1.05; width: min(100%, 520px); margin-inline: auto; }
.tablet { position: absolute; inset: 0 14% 8% 0; background: #fff; color: var(--ink); border-radius: 28px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); border: 6px solid #e8f2f3; overflow: hidden; }
.phone { background: #10181c; border-radius: 34px; padding: 9px; box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .55); }
.phone-screen { background: #fffdf7; color: var(--ink); border-radius: 26px; padding: 14px 14px 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; gap: 8px; }
.phone.dark .phone-screen { background: #151f24; color: #f2f7f8; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 9 / 18.5; }

.m-head { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--muted); }
.m-head b { font-size: .95rem; color: var(--ink); display: block; font-family: var(--serif); }
.lib-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-size: .5rem; font-weight: 800; text-align: center; line-height: 1.05; text-transform: uppercase; flex: none; }
.cover-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: auto; }
.tile { border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: .75rem; color: #fff; min-height: 46px; display: flex; align-items: flex-end; }
.tile.t1 { background: #e0a21a; color: #2c1f00; } .tile.t2 { background: #7a3fd1; } .tile.t3 { background: #0f6b4d; } .tile.t4 { background: #1f6fb5; }
.m-nav { display: flex; justify-content: space-around; border-top: 1px solid #e7e1d2; padding-top: 8px; margin-top: auto; }
.m-nav i { width: 18px; height: 18px; border-radius: 6px; background: #c9d6d8; display: block; }
.m-nav i.on { background: var(--brand); }
.phone.dark .m-nav { border-color: #2a373d; } .phone.dark .m-nav i { background: #3a4a51; } .phone.dark .m-nav i.on { background: #5fd0dc; }

/* covers */
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; color: #fff; display: flex; align-items: flex-end; padding: 6px; font-family: var(--serif); font-weight: 700; font-size: .62rem; line-height: 1.1; overflow: hidden; box-shadow: 3px 4px 0 rgba(20, 35, 43, .16); }
.cover b { position: relative; z-index: 1; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.cover::before { content: ""; position: absolute; border-radius: 50%; opacity: .5; }
.c1 { background: linear-gradient(160deg, #264653, #2a9d8f); } .c1::before { width: 70%; aspect-ratio: 1; right: -15%; top: 8%; background: #e9c46a; }
.c2 { background: linear-gradient(160deg, #6d1a36, #c9184a); } .c2::before { width: 90%; aspect-ratio: 1; left: -30%; top: -10%; background: #ffb3c1; }
.c3 { background: linear-gradient(160deg, #1d3557, #457b9d); } .c3::before { width: 50%; aspect-ratio: 1; left: 25%; top: 14%; background: #f1faee; }
.c4 { background: linear-gradient(160deg, #3a0ca3, #7209b7); } .c4::before { width: 80%; aspect-ratio: 1; right: -30%; bottom: 10%; background: #f72585; }
.c5 { background: linear-gradient(160deg, #283618, #606c38); } .c5::before { width: 60%; aspect-ratio: 1; left: -15%; top: 12%; background: #fefae0; }
.c6 { background: linear-gradient(160deg, #bc6c25, #dda15e); color: #2c1700; } .c6::before { width: 70%; aspect-ratio: 1; right: -20%; top: 5%; background: #fefae0; }
.c7 { background: linear-gradient(160deg, #03045e, #0077b6); } .c7::before { width: 75%; aspect-ratio: 1; left: 12%; top: 20%; background: #90e0ef; }
.c8 { background: linear-gradient(160deg, #370617, #9d0208); } .c8::before { width: 55%; aspect-ratio: 1; right: -10%; top: 18%; background: #faa307; }
.c9 { background: linear-gradient(160deg, #004b23, #38b000); } .c9::before { width: 65%; aspect-ratio: 1; left: -18%; top: 4%; background: #ccff33; }
.c10 { background: linear-gradient(160deg, #5a189a, #ff6d00); } .c10::before { width: 60%; aspect-ratio: 1; right: 6%; top: 10%; background: #ffd60a; }
.c11 { background: linear-gradient(160deg, #212529, #6c757d); } .c11::before { width: 70%; aspect-ratio: 1; left: 15%; top: 15%; background: #f8f9fa; }
.c12 { background: linear-gradient(160deg, #ae2012, #ee9b00); } .c12::before { width: 80%; aspect-ratio: 1; left: -10%; top: 30%; background: #e9d8a6; }

.strip { background: var(--sand); padding: 28px 0 24px; overflow: hidden; }
.strip .row { display: flex; gap: 14px; justify-content: center; }
.strip .cover { flex: 0 0 clamp(78px, 9vw, 118px); font-size: clamp(.6rem, .9vw, .78rem); }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.sec-head { max-width: 46rem; margin: 0 auto 44px; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.15rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 8px 24px -18px rgba(7, 63, 70, .5); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 84px; }
.feature.flip .art { order: 2; }
.feature .art { display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-l), #fff4ee); border-radius: 32px; padding: 40px 24px; min-height: 440px; }
.feature .art .phone { width: min(260px, 70%); aspect-ratio: 9 / 18.5; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature p { color: var(--muted); font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) 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='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* phone content: browse / reader / player */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .66rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff1d6; color: #7a4a00; }
.chip.on { background: #e9890c; color: #fff; }
.subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ece6d6; }
.subjects li { padding: 9px 6px; border-bottom: 1px solid #ece6d6; font-size: .78rem; }
.subjects li:nth-child(odd) { border-right: 1px solid #ece6d6; }
.subjects li::before { content: "•"; color: #e9890c; margin-right: 6px; }
.reader-text { font-family: var(--serif); font-size: .74rem; line-height: 1.5; color: #2b2b2b; }
.reader-text mark { background: #ffe58a; padding: 0 2px; }
.reader-bar { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; color: var(--muted); }
.reader-tools { display: flex; gap: 8px; justify-content: center; margin-top: auto; }
.reader-tools span { padding: 5px 10px; border-radius: 8px; background: #efe9d9; font-weight: 700; font-size: .7rem; }
.player-cover { width: 62%; margin: 8px auto 4px; }
.player-title { text-align: center; font-family: var(--serif); font-weight: 700; font-size: .95rem; }
.player-title small { display: block; font-family: var(--font); font-weight: 500; font-size: .68rem; color: #9db4ba; }
.progress { height: 5px; border-radius: 999px; background: #2e3d44; position: relative; margin-top: 8px; }
.progress::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: #5fd0dc; border-radius: 999px; }
.times { display: flex; justify-content: space-between; font-size: .62rem; color: #9db4ba; }
.controls { display: flex; justify-content: center; align-items: center; gap: 16px; }
.controls .play { width: 46px; height: 46px; border-radius: 50%; background: #5fd0dc; display: grid; place-items: center; }
.controls svg { width: 22px; height: 22px; fill: #f2f7f8; }
.controls .play svg { fill: #10252a; width: 20px; height: 20px; }
.p-chips { display: flex; justify-content: center; gap: 8px; margin-top: auto; }
.p-chips span { font-size: .66rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #243238; color: #d8ecef; }

/* ---------- how it works ---------- */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.step-title { display: flex; gap: 14px; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin: 0 0 24px; text-align: left; }
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font); font-weight: 800; flex: none; }
.device-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.device-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.device-card svg.dev { width: 92px; height: 70px; color: var(--brand); }
.device-card h3 { font-size: 1.08rem; margin: 0; font-family: var(--font); font-weight: 700; }
.device-card .store { min-width: 0; width: 100%; justify-content: center; }
.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-card svg { width: 100%; height: 150px; margin-bottom: 14px; background: var(--brand-l); border-radius: 14px; }
.step-card .step-title { justify-content: flex-start; font-size: 1.12rem; font-family: var(--font); margin: 0; align-items: flex-start; }
.compat { margin-top: 56px; text-align: center; }
.compat h3 { font-family: var(--font); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compat ul { list-style: none; margin: 18px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.compat li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #073f46, #0b5d66); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d7ecee; max-width: 36rem; margin-inline: auto; }
.cta .stores { justify-content: center; margin-top: 24px; }

/* ---------- policies ---------- */
.policies { background: var(--surface); border-top: 1px solid var(--line); }
.policy { max-width: 52rem; margin: 0 auto 44px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.policy:target { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); }
.policy h3 { font-size: 1.6rem; }
.policy h4 { font-family: var(--font); font-size: 1.02rem; margin: 1.2em 0 .3em; }
.policy ul { padding-left: 1.2em; }
.policy .upd { color: var(--muted); font-size: .92rem; }

/* ---------- footer ---------- */
.footer { background: #0c1a1f; color: #cfdde0; padding: 56px 0 32px; }
.footer a { color: #fff; }
.footer a:hover { color: #ffd2c4; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer h2 { font-family: var(--font); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb0b6; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand small { color: #8fb0b6; }
.footer .stores { margin-top: 16px; }
.legal { border-top: 1px solid #22353b; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; }
  .stage { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .art { order: 0; }
  .feature .art { min-height: 380px; }
  .device-cards { grid-template-columns: repeat(2, 1fr); }
  .step-cards { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  html { scroll-padding-top: 12px; }
  .topbar { position: static; }
  .stage { aspect-ratio: 1 / 1.1; }
  .stage .phone { width: 42%; aspect-ratio: 9 / 14; }
  .stage .hp-extra { display: none; }
  .stage .player-title { font-size: .85rem; }
  .nav { flex-wrap: wrap; padding-block: 8px; }
  .nav ul { justify-content: flex-start; }
  .cards, .device-cards, .f-grid { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 100%; }
  .policy { padding: 22px 18px; }
  .strip .row { justify-content: flex-start; }
}
