:root {
  --red:        #cb0404;
  --blue:       #2979FF;
  --green:      #00C853;
  --orange:     #FF6B35;
  --ink:        #1a1a1a;
  --ink-soft:   #5a5a5a;
  --bg:         #F5F5F3;
  --white:      #ffffff;
  --line:       rgba(0, 0, 0, 0.08);
  --radius:     9999px;
  --max:        1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* Cross-document page transition (Chrome 126+, Safari 18.2+) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: fade-out 0.2s ease forwards;
}
::view-transition-new(root) {
  animation: fade-in 0.2s ease forwards;
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav--scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.nav-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 0;
}
.brand img { display: block; flex-shrink: 0; }
.brand span { white-space: nowrap; }

/* Hamburger */
.hamburger {
  position: relative;
  z-index: 102;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  margin-left: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
}
.menu-link {
  display: block;
  padding: 16px 24px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.12s ease;
}
.menu-link:hover { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.18);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 64px;
}
.hero-inner { max-width: 820px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin: 0 0 20px;
}

h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ink);
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 36px;
}

/* ---------- Feature sections ---------- */
.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 56px;
}
.feature-inner {
  max-width: 720px;
}

h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink);
}

.feature-body {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 16px;
}
.feature-body:last-child { margin-bottom: 0; }

.feature-body.highlight {
  font-weight: 600;
  color: var(--ink);
}

.cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- About ---------- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 56px;
  border-top: 1px solid var(--line);
}
.about-inner { max-width: 720px; }

.section-break {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0 48px;
  max-width: 640px;
}

.founder {
  margin: 40px 0 0;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  max-width: 640px;
}

h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--ink);
}

h4 {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
  font-weight: 700;
  margin: 32px 0 20px;
  color: var(--ink);
}

.foofoo-defs {
  margin: 0 0 28px;
  padding: 0;
  max-width: 640px;
}
.foofoo-defs dd {
  display: inline;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
}
.foofoo-defs dd::after {
  content: '\A';
  white-space: pre;
}
.foofoo-defs dt {
  display: inline;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--ink);
  font-style: italic;
}
.foofoo-defs dt::after {
  content: '';
  display: block;
  margin-bottom: 20px;
}

/* ---------- Sources strip ---------- */
.sources {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px 48px;
  border-top: 1px solid var(--line);
}
.sources-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.78;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.acknowledgement {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 640px;
  opacity: 0.7;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--ink-soft);
  transition: color 0.12s ease;
}
.footer-links a:hover { color: var(--red); }

/* ---------- Legal (privacy, terms) ---------- */
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 64px;
}
.legal-inner {
  max-width: 720px;
}
.legal h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 0 16px;
}
.legal h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 40px 0 14px;
}
.legal h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 28px 0 10px;
}
.legal p,
.legal li {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal p { margin: 0 0 14px; max-width: 640px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; max-width: 640px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal .legal-meta {
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.6;
}
.legal .contact-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 480px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .legal { padding: 32px 20px 48px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-inner { padding: 18px 20px; }
  .nav .btn { padding: 10px 16px; font-size: 14px; }
  .hero { padding: 24px 20px 48px; }
  .feature { padding: 0 20px 40px; }
  .about { padding: 40px 20px 40px; }
  .sources { padding: 24px 20px 40px; }
  .footer-inner { padding: 20px; }
  h1 br { display: none; }
}
