/* ============================================================
   AdSaathi public site — the shared design system.

   Loaded by /, /product, /privacy, /terms. Everything here is
   cross-page: the typefaces, the colour tokens, the nav, the
   footer, and the document treatment the three text pages share.
   Page-specific styling stays inline in each template.

   The point of this file is that the brand cannot drift. Four
   copies of the same :root block is how a palette quietly ends up
   with four slightly different greens.
   ============================================================ */

/* ── typefaces ────────────────────────────────────────────────
   Subset to Latin (64KB for all five). They carry no Indic
   glyphs on purpose: Hindi/Gujarati/Tamil/Bengali text on the
   landing page falls through to the Noto family the device
   already has, which renders those scripts properly. */
@font-face { font-family: 'Bricolage'; src: url('/static/fonts/bricolage-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/static/fonts/bricolage-xbold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('/static/fonts/karla.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'PlexMono'; src: url('/static/fonts/plexmono.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PlexMono'; src: url('/static/fonts/plexmono-med.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ── tokens ─────────────────────────────────────────────────── */
:root {
  --indic: 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Gujarati', 'Noto Sans Tamil', 'Noto Sans Bengali';
  --body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', var(--indic), sans-serif;
  --display: 'Bricolage', 'Karla', -apple-system, BlinkMacSystemFont, var(--indic), sans-serif;
  --mono: 'PlexMono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ground: #F2EEE3;
  --surface: #E7E0CE;
  --surface-2: #DCD3BC;
  --ink: #211C16;
  --ink-soft: #52493C;
  --green: #1B5C46;
  --green-tint: #DCE7DF;
  --marigold: #D97D0A;
  --marigold-ink: #7A4406;
  --marigold-tint: #F5E2C4;
  --line: rgba(33, 28, 22, 0.14);
  --line-firm: rgba(33, 28, 22, 0.26);
  --muted: #8B8377;
  --shadow: rgba(33, 28, 22, 0.16);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161C18;
    --surface: #1F2622;
    --surface-2: #2A332C;
    --ink: #F0ECE1;
    --ink-soft: #B9B2A2;
    --green: #4FAE8A;
    --green-tint: #1E332B;
    --marigold: #F0A63E;
    --marigold-ink: #FBDDA3;
    --marigold-tint: #3A2C16;
    --line: rgba(240, 236, 225, 0.14);
    --line-firm: rgba(240, 236, 225, 0.3);
    --muted: #7C8580;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* ── base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.14; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 26px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── nav ────────────────────────────────────────────────────── */
.topnav { padding: 18px 0; border-bottom: 1px solid var(--line); }
.topnav .shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; text-decoration: none; }
.navlinks { display: flex; gap: 20px; align-items: center; font-size: 14.5px; }
.navlinks a { text-decoration: none; color: var(--ink-soft); }
.navlinks a:hover { color: var(--ink); }

/* ── document masthead — /product, /privacy, /terms ─────────── */
.masthead { padding: 58px 0 42px; border-bottom: 2px solid var(--line-firm); }
.doc-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); display: block; margin-bottom: 18px;
}
.masthead h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 22px; max-width: 20ch;
}
.lede { font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0 0 16px; max-width: 62ch; }
.standfirst { font-size: 16.5px; color: var(--ink-soft); margin: 0; max-width: 62ch; }
.doc-meta {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin: 0; letter-spacing: 0.02em;
}

/* ── document body — /product, /privacy, /terms ─────────────── */
/* min-width: 0 because on /product this is a grid item, and a grid item's
   default min-width:auto refuses to shrink below its content's min-content
   width. The pricing table inside is what pushes that past the column,
   which on a phone would widen the column past the page gutter. */
.article { max-width: 68ch; min-width: 0; }
.sec { padding: 0 0 44px; scroll-margin-top: 28px; }
.sec + .sec { padding-top: 40px; border-top: 1px solid var(--line); }
.sec h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2;
  letter-spacing: -0.012em; margin: 0 0 16px; text-wrap: balance;
}
.sec p { font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 14px; }
.sec p:last-child { margin-bottom: 0; }
.sec a { color: var(--green); font-weight: 700; }
.sec strong { color: var(--ink); font-weight: 700; }

.sec ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.sec ul:last-child { margin-bottom: 0; }
.sec ul li { font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); padding-left: 21px; position: relative; }
.sec ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--marigold);
}

/* ── tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.plans { width: 100%; border-collapse: collapse; font-size: 15px; }
.plans th, .plans td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); }
.plans th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 400; border-top: none;
}
.plans td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.plans td:first-child { color: var(--ink); font-weight: 700; }

/* ── footer ─────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 24px 0 34px; }
.foot .shell { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 13.5px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
