/* The landing page (src/home.mjs, /demo.js). It follows the site's theme like every page (Light / Dark / Auto in
   the footer; owner, 2026-11-07); the app's recording pill stays dark in both, as in the app. Motion follows the
   app (KoeMotion): answers to a key land in ~0.12 s, windows settle in 0.2 s. */
body.home {
  overflow-x: hidden;
  --surface: light-dark(#f5f5f7, #2c2c2e);
  --red: light-dark(#c4372f, #ff6961);
  --key-top: light-dark(#ffffff, #3a3a3c); --key-bottom: light-dark(#f1f1f3, #2c2c2e); --key-line: light-dark(#d2d2d7, #4a4a4d);
  --key-edge: light-dark(#c2c2c7, #0f0f10); --key-ink: light-dark(#1d1d1f, #f5f5f7); --key-shadow: light-dark(rgba(0, 0, 0, .12), var(--key-shadow));
  --win-edge: light-dark(rgba(0, 0, 0, .16), rgba(0, 0, 0, .6)); --win-drop: light-dark(rgba(0, 0, 0, .14), rgba(0, 0, 0, .5));
  --glow: light-dark(rgba(58, 110, 106, .09), rgba(140, 197, 190, .12)); --bang: light-dark(#d99a00, #febc2e);
  --font: var(--body); --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-press: cubic-bezier(.05, .6, .4, .95);
}
body.home:lang(ja) { --font: var(--body-ja); }
.home .lp-stage.wrap { width: min(1200px, calc(100% - 40px)); max-width: none; }
.home .lp-hero.wrap, .home .lp-get.wrap { width: min(1000px, calc(100% - 40px)); max-width: none; }
/* the demo's sound switch, in the header */
.snd { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.snd:hover { color: var(--ink); border-color: var(--muted); }
.snd[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.snd svg { width: 16px; height: 16px; }
.snd[aria-pressed="true"] .off, .snd[aria-pressed="false"] .on { display: none; }

/* koe LP v2 (proposal A まる, layout A, 2026-11-07).
   The demo comes first: まる, what was said and the app's real recording pill in the middle; the apps koe
   pastes into pile up on the left and right. It starts silent when on screen; sound is one tap away, and it
   stops on a tap, on Esc, off screen or in a background tab. Motion follows the app (KoeMotion). */
/* ---------- stage: decks left and right, the voice in the middle ---------- */
.lp-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr); align-items: stretch; gap: 22px; max-width: 1200px; height: 500px; margin-top: 0; }
.lp-stage::before { content: ""; position: absolute; left: 50%; top: 42%; width: 640px; max-width: 100%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.lp-deck { position: relative; min-width: 0; }
.lp-deck-in { position: absolute; top: 16px; width: 380px; height: calc((100% - 16px) / var(--s, 1)); transform: scale(var(--s, 1)); }
.lp-deck-l .lp-deck-in { right: 0; transform-origin: 100% 0; }
.lp-deck-r .lp-deck-in { left: 0; transform-origin: 0 0; }
.lp-center { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 0; text-align: center; }

/* まる */
.maru { display: block; width: 290px; height: auto; overflow: visible; }
.maru .wave { fill: none; stroke: var(--accent); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.maru .ring { fill: none; stroke: var(--accent); stroke-width: 9; }
.maru .eye { fill: var(--accent); }
.maru .happy path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.maru .o { fill: var(--ink); display: none; }
.maru .happy, .maru .bang { display: none; }
.maru .bang { fill: var(--bang); }
.maru .rec { fill: #ff453a; opacity: 0; transition: opacity .12s; }
.maru .think { fill: var(--muted); opacity: 0; transition: opacity .12s; }
.maru .sweat { fill: var(--accent); opacity: 0; transition: opacity .12s; }
.maru .blink { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.maru.m-listen .rec, .maru.m-oops .rec { opacity: 1; }
.maru.m-oops .sweat { opacity: 1; }
.maru.m-think .think { opacity: 1; }
.maru.m-think .think circle { animation: bob .9s ease-in-out infinite; }
.maru.m-think .think circle:nth-child(2) { animation-delay: .15s; }
.maru.m-think .think circle:nth-child(3) { animation-delay: .3s; }
.maru.m-happy .happy { display: inline; }
.maru.m-happy .open { display: none; }
.maru.m-wow .bang, .maru.m-wow .o { display: inline; }
.maru.m-wow .smile { display: none; }
.maru .sleep path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.maru .sleep, .maru .zz { display: none; }
.maru .zz text { fill: var(--muted); font: 600 22px var(--font); animation: zz 2.4s ease-in-out infinite; }
.maru .zz text:nth-child(2) { font-size: 16px; animation-delay: .5s; }
.maru.m-sleep .sleep, .maru.m-sleep .zz { display: inline; }
.maru.m-sleep .open { display: none; }
.maru.m-sleep.peek .open { display: inline; }
.maru.m-sleep.peek .open .eye { transform: scaleY(.45); transform-box: fill-box; transform-origin: center; }
.maru.m-sleep.peek .sleep, .maru.m-sleep.peek .zz { display: none; }
.maru.pat .happy { display: inline; }
.maru.pat .open { display: none; }
.maru-btn { display: block; padding: 0; border: 0; border-radius: 28px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.maru-btn:hover .ring { stroke: color-mix(in srgb, var(--accent) 80%, var(--paper)); }

/* what was said */
.said { display: grid; align-content: start; gap: 4px; width: 100%; min-height: 5.6em; margin: 10px 0 0; font-size: 1.125rem; line-height: 1.75; overflow-wrap: anywhere; text-wrap: balance; }
.said .lbl:empty { display: none; }
.said .spk { justify-self: center; display: inline-block; padding: 0 9px; font-size: .75rem; border-radius: 999px; background: #7cc142; color: #10240a; font-weight: 700; }
.said .spk[data-who="robot"] { background: #a1a1a6; color: #1c1c1e; }
.said .ws { transition: opacity .18s; }
.said.gone .ws { opacity: 0; }
.said .w { animation: w-in .14s ease-out both; transition: color .15s, opacity .15s; }
.said .w.is-f { color: var(--muted); }
.said .w.cut-f { opacity: .4; text-decoration: line-through; }
.said .w.cut-x { color: var(--red); opacity: .8; text-decoration: line-through; text-decoration-thickness: 2px; }
.said.done .w:not(.cut-f):not(.cut-x) { color: var(--accent); }

/* the app's recording pill (RecordingIndicator.swift) */
.hud { height: 32px; margin-top: 6px; pointer-events: none; }
.pill {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border-radius: 16px; white-space: nowrap;
  background: rgba(18, 18, 18, .92); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 8px 24px rgba(0, 0, 0, .35);
  color: #f5f5f7; font-size: 11px; transform-origin: 50% 100%; opacity: 0; transform: scale(.6);
  transition: opacity .12s ease-in, transform .12s ease-in;
}
.hud[data-state="rec"] .pill, .hud[data-state="think"] .pill { opacity: 1; transform: none; transition: opacity .12s var(--ease-press), transform .12s var(--ease-press); }
.rdot { flex: none; width: 7px; height: 7px; border: 1.5px solid #ff3b30; border-radius: 50%; transition: background-color .12s var(--ease-press); }
.hud[data-live] .rdot { background: #ff3b30; }
.bars { display: flex; align-items: center; gap: 2.5px; height: 22px; opacity: .4; transition: opacity .12s var(--ease-press); }
.hud[data-live] .bars { opacity: .92; }
.bars i { width: 2.5px; height: 2.5px; border-radius: 1.25px; background: #fff; }
.tdots { display: none; align-items: center; gap: 5px; height: 22px; padding: 0 2px; }
.tdots i { width: 5px; height: 5px; border-radius: 50%; background: #8cc5be; opacity: .45; animation: tdot .9s linear infinite; }
.tdots i:nth-child(2) { animation-delay: .143s; }
.tdots i:nth-child(3) { animation-delay: .286s; }
.hud[data-state="think"] .rdot, .hud[data-state="think"] .bars, .hud[data-state="think"] .pword { display: none; }
.hud[data-state="think"] .tdots { display: flex; }
.pword { color: rgba(235, 235, 245, .6); }
.pword:empty { display: none; }

/* ⌥Space and the two controls */
.controls { display: grid; justify-items: center; gap: 10px; margin-top: 16px; }
.keys { display: inline-flex; align-items: flex-end; gap: 7px; padding: 3px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.key { position: relative; display: block; height: 46px; border-radius: 9px; background: linear-gradient(var(--key-top), var(--key-bottom)); border: 1px solid var(--key-line); box-shadow: 0 3px 0 var(--key-edge), 0 8px 18px var(--key-shadow); color: var(--key-ink); transition: translate .06s, box-shadow .06s; }
.key-opt { width: 74px; height: 56px; }
.key-space { width: 124px; }
.key small { position: absolute; font-size: .6875rem; font-weight: 500; line-height: 1; }
.key .k-sym { top: 7px; right: 8px; font-size: .875rem; }
.key .k-name { left: 8px; bottom: 7px; }
.keys.down .key, .keys:active .key { translate: 0 3px; box-shadow: 0 0 0 var(--key-edge), 0 3px 8px var(--key-shadow); }
.keys { position: relative; }
.keys.nudge .key { animation: nudge .5s ease-in-out; }

/* the text on its way from the middle to the app */
.fly { position: fixed; z-index: 30; margin: 0; padding: 4px 8px; border-radius: 8px; background: rgba(58, 110, 106, .9); color: #fff; font-size: 15px; line-height: 1.4; pointer-events: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); will-change: transform, opacity; }


/* ---------- windows (compact, at 380 px; the deck scales them) ---------- */
.win {
  position: absolute; left: 0; width: 380px; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px;
  box-shadow: 0 0 0 .5px var(--win-edge), 0 18px 44px var(--win-drop), 0 2px 6px var(--win-drop);
  font: 400 13px/1.42 var(--font); color: #1d1d1f; text-align: left;
  transition: transform .22s var(--ease-out), top .22s var(--ease-out), filter .22s;
  animation: win-in .22s var(--ease-out) both;
}
.win.back { filter: brightness(.72) saturate(.85); }
.win.back .lights i, .win.rest .lights i { background: #c8c8cc !important; border-color: #b4b4b8 !important; }
.win.leaving { animation: win-out .2s ease-in both; }
.win.hit { box-shadow: 0 0 0 2px var(--accent), 0 18px 44px var(--win-drop); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; border: .5px solid rgba(0, 0, 0, .18); }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: currentColor; animation: caret 1s steps(1) infinite; }
.txt.flash { animation: flash .9s ease-out; border-radius: 3px; }
.ph { color: #8b8b8f; }

/* chat (Slack-like) */
.w-chat { background: #fff; }
.w-chat .tbar { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px; background: #350d36; }
.w-chat .search { flex: 1; height: 18px; margin: 0 26px; border-radius: 5px; background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .75); font-size: 10.5px; line-height: 18px; text-align: center; }
.w-chat .cols { display: grid; grid-template-columns: 44px 1fr; }
.w-chat .rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; background: #3f0e40; }
.w-chat .ws { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #fff; color: #3f0e40; font-weight: 800; font-size: 13px; }
.w-chat .ri { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.w-chat .ri.on { background: rgba(255, 255, 255, .2); color: #fff; }
.w-chat .main { display: flex; flex-direction: column; min-width: 0; color: #1d1c1d; }
.w-chat .head { display: flex; align-items: center; height: 32px; padding: 0 12px; border-bottom: 1px solid #e8e8e8; font-weight: 700; font-size: 14px; }
.w-chat .head .n { margin-left: auto; font-weight: 400; font-size: 11px; color: #616061; }
.w-chat .list { display: flex; flex-direction: column; justify-content: flex-end; min-height: 96px; padding: 4px 0; }
.w-chat .msg { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 4px 12px; }
.w-chat .msg.new { animation: msg-in .18s var(--ease-out) both; background: #fffbe8; transition: background-color 1.2s; }
.w-chat .msg.new.settled { background: transparent; }
.w-chat .av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 12px; }
.w-chat .who { font-weight: 700; }
.w-chat .when { margin-left: 6px; color: #616061; font-size: 11px; }
.w-chat .msg p { margin: 0; overflow-wrap: anywhere; }
.w-chat .comp { margin: 4px 12px 10px; border: 1px solid #a5a5a7; border-radius: 8px; }
.w-chat .tools { display: flex; align-items: center; gap: 2px; height: 24px; padding: 0 5px; border-radius: 8px 8px 0 0; background: #f8f8f8; color: #616061; font-size: 11.5px; }
.w-chat .tools span { display: grid; place-items: center; min-width: 20px; }
.w-chat .tools .sep { min-width: 1px; width: 1px; height: 13px; background: #ddd; margin: 0 3px; }
.w-chat .field { min-height: 30px; padding: 6px 9px 2px; overflow-wrap: anywhere; }
.w-chat .cbot { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 5px 0 8px; color: #616061; font-size: 12px; }
.w-chat .cbot .l { display: flex; gap: 9px; }
.w-chat .send { display: grid; place-items: center; width: 26px; height: 21px; border-radius: 4px; color: #9a9a9c; font-size: 11px; transition: background-color .12s, color .12s; }
.w-chat .send.on { background: #007a5a; color: #fff; }

/* mail (webmail compose) */
.w-mail { background: #fff; color: #1f1f1f; }
.w-mail .bbar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; height: 26px; padding: 0 10px; background: #e9ecef; border-bottom: 1px solid #d5d7da; }
.w-mail .url { justify-self: center; width: 70%; height: 17px; margin-right: 46px; border-radius: 5px; background: #fff; color: #5f6368; font-size: 10px; line-height: 17px; text-align: center; }
.w-mail .chead { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px 0 14px; background: #f2f6fc; font-weight: 500; }
.w-mail .chead i { font-style: normal; color: #444746; letter-spacing: 7px; font-size: 11px; }
.w-mail .crow { display: flex; align-items: center; gap: 7px; min-height: 29px; margin: 0 14px; border-bottom: 1px solid #f1f1f1; color: #444746; }
.w-mail .chip { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px 0 2px; border: 1px solid #c4c7c5; border-radius: 11px; color: #1f1f1f; font-size: 12px; }
.w-mail .chip u { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #0b57d0; color: #fff; font-size: 9px; text-decoration: none; }
.w-mail .subj { color: #1f1f1f; }
.w-mail .cbody { min-height: 74px; padding: 8px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.w-mail .cfoot { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; color: #444746; font-size: 13px; }
.w-mail .sendb { display: inline-flex; align-items: center; height: 30px; border-radius: 15px; background: #0b57d0; color: #fff; font-size: 12.5px; font-weight: 500; overflow: hidden; transition: filter .12s, transform .09s; }
.w-mail .sendb span { padding: 0 13px 0 18px; }
.w-mail .sendb i { padding: 0 8px; border-left: 1px solid rgba(255, 255, 255, .35); font-style: normal; font-size: 9px; line-height: 30px; }
.w-mail .sendb.press { transform: scale(.95); filter: brightness(.9); }
.w-mail .inbox { position: relative; min-height: 190px; padding-bottom: 46px; animation: msg-in .18s var(--ease-out) both; }
.w-mail .row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 8px; align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid #f1f3f4; font-size: 12px; white-space: nowrap; }
.w-mail .row b, .w-mail .row span { overflow: hidden; text-overflow: ellipsis; }
.w-mail .row b { font-weight: 600; }
.w-mail .row b em { font-style: normal; color: #5f6368; font-weight: 400; }
.w-mail .row span { color: #5f6368; }
.w-mail .row span i { font-style: normal; color: #1f1f1f; }
.w-mail .row time { text-align: right; color: #5f6368; font-size: 11px; }
.w-mail .row.mine { background: #fffbe8; }
.w-mail .toast { position: absolute; left: 12px; bottom: 10px; padding: 8px 13px; border-radius: 5px; background: #303030; color: #f2f2f2; font-size: 12px; animation: msg-in .18s var(--ease-out) .1s both; }

/* terminal */
.w-term { background: #1e1e1e; color: #e6e6e6; }
.w-term .tbar { position: relative; display: flex; align-items: center; height: 24px; padding: 0 10px; background: linear-gradient(#3a3a3a, #323232); border-bottom: 1px solid #111; }
.w-term .ttl { position: absolute; left: 0; right: 0; text-align: center; color: #a8a8a8; font-size: 11px; font-weight: 600; pointer-events: none; }
.w-term .tb { padding: 6px 9px 8px; font: 11.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.w-term .tb p { margin: 0; }
.w-term .dim { color: #8a8a8a; }
.w-term .ok { color: #5fd38d; }
.w-term .pr { color: #8cc5be; }
.w-term .box { margin: 4px 0; padding: 3px 8px; border: 1px solid #555; border-radius: 5px; }
.w-term .box .gt { color: #9a9a9a; }
.w-term .out { animation: msg-in .18s var(--ease-out) both; }

/* messages */
.w-msgs { background: #fff; }
.w-msgs .tbar { position: relative; display: flex; align-items: center; height: 44px; padding: 0 10px; border-bottom: 1px solid #e5e5ea; background: #f6f6f6; }
.w-msgs .to { position: absolute; left: 0; right: 0; display: grid; justify-items: center; gap: 1px; font-size: 10px; color: #1d1d1f; pointer-events: none; }
.w-msgs .to u { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(#a5aab3, #858a93); color: #fff; font-size: 10px; font-weight: 600; text-decoration: none; }
.w-msgs .thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 120px; padding: 8px 12px; }
.w-msgs .stamp { align-self: center; color: #8e8e93; font-size: 10px; margin-bottom: 2px; }
.w-msgs .b { max-width: 78%; padding: 6px 11px; border-radius: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.w-msgs .b.in { align-self: flex-start; background: #e9e9eb; color: #000; }
.w-msgs .b.out { align-self: flex-end; background: #0a84ff; color: #fff; }
.w-msgs .b.new { animation: bub-in .2s var(--ease-out) both; transform-origin: 100% 100%; }
.w-msgs .delivered { align-self: flex-end; color: #8e8e93; font-size: 9.5px; padding-right: 6px; }
.w-msgs .inbar { display: flex; align-items: center; gap: 7px; padding: 6px 10px 10px; }
.w-msgs .plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e9e9eb; color: #8e8e93; font-size: 15px; }
.w-msgs .inp { flex: 1; min-height: 26px; padding: 3px 11px; border: 1px solid #c7c7cc; border-radius: 14px; overflow-wrap: anywhere; }

/* notes */
.w-notes { background: #fff; }
.w-notes .tbar { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 10px; border-bottom: 1px solid #e5e5e5; background: #f7f7f7; color: #8e8e93; font-size: 12px; }
.w-notes .note { padding: 10px 16px 14px; }
.w-notes .date { text-align: center; color: #8e8e93; font-size: 10px; margin-bottom: 6px; }
.w-notes h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.w-notes .nb { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- headline (under the demo) ---------- */
.lp-hero { display: grid; justify-items: center; gap: 12px; padding-block: 52px 0; text-align: center; }
.lp-hero h1 { margin: 0; max-width: 15em; font: 700 clamp(2.1rem, 5.6vw, 3.75rem)/1.08 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.lp-offer { display: flex; justify-content: center; gap: clamp(28px, 7vw, 72px); margin: 14px 0 0; }
.lp-offer div { display: grid; justify-items: center; align-content: start; gap: 2px; }
.lp-offer dt { color: var(--muted); font-size: .875rem; }
.lp-offer dd { margin: 0; font: 700 clamp(1.6rem, 4vw, 2.25rem)/1.15 var(--display); letter-spacing: -.01em; }
.lp-offer dd small { font-size: .5em; font-weight: 600; color: var(--muted); }
.lp-offer .note { color: var(--accent); font: 500 .8125rem/1.4 var(--font); letter-spacing: 0; }

/* ---------- get koe ---------- */
.lp-get { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.lp-dl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 30px; font-size: 1.0625rem; border-radius: 12px; background: var(--accent-fill); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-dl:hover { background: var(--accent-fill-hover); }
.lp-cmd { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; font: 14px/1.4 var(--mono); }
.lp-cmd .dollar { color: var(--muted); user-select: none; }
.lp-cmd code { min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--ink); }
.lp-copy { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.lp-copy:hover { background: var(--surface); color: var(--ink); }
.lp-copy svg { width: 16px; height: 16px; }
.lp-copy.ok { color: var(--accent); }
.lp-req { margin: 0; color: var(--muted); font-size: .8125rem; text-align: center; }
/* ---------- phones and narrow windows: the voice first, one deck under it ---------- */
@media (max-width: 860px) {
  .lp-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 0; height: auto; gap: 8px; }
  .lp-stage::before { top: 22%; }
  .lp-center { order: 1; }
  .lp-deck-l { order: 2; }
  .lp-deck-r { display: none; }
  .lp-deck-l .lp-deck-in { left: 50%; right: auto; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--s, 1)); }
  .maru { width: 210px; margin-top: 0; }
  .lp-center { padding-bottom: 0; }
  .said { min-height: 3.4em; margin-top: 4px; font-size: 1.0625rem; }
  .controls { margin-top: 12px; }
  .lp-hero { padding-top: 28px; }
}

@keyframes win-in { from { opacity: 0; transform: var(--t) translateY(14px) scale(.96); } }
@keyframes win-out { to { opacity: 0; transform: var(--t) translateY(-10px) scale(.94); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes bub-in { from { opacity: 0; transform: scale(.85); } }
@keyframes flash { from { background: rgba(58, 110, 106, .3); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes tdot { 0%, 50%, 100% { opacity: .45; transform: none; } 25% { opacity: 1; transform: translateY(-3px); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
@keyframes bob { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes w-in { from { opacity: 0; } }
@keyframes zz { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes nudge {
  0%, 100% { translate: 0 0; box-shadow: 0 3px 0 var(--key-edge), 0 8px 18px var(--key-shadow); }
  35% { translate: 0 2px; box-shadow: 0 1px 0 var(--key-edge), 0 4px 10px var(--key-shadow); }
}
@keyframes invite { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.w-notes .tbar .tools { margin-left: auto; }

/* phones: the windows' row opens when the first window appears */
/* phones: the windows' row is always there (the first window waits in it), so nothing below moves */
@media (max-width: 860px) {
  .lp-stage, .lp-stage.has-wins { grid-template-rows: auto 300px; }
  .lp-deck { overflow: hidden; margin-inline: -4px; padding-inline: 4px; }
  .win { max-height: 270px; }
  .w-chat .list, .w-msgs .thread { min-height: 0; }
  .maru { margin-bottom: 6px; }
  /* a fixed-height caption: long dictations scroll up inside it instead of pushing the page down */
}
.lp-cmd code { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; }
.lp-get { padding-bottom: 28px; }
/* room between the recording pill and ⌥ (the prototype's controls row) */
.lp-center > .keys { margin-top: 18px; }
@media (max-width: 860px) { .lp-center > .keys { margin-top: 14px; } }

/* inactive windows on the light page: a soft grey instead of the dark page's dimming */
:root[data-theme="light"] .win.back { filter: brightness(.95) saturate(.75); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .win.back { filter: brightness(.95) saturate(.75); } }
/* what was said: a little more room between the letters (owner, 2026-11-07) */
.said .ws { letter-spacing: .02em; }
.said .ws:lang(ja) { letter-spacing: .07em; }
/* only the window in front has a text cursor, as on a Mac */
.win.back .caret, .win.rest .caret { display: none; }
/* crisp text in the windows: no filter on the window in front, and greyscale antialiasing like macOS */
.win { -webkit-font-smoothing: antialiased; }

/* まる peeks at ⌥ while asleep (the invite) */
.maru.m-sleep.peek-key .open { display: inline; }
.maru.m-sleep.peek-key .open .eye { transform: scaleY(.6); transform-box: fill-box; transform-origin: center; }
.maru.m-sleep.peek-key .sleep, .maru.m-sleep.peek-key .zz { display: none; }
/* the playful bits: reactions, someone typing, a tapback, typing dots */
.w-chat .reacts { display: flex; gap: 4px; margin-top: 4px; }
.w-chat .react { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border: 1px solid #c7ddf0; border-radius: 10px; background: #e8f2fa; color: #1264a3; font-size: 11px; animation: pop .25s cubic-bezier(.2, 1.6, .4, 1) both; }
.w-chat .react b { font-weight: 600; }
.w-chat .typing { margin: -6px 12px 6px; color: #616061; font-size: 10.5px; font-style: italic; }
.w-msgs .b { position: relative; }
.w-msgs .tap { position: absolute; top: -10px; left: -10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e9e9eb; box-shadow: 0 0 0 2px #fff; font-size: 11px; animation: pop .25s cubic-bezier(.2, 1.6, .4, 1) both; }
.w-msgs .b.dots { display: flex; gap: 3px; padding: 9px 11px; }
.w-msgs .b.dots i { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; animation: tdot .9s linear infinite; }
.w-msgs .b.dots i:nth-child(2) { animation-delay: .15s; }
.w-msgs .b.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
/* windows keep their size: the newest messages stay at the bottom, older ones scroll off the top */
.win { max-height: 272px; }
.w-chat .cols { flex: 1; min-height: 0; }
.w-chat .main { min-height: 0; }
.w-chat .list { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.w-msgs .thread { flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* inside a capped window the newest content stays: lists and terminal output give up their top, never the
   composer, input bar or prompt at the bottom */
.w-chat .cols { grid-template-rows: minmax(0, 1fr); }
.w-chat .main { overflow: hidden; }
.w-chat .comp, .w-msgs .inbar { flex: none; }
.w-term .tb { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.w-term .tb > * { flex: none; }

/* phones (owner, 2026-11-07, layout A): one compact column — the window's place on top, then まる, what was
   said, the pill and ⌥ — about two thirds of the screen, so the heading and prices show in the bottom third. The window's slot is always there
   (empty until ⌥ is pressed), so nothing moves when it appears. */
@media (max-width: 860px) {
  .lp-stage, .lp-stage.has-wins { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: 0; }
  .lp-center { display: contents; }
  .lp-stage > .lp-center > * { justify-self: center; }
  .maru-btn { order: 2; margin-top: 14px; }
  .maru { width: clamp(112px, 18svh, 150px); margin: 0; }
  .said { order: 3; justify-self: stretch; display: block; height: clamp(3.3em, 8svh, 4.9em); margin-top: 6px; overflow: hidden; font-size: .875rem; line-height: 1.6; }
  .lp-deck-l { order: 1; height: clamp(150px, 24svh, 200px); margin: 4px 0 0; padding: 0; overflow: visible; }
  .lp-deck-l .lp-deck-in { top: 4px; left: 50%; right: auto; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--s, .76)); height: calc((100% - 4px) / var(--s, .76)); }
  .lp-deck-r { display: none; }
  .win { max-height: 254px; animation: win-rise .34s cubic-bezier(.2, .9, .25, 1) both; }
  .hud { order: 4; margin-top: 10px; }
  .lp-center > .keys { order: 5; margin-top: 12px; }
  .lp-stage::before { top: 30%; }
  .home .lp-hero { padding-top: 32px; }
}
@keyframes win-rise { from { opacity: 0; transform: var(--t) translateY(24px) scale(.94); } 60% { opacity: 1; } }

/* short phones (iPhone SE): the window shrinks with its slot so the heading still fits on the first screen */
@media (max-width: 860px) and (max-height: 720px) {
  .home .lp-hero { padding-top: 8px; }
  .home .lp-hero h1 { font-size: 1.9rem; }
}

.w-chat .main { position: relative; }
.w-chat .typing { position: absolute; left: 12px; bottom: 0; margin: 0; }
/* the compose window keeps its Send row: only the body gives up room */
.w-mail .cmp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.w-mail .chead, .w-mail .crow, .w-mail .cfoot { flex: none; }
.w-mail .cbody { flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* a scrolled caption fades its top line out instead of slicing it */
.said.scrolled { -webkit-mask-image: linear-gradient(transparent, #000 1.4em); mask-image: linear-gradient(transparent, #000 1.4em); }
