/*
 * Kahan Chale — the site.
 *
 * The same tokens as the app (brand kit v1.2): Jamun on what you tap,
 * Terracotta on what you feel, over a calm warm page.
 *
 * The fonts are served from here rather than from Google. The privacy policy
 * this site exists to host makes a point of loading nothing from anywhere else,
 * on the grounds that a privacy page which pulls a third-party asset is
 * reporting its readers to that third party. That argument does not stop being
 * true on the page next to it.
 */

@font-face {
  font-family: 'Baloo 2';
  src: url('/fonts/baloo-2-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Hind';
  src: url('/fonts/hind-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hind';
  src: url('/fonts/hind-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Hind';
  src: url('/fonts/hind-devanagari-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  /* Loaded only when Devanagari is actually on the page. */
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+A830-A839;
}

:root {
  --hero: #74305F;
  --on-hero: #ffffff;
  --accent-text: #BA552D;
  --bg: #F9F6F8;
  --surface: #ffffff;
  --text: #261D23;
  --soft: #73646E;
  --line: #E7DEE5;
  --tint: #F4E1EE;
  --tint-text: #682754;
  --title: 'Baloo 2', system-ui, sans-serif;
  --body: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hero: #AB408A;
    --accent-text: #D77E5B;
    --bg: #1A1418;
    --surface: #281F25;
    --text: #F3EFE9;
    --soft: #AFA1AB;
    --line: #3E323A;
    --tint: #462A3D;
    --tint-text: #E0B8D4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--hero); }

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

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 62rem;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--title);
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { border-radius: 10px; display: block; }

.bar nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--soft);
}
.bar nav a:hover { color: var(--text); }

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

.hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 56px 24px 24px;
  text-align: center;
}

.hero img.mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.hero p.lede {
  font-size: 1.12rem;
  color: var(--soft);
  margin: 0 auto;
  max-width: 34rem;
}

.hindi {
  font-size: 1rem;
  color: var(--accent-text);
  margin-top: 10px;
}

/* --------------------------------------------------------------- actions -- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--hero); color: var(--on-hero); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }

.note { color: var(--soft); font-size: 0.86rem; margin-top: 14px; }

/* ----------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.card h3 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.card p { margin: 0; color: var(--soft); font-size: 0.97rem; }

/* ----------------------------------------------------------------- prose -- */

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 8px 24px 64px;
}

.prose h1 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin: 12px 0 4px;
}

.prose h2 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 2.2rem 0 0.5rem;
}

.prose p, .prose li { margin: 0.68rem 0; }
.prose ul { padding-left: 1.2rem; }
.prose .updated { color: var(--soft); font-size: 0.9rem; margin-bottom: 1.8rem; }

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

.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 26px 24px 46px;
  text-align: center;
  color: var(--soft);
  font-size: 0.9rem;
}

.foot a { color: var(--soft); }
.foot a:hover { color: var(--text); }

/* ================================================================ layout == */

.inner { max-width: 62rem; margin: 0 auto; padding: 52px 24px; }
.inner.narrow { max-width: 42rem; }

/*
 * A band of a slightly different surface, to break a long page into sections
 * without drawing a line across it every time.
 */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band { border-top: 0; }

.section-title {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-lede { color: var(--soft); max-width: 44rem; margin: 0 0 14px; }

.status {
  display: inline-block;
  margin-top: 26px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tint-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ================================================================= steps == */

.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.steps li { margin: 0; }

.steps .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--hero);
  color: var(--on-hero);
  font-family: var(--title);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.steps h3 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.16rem;
  margin: 0 0 6px;
}

.steps p { margin: 0; color: var(--soft); font-size: 0.97rem; }
.steps em, .plain em { font-style: normal; color: var(--accent-text); }

/* ================================================================= plain == */

.plain { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.plain li {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: var(--soft);
  max-width: 46rem;
}
.plain strong { color: var(--text); font-weight: 600; }

/* ================================================================== grid == */

.grid { padding: 26px 0 0; }

/* ================================================================ footer == */

.foot .fine { color: var(--soft); opacity: 0.75; font-size: 0.82rem; margin-top: 6px; }

.cta { margin: 24px 0 0; }
.cta .btn { font-size: 1rem; padding: 15px 28px; }
.note { color: var(--soft); font-size: 0.88rem; margin-top: 14px; max-width: 42rem; }

/* Written out rather than only linked, so it survives a device with no mail app. */
.addr {
  font-weight: 600;
  color: var(--text);
  background: var(--tint);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  user-select: all;
}

/* The address is the point; the buttons are two ways of using it. */
.address-line { margin: 22px 0 16px; }
.address-line .addr { font-size: 1.05rem; padding: 7px 14px; border-radius: 10px; }

.actions-left { justify-content: flex-start; margin: 0; }

/* The copy control is a button, not a link, so it needs the anchor's reset. */
button.btn { font-family: var(--body); cursor: pointer; }
button.btn:hover { border-color: var(--hero); }
