/* Cohorta public homepage. Same palette and type as the app (navy header,
   one blue, Carbon greys, IBM Plex); square corners throughout. */

/* IBM Plex Sans, served from this site rather than Google Fonts so that no
   visitor's IP address is sent to a third party. Each weight is split into
   two files; the browser downloads the extended-Latin one only when a page
   uses those characters. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-ext-300-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-300-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;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-ext-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-400-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;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-ext-500-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-500-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;
}

:root {
  --navy: #0b2545;
  --navy-line: #1c3f6e;
  --blue: #1e56b8;
  --blue-hover: #174699;
  --blue-light: #78a9ff;
  --ink: #161616;
  --muted: #525252;
  --line: #e0e0e0;
  --bg: #f4f4f4;
  --on-navy: #f4f7fb;
  --on-navy-muted: #c9d5e8;
  --on-navy-dim: #a9bbd6;
  --danger: #da1e28;
  --gutter: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

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

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
}

/* Header */

.site-header {
  background: var(--navy);
  color: var(--on-navy);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--gutter);
}

.site-header .logo img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  font-size: 14px;
}

.site-nav a,
.header-actions a:not(.btn) {
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover,
.header-actions a:not(.btn):hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  color: var(--on-navy-dim);
  letter-spacing: 0.02em;
}

.lang-switch a + a::before {
  content: "·";
  margin-right: 4px;
  color: var(--on-navy-dim);
}

.header-actions .lang-switch a {
  opacity: 1;
  color: var(--on-navy-dim);
}

.header-actions .lang-switch a[aria-current] {
  color: var(--on-navy);
  font-weight: 500;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  color: var(--blue);
  border-color: var(--blue);
}

.btn-ghost:hover {
  background: #e3ebfa;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-outline-light {
  color: #fff;
  border-color: var(--on-navy-dim);
}

.btn-outline-light:hover {
  background: var(--navy-line);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Shared section type */

.band {
  padding: 96px var(--gutter);
}

.band-grey {
  background: var(--bg);
}

.band-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.kicker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 16px;
}

.band-navy .kicker {
  color: var(--blue-light);
}

h1,
h2,
h3 {
  font-weight: 300;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: 16px;
}

.intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 48px;
}

.band-navy .intro {
  color: var(--on-navy-muted);
}

.frame {
  border: 1px solid var(--line);
  background: #fff;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
  padding: 88px var(--gutter) 96px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero .lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 36px;
}

.hero .ctas {
  margin-bottom: 40px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 460px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.facts li::before,
.claim li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  margin-right: 10px;
  vertical-align: middle;
}

.browser-bar {
  height: 28px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6c6c6;
}

/* Card grids */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  padding: 0;
}

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

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

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

.card {
  background: #fff;
  padding: 28px 24px 32px;
}

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card .num {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 24px;
}

.card-not h3::before {
  content: "\2715";
  color: var(--danger);
  font-weight: 400;
  margin-right: 10px;
}

.bridge {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 300;
}

.bridge strong {
  font-weight: 500;
  color: var(--blue);
}

/* Claims */

.claim {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.claim:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.claim-flip {
  grid-template-columns: 7fr 5fr;
}

.claim-flip .claim-text {
  order: 2;
}

.claim h3 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.claim p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.claim ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  font-size: 15px;
}

.claim li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--blue);
  list-style: none;
  padding: 0;
}

.step {
  padding: 28px 28px 8px 0;
}

.step .num {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Funders */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  font-size: 16px;
}

.checks li {
  padding: 10px 0;
  border-top: 1px solid var(--navy-line);
}

.checks li::before {
  content: "\2713";
  margin-right: 12px;
  color: var(--blue-light);
}

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 32px;
}

.price-card h3 {
  font-size: 32px;
  margin-bottom: 8px;
}

.price-card > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  font-size: 15px;
}

.price-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.price-card li::before {
  content: "\2713";
  margin-right: 12px;
  color: var(--blue);
}

/* Languages */

.lang-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 14px;
}

.lang-line {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.35;
}

.lang-line span {
  color: var(--blue);
}

/* Closing */

.closing {
  text-align: center;
  padding: 112px var(--gutter);
}

.closing h2 {
  font-size: 44px;
  max-width: none;
}

.closing p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-navy-muted);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.closing .ctas {
  justify-content: center;
}

/* Page not found */

.not-found {
  padding: 120px var(--gutter) 136px;
}

.not-found h1 {
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.not-found p:not(.kicker) {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 36px;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .logo img {
  height: 22px;
  width: auto;
}

.site-footer nav,
.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  white-space: nowrap;
}

.site-footer .legal {
  margin-left: auto;
}

.site-footer a {
  text-decoration: none;
}

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

/* Narrow screens */

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    gap: 16px;
  }

  .site-nav,
  .header-actions .sign-in {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .band {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  h2 {
    font-size: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .lede {
    font-size: 18px;
  }

  .hero .ctas {
    flex-direction: column;
  }

  .cards-4,
  .cards-3,
  .cards-2,
  .steps {
    grid-template-columns: 1fr;
  }

  .claim,
  .claim-flip,
  .split,
  .pricing {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .claim-flip .claim-text {
    order: 0;
  }

  .closing {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .closing h2 {
    font-size: 30px;
  }

  .not-found {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .not-found h1 {
    font-size: 36px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer .legal {
    margin-left: 0;
  }
}
