/* Seep Ghar — landing + legal pages.

   Palette mirrors app/src/theme/tokens.js, so these pages read as the same product.

   Fonts are SELF-HOSTED, copied from the faces the app already bundles. Loading Google
   Fonts would send every visitor's IP address to Google — which a privacy policy would
   then have to disclose about itself. Mukta covers Latin and Devanagari, so a Hindi
   version of these pages needs no new font.

   h1/h2 line-height is 1.35, not the 1.1 a Latin-only page would use. The app's
   typography gate (app/src/theme/__tests__/typographyAccessibility.test.js) derived from
   Mukta's own metrics that Devanagari needs ~1.31 before Android clips the matras.
   Setting it now means the Hindi version inherits a safe value instead of a bug. */

@font-face { font-family: "Mukta"; src: url("/fonts/Mukta_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("/fonts/Mukta_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #fbf4e3; --surface: #fffdf7; --surface-2: #f4e8ce;
  --line: rgba(51, 40, 26, .14); --line-2: rgba(51, 40, 26, .08);
  --ink: #33281a; --ink-soft: #6b5a42;
  --teal: #008174; --link: #0f6b63; --maroon: #a4324a;
  --confirm-bg: #ffe2a3; --confirm-ink: #33281a;
  --maxw: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1610; --surface: #28221a; --surface-2: #352e25;
    --line: rgba(239, 232, 218, .16); --line-2: rgba(239, 232, 218, .09);
    --ink: #efe8da; --ink-soft: #b0a697;
    --teal: #3fb4a6; --link: #5cccbd; --maroon: #e07a8a;
    --confirm-bg: #6b4a12; --confirm-ink: #fff2d6;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }

/* ── draft banner ── */
.draft {
  margin: 0; padding: 10px 20px; text-align: center; font-size: 14px;
  background: var(--confirm-bg); color: var(--confirm-ink); border-bottom: 1px solid var(--line);
}

/* ── header ── */
.site-head { max-width: 1080px; margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Language switch. The app follows a single-language rule — a reader picks one and the
   whole surface follows — so this is a deliberate way OUT of the page you are on, not a
   mixed-language control: each link is labelled in the language it leads to. */
.lang a { color: var(--ink); text-decoration: none; font-size: 15px;
  border: 1px solid var(--rule, rgba(0,0,0,.18)); border-radius: 999px; padding: 6px 14px; display: inline-block; }
.lang a:hover, .lang a:focus-visible { border-color: currentColor; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 600; }
.brand .mark { width: 40px; height: 40px; border-radius: 10px; display: block; }

/* ── home ── */
.hero { text-align: center; padding-block: 36px 64px; }
.hero .mark-lg { width: 96px; height: 96px; border-radius: 24px; display: block; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.hero .tagline { font-size: clamp(18px, 3.4vw, 22px); color: var(--ink-soft); max-width: 34ch; margin: 0 auto 14px; }
.hero .sub, .hero .status { color: var(--ink-soft); margin: 6px 0; }

/* ── legal ── */
.legal { padding-block: 8px 56px; }
.legal h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 600; line-height: 1.35; margin: 12px 0 4px; }
.legal h2 { font-size: 21px; font-weight: 600; line-height: 1.35; margin: 36px 0 8px; }
.legal .eff { color: var(--ink-soft); margin-top: 0; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 18px 0; }
.box.decision { border: 2px dashed var(--maroon); }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 14px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Unconfirmed facts are highlighted so a reviewer sees every one of them. The release
   gate refuses to publish while a single data-confirm attribute remains. */
mark.confirm { background: var(--confirm-bg); color: var(--confirm-ink); padding: 0 4px; border-radius: 4px; }
/* A link inside a marker inherits the marker's ink, underlined. The normal link colour
   measured 4.14:1 against the dark-mode marker background — below WCAG AA. */
mark.confirm a { color: var(--confirm-ink); text-decoration: underline; }

.review { margin-top: 44px; padding: 6px 18px 12px; border: 2px dashed var(--maroon); border-radius: 14px; background: var(--surface); }
.review h2 { margin-top: 12px; color: var(--maroon); }
.review li { margin: 8px 0; }

.back { display: inline-block; margin-top: 28px; }

/* ── footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 22px 20px 40px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 10px; }
