/* Easy Shabad Finder — shared stylesheet
   One file for every page. Brand blue kept from the app splash (#1C7FE8).
   Light + dark themes; dark follows the OS. */

:root {
  --brand: #1c7fe8;
  --brand-deep: #0b57d0;
  --brand-soft: #eef5ff;
  --brand-line: #d9e8ff;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;

  --bg: #ffffff;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .1);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5ea9ff;
    --brand-deep: #8cc2ff;
    --brand-soft: #12233c;
    --brand-line: #1e3a5f;

    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;

    --bg: #0b1220;
    --bg-2: #0f172a;
    --card: #131c2e;
    --line: #1e293b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 16px -4px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.lead { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Skip link — keyboard users shouldn't tab the whole nav on every page. */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 17px; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 7px 11px; border-radius: 9px; font-size: 15px;
  font-weight: 550; color: var(--ink-2);
}
.site-nav a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }

/* Below the desktop breakpoint the nav becomes a single scrollable row.
   Wrapping instead would push the sticky header to two lines and eat the top
   of every page on a phone. Scrolling keeps all five links in the DOM, which
   matters for crawlers as much as for people. */
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 10px; }
  .brand { font-size: 15px; flex: none; }
  .site-nav {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: -20px; padding-right: 20px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 6px 9px; font-size: 14px; white-space: nowrap; }
}

/* Header only — the footer brand keeps its full wordmark. */
@media (max-width: 620px) {
  .site-header .brand { font-size: 14px; gap: 7px; max-width: 92px; line-height: 1.15; }
  .site-header .brand img { width: 26px; height: 26px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: 16px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary {
  background: var(--brand); border-color: transparent; color: #fff;
}
@media (prefers-color-scheme: dark) {
  .btn.primary { color: #08111f; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 420px at 82% -12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 62%),
    radial-gradient(760px 380px at -12% 6%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  border: 1px solid var(--brand-line);
  font-size: 14px; font-weight: 650;
  margin-bottom: 18px;
}

/* ---------- phone frames ---------- */

.phone {
  position: relative;
  width: 100%; max-width: 288px; margin: 0 auto;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2b3648, #0e1420);
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 30px; width: 100%; }
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, .22);
}

/* Two phones, slightly fanned — used in the hero. */
.phone-duo { display: flex; justify-content: center; align-items: center; gap: 0; }
.phone-duo .phone:first-child { transform: rotate(-5deg) translateX(16px); z-index: 1; }
.phone-duo .phone:last-child  { transform: rotate(5deg) translateX(-16px) scale(.94); }
/* Two fanned phones need room. Below this they overlap into an unreadable
   smudge, so drop the second one and straighten the first. */
@media (max-width: 700px) {
  .phone-duo .phone:last-child { display: none; }
  .phone-duo .phone:first-child { transform: none; translate: 0; }
}

.shot-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; margin-top: 36px;
}
.shot { text-align: center; }
.shot .cap { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 64px 0; }
section.tint { background: var(--bg-2); }
.section-head { max-width: 660px; margin-bottom: 36px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  margin-bottom: 14px;
}

/* Feature page: alternating text/screenshot rows. */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; margin-bottom: 72px;
}
.split:nth-child(even) .split-media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; margin-bottom: 52px; }
  .split:nth-child(even) .split-media { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li {
  position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-2);
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--brand); font-weight: 800;
}

/* ---------- stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; margin-top: 34px;
}
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--brand-deep); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- store badges ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 13px;
  background: #0f172a; color: #fff; border: 1px solid #0f172a;
  box-shadow: var(--shadow);
}
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.3; }
.store strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.25; }
.store svg { width: 25px; height: 25px; flex: none; fill: currentColor; }
@media (prefers-color-scheme: dark) {
  .store { background: #f1f5f9; color: #0b1220; border-color: #f1f5f9; }
}

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; margin-bottom: 12px; background: var(--card);
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: 0 0 18px; }

/* ---------- cta band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; border-radius: var(--radius-lg);
  padding: 52px 40px; text-align: center; margin: 8px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-inline: auto; }
.cta-band .stores { justify-content: center; margin-top: 26px; }
.cta-band .store { background: #fff; color: #0f172a; border-color: #fff; }

/* ---------- legal pages ---------- */

.legal { padding: 48px 0 72px; }
.legal h2 {
  font-size: 23px; margin-top: 44px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; color: var(--ink-2); }
.legal .meta { color: var(--muted); font-size: 15px; }
.legal .toc {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0;
}
.legal .toc ul { margin: 0; }

/* ---------- breadcrumb ---------- */

.crumb { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 7px; opacity: .6; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 52px 0 36px; margin-top: 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px; margin-bottom: 34px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-2); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
