.site-home,
.information-page,
.error-page {
  background:
    radial-gradient(circle at 8% 8%, rgb(32 199 228 / 11%), transparent 28rem),
    var(--background);
}

.site-header {
  width: min(
    calc(
      100% - max(
        40px,
        calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px) + 24px)
      )
    ),
    var(--content-wide)
  );
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 0;
}

.site-header nav ul,
.site-footer nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header nav li,
.site-footer nav li {
  margin: 0;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--brand-blue);
}

.home-hero {
  position: relative;
  isolation: isolate;
  width: min(
    calc(
      100% - max(
        40px,
        calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px) + 24px)
      )
    ),
    var(--content-wide)
  );
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 12px auto 0;
  padding: clamp(42px, 8vw, 92px);
  overflow: hidden;
  border-radius: var(--radius-large);
  color: var(--white);
  background:
    linear-gradient(120deg, rgb(6 27 70 / 98%), rgb(6 27 70 / 90%) 54%, rgb(23 107 255 / 84%)),
    var(--brand-navy);
  box-shadow: var(--shadow-strong);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::before {
  width: 340px;
  height: 340px;
  top: -135px;
  right: -40px;
  border: 54px solid rgb(32 199 228 / 26%);
}

.home-hero::after {
  width: 200px;
  height: 200px;
  right: 150px;
  bottom: -125px;
  background: rgb(23 107 255 / 48%);
}

.home-hero .eyebrow {
  color: var(--brand-cyan);
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.home-hero > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 1.75rem;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero .secondary-action {
  border-color: rgb(255 255 255 / 42%);
  color: var(--white);
  background: rgb(255 255 255 / 10%);
}

.home-section,
.home-cta {
  width: min(
    calc(
      100% - max(
        40px,
        calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px) + 24px)
      )
    ),
    var(--content-wide)
  );
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) 0;
}

.home-section > h2,
.home-section > .eyebrow,
.home-section > p:not(.eyebrow) {
  max-width: 720px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-list article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-list article::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
}

.feature-list h3 {
  margin-bottom: 0.65rem;
}

.feature-list p,
.process-list p,
.introduction-list p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.process-list,
.introduction-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  counter-reset: process;
}

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

.introduction-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-list li,
.introduction-list li {
  position: relative;
  min-height: 190px;
  padding: 58px 24px 24px;
  border-top: 3px solid var(--brand-blue);
  background: linear-gradient(180deg, var(--surface-soft), transparent);
  counter-increment: process;
}

.process-list li::before,
.introduction-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 24px;
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.sample-introduction {
  padding: clamp(38px, 7vw, 72px);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgb(23 107 255 / 12%), rgb(32 199 228 / 12%)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.sample-introduction a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 800;
}

.faq-list {
  max-width: 820px;
  margin-top: 30px;
}

.faq-list details {
  padding: 6px 0;
}

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

.faq-list summary {
  font-size: 1.05rem;
}

.faq-list p {
  padding: 0 0 18px;
  margin: 0;
  color: var(--text-secondary);
}

.home-cta {
  margin-bottom: clamp(50px, 8vw, 90px);
  padding: clamp(42px, 8vw, 78px);
  border-radius: var(--radius-large);
  color: var(--white);
  background: var(--brand-navy);
}

.home-cta h2 {
  max-width: 700px;
  color: var(--white);
}

.home-cta p {
  max-width: 600px;
  color: rgb(255 255 255 / 76%);
}

.site-footer {
  padding-top: 42px;
  padding-right: max(
    20px,
    env(safe-area-inset-right, 0px),
    calc((100% - var(--content-wide)) / 2)
  );
  padding-bottom: max(42px, calc(24px + env(safe-area-inset-bottom, 0px)));
  padding-left: max(
    20px,
    env(safe-area-inset-left, 0px),
    calc((100% - var(--content-wide)) / 2)
  );
  color: rgb(255 255 255 / 75%);
  background: var(--brand-navy);
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer nav {
  margin: 20px 0;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.information-page main {
  width: min(
    calc(
      100% - max(
        40px,
        calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px) + 24px)
      )
    ),
    var(--content-reading)
  );
  margin: 0 auto;
  padding: clamp(54px, 8vw, 90px) 0;
}

.page-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-header > p:last-child {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.information-section,
.policy-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.information-section h2,
.policy-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.information-section li,
.policy-section li {
  color: var(--text-secondary);
}

.information-section dl {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
}

.information-section dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.information-section dt {
  font-weight: 800;
}

.information-section dd {
  margin: 0;
  color: var(--text-secondary);
}

.document-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  font-size: 0.83rem;
  font-weight: 800;
}

.policy-page .site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-page main {
  width: min(100%, 620px);
  padding: clamp(38px, 8vw, 72px);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.error-code {
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: clamp(3.5rem, 16vw, 7rem);
  font-weight: 800;
  line-height: 1;
}

.error-page h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
}

.error-page main > p:not(.error-code) {
  color: var(--text-secondary);
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.error-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--white);
  background: var(--brand-blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .feature-list,
  .introduction-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 16px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .site-header nav ul {
    width: max-content;
    flex-wrap: nowrap;
  }

  .home-hero {
    min-height: 500px;
    padding: 42px 24px;
  }

  .home-hero::before {
    right: -150px;
  }

  .feature-list,
  .process-list,
  .introduction-list {
    grid-template-columns: 1fr;
  }

  .feature-list article,
  .process-list li,
  .introduction-list li {
    min-height: auto;
  }

  .hero-actions > a {
    width: 100%;
  }

  .information-section dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .site-header,
  .home-hero,
  .home-section,
  .home-cta,
  .information-page main {
    width: min(calc(100% - 32px), var(--content-wide));
  }

  .home-hero,
  .sample-introduction,
  .home-cta {
    border-radius: var(--radius-medium);
  }
}
