/* Whiteboard and marker: bone paper, graphite outlines, one tangerine marker.
   The home page is laid out as a flowchart: a connector runs down the left edge
   and every section hangs off one of the app's seven block shapes. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
@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");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --bone: #f4f2ec;
  --paper: #fbfaf6;
  --sand: #e9e5da;
  --ink: #1b1f23;
  --muted: #5b6269;
  --rule: #cfcabd;
  --marker: #d2470f;
  --marker-bright: #f2622a;
  --teal: #0f6e66;
  --teal-pale: #7fcfc4;
  --amber: #b87a00;
  --red: #b3261e;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --rail: 96px;
  --gutter: 32px;
  --pad: 104px;
  --line: 2px;
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--marker-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--marker);
}

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marker);
}

.tag::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--marker-bright);
  transform: rotate(45deg);
}

.small {
  font-size: 0.9375rem;
  color: var(--muted);
}

.shape__no {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

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

.top {
  border-bottom: var(--line) solid var(--ink);
  background: var(--bone);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.menu {
  display: flex;
  gap: 4px 28px;
  font-size: 0.9375rem;
}

.menu a {
  white-space: nowrap;
  padding-block: 12px;
  text-decoration: none;
}

.menu a:hover,
.menu a[aria-current="page"] {
  text-decoration-line: underline;
}

.top__get {
  padding: 9px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--bone);
}

a.top__get:hover {
  background: var(--marker);
  border-color: var(--marker);
  color: #fff;
}

.top__get--soon {
  background: none;
  border-style: dashed;
  border-color: var(--muted);
  color: var(--muted);
  font-weight: 500;
}

/* ---------- call to action ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 14px 26px;
  border: var(--line) solid var(--marker);
  border-radius: 10px;
  background: var(--marker);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

a.cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cta--soon {
  background: none;
  border: var(--line) dashed var(--ink);
  color: var(--ink);
}

.cta--soon::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--marker-bright);
  transform: rotate(45deg);
}

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

.hero {
  padding-top: 72px;
  border-bottom: var(--line) solid var(--ink);
  background-color: var(--bone);
  background-image: radial-gradient(circle, #c9c4b6 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  overflow: hidden;
}

.hero__title {
  max-width: 1100px;
  margin-top: 24px;
  font-size: clamp(2.5rem, 6.7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.mark {
  color: var(--marker);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 72px;
  align-items: start;
  margin-top: 40px;
}

.lede {
  max-width: 60ch;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__facts li::before {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-3px) rotate(-45deg);
}

.trip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.trip__label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
}

.trip__label .shape {
  flex: none;
  width: 46px;
  height: auto;
}

/* connector from one screen's label to the next */
.trip__item:not(:last-child) .trip__label::after {
  content: "";
  flex: 1;
  height: var(--line);
  margin-right: -32px;
  background: var(--ink);
}

.trip__item + .trip__item .trip__label::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  border: 6px solid transparent;
  border-left: 9px solid var(--ink);
  border-right: 0;
  transform: translate(-100%, -50%);
}

.trip__shot {
  aspect-ratio: 400 / 440;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--bone);
}

.shot__img {
  width: 100%;
}

/* ---------- the flow: rail + sections ---------- */

.step {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) var(--rail) minmax(0, 1112px) minmax(var(--gutter), 1fr);
  --rail-ink: var(--ink);
}

.step__rail {
  grid-column: 2;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: var(--pad);
}

.step__rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: var(--line);
  background: var(--rail-ink);
}

.step__rail:not(:empty)::after {
  content: "";
  position: absolute;
  top: calc(var(--pad) - 9px);
  left: 36px;
  border: 7px solid transparent;
  border-top: 10px solid var(--rail-ink);
  border-bottom: 0;
  transform: translateX(-50%);
}

.step__rail .shape {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 44px;
}

.step__body {
  grid-column: 3;
  min-width: 0;
  padding-block: calc(var(--pad) + 8px) calc(var(--pad) * 0.6);
  padding-left: 24px;
}

.step h2 {
  max-width: 21ch;
  margin-top: 18px;
  font-size: clamp(1.75rem, 3.6vw, 2.875rem);
}

.step h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.intro {
  max-width: 58ch;
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px 80px;
  align-items: start;
}

.split--flip {
  grid-template-columns: 340px minmax(0, 1fr);
}

.shot {
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--bone);
}

/* 01 map */

.legend {
  margin-top: 36px;
  border-bottom: 1px solid var(--rule);
}

.legend__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding-block: 11px;
  border-top: 1px solid var(--rule);
}

.legend__row:first-child {
  border-top: var(--line) solid var(--ink);
}

.legend dt {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 700;
}

.legend .shape {
  flex: none;
  width: 52px;
  height: auto;
}

.notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 64px;
}

.notes > div,
.also__list > div {
  padding-top: 14px;
  border-top: var(--line) solid var(--ink);
}

.notes dt,
.also__list dt {
  font-family: var(--display);
  font-weight: 700;
}

.notes dd,
.also__list dd {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* 02 measure */

.sum {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-block: 48px 72px;
}

.sum__cell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px 18px;
  border: var(--line) solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
}

.sum__cell--out {
  flex-grow: 1.25;
  background: var(--ink);
  color: var(--bone);
}

.sum__k {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sum__v {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sum__n {
  font-size: 0.875rem;
  color: var(--muted);
}

.sum__cell--out .sum__k,
.sum__cell--out .sum__n {
  color: #b9bdc0;
}

.sum__cell--out .sum__v {
  color: #ff8a57;
}

.sum__op {
  align-self: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--marker);
}

.rows {
  margin-top: 20px;
  border-bottom: 1px solid var(--rule);
}

.rows > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
}

.rows > div:first-child {
  border-top: var(--line) solid var(--ink);
}

.rows dt {
  font-family: var(--display);
  font-weight: 700;
}

.rows--tight > div {
  grid-template-columns: 90px minmax(0, 1fr);
}

.rows + .small {
  margin-top: 16px;
}

.split__text > h3 {
  margin-top: 40px;
}

.split__text > h3:first-child {
  margin-top: 8px;
}

/* 03 analyse */

.ticks {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  max-width: 58ch;
}

.ticks li {
  position: relative;
  padding-left: 34px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 20px;
  height: var(--line);
  background: var(--marker);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: calc(0.78em - 4px);
  border: 5px solid transparent;
  border-left: 7px solid var(--marker);
  border-right: 0;
}

.gaps {
  margin-top: 44px;
  padding: 24px 26px 26px;
  border: var(--line) solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips li {
  padding: 5px 11px;
  border: 1.5px solid var(--amber);
  border-radius: 6px;
  background: #fbefd0;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* 04 improve (dark) */

.step--dark {
  --rail-ink: var(--bone);
  background-color: var(--ink);
  background-image: radial-gradient(circle, #30373e 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--bone);
}

.step--dark .tag {
  color: #ff8a57;
}

.step--dark h2 {
  max-width: 24ch;
}

.versus {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 72px;
  align-items: start;
  margin-top: 12px;
}

.versus__text p + p {
  margin-top: 18px;
  color: #c9ccce;
}

.versus__table {
  margin-top: 20px;
  padding: 8px 24px 20px;
  border: var(--line) solid var(--bone);
  border-radius: 10px;
  background: var(--ink);
}

.versus table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.versus caption {
  caption-side: bottom;
  padding-top: 16px;
  font-size: 0.875rem;
  text-align: left;
  color: #b9bdc0;
}

.versus th,
.versus td {
  padding: 14px 10px;
  border-bottom: 1px solid #3a4148;
  text-align: right;
  vertical-align: baseline;
}

.versus th:first-child {
  padding-left: 0;
  text-align: left;
}

.versus td:last-child,
.versus th:last-child {
  padding-right: 0;
}

.versus thead th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9bdc0;
}

.versus tbody th {
  font-weight: 400;
}

.versus td {
  white-space: nowrap;
}

.versus tbody td {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
}

.versus td.versus__delta {
  font-weight: 700;
  color: var(--teal-pale);
}

.versus tfoot th,
.versus tfoot td {
  border-bottom: 0;
  padding-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
}

.versus tfoot td:nth-child(3) {
  color: #ff8a57;
}

/* 05 templates */

.library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px 72px;
  align-items: start;
  margin-top: 48px;
}

.library__list {
  border-bottom: var(--line) solid var(--ink);
}

.library__group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 16px;
  border-top: var(--line) solid var(--ink);
}

.library__group h3 {
  padding-top: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.library__group li {
  padding-block: 7px;
}

.library__group li + li {
  border-top: 1px solid var(--rule);
}

.library__shots {
  display: grid;
  grid-template-columns: 240px 240px;
  gap: 24px;
}

.library__shots .shot:last-child {
  margin-top: 56px;
}

/* 06 control */

.also {
  margin-top: 88px;
}

.also__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 24px;
}

/* your data */

.step--private {
  background: var(--sand);
  border-block: var(--line) solid var(--ink);
}

.step--private .step__body {
  padding-bottom: var(--pad);
}

.step--dark .step__body {
  padding-bottom: var(--pad);
}

.private {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px 72px;
  align-items: start;
}

.private__head p:not(.tag) {
  max-width: 50ch;
  margin-top: 20px;
}

.private__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}

.private__facts > div {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin: -1px 0 0 -1px;
}

.private__facts dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
}

.private__facts dd {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* end */

.step--end .step__rail::before {
  bottom: auto;
  height: var(--pad);
}

.step--end .step__body {
  padding-bottom: 128px;
}

.step .end__title {
  max-width: 17ch;
  margin-top: 0;
  font-size: clamp(2.125rem, 5.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.end__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: 40px;
}

.end__note {
  max-width: 44ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

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

.foot {
  background: var(--ink);
  color: var(--bone);
}

.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px 48px;
  padding-block: 64px 48px;
}

.foot__name {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.foot__meta,
.foot__label {
  font-size: 0.875rem;
  color: #b9bdc0;
}

.foot__nav {
  display: grid;
  gap: 2px;
  align-content: start;
}

.foot__nav a {
  padding-block: 8px;
  text-decoration: none;
}

.foot__nav a:hover,
.foot__mail:hover {
  color: #ff8a57;
  text-decoration-line: underline;
}

.foot__mail {
  display: inline-block;
  margin-top: 8px;
  padding-block: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-block: 20px 28px;
  border-top: 1px solid #3a4148;
  font-size: 0.8125rem;
  color: #b9bdc0;
}

/* ---------- document pages ---------- */

.doc__head,
.lost {
  background-color: var(--bone);
  background-image: radial-gradient(circle, #c9c4b6 1.2px, transparent 1.4px);
  background-size: 24px 24px;
}

.doc__head {
  padding-block: 72px 56px;
  border-bottom: var(--line) solid var(--ink);
}

.doc__head h1 {
  max-width: 21ch;
  margin-top: 20px;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.doc__meta {
  margin-top: 20px;
  color: var(--muted);
}

.doc__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px 88px;
  align-items: start;
  padding-block: 72px 112px;
}

.doc__side {
  position: sticky;
  top: 24px;
  padding: 24px 24px 26px;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.9375rem;
}

.doc__side h2 {
  font-size: 1.1875rem;
}

.doc__side h3 {
  margin-top: 22px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc__side p {
  margin-top: 10px;
}

.doc__side .cta {
  margin-top: 18px;
  min-height: 52px;
  padding: 10px 18px;
  font-size: 1rem;
}

.doc__short {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.doc__short li {
  position: relative;
  padding-left: 22px;
}

.doc__short li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--marker-bright);
  transform: rotate(45deg);
}

.doc__mail {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.doc__version {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
}

.prose {
  max-width: 70ch;
}

.prose section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.prose h2,
.faq__item h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.5rem;
  line-height: 1.2;
  text-wrap: pretty;
}

.no {
  flex: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--marker);
  min-width: 1.6em;
}

.prose p,
.prose ul,
.prose .table-scroll {
  margin-top: 16px;
}

.prose ul {
  display: grid;
  gap: 12px;
}

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

.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.table-scroll {
  overflow-x: auto;
  border: var(--line) solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.prose table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  border-top: 0;
  background: var(--sand);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose tbody th {
  font-weight: 600;
}

.faq {
  max-width: 70ch;
}

.faq__item {
  padding-block: 28px 30px;
  border-top: 1px solid var(--rule);
}

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

.faq__item h3 {
  font-size: 1.3125rem;
}

.faq__item p {
  margin-top: 12px;
  padding-left: calc(1.6em * 0.875 + 14px);
}

.faq__more {
  padding-top: 24px;
  border-top: var(--line) solid var(--ink);
}

.lost {
  padding-block: 112px 144px;
  border-bottom: var(--line) solid var(--ink);
}

.lost h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lost .lede {
  margin-top: 24px;
}

.lost__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 36px;
  font-family: var(--display);
  font-weight: 700;
}

.lost__links a {
  display: inline-block;
  padding-block: 10px;
}

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

@media (max-width: 1100px) {
  .library {
    grid-template-columns: minmax(0, 1fr);
  }

  .library__shots {
    grid-template-columns: repeat(2, minmax(0, 240px));
  }

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

  .split {
    gap: 40px 48px;
  }

  .doc__grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 72px;
  }

  .hero__grid,
  .versus,
  .private,
  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc__side {
    position: static;
  }

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

  .split--flip .shot {
    order: 2;
  }

  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }

  .sum {
    flex-direction: column;
    gap: 6px;
    max-width: 520px;
  }

  .sum__op {
    line-height: 1;
  }

  .top__get {
    display: none;
  }

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

  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 16px;
    --rail: 30px;
    --pad: 56px;
  }

  body {
    font-size: 1rem;
  }

  .top__in {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-block: 12px 2px;
  }

  .menu {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0 12px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__grid {
    margin-top: 28px;
    gap: 28px;
  }

  .lede,
  .intro {
    font-size: 1.0625rem;
  }

  .cta {
    width: 100%;
    justify-content: center;
    padding-inline: 18px;
    font-size: 1.0625rem;
  }

  .trip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-top: 16px;
  }

  .trip {
    padding-bottom: 40px;
  }

  .trip__item:first-child {
    grid-column: 1 / -1;
  }

  .trip__shot {
    border-bottom: var(--line) solid var(--ink);
    border-radius: 12px;
    aspect-ratio: 400 / 520;
  }

  .trip__item:first-child .trip__shot {
    aspect-ratio: 400 / 360;
  }

  .trip__item .trip__label::after,
  .trip__item .trip__label::before {
    display: none;
  }

  .trip__label {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .trip__label .shape {
    width: 36px;
  }

  .step__rail::before {
    left: 14px;
  }

  .step__rail:not(:empty)::after {
    left: 15px;
    top: calc(var(--pad) - 8px);
    border-width: 6px;
    border-top-width: 8px;
  }

  .step__rail .shape {
    width: 30px;
    height: auto;
    margin-top: 2px;
  }

  .step__rail .shape__no {
    display: none;
  }

  .step__body {
    padding-left: 14px;
    padding-top: var(--pad);
  }

  .step h2 {
    margin-top: 14px;
  }

  .shot {
    max-width: 300px;
  }

  .legend__row,
  .rows > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .rows--tight > div {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .notes {
    gap: 20px;
  }

  .sum {
    margin-block: 32px 48px;
  }

  .gaps {
    padding: 18px 16px 20px;
  }

  .versus__table {
    padding: 4px 12px 16px;
  }

  .versus th,
  .versus td {
    padding: 11px 5px;
    font-size: 0.875rem;
  }

  .versus tbody td {
    font-size: 0.875rem;
  }

  .versus thead th {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }

  .versus tfoot th,
  .versus tfoot td {
    font-size: 1.25rem;
  }

  .library {
    margin-top: 32px;
  }

  .library__shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .library__shots .shot:last-child {
    margin-top: 32px;
  }

  .also {
    margin-top: 56px;
  }

  .also__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .step--end .step__body {
    padding-bottom: 80px;
  }

  .foot__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 48px 32px;
  }

  .doc__head {
    padding-block: 44px 36px;
  }

  .doc__grid {
    padding-block: 36px 72px;
  }

  .prose h2 {
    font-size: 1.3125rem;
  }

  .prose table {
    min-width: 0;
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 10px;
  }

  .faq__item h3 {
    font-size: 1.1875rem;
  }

  .faq__item p {
    padding-left: 0;
  }

  .lost {
    padding-block: 64px 88px;
  }
}

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

  .cta {
    transition: none;
  }
}
