/* Business Valuation Lab landing.
   "Litmus" identity: pale lilac paper, ink, and a strip of eight cells that
   runs from pink through violet to blue-green. Squared corners, hairlines,
   ink outlines around the app screens, figures in a monospaced face. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-700.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2");
}

:root {
  --paper: #f4f3f8;
  --card: #ffffff;
  --ink: #1c1730;
  --ink-soft: #575170;
  --line: #dcd9e8;
  --tint: #e8e4fa;
  --violet: #5b3fd1;
  --lilac: #b9a8ff;
  --note: #fff3cf;

  --s1: #d63e7a;
  --s2: #b93f9c;
  --s3: #8e40be;
  --s4: #5b3fd1;
  --s5: #4658c4;
  --s6: #2f74b0;
  --s7: #1f869d;
  --s8: #12958c;
  /* Darker ends of the strip for small text on paper. */
  --pink-text: #b3285f;
  --teal-text: #0b6f68;

  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 20px;
  --wrap: 1216px;
}

.c1 { --c: var(--s1); }
.c2 { --c: var(--s2); }
.c3 { --c: var(--s3); }
.c4 { --c: var(--s4); }
.c5 { --c: var(--s5); }
.c6 { --c: var(--s6); }
.c7 { --c: var(--s7); }
.c8 { --c: var(--s8); }

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

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

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

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

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--tint);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

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

.proof :focus-visible,
.final :focus-visible,
.site-foot :focus-visible,
.contact :focus-visible {
  outline-color: var(--lilac);
}

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- Litmus strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.strip__cell {
  background: var(--c);
}

.strip--top {
  height: 8px;
}

.strip--foot {
  height: 12px;
  gap: 4px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.strip--foot .strip__cell {
  border-radius: 3px;
}

/* ---------- Small parts ---------- */

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.label__chip {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--violet);
}

.label--light {
  color: var(--lilac);
}

.label--light .label__chip {
  background: var(--lilac);
}

.note {
  padding: 12px 16px;
  background: var(--note);
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--violet);
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
}

.btn__icon {
  flex: none;
}

.btn--play {
  background: var(--violet);
  color: #fff;
}

.btn--play:hover {
  background: #4a30b8;
}

/* Not a link: the app is not in the store yet. */
.btn--soon {
  border: 2px dashed var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: default;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.btn--light:hover {
  background: #fff;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta__note {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.cta--dark .btn--soon {
  border-color: var(--lilac);
  color: #fff;
}

.cta--dark .btn--play {
  background: var(--paper);
  color: var(--ink);
}

.cta--dark .cta__note {
  color: var(--lilac);
}

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
}

.site-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-nav {
  order: 3;
  display: flex;
  width: calc(100% + 2 * var(--gutter));
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: calc(var(--gutter) - 10px);
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  margin-bottom: -10px;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 46px;
  padding-inline: 10px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--violet);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
}

.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding-inline: 8px;
  border-radius: 7px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.lang__item.is-current {
  background: var(--ink);
  color: #fff;
}

a.lang__item:hover {
  background: var(--tint);
}

/* ---------- Hero: three screens standing like the bars of the mark ---------- */

.hero {
  padding-top: 40px;
}

.hero__copy {
  padding-bottom: 36px;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.7rem, 11.5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--violet);
}

.hero__lead {
  max-width: 34em;
  margin-top: 22px;
  margin-bottom: 26px;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.bars::-webkit-scrollbar {
  display: none;
}

.bar {
  flex: 0 0 66%;
  max-width: 300px;
  scroll-snap-align: start;
}

.bar__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bar__chip {
  flex: none;
  width: 22px;
  height: 12px;
  border-radius: 3px;
  background: var(--s1);
}

.bar--2 .bar__chip {
  background: var(--s4);
}

.bar--3 .bar__chip {
  background: var(--s8);
}

.bar__screen {
  height: 380px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--paper);
}

.bar--2 .bar__screen {
  height: 420px;
}

.bar--3 .bar__screen {
  height: 460px;
}

.bar__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hero__base {
  position: relative;
  display: grid;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 56px;
}

/* The bench the three screens stand on. */
.hero__base::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 3px;
  background: var(--ink);
}

.hero__caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Worked formula ---------- */

.proof {
  padding-block: 64px;
  background: var(--ink);
  color: #fff;
}

.proof h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.proof__head p:last-child {
  max-width: 40em;
  margin-top: 18px;
  color: #d5d0e8;
}

.sum {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.sum__term {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
}

.sum__op {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  color: var(--lilac);
}

.sum__cell {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
}

.sum__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
}

.sum__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.sum__term.is-result .sum__cell {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.sum__term.is-result .sum__label {
  color: var(--violet);
}

.proof__foot {
  max-width: 44em;
  margin-top: 26px;
  font-size: 0.96rem;
  color: #d5d0e8;
}

/* ---------- Sections on paper ---------- */

.section-head {
  max-width: 46rem;
}

.section-head h2,
.how__head h2,
.limits h2,
.final h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.section-head > p:last-child {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.scenarios {
  padding-block: 72px 64px;
}

.trio {
  display: grid;
  margin-top: 36px;
  border-top: 3px solid var(--ink);
}

.trio__item {
  --c: var(--s4);
  --w: 76%;
  padding-block: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.trio__item--pessimistic {
  --c: var(--s1);
  --w: 57%;
}

.trio__item--optimistic {
  --c: var(--s8);
  --w: 100%;
}

.trio__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.trio__chip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c);
}

.trio__value {
  margin-top: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.trio__bar {
  display: block;
  height: 14px;
  margin-top: 12px;
  border-left: 3px solid var(--ink);
}

.trio__bar span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--c);
}

.trio__text {
  margin-top: 14px;
  color: var(--ink-soft);
}

.scenarios__foot {
  max-width: 50em;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Three steps ---------- */

.how {
  padding-block: 64px;
  background: var(--card);
  border-block: 1px solid var(--line);
}

.how__grid {
  display: grid;
  gap: 32px;
}

.how__note {
  margin-top: 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.steps__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.steps__item:first-child {
  border-top: 3px solid var(--ink);
}

.steps__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--s1);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.4rem;
}

.steps__item:nth-child(2) .steps__num {
  background: var(--s4);
}

.steps__item:nth-child(3) .steps__num {
  background: var(--s8);
}

.steps h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- Eight screens ---------- */

.features {
  padding-block: 72px 64px;
}

.features__body {
  margin-top: 36px;
}

.rail ol {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.rail__cell {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.rail__cell:hover {
  filter: brightness(0.9);
}

.cells {
  display: grid;
  gap: 48px;
  margin-top: 36px;
}

.cell__screen {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
}

.cell__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cell__chip {
  flex: none;
  width: 22px;
  height: 14px;
  border-radius: 3px;
  background: var(--c);
}

.cell__count {
  flex: none;
}

.cell__section {
  margin-left: auto;
  text-align: right;
  color: var(--ink-soft);
}

.cell h3 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.cell > p:last-child {
  margin-top: 10px;
  color: var(--ink-soft);
}

.extras {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 3px solid var(--ink);
}

.extras__title {
  font-size: 1.5rem;
}

.extras__list {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.extras dt {
  font-weight: 700;
}

.extras dd {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Limits: the yellow note ---------- */

.limits {
  padding-block: 64px;
  background: var(--note);
}

.limits .label {
  color: var(--ink);
}

.limits .label__chip {
  background: var(--ink);
}

.limits__grid {
  display: grid;
  gap: 36px;
}

.limits__lead {
  margin-top: 20px;
  font-size: 1.12rem;
  font-weight: 500;
}

.limits__main p + p {
  margin-top: 16px;
}

.limits__side {
  padding: 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.limits__side h3 {
  font-size: 1.4rem;
}

.limits__side ul {
  margin-block: 14px 16px;
}

.limits__side li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line);
}

.limits__side li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: 7px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pink-text);
}

.limits__side p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Privacy facts ---------- */

.facts {
  padding-block: 72px;
}

.facts__list {
  display: grid;
  gap: 24px;
  margin-block: 36px 24px;
}

.facts__list li {
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.facts__list h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.facts__list p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- Final call + footer (ink) ---------- */

.final {
  padding-block: 64px;
  background: var(--ink);
  color: #fff;
}

.final__grid {
  display: grid;
  gap: 28px;
}

.final h2 {
  margin-top: 0;
  max-width: 16em;
}

.final h2 + p {
  margin-top: 16px;
  max-width: 34em;
  color: #d5d0e8;
  font-size: 1.1rem;
}

.site-foot {
  padding-bottom: 40px;
  background: var(--ink);
  color: #d5d0e8;
  font-size: 0.96rem;
}

.site-foot__grid {
  display: grid;
  gap: 32px;
  padding-top: 40px;
}

.brand--light {
  color: #fff;
}

.site-foot__brand p {
  margin-block: 10px 18px;
}

.site-foot .lang {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.site-foot .lang__item {
  color: #fff;
}

.site-foot .lang__item.is-current {
  background: var(--paper);
  color: var(--ink);
}

.site-foot a.lang__item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-foot h2 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
}

.site-foot__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.site-foot__small {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding-block: 44px 36px;
}

.page-head .wrap::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 32px;
  background: var(--ink);
}

.page-head h1 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  letter-spacing: -0.035em;
}

.page-head__meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.page-head__lead {
  max-width: 40em;
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.doc {
  display: grid;
  gap: 32px;
  padding-bottom: 80px;
}

.doc__side nav {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.doc__side h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.doc__side ol {
  margin-top: 8px;
  counter-reset: toc;
}

.doc__side li {
  counter-increment: toc;
}

.doc__side a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  padding-block: 7px;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
}

.doc__side a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--violet);
}

.doc__side a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose {
  min-width: 0;
  max-width: 46rem;
}

.prose section + section {
  margin-top: 44px;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.prose__num {
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--violet);
}

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

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

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--violet);
}

.prose a {
  color: var(--violet);
  font-weight: 500;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.summary {
  padding: 22px 24px 24px;
  background: var(--tint);
  border-radius: 14px;
}

.summary h2 {
  font-size: 1.35rem;
}

/* A table on wide screens, one block per row on narrow ones. */
.data-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.4;
}

.data-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.data-table tr {
  display: block;
  padding: 14px 16px;
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.data-table th,
.data-table td {
  display: block;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

.data-table tbody th {
  font-weight: 700;
  margin-bottom: 8px;
}

.data-table td {
  margin-top: 4px;
  color: var(--ink-soft);
}

.data-table td::before {
  content: attr(data-label) " ";
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-top: 8px;
}

/* Help */

.help {
  padding-bottom: 80px;
}

.help h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.ladder {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.ladder__item {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 8px solid var(--c);
  border-radius: 10px;
}

.ladder__num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
}

.ladder h3 {
  margin-top: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.ladder p {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.help__faq {
  margin-top: 64px;
}

.faq {
  max-width: 50rem;
  margin-top: 22px;
  border-top: 3px solid var(--ink);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.1rem;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--ink);
  color: #fff;
}

.faq details p {
  max-width: 44em;
  padding-bottom: 20px;
  color: var(--ink-soft);
}

.faq details p strong {
  color: var(--ink);
}

.contact {
  display: grid;
  gap: 22px;
  margin-top: 64px;
  padding: 28px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
}

.contact p {
  max-width: 38em;
  margin-top: 10px;
  color: #d5d0e8;
}

.contact__mail {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-inline: 16px;
}

.contact__action {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__address {
  font-size: clamp(0.84rem, 3.7vw, 1.02rem);
}

/* Changelog */

.log {
  padding-bottom: 80px;
}

.log > * {
  max-width: 50rem;
}

.log__entry {
  margin-bottom: 36px;
  padding: 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.log__entry header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.log__version {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.log__tag {
  padding: 4px 10px;
  background: var(--tint);
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d279e;
}

.log__entry ul {
  margin-top: 16px;
}

.log__entry li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
}

.log__entry li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--s8);
}

/* 404 */

.lost {
  padding-block: 72px 96px;
}

.lost__code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--violet);
}

.lost h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.lost__inner > p {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-soft);
}

.lost__inner > .lost__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

/* ---------- From 640 px ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .bars {
    overflow: visible;
    gap: 20px;
  }

  .bar {
    flex: 1 1 0;
    max-width: none;
  }

  .bar--1 .bar__screen {
    height: 300px;
  }

  .bar--2 .bar__screen {
    height: 380px;
  }

  .hero__base {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px;
  }

  .sum {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .sum__term.is-result {
    grid-column: 1 / -1;
  }

  .trio {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .trio__item {
    padding-inline: 24px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .trio__item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .cells {
    grid-template-columns: 1fr 1fr;
    gap: 56px 32px;
  }

  .extras__list,
  .facts__list,
  .ladder {
    grid-template-columns: 1fr 1fr;
  }

  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    padding: 36px;
  }
}

/* ---------- From 1000 px ---------- */

@media (min-width: 1000px) {
  body {
    font-size: 1.09rem;
  }

  .site-head__row {
    flex-wrap: nowrap;
    padding-block: 14px;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-top: 0;
    gap: 6px;
  }

  .site-nav a {
    padding-inline: 12px;
  }

  /* One grid: the copy sits above the two shorter screens, the tallest
     screen takes the full height on the right. */
  .hero {
    padding-top: 56px;
  }

  .hero__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    column-gap: 28px;
    align-items: end;
  }

  .hero__copy {
    grid-column: 1 / span 8;
    grid-row: 1;
    align-self: start;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 6.2vw, 5.6rem);
  }

  .hero__lead {
    font-size: 1.22rem;
  }

  .bars {
    display: contents;
  }

  .bar--1 {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .bar--2 {
    grid-column: 5 / span 4;
    grid-row: 2;
  }

  .bar--3 {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
  }

  .bar--1 .bar__screen {
    height: 290px;
  }

  .bar--2 .bar__screen {
    height: 450px;
  }

  .bar--3 .bar__screen {
    height: auto;
    aspect-ratio: 720 / 1385;
    max-height: 760px;
  }

  .hero__base {
    grid-template-columns: 7fr 5fr;
    padding-bottom: 72px;
  }

  .proof {
    padding-block: 88px;
  }

  .sum {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: 48px;
  }

  .sum__term {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .sum__term.is-result {
    flex-grow: 1.3;
  }

  .sum__op {
    flex: none;
    align-self: center;
    width: 30px;
  }

  .sum__cell {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    padding: 16px;
  }

  .scenarios,
  .features,
  .facts {
    padding-block: 104px 96px;
  }

  .how,
  .limits,
  .final {
    padding-block: 88px;
  }

  .how__grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }

  /* The strip becomes a vertical rail that stays in view next to the screens. */
  .features__body {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 56px;
  }

  .rail {
    position: sticky;
    top: 24px;
  }

  .rail ol {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rail__cell {
    min-height: 62px;
    border-radius: 10px;
    font-size: 1.2rem;
    transition: transform 0.15s ease;
  }

  .rail__cell:hover {
    transform: translateX(8px);
    filter: none;
  }

  .cells {
    gap: 72px 48px;
    margin-top: 0;
  }

  /* Second column hangs lower, so the eight cells read as a staggered sequence. */
  .cell:nth-child(even) {
    margin-top: 96px;
  }

  .cell:nth-child(odd):not(:first-child) {
    margin-top: -96px;
  }

  .extras {
    margin-top: 88px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }

  .extras__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 0;
  }

  .limits__grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: start;
  }

  .limits__side {
    padding: 28px;
  }

  .facts__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-block: 48px 28px;
  }

  .final__grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 56px;
  }

  .site-foot__grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
    gap: 40px;
    padding-top: 48px;
  }

  .page-head {
    padding-block: 72px 48px;
  }

  .doc {
    grid-template-columns: 290px 1fr;
    gap: 64px;
    align-items: start;
    padding-bottom: 112px;
  }

  .doc__side {
    position: sticky;
    top: 24px;
  }

  .data-table thead {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
  }

  .data-table tr {
    display: table-row;
    background: none;
    border: 0;
  }

  .data-table th,
  .data-table td {
    display: table-cell;
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }

  .data-table thead th {
    border-bottom: 3px solid var(--ink);
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .data-table tbody th {
    width: 34%;
    font-weight: 500;
  }

  .data-table td::before {
    content: none;
  }

  .ladder {
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 20px;
  }

  /* Four steps that climb, like the bars of the mark. */
  .ladder__item:nth-child(1) {
    margin-top: 72px;
  }

  .ladder__item:nth-child(2) {
    margin-top: 48px;
  }

  .ladder__item:nth-child(3) {
    margin-top: 24px;
  }

  .help {
    padding-bottom: 112px;
  }

  .help__faq,
  .contact {
    margin-top: 88px;
  }

  .contact {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 44px 48px;
  }

  .log {
    padding-bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail__cell {
    transition: none;
  }
}

@media print {
  .site-nav,
  .lang,
  .cta,
  .strip {
    display: none;
  }
}
