/* Tokens */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --ink: #17181c;
  --paper: #f4f1ea;
  --accent: #ff3b1f;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5b5c63;
  --rule: rgba(23, 24, 28, 0.15);
  --btn-hover: #34353c;

  --gutter: 24px;
  --section: 64px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #a9a79f;
    --rule: rgba(244, 241, 234, 0.15);
    --btn-hover: #ffffff;
  }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  max-width: 65ch;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Layout */

.wrap {
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sections only pad above, so the gap between two sections is one --section. */
.section {
  padding-top: var(--section);
}

.section:last-child {
  padding-bottom: var(--section);
}

.title {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
}

.lead {
  max-width: 38rem;
  margin-top: 20px;
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 0.8em 1.15em;
  font-size: 0.9375rem;
}

.text-link {
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.item {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.item p {
  margin-top: 8px;
  color: var(--muted);
}

/* Sections */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: block;
  flex: none;
}

.logo-svg {
  width: clamp(128px, 36vw, 150px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero {
  padding-top: 40px;
}

.hero-inner {
  display: grid;
  gap: 48px;
}

/* Sized so the longest line ("Every session.") never wraps inside its column. */
.hero-title {
  font-size: clamp(2rem, 9vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 28px;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.hero-mark {
  width: 200px;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: dot-in 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(150ms + var(--i) * 35ms);
  }

  @keyframes dot-in {
    from {
      transform: scale(0);
    }
  }
}

.features {
  display: grid;
  gap: 36px 64px;
  margin-top: 40px;
}

.ask-title {
  max-width: 20ch;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
}

.data-grid {
  display: grid;
  gap: 40px;
}

.facts {
  display: grid;
  gap: 32px;
}

.integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 1.25em;
  margin-block: 40px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.15;
}

.contact-title {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}

.email {
  font-weight: 500;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-weight: 600;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Responsive */

@media (max-width: 599px) {
  .nav-link {
    display: none;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section: clamp(96px, 11vw, 136px);
  }

  .hero {
    padding-top: clamp(40px, 6vw, 72px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    column-gap: 64px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  }

  .hero-mark {
    justify-self: end;
    width: min(100%, 384px);
  }

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

  .data-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    column-gap: 64px;
  }

  .data-intro {
    position: sticky;
    top: 2rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-meta {
    flex-direction: row;
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 64px;
  }
}
