/* PaisaWalla — one stylesheet, no build step, no CDN, no webfonts.
   Design tokens are the spec's (§3). Two corrections, both measured:

   --muted was #6C7873 → 3.94:1 on cream. That is below WCAG AA for normal text (4.5:1), and
   it is the colour of the standing disclaimer at 13px on every page. The spec's own compliance
   rule says a disclosure must never be "fine-print grey-on-grey" (§8) and the acceptance
   criteria ask for Accessibility ≥95 (§11), so the token could not stay as written.
   #626E69 keeps the hue and clears AA: 4.56 on cream, 5.14 on card.

   --gold is an ACCENT, NEVER TEXT: 2.19:1 on cream fails even the large-text bar. It is used
   here only as a rule and a filled block.
*/

:root {
  --teal:        #1A5C5C;
  --teal-dark:   #0D4040;
  --cream:       #F2EDE4;
  --card:        #FDFBF6;
  --ink:         #1E2B29;
  --muted:       #626E69;   /* corrected — see note above */
  --muted-on-dark: #B9C4C1; /* 6.43:1 on --teal-dark */
  --gold:        #C89B3C;
  --line:        #DDD5C4;

  --wrap: 1120px;
  --radius-card: 16px;
  --radius-pill: 100px;
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6.5vw, 46px); }
h2 { font-size: clamp(24px, 4.5vw, 32px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Skip link — cheap, and the first thing an a11y audit looks for. */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: var(--cream);
  padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ── header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a:focus { color: var(--teal); text-decoration: underline; }
.site-header .btn { margin-left: 18px; }

@media (max-width: 720px) {
  /* No hamburger — the site is small enough that the footer carries navigation (§4). */
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .site-header .wrap { gap: 12px; }
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  background: var(--teal); color: var(--cream);
  border: 0; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover, .btn:focus { background: var(--teal-dark); color: var(--cream); }
.btn-lg { font-size: 18px; padding: 15px 34px; min-height: 54px; }
.btn-on-teal { background: var(--cream); color: var(--teal-dark); }
.btn-on-teal:hover, .btn-on-teal:focus { background: #fff; color: var(--teal-dark); }

.under-cta { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ── sections & cards ──────────────────────────────────────────────────── */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
.lede { font-size: 19px; max-width: 62ch; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* The maths card on a concern page. The number is the point; the Illustrative note sits
   directly under it at the SAME weight as the caption — §8 forbids relegating it to fine print. */
.math { border-left: 4px solid var(--gold); }
.math .figure { font-size: clamp(21px, 4vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .3em; }
.illustrative { font-size: 15px; color: var(--muted); font-style: italic; margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; padding-left: 46px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 18px 22px 18px 60px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: var(--cream);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}

.trust-strip { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust-strip div { display: flex; gap: 12px; align-items: flex-start; }
.trust-strip svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 3px; }

.note-box {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-card); padding: 22px;
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero h1 { margin-bottom: .35em; }

/* ── phone frame (CSS only — §3 says no fake device images) ────────────── */
.phones { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.phone {
  border: 10px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 9 / 19.5;
  max-width: 280px;
  margin: 0 auto;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
/* Visible, labelled slot until the real capture lands — never a silent broken image. */
.phone .slot {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  padding: 20px; font-size: 14px; color: var(--muted);
  background: repeating-linear-gradient(45deg, #F6F2EA, #F6F2EA 10px, #FDFBF6 10px, #FDFBF6 20px);
}
.caption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 14px; }

.hero-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.hero-media video { width: 100%; display: block; }

/* ── bands ─────────────────────────────────────────────────────────────── */
.band-teal { background: var(--teal); color: var(--cream); }
.band-teal h2 { color: var(--cream); }
.band-teal p { color: var(--cream); }
.band-teal .wrap { text-align: center; }

/* ── FAQ (native <details>, no JS) ─────────────────────────────────────── */
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 0; margin-bottom: 12px;
}
summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--teal); line-height: 1; }
details[open] summary::after { content: "−"; }
details > *:not(summary) { padding: 0 22px; }
details > *:last-child { padding-bottom: 20px; }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--teal-dark); color: var(--cream); padding: 44px 0 34px; margin-top: 20px; }
.site-footer a { color: var(--cream); }
.site-footer .brand { color: var(--cream); }
.site-footer .cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; }
.footer-nav a { font-size: 15px; }
.tagline { color: var(--muted-on-dark); font-size: 15px; margin: 10px 0 0; }
/* The standing disclaimer, §8 — 13px as specified, on a colour that actually passes AA. */
.disclaimer {
  color: var(--muted-on-dark); font-size: 13px; line-height: 1.55;
  border-top: 1px solid rgba(242,237,228,.18); margin-top: 26px; padding-top: 20px;
}
.copyright { color: var(--muted-on-dark); font-size: 13px; margin: 10px 0 0; }

/* The SEBI line, wherever SIPs or mutual funds are named (§8). Same weight as body — it is a
   required disclosure, not a footnote. */
.sebi { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ── Voxta house patterns ────────────────────────────────────────────────
   Borrowed from voxta.com, which is WordPress/Astra: the ALL-CAPS section
   eyebrow and Roboto are its two carrying signatures. Its PALETTE is not
   borrowed — that blue is Astra's stock default rather than a brand colour,
   and PaisaWalla's teal/cream is spec'd as established (§3) and has to match
   the ads and the app a tap away. Two products of one company can share a
   voice without sharing a hue. */

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .6em;
}
.band-teal .eyebrow { color: var(--cream); opacity: .9; }

/* Credibility rows on /trust/ — the awards and press that make a finance app
   reviewable by a store and verifiable by Meta (§1.2). */
.creds { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.creds li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-card); padding: 14px 18px;
}
.creds .year { color: var(--muted); font-size: 15px; white-space: nowrap; }
.people { color: var(--muted); font-size: 16px; margin: 0; }
