/* ChapterJump website: editorial type, hairline structure, and real glass over real screenshots. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f3f3f6;
  --text: #0c0d12;
  --text-2: #4b4f5c;
  --text-3: #7a7e8b;
  --link: #0b4fb3;
  --accent: #e0002f;
  --accent-2: #ff3358;
  --accent-text: #c2002c;
  --line: rgb(12 13 18 / 0.1);
  --line-strong: rgb(12 13 18 / 0.18);
  --well: rgb(12 13 18 / 0.05);
  --shade: rgb(12 13 18 / 0.08);

  --glass: rgb(255 255 255 / 0.56);
  --glass-strong: rgb(255 255 255 / 0.78);
  --rim-top: rgb(255 255 255 / 1);
  --rim-mid: rgb(255 255 255 / 0.25);
  --rim-low: rgb(255 255 255 / 0.6);
  --glass-shadow: 0 1px 1px rgb(12 13 18 / 0.04), 0 30px 60px -30px rgb(12 13 18 / 0.35),
    0 12px 24px -16px rgb(12 13 18 / 0.18);
  --sheen: rgb(255 255 255 / 0.55);

  --key-top: #ffffff;
  --key-bottom: #e8e9ee;
  --key-edge: rgb(12 13 18 / 0.2);
  --key-text: #1a1c26;

  --light-1: rgb(255 40 80 / 0.16);
  --light-2: rgb(110 110 255 / 0.14);
  --grain-opacity: 0.045;

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090c;
    --text: #f3f4f7;
    --text-2: #b4b8c4;
    --text-3: #7d8290;
    --link: #9ccbff;
    --accent-text: #ff6f8b;
    --line: rgb(255 255 255 / 0.09);
    --line-strong: rgb(255 255 255 / 0.16);
    --well: rgb(255 255 255 / 0.06);
    --shade: rgb(0 0 0 / 0.4);

    --glass: rgb(22 24 31 / 0.5);
    --glass-strong: rgb(26 28 36 / 0.78);
    --rim-top: rgb(255 255 255 / 0.3);
    --rim-mid: rgb(255 255 255 / 0.04);
    --rim-low: rgb(255 255 255 / 0.1);
    --glass-shadow: 0 1px 1px rgb(0 0 0 / 0.4), 0 40px 80px -30px rgb(0 0 0 / 0.9),
      0 12px 24px -16px rgb(0 0 0 / 0.6);
    --sheen: rgb(255 255 255 / 0.14);

    --key-top: #393c46;
    --key-bottom: #25272e;
    --key-edge: rgb(0 0 0 / 0.75);
    --key-text: #eef0f5;

    --light-1: rgb(255 0 51 / 0.2);
    --light-2: rgb(90 90 255 / 0.14);
    --grain-opacity: 0.06;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
}

/* One light source above the hero that fades out down the page. */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 1500px;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 8%, var(--light-1), transparent 70%),
    radial-gradient(50% 45% at 12% 22%, var(--light-2), transparent 70%);
}

/* Film grain, so glass has texture to diffuse. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

figure {
  margin: 0;
}

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

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

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p,
ul,
ol {
  margin: 0;
}

p {
  text-wrap: pretty;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--well);
  font-family: var(--mono);
  font-size: 0.86em;
}

kbd {
  display: inline-block;
  min-width: 28px;
  padding: 2px 8px 1px;
  border: 1px solid var(--key-edge);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  box-shadow: inset 0 1px 0 var(--rim-top), 0 1px 2px var(--shade);
  color: var(--key-text);
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.lead {
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
}

.muted {
  color: var(--text-2);
}

.small {
  color: var(--text-3);
  font-size: 14px;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: 'tnum';
}

.label {
  display: block;
  margin-bottom: 18px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Glass: a translucent sheet with a lit top edge that fades out, like real glass. */
.glass {
  position: relative;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--rim-top), var(--rim-mid) 38%, var(--rim-mid) 70%, var(--rim-low));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* A soft highlight that follows the pointer (app.js sets --mx and --my). */
.glass[data-sheen]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -10%), var(--sheen), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Buttons: glossy, raised, pressed on click. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid #a8001f;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 55%, #c50029 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -2px 0 rgb(0 0 0 / 0.18),
    0 1px 2px rgb(0 0 0 / 0.2),
    0 14px 30px -12px rgb(224 0 47 / 0.75);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 0.18);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), filter 140ms var(--ease);
}

.btn:hover {
  filter: brightness(1.06) saturate(1.05);
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgb(0 0 0 / 0.28),
    inset 0 -1px 0 rgb(255 255 255 / 0.12),
    0 4px 12px -8px rgb(224 0 47 / 0.6);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.btn-quiet {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 -2px 0 var(--shade), 0 1px 2px var(--shade);
  color: var(--text);
  text-shadow: none;
}

.btn-quiet:active {
  box-shadow: inset 0 2px 5px var(--shade);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.arrow-link::after {
  content: '\2192';
  transition: transform 180ms var(--ease);
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

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

/* Header: a floating glass bar that firms up once the page scrolls. */
.header {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin-top: 14px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

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

.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
  background: var(--well);
}

.header .btn {
  flex: none;
}

main {
  padding-bottom: 40px;
}

.section {
  margin-block: clamp(80px, 10vw, 136px);
}

/* Section head: heading on the left, a short note on the right. */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.head .lead {
  font-size: 18px;
}

/* Hero. */
.hero {
  padding-top: clamp(40px, 6vw, 84px);
}

.hero h1 em {
  position: relative;
  color: var(--accent);
  font-style: normal;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(24px, 3vw, 36px);
}

.hero-row .lead {
  max-width: 46ch;
}

.hero-cta {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.fineprint {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
}

.hero-stage {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding-right: clamp(0px, 6vw, 80px);
}

/* A browser window. */
.browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--glass-strong);
  box-shadow: var(--glass-shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-bar span {
  flex: 1;
  max-width: 320px;
  margin-left: 14px;
  padding: 3px 12px;
  border-radius: 7px;
  background: var(--well);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser picture,
.browser img {
  width: 100%;
}

/* The magnified panel, floating on glass over the screenshot. */
.callout {
  position: absolute;
  top: 9%;
  right: 0;
  width: clamp(200px, 30%, 360px);
  padding: 12px;
  border-radius: 26px;
}

.callout img {
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--rim-top), 0 10px 30px -10px rgb(0 0 0 / 0.35);
}

.stage-glow {
  position: absolute;
  inset: 10% 5% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--light-1), transparent), radial-gradient(closest-side at 20% 60%, var(--light-2), transparent);
  filter: blur(40px);
}

/* Problem statement. */
.statement {
  max-width: 1020px;
}

.ticks {
  display: flex;
  gap: 48px;
  margin-bottom: 36px;
  overflow: hidden;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 80%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 80%, transparent);
}

.ticks span {
  position: relative;
  padding-top: 16px;
}

.ticks span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.ticks .hit {
  color: var(--accent-text);
}

.ticks .hit::before {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}

.statement p {
  color: var(--text-3);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.statement p + p {
  margin-top: 0.8em;
}

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

/* Feature story: a sticky stage whose screenshot follows the step in view. */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
}

.story-stage {
  position: sticky;
  top: 96px;
  height: min(720px, calc(100vh - 124px));
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.story-stage > picture img,
.story-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  transform: scale(1.35);
  transform-origin: 20% 30%;
}

.story-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 74%);
  padding: 12px;
  border-radius: 28px;
  transform: translate(-50%, -50%);
}

.story-shots {
  position: relative;
  aspect-ratio: 784 / 1040;
}

.story-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: 17px;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 500ms var(--ease), transform 600ms var(--ease);
}

.story-stage[data-active='chapters'] img[data-step='chapters'],
.story-stage[data-active='search'] img[data-step='search'],
.story-stage[data-active='bookmarks'] img[data-step='bookmarks'] {
  opacity: 1;
  transform: none;
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(720px, calc(100vh - 124px));
  padding-block: 40px;
  opacity: 0.45;
  transition: opacity 400ms var(--ease);
}

.story-step.is-active {
  opacity: 1;
}

.story-step p {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 18px;
}

.story-step .note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14.5px;
}

.step-shot {
  display: none;
}

/* Showcase: the library, full width, then three notes on hairlines. */
.showcase-figure {
  position: relative;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(40px, 5vw, 64px);
}

.trio > div {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.trio h3 {
  font-size: 20px;
}

.trio p {
  margin-top: 10px;
  color: var(--text-2);
}

.trio .formats {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(96px, 12vw, 160px);
}

.split h3,
.story-step h3 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.split p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 18px;
}

/* How it works: three steps on one track that fills as you scroll. */
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.track::before,
.track::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.track::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
}

.track li {
  position: relative;
  z-index: 1;
  counter-increment: step;
}

.track li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border: 1px solid var(--key-edge);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, var(--key-top), var(--key-bottom) 78%);
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 -2px 0 var(--shade), 0 6px 14px -6px var(--shade);
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.track strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.track span {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
}

.after-track {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 18px;
}

/* Details: a definition list on hairlines. */
.specs {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 12px 48px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  color: var(--text);
  font-weight: 600;
}

.specs dd {
  margin: 0;
  color: var(--text-2);
}

.keys {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keys li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.keys li > span {
  display: inline-flex;
  gap: 5px;
  min-width: 150px;
}

/* Free and Pro: one glass comparison sheet. */
.pricing {
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  inset: 18% 0 -6% 30%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--light-1), transparent), radial-gradient(closest-side at 30% 70%, var(--light-2), transparent);
  filter: blur(30px);
}

.sheet {
  border-radius: 30px;
  overflow: hidden;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 15px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare thead th {
  padding-block: 30px 22px;
  vertical-align: bottom;
}

.compare thead th:not(:first-child) {
  width: 22%;
}

.compare .plan-name {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.compare .plan-note {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.compare .plan-pro .plan-note {
  color: var(--accent-text);
}

.compare tbody th {
  color: var(--text-2);
  font-weight: 400;
}

.compare tbody th small {
  display: block;
  color: var(--text-3);
  font-size: 13.5px;
}

.compare .group th {
  padding-top: 28px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.yes,
.no {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
}

.yes {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat,
    linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 3px 8px -3px rgb(224 0 47 / 0.6);
}

.no {
  width: 12px;
  height: 2px;
  margin-left: 5px;
  border-radius: 2px;
  background: var(--line-strong);
}

.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(16px, 3vw, 36px);
  background: linear-gradient(90deg, rgb(224 0 47 / 0.1), transparent 70%);
}

.founder-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #a8001f;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%, #c50029);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 8px 18px -8px rgb(224 0 47 / 0.8);
}

.founder-mark svg {
  width: 22px;
  height: 22px;
}

.founder p {
  color: var(--text-2);
}

.founder strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* Privacy statement. */
.privacy h2 {
  max-width: 12ch;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.perms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(40px, 6vw, 72px);
}

.perm {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.perm kbd {
  flex: none;
  padding: 10px 16px 8px;
  border-bottom-width: 4px;
  border-radius: 12px;
  font-size: 15px;
}

.perm p {
  color: var(--text-2);
}

.perm strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.privacy-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

/* FAQ: sticky heading on the left, accordions on hairlines on the right. */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 40px clamp(40px, 7vw, 110px);
}

.faq-side {
  position: sticky;
  top: 110px;
  align-self: start;
}

.faq-side p {
  margin-top: 18px;
  color: var(--text-2);
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

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

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

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

.faq summary:hover {
  color: var(--accent-text);
}

.faq .answer {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--text-2);
}

.faq .answer p + p {
  margin-top: 12px;
}

/* Closing call to action. */
.finale {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.finale::before {
  content: '';
  position: absolute;
  inset: -20% 15%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--light-1), transparent), radial-gradient(closest-side at 30% 70%, var(--light-2), transparent);
  filter: blur(30px);
  pointer-events: none;
}

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

.app-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 32px;
  background: linear-gradient(160deg, #ff4a6b, #e0002f 55%, #a3001f);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    inset 0 -4px 10px rgb(0 0 0 / 0.25),
    0 2px 3px rgb(0 0 0 / 0.2),
    0 30px 60px -20px rgb(224 0 47 / 0.7);
}

.app-tile::after {
  content: '';
  position: absolute;
  inset: 3px 3px 52%;
  border-radius: 29px 29px 60% 60% / 29px 29px 26px 26px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0));
  pointer-events: none;
}

.app-tile svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 -1px 0 rgb(0 0 0 / 0.2));
}

/* Inner pages. */
.page-hero {
  max-width: 880px;
  padding-top: clamp(56px, 9vw, 120px);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.page-hero .lead {
  margin-top: 24px;
}

.page-hero .actions {
  margin-top: 34px;
}

.page-hero .small {
  margin-top: 18px;
}

.page-body {
  max-width: 880px;
}

.page-body > section + section {
  margin-top: clamp(64px, 9vw, 104px);
}

.page-body h2 {
  margin-bottom: 26px;
  font-size: clamp(28px, 3.6vw, 40px);
}

.muted + .tip {
  margin-top: 22px;
}

.tip {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
  border-top: 1px solid var(--line-strong);
}

.tip li {
  display: flex;
  gap: 22px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  counter-increment: tip;
}

.tip li::before {
  content: counter(tip, decimal-leading-zero);
  flex: none;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
}

/* Privacy policy document. */
.doc {
  max-width: 760px;
  padding-top: clamp(56px, 9vw, 120px);
}

.doc h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 20px;
}

.doc h2 {
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.doc h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

/* Uninstall reasons: rows on hairlines. */
.reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.reasons a {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 160ms ease, padding 220ms var(--ease);
}

.reasons a::after {
  content: '\2192';
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--text-3);
  transform: translateY(-50%);
  transition: transform 220ms var(--ease), color 160ms ease;
}

.reasons a:hover {
  padding-left: 10px;
  color: var(--accent-text);
}

.reasons a:hover::after {
  color: var(--accent-text);
  transform: translate(4px, -50%);
}

.comeback {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* Footer. */
.footer {
  margin-top: 24px;
  padding-block: 48px 36px;
  border-top: 1px solid var(--line);
}

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

.footer .brand {
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 40ch;
  color: var(--text-2);
  font-size: 15px;
}

.footer h4 {
  margin: 4px 0 14px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
}

.footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer ul a {
  color: var(--text-2);
  text-decoration: none;
}

.footer ul a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 40px;
  color: var(--text-3);
  font-size: 13px;
}

/* Reveal on scroll: only hidden when app.js is running, so content never depends on it. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 600ms var(--ease),
      transform 700ms var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  .js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}

/* Scroll-driven motion, where the browser supports it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .header-inner {
      animation: header-firm linear both;
      animation-timeline: scroll(root);
      animation-range: 0 180px;
    }

    .hero-stage .browser {
      animation: sink linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }

    .callout {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: cover 20% cover 100%;
    }

    .ticks span {
      animation: ticks-slide linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .track::after {
      animation: fill linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 55%;
    }

    .showcase-figure .browser {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@keyframes header-firm {
  from {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@keyframes sink {
  to {
    opacity: 0.85;
    transform: scale(0.98) translateY(16px);
  }
}

@keyframes lift {
  from {
    transform: translateY(12px);
  }

  to {
    transform: translateY(-24px);
  }
}

@keyframes ticks-slide {
  from {
    transform: translateX(4%);
  }

  to {
    transform: translateX(-16%);
  }
}

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

  to {
    transform: scaleX(1);
  }
}

@keyframes rise {
  from {
    transform: perspective(1400px) rotateX(5deg) scale(0.985);
    opacity: 0.75;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* Responsive. */
@media (max-width: 980px) {
  .head,
  .split,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-side {
    position: static;
  }

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

  .story-stage {
    display: none;
  }

  .story-step {
    min-height: 0;
    padding-block: 0;
    opacity: 1;
  }

  .story-step + .story-step {
    margin-top: 72px;
  }

  .step-shot {
    display: block;
    width: min(360px, 100%);
    margin-bottom: 28px;
    padding: 10px;
    border-radius: 24px;
  }

  .step-shot img {
    border-radius: 15px;
  }

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

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

  .header .btn {
    margin-left: auto;
  }

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

  .track::before,
  .track::after {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .track::after {
    transform-origin: top;
  }

  .track li {
    padding-left: 70px;
  }

  .track li::before {
    position: absolute;
    top: 0;
    left: 0;
  }

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

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

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

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

@keyframes fill-down {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@media (max-width: 820px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .track::after {
        animation-name: fill-down;
      }
    }
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), 100% - 32px);
  }

  .header-inner {
    padding-left: 14px;
  }

  .hero-stage {
    padding-right: 0;
    padding-bottom: 90px;
  }

  .callout {
    top: auto;
    right: -4px;
    bottom: 0;
    width: 52%;
    padding: 8px;
    border-radius: 20px;
  }

  .callout img {
    border-radius: 13px;
  }

  .browser-bar span {
    display: none;
  }

  .hero-cta,
  .hero-cta .btn {
    width: 100%;
  }

  .compare thead th:not(:first-child) {
    width: 64px;
    padding-inline: 6px;
    text-align: center;
  }

  .compare td {
    padding-inline: 6px;
    text-align: center;
  }

  .compare .plan-name {
    font-size: 17px;
  }

  .compare .plan-note {
    display: none;
  }

  .keys li > span {
    min-width: 0;
  }

  .perm {
    flex-direction: column;
    gap: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .header-inner {
    background: var(--glass-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
