/* RYZ — one stylesheet for the home page and the policy pages.
   White with black ink; black with light ink when the visitor's system is in
   dark mode (the logo PNG is black on white, so it is inverted there). No
   motion anywhere. */
:root {
  --bg: #fff;
  --ink: #111;
  --muted: #666;
  --card: #f5f5f5;
  --line: #e4e4e4;
  --logo-invert: 0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --ink: #ededed;
    --muted: #9a9a9a;
    --card: #111;
    --line: #262626;
    --logo-invert: 1;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img.logo {
  filter: invert(var(--logo-invert));
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Home: the logo alone on the first screen ───────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.hero img {
  display: block;
  width: min(62vw, 62vh, 480px);
  height: auto;
}

/* ── Footer (the bottom section of rupeecom.in, as a BillionBright product) ── */
.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}
.site-footer {
  padding-bottom: 16px;
}
.footer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.footer-brand {
  grid-column: 1 / -1;
}
/* the BillionBright wordmark, as billionbright.org's own footer shows it */
.footer-brand img {
  width: 132px;
  height: 44px;
  display: block;
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  opacity: 1;
}
.footer-col svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.footer-bar nav a:hover,
.footer-bar nav a:focus-visible {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
@media (min-width: 1280px) {
  .footer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ── Policy pages ───────────────────────────────────────────────────────── */
.doc-header {
  padding: 24px 0;
}
.doc-header img {
  width: 56px;
  height: 56px;
  display: block;
}
.doc {
  width: min(100% - 32px, 800px);
  margin: 0 auto;
  padding: 8px 0 64px;
  font-size: 15px;
}
.doc h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 4px;
}
.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.doc h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}
.doc h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}
.doc p {
  margin: 0 0 12px;
}
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.doc li {
  margin: 4px 0;
}
.doc .box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.doc .box p {
  margin: 0;
}
.doc .note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
}
.doc .formula {
  font-style: italic;
  font-weight: 500;
}
