/* The landing's elements, built only from tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Headings: the same Plex as the rest, tight, sentence case. */
.h1,
.h2 {
  font-weight: 600;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.h1 {
  font-size: var(--size-h1);
  line-height: var(--lh-h1);
}
.h2 {
  font-size: var(--size-h2);
  line-height: var(--lh-h2);
}
.h3 {
  font-size: var(--size-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--size-lead);
  line-height: var(--lh-lead);
  color: var(--ink-2);
  max-width: var(--text-w);
}
.small {
  font-size: var(--size-small);
  line-height: var(--lh-small);
  color: var(--ink-2);
}
.meta {
  font-size: var(--size-meta);
  line-height: var(--lh-meta);
  color: var(--ink-2);
}
/* A small label above a heading: the warm accent, not capitals. */
.eyebrow {
  font-size: var(--size-small);
  line-height: var(--lh-small);
  font-weight: 500;
  color: var(--warm);
}
/* A word in a heading the reader should keep: a warm underline drawn under it. */
.mark {
  background: linear-gradient(var(--warm-bg), var(--warm-bg)) 0 88% / 100% 0.32em no-repeat;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* Page */
.page {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding-block: var(--section-gap) 0;
}
.stack > * + * {
  margin-top: var(--s-4);
}

/* Buttons: one for the main action, one for the rest. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--control-h);
  padding: 0 var(--s-5);
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font: 500 var(--size-body) / 1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--paper-2);
  border-color: var(--ink-3);
}
.btn-sm {
  height: var(--control-h-sm);
  padding: 0 var(--s-4);
  font-size: var(--size-small);
}
.btn:focus-visible,
.link:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Links: one teal, one quiet. */
.link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color var(--duration) var(--ease);
}
.link:hover {
  text-decoration-color: var(--accent);
}
.link-quiet {
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.link-quiet:hover {
  color: var(--ink);
}

/* Chips: one of a short list, pressed. */
.chip {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 var(--s-3);
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: 500 var(--size-small) / 1 var(--font-text);
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* The top bar */
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  height: 4rem;
}
.nav-name {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-name i {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--r-chip);
  background: var(--accent);
  box-shadow: inset -0.375rem 0 0 var(--warm);
}
.nav-links {
  display: flex;
  gap: var(--s-6);
  font-size: var(--size-small);
}
.nav-end {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: auto;
  font-size: var(--size-small);
}
@media (width < 48rem) {
  .nav-links,
  .nav-end .link-quiet {
    display: none;
  }
}

/* The plate chip, as in the CRM. */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border: 1px solid var(--plate-border);
  border-radius: var(--r-chip);
  background: var(--plate-bg);
  color: var(--plate-ink);
  font-size: var(--size-meta);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plate b {
  font-weight: 600;
}
.plate span {
  font-weight: 500;
  color: var(--plate-ink-2);
}

/* A feature shown working: words on one side, the live piece on the other. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-12);
  align-items: center;
}
@media (width < 56rem) {
  .feature {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

/* The first screen: a heading, two buttons, the CRM to play with. */
.hero {
  padding-top: var(--s-12);
}
.hero-text {
  max-width: 50rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}
.hero-window {
  margin-top: var(--s-10);
}
.note {
  margin-top: var(--s-4);
}

/* A section's opening: label, heading, a line under it. */
.section-head {
  max-width: var(--text-w);
  margin-bottom: var(--s-12);
}
.section-head > * + * {
  margin-top: var(--s-3);
}
.features {
  display: grid;
  gap: var(--s-16);
}
@media (width < 56rem) {
  .features {
    gap: var(--s-12);
  }
}

/* Everything else: short lines in two columns, no cards. */
.others {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-12);
  margin: 0;
  padding: 0;
  list-style: none;
}
.others li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.others b {
  font-weight: 600;
}
.others span {
  color: var(--ink-2);
}
@media (width < 48rem) {
  .others {
    grid-template-columns: 1fr;
  }
  .others li {
    grid-template-columns: 1fr;
    gap: var(--s-1);
  }
}

/* The last ask: one block of sand, the heading and two buttons. */
.cta {
  padding: var(--s-16) var(--s-12);
  border-radius: var(--r-window);
  background: var(--paper-2);
}
.cta > * + * {
  margin-top: var(--s-4);
}
@media (width < 48rem) {
  .cta {
    padding: var(--s-10) var(--s-6);
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-16) var(--s-10);
  color: var(--ink-2);
  font-size: var(--size-small);
}
.foot > :last-child:not(:first-child) {
  margin-left: auto;
}

/* Coming into view: a short rise, once; nothing for reduced motion. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--duration-reveal) var(--ease),
    transform var(--duration-reveal) var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
