:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f3f5f5;
  --surface-strong: #e9eeee;
  --text: #263238;
  --muted: #5f6b70;
  --border: #dfe6e8;
  --brand: #47646c;
  --brand-dark: #273a40;
  --accent: #2f8f83;
  --header: #212121;
  --header-muted: rgba(255, 255, 255, 0.72);
  --shadow: 0 12px 32px rgba(38, 50, 56, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  display: inline-block;
  font-size: 18px;
  line-height: 1.2;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--header-muted);
  font-size: 15px;
  font-weight: 400;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.nav-item {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-parent::after {
  content: "▾";
  font-size: 12px;
  line-height: 1;
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--header);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 8px 14px;
  white-space: nowrap;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding: 28px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
}

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

main.container {
  padding: 42px 0 74px;
}

.lead {
  max-width: 780px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-align: center;
}

.section {
  margin-top: 34px;
}

.section:first-child {
  margin-top: 0;
}

.prose {
  max-width: 860px;
  margin: 0 auto;
}

.prose h2 {
  margin: 32px 0 12px;
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1.25;
}

.prose h3 {
  margin: 24px 0 8px;
  color: var(--brand-dark);
  font-size: 19px;
  line-height: 1.3;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
}

.prose ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted);
}

.prose li {
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card-stack {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.policy-stack .card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.policy-stack .card h2,
.policy-stack .card p {
  grid-column: 1;
}

.policy-stack .card .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1.25;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: #ffffff;
  color: var(--brand);
}

.app-list {
  display: grid;
  gap: 30px;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.app-section:first-child {
  border-top: 0;
}

.app-icon-wrap {
  display: flex;
  justify-content: center;
}

.app-icon {
  width: min(176px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
}

.app-copy h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 25px;
  line-height: 1.2;
  text-align: center;
}

.app-copy .app-subtitle {
  margin: -6px 0 16px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.app-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
  text-align: justify;
}

.store-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.store-links img {
  display: block;
  width: auto;
}

.google-play {
  height: 58px;
}

.app-store {
  height: 52px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

@media (max-width: 1180px) {
  .nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 24px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
  }

  .nav-links > a,
  .nav-parent {
    padding: 9px 0;
  }

  .submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 4px 14px;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .page-hero {
    min-height: 96px;
    padding: 22px 20px;
  }

  .page-hero h1 {
    font-size: 29px;
  }

  .lead {
    font-size: 16px;
  }

  .app-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-stack .card {
    grid-template-columns: 1fr;
  }

  .policy-stack .card .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 32px, 1080px);
  }

  .brand {
    font-size: 17px;
  }

  .page-hero h1 {
    font-size: 27px;
  }

  .card {
    padding: 18px;
  }
}
