/*
 * CitiGo marketing.
 *
 * Brand tokens are the verified values from the company brand source:
 * primary #398DFA, action #2563EB, ink #1F2126, soft #EBF4FF, white #FFFFFF, Sora.
 *
 * No framework and no webfont request on the critical path: the page must render fast on a
 * mid-range Android over a congested network, which is the realistic condition in most
 * launch markets.
 */

:root {
  --primary: #398dfa;
  --action: #2563eb;
  --ink: #1f2126;
  --soft: #ebf4ff;
  --white: #ffffff;

  --ink-70: #4b4f57;
  --ink-45: #63676f; /* 4.5:1 on white — AA for body text, not only large */
  --line: #dfe6f2;
  --surface: #f7faff;

  --measure: 68ch;
  --page: 1160px;
  --radius: 14px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --white: #14161a;
    --ink: #f2f5f9;
    --ink-70: #b9c0cc;
    --ink-45: #8b93a1;
    --soft: #1b2431;
    --line: #2a3240;
    --surface: #171a20;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }

/* Visible focus everywhere. Keyboard users must never lose their place. */
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--action);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

header.site .bar {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.logo svg, .logo img { height: 30px; width: auto; display: block; }

nav.main { margin-left: auto; }
nav.main ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
nav.main a { color: var(--ink-70); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
nav.main a:hover, nav.main a[aria-current='page'] { color: var(--action); }

@media (max-width: 860px) {
  nav.main { width: 100%; margin: 0 0 0.75rem; }
  nav.main ul { gap: 0.75rem 1rem; }
  header.site .bar { flex-wrap: wrap; padding-top: 0.75rem; }
}

/* -------------------------------------------------------------------- type */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); color: var(--ink-70); }

/* ------------------------------------------------------------------ status */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft);
  color: var(--action);
  border: 1px solid color-mix(in srgb, var(--action) 25%, transparent);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ------------------------------------------------------------------ layout */

section.band { padding: clamp(3rem, 6vw, 5.5rem) 0; }
section.band.alt { background: var(--surface); border-block: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--ink-70); margin-bottom: 0; font-size: 0.9375rem; }

a.card { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--primary); transform: translateY(-2px); }
a.card .more { color: var(--action); font-weight: 600; font-size: 0.9375rem; display: inline-block; margin-top: 0.75rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px; /* touch target */
}
.btn.primary { background: var(--action); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--action) 85%, #000); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--primary); color: var(--action); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ----------------------------------------------------------------- country */

.countries { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.country {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 1rem; text-decoration: none; color: inherit;
  font-weight: 500; font-size: 0.9375rem;
}
.country:hover { border-color: var(--primary); color: var(--action); }
.country .iso {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--soft); color: var(--action);
  padding: 0.2rem 0.4rem; border-radius: 5px;
}

/* -------------------------------------------------------------------- form */

form.lead { display: grid; gap: 1rem; max-width: 34rem; }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; font-size: 0.9375rem; }
.hint { font-size: 0.8125rem; color: var(--ink-45); }
input, select, textarea {
  font: inherit; font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--action); }
textarea { min-height: 7rem; resize: vertical; }

/* Honeypot: present for a bot, unreachable for a person or a screen reader. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-left: 3px solid var(--primary);
  background: var(--soft);
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--ink-70);
}
.notice p:last-child { margin-bottom: 0; }

[role='status'] { font-weight: 600; }
.ok { color: #0f7b3d; }
.err { color: #b3261e; }

/* ------------------------------------------------------------------ footer */

footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
footer.site .cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
footer.site h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-45); margin: 0 0 0.75rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
footer.site a { color: var(--ink-70); text-decoration: none; font-size: 0.9375rem; }
footer.site a:hover { color: var(--action); }
footer.site .base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-45); font-size: 0.875rem; }

/* Print: keep it legible, drop the furniture. */
@media print {
  header.site, footer.site, .cta-row { display: none; }
  body { color: #000; background: #fff; }
}

/* ------------------------------------------------ production site additions */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap.narrow { width: min(100% - 2.5rem, 62rem); }

header.site .actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.btn.sm { padding: 0.55rem 1rem; font-size: 0.875rem; min-height: 40px; }
.country-pick {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.7rem; text-decoration: none; color: var(--ink-70);
  font-size: 0.8125rem; font-weight: 600; min-height: 40px;
}
.country-pick:hover { border-color: var(--primary); color: var(--action); }
@media (max-width: 980px) {
  header.site .actions { order: 3; width: 100%; margin: 0 0 0.75rem; }
  nav.main { order: 2; }
}

.hero { background: linear-gradient(180deg, var(--soft) 0%, transparent 70%); }
.hero h1 { max-width: 20ch; }

/* --------------------------------------------------------------- launcher */

.launcher {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem; box-shadow: 0 10px 30px -18px rgb(31 33 38 / 35%);
}
.launcher-row {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: end;
}
.launcher .field.submit { display: flex; align-items: flex-end; }
.launcher .field.submit .btn { width: 100%; }
.launcher-status { margin: 1rem 0 0; font-size: 0.9375rem; }
.launcher-status.unavailable {
  border-left: 3px solid var(--primary); background: var(--soft);
  padding: 0.85rem 1rem; border-radius: 0 8px 8px 0; color: var(--ink-70);
}
.launcher-status a { color: var(--action); }

.quick { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 0.55rem 1.05rem; font: inherit;
  font-size: 0.875rem; font-weight: 600; cursor: pointer; min-height: 40px;
}
.chip:hover { border-color: var(--primary); color: var(--action); }

/* ------------------------------------------------------------ media cards */

.card.media { padding: 0; overflow: hidden; }
.card.media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card.media .card-body { padding: 1.25rem; }

.countries .country { justify-content: space-between; }
.country .ccy { color: var(--ink-45); font-size: 0.75rem; font-weight: 600; }

label.inline { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; }
label.inline input { width: auto; min-height: auto; margin-top: 0.25rem; }

/* Reflow to 320px without horizontal scrolling — a WCAG 2.2 AA requirement. */
@media (max-width: 360px) {
  .wrap { width: calc(100% - 1.5rem); }
  .launcher-row { grid-template-columns: 1fr; }
}
