:root {
  color-scheme: light;
  --navy-950: #06163f;
  --navy-900: #061b52;
  --navy-800: #0a2e72;
  --blue-700: #075da8;
  --blue-600: #087fc2;
  --cyan-500: #22c9ed;
  --cyan-100: #dff8ff;
  --sky-50: #f4fbff;
  --white: #ffffff;
  --ink: #0b2140;
  --muted: #52657d;
  --line: #d7e8f1;
  --success: #0b7252;
  --warning-bg: #fff8e8;
  --warning-line: #e9c96d;
  --max-width: 72rem;
  --reading-width: 48rem;
  --radius: 1rem;
  --shadow: 0 0.7rem 2rem rgba(6, 27, 82, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-900);
}

a:focus-visible,
button:focus-visible {
  outline: 0.2rem solid var(--cyan-500);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-900);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.68rem;
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sky-50);
  color: var(--navy-900);
}

.hero {
  background: linear-gradient(135deg, var(--navy-950), var(--blue-700));
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: 31rem;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--cyan-100);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: #e9f7ff;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hero-preview {
  width: clamp(12rem, 19vw, 16rem);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.65rem;
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.32);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--cyan-100);
  color: var(--navy-900);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-shell {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.page-heading {
  max-width: var(--reading-width);
  margin-bottom: 2.5rem;
}

.page-heading h1 {
  color: var(--navy-900);
  font-size: clamp(2.15rem, 5vw, 3.6rem);
}

.page-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section {
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
}

.section.tint,
.section-tint {
  background: var(--sky-50);
}

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

.reading-block {
  max-width: var(--reading-width);
}

.section h2,
.legal-copy h2 {
  margin: 0 0 1rem;
  color: var(--navy-900);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-intro {
  max-width: 46rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

/* Homepage presentation: keep section spacing deliberate without changing content. */
.home-page .section {
  padding-block: clamp(3.2rem, 5vw, 4.6rem);
}

.home-page .hero-inner {
  min-height: auto;
  padding-block: clamp(2.5rem, 4vw, 3.75rem);
}

.home-page .hero-preview {
  width: clamp(11.5rem, 17vw, 14.25rem);
}

.home-page .section > .page-shell {
  padding-block: 0;
}

.home-page .section h2 {
  max-width: 43rem;
}

.home-page .feature-card,
.home-page .info-card {
  border-color: #cce2ed;
  box-shadow: 0 0.7rem 1.8rem rgba(6, 27, 82, 0.07);
}

.home-page .feature-card {
  position: relative;
  overflow: hidden;
}

.home-page .feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: linear-gradient(var(--blue-600), var(--cyan-500));
}

.home-page .section.tint .info-card {
  background: rgba(255, 255, 255, 0.9);
}

.home-page .section:last-child {
  border-top: 1px solid var(--line);
}

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

.feature-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.35rem;
}

.feature-card h3,
.info-card h3,
.feature-card h2 {
  margin: 0 0 0.45rem;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.feature-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card p + p {
  margin-top: 0.85rem;
}

.check-list {
  padding-left: 1.35rem;
  color: #314760;
}

.check-list li + li {
  margin-top: 0.45rem;
}

.faq-list article {
  border-top: 1px solid var(--line);
  padding-block: 1.35rem;
}

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

.faq-list h3 {
  margin: 0 0 0.35rem;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.faq-list p {
  margin: 0;
  color: #314760;
}

.legal-copy .button,
.feature-card .button {
  border-color: var(--blue-700);
}

.callout {
  border-left: 0.3rem solid var(--cyan-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--sky-50);
  padding: 1.2rem 1.35rem;
}

.callout.warning {
  border-left-color: var(--warning-line);
  background: var(--warning-bg);
}

.callout p:first-child {
  margin-top: 0;
}

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

.legal-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, var(--reading-width));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contents {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky-50);
  padding: 1rem;
}

.contents strong {
  color: var(--navy-900);
}

.contents ul {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.contents li + li {
  margin-top: 0.35rem;
}

.contents a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.contents a:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.legal-copy {
  min-width: 0;
}

.legal-copy section {
  scroll-margin-top: 1.5rem;
}

.legal-copy section + section {
  margin-top: 2.8rem;
}

.legal-copy h3 {
  margin: 1.6rem 0 0.5rem;
  color: var(--navy-900);
  font-size: 1.12rem;
}

.legal-copy p,
.legal-copy li {
  color: #314760;
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 1.4rem;
}

.legal-copy li + li {
  margin-top: 0.4rem;
}

.meta {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 2.8rem;
  padding-left: 3.3rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 800;
}

.steps li + li {
  margin-top: 1.15rem;
}

.contact-card {
  max-width: 42rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky-50);
  padding: clamp(1.35rem, 4vw, 2rem);
}

.contact-card h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  color: #cfe7f5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding-block: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 800;
}

.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
}

.footer-copy {
  max-width: 31rem;
  margin: 0.65rem 0 0;
  color: #a9c8da;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: #dff8ff;
  font-size: 0.9rem;
}

@media (max-width: 58rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-preview {
    grid-row: 1;
    width: 11rem;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .contents {
    position: static;
  }
}

@media (max-width: 38rem) {
  body {
    font-size: 0.98rem;
  }

  .header-inner,
  .page-shell,
  .footer-inner,
  .section-inner {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav a {
    padding-left: 0;
  }

  .feature-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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