:root {
  color-scheme: light;
  --background: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #edf3fb;
  --text: #142033;
  --muted: #5e6d83;
  --primary: #146fd1;
  --primary-dark: #0b4f9b;
  --border: #dce4ef;
  --warning: #7a4c00;
  --warning-background: #fff4d6;
  --danger: #a52a2a;
  --shadow: 0 18px 50px rgba(20, 32, 51, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary);
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid rgba(20, 111, 209, 0.35);
  outline-offset: 4px;
}

.site-header,
.site-footer,
main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.site-header nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.wordmark {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark-small {
  font-size: 1.15rem;
}

.hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  max-width: 52rem;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  margin: 0;
}

h2 {
  font-size: 1.35rem;
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 1.75rem 0 2rem;
  max-width: 42rem;
}

.notice {
  align-items: flex-start;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 38rem;
  padding: 1rem 1.1rem;
}

.notice span,
.card p,
.content-page p,
.content-page li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 6rem;
}

.card,
.content-card,
.invite-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.card-number {
  color: var(--primary);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
}

.card p {
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  padding-block: 2rem;
}

.footer-links {
  justify-content: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.content-page {
  max-width: 48rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.content-page > h1 {
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
}

.content-intro {
  font-size: 1.15rem;
  margin: 0 0 2.5rem;
}

.content-card {
  margin-block: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.content-card h2 {
  margin-bottom: 0.85rem;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card ul,
.steps {
  padding-left: 1.25rem;
}

.draft-banner {
  background: var(--warning-background);
  border: 1px solid #e7c76c;
  border-radius: 1rem;
  color: var(--warning);
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
}

.draft-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.invite-main {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 7rem);
  padding-block: 3rem;
}

.invite-panel {
  max-width: 38rem;
  padding: clamp(1.5rem, 6vw, 3rem);
  text-align: center;
  width: 100%;
}

.invite-panel h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  margin: 0.5rem 0 1rem;
}

.invite-panel p {
  color: var(--muted);
}

.invite-state[hidden] {
  display: none;
}

.error-text {
  color: var(--danger) !important;
}

.back-link {
  display: inline-block;
  font-weight: 700;
  margin-top: 1rem;
}

@media (max-width: 48rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-number {
    margin-bottom: 1.5rem;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
