
  :root {
    --paper: #f4f1ea;
    --paper-2: #ebe6db;
    --ink: #1c1b18;
    --ink-2: #4a463e;      /* secondary text, 8.3:1 on paper */
    --ink-3: #6b665b;      /* captions, 5.2:1 on paper */
    --rule: #cfc8b8;
    --rule-strong: #1c1b18;
    --accent: #1f5f5b;     /* deep teal, 7.4:1 on paper */
    --accent-ink: #f4f1ea;
    --accent-hover: #174a47;

    --serif: "Literata", "PT Serif", Georgia, serif;
    --sans: "Golos Text", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;

    --wrap: 1120px;
    --gutter: 16px;
  }
  @media (min-width: 720px) { :root { --gutter: 40px; } }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background-color: var(--paper);
    /* barely-there paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--accent); color: var(--accent-ink); }

  a { color: inherit; }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .wrap {
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }
  .mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }
  .skip {
    position: absolute; left: -999px; top: 8px;
    background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10;
  }
  .skip:focus { left: 8px; }

  /* ---------- header ---------- */
  .masthead {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 22px 0 14px;
    border-bottom: 1px solid var(--rule-strong);
  }
  .wordmark {
    font-family: var(--serif); font-weight: 600; font-size: 22px;
    letter-spacing: -.01em; text-decoration: none;
    display: inline-flex; align-items: baseline; gap: 10px;
  }
  .wordmark small {
    font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--ink-3);
    letter-spacing: .02em;
  }
  .masthead .ver { color: var(--ink-2); white-space: nowrap; }
  @media (max-width: 479px) { .masthead .build-date { display: none; } }
  .locale-nav { display: flex; gap: 4px; margin-left: auto; font: 500 12px var(--mono); }
  .locale-nav a, .locale-nav span { padding: 5px 7px; text-decoration: none; }
  .locale-nav [aria-current] { color: var(--accent); border-bottom: 2px solid var(--accent); }
  .locale-nav a:hover { color: var(--accent); text-decoration: underline; }
  @media (max-width: 479px) { .wordmark small { display: none; } }

  /* ---------- hero ---------- */
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0 64px;
  }
  @media (min-width: 960px) {
    .hero { grid-template-columns: 7fr 5fr; gap: 64px; padding: 88px 0 96px; align-items: start; }
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(36px, 6.2vw, 68px);
    line-height: 1.04;
    letter-spacing: -.022em;
    margin: 0 0 28px;
    max-width: 15ch;
    font-variation-settings: "opsz" 72;
  }
  .hero h1 em {
    font-style: italic; font-weight: 400;
  }
  .lede {
    font-size: 19px; line-height: 1.5; color: var(--ink-2);
    max-width: 34em; margin: 0 0 40px;
  }
  .lede b { color: var(--ink); font-weight: 500; }

  .get { display: inline-block; }
  .btn {
    display: inline-flex; align-items: center; gap: 14px;
    background: var(--accent); color: var(--accent-ink);
    text-decoration: none;
    font-weight: 500; font-size: 18px;
    padding: 16px 24px 16px 22px;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,.25), inset 0 -2px 0 rgba(0,0,0,.18);
    transition: background-color .15s ease, transform .08s ease, box-shadow .08s ease;
  }
  .btn:hover { background: var(--accent-hover); }
  .btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(0,0,0,.2); }
  .btn svg { flex: none; }
  .btn:hover svg { transform: translateY(2px); }
  .btn svg { transition: transform .15s ease; }
  .get .meta {
    margin: 12px 0 0; color: var(--ink-3); line-height: 1.6;
  }
  .get .meta span + span::before { content: " · "; color: var(--rule); }
  .mobile-note {
    display: none;
    margin: 20px 0 0; padding: 10px 0 0;
    border-top: 1px dashed var(--rule);
    font-size: 15px; color: var(--ink-2);
  }
  @media (max-width: 719px) { .mobile-note { display: block; } }

  /* ---------- the demo figure ---------- */
  .demo {
    margin: 0;
    padding-top: 6px;
  }
  @media (min-width: 960px) { .demo { margin-top: 10px; } }
  .demo-label {
    display: flex; justify-content: space-between; align-items: baseline;
    color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 28px;
  }

  .keys {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 30px;
  }
  .keys .plus { font-family: var(--mono); color: var(--ink-3); font-size: 18px; }

  .key {
    --h: 64px;
    position: relative;
    height: var(--h);
    min-width: 66px;
    border-radius: 9px;
    background: #d9d4c8;
    box-shadow:
      0 6px 0 #a9a292,
      0 7px 0 #8d8676,
      0 10px 14px rgba(40, 34, 20, .22);
    transform: translateY(0);
    user-select: none;
  }
  .key::before {          /* the concave top face */
    content: "";
    position: absolute; inset: 3px 5px 8px;
    border-radius: 7px;
    background: linear-gradient(180deg, #fbf9f4 0%, #efebe2 60%, #e6e1d5 100%);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px rgba(0,0,0,.06);
  }
  .key > * { position: relative; }
  .key-ctrl { min-width: 100px; }
  .key-ctrl .lg {
    position: absolute; left: 14px; bottom: 16px;
    font-family: var(--sans); font-weight: 500; font-size: 15px; color: #2b2a26;
  }
  .key-yo { width: 66px; }
  .key-yo .lg {
    position: absolute; right: 14px; bottom: 13px;
    font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1; color: #2b2a26;
  }
  .key-yo .sm {
    position: absolute; left: 13px; top: 10px;
    font-family: var(--mono); font-size: 11px; line-height: 1.1; color: #6b665b;
  }

  .field {
    position: relative;
    background: #fffdf8;
    border: 1px solid #bdb5a3;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(40, 34, 20, .08);
    padding: 16px 18px 18px;
    min-height: 92px;
  }
  .field-head {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink-3); font-size: 12px; margin: 0 0 8px;
  }
  .field-head i {
    width: 7px; height: 7px; border-radius: 50%; background: #b9b2a2; display: inline-block;
  }
  .field-text {
    font-size: 18px; line-height: 1.45; color: var(--ink);
    min-height: 2.9em;
    margin: 0;
  }
  .field-text .line[hidden] { display: none; }
  .demo figcaption {
    margin-top: 14px; color: var(--ink-3); font-size: 14px; line-height: 1.5;
  }

  /* --- animation (enabled by JS adding .anim) --- */
  /* One cycle = 12s: line A owns 0–6s, line B owns 6–12s.
     Negative delays put every element mid-cycle from frame one,
     so nothing flashes during an initial delay. */
  .anim .field-text { display: grid; }
  .anim .line { grid-area: 1 / 1; visibility: hidden; animation: own 12s step-end infinite; }
  .anim .line-b { animation-delay: -6s; }
  @keyframes own { 0% { visibility: visible; } 50% { visibility: hidden; } 100% { visibility: hidden; } }

  .anim .ch {
    position: relative;
    opacity: 0;
    animation: ch 12s step-end infinite;
    animation-delay: var(--d);
  }
  @keyframes ch { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
  /* punctuation lands a beat later, the way the model adds it */
  .anim .ch.p { color: var(--accent); transition: none; }

  /* caret: each char shows it briefly right after it appears */
  .anim .ch::after {
    content: ""; position: absolute; right: -1px; top: .15em; bottom: .1em; width: 2px;
    background: var(--ink); opacity: 0;
    animation: caret 12s step-end infinite;
    animation-delay: var(--d);
  }
  @keyframes caret { 0% { opacity: 1; } .55% { opacity: 0; } 100% { opacity: 0; } }
  .anim .ch.last::after { animation-name: caret-last; }
  @keyframes caret-last {
    0% { opacity: 1; } 4% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: 0; }
    16% { opacity: 1; } 20% { opacity: 0; } 24% { opacity: 1; } 28% { opacity: 0; } 100% { opacity: 0; }
  }

  /* Ё is held while you speak, released before punctuation lands */
  .anim .key { animation: press 6s infinite; }
  @keyframes press {
    0%, 2%   { transform: translateY(0); box-shadow: 0 6px 0 #a9a292, 0 7px 0 #8d8676, 0 10px 14px rgba(40,34,20,.22); }
    5%, 44%  { transform: translateY(5px); box-shadow: 0 1px 0 #a9a292, 0 2px 0 #8d8676, 0 3px 5px rgba(40,34,20,.18); }
    48%,100% { transform: translateY(0); box-shadow: 0 6px 0 #a9a292, 0 7px 0 #8d8676, 0 10px 14px rgba(40,34,20,.22); }
  }
  .rec {
    display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
    color: var(--ink-3);
  }
  .rec i { width: 7px; height: 7px; border-radius: 50%; background: #b9b2a2; }
  .anim .rec i { animation: rec 6s step-end infinite; }
  @keyframes rec { 0% { background: #b9b2a2; } 4% { background: #b3372b; } 46% { background: #b9b2a2; } }

  @media (prefers-reduced-motion: reduce) {
    .anim .line, .anim .ch, .anim .ch::after, .anim .key, .anim .rec i { animation: none !important; }
    .anim .line { visibility: visible; }
    .anim .line-b { display: none; }
    .anim .ch { opacity: 1; }
    .anim .ch::after { opacity: 0; }
  }

  /* ---------- sections ---------- */
  .sec {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px 64px;
    padding: 40px 0 56px;
    border-top: 1px solid var(--rule-strong);
  }
  @media (min-width: 860px) {
    .sec { grid-template-columns: 3fr 9fr; padding: 48px 0 80px; }
  }
  .sec-head { display: flex; flex-direction: column; gap: 6px; }
  @media (max-width: 859px) { .sec-head { flex-direction: row; align-items: baseline; gap: 14px; } }
  .sec-no { color: var(--accent); font-size: 13px; }
  .sec h2 {
    font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15;
    letter-spacing: -.01em; margin: 0;
  }
  @media (min-width: 860px) { .sec h2 { position: sticky; top: 24px; } }

  /* steps */
  .steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
  .steps li {
    counter-increment: s;
    display: grid; grid-template-columns: 56px 1fr; align-items: baseline;
    padding: 20px 0 22px;
    border-bottom: 1px solid var(--rule);
    font-size: 21px; line-height: 1.4;
  }
  .steps li:first-child { padding-top: 4px; }
  @media (max-width: 719px) { .steps li { font-size: 18px; grid-template-columns: 40px 1fr; } }
  .steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--mono); font-size: 13px; color: var(--ink-3);
    transform: translateY(-3px);
  }
  .steps .note { display: block; font-size: 15px; color: var(--ink-3); margin-top: 4px; }
  kbd {
    font-family: var(--mono); font-size: .78em;
    display: inline-block; padding: 1px 7px 2px; margin: 0 1px;
    border: 1px solid #b2aa97; border-bottom-width: 2px; border-radius: 4px;
    background: #fbf9f4; color: var(--ink); vertical-align: .08em; line-height: 1.35;
  }

  /* inside */
  .spec { margin: 0; }
  .spec > div {
    display: grid; grid-template-columns: 1fr; gap: 4px 40px;
    padding: 18px 0 20px; border-bottom: 1px solid var(--rule);
  }
  .spec > div:first-child { padding-top: 4px; }
  @media (min-width: 720px) { .spec > div { grid-template-columns: 15em 1fr; } }
  .spec dt { font-weight: 600; font-size: 17px; }
  .spec dd { margin: 0; color: var(--ink-2); max-width: 36em; }
  .spec .tag {
    font-family: var(--mono); font-size: 12px; color: var(--ink-3);
    border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; margin-left: 4px;
    white-space: nowrap; vertical-align: .1em;
  }

  /* screenshots */
  .shots {
    display: flex; flex-wrap: wrap; gap: 48px 40px; align-items: flex-start;
    margin: 0; padding: 0;
  }
  @media (min-width: 860px) { .shots { grid-column: 1 / -1; gap: 48px 20px; } }
  .shot { margin: 0; flex: 0 1 auto; max-width: 100%; }
  .shot:nth-child(1) { flex-basis: 580px; }
  .shot:nth-child(2) { flex-basis: 520px; }
  .shot img { width: 100%; }
  @media (min-width: 1160px) { .shot:nth-child(2) { margin-top: 96px; } }
  .shot img {
    display: block; max-width: 100%; height: auto;
    border: 1px solid #1d1f26;
    border-radius: 2px;
    box-shadow:
      0 1px 1px rgba(30, 25, 15, .10),
      0 4px 8px rgba(30, 25, 15, .08),
      0 18px 36px -12px rgba(30, 25, 15, .30);
    background: #2b2f38;
  }
  .shot figcaption {
    margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 30em;
    display: flex; gap: 12px; align-items: baseline;
  }
  .shot figcaption .mono { color: var(--ink-3); flex: none; font-size: 12px; }

  /* install */
  .install p { margin: 0 0 14px; max-width: 38em; color: var(--ink-2); }
  .install p:first-child { color: var(--ink); font-size: 19px; }
  .install .again { margin-top: 26px; }
  .textlink {
    color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 3px; font-weight: 500;
  }
  .textlink:hover { text-decoration-thickness: 2px; }

  /* footer */
  footer {
    border-top: 1px solid var(--rule-strong);
    padding: 18px 0 40px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    color: var(--ink-2); font-size: 15px;
  }
  footer .mono { color: var(--ink-3); }

  /* load-in: one quiet stagger, nothing more */
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
    .rise-2 { animation-delay: .08s; }
    .rise-3 { animation-delay: .16s; }
    .rise-4 { animation-delay: .28s; }
    @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  }
  /* screenshots: two app windows side by side, installer below */
  .shot:nth-child(1), .shot:nth-child(2) { flex: 1 1 440px; margin-top: 0; }
  .shot:nth-child(3) { flex: 0 1 360px; margin-top: 0; }
  .shots-single .shot { flex: 0 1 740px; }
