/* SpeakMind — hero showcase: a real app window that RECEIVES the dictated text,
   with the floating overlay docked over it. The "magic moment". */

.showcase { position: relative; width: 100%; }

.sc-window {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 40px 90px -40px rgba(33,26,20,.4),
    0 12px 30px -18px rgba(33,26,20,.2);
}

/* window chrome */
.sc-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(#fbf9f4, #f6f3ec);
}
.sc-chrome .traffic { display: flex; gap: 7px; }
.sc-chrome .traffic i { width: 11px; height: 11px; border-radius: 50%; }
.sc-chrome .traffic i:nth-child(1) { background: #ec6a5e; }
.sc-chrome .traffic i:nth-child(2) { background: #f4bf4f; }
.sc-chrome .traffic i:nth-child(3) { background: #61c554; }
.sc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  padding: 4px 12px 4px 8px; border-radius: 8px; background: #fffdf9;
  border: 1px solid var(--border2);
}
.sc-tab .g { width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 10px; }
.sc-chrome .spacer { flex: 1; }
.sc-chrome .meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

/* app body — fixed height stage so the floating overlay has room */
.sc-app { position: relative; height: 380px; overflow: hidden; background: #fffdf9; }
@media (max-width: 600px) { .sc-app { height: 340px; } }

/* generic doc/editor padding */
.sc-pad { padding: 26px 30px; }

/* ---- Notion doc skin ---- */
.nt-crumb { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 18px; display: flex; gap: 7px; align-items: center; }
.nt-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--text); }
.nt-body p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 10px; }
.nt-body h4 { font-size: 14px; font-weight: 700; margin: 14px 0 8px; }
.nt-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nt-body li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; color: var(--text); }
.nt-body li .chk { flex: none; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--accent-line); margin-top: 2px; position: relative; }
.nt-body li .chk::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--accent); opacity: 0; transition: opacity .4s; }
.inserted .nt-body li .chk::after { opacity: 1; }

/* ---- Cursor code skin ---- */
.cs-app { background: #171110; }
.cs-gutter-row { display: grid; grid-template-columns: 38px 1fr; }
.cs-ln { color: rgba(242,232,224,.28); font-family: var(--font-mono); font-size: 12.5px; text-align: right; padding-right: 12px; user-select: none; line-height: 1.7; }
.cs-code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--code-text); white-space: pre; }
.cs-code .kw { color: var(--code-kw); } .cs-code .fn { color: var(--code-fn); } .cs-code .str { color: var(--code-str); } .cs-code .ty { color: var(--code-ty); }

/* ---- Gmail compose skin ---- */
.gm-head { font-size: 13px; font-weight: 700; color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 0; }
.gm-field { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.gm-field .lab { color: var(--text-faint); width: 56px; flex: none; }
.gm-field .val { color: var(--text); font-weight: 500; }
.gm-body { font-size: 14px; line-height: 1.6; color: var(--text-dim); white-space: pre-wrap; padding-top: 14px; }

/* ---- ChatGPT skin ---- */
.gpt-app { background: #fbfbfa; }
.gpt-msg { max-width: 86%; margin-left: auto; background: var(--surface2); border: 1px solid var(--border2); border-radius: 16px 16px 4px 16px; padding: 13px 15px; }
.gpt-prompt-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 5px 0; }
.gpt-prompt-row .k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); padding-top: 2px; }
.gpt-prompt-row .v { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); white-space: pre-wrap; }
.gpt-inputbar { position: absolute; left: 24px; right: 24px; bottom: 18px; height: 44px; border-radius: 22px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: var(--text-faint); }
.gpt-empty { position: absolute; inset: 0 0 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text-faint); font-size: 14px; }
.gpt-logo { width: 44px; height: 44px; border-radius: 50%; background: #10a37f; color: #fff; display: grid; place-items: center; font-size: 20px; }

/* staggered insert reveal */
.ins { opacity: 0; transform: translateY(8px); }
.inserted .ins { animation: insIn .5s var(--ease) forwards; }
@keyframes insIn { to { opacity: 1; transform: none; } }
.inserted .ins-1 { animation-delay: .05s; }
.inserted .ins-2 { animation-delay: .18s; }
.inserted .ins-3 { animation-delay: .31s; }
.inserted .ins-4 { animation-delay: .44s; }
.inserted .ins-5 { animation-delay: .57s; }
.inserted .ins-6 { animation-delay: .70s; }

/* idle cursor caret in the doc */
.doc-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -3px; animation: blink 1.1s steps(2) infinite; }

/* ---- floating overlay dock over the window ---- */
.sc-dock {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(86%, 380px); z-index: 5;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.sc-dock.hide { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
.sc-pill {
  background: rgba(255,253,249,.86);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 44px -18px rgba(33,26,20,.45);
  overflow: hidden;
}
.sc-pill-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; gap: 10px; }
.sc-pill .transcript { font-size: 13px; min-height: 20px; padding: 0 16px 2px; text-align: center; color: var(--text-dim); }
.sc-pill .transcript .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
.sc-listen-cap { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); text-align: center; padding: 0 14px 12px; }
.sc-pill .ctx-chip { font-size: 12px; padding: 4px 10px 4px 6px; }
.sc-pill .ctx-chip .g { width: 17px; height: 17px; font-size: 9.5px; }
.sc-pill .ov-status { font-size: 11px; }

/* ---- the signal strip: cancel · waveform · finish (real OverlayView look) ---- */
.sc-strip {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  padding: 6px 16px 4px; min-height: 42px;
}
.sig-btn {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px; font-size: 12px; line-height: 1;
  transition: transform .25s var(--ease), background .25s;
}
.sig-btn.quiet { background: rgba(255,255,255,.55); border: 1px solid var(--border2); color: var(--text-faint); }
.sig-btn.primary { background: var(--accent); border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 700; }
.sig-btn:hover { transform: scale(1.07); }

/* center-out waveform, accent-hued (scaled up from the app's 30×18 strip) */
.sig-wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.sig-wave i {
  width: 3px; height: var(--h); border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent-line));
  transform-origin: center; transform: scaleY(.4);
  animation: sigbar var(--ease) infinite alternate;
}
.sig-wave.dim i { animation: none; transform: scaleY(.55); opacity: .5; }
@keyframes sigbar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* processing: spinner + one precise word in a white capsule */
.sig-spin {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--accent-soft); border-top-color: var(--accent);
  animation: sigspin .7s linear infinite;
}
@keyframes sigspin { to { transform: rotate(360deg); } }
.proc-word {
  font-size: 13px; font-weight: 700; color: var(--text);
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid var(--border2);
}

/* inserted toast */
.sc-toast {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 6; opacity: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg2);
  font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(33,26,20,.5);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.sc-toast .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- resting docklet (idle + after insert) ---- */
.sc-dock-rest {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* ---- live Context-Aware + Memory Dictionary footer (processing) ---- */
.sc-meta {
  padding: 11px 14px 13px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
.sc-meta-row b { color: var(--text); font-weight: 700; }
.sc-meta-row .dim { color: var(--text-faint); }
.sc-meta-row .ic {
  flex: none;
  width: 17px; height: 17px;
  border-radius: 5px;
  display: grid; place-items: center;
  color: #fff; font-size: 9.5px;
  margin-top: 1px;
}
.sc-meta-row .ic.dict { background: var(--accent-soft); color: var(--accent); }
.sc-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
