/* getviska.app — stenotype paper world.
   Cool steno stock, blue-grey key-column rules, carbon-violet ribbon ink for
   chords and labels, near-black ink for prose, and Viska mint reserved for
   finished text and the primary action. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("./assets/fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eef1ee;
  --paper-deep: #e3e8e4;
  --sheet: #f8faf8;
  --rule: #9fb3bf;
  --rule-soft: rgba(111, 138, 153, 0.28);
  --ink: #1d1a2e;
  --ink-soft: #4a4660;
  --violet: #3b2a8a;
  --violet-soft: rgba(59, 42, 138, 0.1);
  --mint: #14a06e;
  --mint-ink: #0b6e4b;
  --mint-soft: rgba(20, 160, 110, 0.14);
  --on-mint: #06261a;
  --danger: #a3242f;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --spine: 92px;
  --measure: 68ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--display);
  font-optical-sizing: auto;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px) 0 0 / 2.6rem 100%,
    var(--paper);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 96;
}

::selection {
  background: var(--violet);
  color: var(--sheet);
}

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.82em;
  font-variation-settings: "wdth" 87.5;
}

code {
  overflow-wrap: anywhere;
  color: var(--violet);
}

kbd {
  display: inline-block;
  padding: 0.05em 0.45em 0.1em;
  margin: 0 0.12em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: 0 1px 1px rgba(29, 26, 46, 0.18);
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
  font-variation-settings: "wdth" 88;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 5rem);
  font-weight: 720;
  letter-spacing: -0.018em;
  font-variation-settings: "wdth" 92, "opsz" 72;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.016em;
  font-variation-settings: "wdth" 92, "opsz" 60;
}

h3 {
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  margin: 0 0 0.9em;
  max-width: var(--measure);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sheet);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 241, 238, 0.94);
  border-bottom: 1px dashed var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 760;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

.site-header nav a,
.header-inner > .text-link {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.brand + .text-link {
  margin-left: auto;
}

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

.site-header nav .nav-download {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet);
}

.site-header nav .nav-download:hover {
  background: var(--violet);
  color: var(--sheet);
  text-decoration: none;
}

.nav-toggle-label {
  display: none;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: none;
  color: var(--ink);
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* ---------- Spine: the tape index ---------- */

.spine {
  display: none;
}

@media (min-width: 1180px) {
  .home .spine {
    display: block;
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    width: var(--spine);
    z-index: 30;
    padding: 1.4rem 0.9rem;
    border-right: 1px solid var(--rule);
    background:
      radial-gradient(circle at 50% 50%, var(--paper-deep) 2.4px, transparent 2.9px) right 5px top 0 / 10px 18px repeat-y,
      var(--sheet);
  }

  .home main,
  .home .site-footer {
    margin-left: var(--spine);
  }
}

.spine-keys {
  margin: 0 0 1.2rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-variation-settings: "wdth" 75;
  letter-spacing: 0.06em;
  color: var(--violet);
  writing-mode: vertical-rl;
  line-height: 1;
}

.spine ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.spine a {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  border-top: 1px dashed var(--rule);
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-decoration: none;
}

.spine a span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--violet);
}

.spine a:hover,
.spine a:focus-visible {
  color: var(--ink);
}

/* ---------- Folds (sections) ---------- */

main {
  display: block;
}

.fold {
  position: relative;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px dashed var(--rule);
}

.fold::before {
  /* the fan-fold crease: a faint shadow either side of the perforation */
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(29, 26, 46, 0.04) 50%, transparent);
  pointer-events: none;
}

.fold-head {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.fold-head p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out),
    transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

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

.button.primary {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--on-mint);
}

.button.primary:hover {
  background: var(--mint-ink);
  border-color: var(--mint-ink);
  color: #ffffff;
  transform: translateY(-1px);
}

.button.quiet {
  border-color: var(--rule);
}

.button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.text-link {
  font-weight: 620;
}

/* ---------- Hero ---------- */

.home .hero {
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.6fr);
  grid-template-areas:
    "tape copy"
    "tape doc";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 2rem;
  padding-top: clamp(2rem, 4.5vw, 3.2rem);
  border-top: 0;
}

.home .hero::before {
  display: none;
}

.hero-copy {
  grid-area: copy;
}

.hero-copy h1 {
  position: relative;
  isolation: isolate;
}

.hero-copy h1::after {
  /* the headline is set across a fan-fold crease */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: -1;
  height: 18px;
  margin-top: -9px;
  border-top: 1px dashed var(--rule);
  background: linear-gradient(180deg, rgba(29, 26, 46, 0.05), transparent);
}

.fold-no {
  display: inline-block;
  margin-right: 0.55em;
  vertical-align: 0.45em;
  font-family: var(--mono);
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--violet);
}

.home .hero .lede {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.platform-hint {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variation-settings: "wdth" 87.5;
  color: var(--violet);
}



/* The tape itself */

.tape {
  grid-area: tape;
  position: relative;
  align-self: stretch;
  min-height: 560px;
  max-height: 760px;
  padding: 0 18px;
  overflow: hidden;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background:
    radial-gradient(circle, var(--paper) 2.6px, transparent 3.1px) left 5px top 6px / 8px 16px repeat-y,
    radial-gradient(circle, var(--paper) 2.6px, transparent 3.1px) right 5px top 6px / 8px 16px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 239px, rgba(29, 26, 46, 0.06) 239px 241px, transparent 241px 480px),
    var(--sheet);
  box-shadow: 0 30px 60px -40px rgba(29, 26, 46, 0.45);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.tape-head,
.tape-rows li {
  display: grid;
  grid-template-columns: repeat(22, minmax(0, 1fr));
  font-family: var(--mono);
  font-variation-settings: "wdth" 75;
  text-align: center;
}

.tape-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 1.1rem 0 0.6rem;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--violet);
}

.tape-head span:nth-child(9),
.tape-head span:nth-child(13) {
  border-left: 1px solid var(--rule-soft);
}

.tape-rows {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
}

.tape-rows li {
  height: 34px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--violet);
  border-bottom: 1px solid rgba(159, 179, 191, 0.22);
}

.tape-rows li span:nth-child(9),
.tape-rows li span:nth-child(13) {
  border-left: 1px solid var(--rule-soft);
}

.tape-rows li:last-child {
  color: var(--ink);
  background: var(--mint-soft);
}

.tape-rows.step {
  animation: tape-step 210ms var(--ease-out);
}

@keyframes tape-step {
  0% { transform: translateY(34px); }
  70% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* The document at the cursor */

.doc {
  grid-area: doc;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 24px 50px -30px rgba(29, 26, 46, 0.5), 0 2px 6px -2px rgba(29, 26, 46, 0.12);
  overflow: hidden;
}

.doc-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}

.doc-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rule);
}

.doc-title {
  margin-left: 0.6rem;
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--ink-soft);
}

.doc-fields {
  padding: 0.5rem 1.4rem;
  border-bottom: 1px solid var(--rule-soft);
}

.doc-fields p {
  margin: 0;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.doc-fields span {
  display: inline-block;
  width: 5.5rem;
  color: var(--ink-soft);
}

.doc-fields p + p {
  border-top: 1px solid var(--rule-soft);
}

.doc-body {
  min-height: 11.5rem;
  padding: 1.4rem 1.4rem 1rem;
}

.doc-text {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: none;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--mint);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.doc-ghost {
  margin: 0.9rem 0 0;
  max-width: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variation-settings: "wdth" 87.5;
  line-height: 1.7;
  color: #5b5096;
  text-decoration: line-through;
  text-decoration-color: rgba(59, 42, 138, 0.4);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.doc-ghost.shown {
  opacity: 1;
  transform: none;
}

.doc figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  padding: 0.8rem 1.4rem 1rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.doc-state {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-state[data-state="listening"] {
  background: rgba(163, 36, 47, 0.1);
  color: var(--danger);
}

@media (prefers-reduced-motion: no-preference) {
  .doc-ghost:not(.shown) {
    opacity: 0;
  }
}

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

  .doc-ghost {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .caret,
  .tape-rows.step {
    animation: none;
  }
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 3.5rem;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.steps li {
  counter-increment: step;
  padding: 1.4rem 1.6rem 1.2rem 0;
}

.steps li + li {
  padding-left: 1.6rem;
  border-left: 1px dashed var(--rule);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--violet);
}

.steps h3 {
  margin-bottom: 0.6rem;
}

.steps p {
  color: var(--ink-soft);
}

.gestures {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
}

.gestures h3 {
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px dashed var(--rule);
}

thead th {
  padding-top: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  border-bottom: 1px solid var(--ink);
}

tbody th {
  font-weight: 620;
}

td .fine {
  display: block;
  margin-top: 0.3rem;
}

.gestures > .fine {
  margin: 1.2rem 0 0;
}

/* ---------- Proofreading ---------- */

.versions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sheet);
}

.version {
  padding: 1.6rem;
}

.version + .version {
  border-left: 1px dashed var(--rule);
}

.version h3 {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-ink);
}

.version > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.5;
}

.version.said {
  background: var(--violet-soft);
}

.version.said h3 {
  color: var(--violet);
}

.version.said p {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-variation-settings: "wdth" 87.5;
  color: var(--violet);
}

.source {
  margin-top: 1rem;
  max-width: 60rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.split img {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 24px 50px -32px rgba(29, 26, 46, 0.55);
}

.split h3 {
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.split h3 + p + h3,
.split p + h3 {
  margin-top: 1.8rem;
}

.finds {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  max-width: none;
  margin: 1.2rem 0 0;
  padding: 1rem 1.4rem;
  border: 1px dashed var(--rule);
  border-radius: 12px;
  background: var(--sheet);
  font-size: 1.05rem;
}

.finds > span:last-child {
  color: var(--mint-ink);
  font-weight: 600;
}

.said-inline {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-variation-settings: "wdth" 87.5;
  color: var(--violet);
}

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


.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}

.ledger > div {
  padding: 1.5rem 2rem 0 0;
}

.ledger > div + div {
  padding-left: 2rem;
  border-left: 1px dashed var(--rule);
}

.ledger h3 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px dashed var(--rule-soft);
}

.ledger li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.ledger > div + div li::before {
  background: transparent;
  border: 1.5px solid var(--violet);
}

/* ---------- Comparison ---------- */

.compare {
  margin-bottom: 1.4rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.compare th,
.compare td {
  padding: 1rem 1.2rem;
}

.compare thead th {
  padding-top: 1rem;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare td:nth-child(2) {
  background: var(--mint-soft);
}

.cite {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: 0.15em;
}

.cite:hover {
  border-color: var(--violet);
}

/* ---------- Downloads ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 2px 2px 12px 12px;
  background:
    radial-gradient(circle, var(--paper) 3px, transparent 3.5px) left 8px top 7px / 16px 16px repeat-x,
    var(--sheet);
}

.platform::before {
  /* the tear line under the perforations */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  border-top: 1px dashed var(--rule);
}

.platform h3 {
  margin-bottom: 0.6rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.platform .button {
  align-self: flex-start;
  margin: 0.6rem 0 0.4rem;
}

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

.platform dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 0.8rem 0 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.85rem;
}

.platform dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  padding-top: 0.15rem;
}

.platform dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.platform dd:last-of-type code {
  color: var(--violet);
}

.platform dd code {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.download-status {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Brev band ---------- */

.brev-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.brev-band h2 {
  margin-bottom: 1rem;
}

.brev-band img {
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 24px 50px -32px rgba(29, 26, 46, 0.55);
}

/* ---------- Changelog ---------- */

.release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.release-list li {
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--rule);
}

.release-list li:has(> time) {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.2rem 1rem;
}

.release-list li > time {
  grid-row: span 2;
  padding-top: 0.2rem;
}

.release-list li > span {
  font-weight: 650;
}

.release-list li > span,
.release-list li > p {
  grid-column: 2;
}

.release-list li > p:only-child {
  grid-column: 1 / -1;
}

.release-list time,
.release-list .release-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--violet);
}

.release-list p {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px dashed var(--rule);
  max-width: 56rem;
}

.faq details:first-of-type {
  border-top: 1px solid var(--ink);
}

.faq summary {
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 650;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 1rem;
  font-family: var(--mono);
  color: var(--violet);
}

.faq details[open] summary::after {
  content: "−";
}

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

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px dashed var(--rule);
  background: var(--paper-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 2.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-inner p {
  margin: 0;
}

/* ---------- Comparison page ---------- */

.article {
  width: min(980px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0 4rem;
}

.article h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 1.4rem;
}

.article h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 3.2rem 0 1rem;
}

.article .lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.checked {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--violet);
}

/* ---------- Guide pages (setup, Brev) in the same world ---------- */

.setup-guide,
.brev-page main {
  display: block;
}

.section {
  width: min(1040px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px dashed var(--rule);
}

.setup-intro,
.brev-page .hero {
  border-top: 0;
}

.setup-intro h1,
.brev-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0.6rem 0 1.2rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0.4rem 0 1.2rem;
}


.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.setup-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 1.4rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px dashed var(--rule);
}

.setup-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.setup-permissions div,
.setup-note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
}

.setup-permissions dt {
  font-weight: 680;
}

.setup-permissions dd {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

.setup-note {
  max-width: none;
}

.setup-step ol,
.setup-step ul {
  max-width: var(--measure);
  padding-left: 1.3rem;
}

.setup-step li {
  margin-bottom: 0.6rem;
}

.setup-screenshot {
  margin: 1.6rem 0 0;
}

.setup-screenshot img {
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.setup-screenshot figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.terminal {
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  background: var(--ink);
  color: #e9e6f5;
}

.terminal pre {
  margin: 0;
}

.terminal code {
  color: inherit;
  font-size: 0.82rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  width: min(1040px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.hero-content {
  max-width: 44rem;
}

.hero-actions,
.hero-facts,
.brev-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-facts span,
.brev-features span {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sheet);
  font-size: 0.85rem;
}

.release-note {
  color: var(--ink-soft);
}

.brev-section,
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.brev-panel img {
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.download-box {
  display: grid;
  gap: 0.6rem;
  padding: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
}

.download-box dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}

.download-box dl > div {
  display: contents;
}

.download-box dd {
  margin: 0;
}

.button.wide {
  width: 100%;
}

.cloud-callout,
.changelog {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(29, 26, 46, 0.86);
}

.modal.show,
.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  max-height: 86vh;
  border-radius: 8px;
}

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  color: var(--sheet);
  font-size: 2rem;
  cursor: pointer;
}

.modal-close { top: 1rem; right: 1.4rem; }
.modal-prev { left: 1rem; top: 50%; }
.modal-next { right: 1rem; top: 50%; }

.modal-caption,
.modal-counter {
  position: absolute;
  bottom: 1rem;
  color: var(--sheet);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .home .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "doc"
      "tape";
  }

  .tape {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    height: 300px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
    mask-image: linear-gradient(180deg, transparent, #000 30%);
  }

  .tape-head {
    order: 2;
    border-top: 1px solid var(--rule);
    border-bottom: 0;
  }

  .tape-rows {
    flex-shrink: 0;
  }

  .split,
  .brev-band,
  .brev-section,
  .download-band,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: block;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 1rem;
    background: var(--paper);
    border-bottom: 1px dashed var(--rule);
  }

  .site-header nav a {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--rule-soft);
  }

  .site-header nav .nav-download {
    margin-top: 0.8rem;
    text-align: center;
    border-bottom: 0;
  }

  .nav-toggle:checked ~ nav,
  .site-header.menu-open nav {
    display: flex;
  }

  .steps,
  .versions,
  .ledger,
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li,
  .steps li + li {
    padding: 1.2rem 0;
    border-left: 0;
    border-bottom: 1px dashed var(--rule);
  }

  .version + .version {
    border-left: 0;
    border-top: 1px dashed var(--rule);
  }

  .ledger > div,
  .ledger > div + div {
    padding: 1.4rem 0 0;
    border-left: 0;
  }

  .release-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .release-list li > time,
  .release-list li > span,
  .release-list li > p {
    grid-column: 1;
    grid-row: auto;
  }

  .gestures table,
  .gestures thead,
  .gestures tbody,
  .gestures tr,
  .gestures th,
  .gestures td {
    display: block;
  }

  .gestures thead {
    display: none;
  }

  .gestures tr {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--rule);
  }

  .gestures th,
  .gestures td {
    padding: 0.2rem 0;
    border: 0;
  }

  .gestures td:nth-child(2)::before {
    content: "Mac: ";
    color: var(--ink-soft);
  }

  .gestures td:nth-child(3)::before {
    content: "Windows & Linux: ";
    color: var(--ink-soft);
  }

  .compare th,
  .compare td {
    padding: 0.8rem 0.7rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .fold,
  .section,
  .article {
    width: calc(100% - 2rem);
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .doc-fields span {
    width: 4.5rem;
  }
}

.step-no {
  display: inline-block;
  min-width: 1.6em;
  margin-right: 0.35em;
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 600;
  color: var(--violet);
  vertical-align: 0.35em;
}

/* ---------- Viska Voice ---------- */

.voice-band .voice-icon,
.voice-panel .voice-icon {
  justify-self: center;
  width: min(220px, 60%);
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.voice-panel {
  display: grid;
  justify-items: center;
}

.voice-icon-hero {
  display: block;
  margin-bottom: 1rem;
}

.voice-list,
.voice-steps {
  display: grid;
  gap: 0.8rem;
  max-width: 68ch;
  margin: 0;
  padding-left: 1.3rem;
}

.voice-list {
  list-style: square;
}

.voice-steps li::marker {
  font-family: var(--mono);
  color: var(--violet);
}

.download-box .hash {
  overflow-wrap: anywhere;
  font-size: 0.72rem;
}

.voice-limit {
  padding: 1.4rem;
  border: 1px dashed var(--rule);
  border-radius: 12px;
  background: var(--sheet);
}

.voice-limit h3 {
  margin-bottom: 0.6rem;
}

/* ---------- Private-first pitch ---------- */

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.pillars li {
  padding: 1.3rem 1.4rem 1.2rem;
  border-left: 1px dashed var(--rule);
}

.pillars li:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}

.pillars li:nth-child(n + 4) {
  border-top: 1px dashed var(--rule);
}

.pillars h3 {
  margin-bottom: 0.5rem;
}

.pillars p {
  color: var(--ink-soft);
}

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

  .pillars li,
  .pillars li:nth-child(3n + 1) {
    padding: 1.1rem 0;
    border-left: 0;
  }

  .pillars li + li {
    border-top: 1px dashed var(--rule);
  }
}
