/* Jakadi website — tokens mirrored from apps/mobile/src/constants/theme.js.
   Do not invent colours here: every hex below exists in that file. */

:root {
  /* BRAND — the four colours of the Jakadi mark */
  --navy: #0E2D57;
  --teal: #3EAFB1;         /* fill / graphic only */
  --amber: #F7A028;        /* fill / graphic only */
  --coral: #F15C49;        /* fill / graphic only */
  /* AA-safe text-on-light siblings */
  --teal-ink: #1D6E6F;
  --amber-ink: #925605;
  --coral-ink: #C93826;    /* primary ACTION colour */
  --coral-dark: #9E2618;
  --teal-dark: #155A5C;

  /* Surfaces & text */
  --canvas: #FBFBFC;
  --paper: #FFFFFF;
  --panel: #F1F3F6;
  --ink: #14243D;
  --ink-muted: #5B6B80;
  --border: #E4E8EE;

  /* Tints */
  --coral-tint: #FBDFDA;
  --teal-tint: #D9EEEE;
  --amber-tint: #FBE3BE;

  /* Status */
  --success: #2E7D46;
  --warning: #D98E1B;
  --danger: #B3402F;

  /* Radii — the mark is built from thick strokes and circles */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-xxl: 32px;
  --r-pill: 999px;

  /* Spacing */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;

  --font: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(14, 45, 87, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 45, 87, 0.09);
  --shadow-lg: 0 20px 50px rgba(14, 45, 87, 0.13);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 var(--s-md);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 var(--s-md); }
a { color: var(--coral-ink); text-decoration: none; font-weight: 500; }
a:hover, a:focus-visible { text-decoration: underline; }
strong { font-weight: 700; color: var(--ink); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-lg); }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--r-md) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-md); min-height: 74px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
/* On-dark lockup variant (cream strokes) sits directly on the navy. */
.site-header .brand img { height: 48px; }
.site-footer .footer-brand img { height: 56px; }
.site-nav { display: flex; align-items: center; gap: var(--s-md); flex-wrap: wrap; }
.site-nav a {
  color: #FFFFFF; font-weight: 500; font-size: 0.98rem;
  padding: 8px 4px; border-radius: var(--r-sm);
}
.site-nav a:hover { color: var(--amber); text-decoration: none; }
.site-nav a:focus-visible { outline-color: var(--amber); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #FFFFFF;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  border-bottom-left-radius: var(--r-xxl);
  border-bottom-right-radius: var(--r-xxl);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 44px solid rgba(62, 175, 177, 0.16);
}
.hero .wrap { position: relative; z-index: 1; }
/* block, not inline — otherwise the tagline rides the image baseline and
   lands beside the logo instead of under it */
.hero-lockup { display: block; max-width: 230px; margin-bottom: var(--s-md); }
.hero h1 { color: #FFFFFF; max-width: 18ch; }
.hero .brand-line {
  display: inline-block; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--amber); margin-bottom: var(--s-md);
}
.hero .product-line {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #D9E2EE; max-width: 46ch; margin-bottom: var(--s-lg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; }

/* ── Store badges (placeholders — the app is not published) ── */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--s-md); margin: 0 0 var(--s-md); }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 18px; border-radius: var(--r-md);
  background: #000000; border: 1px solid #000000;
  color: #FFFFFF; font-weight: 600;
}
.store-badge:hover { text-decoration: none; background: #1B1B1B; }
.store-badge .store-logo { width: 30px; height: 30px; flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .badge-small { font-size: 0.72rem; font-weight: 500; color: #FFFFFF; }
.store-badge .badge-name { font-size: 1.25rem; font-weight: 600; }
.badge-note { color: #B9C6D6; font-size: 0.92rem; margin: 0; }
.on-light .badge-note { color: var(--ink-muted); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.panel { background: var(--panel); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: var(--s-sm);
}
.eyebrow.coral { color: var(--coral-ink); }
.eyebrow.amber { color: var(--amber-ink); }
.lede { font-size: 1.1rem; color: var(--ink-muted); max-width: 62ch; }

/* ── Cards & grids ──────────────────────────────────────── */
.grid { display: grid; gap: var(--s-lg); margin-top: var(--s-xl); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--s-sm); }
.card p:last-child { margin-bottom: 0; }

.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 1.2rem; color: #FFFFFF;
  margin-bottom: var(--s-md);
}
.step-1 .step-number { background: var(--navy); }
.step-2 .step-number { background: var(--teal-ink); }
.step-3 .step-number { background: var(--coral-ink); }

.rule { height: 6px; width: 56px; border-radius: var(--r-pill); margin-bottom: var(--s-md); }
.rule-navy { background: var(--navy); }
.rule-teal { background: var(--teal); }
.rule-amber { background: var(--amber); }
.rule-coral { background: var(--coral); }

/* ── Confidence chips ───────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin: var(--s-md) 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.93rem;
  background: var(--panel); border: 2px solid var(--border); color: var(--ink);
}
.chip .dot { width: 12px; height: 12px; border-radius: var(--r-pill); flex: none; }
.chip-predicted .dot { background: var(--amber); }
.chip-community .dot { background: var(--teal); }
.chip-official .dot { background: var(--navy); }
.chip-scouted .dot { background: var(--coral); }

/* ── Callout ────────────────────────────────────────────── */
.callout {
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  border: 2px solid var(--border);
  background: var(--paper);
  border-left-width: 10px;
}
.callout-teal { border-left-color: var(--teal); }
.callout-amber { border-left-color: var(--amber); }
.callout-coral { border-left-color: var(--coral); }
.callout-navy { border-left-color: var(--navy); }
.callout h3 { margin-bottom: var(--s-sm); }
.callout p:last-child { margin-bottom: 0; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--coral-ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ── Legal / long-form pages ────────────────────────────── */
.page-head {
  background: var(--navy); color: #FFFFFF;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom-left-radius: var(--r-xxl);
  border-bottom-right-radius: var(--r-xxl);
}
.page-head h1 { color: #FFFFFF; margin-bottom: var(--s-sm); }
.page-head p { color: #D9E2EE; margin: 0; max-width: 62ch; }
.page-head .updated { font-size: 0.92rem; color: #B9C6D6; margin-top: var(--s-sm); }

.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal h2 {
  font-size: 1.5rem; margin-top: var(--s-xl);
  padding-top: var(--s-md); border-top: 2px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.legal h3 { margin-top: var(--s-lg); }
.legal ul, .legal ol { margin: 0 0 var(--s-md); padding-left: 1.4em; }
.legal li { margin-bottom: var(--s-sm); }

.table-wrap { overflow-x: auto; margin: 0 0 var(--s-md); border-radius: var(--r-lg); border: 2px solid var(--border); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--panel); color: var(--navy); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Unfilled legal placeholders — must never ship unnoticed */
.placeholder {
  background: var(--amber-tint);
  color: var(--amber-ink);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--r-sm);
  border: 2px dashed var(--amber-ink);
  white-space: nowrap;
}
.draft-banner {
  background: var(--amber-tint);
  border: 2px dashed var(--amber-ink);
  color: var(--amber-ink);
  border-radius: var(--r-lg);
  padding: var(--s-md) var(--s-lg);
  font-weight: 600;
  margin-bottom: var(--s-lg);
}
.draft-banner p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: #C6D2E0;
  padding: var(--s-xl) 0 var(--s-lg);
  margin-top: var(--s-xl);
}
.site-footer a { color: #FFFFFF; font-weight: 500; }
.site-footer a:hover { color: var(--amber); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--s-xl); justify-content: space-between; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: var(--s-sm); font-size: 0.95rem; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-md) var(--s-lg); }
.footer-bottom {
  margin-top: var(--s-lg); padding-top: var(--s-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-lg); justify-content: space-between;
}
.todo {
  background: var(--amber);
  color: #3A2A00;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill);
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 0; }
  .hero-lockup { max-width: 240px; }
}

.footer-legal { font-size: 0.85rem; opacity: 0.75; margin-top: 8px; }
.footer-legal a { color: inherit; }
