/* Self-hosted fonts. Visitors never contact Google or any other font CDN. */

/* Inter (SIL Open Font License 1.1) — latin-ext then latin */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk (SIL Open Font License 1.1) — latin-ext then latin */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0A1024;
}

.page {
  background: #0A1024;
  color: #F4F6FB;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: #C8F542;
}

a:hover {
  color: #E2FF8A;
}

input::placeholder,
textarea::placeholder {
  color: #8792B0;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #C8F542;
  outline-offset: 2px;
}

/* Used only on the 404 page */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.not-found main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.not-found h1 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.not-found p {
  margin: 0;
  font-size: 21px;
  color: #C9D1E6;
  max-width: 560px;
}

.not-found .button {
  align-self: flex-start;
  background: #C8F542;
  color: #0A1024;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  padding: 18px 32px;
  border-radius: 999px;
}

.not-found .button:hover {
  color: #0A1024;
}

/* Inline display styles would otherwise override the hidden attribute. */
#contact-form[hidden],
#contact-success[hidden] {
  display: none !important;
}

/* Reviews: same card look as the draft, solid border now that they are real quotes.
   1 column on small screens, 2+2+1 on tablets, 3+2 centered on wide screens. */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.reviews-grid figure {
  margin: 0;
  background: #121B38;
  border: 2px solid #3A4878;
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-grid blockquote {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  color: #F4F6FB;
}

.reviews-grid figcaption {
  font-size: 16px;
  color: #AEB7CF;
}

@media (min-width: 720px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid figure:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
    width: 100%;
  }
}

@media (min-width: 1040px) {
  .reviews-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .reviews-grid figure {
    grid-column: span 2;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }

  .reviews-grid figure:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .reviews-grid figure:nth-child(5) {
    grid-column: 4 / span 2;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }
}
