/* AAIRA public website — one stylesheet, no web fonts, nothing loaded from elsewhere.
   Colours are copied from the application (frontend/src/styles/tokens.css) so both look like one organisation. */

:root {
  --leaf-50: #f2f9ee;
  --leaf-100: #e1f0d5;
  --leaf-200: #c6e2af;
  --leaf-600: #3f8a2d;
  --leaf-700: #2f6b22;
  --leaf-800: #265a1b;
  --leaf-900: #183d10;
  --soil-50: #faf5ec;
  --soil-100: #f4ebdd;
  --soil-200: #e6d2b1;
  --soil-600: #72502a;
  --soil-700: #5a3a1c;
  --cream: #fbf7ef;
  --ink: #14251a;
  --ink-2: #304033;
  --ink-3: #56655c;
  --line: #e1dccf;
  --card: #ffffff;
  --muted-bg: #f3eedf;

  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --r-md: 12px;
  --r-lg: 18px;
  --header-h: 60px;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(1.9rem, 4.2vw + 0.9rem, 3.25rem);
  --fs-h2: clamp(1.5rem, 2vw + 1rem, 2.125rem);
  --fs-h3: 1.1875rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 var(--s-12); color: var(--leaf-900); font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-16); }
ul, ol { margin: 0 0 var(--s-16); padding-left: 1.25em; }
li { margin-bottom: var(--s-8); }
a { color: var(--leaf-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf-900); }
:focus-visible { outline: 3px solid var(--leaf-600); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-16); }
.narrow { max-width: 760px; }
.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 46em; }
.eyebrow {
  display: block; margin-bottom: var(--s-8);
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--soil-600);
}
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }

.skip {
  position: absolute; left: var(--s-8); top: -100px; z-index: 30;
  background: var(--leaf-900); color: #fff; padding: var(--s-12) var(--s-16); border-radius: var(--s-8);
}
.skip:focus { top: var(--s-8); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 239, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-8) var(--s-16); min-height: var(--header-h); padding-top: var(--s-8); padding-bottom: var(--s-8);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-8); text-decoration: none; color: var(--leaf-900); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: 0.02em; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-16); margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: var(--s-8) var(--s-4);
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); font-weight: 600;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--leaf-800); border-bottom-color: var(--leaf-600); }

.nav-toggle {
  display: none; align-items: center; gap: var(--s-8);
  min-height: 44px; padding: 0 var(--s-12);
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--s-8);
  font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}

/* On phones the menu is a plain wrapping row of links. It only collapses behind the button when the
   script has run (class "js" on <html>) — so with scripts off nothing is hidden. */
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-toggle + .site-nav { display: none; width: 100%; }
  .js .nav-toggle + .site-nav.is-open { display: block; }
  .js .nav-toggle + .site-nav ul { flex-direction: column; gap: 0; padding-bottom: var(--s-8); }
  .js .nav-toggle + .site-nav a { display: block; padding: var(--s-12) var(--s-4); border-bottom: 1px solid var(--line); }
}

/* ---------- sections ---------- */
section { padding: var(--s-48) 0; scroll-margin-top: calc(var(--header-h) + var(--s-16)); }
section.alt { background: var(--muted-bg); }
section.dark { background: var(--leaf-900); color: #eef5ea; }
section.dark h2, section.dark h3 { color: #ffffff; }
section.dark .eyebrow { color: var(--leaf-200); }
section.dark a { color: #ffffff; }
section.dark strong { color: #ffffff; }
@media (min-width: 900px) { section { padding: var(--s-64) 0; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-24); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-24);
  border-radius: 999px; border: 2px solid var(--leaf-700);
  font-weight: 700; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--leaf-700); color: #ffffff; }
.btn-primary:hover { background: var(--leaf-900); border-color: var(--leaf-900); color: #ffffff; }
.btn-secondary { background: transparent; color: var(--leaf-800); }
.btn-secondary:hover { background: var(--leaf-50); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--leaf-100) 0%, var(--cream) 55%, var(--soil-100) 100%); padding-top: var(--s-48); }
.hero h1 { max-width: 18em; }
.stage {
  display: inline-block; margin: var(--s-8) 0 0; padding: var(--s-8) var(--s-16);
  background: var(--card); border: 1px solid var(--soil-200); border-left: 4px solid var(--soil-600);
  border-radius: var(--s-8); font-size: var(--fs-small); color: var(--ink-2);
}

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: var(--s-16); }
.two { grid-template-columns: 1fr; }
.three { grid-template-columns: 1fr; }
@media (min-width: 560px) { .three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24); } }
@media (min-width: 900px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-24); min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: var(--s-8); }
.plain { list-style: none; padding: 0; }
.plain li { padding-left: 1.6em; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0.2em; top: 0.6em; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--leaf-600); }
section.dark .plain li::before { background: var(--leaf-200); }

/* ---------- features ---------- */
.feature { display: flex; flex-direction: column; }
.feature .for { margin: auto 0 0; padding-top: var(--s-12); font-size: var(--fs-small); color: var(--ink-3); }
.feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-12); margin-bottom: var(--s-8); }
.feature-head h3 { margin: 0; }
.status {
  flex: none; padding: 2px var(--s-12); border-radius: 999px; border: 1px solid;
  font-size: 0.8125rem; font-weight: 700; white-space: nowrap; line-height: 1.7;
}
[data-status="available"] .status { background: var(--leaf-100); color: var(--leaf-900); border-color: var(--leaf-600); }
[data-status="testing"] .status { background: var(--soil-100); color: var(--soil-700); border-color: var(--soil-600); }
[data-status="planned"] .status { background: #ffffff; color: var(--ink-2); border-color: var(--ink-3); border-style: dashed; }
.note {
  background: var(--card); border: 1px solid var(--soil-200); border-left: 4px solid var(--soil-600);
  border-radius: var(--s-8); padding: var(--s-16); margin-bottom: var(--s-24); max-width: 52em;
}
.note > :last-child { margin-bottom: 0; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3em; margin-bottom: var(--s-16); min-height: 2.2em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.1em; height: 2.1em; border-radius: 50%;
  background: var(--leaf-700); color: #ffffff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- roadmap ---------- */
.roadmap { display: grid; gap: var(--s-16); grid-template-columns: 1fr; }
@media (min-width: 900px) { .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roadmap .card { border-top: 6px solid var(--ink-3); }
.roadmap [data-group="done"] { border-top-color: var(--leaf-600); }
.roadmap [data-group="next"] { border-top-color: var(--soil-600); }
.roadmap [data-group="later"] { border-top-style: dashed; }
.roadmap h3 { font-size: 1.3125rem; }
.roadmap ul { margin-bottom: 0; }

/* ---------- team ---------- */
.person { display: grid; gap: var(--s-24); align-items: center; grid-template-columns: 1fr; }
.person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 560px) { .person { grid-template-columns: 160px minmax(0, 1fr); } }
.person .role { color: var(--soil-600); font-weight: 700; margin-bottom: var(--s-8); }

/* ---------- contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: var(--s-12); }
.contact-list .label { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leaf-200); }
.contact-list a { font-size: 1.25rem; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d7dfd9; padding: var(--s-32) 0; font-size: var(--fs-small); }
.site-footer a { color: #ffffff; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-32); justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer p { margin: 0; }

/* ---------- plain text pages (privacy, terms, not found) ---------- */
.doc { padding: var(--s-48) 0 var(--s-64); }
.doc h2 { font-size: 1.375rem; margin-top: var(--s-32); }

/* ---------- people who ask for less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .actions, .skip, .nav-toggle { display: none; }
  body, section, section.alt, section.dark, .hero { background: #ffffff; color: #000000; }
  section.dark h2, section.dark h3, section.dark a, section.dark strong, h1, h2, h3 { color: #000000; }
  section { padding: 12pt 0; }
  .card { border: 1px solid #999999; break-inside: avoid; }
}

/* ---------- small spacing helpers ---------- */
.also { margin-top: var(--s-32); }
.grid + .note { margin-top: var(--s-24); }
