:root {
  color-scheme: light;
  --forest: #183e35;
  --sage: #376c59;
  --apricot: #ef8f61;
  --ivory: #f8f7f1;
  --paper: #fffdf8;
  --ink: #20352f;
  --muted: #5d6f68;
  --line: #dce4df;
  --shadow: 0 18px 50px rgba(24, 62, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--forest);
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: var(--forest);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid rgba(24, 62, 53, 0.1);
  background: rgba(248, 247, 241, 0.94);
}

.header-inner,
.page,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.language-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: var(--paper);
}

.page {
  padding-block: 4rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 540px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--forest);
  line-height: 1.15;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  letter-spacing: -0.055em;
}

.legal h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 6vw, 4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

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

.hero-copy {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--forest);
  color: white;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -85px;
  border-radius: 50%;
  background: var(--apricot);
  opacity: 0.9;
}

.hero-card strong {
  display: block;
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.12;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.8rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffc19f;
  font-weight: 900;
}

.section {
  padding-block: 4rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.notice,
.legal section {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
}

.feature-card {
  padding: 1.5rem;
}

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

.notice {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-left: 5px solid var(--apricot);
}

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

.legal {
  width: min(820px, 100%);
  margin-inline: auto;
}

.legal-intro {
  margin: 1.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal section {
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.legal section p:last-child,
.legal section ul:last-child,
.legal section ol:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.footer-links a {
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 1rem 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.tally-theme {
  --forest: #073a4a;
  --sage: #007e87;
  --apricot: #ff8f9a;
  --ivory: #f2fbfb;
  --paper: #ffffff;
  --ink: #102f3a;
  --muted: #526f78;
  --line: #cae7e9;
  --shadow: 0 18px 50px rgba(0, 126, 135, 0.16);
}

.tally-theme .site-header {
  background: rgba(242, 251, 251, 0.94);
}

.tally-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--forest);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.tally-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #10c9c6, #008f9e);
  color: white;
  font-size: 1.15rem;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0, 143, 158, 0.24);
}

.tally-theme .hero-card {
  background: linear-gradient(145deg, #073a4a, #006c77);
}

.tally-theme .hero-card::after {
  background: #12d4cf;
}
