:root {
  --ink: #1d2733;
  --muted: #5b6776;
  --accent: #1f5f8b;
  --surface: #f5f7fa;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
}

body {
  margin: 0;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.site-header nav a {
  margin-left: 1.5rem;
  color: var(--ink);
}

.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

/*
 * Slot contract: the hero reserves its space up front, so swapping or keeping content
 * never shifts the layout (CLS <= 0.01).
 */
.hero {
  box-sizing: border-box;
  min-height: 22rem;
  contain: layout;
  padding: 4rem 2rem;
  background: var(--surface);
}

@media (max-width: 640px) {
  .hero {
    min-height: 26rem;
    padding: 3rem 1.25rem;
  }
}

/*
 * Slots stay hidden until the SDK marks them done. If JavaScript never runs, this CSS-only
 * failsafe reveals the baseline after 450 ms. Visibility changes cause no layout shift.
 */
[data-tp-slot]:not([data-tp-done]) {
  visibility: hidden;
  animation: tp-reveal 0s 450ms forwards;
}

@keyframes tp-reveal {
  to {
    visibility: visible;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.hero p {
  color: var(--muted);
  max-width: 40rem;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.375rem;
  text-decoration: none;
}

.content {
  padding: 2rem;
  max-width: 48rem;
}

.site-footer {
  color: var(--muted);
  font-size: 0.875rem;
}
