/* sheetscroll.com. Colours are the app's own tokens (app/src/app.css): warm paper, ink, and the
 * blue of the following cursor. Light and dark follow the system, as the app does. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-latin.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  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 {
  color-scheme: light;
  --bg: #f6f3ec;
  --raised: #fffdf8;
  --tint: #efe9dc;
  --ink: #1d1b16;
  --muted: #5c574d;
  --faint: #6f6859;
  --line: #e2dccd;
  --line-strong: #cbc2ae;
  --accent: #1d5bb8;
  --accent-soft: #e3ecfa;
  --cursor: #0a6cf0;
  --cursor-ink: #ffffff;
  --bar-fill: rgba(10, 108, 240, 0.12);
  --bar-line: rgba(10, 108, 240, 0.55);
  --uncertain: #b35c00;
  --ok: #1e7b34;
  --rec: #d92d20;

  --btn-bg: #1d1b16;
  --btn-fg: #fffdf8;
  --btn-hover: #38342b;


  /* the app inside the demo tablet (its chrome follows the theme; pages stay paper) */
  --app-bg: #f6f3ec;
  --app-surface: #fffdf8;
  --app-line: #ddd6c7;
  --app-ink: #1d1b16;
  --app-muted: #5c574d;
  --paper: #fffdf8;
  --bezel: #1b1b1e;

  --shadow-sm: 0 1px 2px rgba(40, 32, 16, 0.06), 0 2px 8px rgba(40, 32, 16, 0.05);
  --shadow-lg: 0 2px 4px rgba(40, 32, 16, 0.06), 0 24px 48px -12px rgba(40, 32, 16, 0.22), 0 48px 96px -32px rgba(40, 32, 16, 0.28);

  --serif: 'Instrument Serif', ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141416;
    --raised: #1c1c20;
    --tint: #19191c;
    --ink: #ededf0;
    --muted: #a8a8b3;
    --faint: #8a8a95;
    --line: #2c2c33;
    --line-strong: #44444d;
    --accent: #8ab4ff;
    --accent-soft: #1f2d45;
    --cursor: #5b9dff;
    --cursor-ink: #0b1b36;
    --bar-fill: rgba(91, 157, 255, 0.2);
    --bar-line: rgba(91, 157, 255, 0.7);
    --uncertain: #ffb45c;
    --ok: #8ad29a;
    --rec: #ff6b5e;

    --btn-bg: #ededf0;
    --btn-fg: #141416;
    --btn-hover: #ffffff;


    --app-bg: #141416;
    --app-surface: #1e1e22;
    --app-line: #34343b;
    --app-ink: #ededf0;
    --app-muted: #a8a8b3;
    --paper: #f4f0e6;
    --bezel: #0b0b0c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 48px 96px -32px rgba(0, 0, 0, 0.7);
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

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

::selection {
  background: var(--accent-soft);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

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

/* ------------------------------------------------------------------ type */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 1.7rem + 4vw, 5.125rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.375rem, 1.5rem + 2.8vw, 3.875rem);
  line-height: 1.02;
}

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

p {
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* the app's cursor: a short blue bar */
.eyebrow::before {
  content: '';
  width: 3px;
  height: 1.15em;
  border-radius: 2px;
  background: var(--cursor);
}

.lede,
.section-lede {
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0 1.15em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), color 160ms var(--ease);
}

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

.btn-sm {
  min-height: 38px;
  padding: 0 1em;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0 1.5em;
  font-size: 1rem;
}

.btn-ink {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

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

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn .icon {
  width: 1.2em;
  height: 1.2em;
}

.icon-end {
  transition: transform 200ms var(--ease);
}

.btn:hover .icon-end {
  transform: translateX(3px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-paper {
  fill: #fffdf8;
  stroke: #d9d1bf;
  stroke-width: 1;
}

.brand-staff {
  stroke: #1d1b16;
  stroke-width: 1.35;
  stroke-linecap: round;
}

.brand-bar {
  fill: rgba(10, 132, 255, 0.18);
}

.brand-cursor {
  fill: #0a84ff;
}

.brand-name {
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.header-row > .btn {
  flex: none;
}

@media (max-width: 800px) {
  .site-nav {
    display: none;
  }
  .header-row > .btn {
    margin-left: auto;
  }
}

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

.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

/* platform names keep their capitals */
.eyebrow-plain {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
}

/* three lines: "Sheet music that / listens and turns / the page." */
.hero h1 {
  max-width: 5.9em;
  margin-bottom: 1.75rem;
  text-wrap: wrap;
}

.lede {
  max-width: 34rem;
}

/* "listens", as the app highlights the bar being played */
.hl {
  position: relative;
  z-index: 0;
  margin-inline: 0.03em 0.1em;
  font-style: italic;
  white-space: nowrap;
}

.hl::before,
.hl::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0.14em;
  bottom: 0.02em;
  border-radius: 0.07em;
}

.hl::before {
  left: -0.05em;
  right: -0.07em;
  background: var(--bar-fill);
  box-shadow: inset 0 -0.05em 0 var(--bar-line);
  transform-origin: left center;
}

.hl::after {
  right: -0.07em;
  width: 0.05em;
  background: var(--cursor);
  top: 0.06em;
  bottom: -0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  .hl::before {
    animation: hl-fill 1100ms var(--ease) 350ms both;
  }
  .hl::after {
    animation: hl-cursor 1100ms var(--ease) 350ms both;
  }
}

@keyframes hl-fill {
  from {
    transform: scaleX(0);
  }
}

@keyframes hl-cursor {
  from {
    right: 100%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.25rem;
}

.cta-center {
  justify-content: center;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.assurances .icon {
  width: 18px;
  height: 18px;
  color: var(--faint);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-demo {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .eyebrow-plain {
    font-size: 0.8125rem;
  }
  .hl {
    white-space: normal;
  }
}

/* ------------------------------------------------------------------ the demo tablet */

.hero-demo {
  --page-aspect: 0.8; /* site/scripts/engrave.mjs: PAGE */
  justify-self: center;
  width: 100%;
  max-width: 470px;
}

.device {
  position: relative;
  padding: 12px;
  border-radius: 34px;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-lg);
}

/* the camera */
.device::before {
  content: '';
  position: absolute;
  top: 4.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #2a2a2e;
}

.screen {
  container-type: inline-size;
  overflow: hidden;
  border-radius: 22px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: var(--sans);
  line-height: 1.2;
}

.app-bar,
.app-status {
  display: flex;
  align-items: center;
  gap: 2.6cqi;
  height: 10.5cqi;
  padding-inline: 3cqi;
  background: var(--app-surface);
  font-size: 2.85cqi;
}

.app-bar {
  border-bottom: 1px solid var(--app-line);
}

.app-status {
  justify-content: space-between;
  border-top: 1px solid var(--app-line);
}

.app-bar .icon {
  width: 4.2cqi;
  height: 4.2cqi;
}

.app-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqi;
  color: var(--app-muted);
  font-weight: 500;
}

.app-title {
  display: flex;
  flex-direction: column;
  gap: 0.35cqi;
  min-width: 0;
  margin-right: auto;
}

.app-title strong {
  overflow: hidden;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-title span {
  color: var(--app-muted);
  font-size: 2.45cqi;
}

.app-stop {
  display: inline-flex;
  align-items: center;
  gap: 1.3cqi;
  padding: 1.25cqi 2.6cqi;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  font-weight: 600;
}

.rec {
  width: 1.9cqi;
  height: 1.9cqi;
  border-radius: 50%;
  background: var(--rec);
}

.app-gear {
  color: var(--app-muted);
}

.music {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--page-aspect);
  background: var(--paper);
  contain: layout paint;
}

.sheet {
  position: absolute;
  inset: 0;
  background: var(--paper);
  color: #1d1b16;
}

.sheet img {
  width: 100%;
  height: 100%;
}

/* page 2 arrives in two steps: its top half over page 1's, then all of it (half-page turns) */
.sheet-next {
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.sheet-next.is-shown {
  opacity: 1;
}

/* the edge of page 2's top half, over page 1 */
.split {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  box-shadow: 0 0 0 0.5px rgba(29, 27, 22, 0.14), 0 1.2cqi 2.4cqi -1.2cqi rgba(29, 27, 22, 0.35);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.split.is-shown {
  opacity: 1;
}

/* the engraving leaves the top margin for this (site/scripts/engrave.mjs: pageMarginTop) */
.sheet-head {
  position: absolute;
  top: 4%;
  left: 5.3%;
  right: 5.3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqi;
  font-family: var(--serif);
}

.sheet-title {
  font-size: 6.2cqi;
  line-height: 1;
  letter-spacing: 0.005em;
}

.sheet-row {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  font-size: 2.55cqi;
  letter-spacing: 0.03em;
  color: #3a362e;
}

.folio {
  position: absolute;
  top: 4.5%;
  left: 5.5%;
  font-family: var(--serif);
  font-size: 3cqi;
  color: #5c574d;
}

/* the following overlay (app/src/components/player/player.css): it tints the paper and never
   covers a note */
.aid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 180ms linear;
}

.aid.is-hidden {
  opacity: 0;
}

.aid-bar,
.aid-cursor {
  position: absolute;
  left: 0;
  top: 0;
}

.aid-bar {
  border-radius: 0.8cqi;
  background: rgba(10, 108, 240, 0.12);
  box-shadow: inset 0 -0.6cqi 0 rgba(10, 108, 240, 0.55);
}

.aid-cursor {
  width: 0.7cqi;
  margin-left: -0.35cqi;
  border-radius: 0.4cqi;
  background: #0a6cf0;
}

/* the status bar's pill (app/src/components/player/StatusPill.svelte) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqi;
  min-width: 0;
  padding: 1.25cqi 2.9cqi;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: var(--app-surface);
  font-size: 2.85cqi;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill .dot {
  flex: none;
  width: 2cqi;
  height: 2cqi;
  border-radius: 50%;
  background: var(--ok);
}

.pill[data-tone='info'] .dot {
  background: var(--accent);
  animation: breathe 1.6s ease-in-out infinite alternate;
}

@keyframes breathe {
  to {
    opacity: 0.35;
  }
}

.meter {
  display: inline-flex;
  align-items: center;
  gap: 0.55cqi;
  height: 4.4cqi;
  color: var(--app-muted);
}

.meter .icon {
  width: 3.8cqi;
  height: 3.8cqi;
  margin-right: 0.8cqi;
}

.meter i {
  width: 0.6cqi;
  height: 22%;
  border-radius: 0.3cqi;
  background: currentColor;
  opacity: 0.55;
  transform-origin: center;
}

.meter.is-on i {
  background: var(--ok);
  opacity: 1;
  animation: level 900ms ease-in-out infinite alternate;
}

.meter.is-on i:nth-of-type(2) {
  animation-duration: 640ms;
  animation-delay: -200ms;
}

.meter.is-on i:nth-of-type(3) {
  animation-duration: 780ms;
  animation-delay: -420ms;
}

.meter.is-on i:nth-of-type(4) {
  animation-duration: 560ms;
  animation-delay: -120ms;
}

.meter.is-on i:nth-of-type(5) {
  animation-duration: 860ms;
  animation-delay: -560ms;
}

@keyframes level {
  from {
    height: 22%;
  }
  to {
    height: 100%;
  }
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-top: 18px;
  padding-inline: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.demo-caption-text {
  transition: opacity 240ms var(--ease);
}

.demo-caption-text.is-changing {
  opacity: 0;
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.demo-toggle .icon {
  width: 14px;
  height: 14px;
}

.demo-toggle[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ sections */

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

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 + .section-lede {
  margin-top: 1.5rem;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}

.step {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.step-n {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 3.25rem;
  line-height: 0.8;
  color: var(--cursor);
}

.step h3 {
  margin-bottom: 10px;
}

.step p,
.promise p,
.feature p {
  color: var(--muted);
  font-size: 1rem;
}

/* never early */

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.promise {
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: var(--shadow-sm);
}

.staff-art {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 24px;
  overflow: visible;
}

.art-staff {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.art-bar {
  fill: var(--bar-fill);
}

.art-cursor {
  fill: var(--cursor);
}

/* the notes are ink over the highlight, as in the app */
.art-notes {
  fill: var(--ink);
}

.art-stems {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.art-maybe {
  fill: color-mix(in srgb, var(--uncertain) 10%, transparent);
  stroke: var(--uncertain);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.art-q {
  fill: var(--uncertain);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.art-arrow {
  fill: none;
  stroke: var(--cursor);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise h3 {
  margin-bottom: 8px;
}

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 32px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  color: var(--cursor);
  stroke-width: 1.75;
}

.feature h3 {
  margin-bottom: 8px;
}

.formats {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  align-items: start;
  gap: 16px 40px;
  margin-top: clamp(48px, 6vw, 72px);
}

.formats-title {
  padding-top: 8px;
}

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

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.formats-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.privacy-item {
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.privacy-item .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  color: var(--cursor);
  stroke-width: 1.75;
}

.privacy-item h3 {
  margin-bottom: 8px;
}

.privacy-item p {
  color: var(--muted);
  font-size: 1rem;
}

/* pricing */

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 34px 34px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--raised);
  box-shadow: var(--shadow-sm);
}

.plan-pro {
  border-color: color-mix(in srgb, var(--cursor) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cursor) 14%, transparent), var(--shadow-sm);
}

.plan-name {
  font-size: 1.375rem;
}

.plan-sum {
  margin-top: 6px;
  color: var(--muted);
}

.plan .amount {
  font-family: var(--serif);
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

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

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-block: 30px;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 26px 30px;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.option.is-best {
  border-color: var(--cursor);
  box-shadow: inset 0 0 0 1px var(--cursor);
}

.option-name {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan .option .amount {
  font-size: clamp(1.875rem, 1.4rem + 1.2vw, 2.5rem);
}

.option-tag {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cursor);
  color: var(--cursor-ink);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.plan-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--cursor);
}

.plan .btn {
  margin-top: auto;
  align-self: flex-start;
}

.plans-fine {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* download */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.platform:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  width: 30px;
  height: 30px;
  color: var(--muted);
  stroke-width: 1.6;
}

.platform-text {
  flex: 1;
  min-width: 0;
}

.platform h3 {
  font-size: 1.0625rem;
}

.platform p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.platform-link {
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

/* the whole card is the link's target */
.platform-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

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

.platform.is-current {
  border-color: color-mix(in srgb, var(--cursor) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cursor) 14%, transparent);
}

.platform.is-current .platform-icon {
  color: var(--cursor);
}

.platform.is-current .platform-link {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.platform-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--cursor);
  color: var(--cursor-ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* faq */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-grid .section-head {
  margin-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq details:first-child {
  border-top: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq details p {
  max-width: 40rem;
  padding: 0 2px 24px;
  color: var(--muted);
}

/* closing */

.closing {
  text-align: center;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 32px;
  filter: drop-shadow(0 8px 18px rgba(40, 32, 16, 0.16));
}

.closing h2 {
  max-width: 14ch;
}

.closing .section-lede {
  margin-top: 1.25rem;
}

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

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.footer-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

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

.footer-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ appearing on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 960px) {
  .steps,
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    gap: 8px;
  }
  .step {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 16px;
    padding-block: 24px 20px;
  }
  .step-n {
    grid-row: span 2;
    font-size: 2.75rem;
    margin-bottom: 0;
  }
  .promise {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    column-gap: 28px;
    align-items: center;
  }
  .staff-art {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 38rem;
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .formats {
    grid-template-columns: minmax(0, 1fr);
  }
  .formats-note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .promise {
    display: block;
    padding: 24px 22px 26px;
  }
  .staff-art {
    margin-bottom: 20px;
    max-width: 200px;
  }
  .features,
  .privacy-grid,
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature {
    padding: 26px 22px 28px;
  }
  .plan {
    padding: 28px 22px 30px;
  }
  .plan-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .option {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
  }
  .option-name {
    flex-basis: 100%;
  }
  .footer-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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

.lost {
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
  display: flex;
  align-items: center;
}

.lost h1 {
  max-width: 9em;
  margin-bottom: 1.5rem;
}

.lost .lede {
  max-width: 32rem;
}
