:root {
  color-scheme: light;
  --paper: #fffaf2;
  --surface-raised: #fffdf8;
  --ink: #302820;
  --secondary: #756b62;
  --rule: #ebdfd1;
  --agent: #a64b08;
  --poppy: #ec7905;
  --petal-wash: #fff1d8;
  --petal-edge: #edcba4;
  --surface: #fffaf3;
  --muted: var(--secondary);
  --selection: #ffdfac;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* Broad, still pools of sunlight, fading out before they reach the text. */
  background:
    radial-gradient(ellipse 900px 680px at -8% 80px, #ffd0781c, transparent 75%),
    radial-gradient(ellipse 760px 900px at 108% 38%, #ffb4790d, transparent 75%),
    radial-gradient(ellipse 1000px 700px at 85% 100%, #ffd88a1a, transparent 75%);
}
/* Opaque 3D petals fall from above, with depth-dependent focus. */
.masthead, main, footer { position: relative; z-index: 1; }
.poppy-petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.poppy-petals[hidden] { display: none; }
/* The glass sits above the petal scene and below every content surface. */
.page-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #fffaf2eb;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .page-glass {
    background: rgb(255 250 242 / 85%);
    -webkit-backdrop-filter: blur(12px) saturate(.9);
    backdrop-filter: blur(12px) saturate(.9);
  }
}
/* Shift a cached texture in small steps; no per-frame noise generation. */
.film-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
}
.film-grain::before {
  content: "";
  position: absolute;
  inset: -32px;
  background: url("./grain.svg") repeat;
  animation: film-grain-shift 900ms steps(1, end) infinite;
  will-change: transform;
}
@keyframes film-grain-shift {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-14px, 9px); }
  33% { transform: translate(11px, -17px); }
  50% { transform: translate(-22px, -5px); }
  67% { transform: translate(17px, 14px); }
  83% { transform: translate(-6px, 23px); }
}
button, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--agent); outline-offset: 4px; }
button[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.masthead { padding: 22px 44px; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; margin: -12px 0; color: var(--ink); text-decoration: none; font-size: 23px; font-weight: 600; letter-spacing: -.9px; border-radius: 6px; }
.wordmark-name { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: inherit; font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.brand-tile {
  position: relative;
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid #cbb795;
  border-radius: 15px;
  background: linear-gradient(#eadcc4, #d7c3a1);
  box-shadow: 0 1px 0 #fffdf8, 0 2px 1px #a0825133, 0 5px 8px -3px #69471c2b;
}
.wordmark .brand-tile { flex-basis: 40px; width: 40px; height: 40px; margin: -8px 0; border-radius: 11px; }
.wordmark .brand-tile-face { border-radius: 10px; }
.wordmark .brand-mark { width: 36px; height: 36px; }
.brand-tile-face {
  position: absolute;
  inset: -1px -1px var(--mount-depth, 3px);
  display: grid;
  place-items: center;
  border: 1px solid #dfceb0;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffefb 5%, #fff7e8 58%, #f5e8d0);
  box-shadow: inset 0 2px 1px #fff, inset 1px 0 1px #fffdf8, inset -1px 0 1px #fffdf8a6, inset 0 -1px 1px #e6d4b1;
  transition: transform 150ms ease, border-color 150ms ease;
}
/* A soft contact shadow lets the bloom sit above the tile's face. */
.brand-tile-face::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 12%;
  bottom: 9%;
  height: 26%;
  background: radial-gradient(ellipse, #87501f55 0%, #a3652430 40%, transparent 74%);
  filter: blur(1.2px);
  transform: rotate(-6deg);
  pointer-events: none;
}
.brand-mark { position: relative; display: block; width: 48px; height: 48px; object-fit: contain; transform: translateY(-1px) rotate(-3deg); }
.wordmark:hover .brand-tile-face, .agent-symbol:hover .brand-tile-face { transform: translateY(-1px); border-color: #cfb78c; }
.wordmark:active .brand-tile-face, .agent-symbol:active .brand-tile-face { transform: translateY(var(--mount-depth, 3px)); }
.brand-mark { mix-blend-mode: multiply; }
.brand-tile--small { --mount-depth: 2px; flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
.brand-tile--small .brand-tile-face { border-radius: 8px; }
.brand-tile--small .brand-tile-face::before { filter: blur(.8px); }
.brand-tile--small .brand-mark { width: 28px; height: 28px; }
.platform { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 12px; letter-spacing: -.1px; }
.platform svg { width: 12px; height: 14px; }
main { flex: 1; width: min(920px, calc(100% - 64px)); margin: 0 auto; padding-top: clamp(16px, 2.5vh, 36px); padding-bottom: 20px; }
.introduction { text-align: center; }
h1 { margin: 0; font-size: clamp(38px, 4.4vw, 48px); font-weight: 550; line-height: 1.08; letter-spacing: -.052em; }
.introduction p { margin: 16px 0 0; color: var(--secondary); font-size: 18px; line-height: 1.5; letter-spacing: -.35px; }
.download-section { display: flex; flex-direction: column; align-items: center; gap: 11px; margin: 64px auto 44px; scroll-margin-top: 32px; }
.download-button { position: relative; display: block; width: 208px; height: 54px; border: 1px solid #c87823; border-radius: 13px; background: linear-gradient(#eaa84b, #d98524); color: #633005; text-decoration: none; box-shadow: 0 1px 0 #fff, 0 2px 1px #a9531735, 0 6px 8px -4px #9a4b1026, 0 12px 20px -10px #9a4b102e; transition: box-shadow 140ms ease; }
.download-face { position: absolute; inset: -1px -1px 4px; display: flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid #e5a44e; border-radius: 12px; background: radial-gradient(ellipse at 50% 140%, #ffb6384d, transparent 70%), linear-gradient(155deg, #ffe2a2, #ffc36b 72%, #f5ac48); box-shadow: inset 0 2px 1px #ffffffc9, inset 1px 0 1px #fff4d6, inset -1px 0 1px #fff4d680, inset 0 -1px 1px #dd932f, 0 1px 1px #ac59194d; font-size: 14px; font-weight: 550; letter-spacing: -.2px; text-shadow: 0 1px 0 #fff4d6b3; transform: translateY(0); transition: transform 140ms cubic-bezier(.2,.8,.2,1), border-color 140ms; }
.download-face svg { filter: drop-shadow(0 1px 0 #fff4d699); }
.download-button:hover .download-face { border-color: #bb6313; }
.download-button:active .download-face { transform: translateY(3px); }
.download-button:active { box-shadow: 0 1px 0 #fff, 0 2px 3px #9a4b1026, 0 5px 8px -4px #9a4b1026; }
.download-button:focus-visible { outline-offset: 6px; }
.download-note { position: relative; color: var(--muted); font-size: 11px; }
.download-note summary { display: flex; justify-content: center; align-items: center; gap: 6px; list-style: none; padding: 5px 0; cursor: pointer; }
.download-note summary::-webkit-details-marker { display: none; }
.download-note summary svg { flex-shrink: 0; }
.download-note p { width: min(310px, calc(100vw - 40px)); margin: 8px auto 0; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface-raised); box-shadow: 0 8px 30px #0000000a; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.demo { margin-top: 30px; }
.editor-shell { --progress: 0; position: relative; padding: 28px 30px 26px; background: linear-gradient(180deg, var(--surface-raised), #fffcf6); border: 1px solid var(--rule); border-radius: 19px; box-shadow: 0 2px 3px #55320e03, 0 14px 45px -24px #55320e16, inset 0 0 0 1px #fff; transition: border-color 180ms, box-shadow 180ms; }
.editor-shell[data-mode="editing"]:focus-within { border-color: var(--petal-edge); box-shadow: 0 0 0 3px #ec790510, 0 14px 45px -24px #55320e16; }
.text-space { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 140px; }
textarea, .script-text, .caret-mirror { grid-area: 1 / 1; display: block; width: 100%; min-height: 140px; margin: 0; padding: 0 2px 5px 0; border: none; border-radius: 0; background: transparent; font-size: clamp(34px, 4.2vw, 52px); font-weight: 450; line-height: 1.17; letter-spacing: -.037em; text-align: left; tab-size: 4; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
textarea { position: relative; z-index: 1; resize: none; outline: none; color: var(--ink); caret-color: var(--agent); overflow: hidden; }
textarea::placeholder { color: #8a7c6e; }
textarea::selection { color: var(--ink); background: var(--selection); }
.script-text { pointer-events: none; }
.editor-shell[data-mode="watching"] textarea { color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; }
.editor-shell[data-mode="watching"] textarea::placeholder { color: transparent; }
.editor-shell[data-mode="editing"] .script-text { display: none; }
.typing-caret { display: inline-block; width: 2px; height: .94em; margin-left: 1px; margin-right: -3px; border-radius: 1px; vertical-align: -.085em; background: var(--agent); box-shadow: 0 0 0 .25px #ec790520; }
.script-text .demo-target, .script-text .demo-change { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.script-text .demo-target { background: var(--petal-wash); box-shadow: inset 0 -1px 0 var(--petal-edge); }
.script-text .demo-change { color: #703600; background: var(--selection); box-shadow: inset 0 -1px 0 #e6a95b66; }
.editor-shell[data-phase="resting"] .typing-caret, .editor-shell[data-phase="result"] .typing-caret { animation: caret-blink 1.1s ease-in-out infinite; }
.editor-shell[data-paused="true"] .typing-caret { animation-play-state: paused; opacity: 1; }
.companion-stage { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 38px; margin: 12px 4px 0; }
.agent-state { position: relative; display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.agent-copy { min-width: 0; }
.example-note { display: block; margin-top: 2px; color: var(--secondary); font-size: 10px; }
.example-note[hidden] { display: none; }
.agent-symbol { display: grid; place-items: center; width: 44px; height: 38px; flex: 0 0 44px; margin-left: -9.5px; margin-right: -2px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.agent-state[data-state="complete"] { color: var(--agent); }
.inline-actions { position: absolute; z-index: 4; left: calc(50% + 92px); top: 48px; display: flex; flex-direction: column; gap: 4px; width: 110px; padding: 0; }
#action-menu[hidden] { display: none; }
.inline-actions button { display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; padding: 0 7px; border: 1px solid #9c3f1640; border-radius: 5px; background: linear-gradient(#fff0c8, #ffecd3); color: #302820; font: 11px -apple-system, BlinkMacSystemFont, sans-serif; box-shadow: inset 0 0 0 .5px #ffe28acc, 0 1px 2px #69471c12; }
.inline-actions button svg { width: 12px; height: 12px; opacity: .5; flex-shrink: 0; }
.inline-actions button[aria-pressed="true"] { background: linear-gradient(#ffeab0, #ffd699); }
.inline-actions button:hover { background: linear-gradient(#ffe8a4, #ffcb77); }
.inline-actions button[data-highlighted="true"] { color: #633005; border-color: #9c3f1699; background: linear-gradient(#ffe28a, #fba426); }
.inline-actions button:active { transform: translateY(.5px); }
.inline-actions button:focus-visible { position: relative; z-index: 1; outline-offset: 2px; }
.mode-toggle { border: 0; background: transparent; color: var(--agent); padding: 5px 8px; font-size: 11px; border-radius: 5px; }
.mode-toggle:hover { background: #fba42618; }
.keyboard-stage { --key-size: 136px; --key-height: 84px; margin: 14px auto 0; text-align: center; }
.shortcut-context { position: relative; display: grid; place-items: center; min-height: 38px; margin-bottom: 6px; }
.shortcut-description { margin: 0; min-height: 18px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.shortcut-trigger { position: relative; display: flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; gap: 14px; margin: 0 auto; padding: 6px 8px 14px; border: 0; border-radius: 17px; background: transparent; user-select: none; -webkit-user-select: none; }
.shortcut-count { position: absolute; left: calc(100% + 12px); top: calc(50% - 4px); transform: translateY(-50%); color: var(--secondary); font-size: 26px; font-weight: 450; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.shortcut-trigger:disabled { opacity: 1; }
.shortcut-trigger:focus-visible { outline-offset: 5px; }
.keycap { position: relative; display: block; width: var(--key-size); height: var(--key-height); flex: 0 0 auto; border: 1px solid #c6b8a6; border-radius: 13px; background: linear-gradient(180deg, #e1d7c9, #eae1d5 82%, #d1c3b1); box-shadow: 0 1px 1px #fff, 0 2px 1px #a0886840, 0 7px 8px -3px #55320e20, 0 14px 18px -8px #55320e24; transition: box-shadow 130ms ease; }
.key-face { position: absolute; inset: -1px -1px 5px; display: block; border: 1px solid #d1c2ad; border-radius: 12px; background: radial-gradient(ellipse at 50% 130%, #f6e5cc55, transparent 65%), linear-gradient(155deg, #fff 2%, #fffbf5 65%, #f6edde); box-shadow: inset 0 2px 1px #fff, inset 1px 0 1px #fff, inset -1px 0 1px #ffffff90, inset 0 -1px 1px #e5d6bf, 0 1px 1px #b39c7b60; transform: translateY(0); transition: transform 130ms cubic-bezier(.2,.8,.2,1), border-color 180ms, background 180ms; }
.key-symbol { position: absolute; left: 14px; top: 10px; color: #745839; font-size: 26px; font-weight: 400; line-height: 1; text-shadow: 0 1px 0 #fff; }
.key-legend { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #806346; font-size: 18px; font-weight: 450; line-height: 1; letter-spacing: -.2px; text-shadow: 0 1px 0 #fff; }
.shortcut-trigger:not(:disabled):hover .key-face { border-color: #b99564; }
.keycap[data-down="true"] .key-face,
.keyboard-stage[data-pressed="true"] .key-face,
.shortcut-trigger:not(:disabled):active .key-face { transform: translateY(5px); border-color: #d18a33; background: linear-gradient(155deg, #fff0d5, #ffe0aa); }
.keycap[data-down="true"],
.keyboard-stage[data-pressed="true"] .keycap,
.shortcut-trigger:not(:disabled):active .keycap { box-shadow: 0 1px 1px #fff, 0 2px 3px #55320e20, 0 7px 10px -5px #55320e18; }
.examples {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  flex-shrink: 0;
  width: max-content;
  margin-left: auto;
  gap: 4px;
  padding: 5px 5px 7px;
  border: 1px solid #dfceb4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3e8d6, #fbf4e8);
  box-shadow: inset 0 1px 3px #79552812, 0 1px 0 #fffdf8;
}
.examples button {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dfceb0;
  border-radius: 7px;
  background: linear-gradient(155deg, #fffefb, #fff7e8 65%, #f5e8d0);
  color: #806346;
  font-size: 11px;
  white-space: nowrap;
  text-shadow: 0 1px 0 #fffdf8;
  box-shadow: inset 0 1px 1px #fff, inset 1px 0 1px #fffdf8, inset 0 -1px 1px #e6d4b1, 0 2px 0 #cbb795, 0 3px 3px #69471c14;
  transform: translateY(-1px);
  transition: color 150ms, background 150ms, box-shadow 150ms, border-color 150ms, transform 100ms;
}
.examples button:hover { color: #633005; border-color: #c7a773; }
.examples button[aria-pressed="true"] {
  color: #633005;
  border-color: #dfa24d;
  background: linear-gradient(155deg, #ffe3a8, #ffcf7f 65%, #f8ba59);
  text-shadow: 0 1px 0 #fff4d6b3;
  box-shadow: inset 0 1px 1px #fff3cf, inset 1px 0 1px #fff0c1, inset 0 -1px 1px #dfa14a, 0 1px 0 #c68b3d;
  transform: translateY(1px);
}
.examples button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 2px #9a651b1a, inset 0 -1px 0 #fff4d699;
}
.examples button:focus-visible { z-index: 1; outline-offset: 2px; }
.examples button svg { width: 12px; height: 12px; flex-shrink: 0; opacity: .5; }
.example-progress { position: absolute; bottom: 1px; left: 8px; right: 8px; height: 1.5px; border-radius: 1px; background: var(--agent); opacity: 0; transform: scaleX(0); transform-origin: left; transition: transform 100ms linear; }
.examples button[aria-pressed="true"] .example-progress { opacity: .8; transform: scaleX(var(--progress, 0)); }
.noscript { text-align: center; color: var(--secondary); font-size: 14px; }
.page-section { max-width: 760px; margin: 72px auto 0; scroll-margin-top: 40px; }
.page-section h2 { margin: 0; font-size: 30px; font-weight: 550; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.page-section h3 { margin: 22px 0 9px; font-size: 15px; font-weight: 550; line-height: 1.4; letter-spacing: -.2px; }
.page-section p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.65; }
.writing-modes h2, .modes-intro { text-align: center; }
.page-section .modes-intro { max-width: 570px; margin: 18px auto 0; }
.mode-descriptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; margin: 30px 0; }
.mode-descriptions h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.mode-descriptions h3 svg { width: 14px; height: 14px; color: #9c3f16; opacity: .5; }
.page-section .modes-footnote { border-top: 1px solid var(--rule); padding-top: 20px; }
.page-section .modes-once { margin-top: 12px; }
.modes-once code { font-size: .95em; color: var(--agent); }
.workflow h2, .faq h2 { text-align: center; }
.workflow-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 32px; }
.workflow-sample { min-height: 90px; display: flex; justify-content: center; border: 1px solid var(--rule); border-radius: 12px; background: linear-gradient(155deg, #fffdfa, #fff6e8); box-shadow: inset 0 1px 2px #9a4b1005, 0 1px 0 #fff; }
.correction-sample { flex-direction: column; gap: 12px; padding: 18px; font-size: 14px; line-height: 1.6; letter-spacing: -.2px; }
.sample-caption { display: flex; align-items: center; gap: 5px; color: #95601f; font-size: 11px; line-height: 1.3; letter-spacing: 0; }
.shortcut-sample { align-items: center; gap: 10px; padding: 16px 12px; }
.small-key { display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; width: 68px; height: 44px; padding: 5px 7px 7px; border: 1px solid #dbcdb9; border-radius: 6px; background: linear-gradient(150deg, #fff, #f7eedf); box-shadow: inset 0 1px 1px #fff, 0 2px 0 #e3d5bf, 0 3px 1px #c8ad8233, 0 5px 6px #9a4b100a; color: #806346; font-size: 10px; line-height: 1; text-align: center; }
.small-key > span { text-align: left; font-size: 16px; }
.sample-count { font-size: 17px; color: var(--muted); }
.sample-arrow { flex-shrink: 0; margin: 0 2px; color: #b19470; }
.saved-action { color: var(--agent); font-size: 12px; line-height: 1.4; }
.voice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; }
.voice-copy p { margin-top: 16px; }
.preferences-note { padding: 18px 20px 7px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: inset 0 1px 3px #9a4b1006, 0 1px 0 #fff; }
.note-label { display: flex; align-items: center; gap: 7px; color: #95601f; font-size: 12px; font-weight: 550; }
.note-label > span { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 400; }
.preferences-note ul { margin: 12px 0 0; padding: 0; list-style: none; }
.preferences-note li { padding: 11px 0; border-top: 1px solid var(--rule); color: #68533d; font-size: 14px; line-height: 1.5; letter-spacing: -.15px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 2px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--agent); }
.faq-item summary:focus-visible { position: relative; z-index: 1; border-radius: 3px; outline-offset: 3px; }
.disclosure-plus { position: relative; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 2px; color: #95601f; }
.disclosure-plus::before, .disclosure-plus::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.disclosure-plus::before { width: 10px; height: 1px; top: 6.5px; left: 2px; }
.disclosure-plus::after { width: 1px; height: 10px; top: 2px; left: 6.5px; }
.faq-item[open] .disclosure-plus::after { display: none; }
.faq-item p { max-width: 640px; padding: 0 26px 22px 2px; }
.privacy { max-width: 760px; margin: 72px auto 0; scroll-margin-top: 40px; }
.privacy-heading { display: flex; align-items: center; justify-content: center; gap: 13px; }
.privacy-mark { flex-shrink: 0; filter: drop-shadow(0 2px 1px #9a4b100d); }
.privacy h2 { margin: 0; font-size: 30px; font-weight: 550; line-height: 1.2; letter-spacing: -.045em; }
.privacy-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 54px; row-gap: 30px; margin-top: 34px; }
.privacy-facts article { position: relative; padding-left: 31px; }
.privacy-facts article > svg { position: absolute; top: 0; left: 0; color: var(--agent); }
.privacy h3 { margin: 0 0 8px; font-size: 14px; font-weight: 550; line-height: 1.4; letter-spacing: -.15px; }
.privacy-facts p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.6; }
.privacy-provider { max-width: 620px; margin: 32px auto 0; color: var(--secondary); font-size: 12px; line-height: 1.6; text-align: center; }
footer { padding: 17px 44px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--secondary); font-size: 11px; }
.footer-actions { display: flex; align-items: center; gap: 24px; }
.feedback-link { color: var(--secondary); padding: 8px 0; white-space: nowrap; text-underline-offset: 3px; }
.feedback-link:hover { color: var(--ink); }
.demo-note { position: relative; }
.demo-note summary { display: flex; align-items: center; gap: 6px; list-style: none; padding: 8px 0; cursor: pointer; }
.demo-note summary::-webkit-details-marker { display: none; }
.demo-note p { position: absolute; bottom: 100%; left: 0; width: min(310px, 78vw); padding: 17px 19px; margin: 0 0 9px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 8px 30px #00000008; line-height: 1.65; font-size: 12px; z-index: 3; }
.reset-button { display: flex; align-items: center; gap: 7px; white-space: nowrap; border: none; padding: 8px 0; background: transparent; color: var(--secondary); font-size: 11px; }
.reset-button:hover { color: var(--ink); }
@keyframes caret-blink { 0%, 35%, 100% { opacity: 1; } 55%, 80% { opacity: .08; } }
@media (min-width: 1600px) { main { padding-top: 4vh; } .demo { margin-top: 38px; } }
@media (min-width: 651px) and (max-height: 820px) {
  .masthead { padding-top: 16px; padding-bottom: 16px; }
  main { padding-top: 6px; padding-bottom: 16px; }
  h1 { font-size: 42px; }
  .introduction p { margin-top: 12px; font-size: 16px; }
  .demo { margin-top: 20px; }
  .editor-shell { padding: 22px 26px; }
  .text-space, textarea, .script-text, .caret-mirror { min-height: 124px; }
  textarea, .script-text, .caret-mirror { font-size: 48px; }
  .keyboard-stage { --key-size: 124px; --key-height: 76px; margin-top: 10px; }
  footer { padding-top: 12px; padding-bottom: 17px; }
}
@media (max-width: 650px) {
  .masthead { padding: 23px 23px; }
  .wordmark { font-size: 21px; }
  main { width: calc(100% - 32px); padding-top: 22px; padding-bottom: 10px; }
  h1 { font-size: clamp(36px, 8.9vw, 48px); }
  .introduction p { max-width: 285px; margin: 14px auto 0; font-size: 16px; line-height: 1.45; text-wrap: balance; }
  .download-section { margin: 48px auto 30px; gap: 9px; }
  .download-button { width: 200px; height: 52px; }
  .download-note { font-size: 10px; }
  .demo { margin-top: 26px; }
  .editor-shell { padding: 24px 19px 22px; border-radius: 16px; }
  .text-space { min-height: 152px; }
  textarea, .script-text, .caret-mirror { font-size: clamp(29px, 7.8vw, 43px); min-height: 152px; line-height: 1.2; letter-spacing: -.032em; }
  .companion-stage { flex-wrap: wrap; gap: 12px; margin-top: 10px; }
  .agent-state { font-size: 10px; }
  .agent-symbol { margin-left: -11px; margin-right: -5px; }
  .inline-actions { left: calc(50% + 42px); width: 98px; }
  .keyboard-stage { --key-size: 100px; --key-height: 64px; margin-top: 13px; }
  .shortcut-trigger { gap: 10px; padding: 5px 4px 12px; border-radius: 13px; }
  .shortcut-count { left: calc(100% + 10px); font-size: 22px; }
  .shortcut-description { font-size: 11px; }
  .keycap { border-radius: 10px; }
  .key-face { border-radius: 9px; }
  .key-symbol { top: 8px; left: 10px; font-size: 20px; }
  .key-legend { bottom: 9px; font-size: 14px; }
  .examples { gap: 3px; }
  .examples button { min-height: 32px; padding: 6px 5px; font-size: 10px; border-radius: 6px; }
  .examples button svg { display: none; }
  .page-section { margin: 48px 7px 0; scroll-margin-top: 24px; }
  .mode-descriptions { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .workflow-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .workflow-sample { min-height: 90px; }
  .page-section h3 { margin-top: 18px; }
  .voice { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .voice-copy { text-align: center; }
  .preferences-note { padding-left: 18px; padding-right: 18px; }
  .faq-item summary { gap: 16px; padding-top: 18px; padding-bottom: 18px; }
  .privacy { margin: 48px 7px 0; scroll-margin-top: 24px; }
  .privacy-heading { gap: 10px; }
  .privacy h2 { font-size: 30px; }
  .privacy-mark { width: 24px; height: 28px; }
  .privacy-facts { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .privacy-facts article { padding-left: 30px; }
  .privacy-provider { margin-top: 28px; text-align: left; }
  footer { padding: 14px 23px 19px; gap: 12px; }
}
@media (max-width: 520px) {
  footer { flex-wrap: wrap; }
  .footer-actions { flex-wrap: wrap; gap: 20px; }
  .companion-stage { flex-wrap: wrap; gap: 8px; }
  .agent-state { min-height: 38px; font-size: 11px; }
  .examples { width: 100%; }
  .examples button { flex: 1 0 auto; font-size: 11px; padding: 6px 5px; }
}
@media (max-width: 370px) {
  .platform { font-size: 11px; }
  main { padding-top: 23px; }
  .editor-shell { padding-left: 15px; padding-right: 15px; }
  footer { align-items: flex-start; }
  .demo-note summary { max-width: 170px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .film-grain::before { will-change: auto; }
  .poppy-petals { display: none; }
}
@media print { .film-grain, .poppy-petals, .page-glass { display: none; } }

/* Quiet guidance beside the action it explains. */
.header-download { color: var(--ink); font-size: 13px; text-decoration: none; }
.header-download:hover { color: var(--agent); }
.header-download span { margin-left: 5px; }
.demo-context { margin: 0 0 16px; color: var(--secondary); font-size: 12px; line-height: 1.5; }
.demo-context a { color: inherit; text-underline-offset: 3px; }
.install-steps { margin: 0; padding: 0 20px; text-align: center; color: var(--secondary); font-size: 13px; line-height: 1.5; }

/* The app's unbacked activity flower, beside the insertion point. */
textarea, .script-text, .caret-mirror { padding-right: 32px; }
.caret-mirror { position: absolute; inset: 0; height: auto; min-height: 0; visibility: hidden; pointer-events: none; }
.inline-loader.pixel-loader { --pixel-size: 48px; position: absolute; z-index: 2; pointer-events: none; }
.inline-loader.pixel-loader[data-paused="true"] { animation-play-state: paused; }
.agent-state[data-state="busy"] .agent-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 650px) { .inline-loader.pixel-loader { --pixel-size: 32px; } }

/* Homepage refinement. Typography studies retain their original compositions. */
.homepage h1 { letter-spacing: -.045em; }
.hero-action { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 26px 0 0; }
.hero-download-info { display: grid; gap: 5px; text-align: left; color: var(--secondary); font-size: 12px; line-height: 1.4; }
.hero-download-info span:first-child { color: var(--ink); }
.homepage .header-download { display: inline-flex; align-items: center; min-height: 44px; }
.homepage .demo { margin-top: 38px; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.homepage .demo-context { margin: 0; font-size: 13px; }
.demo-context strong { color: var(--ink); font-weight: 550; }
.homepage .demo-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-height: 38px; padding: 0 12px; border: 1px solid #dfceb0; border-radius: 7px; background: linear-gradient(155deg, #fffefb, #fff7e8 65%, #f5e8d0); box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #e6d4b1, 0 2px 0 #cbb795, 0 3px 3px #69471c14; color: var(--ink); font-size: 12px; transition: transform 100ms, border-color 140ms; }
.homepage .demo-control:enabled:hover { border-color: #b99564; }
.homepage .demo-control:enabled:active { transform: translateY(1px); }
.homepage .demo-control:disabled { opacity: .65; cursor: default; }
.playback-control { min-width: 92px; }
.play-glyph, .playback-control[data-paused="true"] .pause-glyph { display: none; }
.playback-control[data-paused="true"] .play-glyph { display: block; }
.homepage .editor-shell { padding: 24px 28px; }
.homepage .text-space { height: var(--stage-height, 200px); min-height: 0; }
.homepage textarea, .homepage .script-text, .homepage .caret-mirror { font-size: 40px; line-height: 1.22; letter-spacing: -.03em; }
.homepage textarea, .homepage .script-text { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.homepage .script-text { scrollbar-width: none; }
.homepage .editor-shell[data-mode="editing"] .text-space { height: auto; min-height: var(--stage-height, 200px); }
.homepage .caret-mirror { bottom: auto; }
.homepage .editor-shell .demo-measure { display: block; position: absolute; inset: 0 0 auto; height: auto; min-height: 0; overflow: visible; visibility: hidden; pointer-events: none; }
.homepage .companion-stage { min-height: 58px; margin: 8px 3px 0; gap: 16px; }
.homepage .agent-state { flex: 1; min-height: 48px; font-size: 12px; }
.homepage .agent-symbol { margin-left: -7px; margin-right: 1px; }
.example-groups { display: flex; justify-content: center; gap: 20px; margin: 10px auto 0; }
.example-set { min-width: 0; }
.example-label { display: block; margin: 0 0 7px 6px; color: var(--secondary); font-size: 12px; }
.homepage .examples { width: auto; margin: 0; flex-wrap: nowrap; gap: 5px; padding: 5px 5px 7px; }
.homepage .examples button { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.homepage .examples button svg { opacity: .7; }
.sample-disclosure { margin: 16px 0 0; text-align: center; color: var(--secondary); font-size: 12px; line-height: 1.5; }
.sample-disclosure a { color: var(--agent); text-underline-offset: 3px; }
.homepage .keyboard-stage { --key-size: 100px; --key-height: 66px; display: flex; justify-content: center; align-items: center; gap: 46px; margin-top: 22px; }
.homepage .shortcut-trigger { flex-shrink: 0; margin: 0; padding: 6px 4px 12px; }
.homepage .shortcut-count { left: calc(100% + 4px); font-size: 20px; }
.homepage .key-symbol { font-size: 22px; top: 8px; left: 10px; }
.homepage .key-legend { font-size: 14px; bottom: 10px; }
.homepage .shortcut-context { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 330px; min-height: 88px; margin: 0; text-align: left; }
.homepage .shortcut-description { font-size: 12px; }
.homepage .mode-toggle { min-height: 38px; margin-left: -8px; font-size: 12px; }
.homepage .inline-actions { top: calc(100% - 4px); left: 0; width: 132px; }
.homepage .inline-actions button { min-height: 38px; font-size: 12px; }
.mode-details { margin-top: 22px; border-top: 1px solid var(--rule); }
.mode-details summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 0; color: var(--agent); font-size: 13px; list-style: none; cursor: pointer; }
.mode-details summary::-webkit-details-marker { display: none; }
.mode-details[open] .disclosure-plus::after { display: none; }
.homepage .mode-details .modes-footnote { border: 0; padding-top: 8px; }
.preview-status { margin: 0; padding: 0 16px; color: var(--secondary); font-size: 12px; line-height: 1.5; text-align: center; }
.homepage .download-note { font-size: 12px; }
.homepage .download-note summary { min-height: 44px; }

@media (max-width: 900px) {
  .homepage .examples button { padding-left: 9px; padding-right: 9px; }
  .homepage .examples button svg { display: none; }
  .example-groups { gap: 14px; }
}
@media (max-width: 650px) {
  .homepage h1 { text-wrap: balance; }
  .homepage main { padding-top: 18px; }
  .homepage .masthead { padding: 14px 23px; }
  .homepage .introduction > p { max-width: 310px; }
  .hero-action { flex-direction: column; gap: 12px; margin-top: 18px; }
  .hero-download-info { text-align: center; gap: 3px; }
  .homepage .demo { margin-top: 24px; }
  .demo-heading { align-items: center; }
  .homepage .demo-context { max-width: 245px; font-size: 12px; }
  .demo-context strong { display: block; margin-bottom: 2px; }
  .homepage .demo-control { min-height: 44px; padding: 0 10px; }
  .homepage .editor-shell { padding: 22px 18px; }
  .homepage .text-space { height: var(--stage-height, 260px); }
  .homepage textarea, .homepage .script-text, .homepage .caret-mirror { font-size: 26px; line-height: 1.25; letter-spacing: -.025em; padding-right: 24px; }
  .homepage .companion-stage { flex-wrap: nowrap; min-height: 70px; gap: 10px; }
  .homepage .agent-state { font-size: 12px; min-height: 60px; }
  .playback-control { min-width: 86px; }
  .example-groups { display: grid; justify-content: stretch; gap: 16px; margin-top: 4px; }
  .homepage .examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 5px; }
  .example-set:last-child .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage .examples button { min-height: 44px; padding: 7px 6px; font-size: 12px; }
  .sample-disclosure { margin-top: 16px; font-size: 12px; }
  .homepage .keyboard-stage { --key-size: 82px; --key-height: 60px; gap: 30px; margin-top: 18px; }
  .homepage .shortcut-count { left: calc(100% + 1px); font-size: 17px; }
  .homepage .shortcut-context { min-height: 108px; flex: 1; max-width: 230px; }
  .homepage .mode-toggle, .homepage .inline-actions button { min-height: 44px; }
  .homepage .page-section p, .homepage .privacy-facts p { font-size: 15px; line-height: 1.65; }
  .homepage .mode-descriptions h3 { margin-top: 0; }
  .homepage .privacy-provider { font-size: 13px; }
  .homepage .page-section h2, .homepage .privacy h2 { font-size: 28px; letter-spacing: -.035em; }
  .homepage .footer-actions a, .homepage .footer-actions button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage .demo-control { transition: none; }
}
@media (pointer: coarse) {
  .homepage .demo-control, .homepage .examples button,
  .homepage .mode-toggle, .homepage .inline-actions button { min-height: 44px; }
}
