/* ==========================================================================
   batonstack.com — shared stylesheet
   Brand: wordmark Direction C "Lane" (baton/brand.md § Wordmark)
   - Display  : Big Shoulders Display (SIL OFL 1.1) — wordmark + big headings
   - Prose    : Newsreader (SIL OFL 1.1) — body copy, editorial register
   - UI/labels: Hanken Grotesk (SIL OFL 1.1) — nav, captions, tables, legal body
   Accent: cobalt #2148C0 (light) / #7D9CF4 (dark). The wordmark "sweep" is the
   one recurring device — under the H1, as link underline, as section marker.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* neutrals — cool bias toward the cobalt, deliberately not pure grey */
  --ground:    #FCFCFD;
  --surface:   #FFFFFF;
  --panel:     #EFF3FD;   /* pale cobalt wash */
  --ink:       #14171E;
  --ink-soft:  #49505E;
  --ink-faint: #737B8A;
  --rule:      #E3E7EE;
  --rule-soft: #EDEFF4;

  --accent:      #2148C0;
  --accent-ink:  #1B3DA6;  /* text-on-white cobalt, a touch darker for AA */
  --on-accent:   #FFFFFF;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --disp:  "Big Shoulders Display", "Arial Narrow", var(--sans);

  --maxw: 68rem;
  --measure: 40rem;      /* ~68 chars of Newsreader */
  --pad: clamp(1.15rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:    #0F1217;
    --surface:   #161A21;
    --panel:     #182034;
    --ink:       #EEF1F6;
    --ink-soft:  #A6AEBC;
    --ink-faint: #79818F;
    --rule:      #262C36;
    --rule-soft: #1E232C;
    --accent:      #7D9CF4;
    --accent-ink:  #9DB4F7;
    --on-accent:   #10131A;
  }
}
:root[data-theme="dark"] {
  --ground:    #0F1217;
  --surface:   #161A21;
  --panel:     #182034;
  --ink:       #EEF1F6;
  --ink-soft:  #A6AEBC;
  --ink-faint: #79818F;
  --rule:      #262C36;
  --rule-soft: #1E232C;
  --accent:      #7D9CF4;
  --accent-ink:  #9DB4F7;
  --on-accent:   #10131A;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- shared shell ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.site-head nav { display: flex; gap: 1.4rem; font-family: var(--sans); font-size: .9rem; }
.site-head nav a { color: var(--ink-soft); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* ---------- the wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: .04em;
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
  position: relative;
  font-size: var(--wm-size, 1.5rem);
}
.wordmark::after {              /* the cobalt baseline sweep */
  content: "";
  position: absolute;
  left: -0.02em; right: -0.14em;
  bottom: -0.14em;
  height: .1em;
  background: var(--accent);
  border-radius: .1em;
  transform: rotate(-2.6deg);
  transform-origin: left center;
}
.wordmark--plain::after { display: none; }
.site-foot .wordmark { --wm-size: 1.25rem; color: var(--ink); }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--disp); font-weight: 700; text-transform: uppercase; letter-spacing: .012em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.08; }
h3 { font-size: 1.15rem; line-height: 1.2; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0;
}
.eyebrow::before {
  content: ""; flex: none; width: 1.5rem; height: .16rem;
  background: var(--accent); border-radius: .1rem;
  transform: rotate(-2.6deg); transform-origin: left center;
}
.hero .eyebrow { margin-bottom: 1.6rem; }

p { margin: 0; max-width: var(--measure); }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { text-decoration-color: var(--accent); }

strong, b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

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

/* ---------- landing sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section__lead { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.section__lead p { color: var(--ink-soft); font-size: 1.15rem; }

.hero { padding-block: clamp(3rem, 9vw, 6rem) clamp(3rem, 8vw, 5.5rem); }
.hero h1 { margin-bottom: 1.5rem; }
.hero__sub { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink-soft); max-width: 34rem; }
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }

.btn {
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; border-radius: .1rem;
}
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); filter: none; }

/* two-column feature grid */
.cols { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 46rem) { .cols--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; gap: .6rem; }
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card__k { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }

/* the two halves panel */
.halves { display: grid; gap: 3px; background: var(--rule); border: 1px solid var(--rule); border-radius: .2rem; overflow: hidden; }
@media (min-width: 50rem) { .halves { grid-template-columns: 1fr 1fr; } }
.half { background: var(--surface); padding: clamp(1.5rem, 4vw, 2.4rem); }
.half--moat { background: var(--panel); }
.half h3 { color: var(--ink); margin-bottom: .9rem; }
.half ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; font-family: var(--sans); font-size: .96rem; color: var(--ink-soft); }
.half li { padding-left: 1.3rem; position: relative; }
.half li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .16rem; background: var(--accent); border-radius: .1rem; transform: rotate(-2.6deg); }
.half li b { color: var(--ink); }

/* india strip */
.facts { display: grid; gap: 1.5rem 2.5rem; font-family: var(--sans); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; flex-direction: column; gap: .3rem; }
.fact dt { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.fact dd { margin: 0; color: var(--ink); font-size: .98rem; }

/* pilot CTA band */
.band { background: var(--panel); border-block: 1px solid var(--rule); }
.band .shell { padding-block: clamp(3rem, 7vw, 5rem); display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.band h2 { color: var(--ink); }
.band p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; }
.site-foot .shell { display: flex; flex-direction: column; gap: 1.4rem; }
.site-foot__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--sans); font-size: .88rem; }
.site-foot nav a { color: var(--ink-soft); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot__legal { font-family: var(--sans); font-size: .82rem; color: var(--ink-faint); line-height: 1.6; max-width: 44rem; }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) 5rem; }
.legal__head { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.legal__head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal__meta { font-family: var(--sans); font-size: .85rem; color: var(--ink-faint); }
.notice {
  font-family: var(--sans); font-size: .9rem; line-height: 1.55;
  color: var(--ink-soft);
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: .9rem 1.1rem;
  border-radius: 0 .15rem .15rem 0;
}
.legal article { display: flex; flex-direction: column; gap: 2.5rem; }
.legal section { display: flex; flex-direction: column; gap: .9rem; scroll-margin-top: 1.5rem; }
.legal section > h2 {
  font-size: 1.05rem; letter-spacing: .1em;
  color: var(--ink);
  display: flex; gap: .7rem; align-items: baseline;
}
.legal section > h2 .n { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.legal section h3 { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: .4rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.legal a { overflow-wrap: anywhere; }

.legal__toc { font-family: var(--sans); font-size: .9rem; margin-bottom: 2.5rem; }
.legal__toc ol { margin: .6rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.legal__toc li { margin-bottom: .35rem; }
.legal__toc a { color: var(--ink-soft); text-decoration: none; }
.legal__toc a:hover { color: var(--accent-ink); text-decoration: underline; }

table.subs { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .9rem; }
table.subs th, table.subs td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.subs th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
table.subs td { color: var(--ink-soft); }
table.subs td b { color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.backlink { font-family: var(--sans); font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-soft); text-decoration: none; }
.backlink:hover { color: var(--accent-ink); }

/* ---------- hero eyebrow sweep draw-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow::before { animation: sweep .6s .1s cubic-bezier(.2,.8,.25,1) both; }
  @keyframes sweep {
    from { transform: rotate(-2.6deg) scaleX(0); }
    to   { transform: rotate(-2.6deg) scaleX(1); }
  }
}
