/* Shared by the pages next to the homepage (solutions, pricing, portfolio, about, FAQ, contact): the
   homepage's base rules, the page's texture, the header above a section and the yellow card the about
   and FAQ pages open with. Each page adds its own file. */

/* ------------------------------------------------------------ base, as on the homepage */

body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

a,
a:hover {
  color: inherit;
}

.sb-page {
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.sb-amp {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: inherit;
}

.sb-eur {
  font-family: 'Albert Sans', 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-weight: inherit;
}

.sb-pagebg {
  background: #252324;
}

.sb-grain-bg {
  background: url(img/grain-page.png) 0 0 / 128px 128px repeat;
}

.sb-grain-card {
  background: url(img/grain-card.png) 0 0 / 128px 128px repeat;
}

.sb-logo {
  text-decoration: none;
}

.sb-logo svg {
  display: block;
  width: 40px;
  height: 42px;
}

/* the short name next to the eagle; where the menu would run into it, the menu moves over a little
   (on the smallest phones the eagle stands alone) */
.sb-wordmark {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

@media (min-width: 1101px) {
  .sb-nav {
    left: max(calc(17.66% - 40px), 198px) !important;
  }
}

@media (min-width: 1280px) {
  .sb-nav {
    left: max(calc(17.66% - 40px), 214px) !important;
  }
}

@media (max-width: 720px) {
  .sb-wordmark {
    font-size: 17px;
  }
}

@media (max-width: 374px) {
  .sb-wordmark {
    display: none;
  }
}

.sb-navlink {
  transition: opacity 0.2s ease;
}

.sb-navlink:hover {
  opacity: 0.6;
}

.sb-pill {
  transition: background-color 0.2s ease;
}

.sb-pill:hover {
  background: #000000;
}

.sb-pill:focus-visible {
  outline: 2px solid #252324;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .sb-nav {
    display: none !important;
  }
}

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

/* ------------------------------------------------------------ page and texture */

.pg {
  position: relative;
  overflow: hidden;
  color: #fffce1;
}

.pg__in {
  position: relative;
}

/* grain and the fine dot grid, as on the homepage's cards */
.pg-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pg-fx.sb-grain-bg,
.pg-fx.sb-grain-card {
  mix-blend-mode: overlay;
}

.pg-fx--page-grain {
  opacity: 0.58;
}

.pg-fx--grain {
  opacity: 0.1;
}

.pg-fx--page-dots,
.pg-fx--ink-dots,
.pg-fx--dots {
  background-size: 7.5px 7.5px;
  background-position: 0 0;
}

.pg-fx--page-dots {
  background-image: radial-gradient(circle at center, rgba(255, 252, 225, 0.05) 0.62px, rgba(255, 252, 225, 0) 1.05px);
}

.pg-fx--ink-dots {
  background-image: radial-gradient(circle at center, rgba(37, 35, 36, 0.08) 0.62px, rgba(37, 35, 36, 0) 1.05px);
}

.pg-fx--dots {
  background-image: radial-gradient(circle at center, rgba(255, 252, 225, 0.09) 0.62px, rgba(255, 252, 225, 0) 1.05px);
}

/* ------------------------------------------------------------ above the steps: label and title */

.pg-how {
  position: relative;
  margin-top: 104px;
  padding: 16px 16px 120px;
}

.pg-head {
  margin: 0 0 40px;
  padding: 0 40px;
  box-sizing: border-box;
}

.pg-head__title {
  margin: 0;
  font-size: 45.5px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.057em;
}

.pg-head__title > span {
  color: rgba(255, 252, 225, 0.5);
}

@media (max-width: 720px) {
  .pg-how {
    margin-top: 72px;
    padding-bottom: 80px;
  }

  .pg-head {
    padding: 0 8px;
  }

  .pg-head__title {
    font-size: 34px;
  }
}

/* ------------------------------------------------------------ a page's yellow card (about, FAQ) */

.pg-hero {
  position: relative;
  padding: 16px 16px 0;
}

.pg-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(520px, 74svh, 820px);
  border-radius: 40px;
  overflow: hidden;
  background: #feeb8d;
  color: #252324;
}

/* the title on the left; the lead starts on the line of the homepage's headline (50.27%) */
.pg-body {
  position: relative;
  display: grid;
  grid-template-columns: calc(50.27% - 4px) minmax(0, 1fr);
  align-items: end;
  row-gap: 32px;
  padding: 140px 32px 38px 40px;
}

.pg-title {
  margin: 0;
  font-size: clamp(64px, 9vw, 168px);
  font-size: min(clamp(64px, 9vw, 168px), 17svh);
  font-weight: 550;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.pg-title > span {
  display: block;
}

.pg-title > span + span {
  color: rgba(37, 35, 36, 0.5);
}

.pg-lead {
  max-width: 34em;
}

.pg-lead > p {
  margin: 0;
  font-size: clamp(20px, 1.55vw, 25px);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: rgba(37, 35, 36, 0.88);
  text-wrap: pretty;
}

.pg-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pg-facts > li {
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(37, 35, 36, 0.35);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pg-facts a {
  color: inherit;
  text-decoration: none;
}

.pg-lead .sb-pill {
  margin-top: 24px;
  height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #252324;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pg-lead .sb-pill,
.pg-lead .sb-pill:hover {
  color: #fffce1;
}

@media (max-width: 900px) {
  .pg-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .pg-frame {
    border-radius: 32px;
  }

  .pg-body {
    padding: 112px 24px 28px;
  }

  .pg-facts > li {
    height: 34px;
    padding: 0 14px;
    font-size: 15px;
  }
}

/* small phones: the title shrinks with the screen, so a long word like "Questions," still fits */
@media (max-width: 480px) {
  .pg-title {
    font-size: min(15vw, 17svh);
  }
}
