:root {
  color-scheme: light dark;
  --background: #f5f7f6;
  --surface: #ffffff;
  --text: #18201d;
  --muted: #5d6964;
  --line: #dce3df;
  --accent: #167354;
  --accent-hover: #105b42;
  --soft: #e7f2ed;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

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

.brand img,
.app-icon { border-radius: 22%; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
footer a:hover,
.text-link:hover { color: var(--accent); }

.hero {
  min-height: 520px;
  padding: 64px 0 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.app-icon {
  margin-bottom: 28px;
  box-shadow: 0 14px 35px rgba(20, 75, 56, 0.16);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1, h2, h3, p, ul { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

p, li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lead {
  max-width: 670px;
  margin-bottom: 28px;
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary { background: var(--accent); color: #ffffff; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.link-grid article {
  padding: 38px 30px;
  background: var(--surface);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.document { padding: 58px 0; }

.document-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 { max-width: 760px; }
.effective-date { margin-bottom: 0; font-size: 0.92rem; }

.document > section {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  column-gap: 52px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.document > section h2 { grid-column: 1; }
.document > section > :not(h2) { grid-column: 2; }
.document > section p:last-child,
.document > section ul:last-child { margin-bottom: 0; }

ul { padding-left: 20px; }

.faq-list { display: grid; gap: 24px; }
.faq-list article { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.faq-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.faq-list p { margin-bottom: 0; }

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111614;
    --surface: #171e1b;
    --text: #edf3f0;
    --muted: #aebbb5;
    --line: #2d3934;
    --accent: #67c99f;
    --accent-hover: #83dbb6;
    --soft: #1d332a;
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 24px), var(--max-width)); }
  .site-header { align-items: flex-start; padding: 16px 0; }
  nav { justify-content: flex-end; gap: 12px; }
  .hero { min-height: 500px; padding-top: 44px; }
  .link-grid { grid-template-columns: 1fr; }
  .document { padding-top: 42px; }
  .document > section { grid-template-columns: 1fr; row-gap: 4px; }
  .document > section h2,
  .document > section > :not(h2) { grid-column: 1; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}
