/* ==========================================================================
   PARI — public site stylesheet
   Brand: navy #1B2A4A · turquoise #1FA6A0 · gold #C9A227
   Zero external requests: no web fonts, no trackers, no cookies.
   Mobile-first. All text/background pairs verified >= WCAG AA (4.5:1).
   ========================================================================== */

:root {
  /* Brand */
  --navy: #1B2A4A;
  --navy-deep: #142139;
  --navy-soft: #24365C;
  --turq: #1FA6A0;        /* on navy: 4.64:1 — AA for text. NEVER on white (3.0:1) */
  --turq-ink: #157873;    /* on white 5.3:1, on --tint 4.9:1 — AA on both light grounds */
  --gold: #C9A227;        /* on navy: 5.74:1 — AA. NEVER on white (2.4:1) */

  /* MARKER-ONLY tokens. The logo marker is its own object — like a badge — and does
     NOT follow the site palette above. Eyedropped from the driver app's real marker:
     src/assets/markers/source/pari_puck.svg, corroborated by MapboxMapView.js
     LAYER_STYLES (circleColor / circleStrokeColor) and by sampling pari_puck@3x.png.
     Use these ONLY for the logo marker and favicon — never for site UI. */
  --marker-gold: #FFD700;
  --marker-navy: #03045E;

  /* Neutrals */
  --white: #FFFFFF;
  --ink: #1B2A4A;         /* on white: 13.9:1 */
  --ink-soft: #5A6884;    /* on white: 5.5:1 */
  --on-navy: #FFFFFF;
  --on-navy-soft: #C3CCDD;/* on navy: 8.6:1 */
  --line: #E2E7F0;
  --tint: #F5F7FA;

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --gut: clamp(1.25rem, 5vw, 2.5rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 8px 24px rgba(27, 42, 74, .07);
  --shadow-lift: 0 2px 4px rgba(27, 42, 74, .08), 0 16px 40px rgba(27, 42, 74, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700;
  text-wrap: balance; /* avoids a single orphaned word on wrap */
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.9vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.25rem); letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--turq-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: var(--gut); top: -100px; z-index: 200;
  background: var(--white); color: var(--navy);
  padding: .75rem 1.1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.section-head p { color: var(--ink-soft); font-size: 1.075em; }
.section--navy .section-head p { color: var(--on-navy-soft); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--turq-ink); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); flex: none;
}
/* On navy grounds the light turquoise is the accessible one (4.64:1);
   --turq-ink would only reach 3.0:1 there. */
.section--navy .eyebrow,
.hero .eyebrow { color: var(--turq); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; }
/* Marker layers. The fill="" attributes in the markup carry the same hexes as a
   no-stylesheet fallback; these rules are the source of truth, since CSS wins over
   SVG presentation attributes. */
.brand__mark .marker-ring  { fill: var(--marker-gold); }
.brand__mark .marker-disc  { fill: var(--marker-navy); }
.brand__mark .marker-arrow { fill: #FFFFFF; }
.brand__name {
  font-size: 1.3rem; font-weight: 700; letter-spacing: .18em;
  color: var(--white); line-height: 1;
}
.brand__mark--ink, .brand__name--ink { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white); font: inherit; font-size: .9rem; font-weight: 600;
  padding: .5rem .75rem; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: .5rem var(--gut) 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); /* lifts the panel off the hero beneath */
}
.site-nav ul { display: flex; flex-direction: column; gap: .15rem; }
.site-nav a {
  display: block; padding: .7rem .25rem; color: var(--on-navy-soft);
  text-decoration: none; font-weight: 600; border-radius: var(--radius-sm);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
/* The [aria-current] selector above out-specifies a bare .nav-cta rule, so the
   attribute variant is listed explicitly — otherwise the current page's CTA
   turns white-on-turquoise (3.0:1) instead of navy-on-turquoise (4.64:1). */
.site-nav .nav-cta,
.site-nav .nav-cta[aria-current="page"] {
  margin-top: .6rem; color: var(--navy); background: var(--turq);
  text-align: center; padding: .8rem 1rem;
}
.site-nav .nav-cta:hover { background: #2ab8b1; color: var(--navy); }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] {
    display: block; position: static; padding: 0; background: none; border: 0;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: .35rem; }
  .site-nav a { padding: .5rem .8rem; font-size: .95rem; }
  .site-nav .nav-cta { margin-top: 0; margin-left: .5rem; padding: .6rem 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .95rem 1.6rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--turq); color: var(--navy); }      /* 4.64:1 */
.btn--primary:hover { background: #2ab8b1; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--ink { background: var(--navy); color: var(--white); }
.btn--ink:hover { background: var(--navy-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
/* On narrow screens stacked CTAs get full width — tidier, bigger tap targets. */
@media (max-width: 30rem) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-navy);
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58rem 30rem at 78% -12%, rgba(31, 166, 160, .26), transparent 62%),
    radial-gradient(40rem 26rem at 6% 108%, rgba(201, 162, 39, .13), transparent 60%);
}
.hero__inner { position: relative; max-width: 44rem; }
.hero h1 { color: var(--white); margin-bottom: .35em; text-wrap: balance; }
.hero__sub {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.3rem);
  color: var(--on-navy-soft); max-width: 36rem; margin-bottom: 2rem;
}
.hero__note {
  margin-top: 1.6rem; font-size: .925rem; color: var(--on-navy-soft);
  display: flex; align-items: baseline; gap: .55rem;
}
.hero__note::before { content: ""; width: 18px; height: 2px; background: var(--gold); flex: none; transform: translateY(-.35em); }
.hero__mark {
  position: absolute; right: -2rem; bottom: -3rem; width: 20rem;
  color: rgba(255, 255, 255, .07); pointer-events: none; display: none;
}
@media (min-width: 62rem) { .hero__mark { display: block; right: 2rem; bottom: -2rem; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem)  { .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card__step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; margin-bottom: 1.1rem; flex: none;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-size: .95rem; font-weight: 700;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); }

/* Tier cards */
.tier {
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--turq);
  border-radius: var(--radius); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  box-shadow: var(--shadow);
}
.tier--hire { border-top-color: var(--gold); }
.tier__name { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.tier__name h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.tier__badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: var(--navy); padding: .25rem .55rem; border-radius: 999px;
}
.tier p { color: var(--ink-soft); margin-top: .75rem; }

/* Feature list (Built for Fiji) */
.features { display: grid; gap: 1.75rem; }
@media (min-width: 62rem) { .features { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; } }
.feature { padding-top: 1.1rem; border-top: 3px solid var(--turq); }
.feature:nth-child(2) { border-top-color: var(--gold); }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* Safety / About split */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split__body p { font-size: 1.075em; }
.section--navy .split__body p { color: var(--on-navy-soft); }

.checks { display: grid; gap: .9rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; color: var(--on-navy-soft); }
.checks svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--turq); margin-top: .18rem; }

/* Plain bullet list on light backgrounds */
.bullets { display: grid; gap: .85rem; }
.bullets li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.bullets svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--turq-ink); margin-top: .2rem; }

/* Callout */
.callout {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.35rem 1.5rem; box-shadow: var(--shadow);
}
.callout p { color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* Stat / commission emphasis */
.figure-block {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem;
  padding: 1.5rem 0; border-block: 1px solid rgba(255, 255, 255, .18); margin-bottom: 1.75rem;
}
.figure-block__num {
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 700;
  color: var(--turq); line-height: 1; letter-spacing: -.03em;
}
.figure-block__label { color: var(--on-navy-soft); font-size: 1.05rem; }

/* Closing band */
.closing { background: var(--navy-deep); color: var(--white); text-align: center; }
.closing p {
  font-size: clamp(1.3rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 700;
  letter-spacing: -.02em; max-width: 34rem; margin-inline: auto; text-wrap: balance;
}

/* ---------- Legal placeholder pages ---------- */
.legal { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.legal__inner { max-width: 40rem; }
.legal h1 { margin-bottom: .6em; }
.legal p { color: var(--ink-soft); font-size: 1.075em; }
.legal .callout { margin-block: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); padding-block: 3rem 2rem; }
.site-footer a { color: var(--on-navy-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__top {
  display: grid; gap: 1.75rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 48rem) {
  .site-footer__top { grid-template-columns: 1fr auto; align-items: start; }
}
.site-footer__meta { margin-top: 1rem; font-size: .95rem; line-height: 1.9; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; font-weight: 600; }
.site-footer__base {
  padding-top: 1.5rem; font-size: .875rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
.site-footer__base p { margin: 0; }
