/* WhooshType landing. Tokens first (color, type, space, motion), then sections.
   Colors in OKLCH: perceptually even ramps; the accent is the app's #e8492a. */

:root {
  /* color: primitives */
  --paper: oklch(97.4% 0.009 78);
  --paper-2: oklch(94.8% 0.013 74);
  --paper-3: oklch(91.5% 0.016 72);
  --ink: oklch(21% 0.012 55);
  --ink-2: oklch(42% 0.014 55);
  --ink-3: oklch(58% 0.012 60);
  --rule: oklch(86.5% 0.016 70);
  --accent: oklch(62.5% 0.205 35); /* #e8492a */
  --accent-deep: oklch(54% 0.19 33);
  --accent-soft: oklch(62.5% 0.205 35 / 0.12);
  --night: oklch(17.5% 0.008 60);
  --night-2: oklch(23% 0.009 60);
  --night-3: oklch(31% 0.01 60);
  --on-night: oklch(96% 0.006 80);
  --on-night-2: oklch(74% 0.01 70);

  /* type */
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-hero: clamp(2.9rem, 1.6rem + 5.6vw, 6.2rem);
  --t-h2: clamp(2.1rem, 1.35rem + 3vw, 3.9rem);
  --t-h3: 1.2rem;
  --t-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --t-body: 1rem;
  --t-small: 0.875rem;

  /* space: 4-pt rhythm */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 144px;
  --section: clamp(84px, 6vw + 48px, 160px);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* shape */
  --r1: 10px;
  --r2: 14px;
  --r3: 20px;
  --r4: 28px;

  /* motion: two durations and one curve carry almost everything */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --slow: 420ms;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body) / 1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}
/* no one-word last lines in running text */
p,
li,
summary {
  text-wrap: pretty;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

kbd {
  font-family: var(--sans);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 50;
}
.skip:focus {
  left: 8px;
}

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

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: var(--s5);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: breathe 2.4s var(--ease) infinite;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  transition:
    transform var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active {
  transform: scale(0.97);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 1px 0 oklch(100% 0 0 / 0.25) inset,
    0 10px 24px -10px oklch(55% 0.19 33 / 0.7);
}
.btn--accent:hover {
  background: var(--accent-deep);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: oklch(30% 0.012 55);
}
.btn--line {
  box-shadow: inset 0 0 0 1.5px var(--rule);
  color: var(--ink);
}
.btn--line:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.925rem;
}
.btn--lg {
  height: 62px;
  padding: 0 32px;
  font-size: 1.1rem;
}

.section-head {
  max-width: 920px;
  margin-bottom: var(--s8);
}
.section-head h2,
.adhd h2,
.price h2,
.privacy h2,
.final h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.section-head__lead {
  margin-top: var(--s5);
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 600px;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(97.4% 0.009 78 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.top.is-scrolled {
  border-bottom-color: var(--rule);
}
.top__row {
  display: flex;
  align-items: center;
  gap: var(--s6);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 28px;
  height: 28px;
}
/* the wordmark: «Whoosh» as a gust — italic, orange; «Type» in the plain heavy face with a
   line of wind under it that draws itself on load and again on hover */
.word {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.word__whoosh {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  padding-right: 1px;
}
.word__type {
  position: relative;
  font-weight: 800;
}
.word__gust {
  position: absolute;
  left: -0.12em;
  bottom: -0.114em;
  width: calc(100% + 0.53em);
  height: 0.46em;
  overflow: visible;
}
.word__gust path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: gust 1100ms var(--ease) 250ms backwards;
}
.brand:hover .word__gust path {
  animation: gust 900ms var(--ease);
}
@keyframes gust {
  from {
    stroke-dashoffset: 1;
  }
}
.top__nav {
  display: flex;
  gap: var(--s6);
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.top__nav a {
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.top__nav a:hover {
  color: var(--ink);
}

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

.hero {
  padding: clamp(40px, 6vw, 88px) 0 var(--section);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero__title em {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.03em;
}
/* «ADHD-approved»: set like the section eyebrows («Made for ADHD brains»), level with the top of «Say it.» */
.hero__tag {
  display: inline-block;
  margin: 0.5em 0 0 clamp(10px, 1.2vw, 18px);
  vertical-align: top;
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.hero__lead {
  margin-top: var(--s6);
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 520px;
}
.hero__lead kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.6em;
  padding: 0 0.3em;
  border-radius: 7px;
  background: #fff;
  box-shadow:
    inset 0 -2px 0 var(--paper-3),
    0 0 0 1px var(--rule);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9em;
  vertical-align: 0.05em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s3);
  margin-top: var(--s7);
}
/* the price button with what the next months cost under it */
.cta-price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.cta-price__then {
  font-size: 0.8rem;
  color: var(--ink-3);
}
.hero__fine {
  margin-top: var(--s5);
  font-size: var(--t-small);
  color: var(--ink-3);
}

/* the stage: a mock app window with WhooshType's own floating UI under it */
.stage {
  /* the room under the window: the pill right under it, the key under the pill (the live words
     sit on the window's lower part) */
  --under: 150px;
  position: relative;
  min-width: 0; /* a long line is cut at the window's edge, never widens the page */
  margin: 0;
  padding-bottom: var(--under);
}
.stage__tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: var(--s4);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.stage__tab {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font: 500 0.875rem/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
.stage__tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px oklch(20% 0.01 55 / 0.12);
}
.app {
  position: relative;
  border-radius: var(--r3);
  background: #fff;
  box-shadow:
    0 0 0 1px oklch(20% 0.01 55 / 0.07),
    0 30px 60px -30px oklch(20% 0.02 55 / 0.35),
    0 12px 24px -16px oklch(20% 0.02 55 / 0.2);
  overflow: hidden;
  /* fixed, not min-: when the text lands the field grows into the body, and the pill and key
     under the window stay where they are */
  height: 330px;
  display: flex;
  flex-direction: column;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 44px;
  padding: 0 var(--s4);
  border-bottom: 1px solid oklch(92% 0.008 70);
}
.app__lights {
  display: inline-flex;
  gap: 7px;
}
.app__lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: oklch(88% 0.01 70);
}
/* a scene with several examples (Vibe coding): 1 2 3 right after the window's title, which
   stays centred (the dots hang off its right edge) */
.app__name {
  position: relative;
  margin-inline: auto;
  transform: translateX(-24px);
}
.app__examples {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  display: flex;
  gap: 4px;
  transform: translateY(-50%);
}
.app__examples[hidden] {
  display: none;
}
/* the examples as plain digits; the one on screen is underlined in orange */
.ex-dot {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  padding: 2px 3px 3px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.ex-dot:hover {
  color: var(--ink);
}
.ex-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.ex-dot[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.app__title {
  font-size: 0.9rem;
  font-weight: 600;
}
.app__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  font-size: 0.95rem;
  background: oklch(98.5% 0.004 80);
}
.app[data-kind="mail"] .app__body {
  background: #fff;
}
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  line-height: 1.4;
}
.bubble--in {
  align-self: flex-start;
  background: oklch(95% 0.006 80);
  border-bottom-left-radius: 5px;
}
.bubble--out {
  align-self: flex-end;
  background: oklch(93% 0.045 45);
  border-bottom-right-radius: 5px;
}
/* a chat keeps its newest messages at the bottom; older ones go off the top when space runs out */
.app[data-kind="chat"] .app__body {
  justify-content: flex-end;
  gap: 10px;
}
/* the earlier a message, the softer it gets — the eye stays on the last one and the field below it */
.app[data-kind="chat"] .bubble:nth-last-child(2) {
  filter: blur(1px);
  opacity: 0.75;
}
.app[data-kind="chat"] .bubble:nth-last-child(n + 3) {
  filter: blur(2.4px);
  opacity: 0.5;
}
/* mail: the letter being answered, the reply field under it */
.mail-in {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.mail-in__from {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.mail-in__from b {
  color: var(--ink);
  font-weight: 600;
}
/* vibe coding: Claude's last reply at the bottom of the conversation, the prompt field under it */
.app[data-kind="vibe"] .app__body {
  justify-content: flex-end;
  background: oklch(98.6% 0.006 85);
}
.app[data-kind="vibe"] .agent-msg {
  margin-top: 4px;
}
.agent-msg {
  max-width: 92%;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}
.agent-msg span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
/* notes: the field is the note itself — the dictated lines go straight under the last item */
.app[data-kind="notes"] .app__body {
  flex: none;
  gap: 4px;
  padding-bottom: 0;
  background: #fff;
}
.note-date {
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.note-title {
  margin-bottom: 4px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.note-item {
  font-size: 0.975rem;
  line-height: 1.45;
}
/* the dictated lines keep the list's step: a line plus the 4px between items (the extra
   2px on top is that line's half-leading) */
.app[data-kind="notes"] .field {
  flex: 1;
  margin: 0;
  padding: 2px var(--s5) var(--s4);
  line-height: calc(1.45em + 4px);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.app[data-kind="notes"] .field__text.is-new {
  animation: settle 700ms var(--ease);
}

.field {
  position: relative;
  flex: none;
  margin: 0 var(--s4) var(--s4);
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--r2);
  background: oklch(97% 0.006 80);
  box-shadow: inset 0 0 0 1px oklch(91% 0.01 72);
  font-size: 0.975rem;
  line-height: 1.45;
}
.app[data-kind="mail"] .field {
  min-height: 120px;
  background: #fff;
}
/* like a real text field: the caret at the start of the first line, the placeholder behind it */
.field__placeholder {
  position: absolute;
  top: 14px;
  left: 19px;
  right: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-3);
  pointer-events: none;
}
.field__text {
  white-space: pre-line;
}
.field__text:not(:empty) + .field__caret,
.field__text:not(:empty) ~ .field__caret {
  display: inline-block;
}
.field__text.is-new {
  animation: settle 700ms var(--ease);
}
@keyframes settle {
  from {
    background: var(--accent-soft);
    border-radius: 4px;
  }
  to {
    background: transparent;
  }
}
.field__caret {
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* WhooshType's floating UI, drawn as in the app */
.overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--under);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
/* the live words float over the window's lower part, 12 px above its edge, and grow upwards */
.live {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--under) + 12px);
  z-index: 1;
  width: min(430px, 92%);
  margin-inline: auto;
  max-height: 112px;
  padding: 11px 15px;
  border-radius: 18px;
  /* opaque: the key under it must not show through */
  background: oklch(24% 0.006 270);
  box-shadow:
    inset 0 0 0 0.5px oklch(100% 0 0 / 0.14),
    0 14px 34px -12px oklch(10% 0.01 270 / 0.5);
  color: #fff;
  font:
    450 0.95rem/1.45 -apple-system,
    BlinkMacSystemFont,
    var(--sans);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.live.is-on {
  opacity: 1;
  transform: none;
}
.live:not(.is-long) {
  justify-content: center;
}
/* long text: the oldest words fade into the bubble's own colour at the top (the bubble itself
   stays solid — fading it showed the window's shadow through) */
.live::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 26px;
  background: linear-gradient(oklch(24% 0.006 270), oklch(24% 0.006 270 / 0));
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.live.is-long::before {
  opacity: 1;
}
/* the pill right under the window */
.pill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--under) - 14px - 38px);
  width: max-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  /* the app's capsule (src/renderer/src/pill): #141416 at 92 %, a hairline, a soft shadow */
  background: rgb(20 20 22 / 0.92);
  box-shadow:
    0 0 0 0.5px rgb(255 255 255 / 0.14),
    0 10px 30px rgb(0 0 0 / 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition:
    opacity 220ms var(--ease),
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pill.is-on {
  opacity: 1;
  transform: none;
}
.pill__x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.85);
}
.pill__x svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}
/* one 120 px box for the recording and the wait: the bars 96 px, 8 px, the small mark 16 px */
.pill__box {
  position: relative;
  flex: none;
  width: 120px;
  height: 22px;
}
.pill__bars {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  width: 96px;
  height: 22px;
}
.pill__bars i {
  width: 2.5px;
  height: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  opacity: 0.55;
  transition:
    height 75ms linear,
    opacity 75ms linear;
}
.pill.is-busy .pill__bars i {
  transition: none;
}
.pill__wait {
  position: absolute;
  inset: 0;
}
.pill__gust {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  opacity: 0;
}
/* «editing» a little grey with a white light running over it; the dots come and go */
.pill__word {
  position: absolute;
  left: 38px;
  top: 0;
  display: flex;
  align-items: center;
  height: 22px;
  white-space: nowrap;
  font:
    italic 500 13.5px/1.45 var(--serif);
  color: rgb(255 255 255 / 0.92);
  opacity: 0;
  -webkit-font-smoothing: auto;
}
.pill__ink {
  display: inline-flex;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    100deg,
    rgb(255 255 255 / 0.52) 0%,
    rgb(255 255 255 / 0.52) 38%,
    #fff 50%,
    rgb(255 255 255 / 0.52) 62%,
    rgb(255 255 255 / 0.52) 100%
  );
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
}
.pill__trail {
  display: inline-block;
  width: 12px;
}
.pill__mark {
  position: absolute;
  right: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  overflow: visible;
}

/* the key under the pill (16 px gap); nothing ever covers it, only «hold» comes and goes */
.keycap--demo {
  --key-h: 54px;
  position: absolute;
  left: 50%;
  bottom: calc(var(--under) - 14px - 38px - 16px - var(--key-h));
  z-index: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: var(--key-h);
  margin-left: -29px;
  border-radius: 12px;
  background: linear-gradient(#fff, oklch(97% 0.004 80));
  box-shadow:
    inset 0 -3px 0 oklch(88% 0.01 70),
    0 0 0 1px oklch(85% 0.012 70),
    0 8px 16px -8px oklch(20% 0.02 55 / 0.3);
  font:
    500 1.35rem/1 -apple-system,
    var(--sans);
  color: var(--ink-2);
  transition:
    transform 120ms var(--ease),
    box-shadow 120ms var(--ease),
    color 120ms var(--ease);
}
.keycap--demo::after {
  content: "hold";
  position: absolute;
  top: calc(100% + 6px);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.keycap--demo.is-down {
  transform: translateY(2px);
  color: var(--accent);
  box-shadow:
    inset 0 -1px 0 oklch(88% 0.01 70),
    0 0 0 1.5px var(--accent);
}
.keycap--demo.is-down::after {
  opacity: 1;
}


/* right under the window, on the pill's line: it shows once the pill has gone */
.stage__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--under) - 14px - 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}
.stage__note.is-on {
  opacity: 1;
}
.stage__note b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- ADHD: to-dos, notes and tabs drifting around one calm column ---------- */

.adhd {
  position: relative;
  overflow: hidden;
  padding: calc(var(--section) + 24px) 0;
  background: var(--paper-2);
}
.adhd__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
}
.adhd h2 em {
  color: var(--accent);
}
.adhd__lead {
  margin: var(--s5) auto 0;
  max-width: 540px;
  font-size: var(--t-lead);
  color: var(--ink-2);
}
.adhd__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin: var(--s7) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.925rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.adhd__points b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 700;
}
.adhd__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* every item bobs on its own clock: --t period, --d phase, --dx/--dy drift, --r/--dr tilt */
.fl {
  position: absolute;
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1));
  animation: drift var(--t, 7s) ease-in-out var(--d, 0s) infinite alternate;
  will-change: transform;
}
@keyframes drift {
  to {
    transform: translate3d(var(--dx, 4px), var(--dy, -14px), 0) rotate(calc(var(--r, 0deg) + var(--dr, 2.5deg))) scale(var(--s, 1));
  }
}
.fl--far {
  opacity: 0.7;
  filter: blur(0.6px);
}

.note {
  width: 128px;
  min-height: 106px;
  padding: 22px 14px 14px;
  border-radius: 3px 3px 16px 3px;
  background: var(--c);
  font: 600 1.45rem/1 "Caveat", var(--serif);
  color: oklch(32% 0.04 60);
  box-shadow:
    0 1px 1px oklch(30% 0.03 60 / 0.08),
    0 18px 30px -16px oklch(30% 0.06 60 / 0.45);
}
.note--yellow {
  --c: oklch(93% 0.1 96);
}
.note--peach {
  --c: oklch(90% 0.07 45);
}
.note--mint {
  --c: oklch(92.5% 0.06 165);
}
.tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 18px;
  transform: translateX(-50%) rotate(-4deg);
  background: oklch(98% 0.01 85 / 0.6);
  box-shadow: 0 0 0 1px oklch(80% 0.01 70 / 0.3);
}

.todo {
  width: 172px;
  padding: 14px 16px 12px;
  border-radius: var(--r2);
  background: #fff;
  box-shadow:
    0 0 0 1px oklch(20% 0.01 55 / 0.06),
    0 22px 36px -20px oklch(30% 0.04 60 / 0.4);
}
.todo__title {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}
.todo__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.todo__item i {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.todo__item.is-done {
  color: var(--ink-3);
  text-decoration: line-through;
}
.todo__item.is-done i {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M3.5 6.8 5.6 8.8 9.6 4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px oklch(20% 0.01 55 / 0.06),
    0 14px 26px -16px oklch(30% 0.04 60 / 0.4);
}
.chip i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: oklch(72% 0.14 250);
  box-shadow: 0 0 0 2px #fff;
}
.chip i + i {
  margin-left: -8px;
  background: oklch(78% 0.15 140);
}
.chip i + i + i {
  margin-right: 4px;
  background: var(--accent);
}

.ping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--night);
  color: var(--on-night);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 16px 28px -16px oklch(20% 0.02 55 / 0.6);
}
.ping b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(62.5% 0.205 35 / 0.3);
}

.cal {
  width: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow:
    0 0 0 1px oklch(20% 0.01 55 / 0.06),
    0 16px 28px -16px oklch(30% 0.04 60 / 0.4);
}
.cal span {
  display: block;
  padding: 3px 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cal b {
  display: block;
  padding: 4px 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.paper {
  width: 92px;
  height: 118px;
  padding: 20px 14px;
  border-radius: 3px;
  background: #fffdf9;
  box-shadow:
    0 0 0 1px oklch(88% 0.014 72),
    0 16px 26px -16px oklch(30% 0.04 60 / 0.35);
}
.paper i {
  display: block;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--rule);
}
.paper i:nth-child(3n) {
  width: 62%;
}

.ico {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--accent {
  stroke: var(--accent);
}

/* wide screens: two columns of clutter beside the text column, pulled in on narrower
   windows (min(): never past the window's edge) */
@media (min-width: 1021px) {
  .fl--note1 { right: calc(50% + min(460px, 50vw - 150px)); top: 9%; --r: -7deg; --t: 7.5s; --d: -2s; }
  .fl--paper { right: calc(50% + 330px); top: 20%; --r: 9deg; --t: 9s; --d: -5s; --dy: -10px; }
  .fl--bulb { right: calc(50% + min(500px, 50vw - 74px)); top: 42%; --r: -12deg; --t: 6.5s; --d: -1s; --dr: -4deg; }
  .fl--todo { right: calc(50% + min(340px, 50vw - 196px)); top: 50%; --r: 4deg; --t: 8.5s; --d: -3s; }
  .fl--clock { right: calc(50% + min(520px, 50vw - 74px)); top: 76%; --r: 10deg; --t: 7s; --d: -4s; }
  .fl--pencil { right: calc(50% + 330px); top: 84%; --r: -18deg; --t: 6s; --d: -2.5s; --dx: -6px; }

  .fl--chip { left: calc(50% + min(420px, 50vw - 160px)); top: 8%; --r: 5deg; --t: 8s; --d: -1.5s; }
  .fl--note2 { left: calc(50% + 330px); top: 22%; --r: 6deg; --t: 7s; --d: -4.5s; --dr: -3deg; }
  .fl--plane { left: calc(50% + min(540px, 50vw - 74px)); top: 30%; --r: -8deg; --t: 5.5s; --d: -2s; --dx: 10px; --dy: -18px; }
  .fl--ping { left: calc(50% + min(470px, 50vw - 176px)); top: 50%; --r: -4deg; --t: 9s; --d: -6s; }
  .fl--cal { left: calc(50% + 350px); top: 64%; --r: -8deg; --t: 6.5s; --d: -3.5s; }
  .fl--note3 { left: calc(50% + min(480px, 50vw - 150px)); top: 76%; --r: 3deg; --t: 8s; --d: -1s; }
  .fl--paper,
  .fl--clock,
  .fl--bulb {
    opacity: 0.75;
    filter: blur(0.5px);
  }
}

/* narrower: the clutter moves to bands above and below the text, fewer items */
@media (max-width: 1020px) {
  .adhd {
    padding: 230px 0 260px;
  }
  .fl {
    --s: 0.86;
  }
  .fl--paper,
  .fl--bulb,
  .fl--clock,
  .fl--pencil {
    display: none;
  }
  .fl--note1 { left: 5%; top: 44px; --r: -7deg; --t: 7.5s; --d: -2s; }
  .fl--chip { right: 5%; top: 40px; --r: 5deg; --t: 8s; --d: -1.5s; }
  .fl--plane { left: 9%; top: 158px; --r: -8deg; --t: 5.5s; --d: -2s; --dx: 8px; }
  .fl--ping { right: 7%; top: 132px; --r: -4deg; --t: 9s; --d: -6s; }
  .fl--todo { left: 5%; bottom: 36px; --r: 4deg; --t: 8.5s; --d: -3s; }
  .fl--note2 { right: 6%; bottom: 110px; --r: 6deg; --t: 7s; --d: -4.5s; }
  .fl--cal { right: 38%; bottom: 40px; --r: -8deg; --t: 6.5s; --d: -3.5s; }
  .fl--note3 { right: 4%; bottom: -30px; --r: 3deg; --t: 8s; --d: -1s; }
  .adhd__points {
    grid-template-columns: 1fr;
    gap: var(--s4);
    max-width: 360px;
    margin-inline: auto;
  }
}

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

.facts {
  border-block: 1px solid var(--rule);
}
.facts__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts__row p {
  padding: var(--s6) var(--s5) var(--s6) 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.facts__row p + p {
  padding-left: var(--s5);
  border-left: 1px solid var(--rule);
}
.facts__row em {
  color: var(--accent);
  font-size: 1.06em;
}
.facts__row b {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- proofreading sheet ---------- */

.proof {
  padding: var(--section) 0;
}
.sheet {
  position: relative;
  background: #fffdf9;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px oklch(88% 0.014 72),
    0 1px 0 oklch(88% 0.014 72),
    0 24px 48px -32px oklch(30% 0.03 60 / 0.35);
  padding: clamp(20px, 3vw, 44px) clamp(18px, 4vw, 56px);
}
.sheet__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: var(--s6);
  padding: 14px 0;
  align-items: baseline;
}
.sheet__row + .sheet__row {
  border-top: 1px dashed oklch(88% 0.014 72);
}
.sheet__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-deep);
  text-align: right;
  position: relative;
}
.sheet__note::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--s6) / 2 - 1px);
  top: 0.3em;
  height: 1em;
  width: 1.5px;
  background: var(--accent);
  opacity: 0.6;
}
.sheet__text {
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink);
}
.sheet__text--list p {
  line-height: 1.7;
}
.sheet del {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  color: var(--ink-3);
}
.sheet s {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  color: var(--ink-3);
  margin-right: 2px;
}
.sheet ins {
  text-decoration: none;
  color: var(--accent-deep);
  font-weight: 600;
  position: relative;
}
.sheet s + ins {
  font-family: var(--sans);
}
.cap {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-transform: uppercase;
}
.proof__aside {
  margin-top: var(--s7);
  max-width: 720px;
  font-size: var(--t-lead);
  color: var(--ink-2);
}
.proof__aside em {
  color: var(--ink);
}

/* ---------- modes ---------- */

.modes {
  padding: var(--section) 0;
  background: var(--night);
  color: var(--on-night);
}
.section-head--light .eyebrow {
  color: var(--on-night-2);
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.mode {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s5);
  border-radius: var(--r3);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-3);
  transition:
    background-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.mode:hover {
  background: oklch(26% 0.01 60);
}
.mode:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.mode[aria-selected="true"] {
  background: oklch(27% 0.02 45);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.mode__keys {
  display: flex;
  gap: 6px;
  margin-bottom: var(--s4);
}
.k {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 50px;
  padding: 0 12px;
  border-radius: 11px;
  background: linear-gradient(oklch(34% 0.008 60), oklch(28% 0.008 60));
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.09),
    inset 0 -3px 0 oklch(15% 0.008 60),
    0 0 0 1px oklch(14% 0.008 60);
  font:
    500 1.25rem/1 -apple-system,
    var(--sans);
  color: var(--on-night);
}
.k--wide {
  min-width: 96px;
}
.mode[aria-selected="true"] .k {
  color: #fff;
  background: linear-gradient(oklch(66% 0.2 38), oklch(58% 0.2 34));
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.3),
    inset 0 -3px 0 oklch(45% 0.17 32),
    0 0 0 1px oklch(45% 0.17 32);
}
.mode__name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mode__how {
  font-size: 0.925rem;
  color: var(--on-night-2);
  line-height: 1.4;
}

.example {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  align-content: center;
  gap: var(--s6);
  row-gap: var(--s4);
  margin-top: var(--s5);
  padding: var(--s6);
  border-radius: var(--r3);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-3);
  min-height: 190px;
}
.example__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-night-2);
  margin-bottom: var(--s3);
}
/* Command's examples: a row of chips over the example, marked like the selected mode */
.example__picks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.example__picks[hidden] {
  display: none;
}
.pick {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--on-night-2);
  box-shadow: inset 0 0 0 1px var(--night-3);
  transition:
    background-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
.pick:hover {
  color: var(--on-night);
  background: oklch(26% 0.01 60);
}
.pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pick[aria-pressed="true"] {
  color: var(--on-night);
  background: oklch(27% 0.02 45);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.example__say {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--on-night-2);
}
.example__out {
  font-size: 1.15rem;
  line-height: 1.5;
  white-space: pre-line;
}
.example__side--out {
  padding: var(--s5);
  border-radius: var(--r2);
  background: var(--paper);
  color: var(--ink);
}
.example__side--out.is-resizing {
  overflow: hidden;
  transition: height var(--slow) var(--ease);
}
.example__side--out .example__label {
  color: var(--ink-3);
}
.example__arrow {
  width: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.example.is-swapping .example__say,
.example.is-swapping .example__out {
  opacity: 0;
  transform: translateY(4px);
}
.example__say,
.example__out {
  transition:
    opacity var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.modes__more {
  margin-top: var(--s5);
  color: var(--on-night-2);
  font-size: 0.95rem;
}

/* ---------- index ---------- */

.index {
  padding: var(--section) 0;
}
.index__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.index .section-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}
.index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}
.index__list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--s4);
  padding: var(--s6) 0;
  border-top: 1px solid var(--rule);
}
.index__list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.index__list li::before {
  content: counter(item, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 5px;
}
.index__list h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.index__list p {
  color: var(--ink-2);
  max-width: 520px;
}

/* ---------- price ---------- */

.price {
  padding: var(--section) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.price__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.price h2 em {
  color: var(--accent);
}
.price__lead {
  margin-top: var(--s5);
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 560px;
}
.terms {
  list-style: none;
  margin: var(--s7) 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-width: 560px;
}
.terms li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
}
.terms b {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.terms li:last-child b {
  color: var(--accent);
}
.terms span {
  color: var(--ink-2);
}
.price__fine {
  margin-top: var(--s5);
  font-size: var(--t-small);
  color: var(--ink-3);
}

.receipt {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.receipt__paper {
  --zig: 10px;
  position: relative;
  width: min(360px, 100%);
  padding: 30px 28px 38px;
  background: #fffefb;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: oklch(30% 0.01 60);
  transform: rotate(-1.6deg);
  box-shadow:
    0 1px 0 oklch(88% 0.012 72),
    0 30px 50px -30px oklch(30% 0.03 60 / 0.45);
  /* torn bottom edge */
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%;
  transition: transform var(--slow) var(--ease);
}
.receipt:hover .receipt__paper {
  transform: rotate(0deg) translateY(-4px);
}
.receipt__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.receipt__head span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.receipt__sub {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.receipt__rule {
  margin: 16px 0;
  border-top: 1.5px dashed oklch(80% 0.012 70);
}
.receipt__rule--double {
  border-top: 3px double oklch(70% 0.012 70);
}
.receipt__lines {
  margin: 0;
  display: grid;
  gap: 9px;
}
.receipt__lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.receipt__lines dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.receipt__lines--quiet {
  color: var(--ink-2);
}
.receipt__lines--total {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.receipt__foot {
  margin-top: 18px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--accent-deep);
}

.calc {
  margin-top: var(--s8);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s7);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r4);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.calc__input label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
}
.calc__input output {
  display: block;
  margin: var(--s2) 0 var(--s3);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  --fill: 13%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--paper-3) var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: var(--paper-3);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--rule),
    0 4px 10px -2px oklch(20% 0.02 55 / 0.3);
  transition: transform var(--fast) var(--ease);
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--rule),
    0 4px 10px -2px oklch(20% 0.02 55 / 0.3);
}
.calc__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
/* the time it saves, right under the minutes: what you get back, then the same words said and
   typed (~3.75× as long); the slider comes after */
.calc__time {
  display: grid;
  gap: var(--s2);
  margin: var(--s5) 0 var(--s6);
}
.calc__row {
  display: grid;
  grid-template-columns: 4.4em minmax(0, 1fr) 7.6em;
  align-items: center;
  gap: var(--s3);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.calc__row b {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.calc__track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-3);
}
.calc__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.calc__fill--type {
  width: 100%;
  background: var(--ink-3);
  opacity: 0.5;
}
.calc__fill--talk {
  width: calc(100% / 3.75);
  background: var(--accent);
}
.calc__saved {
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.calc__saved b {
  font-weight: 800;
  color: var(--accent);
}
.calc__big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc__big small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.calc__split {
  margin-top: var(--s3);
  color: var(--ink-2);
}
.calc__bar {
  position: relative;
  height: 12px;
  margin: var(--s5) 0 var(--s3);
  border-radius: 99px;
  background: repeating-linear-gradient(-45deg, oklch(90% 0.012 72) 0 6px, oklch(94% 0.012 72) 6px 12px);
  overflow: hidden;
}
.calc__bar-ours {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  border-radius: 99px;
  background: var(--accent);
  transition: width var(--slow) var(--ease);
}
.calc__compare {
  font-size: 0.9rem;
  color: var(--ink-3);
}
.calc__compare b {
  color: var(--ink-2);
}

/* ---------- privacy ---------- */

.privacy {
  padding: var(--section) 0;
}
.privacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.privacy h2 em {
  color: var(--accent);
}
.privacy__points {
  display: grid;
  gap: var(--s5);
  font-size: 1.08rem;
  color: var(--ink-2);
}
.privacy__points p {
  padding-left: var(--s5);
  border-left: 2px solid var(--rule);
}
.privacy__points b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- faq ---------- */

.faq {
  padding: 0 0 var(--section);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq .section-head {
  margin-bottom: 0;
}
.faq__list details {
  border-top: 1px solid var(--rule);
}
.faq__list details:last-child {
  border-bottom: 1px solid var(--rule);
}
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker {
  display: none;
}
.faq__list summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 10px no-repeat;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: transform var(--fast) var(--ease);
}
.faq__list details[open] summary::after {
  transform: rotate(45deg);
}
.faq__list details p {
  padding: 0 var(--s7) var(--s5) 0;
  color: var(--ink-2);
  max-width: 620px;
}

/* ---------- final ---------- */

.final {
  padding: var(--section) 0;
  background: var(--night);
  color: var(--on-night);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  /* a single orange wave, echoing the logo */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, oklch(62% 0.2 35 / 0.28), transparent 70%);
  pointer-events: none;
}
.final__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s6);
}
.final__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}
/* The quiet button on the night background: light text, faint outline. */
.final .btn--line {
  color: var(--on-night);
  box-shadow: inset 0 0 0 1.5px oklch(96% 0.006 80 / 0.3);
}
.final .btn--line:hover {
  box-shadow: inset 0 0 0 1.5px var(--on-night-2);
}
.final__fine {
  font-size: var(--t-small);
  color: var(--on-night-2);
}

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

.foot {
  background: var(--night);
  color: var(--on-night-2);
  font-size: var(--t-small);
  border-top: 1px solid var(--night-3);
}
.foot__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s6) 0 var(--s4);
}
/* the second line: the legal pages, and who sells it — the law asks for the business behind
   the site on the site itself */
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2) var(--s6);
  padding: 0 0 var(--s6);
  font-size: 0.8rem;
  line-height: 1.5;
  color: oklch(58% 0.01 70);
}
.foot__legal p {
  margin: 0;
}
/* The business details (footer, the legal pages' cards) are glyph outlines, not text — nothing for
   crawlers to index or for the clipboard to copy. Sized in em, so they follow the text around them. */
.biz-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.biz {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: -0.3em;
  fill: currentColor;
  user-select: none;
  -webkit-user-select: none;
}
.biz-line {
  display: block;
}
.biz-line + .biz-line {
  margin-top: 0.3em;
}
/* the phone number's groups stay on one line */
.biz-phone {
  white-space: nowrap;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  font-size: var(--t-small);
}
.foot__links a {
  text-decoration: none;
  border-bottom: 1px solid var(--night-3);
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.foot__links a:hover {
  color: var(--on-night);
  border-color: var(--on-night-2);
}
/* «Cookie settings» reopens the consent panel (analytics.js): a button dressed as the links */
.foot__links button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--night-3);
  cursor: pointer;
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.foot__links button:hover {
  color: var(--on-night);
  border-color: var(--on-night-2);
}

/* ---------- the analytics consent bar (analytics.js) ---------- */

.consent {
  position: fixed;
  left: 50%;
  bottom: var(--s4);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: min(720px, calc(100vw - 2 * var(--s4)));
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 12px 32px oklch(20% 0.01 55 / 0.16);
  font-size: var(--t-small);
  line-height: 1.45;
  transform: translateX(-50%);
  animation: consent-in var(--slow) var(--ease);
}
.consent__text {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
}
.consent__text a {
  color: var(--ink);
}
.consent .btn {
  flex: none;
  justify-content: center;
  min-width: 128px;
  /* a <button>, not a link: no browser border; «Allow» has no descenders, so its letters sat
     1.6 px above the middle — 3 px on top centres them */
  padding-top: 3px;
  border: 0;
}
.consent .btn--line {
  background: none;
}
/* ✕: closes the bar; before a «yes» it means no cookies. Quiet but readable (about 3:1 against
   the paper): a refusal nobody can see would make the «yes» worthless under EU rules. */
.consent__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: calc(-1 * var(--s1));
  padding: 0;
  color: oklch(66% 0.01 65);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
.consent__close:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.consent__close svg {
  width: 11px;
  height: 11px;
}
@media (max-width: 640px) {
  .consent {
    flex-wrap: wrap;
    gap: var(--s3);
    padding: var(--s4) var(--s4) var(--s4) var(--s5);
    border-radius: var(--r3);
  }
  .consent__text {
    flex-basis: 100%;
    padding-right: 36px;
  }
  .consent__close {
    position: absolute;
    top: var(--s2);
    right: var(--s2);
    margin: 0;
  }
  .consent .btn {
    flex: 1;
    justify-content: center;
  }
}
@keyframes consent-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent {
    animation: none;
  }
}

/* ---------- reveal on scroll ---------- */

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

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero__grid,
  .price__grid,
  .index__grid,
  .privacy__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .index .section-head {
    position: static;
  }
  .facts__row {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts__row p:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts__row p:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .receipt {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .top__nav {
    display: none;
  }
  .foot__row {
    flex-direction: column;
    gap: var(--s2);
  }
  .top__row {
    justify-content: space-between;
  }
  .hero__cta > .btn,
  .final__cta .btn,
  .cta-price {
    flex: 1 1 100%;
    justify-content: center;
  }
  .cta-price .btn {
    width: 100%;
    justify-content: center;
  }
  .stage {
    --under: 140px;
  }
  /* the letter wraps into more lines on a phone */
  .app {
    height: 380px;
  }
  .keycap--demo {
    --key-h: 46px;
    width: 48px;
    margin-left: -24px;
    font-size: 1.1rem;
  }
  .facts__row {
    grid-template-columns: 1fr;
  }
  .facts__row p,
  .facts__row p + p {
    padding: var(--s4) 0;
    border-left: 0;
  }
  .facts__row p + p {
    border-top: 1px solid var(--rule);
  }
  .sheet__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .sheet__note {
    text-align: left;
    font-size: 0.9rem;
  }
  .sheet__note::after {
    display: none;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .mode {
    grid-template-columns: auto 1fr;
    column-gap: var(--s4);
    align-items: center;
    padding: var(--s4);
  }
  .mode__keys {
    grid-row: span 2;
    margin: 0;
  }
  .k {
    min-width: 42px;
    height: 40px;
    font-size: 1.05rem;
  }
  .k--wide {
    min-width: 64px;
  }
  .example {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: var(--s5);
  }
  .example__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .terms li {
    grid-template-columns: 84px 1fr;
  }
  .terms b {
    font-size: 1.35rem;
  }
  .calc {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .faq__list details p {
    padding-right: 0;
  }
  .foot__row {
    flex-direction: column;
  }
  .btn--lg {
    height: 56px;
    padding: 0 24px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
