:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --surface: #ffffff;
  --surface-soft: #eef4ed;
  --sage: #d8e5db;
  --forest: #516f5b;
  --forest-dark: #365241;
  --ink: #18231e;
  --muted: #5f6a62;
  --line: #d9e1d8;
  --warning: #fff4dd;
  --warning-line: #e7c681;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 50px rgba(24, 35, 30, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header,
.site-footer,
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { border-radius: 13px; display: block; object-fit: contain; }

.language-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-nav a {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
}

.language-nav a:hover,
.language-nav .is-current {
  background: var(--forest);
  color: #fff;
}

.page-shell { padding: 44px 0 84px; }

.home-shell { max-width: 920px; }

.intro-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 78px);
  border-radius: var(--radius-lg);
  background: var(--forest);
  box-shadow: var(--shadow);
  color: #fff;
}

.intro-card::after {
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.08), 0 0 0 56px rgba(255, 255, 255, 0.06);
  content: "";
}

.intro-card > * { position: relative; z-index: 1; }

.eyebrow,
.card-kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-card .eyebrow { color: var(--sage); }

h1,
h2,
h3 { letter-spacing: -0.045em; line-height: 1.12; }

h1 { max-width: 680px; margin: 0; font-size: clamp(2.55rem, 7vw, 5.6rem); }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { margin: 0 0 10px; font-size: 1.2rem; }

.lead {
  max-width: 620px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: #0d1511; }
.intro-card .button { background: #fff; color: var(--forest-dark); }
.intro-card .button:hover { background: var(--sage); }

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--forest-dark);
}

.button-secondary:hover { border-color: var(--forest); background: var(--surface-soft); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.link-card {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card:hover { transform: translateY(-3px); border-color: var(--forest); background: #fff; }
.link-card .card-kicker { margin: 0; color: var(--forest); }
.link-card strong { font-size: 1.18rem; }
.link-card > span:last-child { color: var(--muted); font-size: 0.92rem; }

.page-heading { max-width: 720px; margin-bottom: 42px; }
.page-heading .lead { color: var(--muted); margin: 18px 0 0; }

.support-grid {
  display: grid;
  gap: 22px;
}

.card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(24, 35, 30, 0.035);
}

.contact-card {
  border: 1px solid var(--forest);
  background: var(--surface-soft);
}

.contact-card p:last-of-type { margin-bottom: 22px; }
.contact-card code { word-break: break-word; }

.release-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--warning-line);
  border-radius: 14px;
  background: var(--warning);
  color: #684d1a;
  font-size: 0.94rem;
}

.faq-list { display: grid; gap: 0; }

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:last-child { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  list-style: none;
  padding-right: 28px;
  font-weight: 760;
}

summary::-webkit-details-marker { display: none; }
summary::after { float: right; color: var(--forest); content: "+"; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

.legal-document { max-width: 800px; }
.legal-document .card + .card { margin-top: 14px; }
.legal-document p { margin: 0; color: var(--muted); }
.legal-document p + p { margin-top: 14px; }

.publisher-address {
  margin: 18px 0;
  font-style: normal;
  overflow-wrap: anywhere;
}

.inline-link { color: var(--forest-dark); font-weight: 700; }
.inline-link:hover { color: var(--forest); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer > * { min-width: 0; overflow-wrap: anywhere; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--forest-dark); text-decoration: underline; }

@media (min-width: 760px) {
  .support-grid { grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr); align-items: start; }
  .contact-card { position: sticky; top: 20px; }
}

@media (max-width: 640px) {
  .site-header, .site-footer, .page-shell { width: min(100% - 28px, 1120px); }
  .site-header { padding-top: 18px; }
  .page-shell { padding-top: 26px; padding-bottom: 58px; }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 132px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
