:root {
  --navy: #0c2f7a;
  --orange: #ff9f0a;
  --orange-dark: #e88900;
  --muted: #6b7285;
  --line: #eceef3;
  --page: #ffffff;
  --soft: #f6f7fb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--soft);
}

body {
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 32px), 1080px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  gap: 22px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--navy);
}

.menu-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  place-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  padding: 8px 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.mobile-nav a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.intro {
  padding: clamp(36px, 8vw, 88px) 0 12px;
}

.intro--doc {
  padding-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.intro h1,
.document-card h2,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.intro h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 8vw, 4.2rem);
  line-height: 1.05;
}

.intro p,
.section-heading > p {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
}

.section {
  padding: clamp(36px, 6vw, 72px) 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature-grid article,
.principles-list li,
.warning-panel,
.document-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--page);
}

.feature-grid span,
.principles-list span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 10px;
  background: #fff7ea;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.feature-grid h3,
.principles-list strong {
  display: block;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-grid p,
.principles-list p,
.document-card p,
.document-card li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.caution {
  background: var(--soft);
}

.principles-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.principles-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.principles-list span {
  margin: 0;
}

.warning-panel {
  margin-top: 18px;
  border-color: rgba(255, 159, 10, 0.28);
  background: #fff7ea;
}

.warning-panel p {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.warning-panel a {
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  padding: 32px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: grid;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #d8deea;
  gap: 8px;
}

.footer-links a {
  display: grid;
  min-height: 52px;
  padding: 8px 4px 8px 14px;
  border-left: 3px solid var(--orange);
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.footer-links a small {
  color: #8b93a7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a:hover {
  background: #fff7ea;
}

.footer-links a:focus-visible,
.desktop-nav a:focus-visible,
.mobile-nav a:focus-visible,
.menu-button:focus-visible,
.warning-panel a:focus-visible,
.document-card a:focus-visible {
  outline: 3px solid rgba(255, 159, 10, 0.7);
  outline-offset: 3px;
}

.document-card {
  max-width: 860px;
}

.document-card h2 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
}

.document-card h2:first-child {
  margin-top: 0;
}

.document-card a {
  color: var(--orange-dark);
  font-weight: 700;
}

.warning-box {
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  background: #fff7ea;
}

.warning-box p {
  margin: 8px 0 0;
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 64px), 1080px);
  }

  .header-inner {
    min-height: 76px;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-button,
  .mobile-nav {
    display: none;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.8fr);
    align-items: end;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
