/* ─── 1. Custom properties ─────────────────────────────────────── */
:root {
  --navy:      #011548;
  --blue:      #1565C0;
  --blue-dark: #0D47A1;
  --cyan:      #29B6F6;
  --white:     #ffffff;
  --text:      #0F172A;
  --muted:     #374151;
  --border:    rgba(0, 0, 0, 0.09);

  /* Type scale */
  --fs-display:  clamp(1.5rem, 7vw, 4rem);
  --fs-headline: clamp(1.75rem, 3.5vw, 2.25rem);
  --fs-lead:     clamp(1.125rem, 2vw, 1.25rem);
  --fs-body:     1.0625rem;
  --fs-label:    0.8125rem;
}

/* ─── 2. Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── 3. Base ───────────────────────────────────────────────────── */
body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

/* ─── 4. Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* ─── 5. Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 100;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 60px;
}

.nav-logo {
  height: 34px;
  width: auto;
}

/* Hidden checkbox powers the mobile toggle — no JS needed */
.nav-toggle-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Cyan underline accent on hover (skips the Join button) */
.nav-links a:not(.btn-join) { position: relative; }

.nav-links a:not(.btn-join)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:not(.btn-join):hover::after { transform: scaleX(1); }

.nav-links .btn-join {
  background: var(--blue);
  color: var(--white);
  padding: 0.4rem 1.1rem;
  border-radius: 3px;
  font-weight: 700;
}

.nav-links .btn-join:hover { background: var(--blue-dark); }

/* ─── 6. Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--blue);
  color: var(--white);
  padding: 6rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Concentric "radar" rings on the right — the flyer's signature motif.
   Masked so they fade out behind the text on the left. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at 88% 42%,
    transparent 0 70px,
    rgba(255, 255, 255, 0.13) 70px 72px
  );
  -webkit-mask-image: linear-gradient(to right, transparent 28%, #000 72%);
          mask-image: linear-gradient(to right, transparent 28%, #000 72%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--cyan);
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-hero:hover { background: rgba(255, 255, 255, 0.9); }

.hero-reason {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin: 0;
}

/* ─── 7. Section base ───────────────────────────────────────────── */
.section { padding: 4.5rem 0; }

.section--dark {
  background: var(--navy);
  color: var(--white);
}

/* Centered single column: a real headline introduces each section */
.section-title {
  font-size: var(--fs-headline);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  padding-bottom: 1rem;
  position: relative;
}

/* Short cyan accent rule under each headline — echoes the hero eyebrow */
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
}

.section--dark .section-title { color: var(--white); }

/* ─── 8. Section content typography ────────────────────────────── */
.section-content {
  max-width: 640px;
  margin: 0 auto;
}

.section-content p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-content p:last-child { margin-bottom: 0; }

.section--tldr .section-content p {
  font-size: var(--fs-lead);
  color: var(--text);
  line-height: 1.7;
}

/* Make the key TL;DR callout pop in brand blue */
.section--tldr .section-content strong { color: var(--blue); }

.section--dark .section-content p      { color: rgba(255, 255, 255, 0.85); }
.section--dark .section-content strong { color: var(--white); }

/* Content links — cyan-accented underline (blue on light, cyan on dark) */
.section-content a,
.faq-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.section-content a:hover,
.faq-body a:hover {
  color: var(--blue-dark);
  text-decoration-color: var(--blue-dark);
}

.section--dark .section-content a {
  color: var(--cyan);
  text-decoration-color: rgba(41, 182, 246, 0.5);
}

.section--dark .section-content a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* ─── 9. TL;DR section ──────────────────────────────────────────── */
.section--tldr { background: #f4f8ff; }

/* ─── 10. Lists ─────────────────────────────────────────────────── */
.section-content ul {
  list-style: none;
  margin-top: 0.75rem;
}

.section-content ul li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.section-content ul li:last-child { border-bottom: none; }

.section-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.section--dark .section-content ul li {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section--dark .section-content ul li::before { background: var(--cyan); }

/* Markdown wraps <li> text in <p> — remove the margin */
.section-content ul li p { margin: 0; }

/* ─── 11. Note block ────────────────────────────────────────────── */
.note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  font-style: italic;
}

.note p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

/* ─── 12. FAQ accordion ─────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

/* Hide native disclosure triangle cross-browser */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker              { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 1rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-body {
  padding: 0 0 1.25rem;
}

.faq-body p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.faq-body p:last-child { margin-bottom: 0; }

.faq-body ul li {
  font-size: 1rem;
  border-bottom: none;
}

.faq-body ul li::before {
  top: 0.65rem;
  background: var(--blue);
}

/* ─── 13. Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 0;
  text-align: center;
}

/* Cyan stripe — matches the flyer's bottom accent bar */
.footer::after {
  content: '';
  display: block;
  height: 5px;
  background: var(--cyan);
}

.footer-inner { padding: 0 2rem 3.5rem; }

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--white);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-cta:hover { background: var(--blue-dark); }

/* ─── 14. Focus / accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.footer :focus-visible {
  outline-color: var(--white);
}

/* ─── 15. Motion preference ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .nav-links a,
  .btn-cta,
  .btn-hero,
  .nav-links .btn-join { transition: background 0.15s, color 0.15s, opacity 0.15s; }

  .nav-links a:not(.btn-join)::after { transition: transform 0.2s ease; }
}

/* ─── 16. Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-toggle-label { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0.25rem 0 1rem;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links .btn-join {
    display: block;
    margin-top: 0.75rem;
    padding: 0.65rem 0;
    text-align: center;
    border-radius: 3px;
    border-bottom: none;
  }

  .nav:has(.nav-toggle-check:checked) .nav-links { display: flex; }

  @media (prefers-reduced-motion: no-preference) {
    .nav-toggle-label span { transition: transform 0.2s, opacity 0.2s; }
  }

  .nav:has(.nav-toggle-check:checked) .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav:has(.nav-toggle-check:checked) .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav:has(.nav-toggle-check:checked) .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section { padding: 3rem 0; }

  .section-title { margin-bottom: 1.75rem; }

  .hero { padding: 3.5rem 0 3rem; }
}
