:root {
  color-scheme: light;
  --page: #fffaf2;
  --surface: #ffffff;
  --surface-warm: #fff2df;
  --text: #20211f;
  --muted: #686b66;
  --faint: #92958e;
  --line: #eadfce;
  --orange: #f58612;
  --orange-dark: #c96000;
  --green: #4e943d;
  --green-soft: #eaf5e7;
  --max: 1120px;
  --reading: 760px;
  --radius: 8px;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 35%, transparent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(197, 94, 0, 0.16);
}

.brand-accent {
  color: var(--orange);
}

.nav-links,
.language-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.nav-links a,
.language-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a[aria-current="page"],
.language-links a[aria-current="page"] {
  color: var(--text);
}

.language-links {
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.language-links span {
  color: var(--line);
}

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 780;
}

h2 {
  margin-top: 58px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 750;
}

h3 {
  margin-top: 30px;
  font-size: 19px;
  font-weight: 750;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  border-color: var(--orange);
  color: var(--text);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.button-primary:hover {
  background: var(--orange-dark);
  color: white;
}

.hero-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(98, 72, 39, 0.10);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -78px;
  top: -82px;
  border-radius: 50%;
  background: var(--surface-warm);
}

.app-icon {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 28px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(98, 72, 39, 0.16);
}

.hero-panel-label {
  position: relative;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  position: relative;
  display: block;
  max-width: 300px;
  margin-top: 58px;
  font-size: 30px;
  line-height: 1.25;
}

.principle-row {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle-row span {
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.link-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  margin: 0 0 92px;
  border: 1px solid var(--line);
  background: var(--line);
}

.link-panel {
  min-height: 220px;
  padding: 30px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background 180ms ease;
}

.link-panel:hover {
  background: var(--surface-warm);
  color: var(--text);
}

.link-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.link-panel p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

.link-panel-wide {
  grid-row: span 2;
  min-height: 441px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--green-soft);
}

.document-header {
  max-width: var(--reading);
  padding: 86px 0 44px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.document-summary {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 13px;
}

.document-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading));
  gap: 64px;
  align-items: start;
  padding: 48px 0 100px;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 9px;
  padding-top: 8px;
}

.toc strong {
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.toc a:hover {
  color: var(--orange-dark);
}

.document {
  min-width: 0;
}

.document p,
.document li {
  color: var(--muted);
}

.document p {
  margin: 14px 0 0;
}

.document ul,
.document ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.document li + li {
  margin-top: 8px;
}

.notice {
  margin: 26px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--orange);
  background: var(--surface-warm);
  color: var(--muted);
}

.support-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.support-option {
  min-height: 150px;
  padding: 24px;
  background: var(--surface);
}

.support-option strong {
  display: block;
  font-size: 17px;
}

.support-option p {
  margin-top: 8px;
  font-size: 14px;
}

.faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

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

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 750;
}

details p {
  margin: -6px 0 22px;
}

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

.footer-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-copy {
  color: var(--faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 820px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 64px 0;
  }

  .hero-panel {
    min-height: 300px;
  }

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

  .link-panel-wide {
    grid-row: auto;
    min-height: 260px;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 26px;
    border-bottom: 1px solid var(--line);
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  main,
  .footer-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand {
    font-size: 18px;
  }

  .language-links {
    padding-left: 12px;
  }

  .language-links a {
    font-size: 12px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-panel {
    padding: 26px;
  }

  .app-icon {
    top: 22px;
    right: 22px;
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .principle-row {
    right: 26px;
    left: 26px;
  }

  .support-options {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
