/* RELAY Dispatch marketing site
   Plain CSS, no framework.

   The look is a job sheet, not a SaaS template: warm paper, black ink, hard
   rules and big type, with RELAY orange (#FF5C00) as the one signal colour.
   Structure comes from rules and columns rather than from boxes, so cards are
   the exception. The slanted bars from the RELAY wordmark are the only
   decoration, and they appear twice: behind the hero screenshot and in the
   closing band. IBM Plex Sans is the app's typeface. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ink: #151513;
  --ink-2: #4a4843;
  --ink-3: #66635c;
  --orange: #ff5c00;
  /* Text-and-icon orange. #FF5C00 does not clear AA as text on paper. */
  --orange-ink: #a8390a;
  /* Hover on an orange fill. Lighter, not darker: the label on it is dark ink. */
  --orange-hover: #ff6f1f;
  --orange-soft: #ffb68d;
  --green: #15803d;
  --green-ink: #15580f;

  /* Paper, not white. The app screenshots are white, so they lift off it. */
  --canvas: #f5f3ee;
  --surface: #ffffff;
  --strip: #ebe8e0;
  --line: #dbd7cd;
  --line-2: #c6c1b5;

  --ink-deep: #151513;
  --on-dark: #ffffff;
  --on-dark-2: #c3c0b8;
  --on-dark-3: #a3a098;
  --line-dark: rgba(255, 255, 255, 0.16);

  --radius: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(21, 21, 19, 0.05);
  --shadow-lg: 0 1px 2px rgba(21, 21, 19, 0.05), 0 28px 56px -12px rgba(21, 21, 19, 0.18);
  --header-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(21, 21, 19, 0.06);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 66px;
  --shell: 1200px;
  --gutter: 24px;

  --section-y: clamp(64px, 8vw, 120px);
  --measure: 38em;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

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

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}

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

/* ---------- shared building blocks ---------- */

.shell {
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Only the feature and download pages still carry an eyebrow: there it is a
   breadcrumb back to the homepage, which is a job. */
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.eyebrow a {
  text-decoration: none;
}

.eyebrow a::before {
  content: '\2190\00a0';
}

.eyebrow a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2--sm {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lede {
  max-width: var(--measure);
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
}

/* A heading with its lede beside it on wide screens. The heading owns the left
   two thirds, so every section opens on the same strong left edge. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 20px clamp(32px, 5vw, 72px);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.fineprint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.more {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-ink);
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The slanted bars from the RELAY wordmark. */
.slashes {
  display: block;
  aspect-ratio: 5 / 4;
  background: linear-gradient(90deg, var(--orange-soft), var(--orange));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 15%, transparent 15% 25%);
  mask: repeating-linear-gradient(90deg, #000 0 15%, transparent 15% 25%);
  transform: skewX(-14deg);
  pointer-events: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    color 0.15s ease-in-out, transform 0.12s var(--ease);
}

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

/* One action colour: brand orange with dark ink on it (5.6:1). */
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

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

.btn--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--canvas);
}

/* The two buttons that sit on the orange closing band. */
.btn--ink {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.btn--ink:hover {
  background: #2c2b28;
}

.btn--onorange {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--onorange:hover {
  background: rgba(21, 21, 19, 0.1);
}

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

.btn--md {
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* home.js sets this once the page has scrolled. At the top the header is part
   of the page; once content slides under it, it becomes a layer. */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--header-shadow);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 11px var(--gutter);
}

.site-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__brand img {
  display: block;
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--strip);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* "Sign in" is a quiet link beside the one real button. */
.nav-actions .btn--secondary {
  border-color: transparent;
}

.nav-actions .btn--secondary:hover {
  background: var(--strip);
  color: var(--ink);
}

/* ---------- mobile menu ---------- */

/* A native disclosure that appears under 560px, where .nav-links is hidden.
   Being a <details> means the section links and the feature guides stay
   reachable on a phone with no JavaScript at all. */
.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.nav-mobile__summary::-webkit-details-marker {
  display: none;
}

.nav-mobile__icon {
  width: 16px;
  height: 12px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-position: 0 0, 0 50%, 0 100%;
  background-repeat: no-repeat;
}

.nav-mobile__panel {
  position: absolute;
  top: calc(100% + 9px);
  right: -16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(280px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.nav-mobile__panel a {
  padding: 10px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.nav-mobile__panel a:hover {
  background: var(--strip);
}

.nav-mobile__panel .nav-mobile__signin {
  margin-bottom: 6px;
  border: 1.5px solid var(--ink);
  font-weight: 600;
  text-align: center;
}

.nav-mobile__label {
  margin: 10px 0 2px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---------- features dropdown ---------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* The panel sits directly under the trigger with no gap, so the pointer can
   travel from the link into the list without the menu closing. It hides with
   visibility, which keeps its links out of the tab order until the trigger is
   focused or hovered. Groups have very different lengths, so they flow into two
   balanced columns rather than a fixed grid. */
.nav-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: block;
  columns: 2;
  column-gap: 16px;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--header-h) - 16px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-dropdown__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  break-inside: avoid;
}

.nav-links .nav-dropdown__section {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.nav-links .nav-dropdown__link {
  padding: 5px 10px 5px 18px;
  font-size: 14px;
}

/* ---------- hero ---------- */

.hero {
  padding-bottom: var(--section-y);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: 40px clamp(40px, 7vw, 104px);
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(40px, 5vw, 72px);
}

.hero h1 {
  max-width: 9.5em;
  font-size: clamp(44px, 7.6vw, 96px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__sub {
  max-width: 34em;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* The third route in: a link, so the two buttons are not competing with it. */
.hero__alt {
  padding: 8px 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.hero__alt:hover {
  color: var(--orange-ink);
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

/* The four things a tradie asks first, as a ruled list rather than a row of
   badges. Figures on the left so the eye can run down them. */
.facts {
  border-top: 2px solid var(--ink);
}

.facts__row {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.facts dt {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.facts dd {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.hero__stage {
  position: relative;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.slashes--stage {
  position: absolute;
  top: clamp(-44px, -3.4vw, -20px);
  right: calc(var(--gutter) + clamp(20px, 5vw, 72px));
  width: clamp(72px, 10vw, 136px);
}

.hero__shot {
  position: relative;
}

.hero__caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- app screenshots ---------- */

.shot {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Every screenshot opens full size. Without JavaScript the link still resolves
   to the image itself, so the proof is never a dead end. */
.shot__open {
  position: relative;
  display: block;
  color: inherit;
}

.shot__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 1;
  transition: opacity 0.15s var(--ease);
}

/* With a pointer the hint would sit permanently over the UI, so it appears on
   intent instead. Touch devices keep it visible. */
@media (hover: hover) and (pointer: fine) {
  .shot__hint {
    opacity: 0;
  }

  .shot__open:hover .shot__hint,
  .shot__open:focus-visible .shot__hint {
    opacity: 1;
  }
}

.shot__open:focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: -2px;
}

/* Full-size viewer for the screenshots. */
.zoom {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: auto;
}

.zoom::backdrop {
  background: rgba(21, 21, 19, 0.86);
}

.zoom img {
  display: block;
  width: 100%;
  height: auto;
}

.zoom form {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  margin-bottom: -48px;
}

.zoom__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- features: the working day, step by step ---------- */

.flow-section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Without JavaScript, and on small screens, every step is simply open: title,
   words, then the screen it describes. home.js adds .is-enhanced, and from
   901px the steps become a list on the left that drives one large screenshot
   on the right. */
.flow__step + .flow__step {
  margin-top: 48px;
}

.flow__title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.flow__tab {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: default;
}

.flow__num {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-ink);
}

.flow__body {
  max-width: var(--measure);
  padding: 10px 0 0 calc(1.3em + 16px);
  color: var(--ink-2);
}

.flow__body p {
  margin-bottom: 10px;
  font-size: 17px;
}

.flow__shot {
  margin-top: 24px;
}

@media (min-width: 901px) {
  .flow.is-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    /* Ten auto rows hold the five titles and the one open body; the last row
       absorbs the screenshot's extra height so the list never stretches. */
    grid-template-rows: repeat(10, auto) 1fr;
    column-gap: clamp(40px, 5vw, 72px);
  }

  .flow.is-enhanced .flow__step {
    display: contents;
  }

  .flow.is-enhanced .flow__title,
  .flow.is-enhanced .flow__body {
    grid-column: 1;
  }

  .flow.is-enhanced .flow__title {
    border-top: 1px solid var(--line-2);
  }

  .flow.is-enhanced .flow__step:first-child .flow__title {
    border-top: 2px solid var(--ink);
  }

  .flow.is-enhanced .flow__tab {
    padding: 20px 0;
    color: var(--ink-3);
    cursor: pointer;
    transition: color 0.15s ease-in-out;
  }

  .flow.is-enhanced .flow__tab:hover,
  .flow.is-enhanced .is-open .flow__tab {
    color: var(--ink);
  }

  .flow.is-enhanced .flow__num {
    color: inherit;
  }

  .flow.is-enhanced .is-open .flow__num {
    color: var(--orange-ink);
  }

  .flow.is-enhanced .flow__body {
    display: none;
    padding-top: 0;
    padding-bottom: 24px;
  }

  .flow.is-enhanced .is-open .flow__body {
    display: block;
  }

  .flow.is-enhanced .flow__shot {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }

  .flow.is-enhanced .is-open .flow__shot {
    opacity: 1;
    visibility: visible;
  }
}

/* What does not fit the step-by-step story: three ruled columns of plain text. */
.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(32px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 96px);
}

.extras__item {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.extras__item h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.extras__item p {
  color: var(--ink-2);
}

.extras__more {
  margin-top: 32px;
  color: var(--ink-2);
}

/* ---------- free means free ---------- */

.free {
  background: var(--ink-deep);
  color: var(--on-dark);
}

.free :focus-visible {
  outline-color: var(--orange);
}

.free__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 48px clamp(40px, 6vw, 96px);
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.free__title {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.free__copy p {
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--on-dark-2);
}

.free__copy p + p {
  margin-top: 14px;
}

.free__lists {
  display: grid;
  gap: 36px;
}

.free__block-head {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--on-dark);
  font-size: 15px;
  font-weight: 600;
}

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

.free__list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-2);
}

/* A tick for what is free, a plus for what Cloud adds. Shape as well as colour,
   so the two lists differ for someone who cannot tell green from orange. */
.free__list--yes li::before {
  content: '';
  position: absolute;
  top: 1.05em;
  left: 3px;
  width: 13px;
  height: 7px;
  border-left: 2px solid #4ade80;
  border-bottom: 2px solid #4ade80;
  transform: rotate(-45deg);
}

.free__list--cloud li::before {
  content: '+';
  position: absolute;
  top: 9px;
  left: 2px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- pricing ---------- */

.pricing {
  padding: var(--section-y) 0;
}

/* Beta discount callout. Remove the markup and this rule once the beta price
   becomes the regular price. */
.promo {
  max-width: 54em;
  margin-bottom: 28px;
  color: var(--ink-2);
}

.promo strong {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* One ruled panel with three columns, not three cards. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px);
}

.plan + .plan {
  border-left: 1px solid var(--line-2);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.plan__tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.plan__amount {
  font-size: clamp(48px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.plan__unit {
  font-size: 15px;
  color: var(--ink-3);
}

/* The regular price the beta discount is measured from. */
.plan__was {
  font-size: 16px;
  color: var(--ink-3);
  text-decoration: line-through;
}

.plan__for {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}

.plan__list {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan__list li {
  position: relative;
  padding-left: 24px;
}

.plan__list li + li {
  margin-top: 9px;
}

.plan__list li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.plan__cta {
  margin-top: 8px;
}

/* The plan most crews want is the dark column. The orange button inside it is
   then the brightest thing in the section. */
.plan--featured {
  background: var(--ink-deep);
  color: var(--on-dark);
}

.plan--featured + .plan {
  border-left: 0;
}

.plan--featured .plan__unit,
.plan--featured .plan__was {
  color: var(--on-dark-3);
}

.plan--featured .plan__for {
  border-bottom-color: var(--line-dark);
  color: var(--on-dark-2);
}

.plan--featured .plan__list {
  color: var(--on-dark-2);
}

.plan--featured .plan__list li::before {
  border-color: #4ade80;
}

.plan--featured :focus-visible {
  outline-color: var(--orange);
}

/* ---------- compare ---------- */

.compare {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.compare__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 32px clamp(40px, 5vw, 72px);
}

.compare .section-head {
  display: block;
  margin-bottom: 0;
}

.compare .section-head .lede {
  margin-top: 18px;
}

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

.compare table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.compare tbody tr {
  border-bottom: 1px solid var(--line-2);
}

.compare tbody th {
  padding-left: 0;
  font-weight: 500;
  color: var(--ink-2);
}

.compare tbody td {
  color: var(--ink-2);
}

/* RELAY's column is the one tinted band running down the table. */
.compare .is-relay {
  background: rgba(255, 92, 0, 0.09);
}

.compare thead th.is-relay {
  font-weight: 700;
  color: var(--orange-ink);
}

.compare tbody td.is-relay {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- what shipped, what's next ---------- */

.log {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.log__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 56px clamp(40px, 7vw, 104px);
}

.log__sub {
  max-width: var(--measure);
  margin-top: 12px;
  color: var(--ink-2);
}

.releases {
  margin-top: 28px;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.release {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}

.release__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.release__ver {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.release__list {
  padding: 0 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.release__list li + li {
  margin-top: 5px;
}

.release__list li::marker {
  color: var(--line-2);
}

.roadmap {
  margin-top: 28px;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.roadmap__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}

.roadmap__item img {
  display: block;
  height: 20px;
  width: auto;
  margin-bottom: 12px;
}

.roadmap__item h3 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.roadmap__item p {
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- closing band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
}

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

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 40px clamp(40px, 6vw, 96px);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.slashes--cta {
  position: absolute;
  top: -12%;
  right: -4%;
  width: clamp(200px, 30vw, 420px);
  background: var(--ink);
  opacity: 0.07;
}

.cta__title {
  position: relative;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.cta__side {
  position: relative;
}

.cta__sub {
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 500;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cta__demo {
  margin-top: 20px;
  font-weight: 600;
}

.cta__demo a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.cta__note {
  margin-top: 16px;
  font-size: 13px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-deep);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 32px var(--gutter);
  font-size: 14px;
  color: var(--on-dark-3);
}

.site-footer :focus-visible {
  outline-color: var(--orange);
}

.site-footer__inner > img {
  display: block;
  height: 24px;
  width: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-footer nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.site-footer nav a:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__legal {
  flex: 1 1 100%;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

.site-footer__legal p {
  margin: 0;
}

/* ---------- feature pages ---------- */

.feature-page__inner {
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.feature-page__head .feature-page__inner {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.feature-page__body {
  padding-top: 0;
}

.feature-page__title {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.feature-page__intro {
  max-width: var(--measure);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}

/* Sticky jump bar: the Workflow page has seven tabs, and losing the index two
   screens in makes it hard to leave the page where you meant to. */
.feature-jump {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 12px 0;
  background: var(--canvas);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-2);
}

.feature-jump a {
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.feature-jump a:hover {
  color: var(--ink);
  background: var(--strip);
}

/* Where the reader currently is. home.js sets aria-current="location" on the
   link for the section in view. */
.feature-jump a[aria-current] {
  background: var(--ink);
  color: var(--canvas);
}

/* Each tab is a two-column row: the words beside the screen they describe. */
.feature-tab {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--header-h) + 72px);
}

.feature-tab:only-of-type {
  border-top: 2px solid var(--ink);
}

.feature-tab:nth-of-type(even) .feature-tab__copy {
  order: 2;
}

.feature-tab:nth-of-type(even) {
  grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
}

.feature-tab__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.feature-tab__num {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-ink);
}

/* The number only helps a reader moving through several tabs. */
.feature-tab:only-of-type .feature-tab__num {
  display: none;
}

.feature-tab__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.feature-tab__summary {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

/* Ticks, not discs: each bullet is something the tab actually does. */
.feature-tab__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.feature-tab__list li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line);
}

.feature-tab__list li::before {
  content: '';
  position: absolute;
  top: 1em;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* The other sections, so a reader who landed on one page can find the rest. */
.feature-more {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding: 32px 0;
}

.feature-more__label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.feature-more__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.feature-more__links a {
  font-size: 17px;
  font-weight: 600;
  color: var(--orange-ink);
  text-decoration: none;
}

.feature-more__links a::after {
  content: '\00a0\2192';
}

.feature-more__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The same closing note as the homepage, at page-section size. */
.feature-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 16px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--ink-deep);
  color: var(--on-dark);
}

.feature-cta p {
  flex: 1 1 320px;
  max-width: 24em;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.feature-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-cta .btn--secondary {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.feature-cta .btn--secondary:hover {
  background: var(--on-dark);
  color: var(--ink);
}

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

/* ---------- download page ---------- */

.download-panel {
  max-width: 720px;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
}

.download-panel + .download-panel {
  border-top: 1px solid var(--line-2);
}

.download-panel__title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.download-panel__lead {
  margin-top: 10px;
  font-size: 17px;
  color: var(--ink-2);
}

.download-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.download-panel__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- legal pages ---------- */

.legal {
  background: var(--canvas);
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.legal h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.legal__updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-3);
}

.legal__banner {
  margin-top: 24px;
  padding: 16px;
  border: 1.5px solid var(--orange-ink);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.legal h2 {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 12px;
  color: var(--ink-2);
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--orange-ink);
}

/* ---------- 404 ---------- */

.notfound__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--section-y) + 24px) var(--gutter) calc(var(--section-y) + 40px);
  text-align: center;
}

.notfound__inner p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-2);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- responsive ---------- */

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

  .nav-links {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    /* The dropdown panel anchors to this row (see below). */
    position: relative;
  }

  /* Below 900px the section links drop to a centred row of their own, so a
     panel anchored to the Features trigger would run off the right edge.
     Anchoring it to the row and centring it keeps the whole panel on screen. */
  .nav-dropdown {
    position: static;
  }

  .nav-dropdown__panel {
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(-4px);
  }

  .nav-dropdown:hover .nav-dropdown__panel,
  .nav-dropdown:focus-within .nav-dropdown__panel {
    transform: translateX(-50%);
  }

  .hero__inner,
  .section-head,
  .free__inner,
  .compare__inner,
  .log__inner,
  .cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    align-items: start;
  }

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

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }

  .plan--featured + .plan {
    border-top: 0;
  }

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

  /* Feature pages: the two-column rows stack, screenshot under its copy. */
  .feature-tab,
  .feature-tab:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .feature-tab:nth-of-type(even) .feature-tab__copy {
    order: 0;
  }

  /* A sticky bar seven links long would cover a third of a tablet screen. */
  .feature-jump {
    position: static;
  }
}

@media (max-width: 560px) {
  /* One row on phones. The section links go into the menu; one action stays
     beside the logo, and "Sign in" is the first entry in the menu. */
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 16px;
  }

  :root {
    --gutter: 16px;
  }

  .site-header__brand img {
    height: 22px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .nav-actions {
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .nav-actions .btn svg,
  .nav-actions .btn--secondary {
    display: none;
  }

  /* Long labels side by side wrap into ragged lines on a phone; a stacked pair
     is easier to hit and easier to read. */
  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__alt {
    text-align: center;
  }

  .facts__row {
    grid-template-columns: 6.4em minmax(0, 1fr);
  }

  .facts dt {
    font-size: 17px;
  }

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

  .release__meta {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .flow__body {
    padding-left: 0;
  }

  .feature-cta .btn {
    width: 100%;
  }
}

/* ---------- motion ---------- */

/* The hero arrives in reading order: headline, words, buttons, then the app. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .facts,
  .hero__stage {
    animation: enter-up 620ms var(--ease-out) both;
    animation-delay: calc(var(--hero-i, 0) * 70ms);
  }

  .hero__copy > :nth-child(2) {
    --hero-i: 1;
  }

  .hero__copy > :nth-child(3) {
    --hero-i: 2;
  }

  .hero__copy > :nth-child(4) {
    --hero-i: 3;
  }

  .facts {
    --hero-i: 3;
  }

  .hero__stage {
    --hero-i: 4;
  }

  .zoom[open] {
    animation: zoom-in 260ms var(--ease-out);
  }

  .zoom[open]::backdrop {
    animation: backdrop-in 220ms ease-out;
  }
}

@keyframes enter-up {
  from {
    opacity: 0;
    translate: 0 18px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

/* Scroll entrances. home.js adds .reveal only to blocks that start below the
   fold, so nothing the visitor can already see is delayed. */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 560ms var(--ease-out),
    translate 560ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

::selection {
  background: rgba(255, 92, 0, 0.28);
}

.free ::selection,
.site-footer ::selection,
.plan--featured ::selection {
  background: rgba(255, 92, 0, 0.5);
  color: var(--on-dark);
}

.cta ::selection {
  background: var(--ink);
  color: var(--orange);
}

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

  .site-header {
    transition: none;
  }

  .nav-dropdown__panel {
    transform: none;
    transition: opacity 0.15s;
  }

  .btn {
    transform: none;
  }

  .flow.is-enhanced .flow__shot {
    transition: none;
  }

  .reveal,
  .reveal.is-in {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

@media print {
  .site-header {
    display: none;
  }
}
