/* JaraCity pre-launch site. Dark-first. No frameworks, no external requests. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (see /brand/palette.md) */
  --jara-night: #0E0C24;     /* background */
  --jara-dusk: #1C1945;      /* surface */
  --jara-line: #2F2A63;      /* borders, dividers */
  --jara-danfo: #FFC531;     /* primary / hero accent */
  --jara-coral: #FF6B4A;     /* accent */
  --jara-palm: #2FD58B;      /* secondary accent */
  --jara-chalk: #F7F3EA;     /* text */
  --jara-haze: #B3AED6;      /* muted text */

  /* Semantic tokens */
  --bg: var(--jara-night);
  --surface: var(--jara-dusk);
  --border: var(--jara-line);
  --primary: var(--jara-danfo);
  --accent: var(--jara-coral);
  --accent-2: var(--jara-palm);
  --text: var(--jara-chalk);
  --muted: var(--jara-haze);
  --on-primary: var(--jara-night);

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 6.5rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 5.2vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: .6rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  color: var(--on-primary); background: var(--primary);
  border: 2px solid var(--primary); border-radius: 999px;
  text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 24px -10px rgba(255, 197, 49, .7);
}
.btn:hover { color: var(--on-primary); transform: translateY(-1px); background: #FFD45E; border-color: #FFD45E; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--primary); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 12, 36, .86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(47, 42, 99, .6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { width: 132px; height: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(2.5rem, 8vw, 5rem);
  background:
    radial-gradient(ellipse 70% 55% at 75% 70%, rgba(255, 107, 74, .22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(47, 42, 99, .65), transparent 70%),
    var(--bg);
}
.hero-copy { position: relative; z-index: 1; }
.hl { color: var(--primary); }
.lede { font-size: clamp(1.08rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .9rem; }
.fine { font-size: .9rem; color: var(--muted); }
.hero-art { margin-top: clamp(1.5rem, 5vw, 2.5rem); }
.hero-art img { width: 100%; min-width: 640px; margin-left: 50%; transform: translateX(-50%); }

/* Sections */
.section { padding-block: var(--section-y); }
.section-alt { background: linear-gradient(180deg, var(--surface), #17143A); border-block: 1px solid var(--border); }
.kicker {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; color: var(--primary); margin-bottom: .8rem;
}
.kicker-coral { color: var(--accent); }
.kicker-palm { color: var(--accent-2); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }

/* Cards */
.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(255, 197, 49, .55); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.ico {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 1rem;
  border-radius: 12px; background: rgba(255, 197, 49, .12);
  fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card:nth-child(3n+2) .ico { stroke: var(--accent); background: rgba(255, 107, 74, .12); }
.card:nth-child(3n) .ico { stroke: var(--accent-2); background: rgba(47, 213, 139, .12); }

/* About / OAuth compliance block */
.about-block { display: grid; gap: 2rem; align-items: start; }
.about-block .notice h3 { margin: .35rem 0 .75rem; font-size: 1.35rem; }
@media (min-width: 900px) {
  .about-block { grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: start; }
}

/* Match nights */
.split { display: grid; gap: 2rem; align-items: center; }
.ticks { margin-top: 1.4rem !important; display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E0C24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.notice {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; position: relative; overflow: hidden;
}
.notice::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 28px, var(--bg) 28px 36px);
}
.notice p { color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }
.notice-badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--on-primary) !important; background: var(--accent); padding: .25rem .7rem; border-radius: 999px; margin-top: .4rem;
}
.notice-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 750; color: var(--text) !important; line-height: 1.2; }

/* Cities */
.cities { display: grid; gap: 1rem; margin-top: 2rem; }
.city {
  border-radius: var(--radius); padding: 4.25rem 1.5rem 1.5rem; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--border); position: relative; overflow: hidden; background: var(--surface);
}
.city::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%;
  opacity: .9;
}
.city-lagos::after { background: var(--primary); }
.city-accra::after { background: var(--accent); }
.city-nairobi::after { background: var(--accent-2); }
.city-more { background: transparent; border-style: dashed; }
.city-more::after { background: var(--border); }
.city h3 { font-size: 1.5rem; margin-bottom: .3rem; position: relative; z-index: 1; }
.city p { color: var(--muted); margin: 0; position: relative; z-index: 1; }
.city-tag {
  position: absolute; left: 1.5rem; top: 1.3rem; z-index: 1;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* Brands */
.billboard {
  display: grid; gap: 1.5rem; align-items: center;
}
.billboard > div {
  border-left: 6px solid var(--primary); padding-left: 1.25rem;
}

/* Early access */
.early {
  text-align: center;
  background: radial-gradient(ellipse 80% 90% at 50% 110%, rgba(255, 197, 49, .13), rgba(255, 197, 49, 0) 72%), var(--bg);
}
.early-inner { max-width: 760px; }
.early-mark { width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 16px; }
.early .section-lede { margin-inline: auto; }
.early .btn { margin-top: .5rem; }

/* FAQ */
.faq { margin-top: 1.6rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--primary); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.15rem; margin: 0; max-width: 62ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem 3rem; background: #0B0A1E; }
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { display: grid; gap: .2rem; align-content: start; }
.footer-brand img { width: 140px; }
.tagline {
  margin: 0;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--primary); letter-spacing: -.01em;
}
.age { color: var(--muted); font-size: .92rem; max-width: 70ch; display: flex; gap: .75rem; align-items: flex-start; }
.age-badge {
  flex: none; font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  border: 2px solid var(--accent); color: var(--accent); border-radius: 50%;
  width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--text); }
.copy { color: var(--muted); font-size: .88rem; margin: 0; }

/* Simple content pages (privacy, 404) */
.page { padding-block: clamp(2.5rem, 7vw, 5rem); }
.page h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page p, .page li { color: var(--muted); }
.page ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.page li { margin: .35rem 0; }
.page strong { color: var(--text); }
.page .kicker { color: var(--primary); }
.center { text-align: center; }

/* Motion: subtle, CSS-only, opt-out respected */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-art img { animation: fade 1.1s ease .15s both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Breakpoints */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .brand img { width: 158px; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cities { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
  .billboard { grid-template-columns: 1fr auto; }
  .hero-art img { min-width: 0; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 2.5rem; }
  .footer-inner .age { grid-column: 2; grid-row: 1; }
  .footer-links { grid-column: 1; }
  .copy { grid-column: 2; }
}

/* Hero grid + Pocket phone illustration (desktop only) */
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.pocket { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; }
  .pocket {
    display: block; justify-self: center; width: 290px;
    border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #3A347A, var(--jara-line));
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    transform: rotate(3deg);
  }
}
.pk-screen { background: var(--bg); border-radius: 31px; padding: 1rem .9rem .8rem; font-size: .82rem; line-height: 1.35; }
.pk-status { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 0 .3rem; }
.pk-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin: .5rem .3rem .7rem; }
.pk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: .7rem .8rem; margin-bottom: .55rem; display: grid; gap: .1rem;
}
.pk-card b { font-family: var(--font-display); font-weight: 700; font-size: .84rem; }
.pk-card span { color: var(--muted); }
.pk-chat { grid-template-columns: auto 1fr; gap: .65rem; align-items: center; }
.pk-chat div { display: grid; }
.pk-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-primary) !important; font-family: var(--font-display); font-weight: 800;
}
.pk-pool { border-color: rgba(255, 197, 49, .45); }
.pk-picks { display: flex; gap: .35rem; margin-top: .45rem; }
.pk-picks span {
  flex: 1; text-align: center; padding: .3rem 0; border-radius: 999px; border: 1px solid var(--border);
  font-weight: 700; font-size: .74rem; color: var(--text);
}
.pk-picks .on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pk-ride { border-left: 4px solid var(--primary); }
.pk-pay { grid-template-columns: 1fr auto; align-items: center; }
.pk-card .pk-plus { color: var(--accent-2); font-weight: 700; }
.pk-dock { display: flex; justify-content: space-around; padding: .5rem .5rem .1rem; }
.pk-dock i { width: 30px; height: 30px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.pk-dock i:first-child { background: var(--primary); border-color: var(--primary); }
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .pocket { animation: floaty 7s ease-in-out infinite; }
}
@keyframes floaty { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }
