:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-inverse: #f5f5f7;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-dark: #0058b0;
  --border: #d2d2d7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
}

.nav-links a { opacity: 0.8; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 980px;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { text-decoration: underline; }

.btn-white {
  background: #fff;
  color: var(--text);
}

/* Hero blocks (full-bleed, alternating background) */
.hero-block {
  padding: 64px 0 48px;
  text-align: center;
}
.hero-block.alt { background: var(--bg-alt); }
.hero-block.dark { background: var(--bg-dark); color: var(--text-inverse); }

.hero-block .eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-block.dark .eyebrow { color: #a1a1a6; }

.hero-block h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  line-height: 1.07;
}

.hero-block p.sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 20px;
}
.hero-block.dark p.sub { color: #a1a1a6; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-graphic {
  max-width: 420px;
  margin: 0 auto;
  font-size: 90px;
  line-height: 1;
}

/* Grid sections */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 700px) {
  .grid2 { grid-template-columns: 1fr; }
}

.tile {
  padding: 56px 40px;
  text-align: center;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tile.bg-alt { background: var(--bg-alt); }
.tile.bg-blue { background: #eef6ff; }
.tile.bg-dark { background: #000; color: var(--text-inverse); }
.tile.bg-white { background: #fff; }

.tile h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.tile p.sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 18px;
}
.tile.bg-dark p.sub { color: #a1a1a6; }

.tile .hero-actions { margin-bottom: 24px; }

.tile .icon {
  font-size: 64px;
  margin-top: auto;
}

/* Small link tiles (like Upgrade / Card row) */
.tile-small {
  padding: 40px 30px;
  text-align: center;
  background: var(--bg-alt);
}
.tile-small h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}
.tile-small p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Section titles (used sparingly, plain) */
.section-title {
  text-align: center;
  padding: 56px 0 8px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Footer */
footer.site {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0 20px;
  font-size: 12px;
  color: var(--muted);
}

footer.site .legal-note p {
  margin: 0 0 10px;
  line-height: 1.5;
}

footer.site .footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

footer.site .footer-cols h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

footer.site .footer-cols a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
}
footer.site .footer-cols a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-bottom .links {
  display: flex;
  gap: 14px;
}
.footer-bottom .links a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  footer.site .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Legal / document pages */
.legal {
  padding: 60px 0 100px;
}

.legal .container-narrow {
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 44px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 10px;
}
.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li {
  color: #333336;
  line-height: 1.6;
  font-size: 15px;
}

.legal ul { padding-left: 20px; margin: 8px 0; }

.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

.legal a.email {
  color: var(--blue);
}
