@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: oklch(0.2 0.018 264);
  --ink-soft: oklch(0.45 0.02 264);
  --night: oklch(0.19 0.035 274);
  --indigo: oklch(0.5 0.21 274);
  --indigo-dark: oklch(0.44 0.2 274);
  --indigo-tint: oklch(0.96 0.02 274);
  --paper: #fff;
  --surface: oklch(0.982 0.003 264);
  --line: oklch(0.925 0.006 264);
  --brand: #1f3a5f;
  --bubble: #f4f6f8;
  --gutter: 1.25rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --shadow: 0 1px 2px oklch(0.2 0.02 264 / 0.05), 0 16px 40px -12px oklch(0.2 0.03 264 / 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.0625rem/1.65 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

a {
  color: inherit;
}

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

.container {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: var(--paper);
  background: var(--ink);
}

.skip:focus {
  top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 0.625rem;
  color: var(--paper);
  background: var(--indigo);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--indigo-dark);
}

.button--small {
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
}

.button--light {
  color: var(--night);
  background: var(--paper);
}

.button--light:hover {
  background: var(--indigo-tint);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.5rem;
  background: var(--indigo);
  place-items: center;
}

.logo__mark svg,
.chat__send svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo__mark svg {
  color: var(--paper);
}

/* First screen */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__text {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.text-link {
  color: var(--indigo-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* The videos */

.watch {
  padding-block: var(--section);
}

.watch__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.watch video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--night);
  box-shadow: var(--shadow);
}

.watch figcaption {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.watch figcaption b {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
}

/* The chat, as visitors see it */

.chat {
  overflow: hidden;
  width: 100%;
  max-width: 28rem;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  color: #fff;
  background: var(--brand);
}

.chat__header strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.chat__header small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0.85;
}

.chat__logo {
  display: grid;
  flex: none;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  place-items: center;
}

.chat__body {
  display: grid;
  gap: 0.625rem;
  padding: 1rem 1.125rem;
}

.chat__time {
  justify-self: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.msg {
  justify-self: start;
  max-width: 85%;
  padding: 0.6rem 0.875rem;
  border-radius: 1rem 1rem 1rem 0.3rem;
  background: var(--bubble);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.msg--visitor {
  justify-self: end;
  border-radius: 1rem 1rem 0.3rem 1rem;
  color: #fff;
  background: var(--brand);
}

.chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1.125rem 1.125rem;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.chat__send {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: var(--bubble);
  place-items: center;
}

/* The three selling points */

.point {
  padding-block: var(--section);
}

.point + .point,
.watch + .point {
  border-top: 1px solid var(--line);
}

.point__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.point__text {
  display: grid;
  gap: 1rem;
  max-width: 30rem;
}

.point__text p {
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.panel {
  width: 100%;
  max-width: 30rem;
  justify-self: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel--chat {
  display: grid;
  gap: 0.625rem;
}

.panel__title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
  font-weight: 700;
}

.panel__title span {
  color: var(--indigo);
  font-size: 0.875rem;
  font-weight: 600;
}

.inbox {
  display: grid;
  gap: 0.5rem;
}

.inbox li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
}

.inbox__who {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

.inbox__who b {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.inbox time {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sources {
  display: grid;
  gap: 0.5rem;
}

.sources li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.sources__type {
  flex: none;
  width: 3rem;
  padding-block: 0.1rem;
  border-radius: 0.375rem;
  color: var(--indigo-dark);
  background: var(--indigo-tint);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.sources__type--web {
  color: var(--ink-soft);
  background: var(--bubble);
}

.sources__name {
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
  font-weight: 500;
}

.routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.routes li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}

.routes .routes__on {
  border-color: var(--indigo);
  color: var(--paper);
  background: var(--indigo);
}

.email {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
}

.email__subject {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.email dl {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.email dt {
  color: var(--ink-soft);
}

.email dd {
  overflow-wrap: anywhere;
}

/* The smaller points */

.more {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.more h2 {
  margin-bottom: 2.5rem;
}

.more__list {
  display: grid;
  gap: 2rem;
}

.more__list li,
.steps__list li {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.more__list p,
.steps__list p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* How it works */

.steps {
  padding-block: var(--section);
}

.steps h2 {
  max-width: 30rem;
}

.steps__list {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.steps__list li {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps__list li::before {
  color: var(--indigo);
  content: counter(step);
  font-weight: 800;
}

/* Call to action */

.cta {
  padding-block: var(--section);
  color: var(--paper);
  background: var(--night);
}

.cta__inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.cta__inner > p {
  max-width: 34rem;
  margin-bottom: 1rem;
  color: oklch(0.85 0.02 274);
  font-size: 1.125rem;
}

.cta :focus-visible {
  outline-color: var(--paper);
}

/* Try for free */

.try {
  min-height: calc(100vh - 8rem);
  padding-block: clamp(2.5rem, 7vw, 5rem);
  background: var(--surface);
}

.try__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.try__card {
  width: 100%;
  max-width: 30rem;
  justify-self: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.try__step {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.try__step[hidden] {
  display: none;
}

.try__count {
  color: var(--indigo);
  font-size: 0.875rem;
  font-weight: 700;
}

.try__card h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.try__card h1:focus {
  outline: none;
}

.try__intro {
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid oklch(0.82 0.01 264);
  border-radius: 0.625rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  line-height: 1.3;
}

.field__hint,
.try__note {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.try__trap {
  position: absolute;
  left: -100vw;
}

.try__error {
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  color: oklch(0.42 0.16 27);
  background: oklch(0.96 0.02 27);
  font-size: 0.9375rem;
}

.try__error[hidden] {
  display: none;
}

.try__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.try__actions .button {
  flex: 1;
  text-align: center;
}

.try__actions .button:disabled {
  opacity: 0.7;
  cursor: default;
}

.link-button {
  padding: 0.5rem 0.25rem;
  border: 0;
  color: var(--ink-soft);
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

.try__tick {
  display: grid;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--indigo-dark);
  background: var(--indigo-tint);
  place-items: center;
}

.try__tick svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.try__home {
  color: var(--indigo-dark);
  font-weight: 600;
  text-decoration: none;
}

.try__home:hover {
  text-decoration: underline;
}

.try__next {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}

.try__next[hidden] {
  display: none;
}

.try__next h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.try__next ol {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.try__next li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.1rem 0.75rem;
  counter-increment: step;
}

.try__next li::before {
  display: grid;
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--indigo-dark);
  background: var(--indigo-tint);
  content: counter(step);
  font-size: 0.875rem;
  font-weight: 700;
  place-items: center;
}

.try__next p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* Footer */

.site-footer {
  padding-block: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }

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

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

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .chat {
    justify-self: end;
  }

  .point__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

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

  .try__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 4rem;
  }

  .try__card,
  .try__next {
    justify-self: stretch;
  }

  .try__grid:has(.try__next[hidden]) {
    grid-template-columns: minmax(0, 30rem);
    justify-content: center;
  }

  .try__next {
    padding-top: 2.5rem;
  }

  .panel {
    justify-self: end;
  }

  .point--flip .point__text {
    order: 2;
    justify-self: end;
  }

  .point--flip .panel {
    justify-self: start;
  }

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

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

  .button {
    transition: none;
  }
}
