:root {
  --primary: #1d49a6;
  --primary-dark: #163a85;
  --primary-foreground: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--bg-secondary);
}

.btn-muted {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--primary-foreground);
  padding: 2.5rem 0 3rem;
}

.hero .container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.2);
}

.hero-cta .btn-primary:hover {
  background: #f8fafc;
  color: var(--primary-dark);
  border-color: #fff;
}

.hero-cta .btn-app-store {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
}

.hero-cta .btn-app-store:hover,
.hero-cta .btn-app-store:active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}

.btn-app-store-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.hero-qr {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-qr-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
}

.hero-qr-caption {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.95;
  max-width: 12ch;
}

@media (min-width: 768px) {
  .hero-qr-image {
    width: 140px;
    height: 140px;
  }
}

.hero-banner {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section .intro {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.0625rem;
  color: var(--primary);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.benefits {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefits li {
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 500;
}

.benefits li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.audience-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .audience-list {
    columns: 3;
  }
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 32rem;
}

.contact-card p {
  margin: 0.5rem 0;
}

.contact-card a {
  font-weight: 500;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Invite page (minimal) */
.invite-page {
  max-width: 28rem;
  margin: 3rem auto;
  padding: 1rem;
  text-align: center;
}

.invite-page h1 {
  font-size: 1.5rem;
}

.invite-page .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
