/* Ghost Typist site. Metal Sole family: dark page, system type, rounded cards,
   thin rules, small spaced-capital eyebrows. Livelier than its siblings on the
   owner's request (2026-12-02): the navy leans violet, and a ghost lives here.
   Colours come from the approved app icon (direction B). */
:root {
  color-scheme: dark;
  --bg: #090719; --surface: #110e29; --surface-2: #1a1540; --ink: #fbf9ff; --muted: #bdb7d9;
  --quiet: #9890ba; --violet: #8e7bf5; --violet-light: #b3a5ff; --field: #4833bc; --deep: #1c0e63;
  --unsaid: #7d73ad; --orange: #f2a24e;
  --pending: #f2c14e; --pending-bg: rgba(242, 193, 78, .1);
  --line: #2b2552; --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--bg) radial-gradient(1100px 700px at 78% 60px, #2a1d7d 0%, rgba(42, 29, 125, 0) 70%) no-repeat; font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 4px; border-radius: 8px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 74px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(31px, 3.8vw, 50px); line-height: 1.1; font-weight: 760; letter-spacing: -.025em; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
code { font: .88em/1.4 var(--mono); color: var(--violet-light); background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 10px 18px; background: var(--ink); color: var(--bg); border-radius: 8px; opacity: 0; }
.skip:focus { top: 12px; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.nav { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 760 21px/1.2 var(--display); white-space: nowrap; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav nav a { padding-block: 10px; white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: 8px 16px; border: 1px solid #51479a; border-radius: 100px; font-size: 13px; color: var(--violet-light); white-space: nowrap; }
a.nav-cta:hover { border-color: var(--violet-light); }
.is-disabled { cursor: default; }
.nav-cta.is-disabled { color: var(--quiet); }

/* Shared pieces */
.eyebrow { color: var(--violet-light); text-transform: uppercase; font-size: 11px; letter-spacing: .14em; font-weight: 650; margin-bottom: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 100px; background: var(--ink); color: #2b1a85; font-size: 16px; font-weight: 700; }
a.button:hover { background: #ded7ff; }
.button.is-disabled { background: var(--surface-2); color: var(--muted); border: 1px dashed #51479a; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-link { color: var(--violet-light); border-bottom: 1px solid rgba(179, 165, 255, .4); }
.text-link:hover { border-color: var(--violet-light); }
.k { display: inline-block; font: 600 .86em/1.5 var(--font); padding: 0 .45em; border: 1px solid #51479a; border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }

/* Pending copy and captures: visible on purpose, settled before launch. */
.pending { color: var(--ink); background: var(--pending-bg); outline: 1px dashed var(--pending); outline-offset: 1px; border-radius: 4px; padding: 0 .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pending::before { content: "Pending · "; color: var(--pending); font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.shot-pending { display: grid; gap: 6px; place-content: center; text-align: center; min-height: 200px; padding: 28px; border: 1.5px dashed var(--pending); border-radius: var(--radius); background: var(--pending-bg); color: var(--muted); font-size: 15px; }
.shot-pending b { color: var(--pending); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }

/* Words being typed. Untyped words stay readable, as ghost text. */
.untyped { color: var(--unsaid); }
.caret { position: relative; }
.caret.is-on::after { content: ""; position: absolute; left: -.065em; top: .16em; width: .055em; min-width: 2px; height: .92em; border-radius: 2px; background: var(--violet-light); }
.line { display: block; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px 56px; align-items: center; padding-block: 44px 48px; }
.hero h1 .line + .line { margin-top: .12em; color: var(--violet-light); }
.lede { margin-top: 28px; font-size: 21px; line-height: 1.55; color: #dbd5f5; max-width: 32em; }
.platform { margin-top: 18px; font-size: 14px; color: var(--quiet); }
.stage { display: grid; justify-items: center; gap: 22px; }
.ghost { width: min(100%, 400px); height: auto; overflow: visible; }
.key-side { fill: #120845; }
.key-edge { fill: var(--violet); }
.key-top { fill: var(--violet-light); }
.ghost-shadow { fill: var(--deep); opacity: .28; }
.ghost-body { fill: var(--ink); }
.eyes { fill: #2b1a85; transform-origin: 512px 421px; }
.thought { fill: var(--ink); opacity: 0; }
.ghost[data-mood="thinking"] .thought { opacity: .9; }
.ghost[data-mood="thinking"] .eyes { transform: translate(34px, -30px); }
.ghost[data-mood="caught"] .eyes { transform: scaleY(.3); }
.ghost.is-down .press { transform: translateY(20px); }
@media (prefers-reduced-motion: no-preference) {
  .press { transition: transform .07s ease-out; }
  .eyes { transition: transform .16s ease-out; }
  .thought circle { transition: opacity .15s; }
  .ghost[data-mood="thinking"] .thought circle { animation: puff .5s ease-out backwards; }
  .ghost[data-mood="thinking"] .thought circle:nth-child(2) { animation-delay: .15s; }
  .ghost[data-mood="thinking"] .thought circle:nth-child(3) { animation-delay: .3s; }
  .is-typing .caret.is-on::after { animation: blink 1s steps(1) 3; }
}
@keyframes puff { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .is-waiting .hk-caret { animation: none; } .hk-press, .hk-press .cap, .hk-copied { transition: none; } }
.stage-bar, .desk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.stage-bar { flex-direction: column; min-height: 88px; justify-content: flex-start; }
.state { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 18px; border: 1px solid #51479a; border-radius: 100px; background: var(--surface-2); color: var(--ink); font: 600 15px/1.4 var(--font); cursor: pointer; }
.toggle:hover { border-color: var(--violet-light); }

/* Sections */
.section { padding-block: 104px 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.head > p { color: var(--muted); font-size: 18px; max-width: 34em; }
.trio, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.trio article, .steps li, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.trio article > p:last-child, .steps p, .card li { color: var(--muted); font-size: 16px; }
.trio h3, .steps h3 { margin-bottom: 10px; }
.trio .pick { background: linear-gradient(#4a36c2, #34209c); border-color: #6f5ce6; }
.trio .pick > p:last-child { color: #ece8ff; }
.clip { position: relative; margin-bottom: 24px; padding: 12px 14px; border-radius: 10px; background: #060413; color: var(--quiet); font: 14px/1.5 var(--mono); white-space: nowrap; overflow: hidden; }
.clip-paste { color: #fff; background: #060413 linear-gradient(90deg, #4d3bb3, #4d3bb3) no-repeat 14px 50% / 11.6em 1.6em; }
.clip-typo { text-decoration: underline wavy #ff6b6b 1px; text-underline-offset: 4px; }
.clip-ghost { color: var(--ink); }
.clip i { display: inline-block; width: 2px; height: 1.2em; margin-left: 2px; vertical-align: -.25em; background: var(--violet-light); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; border-radius: 50%; background: var(--field); color: #fff; font: 750 15px/1 var(--display); }
.keys { display: flex; gap: 8px; margin: 18px 0 20px; }
.cap { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 13px; background: var(--violet-light); color: #1c0e63; font: 700 18px/1 var(--display); box-shadow: inset 0 0 0 2px var(--violet), 0 5px 0 #120845; }
.cap.wide { min-width: 70px; }

/* Rhythm */
.desk { padding: 36px; border: 1px solid #51479a; border-radius: 28px; background: var(--surface); }
.sample { font: 500 clamp(19px, 2.2vw, 27px)/1.5 var(--display); max-width: 34em; }
.strip-wrap { margin-top: 30px; }
.strip { display: block; width: 100%; height: 48px; }
.bar { opacity: .34; }
.bar.is-lit { opacity: 1; }
.bar.key { fill: var(--muted); }
.bar.thinking { fill: var(--violet); }
.bar.sentence, .bar.comma { fill: var(--orange); }
.strip-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.strip-key li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; background: var(--muted); }
.strip-key .is-thinking::before { background: var(--violet); }
.strip-key .is-sentence::before { background: var(--orange); }
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.presets button { min-height: 44px; padding: 9px 20px; border: 1px solid #51479a; border-radius: 13px; background: transparent; color: var(--ink); font: 650 15px/1.4 var(--font); cursor: pointer; }
.presets button:hover { border-color: var(--violet-light); }
.presets button[aria-pressed="true"] { background: var(--violet-light); border-color: var(--violet-light); color: #1c0e63; }
.desk-bar { flex-direction: row-reverse; justify-content: flex-end; margin-top: 18px; min-height: 48px; }
.fine { margin-top: 22px; color: var(--quiet); font-size: 13px; }

/* Three moods */
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.moods li { display: grid; gap: 6px; align-content: start; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.moods svg { width: 64px; height: 64px; margin-bottom: 12px; }
.moods b { font: 700 19px/1.3 var(--display); }
.moods span { color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
/* Captures keep their macOS window shadow on transparency. Each shows at most half its pixel width,
   so the file stays at 2x (shared/manifest.json displayWidth). */
.shot { margin: 0; }
.shot img { display: block; width: 100%; max-width: 627px; height: auto; margin-inline: auto; }
.shots { align-items: center; }
/* Copy, press the hotkey, let go: the demo under How it works (typist.js runs it). */
.hotkey-demo { display: grid; gap: 14px; min-width: 0; margin: 0; }
.hk-panel { display: grid; gap: 22px; justify-items: center; padding: 30px 28px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hk-copied { justify-self: start; padding: 4px 12px; border-radius: 100px; background: var(--surface-2); color: #e4deff; font-size: 13px; font-weight: 650; transition: opacity .3s; }
.hk-copied.is-hidden { opacity: 0; }
.hk-field { position: relative; container-type: inline-size; width: 100%; min-height: 176px; padding: 14px 18px 16px; border: 1.5px solid #51479a; border-radius: 14px; background: #060413; }
.hk-label { display: block; margin-bottom: 6px; color: var(--quiet); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.hk-text { display: grid; margin: 0; color: var(--ink); font-size: 19px; line-height: 1.5; }
.hk-text > span { grid-area: 1 / 1; }
.hk-reserve { visibility: hidden; }
.hk-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; border-radius: 1px; background: var(--violet-light); }
.is-waiting .hk-caret { animation: blink 1s steps(1) infinite; }
/* The press: four big keys over the empty field, sized to it (24% of its text width each, at most 100px). */
.hk-press { --key: min(100px, 24cqi); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: min(16px, 2.5cqi); opacity: 0; transform: scale(.9); transition: opacity .22s, transform .22s; pointer-events: none; }
.hk-press.is-shown { opacity: 1; transform: none; }
.hk-press .cap { width: var(--key); min-width: 0; height: var(--key); padding: 0; border-radius: calc(var(--key) * .24); font-size: calc(var(--key) * .42); box-shadow: inset 0 0 0 2px var(--violet), 0 6px 0 #120845; transition: transform .07s, box-shadow .07s, background .07s; }
.hk-press .cap.is-down { transform: translateY(6px); background: #8f7dff; box-shadow: inset 0 0 0 2px #e4deff, 0 0 0 #120845; }
.hk-hint { display: flex; gap: 6px; margin: 0; font-size: 15px; }
.hk-bar { display: flex; justify-content: center; }
.hotkey-demo figcaption { text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 400px) {
  .hk-panel { padding: 22px 18px 26px; }
  .hk-field { min-height: 140px; }
  .hk-text { font-size: 17px; }
}
.app-shot { margin-top: 40px; }
.app-shot img { max-width: 672px; }
.app-shot figcaption { text-align: center; color: var(--muted); font-size: 15px; }

/* House rules and privacy */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card h3 { margin-bottom: 16px; }
.crosses, .dots { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.crosses li, .dots li { position: relative; padding-left: 28px; }
.crosses li::before, .dots li::before { position: absolute; left: 0; top: 0; font-weight: 700; color: var(--violet-light); }
.crosses li::before { content: "✕"; }
.dots li::before { content: "·"; font-size: 1.6em; line-height: 1; }
.privacy-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 64px; padding: 52px; border-radius: 32px; background: linear-gradient(#4a36c2, #34209c); }
.privacy-card .eyebrow, .privacy-card .text-link { color: #e4deff; }
.privacy-card p:not(.eyebrow) { color: #f0edff; }
.privacy-card p + p:not(.eyebrow) { margin-top: 16px; }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.install-steps { counter-reset: step; margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; color: var(--muted); }
.install-steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 66px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.install-steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--violet-light); color: #1c0e63; font: 750 15px/1 var(--display); }
.install-steps b { color: var(--ink); }
.facts { margin: 36px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--quiet); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; padding-bottom: 104px; }
.faq .more { margin-top: 16px; color: var(--muted); font-size: 15px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 650; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--violet-light); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #060413; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 30px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover, .maker a:hover { color: var(--ink); }
.maker { margin-left: auto; }

/* Privacy and support pages */
.doc-body { max-width: 760px; padding-block: 64px 96px; }
.doc-body h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; }
.doc-body h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body p.eyebrow { color: var(--violet-light); }
.doc-body p + p, .doc-body p + ul { margin-top: 12px; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc-body p + ul { margin-top: 12px; }
.doc-body a { color: var(--violet-light); border-bottom: 1px solid rgba(179, 165, 255, .4); }
.doc-body b { color: var(--ink); }
.doc-status, .doc-date { margin: 14px 0 0; font-size: 14px; }
.doc-body .doc-lede { margin: 22px 0 12px; font-size: 19px; color: #dbd5f5; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ghost.is-down .press { transform: none; } }
@media (forced-colors: active) {
  .caret.is-on::after { background: CanvasText; }
  .presets button[aria-pressed="true"] { outline: 3px solid Highlight; }
}
@media (max-width: 900px) {
  .hero, .head, .install, .faq, .privacy-card { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 24px; }
  /* Small screens: the ghost stands above the headline it types, so both are in view. */
  .stage { order: -1; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; justify-items: start; }
  .ghost { width: 132px; }
  .stage-bar { align-items: flex-start; }
  .state { text-align: left; }
  .trio, .steps, .pair, .shots { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 80px; }
  .install-steps { margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; gap: 4px 16px; padding-top: 14px; min-height: 0; }
  .nav nav { order: 3; width: 100%; margin-left: 0; gap: 20px; }
  .nav-cta { margin-left: auto; }
  .lede { font-size: 18px; }
  .moods { grid-template-columns: minmax(0, 1fr); }
  .trio article, .steps li, .card, .moods li { padding: 22px; }
  .desk { padding: 24px 20px; border-radius: 24px; }
  .privacy-card { padding: 32px 24px; border-radius: 26px; }
  .maker { margin-left: 0; }
  .doc-body { padding-top: 40px; }
}
@media (max-width: 400px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav-cta { padding: 6px 12px; font-size: 12px; }
  .nav nav { gap: 16px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .install-steps li { padding-left: 62px; }
}
