/* Atwater website: the app's colors (src/constants/theme.ts), from the icon: a coral ring on
   deep green, a cream plate, a green leaf. Light and dark follow the visitor's phone. */

:root {
  --green: #1e3a2b; /* the icon's deep green */
  --text: #1c2a22;
  --text-secondary: #5c6b61;
  --background: #fffcf7;
  --card: #f5eee1;
  --border: #dacfbc;
  --accent: #df5a3c; /* coral: buttons and the ring */
  --accent-text: #b2432b; /* coral dark enough to read as text */
  --accent-soft: #fbe3db;
  --leaf: #4e9456;
  --hero-text: #f3eada;
  --hero-text-secondary: #c9d4cc;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3eada;
    --text-secondary: #b3c0b6;
    --background: #13261c;
    --card: #1e3a2b;
    --border: #3b5747;
    --accent: #f27a5b;
    --accent-text: #f4927a;
    --accent-soft: #4a2e27;
    --leaf: #7fcb8b;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent-text);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--background);
}

/* Header and navigation */

.site-header {
  background: var(--green);
  color: var(--hero-text);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hero-text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--hero-text);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Home */

.hero {
  background: var(--green);
  color: var(--hero-text);
  padding: 40px 16px 64px;
  text-align: center;
}

.hero .icon {
  width: 148px;
  height: 148px;
  border-radius: 33px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 .tagline {
  font-weight: 500;
  color: var(--hero-text-secondary);
  white-space: nowrap;
}

.hero .lead {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 19px;
  color: var(--hero-text);
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid #f27a5b;
  color: var(--hero-text);
  font-weight: 700;
  font-size: 18px;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: -32px auto 0;
  padding: 0 16px;
}

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

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

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.feature h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.feature .mark {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.note {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Text pages: privacy, terms, support */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 16px 24px;
}

.page h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.updated {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.page h2 {
  margin: 40px 0 8px;
  font-size: 23px;
  line-height: 1.3;
}

.page h3 {
  margin: 24px 0 4px;
  font-size: 18px;
}

.page ul {
  padding-left: 22px;
}

.page li {
  margin: 6px 0;
}

.summary {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--leaf);
  border-radius: 12px;
  padding: 16px 20px;
}

.summary h2 {
  margin-top: 0;
  font-size: 19px;
}

.summary ul {
  margin: 0;
}

.callout {
  margin-top: 24px;
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 14px 20px;
}

.callout p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 700;
}

/* On phones, each provider becomes its own block instead of three narrow columns. */
@media (max-width: 600px) {
  table,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    position: absolute;
    left: -9999px;
  }

  tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  td {
    padding: 2px 0;
    border: 0;
  }

  td:first-child {
    font-weight: 700;
    font-size: 18px;
  }

  td:nth-child(2)::before {
    content: 'What it does: ';
    font-weight: 600;
  }

  td:nth-child(3)::before {
    content: 'What it receives: ';
    font-weight: 600;
  }
}

.contact-card {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.contact-card p {
  margin: 0 0 12px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: #df5a3c;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover {
  background: #c94d31;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style-position: outside;
}

details p,
details ul {
  margin-top: 0;
}

/* Footer */

.site-footer {
  max-width: 960px;
  margin: 56px auto 0;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
