/* Shared styles */
:root {
  --green: #3FA34D;
  --green-hover: #348A41;
  --green-soft: #eaf6ec;
  --ink: #1a2420;
  --muted: #5a6b60;
  --line: #d5e6d9;
  --bg: #f7faf7;
  --card: #ffffff;
  --header-bg: var(--green-soft);
  --strong: #17361f;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(26, 36, 32, 0.06);
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #6fc97c;
    --green-hover: #8ad694;
    --green-soft: #16261b;
    --ink: #e6efe8;
    --muted: #9fb3a5;
    --line: #2b3d30;
    --bg: #0f1712;
    --card: #16211a;
    --header-bg: #16261b;
    --strong: #f1f8f2;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green);
  word-break: break-word;
}

a:hover {
  color: var(--green-hover);
}

strong {
  color: var(--strong);
}

/* Site header / nav */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--green);
  padding: 20px 20px 16px;
}

.site-header .inner,
.page-header .inner,
main,
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
}

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

.site-brand:hover {
  color: var(--green);
}

.site-brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.site-nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

/* Page header (legal pages) */
.page-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--green);
  padding: 28px 20px 22px;
}

.app-label {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.page-header h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

/* Main content */
main {
  padding: 8px 20px 48px;
  flex: 1;
}

main h2 {
  font-size: 20px;
  margin: 32px 0 8px;
  padding-left: 12px;
  border-left: 4px solid var(--green);
  line-height: 1.3;
}

main h3 {
  font-size: 17px;
  margin: 20px 0 6px;
  color: var(--strong);
}

main p,
main li {
  margin: 8px 0;
}

main ul {
  padding-left: 22px;
}

main li::marker {
  color: var(--green);
}

.effective {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
  margin: 20px 0 8px;
  box-shadow: var(--shadow);
}

/* Landing */
.hero {
  padding: 36px 0 8px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.app-cards {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}

.app-card h2 {
  margin: 0 0 6px;
  padding: 0;
  border: none;
  font-size: 22px;
}

.app-card .desc {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 16px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-links a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--green);
}

.app-links a:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-hover);
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--strong);
  list-style-position: outside;
}

.faq details[open] summary {
  margin-bottom: 8px;
  color: var(--green);
}

.faq details p:last-child {
  margin-bottom: 0;
}

/* Contact box */
.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.contact-box a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
}

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

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

.site-footer a:hover {
  color: var(--green);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .page-header h1,
  .hero h1 {
    font-size: 24px;
  }

  .hero {
    padding-top: 24px;
  }
}
