:root {
  color-scheme: light dark;
  --bg: #f4f8f8;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --bg-strong: #ffffff;
  --border: rgba(16, 37, 39, 0.12);
  --border-strong: rgba(16, 37, 39, 0.18);
  --text: #0f2527;
  --text-secondary: #48676b;
  --accent: #2f8d86;
  --accent-soft: rgba(47, 141, 134, 0.12);
  --accent-strong: #246f6a;
  --focus: #0f6dcb;
  --shadow: 0 12px 32px rgba(9, 20, 22, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 72rem;
  --reading-width: 50rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1618;
    --bg-elevated: rgba(19, 31, 34, 0.9);
    --bg-strong: #132125;
    --border: rgba(185, 223, 221, 0.12);
    --border-strong: rgba(185, 223, 221, 0.18);
    --text: #ecf5f4;
    --text-secondary: #a9c0c0;
    --accent: #66b7b1;
    --accent-soft: rgba(102, 183, 177, 0.14);
    --accent-strong: #7fd1ca;
    --focus: #8ac2ff;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(136, 211, 204, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(128, 191, 226, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--bg-strong);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.lang-link:hover {
  color: var(--accent-strong);
}

.lang-link[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.language-divider {
  color: var(--border-strong);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  min-height: 2.75rem;
  padding: 0 0.95rem;
  font: inherit;
}

.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 1rem;
  min-width: 13rem;
  padding: 0.7rem;
  background: var(--bg-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

main {
  flex: 1;
}

.intro-block,
.content-layout,
.support-layout,
.legal-layout,
.error-layout {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.intro-block {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
}

.lede.compact {
  max-width: 44rem;
}

.supporting-copy {
  margin: 1rem 0 0;
  color: var(--text);
  max-width: 38rem;
}

.trust-note {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-top: 1.35rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.text-action::after {
  content: "→";
  font-size: 0.95em;
}

.text-action:hover {
  color: var(--accent);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.feature-card,
.faq-card,
.info-block,
.contact-panel,
.policy-section,
.prose-section,
.meta-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card,
.faq-card,
.info-block,
.contact-panel,
.prose-section {
  padding: 1.35rem;
}

.feature-card p,
.faq-card p,
.info-block p,
.contact-panel p,
.prose-section p,
.policy-section p,
.home-context p {
  margin: 0.8rem 0 0;
  color: var(--text-secondary);
}

.prose-section {
  max-width: var(--reading-width);
  margin-bottom: 4rem;
}

.home-context {
  max-width: 44rem;
  margin-bottom: 4rem;
}

.home-context h2 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.home-context p {
  max-width: 40rem;
}

.legal-layout,
.support-layout,
.content-layout {
  max-width: min(calc(100% - 2rem), var(--reading-width));
}

.meta-block {
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
}

.meta-block p {
  margin: 0.25rem 0;
}

.policy-section {
  margin-top: 1rem;
  padding: 1.3rem;
}

.policy-section h2 {
  margin-bottom: 0.2rem;
}

.faq-list,
.info-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-panel {
  margin-top: 2rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.button-link:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.error-layout {
  text-align: left;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-brand,
.footer-copy,
.footer-meta p {
  margin: 0;
}

.footer-brand {
  font-weight: 700;
}

.footer-copy,
.footer-meta,
.footer-nav {
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a,
.footer-meta a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--accent-strong);
}

@media (min-width: 42rem) {
  .nav-toggle {
    display: none;
  }

  .header-actions {
    gap: 1rem;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
  }

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

  .utility-links {
    margin-top: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 41.99rem) {
  .header-row {
    align-items: flex-start;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.7rem;
    margin-left: auto;
  }

  .language-switcher {
    order: -1;
  }

  .site-nav {
    right: 0;
  }
}

@media (min-width: 64rem) {
  .intro-block {
    padding-top: 4.75rem;
    padding-bottom: 2.5rem;
  }
}
