:root {
  --content-max: 1180px;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --home-rail-offset: clamp(0rem, 4vw, 3.4rem);
  --page-bg: #fdfdfd;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --line: #dbe4ef;
  --line-strong: #c9d7e8;
  --ink: #101b36;
  --text: #3d495f;
  --muted: #6c7890;
  --quiet: #98a4b8;
  --heading: #4f5056;
  --copy: #5e6268;
  --link: #164679;
  --logo-blue: #2f96c7;
  --blue-deep: #155a95;
  --shadow: 0 20px 60px rgba(30, 65, 105, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--copy);
  background: var(--page-bg);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e4ebf4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  min-height: 4.25rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 8rem;
  min-width: 7.5rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.65vw, 1.35rem);
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0;
  color: var(--heading);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link.is-disabled {
  color: #a7b0bf;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.nav-link[href]:hover {
  color: var(--ink);
}

.language-menu {
  position: relative;
  margin-left: clamp(0.4rem, 1.6vw, 1.2rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 2.15rem;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 0.24rem solid transparent;
  border-right: 0.24rem solid transparent;
  border-top: 0.32rem solid currentColor;
  opacity: 0.6;
}

.language-options {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  min-width: 6.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.language-options a {
  padding: 0.52rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--copy);
  font-size: 0.84rem;
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: #f3f7fb;
  color: var(--heading);
}

.page-shell {
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: clamp(1.75rem, 3.4vw, 3rem);
  align-items: center;
  min-height: 26.75rem;
  padding: clamp(2.55rem, 4.4vw, 3.85rem) 0 1.1rem;
}

.hero-copy {
  padding-left: var(--home-rail-offset);
}

.hero-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.65rem, 4.65vw, 3.45rem);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  max-width: 38.5rem;
  margin: 1.35rem 0 0;
  color: var(--copy);
  font-size: clamp(1.02rem, 1.28vw, 1.08rem);
  line-height: 1.56;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.32rem 0 0;
  color: #6b7582;
  font-size: 0.94rem;
}

.hero-note::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: #c8d8e8;
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin-left: clamp(-3.6rem, -3.35vw, -2.05rem);
  min-width: 0;
  transform: translateY(0.45rem);
}

.tree-illustration {
  display: block;
  width: min(100%, 17.15rem);
  height: auto;
  border-radius: 0.18rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2.9rem);
  margin: 0 auto;
  padding: 0.78rem var(--home-rail-offset);
  border: 0;
  background: transparent;
}

.feature {
  min-width: 0;
  min-height: 3.45rem;
  padding: 0;
  border: 0;
}

.feature h2 {
  margin: 0;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.feature p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.36;
}

.lower-copy {
  max-width: var(--content-max);
  padding: clamp(3rem, 6vw, 4.1rem) var(--home-rail-offset) 3.2rem;
  margin: 0 auto;
}

.lower-copy h2,
.lower-copy p {
  max-width: 62rem;
}

.lower-copy h2 {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.12;
  font-weight: 760;
}

.lower-copy p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--copy);
  font-size: clamp(1.05rem, 1.65vw, 1.2rem);
  line-height: 1.55;
}

.site-footer {
  padding: clamp(2.3rem, 4.5vw, 3.6rem) 0 3.3rem;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1.5rem, 4vw, 3.6rem);
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  margin: 0 auto;
}

.footer-inner a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: min(calc(100% - var(--page-gutter) * 2), 62rem);
  padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  color: var(--heading);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-kicker {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 620;
}

.legal-page h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.14;
  font-weight: 700;
}

.legal-updated {
  margin: 1rem 0 0;
  color: var(--quiet);
  font-size: 0.96rem;
}

.legal-notice,
.cross-links {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
}

.legal-notice p,
.cross-links p {
  margin: 0;
  color: var(--copy);
  line-height: 1.55;
}

.legal-notice p + p,
.cross-links p + p {
  margin-top: 0.55rem;
}

.cross-links a,
.legal-content a {
  color: var(--link);
}

.legal-content {
  margin-top: clamp(2.1rem, 4vw, 3.1rem);
}

.legal-content section + section {
  margin-top: 1.85rem;
}

.legal-content h2 {
  margin: 0 0 0.65rem;
  color: var(--heading);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 700;
}

.legal-content p {
  margin: 0;
  color: var(--copy);
  font-size: 1rem;
  line-height: 1.62;
}

.root-fallback {
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 2rem;
  color: var(--copy);
  text-align: center;
}

.root-fallback h1 {
  margin: 0 0 1rem;
  color: var(--heading);
}

.root-fallback a {
  color: var(--link);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1081px) and (max-height: 920px) {
  .header-inner {
    min-height: 3.9rem;
  }

  .brand {
    width: 7.35rem;
  }

  .hero {
    min-height: 22.5rem;
    padding: clamp(1.9rem, 3.2vw, 2.65rem) 0 0.72rem;
  }

  .hero-title {
    font-size: clamp(2.45rem, 4vw, 3.08rem);
  }

  .hero-subtitle {
    margin-top: 1.05rem;
    font-size: 0.98rem;
    line-height: 1.52;
  }

  .hero-note {
    margin-top: 1rem;
    font-size: 0.88rem;
  }

  .tree-illustration {
    width: min(100%, 15.8rem);
  }

  .feature-strip {
    padding: 0.56rem var(--home-rail-offset);
  }

  .feature {
    min-height: 3.05rem;
  }

  .lower-copy {
    padding: clamp(2.05rem, 4vw, 2.8rem) var(--home-rail-offset) 2.7rem;
  }

  .lower-copy h2 {
    font-size: clamp(1.55rem, 2.55vw, 1.95rem);
  }

  .lower-copy p {
    margin-top: 0.75rem;
    font-size: 1.02rem;
    line-height: 1.5;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3.35rem;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-visual {
    margin-left: 0;
    transform: none;
  }

  .lower-copy {
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
  }

  .lower-copy h2,
  .lower-copy p {
    margin-left: 0;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.55rem;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 1.5rem, var(--content-max));
  }

  .header-inner {
    min-height: 4.05rem;
    gap: 0.8rem;
  }

  .brand {
    width: 7.6rem;
  }

  .site-nav {
    gap: 0.35rem 0.78rem;
  }

  .nav-link {
    min-height: 2.35rem;
    font-size: 0.88rem;
  }

  .language-menu {
    margin-left: 0.35rem;
    min-height: 2.35rem;
    font-size: 0.82rem;
  }

  .nav-link {
    padding: 0;
  }

  .hero {
    gap: 1.55rem;
    padding: 2.35rem 0 0.9rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10.5vw, 2.95rem);
  }

  .hero-subtitle {
    margin-top: 1.15rem;
    font-size: 1rem;
  }

  .hero-note {
    margin-top: 1.12rem;
    font-size: 0.86rem;
  }

  .tree-illustration {
    width: min(76vw, 15.25rem);
  }

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

  .feature {
    min-height: 4.15rem;
    padding: 0.68rem 0.2rem;
  }

  .lower-copy {
    padding: 3rem 0 2.7rem;
  }

  .footer-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 0.65rem 0 0.8rem;
  }

  .brand {
    width: 7.2rem;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .nav-link,
  .language-menu {
    font-size: 0.82rem;
  }

  .language-options {
    right: 0;
  }
}
