/* ==========================================================================
   Krovi website — home page components
   hero + laptop stage · stats · live widgets · showcase · tool explorer ·
   voice · keyboard · privacy · pricing · FAQ · download CTA
   ========================================================================== */

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(44px, 7vw, 92px) 0 0; overflow: clip; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 880px; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(56% 52% at 50% 0%, light-dark(rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0.09)), transparent 72%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(52% 50% at 50% 20%, #000, transparent 78%);
  mask-image: radial-gradient(52% 50% at 50% 20%, #000, transparent 78%);
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin-top: 24px; max-width: 13.5em; }
.hero .lede { max-width: 44rem; margin: 24px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 0.88rem; color: var(--text-3);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.hero-meta li:first-child::before { display: none; }

/* ---------- laptop stage (the showpiece) ---------- */
.stage-wrap { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 76px); }
.stage { margin: 0; }
.js .stage.reveal { transform: translateY(46px) scale(0.955); transform-origin: 50% 100%; }
.js .stage.reveal.in { transform: none; }
.device { width: min(1060px, 100%); margin-inline: auto; }
.device-lid {
  position: relative; padding: 11px 11px 13px;
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(180deg, #2a2a2e, #0b0b0c 40%);
  box-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, 0.55), rgba(255, 255, 255, 0.16)), 0 1px 0 rgba(255, 255, 255, 0.25) inset, var(--shadow-l);
}
.cam { position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #323237; box-shadow: 0 0 0 1px #000 inset; }
.screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 11px;
  background: #0a0a0b; --s: 0.5; isolation: isolate;
}
.vscreen { position: absolute; left: 0; top: 0; width: 1152px; height: 720px; transform-origin: 0 0; transform: scale(var(--s)); }
.device-base {
  position: relative; height: 15px; width: 112%; margin: 0 0 0 -6%;
  border-radius: 2px 2px 22px 22px / 2px 2px 14px 14px;
  background: linear-gradient(180deg, light-dark(#e3e3e8, #3a3a3f), light-dark(#b8b8c0, #1d1d20));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 24px 40px -16px rgba(0, 0, 0, 0.45);
}
.device-base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; margin-left: -8%;
  border-radius: 0 0 8px 8px; background: light-dark(#a9a9b2, #121214);
}

/* the desktop inside the laptop: wallpaper, faint windows, taskbar (fixed 1152x720 canvas) */
.wall {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 90% at 10% 6%, light-dark(#ffffff, #3d3d44), transparent 62%),
    radial-gradient(60% 80% at 94% 94%, light-dark(#d5d8e0, #2b2b31), transparent 64%),
    linear-gradient(155deg, light-dark(#eef0f4, #1b1b1f), light-dark(#c9ced8, #060607));
}
.wall::before {
  content: ""; position: absolute; width: 980px; height: 980px; left: 50%; top: 58%; margin: -490px 0 0 -490px;
  border-radius: 50%; filter: blur(34px); transform: rotate(-16deg);
  background: conic-gradient(from 30deg, transparent 0 6%, light-dark(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.075)) 13%, transparent 25% 50%, light-dark(rgba(60, 70, 90, 0.1), rgba(255, 255, 255, 0.05)) 62%, transparent 76%);
}
.wall::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 120%, light-dark(rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.55)), transparent 60%);
}
.bgwin {
  position: absolute; border-radius: 13px; overflow: hidden;
  background: light-dark(rgba(255, 255, 255, 0.5), rgba(34, 34, 38, 0.55));
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.1));
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.bgwin-1 { left: 74px; top: 150px; width: 540px; height: 380px; }
.bgwin-2 { left: 520px; top: 226px; width: 520px; height: 340px; }
.bgwin-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.07)); }
.bgwin-bar i { width: 10px; height: 10px; border-radius: 50%; background: light-dark(rgba(0, 0, 0, 0.14), rgba(255, 255, 255, 0.2)); }
.bgwin .ln { display: block; height: 9px; margin: 15px 22px 0; border-radius: 5px; background: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.09)); }
.bgwin .ln.w40 { width: 40%; } .bgwin .ln.w55 { width: 55%; } .bgwin .ln.w70 { width: 70%; } .bgwin .ln.w85 { width: 85%; }
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 13px;
  background: light-dark(rgba(246, 246, 249, 0.72), rgba(26, 26, 30, 0.72));
  border-top: 1px solid light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
}
.taskbar i { width: 25px; height: 25px; border-radius: 7px; background: light-dark(rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.16)); }
.taskbar i:first-child { background: light-dark(rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.5)); }

/* static fallback / loading state */
.poster { position: absolute; inset: 0; z-index: 2; transition: opacity 0.55s var(--ease) 0.1s, visibility 0s linear 0.65s; }
.stage.is-ready .poster { opacity: 0; visibility: hidden; }
.pz-pill {
  position: absolute; top: 16px; left: 50%; width: 400px; height: 44px; margin-left: -200px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  border-radius: 22px; background: var(--pill-bg); color: var(--pill-fg); font-size: 13px; font-weight: 560;
  box-shadow: var(--pill-shadow);
}
.pz-pill .l, .pz-pill .r { display: inline-flex; align-items: center; gap: 8px; }
.pz-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: breathe 2.4s ease-in-out infinite; }
.pz-pill .mut { color: var(--pill-fg-2); font-weight: 480; }
.pz-load {
  position: absolute; top: 76px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 99px;
  font-size: 13px; color: light-dark(#3a3a3d, #d6d6db);
  background: light-dark(rgba(255, 255, 255, 0.6), rgba(30, 30, 34, 0.6));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pz-load::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--text); animation: spin 0.8s linear infinite; }
.pz-panel {
  display: none; position: absolute; top: 16px; left: 126px; width: 900px; height: 620px;
  grid-template-columns: 66px 1fr; overflow: hidden; border-radius: 26px;
  background: light-dark(rgba(255, 255, 255, 0.82), rgba(26, 26, 30, 0.84));
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5);
}
.pz-rail { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 62px 0; border-right: 1px solid var(--line); }
.pz-rail i { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); }
.pz-rail i:first-child { background: var(--ink); }
.pz-body { padding: 70px 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.pz-head { font-family: var(--font-display); font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--text); }
.pz-head small { display: block; margin-top: 4px; font-size: 14px; font-weight: 450; letter-spacing: 0; color: var(--text-3); }
.pz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pz-card { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); height: 132px; }
.pz-card b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.pz-card span { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 30px; font-weight: 650; letter-spacing: -0.03em; color: var(--text); }
.pz-card em { display: block; margin-top: 4px; font-size: 13px; font-style: normal; color: var(--text-3); }
.pz-stats { margin-top: auto; display: flex; gap: 22px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.pz-stats span { flex: 1; display: grid; gap: 7px; }

.demo-frame { position: absolute; inset: 0; z-index: 1; width: 1152px; height: 720px; border: 0; background: transparent; color-scheme: normal; }
.stage-cover { display: none; position: absolute; inset: 0; z-index: 3; align-items: flex-end; justify-content: center; padding-bottom: 14px; text-decoration: none; }
.stage-cover span { padding: 9px 18px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-m); }
.stage-cap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  margin-top: 30px; font-size: 0.93rem; color: var(--text-3); text-align: center;
}
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); animation: ping 2.2s ease-out infinite; vertical-align: 1px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--accent); opacity: 1; } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px var(--accent-soft); } }
.cap-narrow { display: none; }
/* without JavaScript the live demo can't be embedded: show the static panel preview instead of a spinner */
html:not(.js) .pz-load, html:not(.js) .pz-pill, html:not(.js) .demo-frame { display: none; }
html:not(.js) .pz-panel { display: grid; }
html:not(.js) .stage-cover { display: flex; }
@media (max-width: 820px) {
  .cap-wide { display: none; }
  .cap-narrow { display: inline; }
  .pz-panel { display: grid; }
  .pz-pill, .pz-load { display: none; }
  .demo-frame { display: none; }
  .stage-cover { display: flex; }
  .stage.is-ready .poster { opacity: 1; visibility: visible; }
}

/* ---------- stats strip ---------- */
.stats { padding-block: clamp(48px, 6vw, 80px) 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s); overflow: hidden;
}
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-n { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 660; letter-spacing: -0.04em; line-height: 1; }
.stat-l { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--text-3); line-height: 1.4; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- live widgets ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lcard {
  display: flex; flex-direction: column; gap: 14px; padding: 26px;
  border-radius: var(--r-l); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), light-dark(#fafafb, #111113));
  box-shadow: var(--shadow-s), 0 1px 0 var(--hi) inset;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease);
}
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-m), 0 1px 0 var(--hi) inset; }
.lcard-top { display: flex; align-items: center; justify-content: space-between; }
.lcard-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--on-ink); }
.lcard-ic svg { width: 20px; height: 20px; }
.lstatus { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 560; color: var(--text-3); }
.lstatus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: breathe 2.4s ease-in-out infinite; }
.lcard h3 { margin-top: 4px; }
.lcard > p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.lwidget { margin-top: auto; padding: 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
.fineprint { margin: 22px 0 0; text-align: center; font-size: 0.86rem; color: var(--text-3); }

.mini-pill {
  display: flex; align-items: center; justify-content: space-between; height: 34px; margin-bottom: 12px; padding: 0 14px;
  border-radius: 17px; background: var(--pill-bg); color: var(--pill-fg); font-size: 12px; font-weight: 560;
  box-shadow: var(--pill-shadow);
  transition: box-shadow 0.4s var(--ease);
}
.mini-pill .mut { color: var(--pill-fg-2); font-weight: 480; }
.mini-pill.glow { animation: pillglow 1.4s var(--ease-out); }
@keyframes pillglow { 0% { box-shadow: 0 0 0 0 var(--accent), 0 0 24px 2px var(--accent); } 100% { box-shadow: 0 0 0 10px transparent, 0 0 0 0 transparent; } }
.clip-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin: 0 0 12px; min-height: 196px; align-content: start; }
.lcard { min-width: 0; }
.lwidget { min-width: 0; }
.clip-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem;
}
.clip-row.is-new { animation: slidein 0.6s var(--spring); }
.clip-row .kind { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 0.7rem; font-weight: 640; letter-spacing: 0.03em; text-transform: uppercase; }
.clip-row .clip-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-row .clip-time { flex: none; color: var(--text-3); font-size: 0.76rem; }
.clip-row svg { flex: none; width: 13px; height: 13px; color: var(--accent); }
@keyframes slidein { from { opacity: 0; transform: translateY(-16px) scale(0.96); background: var(--accent-soft); } to { opacity: 1; transform: none; } }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip-label { margin-right: 4px; font-size: 0.78rem; font-weight: 560; color: var(--text-3); }
.chip-btn {
  height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 0.82rem; font-weight: 540; color: var(--text);
  transition: background 0.2s, transform 0.3s var(--spring);
}
.chip-btn:hover { background: var(--surface-3); }
.chip-btn:active { transform: scale(0.94); }

.player { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.art {
  width: 76px; height: 76px; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #3a3a3f, #0b0b0c); box-shadow: var(--shadow-s);
}
.art::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); }
.art::after { content: ""; position: absolute; inset: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.art.t2 { background: linear-gradient(135deg, #d8d8de, #8d8d95); }
.art.t3 { background: linear-gradient(200deg, #55555c, #18181b); }
.track-title { font-weight: 620; font-size: 0.98rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-sub { color: var(--text-3); font-size: 0.83rem; }
.progress { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 0.75rem; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 4px; }
.progress .bar > i { transition: width 0.4s linear; background: var(--ink); }
.controls { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 10px; }
.ctl { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text); transition: background 0.2s, transform 0.3s var(--spring); }
.ctl:hover { background: var(--surface-3); }
.ctl:active { transform: scale(0.88); }
.ctl svg { width: 20px; height: 20px; }
.ctl.play { width: 48px; height: 48px; background: var(--ink); color: var(--on-ink); }
.ctl.play:hover { background: var(--ink); transform: scale(1.06); }
.ctl.play .i-pause { display: none; }
.player[data-playing="true"] .ctl.play .i-play { display: none; }
.player[data-playing="true"] .ctl.play .i-pause { display: block; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 8px; vertical-align: -1px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--accent); }
.player[data-playing="true"] .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s !important; } .eq i:nth-child(3) { animation-delay: -0.6s !important; } .eq i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.meter { display: grid; gap: 7px; margin-bottom: 15px; }
.meter:last-of-type { margin-bottom: 4px; }
.meter-top { display: flex; justify-content: space-between; font-size: 0.82rem; }
.meter-top b { font-weight: 600; }
.meter-top span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.meter .bar { height: 8px; }
.meter .bar > i { transition: width 1.4s var(--ease); }
.spark { width: 100%; height: 44px; margin-top: 4px; }
.spark path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .area { fill: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.07)); stroke: none; }

/* ---------- showcase rows ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.row + .row { margin-top: clamp(72px, 9vw, 130px); }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.12; letter-spacing: -0.028em; font-weight: 650; margin: 0 0 16px; }
.row-copy p { color: var(--text-2); font-size: 1.04rem; }
.ticks { list-style: none; display: grid; gap: 11px; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 0.97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 17px; height: 17px; border-radius: 50%; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.2 2.2 4.8-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000' fill-opacity='.0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.2 2.2 4.8-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  background: var(--accent);
}
.row-copy .link-arrow { margin-top: 24px; }
.glass {
  position: relative; padding: 24px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--glass), light-dark(rgba(250, 250, 252, 0.6), rgba(20, 20, 22, 0.6)));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-m), 0 1px 0 var(--hi) inset;
}
.glass-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 0.8rem; font-weight: 640; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.glass-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* paste stack */
.stack { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-height: 360px; align-content: start; }
.stack li {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem;
  transition: transform 0.45s var(--spring), opacity 0.3s;
}
.stack li .n { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--surface-3); font-family: var(--mono); font-size: 0.74rem; font-weight: 650; color: var(--text-2); }
.stack li.top { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.stack li.top .n { background: var(--ink); color: var(--on-ink); }
.stack li .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack li.empty { background: transparent; border-style: dashed; color: var(--text-3); }
.stack li.empty .n { background: transparent; border: 1px dashed var(--line-2); color: var(--text-3); }
.stack li.enter { animation: slidein 0.55s var(--spring); }
.stack li.leave { opacity: 0; transform: translateX(24px) scale(0.96); }
.toast { min-height: 22px; margin-top: 12px; font-size: 0.85rem; color: var(--text-3); }
.toast b { color: var(--text); font-weight: 600; }

/* pomodoro */
.pomo { display: grid; justify-items: center; gap: 18px; padding: 8px 0 4px; }
.ring { position: relative; width: 230px; height: 230px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .trk { stroke: var(--surface-3); }
.ring .prg { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 628.3; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.4s; }
.pomo[data-mode="break"] .ring .prg { stroke: var(--accent); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-time { font-family: var(--font-display); font-size: 3.1rem; font-weight: 640; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.ring-mode { margin-top: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sessions { display: flex; gap: 7px; }
.sessions i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); transition: background 0.3s; }
.sessions i.done { background: var(--ink); }
.pomo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pomo-note { margin: 2px 0 0; font-size: 0.78rem; color: var(--text-3); text-align: center; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 640; letter-spacing: -0.02em; }
.cal-nav { display: flex; gap: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { padding: 4px 0 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-3); text-transform: uppercase; }
.cal-grid .day {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.7; border-radius: 11px; border: 0; background: transparent;
  font-size: 0.9rem; color: var(--text); font-variant-numeric: tabular-nums; transition: background 0.2s, transform 0.3s var(--spring);
}
.cal-grid .day.out { color: var(--text-3); opacity: 0.45; }
button.day:hover { background: var(--surface-3); }
button.day:active { transform: scale(0.92); }
.cal-grid .day.today { background: var(--ink); color: var(--on-ink); font-weight: 650; }
.cal-grid .day[data-h]::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-grid .day[data-h="observance"]::after { background: transparent; border: 1.5px solid var(--accent); width: 5px; height: 5px; }
.cal-grid .day.today[data-h]::after { background: var(--accent); }
.cal-grid .day.sel { box-shadow: 0 0 0 2px var(--accent) inset; }
.cal-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin: 16px 0 0; min-height: 70px; align-content: start; }
.cal-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem; }
.cal-list .tag { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; }
.cal-list .tag.o { background: var(--surface-3); color: var(--text-2); }
.cal-list .d { margin-left: auto; color: var(--text-3); font-size: 0.78rem; white-space: nowrap; }
.cal-list .none { color: var(--text-3); background: transparent; border-style: dashed; }
.cal-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 0.76rem; color: var(--text-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cal-legend i.o { background: transparent; border: 1.5px solid var(--accent); }

/* ---------- tool explorer (gallery) ---------- */
.explorer {
  display: grid; grid-template-columns: 240px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-m);
}
.ex-list { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-right: 1px solid var(--line); background: var(--bg-alt); overflow-y: auto; scrollbar-width: thin; }
.ex-tab {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); font-size: 0.92rem; font-weight: 520; text-align: left;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--spring);
}
.ex-tab svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.ex-tab:hover { background: var(--surface-3); color: var(--text); }
.ex-tab:active { transform: scale(0.97); }
.ex-tab[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 620; box-shadow: var(--shadow-s), 0 0 0 1px var(--line); }
.ex-tab[aria-selected="true"] svg { opacity: 1; }
.ex-stage { position: relative; min-height: 560px; padding: clamp(20px, 3vw, 40px); display: grid; align-content: center; background:
  radial-gradient(80% 70% at 50% 0%, light-dark(rgba(0, 0, 0, 0.035), rgba(255, 255, 255, 0.05)), transparent 70%); }
.ex-panel { display: none; grid-template-columns: 1fr; gap: 28px; align-content: start; }
.ex-panel.on { display: grid; animation: panelin 0.55s var(--ease-out); }
@media (min-width: 1040px) {
  .ex-panel.on { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 36px; }
  .ex-panel .xw { margin-inline: 0; }
}
@keyframes panelin { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ex-copy h3 { font-size: 1.5rem; margin-bottom: 8px; }
.ex-copy p { color: var(--text-2); max-width: 52ch; margin-bottom: 12px; }
.ex-copy .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.ex-copy .tags span { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 0.76rem; color: var(--text-2); }
.xw {
  width: min(560px, 100%); margin-inline: auto; border-radius: 20px; overflow: hidden;
  background: var(--glass-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-m);
}
.xw-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 0.86rem; font-weight: 620; }
.xw-bar small { margin-left: auto; font-weight: 450; color: var(--text-3); }
.xw-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.xw-body { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 250px; align-content: start; }
.xr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; }
.xr .k { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; }
.xr .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr .m { flex: none; color: var(--text-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.xr svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.xr.dash { border-style: dashed; background: transparent; color: var(--text-3); justify-content: center; padding: 22px; }
.xr.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xcard { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-height: 92px; }
.xcard b { display: block; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.xcard span { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; }
.xcard em { display: block; font-size: 0.76rem; font-style: normal; color: var(--text-3); }
.xbig { display: grid; place-items: center; gap: 4px; padding: 18px 0 8px; text-align: center; }
.xbig b { font-family: var(--font-display); font-size: 3.4rem; font-weight: 640; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.xbig span { color: var(--text-3); font-size: 0.9rem; }
.xfield { padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.95rem; }
.xfield span { color: var(--text-3); font-size: 0.8rem; }
.xkeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.xkeys i { display: grid; place-items: center; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-style: normal; font-size: 0.95rem; font-weight: 520; }
.xkeys i.op { background: var(--surface-3); }
.xkeys i.eq { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.xtoggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; }
.xtoggle small { display: block; color: var(--text-3); font-size: 0.76rem; }
.sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-s); }
.sw.on { background: var(--ink); border-color: var(--ink); }
.sw.on::after { left: 18px; background: var(--on-ink); }
.xbars { display: grid; gap: 11px; }
.xbars div { display: grid; grid-template-columns: 82px 1fr 52px; gap: 12px; align-items: center; font-size: 0.86rem; }
.xbars em { font-style: normal; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.xfc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; font-size: 0.8rem; color: var(--text-3); }
.xfc div { padding: 10px 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.xfc b { display: block; margin-top: 4px; color: var(--text); font-size: 0.98rem; font-weight: 620; }
.xclock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xclock div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.xclock b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 640; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.xclock span { font-size: 0.8rem; color: var(--text-3); }
.xmic { display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start; padding: 7px 14px 7px 8px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 0.82rem; font-weight: 600; }
.xmic svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; }
.xtext { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); line-height: 1.55; }
.xtext .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 860px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); max-height: none; padding: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .ex-tab { width: auto; flex: none; white-space: nowrap; scroll-snap-align: center; }
  .ex-stage { min-height: 0; }
}

/* ---------- voice ---------- */
.voice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.vmock { padding: 22px; }
.vpill {
  display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 18px; margin-bottom: 18px;
  border-radius: 23px; background: var(--pill-bg); color: var(--pill-fg); font-size: 13.5px; font-weight: 560;
  box-shadow: var(--pill-shadow);
  transition: box-shadow 0.5s var(--ease);
}
.vpill .st { display: inline-flex; align-items: center; gap: 9px; }
.vpill .st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pill-fg-2); transition: background 0.3s; }
.vmock[data-state="listening"] .vpill { box-shadow: 0 0 0 1px var(--accent), 0 0 30px -4px var(--accent); }
.vmock[data-state="listening"] .vpill .st::before { background: var(--accent); animation: breathe 1.2s ease-in-out infinite; }
.vmock[data-state="processing"] .vpill .st::before { background: var(--pill-fg); animation: breathe 0.6s ease-in-out infinite; }
.vpill .mut { color: var(--pill-fg-2); font-weight: 480; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 76px; }
.wave i { width: 4px; height: 6px; border-radius: 3px; background: var(--text-3); opacity: 0.5; transition: background 0.3s, opacity 0.3s; }
.vmock[data-state="listening"] .wave i { background: var(--accent); opacity: 1; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -0.2s !important; } .wave i:nth-child(3n+1) { animation-delay: -0.55s !important; } .wave i:nth-child(4n) { animation-delay: -0.8s !important; }
.wave i:nth-child(5n) { animation-duration: 0.8s !important; } .wave i:nth-child(7n) { animation-duration: 1.4s !important; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 54px; } }
.vtranscript { min-height: 76px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 1.04rem; line-height: 1.5; }
.vtranscript .ph { color: var(--text-3); }
.vtranscript .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.vresult { display: flex; align-items: center; gap: 10px; min-height: 42px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 0.92rem; font-weight: 540; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.5s var(--spring); }
.vresult.on { opacity: 1; transform: none; }
.vresult svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.vmode { display: inline-flex; margin-bottom: 14px; padding: 3px; border-radius: 99px; background: var(--surface-3); }
.vmode span { padding: 5px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 580; color: var(--text-2); transition: background 0.3s, color 0.3s; }
.vmock[data-mode="note"] .vmode span:first-child, .vmock[data-mode="command"] .vmode span:last-child { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.vcmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.vcmds li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; }
.vcmds li b { display: block; font-weight: 600; }
.vcmds li span { color: var(--text-3); font-size: 0.82rem; }

/* ---------- keyboard-first ---------- */
.kb-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.palette { padding: 0; overflow: hidden; }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-input svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.pal-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.05rem; }
.pal-input input::placeholder { color: var(--text-3); }
.pal-input kbd { flex: none; }
.pal-list { list-style: none; padding: 8px; max-height: 330px; overflow-y: auto; }
.pal-group { padding: 10px 12px 4px; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; font-size: 0.93rem; cursor: pointer; transition: background 0.12s; }
.pal-item svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.pal-item .hint { margin-left: auto; color: var(--text-3); font-size: 0.78rem; }
.pal-item[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.pal-item[aria-selected="true"] svg, .pal-item[aria-selected="true"] .hint { color: inherit; opacity: 0.7; }
.pal-empty { padding: 26px; text-align: center; color: var(--text-3); font-size: 0.92rem; }
.pal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-3); }
.pal-foot .res { color: var(--text); font-weight: 560; }
.shortcuts { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s); overflow: hidden; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.sc-row:last-child { border-bottom: 0; }
.sc-row > div { min-width: 0; flex: 1; }
.sc-row .keys, .sc-row > kbd, .sc-row > span { flex: none; flex-wrap: nowrap; white-space: nowrap; }
.sc-row div b { display: block; font-weight: 600; font-size: 0.97rem; }
.sc-row div span { color: var(--text-3); font-size: 0.86rem; }
.sc-row kbd { transition: transform 0.2s var(--spring), background 0.2s; }
.sc-row:hover kbd { transform: translateY(-2px); background: var(--surface-2); }

/* ---------- privacy ---------- */
.priv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; }
.ledger { padding: 26px; border-radius: var(--r-xl); background: #0b0b0d; color: #ececf0; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-m); font-family: var(--mono); font-size: 0.86rem; line-height: 1.65; overflow: hidden; }
.ledger .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #8e8e95; font-size: 0.78rem; }
.ledger .hd i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c30; }
.ledger .hd span { margin-left: 8px; }
.ledger .cmt { color: #6e6e75; }
.ledger .lrow { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ledger .lrow b { display: inline-block; min-width: 4.4em; color: #f5f5f7; font-weight: 650; }
.ledger .host { color: #ff9a62; word-break: break-all; }
.ledger .sub { display: block; padding-left: 4.4em; color: #9a9aa2; }
.ledger .none { color: #b9e6c4; }
.check-card { padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 14px; }
.check-card h3 { font-size: 1.2rem; }
.check-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.net-check { margin-top: auto; padding: 16px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
.net-check .big { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 660; letter-spacing: -0.03em; }
.net-check .big b { font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.net-check .big span { font-size: 0.95rem; color: var(--text-2); font-weight: 520; letter-spacing: 0; }
.net-check ul { list-style: none; margin: 10px 0 0; display: grid; gap: 4px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }
.priv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; counter-reset: s; }
.priv-step .codeblock pre { font-size: 0.78rem; }
.priv-step { position: relative; padding: 24px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); }
.priv-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 0.82rem; font-weight: 700; }
.priv-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.priv-step p { margin: 0; font-size: 0.93rem; color: var(--text-2); }
.priv-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }

/* ---------- pricing / free ---------- */
.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.price-card { padding: clamp(28px, 4vw, 44px); text-align: center; }
.price-card .tier { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.price-card .amt { margin: 10px 0 4px; font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 6rem); font-weight: 680; letter-spacing: -0.06em; line-height: 1; }
.price-card .per { color: var(--text-3); margin-bottom: 26px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; text-align: left; }
.price-card li { position: relative; padding-left: 28px; font-size: 0.95rem; color: var(--text-2); }
.price-card li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.2 2.2 4.8-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.2 2.2 4.8-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.about-copy h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 16px; }
.about-copy p { color: var(--text-2); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.012em; transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--text-2);
  transition: transform 0.4s var(--spring), opacity 0.3s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--accent); }
.faq .faq-a { padding: 0 48px 24px 0; color: var(--text-2); animation: faqin 0.5s var(--ease-out); }
.faq .faq-a p:last-child { margin-bottom: 0; }
@keyframes faqin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- download CTA ---------- */
.cta {
  position: relative; overflow: hidden; padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px); text-align: center;
  border-radius: var(--r-xl); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-l);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, light-dark(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.1)), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: inherit; }
.cta .lede { color: inherit; opacity: 0.72; max-width: 40rem; margin: 18px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 34px; }
.cta .dl { background: var(--on-ink); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 40px -12px rgba(0, 0, 0, 0.5); }
.cta .dl::before { background: radial-gradient(160px circle at var(--mx) var(--my), rgba(0, 0, 0, 0.12), transparent 70%); mix-blend-mode: normal; }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--on-ink); border-color: rgba(128, 128, 128, 0.4); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.cta-meta { margin: 26px 0 0; font-size: 0.86rem; opacity: 0.62; }
.cta-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .device-base { width: 104%; margin-left: -2%; }
}
@media (max-width: 960px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .row, .voice-grid, .kb-grid, .price-wrap { grid-template-columns: minmax(0, 1fr); }
  .row.flip .row-copy { order: 0; }
  .priv-grid, .priv-steps { grid-template-columns: minmax(0, 1fr); }
  .vcmds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .vcmds { grid-template-columns: minmax(0, 1fr); }
  .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xkeys { gap: 5px; }
  .xbars div { grid-template-columns: 70px 1fr 46px; }
  .xfc { gap: 5px; }
}

/* ==========================================================================
   Tool chain: fourteen tool tiles drift along a diagonal and slip into the numbers.
   Technique: each lane's track holds the tile set twice (JS clones the first half) and
   animates transform: translateX(-50% -> 0). -50% of the track is exactly one set, so the
   loop has no seam. Transform-only = compositor-driven, no layout, no repaint.
   ========================================================================== */
.chain-section { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.chain-card {
  position: relative; isolation: isolate; overflow: hidden; contain: layout paint;
  border-radius: var(--r-mega);
  background: linear-gradient(180deg, var(--wash-1) 0%, var(--wash-2) 58%, var(--wash-3) 100%);
  box-shadow: 0 0 0 1px var(--line);
  min-height: clamp(560px, 50vw, 680px);
}
.chain-inner {
  position: relative; z-index: 2; min-height: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); gap: var(--s-6);
  align-items: start; padding: clamp(32px, 5.2vw, 76px);
}
.chain-copy { max-width: 30rem; }
.chain-copy h2 { font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -0.034em; }
.chain-copy .lede { margin: var(--s-4) 0 0; max-width: 27rem; }
.cc-note { margin: var(--s-4) 0 0; font-size: var(--t-xs); line-height: 1.5; color: rgba(255, 255, 255, 0.58); }

/* the drifting lanes live on a rotated plane behind the copy */
.chain-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.chain-plane {
  position: absolute; left: -12%; width: 124%; top: 57%; height: 40%;
  transform: rotate(-12deg); transform-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 66%, transparent 84%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 66%, transparent 84%);
}
.lane { position: absolute; left: 0; width: 100%; height: var(--ts); }
.lane:empty, .lane .track:empty { display: none; }
.lane-back  { --ts: clamp(38px, 4vw, 54px);  --gap: clamp(16px, 2vw, 28px); --dur: 110s; top: 0;   opacity: 0.55; }
.lane-mid   { --ts: clamp(50px, 5.3vw, 72px); --gap: clamp(18px, 2.3vw, 32px); --dur: 72s;  top: 31%; opacity: 0.85; }
.lane-front { --ts: clamp(64px, 7vw, 94px);  --gap: clamp(20px, 2.6vw, 36px); --dur: 50s;  top: 64%; }
.track { display: flex; width: max-content; will-change: transform; transform: translate3d(-18%, 0, 0); }
.chain-card.is-live .track { animation: chain-drift var(--dur) linear infinite; }
.chain-card.is-live:not(.is-on) .track { animation-play-state: paused; }
@keyframes chain-drift { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

.tile {
  flex: none; width: var(--ts); height: var(--ts); margin-right: var(--gap);
  display: grid; place-items: center; border-radius: var(--r-tile);
  background: linear-gradient(155deg, var(--a), var(--b)); color: var(--i);
  box-shadow: var(--shadow-tile);
}
.tile svg { width: 46%; height: 46%; transform: rotate(12deg); } /* counter-rotate: glyphs stay upright */
.k1 { --a: var(--sp-graphite-a); --b: var(--sp-graphite-b); --i: var(--sp-graphite-ink); }
.k2 { --a: var(--sp-porcelain-a); --b: var(--sp-porcelain-b); --i: var(--sp-porcelain-ink); }
.k3 { --a: var(--sp-mochi-a); --b: var(--sp-mochi-b); --i: var(--sp-mochi-ink); }
.k4 { --a: var(--sp-arcade-a); --b: var(--sp-arcade-b); --i: var(--sp-arcade-ink); }
.k5 { --a: var(--sp-terracotta-a); --b: var(--sp-terracotta-b); --i: var(--sp-terracotta-ink); }
.k6 { --a: var(--sp-tide-a); --b: var(--sp-tide-b); --i: var(--sp-tide-ink); }
@supports (corner-shape: squircle) { .tile, .chain-card, .clip-frame { corner-shape: squircle; } .tile { border-radius: 38%; } }

/* gentle depth: the whole plane drifts a little as the section scrolls (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chain-plane { animation: chain-par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes chain-par { from { translate: 0 28px; } to { translate: 0 -28px; } }
  }
}

/* the honest callout: counts you can verify in the repo */
.chain-callout {
  position: relative; align-self: center; justify-self: end; width: 100%;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(255, 138, 76, 0.30), transparent 60%),
    linear-gradient(165deg, #1d1917 0%, #0d0c0c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--glow-ember), 0 40px 70px -34px rgba(0, 0, 0, 0.7);
}
.cc-n { display: block; font-family: var(--font-display); font-size: var(--t-stat); font-weight: 700; letter-spacing: -0.06em; line-height: 0.86; font-variant-numeric: tabular-nums; }
.cc-l { display: block; margin-top: var(--s-3); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.cc-list { list-style: none; margin: var(--s-5) 0 0; padding: var(--s-4) 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: var(--s-3); }
.cc-list li { display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--t-sm); color: rgba(255, 255, 255, 0.78); }
.chain-callout a { color: #ffb48a; text-decoration: underline; text-underline-offset: 3px; }
.chain-callout a:hover { color: #fff; }
.cc-list b { flex: none; min-width: 1.6ch; font-family: var(--font-display); font-size: 1.5rem; font-weight: 680; letter-spacing: -0.03em; color: #fff; }

@media (max-width: 899px) {
  .chain-card { min-height: 0; }
  .chain-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(240px, 64vw, 300px); }
  .chain-callout { justify-self: stretch; }
  .chain-plane { top: auto; bottom: clamp(14px, 5vw, 28px); height: clamp(160px, 46vw, 210px); left: -20%; width: 140%; transform: rotate(-7deg);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
  .tile svg { transform: rotate(7deg); }
  .lane-back { display: none; }
  .lane-mid { top: 0; --ts: clamp(44px, 12vw, 58px); }
  .lane-front { top: 52%; --ts: clamp(56px, 16vw, 76px); }
}
@media (prefers-reduced-motion: reduce) {
  .chain-card .track { animation: none !important; transform: translate3d(-12%, 0, 0); }
  .chain-plane { animation: none !important; }
}

/* ==========================================================================
   Inline clips: short, muted, looping product recordings (lazy, played only on screen)
   ========================================================================== */
.clip { margin: 0; }
.clip-frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9; border-radius: var(--r-xl);
  background: var(--surface-3); box-shadow: var(--shadow-clip);
}
.clip-frame.ar-4x1 { aspect-ratio: 4 / 1; border-radius: var(--r-l); }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: rgba(10, 10, 12, 0.62); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.clip-frame:hover .clip-toggle, .clip-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .clip-toggle { opacity: 0.85; } }
.clip-toggle:active { transform: scale(0.92); }
.clip-toggle svg { width: 16px; height: 16px; }
.clip-toggle .i-play { display: none; }
.clip-toggle[aria-pressed="true"] .i-play { display: block; }
.clip-toggle[aria-pressed="true"] .i-pause { display: none; }
.clip-cap { margin-top: var(--s-3); font-size: var(--t-sm); line-height: 1.5; color: var(--text-3); }
.clip-cap b { color: var(--text-2); font-weight: 600; }
.clip.is-static .clip-toggle { display: none; }
.clip-only-narrow { display: none; }
@media (max-width: 820px) { .clip-only-narrow { display: block; margin-top: var(--s-5); } }

/* the ledger grew (more hosts), so don't stretch the side card to match it */
.priv-grid { align-items: start; }

/* the voice copy is long (closed command list), so the demo stays beside it while it scrolls */
.voice-grid { align-items: start; }
@media (min-width: 961px) { .vmock { position: sticky; top: 96px; } }

/* inline clip placements */
.live-film { margin-top: clamp(28px, 4vw, 52px); max-width: 880px; margin-inline: auto; }

/* ==========================================================================
   Make it yours: themes + idle companion
   ========================================================================== */
.personal-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.theme-dots { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.theme-dots li { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: var(--t-sm); font-weight: 560; }
.theme-dots i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(155deg, var(--a), var(--b)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35); position: relative; }
.theme-dots i::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; right: 3px; bottom: 3px; background: var(--i); }
.idle-card { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.idle-card h3 { font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.028em; font-weight: 650; margin: 0 0 var(--s-3); }
.idle-card p { color: var(--text-2); }
@media (max-width: 960px) { .personal-grid, .idle-card { grid-template-columns: minmax(0, 1fr); } }
