:root {
  --teal: #3a8aa3;
  --teal-dark: #317a91;
  --ink: #1a1a1a;
  --muted: #555;
  --border: #e6e6e6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #68b7c6;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: #68b7c6;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Masthead: background image sits behind banner + nav + hero */
.masthead {
  background-image: url("assets/home-bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.nav {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
}

.nav__link {
  color: var(--teal);
  font-size: 16px;
  font-weight: 600;
}

/* Transparent nav over the hero image */
.nav--overlay {
  background: transparent;
  border-bottom: none;
}

.nav--overlay .nav__brand,
.nav--overlay .nav__link {
  color: #fff;
}

.nav--overlay .nav__link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

.btn--lg {
  font-size: 18px;
  padding: 15px 40px;
}

.btn--pill {
  border-radius: 999px;
}

/* Hero */
.hero {
  flex: 1;
  text-align: center;
}

.hero__inner {
  padding: 160px 24px 120px;
  max-width: 860px;
  margin: 0 auto;
}

.hero__title {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.hero__title .accent {
  color: var(--teal);
}

.hero__subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #fafafa;
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.footer__links {
  display: flex;
  gap: 24px;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px calc(96px + env(safe-area-inset-bottom));
}

.legal h1 {
  font-size: 40px;
  margin: 0 0 8px;
}

.legal .legal__updated {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: #333;
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 36px;
  }

  .hero__inner {
    padding: 140px 16px 80px;
  }

  .hero__subtitle {
    font-size: 18px;
  }
}
