/* Galileo website. Design B "Daylight", the same tokens as the app
   (galileo-app lib/config/theme.dart). Light only, like the app. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --ink: #12141c;
  --muted: #5e6373;
  --line: #e6e8ee;
  --fill: #f4f5f8;
  --cobalt: #2453d6;
  --cobalt-tint: #e9efff;
  --cobalt-text: #1c46b5;
  --coral: #f06a2a;
  --coral-tint: #fff1e8;
  --coral-text: #b4400b;
  --coral-deep: #8a3108;
  --purple: #6b3fd1;
  --purple-tint: #f1ecff;
  --pin: #5bc58c;
  --pin-tint: #e8f7ee;
  --pin-text: #1b7a46;
  --danger: #c4271b;

  --heading: "Outfit", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --page: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }

a { color: var(--cobalt-text); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }

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

h1, h2, h3 {
  font-family: var(--heading);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 10;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-text); color: #fff; }
.btn-quiet { background: var(--fill); color: var(--ink); }
.btn-quiet:hover { background: var(--line); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .copy { margin-left: auto; }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 72px;
}
.legal .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.legal h1 {
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.legal .updated { color: var(--muted); margin-top: 10px; font-size: 15px; }
.legal h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 40px 0 10px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .lead { font-size: 18px; color: var(--ink); margin-top: 28px; }
