@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-800.woff2") format("woff2");
}

@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/carlito-400.woff2") format("woff2");
}

@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/carlito-700.woff2") format("woff2");
}

:root {
  --blue: #2f66b3;
  --blue-dark: #234f8c;
  --green: #53b146;
  --ink: #0e1522;
  --navy: #16203a;
  --muted: #5b6577;
  --tint: #eff2ff;
  --paper: #f6f4ee;
  --line: rgba(14, 21, 34, 0.12);
  --on-dark: #c9d1de;
  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Carlito", Calibri, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.wrap {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header and navigation */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}

.logo img {
  width: 220px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Buttons: pills, sentence case, regular weight */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5em 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #ffffff;
}

.btn--outline {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

/* Sections */

.section {
  padding-block: 48px;
}

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

.section--paper {
  background: var(--paper);
}

.kicker {
  margin-bottom: 0.4em;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.hero {
  padding-block: 32px 48px;
}

.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__image {
  border-radius: 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.card--spaced {
  margin-top: 20px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: 0.4em;
}

.ticks {
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 16px;
  height: 9px;
  border-bottom: 3px solid var(--green);
  border-left: 3px solid var(--green);
  transform: rotate(-45deg);
}

.section-sub {
  margin-top: 1.6em;
}

.topics {
  columns: 1;
  padding-left: 1.2em;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.languages a {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.languages a:hover {
  background: var(--green);
  color: var(--ink);
}

.banner {
  border-radius: 16px;
}

.quote {
  display: grid;
  gap: 20px;
  align-items: start;
}

.quote img {
  width: 120px;
  border-radius: 50%;
}

.quote blockquote {
  margin: 0;
  font-size: 1.2rem;
}

.quote figcaption {
  margin-top: 12px;
  color: var(--muted);
}

/* Products and prices */

.price-card {
  display: flex;
  flex-direction: column;
}

.price {
  margin: 0 0 0.2em;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.price small {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 400;
}

.tagline {
  font-weight: 700;
}

.login-kind {
  margin-bottom: 1em;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tint);
}

.login-kind p {
  margin: 0;
}

.login-kind .price {
  font-size: 1.6rem;
}

.note {
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

caption {
  margin-bottom: 8px;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}

/* Text pages */

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.details-list {
  margin: 0;
}

.details-list dt {
  font-weight: 700;
}

.details-list dd {
  margin: 0 0 1em;
}

/* Footer */

.site-footer {
  padding-block: 40px 32px;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 1rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: var(--on-dark);
}

.site-footer :focus-visible {
  outline-color: #ffffff;
}

.footer__grid {
  display: grid;
  gap: 24px;
}

.footer__logo img {
  display: block;
  width: 160px;
  margin-bottom: 16px;
}

.footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav li {
  margin-bottom: 6px;
}

.footer__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 209, 222, 0.25);
}

.footer__legal p {
  margin-bottom: 0.5em;
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding-block: 72px;
  }

  .hero {
    padding-block: 56px 72px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

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

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .topics {
    columns: 2;
  }

  .quote {
    grid-template-columns: 120px 1fr;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
