:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #142b3a;
  background: #f7f9fb;
  line-height: 1.55;
  --ink: #142b3a;
  --navy: #102b41;
  --muted: #4d6473;
  --blue: #1266a5;
  --rule: #dbe4ec;
}

* { box-sizing: border-box; }

body { margin: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 1.5rem; }

a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid #3198d6;
  outline-offset: 4px;
}

img { display: block; width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}

p, figure { margin: 0; }

.wrap {
  width: min(75rem, calc(100% - 4.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: .6rem auto auto .6rem;
  transform: translateY(-180%);
  padding: .75rem;
  background: #fff;
}

.skip-link:focus { transform: none; }

.site-header { background: #fff; }
.header-content {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  font-weight: 720;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img { width: 2.625rem; border-radius: .7rem; }

.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.3rem;
}

.site-header nav, .site-footer nav {
  display: flex;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
}

.site-header nav a, .site-footer nav a { text-underline-offset: .22em; }
.site-header nav a { color: var(--ink); font-size: .9375rem; }

.site-header .language-switch {
  flex-wrap: nowrap;
  gap: .15rem;
  padding: .15rem;
  border: 1px solid var(--rule);
  border-radius: .55rem;
}

.language-switch a {
  display: grid;
  min-width: 2.25rem;
  min-height: 2.1rem;
  place-items: center;
  padding: .15rem .35rem;
  border-radius: .35rem;
  font-weight: 680;
  text-decoration: none;
}

.language-switch a:hover { background: #eff6fc; }
.language-switch a[aria-current="page"] { background: #e0eef9; color: var(--blue); }

.page-status {
  padding-block: .55rem;
  background: #eaf2f9;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}

.hero {
  background: radial-gradient(ellipse at 82% 18%, #1d4a69 0%, var(--navy) 65%);
  color: #f5faff;
  padding-block: clamp(3.2rem, 7vw, 6.5rem);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 5.55vw, 5rem);
  letter-spacing: -.055em;
  font-weight: 760;
}

.hero-copy p {
  margin-top: 1.35rem;
  max-width: 34rem;
  color: #d9eaf5;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.actions {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.2rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.28rem;
  border-radius: .65rem;
  text-decoration: none;
  font-weight: 720;
}

.button-primary { background: #1266a5; color: #fff; }
.button-primary:hover { background: #0d527f; }
.hero .button-primary { color: #112a3d; background: #f2f9ff; }
.hero .button-primary:hover { background: #d8edf9; }
.hero .text-link { color: #eaf6fd; text-underline-offset: .25em; }

.hero-screen > a {
  display: block;
  border-radius: 1.1rem;
}

.hero-screen img {
  border-radius: 1.1rem;
  border: .4rem solid #eaf3f7;
  box-shadow: 0 1.5rem 3.3rem #071c2b80;
}

.hero-screen figcaption {
  margin-top: 1.1rem;
  font-size: .9375rem;
  color: #d9eaf5;
}

.hero-screen figcaption h2 { margin-bottom: .4rem; color: #f5faff; font-size: 1.125rem; }

.section { padding-top: clamp(2.9rem, 6vw, 5.75rem); }
.section-head { margin-bottom: 1.55rem; }

.section h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  letter-spacing: -.045em;
}

.section-head p { margin-top: .55rem; color: var(--muted); }

.study-grid {
  display: grid;
  gap: 1rem;
}

.study-card {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr);
  grid-template-rows: auto 1fr;
  gap: .75rem clamp(1.35rem, 4vw, 3.5rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: #fff;
}

.study-card h3, .payment-info h3 { font-size: 1.25rem; }
.study-card p { color: var(--muted); }
.study-gallery-hint { display: none; }

.study-gallery {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  align-items: start;
  justify-self: center;
  width: 100%;
  max-width: 35rem;
}

.study-gallery a {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: .65rem;
}

.study-gallery a:hover { border-color: var(--blue); }

.premium-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.35rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(1.35rem, 4.6vw, 3.5rem);
  border: 1px solid #ccdeed;
  border-radius: 1.1rem;
  background: #eaf2f9;
}

.premium-content p { margin-top: .65rem; color: #304f66; }
.payment-info {
  padding: 1.15rem 1.3rem;
  border-radius: .7rem;
  background: #fff;
}

.download-section { padding-bottom: clamp(3rem, 6vw, 5.75rem); }
.download-section .section-head { margin-bottom: 1.05rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
  background: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.site-footer p {
  max-width: 33rem;
  color: var(--muted);
  margin-top: .4rem;
}
.site-footer nav { align-items: start; font-size: .9375rem; }

@media (max-width: 58rem) {
  .wrap { width: min(75rem, calc(100% - 2.5rem)); }
  .hero-content { gap: 2rem; }
  .study-grid { gap: .8rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-content { padding-block: .85rem; gap: .65rem; }
  .site-header nav { gap: .5rem 1rem; }
  .hero-content, .premium-content { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .study-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .study-gallery-hint { display: inline; }
  .study-gallery {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, min(19rem, calc(100% - 2rem)));
    gap: .65rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-block: .25rem .4rem;
  }
  .study-gallery a { scroll-snap-align: start; }
  .study-gallery a:focus-visible { outline-offset: -3px; }
}

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

