/* Nocturne landing page. Colours, type and spacing follow the app's tokens (ui/src/design). */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations");
}

@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: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #eeebe4;
  --sheet: #fbfaf6;
  --raised: #ffffff;
  --ink: #17181c;
  --ink2: #4a4b50;
  --ink3: #66645e;
  --rule: #dad5ca;
  --rule2: #17181c;
  --accent: #2c4bcf;
  --accent-soft: #e3e7f8;
  --ember: #a8402a;
  --ember-soft: #f5e6df;
  --marker: #f2d488;
  --focus: #2c4bcf;
  --shadow: 0 0 0 1px var(--rule), 0 30px 80px -40px rgba(23, 24, 28, 0.35);
  /* The mat behind an app picture: a step off the page, so a screenshot reads as a picture. */
  --mat: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --mark-blend: multiply;

  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 28px;
  --settle: 240ms cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1014;
    --sheet: #16191f;
    --raised: #1e222a;
    --ink: #ece8df;
    --ink2: #aba79e;
    --ink3: #8a877f;
    --rule: #2a2e37;
    --rule2: #ece8df;
    --accent: #9db0ff;
    --accent-soft: #1e2640;
    --ember: #ee8c6f;
    --ember-soft: #3a2420;
    --marker: #5c4a18;
    --focus: #9db0ff;
    --shadow: 0 0 0 1px var(--rule), 0 30px 80px -40px rgba(0, 0, 0, 0.7);
    --mark-blend: screen;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1014;
  --sheet: #16191f;
  --raised: #1e222a;
  --ink: #ece8df;
  --ink2: #aba79e;
  --ink3: #8a877f;
  --rule: #2a2e37;
  --rule2: #ece8df;
  --accent: #9db0ff;
  --accent-soft: #1e2640;
  --ember: #ee8c6f;
  --ember-soft: #3a2420;
  --marker: #5c4a18;
  --focus: #9db0ff;
  --shadow: 0 0 0 1px var(--rule), 0 30px 80px -40px rgba(0, 0, 0, 0.7);
  --mark-blend: screen;
}

/* Each screenshot comes in both themes; only the one for the active theme shows. */
.only-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light {
    display: none;
  }
  :root:not([data-theme="light"]) .only-dark {
    display: block;
  }
}

:root[data-theme="dark"] .only-light {
  display: none;
}

:root[data-theme="dark"] .only-dark {
  display: block;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  transition:
    background-color var(--settle),
    color var(--settle);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

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

::selection {
  background: var(--marker);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

kbd {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--sheet);
  border-radius: 4px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

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

.mark {
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.nav a {
  color: var(--ink2);
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.theme {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.theme button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

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

.theme button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
}

/* Shared pieces */

.eyebrow,
.when,
.facts,
.spec-line,
figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink3);
}

.eyebrow,
.when {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 72px 0;
  border-top: 1px solid var(--rule2);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.intro h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.intro p:not(.eyebrow) {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink2);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
  align-items: start;
}

.band.split {
  display: grid;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.button {
  border: 1px solid var(--rule2);
  color: var(--ink);
  text-decoration: none;
}

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

.small {
  font-size: 0.875rem;
  color: var(--ink2);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: start;
  padding: 88px 0 96px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--ink2);
}

.lede {
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
}

.facts {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.hero-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-shot img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: var(--sheet);
}

/* The keep box sits over the corner of the morning page: what goes in, beside what comes out. */
.hero-shot {
  position: relative;
}

.hero-shot figcaption {
  margin-top: 44px;
}

.hero-keep {
  position: absolute;
  left: -28px;
  bottom: 44px;
  z-index: 1;
  width: min(400px, 78%);
}

.hero-keep img {
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.35);
}

/* Steps, on the install page */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 1px solid var(--rule);
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px 24px 0;
  border-bottom: 1px solid var(--rule);
}

.steps h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

.steps p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink2);
}

/* How it works */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 56px;
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}

.feature-text .eyebrow {
  color: var(--ember);
}

/* Section headings lead the app's own headings inside the pictures. */
.feature-text h3 {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 3.2vw, 2.375rem);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.feature-text p:not(.eyebrow) {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink2);
}

/* App pictures sit on a mat with a hairline frame and no drop shadow, so they read as pictures
   of the app rather than as part of this page. */
.feature-shot,
.feature-box,
.tour-stage,
.phone-frame {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--mat);
  box-shadow: 0 0 0 1px var(--rule);
}

.feature-shot img,
.feature-box img,
.tour-screen {
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--sheet);
}

.feature-box {
  margin-top: 18px;
  max-width: 440px;
}

.feature-box img {
  width: 100%;
  height: auto;
}

.tour {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* The tour, set up by tour.js on wide screens when motion is welcome: one still frame beside the
   text, where only the page changes as each step reaches the middle of the screen. Without the
   script, each step keeps its own picture. */
.tour.is-live {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 56px;
  border-top: 1px solid var(--rule);
}

.tour.is-live .feature {
  grid-column: 1;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 0;
  border: 0;
}

/* The step's own picture stays in the page for screen readers; the frame repeats it for sight. */
.tour.is-live .feature-shot {
  position: absolute;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tour-frame {
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 40px 0;
  container-type: inline-size;
}

/* The frame holds a 768 x 900 picture in a 10px mat. It is as wide as the column allows while
   it still fits the screen's height, and it stays centred on the middle line where each step's
   text sits. */
.tour-stage {
  --w: min(100cqi, calc((100vh - 132px) * 768 / 900 + 20px));
  --h: calc((var(--w) - 20px) * 900 / 768 + 20px);
  position: sticky;
  top: max(56px, calc((100vh - var(--h)) / 2));
  width: var(--w);
  margin-left: auto;
}

.tour-screen {
  position: relative;
  display: grid;
  overflow: hidden;
}

.tour-slide {
  grid-area: 1 / 1;
  visibility: hidden;
}

.tour-slide img {
  width: 100%;
}

.tour-slide.is-before {
  visibility: visible;
  z-index: 1;
}

.tour-slide.is-current {
  visibility: visible;
  z-index: 2;
  animation: tour-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Where to look: a highlighter pass over the part that changed, drawn once and then gone. */
.tour-mark {
  position: absolute;
  z-index: 3;
  left: calc(var(--mx) * 1%);
  top: calc(var(--my) * 1%);
  width: calc(var(--mw) * 1%);
  height: calc(var(--mh) * 1%);
  margin: -8px;
  padding: 6px;
  box-sizing: content-box;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--marker) 34%, transparent);
  mix-blend-mode: var(--mark-blend);
  opacity: 0;
  pointer-events: none;
}

/* Privacy */

.promises {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}

.promises div {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.promises.needs {
  max-width: 880px;
}

.promises dt {
  font-weight: 500;
}

.promises dd {
  margin: 0;
  line-height: 1.55;
  color: var(--ink2);
}

/* Away from home, beside the promise that names it. On two columns it fills the space under the
   intro while the promises run down the other side. */
.phone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 240px);
  margin: 0;
  justify-self: center;
}

.phone-frame {
  border-radius: 30px;
}

.phone-frame img {
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--sheet);
}

@media (min-width: 824px) {
  #privacy .promises {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  #privacy .phone {
    grid-column: 1;
    justify-self: start;
  }
}

/* Engine */

.built-on {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex-wrap: wrap;
}

.built-on img {
  height: 52px;
  width: auto;
  margin: -6px 0 -6px -10px;
}

.engine-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink2);
}

.engine-text strong {
  color: var(--ink);
  font-weight: 500;
}

.links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-weight: 500;
}

/* Requirements */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}

.tiers > div {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 1px 1px 0 var(--rule);
}

.tiers h3 {
  font-size: 1rem;
  font-weight: 500;
}

.tiers p:not(.spec-line) {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink2);
}

/* Closing */

.closing {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 56px 0;
}

.closing > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.closing h2 {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.4vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.closing p {
  font-size: 0.9375rem;
  color: var(--ink2);
}

/* Install */

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sheet);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--sheet);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.get {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  padding: 80px 0 48px;
}

.get h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.here {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink2);
}

.platforms {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 20px 56px;
  padding: 40px 0;
  border-top: 1px solid var(--rule2);
}

.platform + .platform {
  border-top-color: var(--rule);
}

/* The visitor's own computer: a sheet of its own, set apart from the list below it. */
.platform.is-here {
  padding: 36px 40px;
  border: 0;
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule);
}

.platform.is-here + .others {
  margin-top: 56px;
}

.platforms.is-sorted .platform:not(.is-here) .button.primary {
  background: transparent;
  border-color: var(--rule2);
  color: var(--ink);
}

.platforms.is-sorted .platform:not(.is-here) .button.primary:hover {
  background: var(--ink);
  color: var(--sheet);
}

.platform-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 3.2vw, 2.375rem);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.here-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

.here-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.here-tag[hidden],
.others[hidden] {
  display: none;
}

.platform-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
}

.download {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.file {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink3);
  overflow-wrap: anywhere;
}

.note,
.choice-text p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink2);
}

.first-open {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.first-open h3,
.choice-text h3 {
  font-size: 1rem;
  font-weight: 500;
}

.first-open ol {
  margin: 0;
  padding-left: 1.6em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.first-open li {
  padding-left: 4px;
}

.first-open li::marker {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink3);
}

/* The words on the button or menu item to click. */
.first-open b {
  font-weight: 500;
  color: var(--ink);
}

.first-open q {
  quotes: "“" "”";
}

.why {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink3);
}

.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.choices li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.choices li:first-child {
  border-top: 0;
  padding-top: 0;
}

.choice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choices .button {
  justify-self: end;
  white-space: nowrap;
}

.note code {
  font-family: var(--mono);
  font-size: 0.875em;
}

/* The two Linux builds of one package, Intel or AMD and Arm. install.js puts Arm first when the
   browser says it runs on an Arm chip. */
.arch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: end;
}

.arch .button {
  justify-content: center;
  text-align: center;
}

.terminal {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--ink2);
}

.terminal summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent);
}

.terminal summary:hover {
  color: var(--ink);
}

.terminal pre {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--mat);
  box-shadow: 0 0 0 1px var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.others {
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
}

.others + .platform {
  border-top-color: var(--rule2);
}

.checks {
  max-width: 720px;
  padding: 24px 0 72px;
  line-height: 1.6;
}

/* Footer */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink3);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.foot a {
  color: var(--ink2);
  text-decoration: none;
  padding: 6px 0;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Not found */

.missing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 96px 0;
  max-width: 560px;
}

.missing h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
}

.missing p {
  color: var(--ink2);
}

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

}

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

  .feature-text,
  .feature-shot {
    max-width: 640px;
  }

  /* Without the still frame, the morning page step would repeat the picture at the top. */
  .feature-shot.repeat {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .feature {
    padding-top: 40px;
    gap: 24px;
  }

  .feature-shot,
  .feature-box {
    padding: 8px;
  }

  .hero {
    padding: 48px 0 64px;
    gap: 40px;
  }

  .band {
    padding: 56px 0;
  }

  /* The narrow screenshot is a phone-width window: show its top, not all of it. */
  .hero-shot img {
    max-height: 560px;
    object-fit: cover;
    object-position: top;
  }

  .hero-shot figcaption {
    margin-top: 0;
  }

  .hero-keep {
    left: 12px;
    right: 12px;
    bottom: 40px;
    width: auto;
  }

  .hero-keep img {
    max-height: none;
  }

  .promises div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .steps li {
    padding-right: 0;
  }

  .get {
    padding: 48px 0 36px;
  }

  .platform.is-here {
    padding: 24px 20px;
  }

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

  .choices .button,
  .arch {
    justify-self: start;
  }

  .checks {
    padding-bottom: 56px;
  }
}

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

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

  body {
    transition: none;
  }
}

@media print {
  .top .nav,
  .skip {
    display: none;
  }
}
