:root {
  --page: #ffffff;
  --page-alt: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2937;
  --text-soft: #4b5563;
  --brand: #0078d7;
  --brand-dark: #005fa7;
  --border: #d7dee7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.5;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-main .container {
  width: min(1960px, 100%);
  max-width: 1960px;
  padding-inline: 80px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: #ffffff;
  color: #000000;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  background: var(--surface);
  color: var(--text);
}

.header-topbar--default {
  background-color: #fecd4e;
  min-height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  padding: 0 12px;
}

.header-topbar--default a {
  color: #101112;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  text-align: center;
}

.header-topbar__icon {
  flex-shrink: 0;
}

.header-shell {
  padding: 0;
}

.header-top {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #101112;
  cursor: pointer;
  transition: background-color 0.25s;
}

.header-burger:hover {
  background-color: #deddde;
}

.header-burger:focus-visible {
  outline: 2px solid #3643ba;
  outline-offset: 2px;
}

.site-header .container,
.site-footer .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 80px;
}

.header-inner {
  padding: 16px 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-suffix {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #646dc9;
  line-height: 1;
  white-space: nowrap;
}

.logo {
  width: auto;
  height: 26px;
  display: block;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-header-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.nav-header-button:hover,
.nav-header-button:focus-visible {
  background-color: #deddde;
  border-color: transparent;
  transform: none;
}

.nav-header-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #3243ba;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.nav-header-pill:hover,
.nav-header-pill:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.nav-header-pill:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.header-inner h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.mobile-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  padding: 0;
  margin: 0;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(92vw, 420px);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 420ms ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
}

.mobile-drawer-close {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #101112;
  cursor: pointer;
}

.mobile-drawer-close:hover {
  background: #f3f3f3;
}

.mobile-drawer-close:focus-visible {
  outline: 2px solid #3643ba;
  outline-offset: 2px;
}

.mobile-drawer-nav {
  padding: 0 32px 32px 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  text-decoration: none;
  color: #101112;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.05;
}

.mobile-drawer-item--chevron span {
  font-size: 32px;
  font-weight: 100;
  opacity: 0.8;
}

.mobile-drawer-divider {
  height: 24px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.mobile-drawer-footer-link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #101112;
  font-weight: 600;
  font-size: 18px;
}

.nav-header-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #3243ba;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.nav-header-site-link:hover,
.nav-header-site-link:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.nav-header-site-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.mobile-drawer-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #3243ba;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-drawer-site-link:hover,
.mobile-drawer-site-link:focus-visible {
  filter: brightness(1.07);
}

.mobile-drawer-site-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
}

.lead {
  margin: 0;
  max-width: 64ch;
  color: var(--text-soft);
}

.site-main {
  padding: 28px 0 44px;
  background: linear-gradient(180deg, var(--page), var(--page-alt));
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.section + .section {
  margin-top: 18px;
}

.section h2,
.section h3 {
  margin-top: 0;
}

.section.cards {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding-block: 0;
}

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

.card {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.card-link {
  display: block;
  text-decoration: none;
  color: #ffffff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-cover {
  background-image:
    linear-gradient(
      180deg,
      rgba(9, 13, 20, 0.1) 30%,
      rgba(9, 13, 20, 0.82) 100%
    ),
    var(--card-bg);
  background-size: cover;
  background-position: center;
}

.card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
}

.card-content h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #3243ba;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding: 10px 16px;
  margin-top: 2px;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 27, 52, 0.22);
}

.card-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.app-banner-section {
  margin-top: 162px;
  margin-bottom: 88px;
}

.app-banner {
  position: relative;
  display: block;
  padding: 32px 64px;
  background: #3243ba;
  color: #ffffff;
  overflow: visible;
  text-decoration: none;
}

.app-banner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: min(520px, calc(100% - 460px));
  position: relative;
  z-index: 1;
}

.app-banner-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.app-banner-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.app-banner-link {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.app-banner-media {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(330px, 32vw);
  pointer-events: none;
}

.app-banner-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: bottom right;
}

.site-footer {
  padding: 80px 0;
  background: #3243ba;
  color: #ffffff;
  border-top: 0;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-logo a {
  display: inline-flex;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal {
  max-width: 96ch;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 880px) {
  .site-header .container,
  .site-footer .container {
    padding-inline: 20px;
  }

  .site-main .container {
    padding-inline: 20px;
  }

  .header-top {
    padding: 16px 0;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    grid-template-areas: "burger logo actions";
    align-items: center;
    column-gap: 8px;
  }

  .header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-area: burger;
  }

  .brand-logo {
    grid-area: logo;
    justify-self: center;
  }

  .logo {
    height: 18px;
  }

  .header-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .header-actions .nav-header-button,
  .header-actions .nav-header-site-link {
    display: none;
  }

  .header-actions .nav-header-button--account {
    display: inline-flex;
  }

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

  .card {
    min-height: 300px;
  }

  .app-banner {
    display: flex;
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .app-banner-section {
    margin-bottom: 56px;
  }

  .app-banner-copy {
    max-width: none;
  }

  .app-banner-media {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    pointer-events: auto;
    display: flex;
    justify-content: center;
  }

  .app-banner-media img {
    width: min(100%, 320px);
    height: auto;
    transform: translateY(-28px);
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (min-width: 881px) {
  .mobile-drawer {
    display: none;
  }
}
