/* YD MD, product-performs. Palette from the app's own themes. */

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

/* --------------------------------------------------------------------------
   Theme tokens, taken from the app's web-src themes
   -------------------------------------------------------------------------- */
html[data-theme='github'] {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f5;
  --ink: #1f2328;
  --muted: #59636e;
  --faint: #6e7781;
  --accent: #0969da;
  --accent-ink: #ffffff;
  --stage: #0969da;
  --stage-ink: #ffffff;
  --field: #0b0c0e;
  --field-ink: #f0f3f6;
  --field-muted: #aab4bf;
  --selection: #b6dcff;
  --mark-bg: #fff8c5;
  --mark-ink: #1f2328;
  --ui-bg: #ffffff;
  --ui-surface: #f6f8fa;
  --ui-inset: #f0f3f6;
  --ui-ink: #1f2328;
  --ui-muted: #59636e;
  --ui-line: #d1d9e0;
  --ui-accent: #0969da;
  --ui-accent-ink: #ffffff;
  --ui-accent-soft: #ddf4ff;
  --ui-code: #f6f8fa;
  --ui-note: #ddf4ff;
  --ui-note-line: #54aeff;
  --tok-key: #cf222e;
  --tok-str: #0a3069;
  --tok-num: #0550ae;
  --tok-com: #57606a;
}

html[data-theme='github-dark'] {
  color-scheme: dark;
  --ground: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2129;
  --ink: #e6edf3;
  --muted: #9198a1;
  --faint: #8d96a0;
  --accent: #4493f8;
  --accent-ink: #0d1117;
  --stage: #1f6feb;
  --stage-ink: #ffffff;
  --field: #000000;
  --field-ink: #f0f3f6;
  --field-muted: #aab4bf;
  --selection: #1f6feb;
  --mark-bg: #4a3d00;
  --mark-ink: #fff8c5;
  --ui-bg: #0d1117;
  --ui-surface: #161b22;
  --ui-inset: #1c2129;
  --ui-ink: #e6edf3;
  --ui-muted: #9198a1;
  --ui-line: #30363d;
  --ui-accent: #4493f8;
  --ui-accent-ink: #0d1117;
  --ui-accent-soft: #121d2f;
  --ui-code: #161b22;
  --ui-note: #121d2f;
  --ui-note-line: #1f6feb;
  --tok-key: #ff7b72;
  --tok-str: #a5d6ff;
  --tok-num: #79c0ff;
  --tok-com: #8b949e;
}

html[data-theme='sepia'] {
  color-scheme: light;
  --ground: #fbf3e4;
  --surface: #f4e8d0;
  --surface-2: #efe1c4;
  --ink: #4b3b2a;
  --muted: #7a674f;
  --faint: #8b7659;
  --accent: #8f4e1f;
  --accent-ink: #ffffff;
  --stage: #8f4e1f;
  --stage-ink: #ffffff;
  --field: #231b12;
  --field-ink: #f4e8d0;
  --field-muted: #c0ae92;
  --selection: #ecd5b3;
  --mark-bg: #f6dfa0;
  --mark-ink: #4b3b2a;
  --ui-bg: #fbf3e4;
  --ui-surface: #f4e8d0;
  --ui-inset: #efe1c4;
  --ui-ink: #4b3b2a;
  --ui-muted: #7a674f;
  --ui-line: #e0cfb0;
  --ui-accent: #8f4e1f;
  --ui-accent-ink: #ffffff;
  --ui-accent-soft: #f6e3c9;
  --ui-code: #f2e6d0;
  --ui-note: #eaf0f4;
  --ui-note-line: #7ba7c7;
  --tok-key: #9c3a2a;
  --tok-str: #4a6132;
  --tok-num: #8f4e1f;
  --tok-com: #6b563c;
}

html[data-theme='contrast'] {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #f0f0f0;
  --surface-2: #e6e6e6;
  --ink: #000000;
  --muted: #1a1a1a;
  --faint: #262626;
  --accent: #0000d0;
  --accent-ink: #ffffff;
  --stage: #0000d0;
  --stage-ink: #ffffff;
  --field: #000000;
  --field-ink: #ffffff;
  --field-muted: #e6e6e6;
  --selection: #ffe600;
  --mark-bg: #ffe600;
  --mark-ink: #000000;
  --ui-bg: #ffffff;
  --ui-surface: #f0f0f0;
  --ui-inset: #e6e6e6;
  --ui-ink: #000000;
  --ui-muted: #1a1a1a;
  --ui-line: #000000;
  --ui-accent: #0000d0;
  --ui-accent-ink: #ffffff;
  --ui-accent-soft: #e6e6ff;
  --ui-code: #f2f2f2;
  --ui-note: #e6f0ff;
  --ui-note-line: #0000d0;
  --tok-key: #b00000;
  --tok-str: #004d00;
  --tok-num: #0000d0;
  --tok-com: #4d4d4d;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
:root {
  --font-page: 'Jost', 'Avenir Next', system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace; /* taste-skill-ignore: code inside data-ui fragments only */
  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --page-max: 1760px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-hover: 180ms;
  --t-ui: 240ms;
}

* { box-sizing: border-box; }

html {
  background: var(--ground);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-page);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--selection); color: inherit; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

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

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-wrap: balance;
}

h2 { font-size: clamp(32px, 3.3vw, 50px); }
h3 { font-size: clamp(21px, 1.7vw, 26px); letter-spacing: -0.02em; line-height: 1.08; }

p { text-wrap: pretty; }

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

section[id] { scroll-margin-top: 24px; }

.sr-only {
  position: absolute;
  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: 16px; top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }

.page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: 22px;
}
.nav .page { max-width: var(--page-max); }
.nav__row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; }
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t-hover) ease;
}
.nav__links a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--font-page);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button--nav { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: color-mix(in srgb, var(--accent) 84%, black); }
  .button--nav:hover { background: color-mix(in srgb, var(--accent) 84%, black); }
}
.button--onfield { background: #ffffff; color: var(--stage); }
@media (hover: hover) and (pointer: fine) {
  .button--onfield:hover { background: color-mix(in srgb, #ffffff 88%, var(--stage)); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  min-height: 100svh;
  padding: 150px var(--margin) 0;
  overflow: clip;
}
.hero__inner { max-width: 100%; }
.hero__text { max-width: 47%; }

.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.lines [data-line] { display: block; }

.hero h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero h1 .line { white-space: nowrap; }
.hero__lead {
  margin-top: 30px;
  max-width: 44ch;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero__meta {
  font-size: 14px;
  color: var(--muted);
  max-width: 15ch;
  line-height: 1.4;
}

.hero__stage {
  position: absolute;
  left: 52%;
  right: 0;
  top: 42%;
  bottom: 0;
  background: var(--stage);
  clip-path: polygon(0 80px, 80px 0, 100% 0, 100% 100%, 0 100%);
  padding: 56px 0 0 56px;
  z-index: 1;
}

/* Reader fragment, the app's real document chrome in miniature */
.reader {
  width: min(620px, 100%);
  background: var(--ui-bg);
  color: var(--ui-ink);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--ui-line);
}
.reader__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--ui-surface);
}
.reader__file {
  font-size: 12px;
  font-weight: 600;
  color: var(--ui-ink);
  white-space: nowrap;
}
.theme-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--ui-inset);
  border-radius: 6px;
}
.theme-btn {
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.theme-btn.is-on {
  background: var(--ui-bg);
  color: var(--ui-ink);
}
@media (hover: hover) and (pointer: fine) {
  .theme-btn:hover { color: var(--ui-ink); }
}

.reader__body { padding: 18px 20px 22px; }
.reader__body h2 {
  font-family: var(--font-ui);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.reader__body > p {
  font-size: 13px;
  color: var(--ui-ink);
  max-width: 56ch;
}
.ui-note {
  margin-top: 12px;
  padding: 9px 11px;
  background: var(--ui-note);
  border-left: 3px solid var(--ui-note-line);
  border-radius: 4px;
}
.ui-note__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-accent);
  margin-bottom: 2px;
}
.ui-note p:last-child { font-size: 12px; color: var(--ui-ink); }

.ui-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 12px;
}
.ui-table th, .ui-table td {
  text-align: left;
  padding: 5px 8px;
  border: 1px solid var(--ui-line);
  color: var(--ui-ink);
}
.ui-table th { background: var(--ui-surface); font-weight: 600; }

.ui-code {
  margin-top: 12px;
  padding: 9px 12px;
  background: var(--ui-code);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ui-ink);
  overflow: hidden;
  white-space: pre;
}
.tok-key { color: var(--tok-key); }
.tok-str { color: var(--tok-str); }
.tok-num { color: var(--tok-num); }
.tok-com { color: var(--tok-com); }

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */
.search {
  background: var(--surface);
  padding: clamp(72px, 8vw, 120px) 0 clamp(72px, 8vw, 110px);
}
.search h2 { max-width: 14ch; }
.search__lead {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.5;
}
.search__ui { margin-top: 44px; }
.search__field input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  -webkit-appearance: none;
  appearance: none;
}
.search__field input:focus { outline: none; }
.search__field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.search__field input::placeholder { color: var(--faint); opacity: 0.55; }
.search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search__output { margin-top: 34px; }
.search__count {
  font-size: 15px;
  color: var(--muted);
}
.search__count strong { color: var(--ink); font-weight: 600; font-size: 17px; }
.search__list {
  margin-top: 16px;
  max-width: 760px;
}
.search__list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
}
.search__line {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.search__text { color: var(--ink); }
.search__list mark {
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0 2px;
}
.search__empty { color: var(--muted); font-size: 15px; padding: 11px 0; }

.search__examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 30px;
  font-size: 16px;
  color: var(--muted);
}
.search__hint { margin-left: auto; font-size: 14px; }
.chip {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent);
  text-underline-offset: 0.18em;
  cursor: pointer;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { text-decoration-color: currentColor; }
}

/* --------------------------------------------------------------------------
   The document
   -------------------------------------------------------------------------- */
.doc {
  background: var(--field);
  color: var(--field-ink);
  padding: clamp(80px, 9vw, 130px) 0;
}
.doc__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
.doc__text { grid-column: 1 / span 4; }
.doc__text h2 { color: var(--field-ink); }
.doc__lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--field-muted);
  max-width: 38ch;
}
.facts { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.facts li { font-size: 16px; line-height: 1.45; color: var(--field-muted); max-width: 40ch; }
.facts strong { color: var(--field-ink); font-weight: 600; }

.doc__shot { grid-column: 5 / span 8; margin: 0; }
.shutter { overflow: hidden; }
.doc__shot img { width: 100%; height: auto; }
.doc__shot figcaption {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--field-muted);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features { padding: clamp(96px, 10vw, 160px) 0; }
.features__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(72px, 7vw, 110px);
}
.features__head h2 { grid-column: 1 / span 6; max-width: 10ch; }
.features__lead {
  grid-column: 9 / span 4;
  justify-self: end;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 30ch;
}
.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  margin-bottom: clamp(96px, 9vw, 150px);
}
.feature:last-child { margin-bottom: 0; }
.feature__visual { grid-column: 1 / span 6; }
.feature__text { grid-column: 8 / span 5; padding-top: 4px; }
.feature__text h3 { max-width: 18ch; }
.feature__text p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.58;
  max-width: 46ch;
}

.feature__visual--shots {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.shot {
  width: 500px;
  max-width: 100%;
  aspect-ratio: 540 / 320;
  overflow: hidden;
  background: var(--surface-2);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.shot--offset { width: 420px; margin-left: 56px; aspect-ratio: 540 / 340; }
.shot--small { width: 380px; margin-left: auto; aspect-ratio: 540 / 390; }

/* Sink fragment */
.sink {
  width: 100%;
  max-width: 620px;
  background: var(--ui-bg);
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 13px;
}
.sink__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--ui-surface);
}
.sink__file { font-size: 12px; font-weight: 600; }
.sink__theme { font-size: 11px; color: var(--ui-muted); }
.sink__body { padding: 18px 20px 16px; }

.sink__math {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ui-ink);
  padding: 6px 0 10px;
}
.sink__math .m { font-style: italic; }
.sink__math .eq { margin: 0 2px; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; }
.frac .num {
  padding: 0 4px 3px;
  border-bottom: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.frac .den { padding-top: 3px; }
.rad { text-decoration: overline; }
.frac sup { font-size: 0.55em; line-height: 0; }

.flow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0 14px;
  flex-wrap: wrap;
}
.flow__node {
  border: 1px solid var(--ui-accent);
  background: var(--ui-accent-soft);
  color: var(--ui-ink);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
}
.flow__node--on { background: var(--ui-accent); color: var(--ui-accent-ink); }
.flow__arrow { color: var(--ui-muted); font-size: 13px; }

.sink .ui-code { margin-top: 2px; }
.sink__foot {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--ui-muted);
}

/* --------------------------------------------------------------------------
   Proof
   -------------------------------------------------------------------------- */
.proof { padding: clamp(96px, 10vw, 160px) 0; }
.proof__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.proof__head h2 { max-width: 12ch; }
.proof__lead {
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 30ch;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  background: var(--surface);
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile--lead {
  grid-column: span 2;
  background: var(--accent);
  color: var(--accent-ink);
}
.tile__name {
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.tile--lead .tile__name {
  font-size: clamp(30px, 3vw, 44px);
  max-width: 13ch;
}
.tile__sub {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
.tile--lead .tile__sub { color: var(--accent-ink); opacity: 0.86; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { padding: clamp(96px, 10vw, 160px) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  column-gap: clamp(40px, 6vw, 110px);
  margin-top: 56px;
}
.faq__list { display: flex; flex-direction: column; }
.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  padding: 13px 0;
  min-height: 46px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.35;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-hover) ease;
}
.faq__q .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--faint);
  margin-top: 8px;
  flex: none;
  transition: background-color var(--t-hover) ease;
}
.faq__q.is-on { color: var(--ink); }
.faq__q.is-on .dot { background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover { color: var(--ink); }
}
.faq__a {
  display: none;
  font-size: 18px;
  line-height: 1.5;
  padding: 0 0 20px 21px;
  color: var(--ink);
  max-width: 46ch;
}
.faq__pane {
  position: sticky;
  top: 120px;
  align-self: start;
}
.faq__answer {
  font-size: clamp(22px, 1.7vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 30ch;
}
.faq__answer.is-swap { animation: answer-in 180ms ease; }
@keyframes answer-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.cta {
  background: var(--stage);
  color: var(--stage-ink);
  padding: clamp(88px, 9vw, 140px) 0;
}
.cta :focus-visible { outline-color: #ffffff; }
.cta__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  min-height: 0;
}
.cta__text { grid-column: 1 / span 6; }
.cta h2 {
  color: var(--stage-ink);
  font-size: clamp(50px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.cta__text > p {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 40ch;
  color: var(--stage-ink);
}
.cta .button { margin-top: 32px; }
.cta__meta {
  margin-top: 18px !important;
  font-size: 14px !important;
  opacity: 0.88;
}
.cta__meta a { text-underline-offset: 0.2em; }

.welcome {
  grid-column: 7 / span 6;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  background: var(--ui-bg);
  color: var(--ui-ink);
  border-radius: 10px;
  padding: 28px 30px 26px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3); /* taste-skill-ignore: window overlay in data-ui */
}
.welcome__head { display: flex; gap: 16px; align-items: flex-start; }
.welcome__head img { width: 64px; height: 64px; flex: none; border-radius: 14px; }
.welcome__name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.welcome__desc { margin-top: 2px; font-size: 13px; color: var(--ui-ink); }
.welcome__spec { margin-top: 4px; font-size: 11px; color: var(--ui-muted); line-height: 1.4; }
.welcome__label {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ui-line); /* taste-skill-ignore: separator inside data-ui window */
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ui-muted);
}
.welcome__empty { margin-top: 14px; font-size: 13px; color: var(--ui-muted); }
.welcome__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 34px;
}
.wbtn {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-ink);
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.wbtn--primary {
  background: var(--ui-accent);
  border-color: transparent;
  color: var(--ui-accent-ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--field);
  color: var(--field-ink);
  padding: clamp(72px, 8vw, 120px) 0 36px;
}
.footer__big {
  font-size: clamp(88px, 25vw, 400px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: var(--field-ink);
  white-space: nowrap;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-top: clamp(40px, 5vw, 72px);
}
.footer__tag { font-size: 15px; color: var(--field-muted); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a {
  font-size: 15px;
  color: var(--field-ink);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}
.footer__links a:hover { color: var(--field-muted); }
.footer__note { font-size: 13px; color: var(--field-muted); }

/* --------------------------------------------------------------------------
   Motion, only where it is welcome
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js .hero [data-load] {
    opacity: 0;
    transform: translateY(12px);
    animation: load-rise 520ms var(--ease-out) forwards;
    animation-delay: var(--d, 0ms);
  }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition-property: opacity, transform;
    transition-duration: 700ms, 900ms;
    transition-timing-function: var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .shutter {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1100ms var(--ease-in-out) 120ms;
  }
  .js .shutter img {
    transform: scale(1.06);
    transition: transform 1500ms var(--ease-soft) 100ms;
  }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .js .theme-switch .theme-btn { transition: background-color 160ms ease, color 160ms ease; }
  .js .brand img, .js .welcome__head img { transition: transform 300ms var(--ease-out); }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .doc__shot .shutter {
      animation: shot-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes shot-drift {
  from { transform: translateY(-2.2%); }
  to { transform: translateY(2.2%); }
}

/* --------------------------------------------------------------------------
   Tablet and phone
   -------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .nav { padding-top: 18px; }
  .hero {
    min-height: 0;
    padding-top: 118px;
  }
  .hero__text { max-width: 760px; }
  .hero h1 { font-size: clamp(44px, 7vw, 72px); }
  .hero__stage {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    margin: 56px calc(var(--margin) * -1) 0;
    padding: 88px 16px 0;
    height: 600px;
    overflow: clip;
    clip-path: polygon(0 72px, 72px 0, 100% 0, 100% 100%, 0 100%);
  }
  .reader { width: 100%; max-width: none; }
  .doc__text { grid-column: 1 / span 5; }
  .doc__shot { grid-column: 6 / span 7; }
  .feature__visual { grid-column: 1 / span 6; }
  .feature__text { grid-column: 8 / span 5; }
  .proof__head { display: block; }
  .proof__lead { margin-top: 20px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__row { gap: 16px; }
  .nav .button--nav { margin-left: auto; }

  .doc__inner { display: block; }
  .doc__text h2 { max-width: 16ch; }
  .doc__lead { max-width: 48ch; }
  .doc__shot { margin-top: 56px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }

  .features__head { display: block; }
  .features__lead { margin-top: 22px; justify-self: start; max-width: 36ch; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__visual, .feature__text { grid-column: 1 / -1; }
  .feature__text { padding-top: 32px; }
  .feature__text p { max-width: 52ch; }
  .shot { width: 100%; }
  .shot--offset, .shot--small { width: 100%; margin-left: 0; }
  .feature__visual--shots { gap: 12px; }

  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 180px; padding: 22px; }
  .tile--lead { grid-column: span 2; min-height: 140px; }
  .tile__name { font-size: 22px; }
  .tile--lead .tile__name { font-size: 34px; }

  .faq__grid { display: block; margin-top: 40px; }
  .faq__pane { display: none; }
  .faq__a { display: none; }
  .faq__a.is-open { display: block; }
  .faq__q { padding: 14px 0; }
  .faq__q .dot { margin-top: 7px; }

  .cta__inner { display: block; min-height: 0; }
  .cta__text { max-width: 620px; }
  .welcome { margin-top: 64px; justify-self: start; }
  .cta h2 { font-size: clamp(48px, 9vw, 78px); }

  .footer__row { display: block; }
  .footer__links { margin-top: 18px; }
  .footer__note { margin-top: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand { font-size: 15px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(34px, 8.8vw, 40px); }
  .hero__lead { margin-top: 24px; font-size: 17px; max-width: 38ch; }
  .hero__actions { margin-top: 30px; gap: 16px; }
  .hero__actions .button { width: 100%; }
  .hero__meta { max-width: none; }
  .hero__stage { margin-top: 44px; height: 560px; padding-top: 84px; }
  .reader__file { display: none; }
  .reader__bar { justify-content: flex-end; }
  .theme-btn { font-size: 10.5px; padding: 5px 5px; }
  .reader__body { padding: 16px 16px 18px; }
  .reader__body h2 { font-size: 21px; }

  .search__field input { font-size: 11vw; }
  .search__lead { font-size: 17px; }
  .search__list li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; font-size: 15px; }
  .search__line { font-size: 13px; }
  .search__hint { width: 100%; margin-left: 0; }
  .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--surface-2); text-decoration: none; border-radius: 6px; font-size: 15px; }

  .doc { padding: 76px 0; }
  .doc__text h2 { font-size: clamp(30px, 8.5vw, 40px); }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .facts li { font-size: 15px; }
  .doc__shot figcaption { font-size: 13px; }

  .features { padding: 92px 0; }
  .feature { margin-bottom: 96px; }
  .feature__text h3 { font-size: 23px; }
  .feature__text p { font-size: 16px; margin-top: 16px; }
  .feature__text { padding-top: 28px; }
  .sink__math { font-size: 34px; }
  .sink__body { padding: 16px; }
  .sink__foot { gap: 12px; flex-wrap: wrap; }

  .proof { padding: 92px 0; }
  .board { gap: 6px; }
  .tile { min-height: 152px; padding: 18px; }
  .tile--lead { min-height: 118px; }
  .tile__name { font-size: 20px; }
  .tile--lead .tile__name { font-size: 28px; }
  .tile__sub { font-size: 15px; margin-top: 12px; }

  .faq { padding: 92px 0; }
  .faq__q { font-size: 17px; }
  .faq__a { font-size: 17px; padding-left: 21px; }

  .cta { padding: 84px 0; }
  .cta h2 { font-size: clamp(46px, 13vw, 68px); }
  .cta__text > p { font-size: 17px; }
  .cta .button { width: 100%; }
  .welcome { padding: 22px 20px; }
  .welcome__head img { width: 52px; height: 52px; }
  .welcome__name { font-size: 20px; }
  .welcome__actions { flex-direction: column; }
  .wbtn { text-align: center; padding: 10px 12px; }

  .footer { padding-top: 64px; }
  .footer__big { font-size: 25vw; }
  .footer__links { gap: 16px 22px; }
}

/* --------------------------------------------------------------------------
   Reduced motion: the page is the finished page
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .shutter { clip-path: none; }
  .js .shutter img { transform: none; }
  .js .doc__shot .shutter { animation: none; }
  .faq__answer.is-swap { animation: none; }
}
