/* regYantra site styles.

   THESE VALUES ARE NOT LOCAL DECISIONS. They are the regYantra design system, whose source of
   truth is regShield-prototype/frontend/design-tokens.json (documented in design-system.md).
   The product app derives from the same file. Do not tune a colour here to taste — change it in
   design-tokens.json and mirror it into both surfaces, or the two brands drift apart.

   The brand colours (Royal #1E2E8C, Black #0B0B0D, Lift #4256C8, Paper #FCFBF7) and the wordmark
   face (Jost 500) come from the trademark kit and are IMMUTABLE. Inter is supporting UI type only.
   Marks in /brand/ are verbatim copies — never recoloured, never on a low-contrast background. */

/* Self-hosted fonts. Google Fonts was render-blocking (a Core Web Vitals / LCP cost) and was the
   page's only third-party request. Both families are variable fonts under the SIL Open Font
   License, latin subset — the same files Google serves. Self-hosting also lets the CSP drop
   fonts.googleapis.com / fonts.gstatic.com entirely. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/fonts/jost-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand — trademark, immutable */
  --royal: #1E2E8C;
  --royal-hover: #16226B;
  --lift: #4256C8;
  --black: #0B0B0D;
  --paper: #FCFBF7;

  /* Design-system tokens — mirror of design-tokens.json color.brand / color.text / color.border */
  --surface: #FFFFFF;
  --surface-alt: #FCFBF7;
  --surface-muted: #F1F0EA;

  --text-default: #0B0B0D;
  --text-secondary: #44464D;
  --text-muted: #63656D;
  --text-inverse: #FFFFFF;

  --accent: #1E2E8C;
  --border-default: #E4E2DA;
  --border-strong: #CFCDC4;
  --border-focus: #1E2E8C;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(11 11 13 / 0.06);

  --font-display: 'Jost', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

/* Dark surfaces — mirror of design-tokens.json color.dark (that group exists for this site;
   the product app is light-only). Royal Blue is unreadable as text on near-black, so links lift
   toward Lift Blue. The MARKS are never recoloured — dark surfaces get the reversed lockup. */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0B0B0D;
    --surface-alt: #141419;
    --surface-muted: #1E1E24;

    --text-default: #FCFBF7;
    --text-secondary: #C8C9CE;
    --text-muted: #9A9CA4;

    --accent: #A3AFEE;
    --border-default: #2A2A32;
    --border-strong: #3C3C46;
    --border-focus: #A3AFEE;
  }
}

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

body {
  margin: 0;
  text-wrap: pretty;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-default);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text-default);
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--royal);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  left: var(--space-4);
}

/* The header is sticky, so an anchor jump would otherwise land the section heading underneath it. */
section[id],
main[id] {
  scroll-margin-top: 5.5rem;
}

.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.container.narrow {
  max-width: 44rem;
}

/* Header + logo.
   Clear space around the mark is enforced with margin, per the kit's clear-space rule. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 4.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  margin-inline-end: auto;
  padding: var(--space-2);
  margin-inline-start: calc(var(--space-2) * -1);
}

.logo {
  display: block;
  width: 11rem;
  height: auto;
}

.logo-sm {
  width: 8.5rem;
}

.site-nav {
  display: none;
  gap: var(--space-6);
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--text-default);
}

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--royal);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--royal-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-default);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-muted);
}

.btn-inverse {
  background: var(--paper);
  color: var(--black);
}

.btn-inverse:hover {
  background: #E8E6DD;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--lift);
    color: var(--text-inverse);
  }

  .btn-primary:hover {
    background: #5468D6;
  }
}

/* Hero */

.hero {
  padding-block: var(--space-8) var(--space-6);
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
}

/* No max-width on the h1: the headline is short and belongs on ONE line at desktop.
   Cap the measure on the paragraph instead, where long prose actually needs it. */

/* Fluid type: scales continuously with the viewport instead of jumping at breakpoints,
   so the headline holds one line wherever it physically can. */
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 500;
  text-wrap: balance;
}

.lede {
  text-wrap: balance;
  margin-top: var(--space-4);
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .hero {
    padding-block: 3.5rem 3rem;
  }
}

/* Bands */

.band {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border-default);
}

.band-alt {
  background: var(--surface-alt);
}

.band h2,

.band p {
  color: var(--text-secondary);
}

.band > .narrow p {
  max-width: 44rem;
  margin-top: var(--space-3);
  font-size: 1.0625rem;
}

.section-lede {
  max-width: 46rem;
  margin-top: var(--space-2);
  font-size: 1.0625rem;
}

/* Cards */

.cards {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (min-width: 60rem) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: var(--space-5, 1.25rem);
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
}

.card p {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Gap: global tools vs region-first */

.gap {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .gap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.gap-col {
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.gap-col-accent {
  border-color: var(--royal);
  background: color-mix(in srgb, var(--royal) 5%, var(--surface));
}

.gap-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gap-col-accent .gap-label {
  color: var(--accent);
}

.gap-col h3 {
  margin-top: var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
}

.gap-list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.gap-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Glyphs are decorative — the list's meaning is carried by the column heading. */
.gap-list li::before {
  position: absolute;
  inset-inline-start: 0;
  font-weight: 600;
}

.gap-list-neg li::before {
  content: "\00d7";
  color: var(--text-muted);
}

.gap-list-pos li::before {
  content: "\2713";
  color: var(--accent);
}

/* Engine */

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.trust-tags li {
  padding: var(--space-2) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--royal) 25%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--royal) 8%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* CTA */

/* Left-aligned like every other section — a centred band read as a different page. */
.cta {
  padding-block: 3.5rem;
  background: var(--black);
  color: var(--paper);
}

.cta-inner {
  display: grid;
  gap: var(--space-6);
  align-items: end;
}

@media (min-width: 60rem) {
  .cta-inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
  }
}

.cta h2 {
  font-size: 1.625rem;
  color: var(--paper);
}

.cta p {
  max-width: 40rem;
  margin-top: var(--space-3);
  color: #C8C9CE;
}

.cta-actions {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
}

@media (min-width: 48rem) {
  .cta h2 {
    font-size: 2rem;
  }
}

/* Footer */

.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-default);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* People */

.people {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.person {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-inline-start: 3px solid var(--royal);
  border-radius: var(--radius-lg);
}

.person h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.person-role {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.person p:last-child {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Jurisdiction pages */

/* Legal pages */

.legal h1 {
  font-size: 2rem;
}

.legal-meta {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal h2 {
  margin-top: var(--space-12);
  font-size: 1.25rem;
  font-weight: 600;
}

.legal p {
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

/* Section eyebrows — numbered, matching the GTM deck's own visual language. */

/* Section kicker. Needs its own specificity — `.band p` sets --text-secondary and would
   otherwise win on source order, silently draining the brand colour out of it. */
.band .eyebrow,

/* Footer */

.eyebrow-inverse {
  color: #C8C9CE;
}

/* Coverage map. Inline SVG so it inherits the theme's CSS variables (an <img> could not),
   coarse outline geometry from Natural Earth (public domain) to keep the payload small. */

.map {
  display: block;
  width: 100%;
  height: auto;
}

/* Landmass only — no internal borders are drawn, so the map depicts no territorial claim.
   Coverage is shown with markers instead. */
/* Stroke each path in its own fill colour: heavy simplification leaves hairline seams
   between neighbouring polygons, and the stroke welds them into one silhouette. */
.map-land path {
  fill: var(--surface-muted);
  stroke: var(--surface-muted);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.map-live path {
  fill: var(--royal);
  stroke: var(--surface);
  stroke-width: 1;
  stroke-linejoin: round;
}

.person-link {
  margin-top: var(--space-3);
}

.person-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.person-link a:hover {
  text-decoration: underline;
}

.person-link a::after {
  content: "\2197";
  font-weight: 400;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Coverage: map left, live jurisdictions right. */

.map-wrap {
  margin: 0;
}

/* Hover feedback on the map — the <title> tooltip alone was not discoverable. */
.map-live path {
  transition: fill var(--transition);
  cursor: default;
}

.map-live path:hover {
  fill: var(--lift);
}

.coverage-split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

@media (min-width: 60rem) {
  .coverage-split {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: var(--space-8);
  }
}

.map-wrap {
  margin: 0;
  max-width: 34rem;
}

.country-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.country-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.country-list li {
  padding-inline-start: var(--space-3);
  border-inline-start: 2px solid var(--royal);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-default);
}
