/* SpeakMind — overlay demo + section component styles */

/* ============ the floating overlay card (the star) ============ */
.scene {
  position: relative;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, var(--wall-a) 0%, transparent 55%),
    radial-gradient(120% 100% at 100% 100%, var(--wall-c) 0%, transparent 60%),
    var(--wall-b);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(33,26,20,.28), inset 0 1px 0 rgba(255,255,255,.6);
}
.scene-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255,253,249,.5);
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.traffic i:nth-child(1) { background: #ec6a5e; }
.traffic i:nth-child(2) { background: #f4bf4f; }
.traffic i:nth-child(3) { background: #61c554; }
.scene-app {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  display: flex; align-items: center; gap: 8px;
}
.scene-app .dot { width: 6px; height: 6px; border-radius: 50%; }
.scene-body { padding: clamp(20px, 4vw, 40px); min-height: 320px; display: grid; place-items: center; }

/* the overlay panel itself */
.overlay {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -22px rgba(33,26,20,.4), 0 2px 0 rgba(255,255,255,.7) inset;
  overflow: hidden;
  transition: max-width .5s var(--ease);
}
.overlay.wide { max-width: 560px; }

.ov-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; gap: 10px;
  border-bottom: 1px solid var(--hair);
}
.ctx-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--border2);
}
.ctx-chip .g { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; }
.ctx-chip .aware { display: inline-flex; align-items: center; gap: 5px; color: var(--text-faint); font-size: 11px; font-family: var(--font-mono); }
.ctx-chip .aware::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ov-status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--text-faint); display: inline-flex; align-items: center; gap: 7px;
  text-transform: uppercase;
}
.ov-status .led { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); transition: background .3s; }
.ov-status.live .led { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse-led 1.4s var(--ease) infinite; }
.ov-status.ready { color: var(--green); }
.ov-status.ready .led { background: var(--green); }
@keyframes pulse-led { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow);} 50% { box-shadow: 0 0 0 6px rgba(217,72,31,0);} }

/* mode tabs */
.ov-modes { display: flex; gap: 4px; padding: 10px 14px; overflow: hidden; }
.ov-modes .m {
  font-size: 11.5px; font-weight: 600; color: var(--text-faint);
  padding: 5px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  transition: all .25s var(--ease); white-space: nowrap;
}
.ov-modes .m .mi { font-family: var(--font-mono); opacity: .8; }
.ov-modes .m.on { background: var(--accent-soft); color: var(--accent); }

/* mic / waveform area */
.ov-mic { padding: 20px 18px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wave { display: flex; align-items: center; gap: 4px; height: 46px; }
.wave i {
  width: 4px; border-radius: 999px; background: var(--accent);
  height: 8px; transform-origin: center;
}
.wave.live i { animation: bar var(--ease) infinite; }
@keyframes bar { 0%,100% { transform: scaleY(.3);} 50% { transform: scaleY(1);} }
.mic-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px var(--accent-glow);
  position: relative;
}
.mic-btn::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--accent-line); opacity: 0;
}
.mic-btn.live::after { animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .7; transform: scale(.9);} 100% { opacity: 0; transform: scale(1.5);} }
.ov-hint { font-size: 12.5px; color: var(--text-faint); text-align: center; }
.ov-hint kbd {
  font-family: var(--font-mono); font-size: 11px; background: var(--surface2);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--text-dim);
}

/* transcript (listening) */
.transcript { font-size: 16px; line-height: 1.55; color: var(--text); min-height: 48px; text-align: center; padding: 4px 6px; text-wrap: pretty; }
.transcript .w { opacity: 0; animation: wordin .3s var(--ease) forwards; }
@keyframes wordin { from { opacity: 0; filter: blur(3px);} to { opacity: 1; filter: none;} }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* processing */
.proc { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--text-dim); font-size: 13px; padding: 8px 0; }
.proc .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.proc .pm { font-family: var(--font-mono); font-size: 12px; }

/* result */
.ov-result { padding: 16px 18px 20px; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }
.res-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.res-label::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.doc p { font-size: 14.5px; line-height: 1.6; margin-bottom: 10px; }
.doc h4 { font-size: 13px; margin: 12px 0 7px; }
.doc ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.doc li { display: flex; gap: 9px; font-size: 14px; align-items: flex-start; }
.doc li .n { flex: none; width: 19px; height: 19px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; font-family: var(--font-mono); }
.dict-hl { color: var(--accent); font-weight: 600; background: var(--accent-soft); border-radius: 4px; padding: 0 3px; box-decoration-break: clone; }

.prompt-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--hair); }
.prompt-row:last-child { border-bottom: none; }
.prompt-row .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); padding-top: 2px; }
.prompt-row .v { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; color: var(--text-dim); }

.email .subj { font-weight: 600; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); margin-bottom: 10px; }
.email .body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: var(--text-dim); }

.code-block { background: var(--code-bg); border-radius: var(--r-md); padding: 15px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; overflow-x: auto; color: var(--code-text); }
.code-block .kw { color: var(--code-kw); } .code-block .fn { color: var(--code-fn); } .code-block .str { color: var(--code-str); } .code-block .ty { color: var(--code-ty); }

.ov-actions { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--hair); }
.ov-actions .a { flex: 1; font-size: 12.5px; font-weight: 600; padding: 9px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s; }
.ov-actions .a.primary { background: var(--accent); color: #fff; }
.ov-actions .a.ghost { background: var(--surface2); color: var(--text-dim); border: 1px solid var(--border2); }
.ov-foot { display: flex; gap: 7px; padding: 0 18px 16px; flex-wrap: wrap; }
.ov-foot .tag { font-size: 10.5px; font-family: var(--font-mono); color: var(--text-faint); padding: 3px 8px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border2); display: inline-flex; gap: 5px; align-items: center; }
.ov-foot .tag .d { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ============ feature visuals ============ */
.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px);
  align-items: center; padding: clamp(60px, 9vw, 120px) 0;
}
.feat.flip .feat-vis { order: -1; }
@media (max-width: 880px) { .feat, .feat.flip { grid-template-columns: 1fr; gap: 40px; } .feat.flip .feat-vis { order: 0; } }
.feat-copy h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 16px 0 0; text-wrap: balance; }
.feat-copy p { color: var(--text-dim); font-size: 17px; margin-top: 18px; max-width: 46ch; text-wrap: pretty; }
.feat-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-family: var(--font-mono); color: var(--text-dim); margin-top: 22px; }
.feat-tag::before { content: "→"; color: var(--accent); }
.feat-vis {
  position: relative; aspect-ratio: 1/.86; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -30px rgba(33,26,20,.25);
  overflow: hidden; display: grid; place-items: center; padding: 28px;
}

/* context grid */
.ctx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.ctx-card { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 9px; transition: all .4s var(--ease); }
.ctx-card.active { background: var(--surface); border-color: var(--accent-line); box-shadow: 0 10px 26px -12px var(--accent-glow); transform: translateY(-3px); }
.ctx-card .g { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 15px; }
.ctx-card .nm { font-size: 13px; font-weight: 600; }
.ctx-card .hint { font-size: 10.5px; font-family: var(--font-mono); color: var(--text-faint); line-height: 1.3; }
.ctx-card .lang { font-size: 10px; font-family: var(--font-mono); color: var(--accent); opacity: 0; transition: opacity .3s; }
.ctx-card.active .lang { opacity: 1; }

/* memory dictionary visual */
.dict-vis { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.dict-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r-md); transition: all .35s var(--ease); }
.dict-row.pop { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(1);} 40% { transform: scale(1.03); background: var(--accent-soft);} 100% { transform: scale(1);} }
.dict-row .term { font-weight: 600; color: var(--accent); font-size: 14px; }
.dict-row .kind { font-size: 10px; font-family: var(--font-mono); color: var(--text-faint); padding: 2px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border2); }
.dict-row .count { margin-left: auto; font-size: 11.5px; font-family: var(--font-mono); color: var(--text-dim); }

/* modes wheel */
.modes-vis { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; align-content: center; }
.mode-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border2); font-size: 13.5px; font-weight: 600; transition: all .4s var(--ease); }
.mode-pill .mi { font-family: var(--font-mono); color: var(--accent); }
.mode-pill .md { font-size: 10.5px; font-family: var(--font-mono); color: var(--text-faint); font-weight: 400; opacity: 0; max-width: 0; overflow: hidden; transition: all .4s var(--ease); white-space: nowrap; }
.mode-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.04); }
.mode-pill.on .mi { color: #fff; }
.mode-pill.on .md { color: rgba(255,255,255,.85); opacity: 1; max-width: 200px; }

/* ============ stats ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat { padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border2); }
.stat .num { font-size: clamp(38px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat .num .u { font-size: 20px; color: var(--accent); font-weight: 600; }
.stat .lbl { margin-top: 12px; font-size: 14px; font-weight: 600; }
.stat .note { margin-top: 4px; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

/* sparkline */
.spark { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 18px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: var(--accent-soft); transition: height .6s var(--ease); }
.spark i.peak { background: var(--accent); }

/* ============ pricing ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; max-width: 1040px; margin: 0 auto; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -26px rgba(33,26,20,.28); }
.price-card.featured { background: var(--text); color: var(--bg2); border-color: var(--text); box-shadow: 0 30px 70px -28px rgba(33,26,20,.5); }
.price-card.featured .price-name, .price-card.featured .price-amt { color: var(--bg2); }
.price-badge { align-self: flex-start; font-size: 10.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.price-name { font-size: 15px; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.price-amt { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 6px; }
.price-amt .per { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.price-card.featured .per { color: rgba(255,253,249,.6); }
.price-note { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.price-card.featured .price-note { color: rgba(255,253,249,.65); }
.price-reassure { text-align: center; font-size: 12px; margin-top: 10px; color: rgba(255,253,249,.7); }
.price-reassure::before { content: "✓ "; color: var(--green); font-weight: 700; }
.price-tag { font-size: 13.5px; color: var(--text-dim); min-height: 40px; }
.price-card.featured .price-tag { color: rgba(255,253,249,.7); }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 18px 0 22px; }
.price-feats li { font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.price-feats li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card.featured .price-feats li::before { color: #ff8a5c; }
.price-btn { display: block; margin-top: auto; text-align: center; font-weight: 600; font-size: 14.5px; padding: 13px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); transition: all .25s; }
.price-btn.go { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-card.featured .price-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-btn:hover { transform: translateY(-2px); }

/* monthly / annual cycle toggle (Pro card) */
.cycle-toggle { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; margin: 4px 0 2px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border2); font-family: var(--font-mono); }
.cycle-toggle button { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-faint); padding: 5px 12px; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease); }
.cycle-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.cycle-toggle .save { font-size: 9.5px; opacity: .9; }
.price-card.featured .cycle-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.price-card.featured .cycle-toggle button { color: rgba(255,253,249,.6); }
.price-card.featured .cycle-toggle button.on { background: var(--accent); color: #fff; }

/* ============ testimonials ============ */
.tmarquee { display: flex; flex-direction: column; gap: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.trow { display: flex; gap: 18px; width: max-content; }
.trow.a { animation: marquee 46s linear infinite; }
.trow.b { animation: marquee 56s linear infinite reverse; }
.tmarquee:hover .trow { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tcard { width: 360px; flex: none; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tcard .q { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.tcard .who { display: flex; align-items: center; gap: 11px; }
.tcard .av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; flex: none; }
.tcard .nm { font-size: 13.5px; font-weight: 600; }
.tcard .ro { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); }

/* ============ CTA footer ============ */
.cta { text-align: center; padding: clamp(80px, 12vw, 150px) 0 60px; position: relative; }
.cta h2 { font-size: clamp(38px, 6vw, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
.cta .sub { font-size: 19px; color: var(--text-dim); margin: 22px auto 34px; max-width: 40ch; }
.cta-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--accent); display: grid; place-items: center; margin: 0 auto 28px; box-shadow: 0 18px 44px -14px var(--accent-glow); position: relative; }
.cta-mark::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; animation: pulse 2.4s var(--ease) infinite; }
footer { border-top: 1px solid var(--border2); padding: 56px 0 40px; margin-top: 80px; }
.foot-col h5 { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border2); font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }
@media (max-width: 600px) { .foot-bottom { flex-direction: column; gap: 14px; } }
