/* Styles for the OnSubject.AI website. The site is dark like the app, and it uses the app's violet accent and its Them and Me colours. */

:root {
  --bg: #0a0b10;
  --bg-2: #0e1017;
  --surface: #13151d;
  --surface-2: #1a1d27;
  --surface-3: #232634;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #eef0f6;
  --dim: #a9afc1;
  --faint: #737a8f;
  --accent: #7b6cf6;
  --accent-hover: #8f82ff;
  --accent-soft: rgba(123, 108, 246, .14);
  --violet: #a78bfa;
  --magenta: #d06bf5;
  --indigo: #5865f2;
  --gold: #fbbf24;
  --them: #ffb86b;
  --me: #5cc8ff;
  --typed: #8f82ff;
  --edited: #6ee7b7;
  --green: #3dd68c;
  --danger: #f2687a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(123, 108, 246, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(88, 101, 242, .10), transparent 60%),
    var(--bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 650; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .12em .5em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--surface-2);
  color: #fff;
  font: 600 .82em/1.4 var(--font);
  text-align: center;
  white-space: nowrap;
}
code { font-variant-ligatures: none; font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .05em .4em; }
::selection { background: rgba(123, 108, 246, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

.gradient-text {
  background: linear-gradient(100deg, #fff 0%, #cfc8ff 30%, var(--violet) 55%, var(--magenta) 80%, #ffcf6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font: 700 .78rem/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--magenta)); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--dim); line-height: 1.6; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.center { text-align: center; }
.small { font-size: .9rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font: 650 1rem/1 var(--font);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #6d5cf5 0%, #8b5cf6 55%, #b65cf0 100%);
  box-shadow: 0 10px 30px -8px rgba(123, 108, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(139, 92, 246, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(10, 11, 16, .78);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 750 1.18rem/1 var(--font-display); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-name span { color: var(--violet); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--dim); font-size: .95rem; font-weight: 550; }
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .05); text-decoration: none; }
.site-nav a[aria-current="page"]:not(.btn) { color: #fff; background: rgba(123, 108, 246, .14); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 22px;
    background: rgba(10, 11, 16, .97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 12px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; min-height: 48px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018) 15%, rgba(255, 255, 255, .018) 85%, transparent); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); overflow: hidden; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 580px; margin-bottom: 30px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--faint); font-size: .92rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--dim);
  font-size: .9rem;
}
.pill b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #6d5cf5, #b65cf0); color: #fff; font-size: .78rem; letter-spacing: .02em; }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.orb-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(123, 108, 246, .7), transparent 70%); animation: float 16s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(208, 107, 245, .45), transparent 70%); animation: float 20s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; top: 30%; left: 45%; background: radial-gradient(circle, rgba(88, 101, 242, .4), transparent 70%); animation: float 24s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -25px) scale(1.08); } }
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-visual { position: relative; width: 100%; max-width: 470px; justify-self: center; }
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(19, 21, 29, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  font-size: .86rem;
  color: var(--dim);
  white-space: nowrap;
}
.float-chip strong { color: #fff; }
.float-chip svg { width: 18px; height: 18px; flex: none; }
.chip-speed { top: -20px; right: -22px; animation: bob 6s ease-in-out infinite; }
.chip-speed svg { color: var(--gold); }
.chip-docs { bottom: -20px; left: -22px; animation: bob 7s ease-in-out infinite reverse; }
.chip-docs svg { color: var(--green); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row, .hero-note { justify-content: center; }
  .chip-speed { right: -8px; }
  .chip-docs { left: -8px; }
}
@media (max-width: 560px) {
  .float-chip { display: none; }
}

/* ---------- "works with" strip ---------- */
.works-with { padding: 8px 0 0; }
.works-with p { margin-bottom: 18px; color: var(--faint); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.works-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.works-list li {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--dim);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- the app, as an HTML replica ---------- */
.mock-app {
  --m-bg: #14151a;
  --m-surface: #1b1d24;
  --m-surface2: #22252f;
  --m-border: #323746;
  --m-dim: #a3a9bb;
  --m-faint: #6f768a;
  position: relative;
  width: 100%;
  max-width: 470px;
  border: 1px solid #2c303d;
  border-radius: 14px;
  background: var(--m-bg);
  box-shadow: var(--shadow), 0 0 120px -30px rgba(123, 108, 246, .55);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: #eceef4;
  overflow: hidden;
  overflow: clip;
  text-align: left;
  isolation: isolate;
}
.mock-titlebar { display: flex; align-items: center; gap: 9px; padding: 11px 12px 10px; }
.mock-titlebar img { width: 26px; height: 26px; border-radius: 7px; }
.mock-name { font-weight: 650; font-size: 14px; white-space: nowrap; }
.mock-scenario {
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  padding: 5px 30px 5px 11px;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  background: var(--m-surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a3a9bb' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 9px center / 14px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-dots { display: flex; gap: 5px; margin-left: 4px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3a3f50; }
.mock-panel { margin: 0 10px 10px; border: 1px solid var(--m-border); border-radius: 10px; background: var(--m-surface); }
.mock-answer-head, .mock-transcript-head { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 11px; border-bottom: 1px solid var(--m-border); }
.mock-answer-head { color: var(--m-faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.mock-answer-head svg { width: 14px; height: 14px; color: var(--accent-hover); }
.mock-status { flex: 1; min-width: 0; color: var(--accent-hover); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-history { color: var(--m-faint); font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.mock-answer-body { min-height: 196px; padding: 12px 14px 4px; font-size: 15.5px; line-height: 1.5; }
.mock-answer-body p { margin: 0 0 .55em; }
.mock-answer-body ul { margin: 0 0 .55em; padding-left: 1.25em; }
.mock-answer-body li { margin: .12em 0; }
.mock-answer-body li::marker { color: var(--accent-hover); }
.mock-answer-body em { color: #d5d0ff; }
.mock-answer-body .placeholder { color: var(--m-faint); font-size: 13.5px; }
.mock-answer-body.is-streaming > :last-child::after { content: "▍"; margin-left: 2px; color: var(--accent-hover); animation: blink .8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-followups { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 8px; }
.mock-followups:empty { display: none; }
.mock-followup {
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  background: transparent;
  color: #eceef4;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}
.mock-meta { min-height: 26px; padding: 0 14px 9px; color: var(--m-faint); font-size: 11.5px; }
.mock-meta b { color: var(--gold); font-weight: 600; }
.mock-transcript-head { color: var(--m-dim); font-size: 12px; }
.mock-listen { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid var(--m-border); border-radius: 8px; background: var(--m-surface2); }
.mock-listen i { width: 8px; height: 8px; border-radius: 50%; background: #f2687a; box-shadow: 0 0 0 0 rgba(242, 104, 122, .6); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 7px rgba(242, 104, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 104, 122, 0); } }
.mock-level { position: relative; width: 56px; height: 5px; border-radius: 3px; background: #2b2f3b; overflow: hidden; }
.mock-level i { position: absolute; inset: 0 auto 0 0; width: 20%; border-radius: 3px; background: var(--them); transition: width .12s linear; }
.mock-speaking { color: var(--them); font-size: 11.5px; opacity: 0; transition: opacity .2s; }
.mock-app.is-speaking .mock-speaking { opacity: 1; }
.mock-mic { margin-left: auto; padding: 3px 10px; border: 1px solid var(--m-border); border-radius: 8px; color: var(--m-dim); }
.mock-lines { min-height: 154px; max-height: 154px; margin: 0; padding: 6px 0; list-style: none; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.mock-line { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 5px 11px; animation: line-in .35s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } }
.mock-who { font-size: 12px; font-weight: 700; line-height: 1.3; }
.mock-who small { display: block; color: var(--m-faint); font-size: 10.5px; font-weight: 400; }
.mock-who.them { color: var(--them); }
.mock-who.me { color: var(--me); }
.mock-who.typed { color: var(--typed); }
.mock-text { font-size: 13.5px; }
.mock-line.is-partial .mock-text { color: var(--m-dim); font-style: italic; }
.mock-input { margin: 4px 10px 10px; padding: 8px 11px; border: 1px solid var(--m-border); border-radius: 8px; color: var(--m-faint); font-size: 12.5px; }
.mock-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; padding: 0 10px 12px; }
.mock-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 10px; border: 1px solid var(--m-border); border-radius: 9px; background: var(--m-surface2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; }
.mock-btn svg { width: 15px; height: 15px; }
.mock-btn.primary { border-color: transparent; background: var(--accent); color: #fff; }
.mock-btn.primary kbd { padding: 0 .4em; border: 0; background: rgba(255, 255, 255, .18); color: #e9e6ff; font-size: 10.5px; font-weight: 500; }
.mock-btn.is-pressed { transform: scale(.96); box-shadow: 0 0 0 4px rgba(123, 108, 246, .35), 0 0 40px rgba(123, 108, 246, .6); background: var(--accent-hover); }
.mock-keys {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(10, 11, 16, .92);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
  color: var(--faint);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px) scale(.96);
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.mock-keys kbd { font-size: 14px; }
.mock-keys.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mock-keys.is-down kbd { transform: translateY(2px); border-bottom-width: 1px; background: var(--accent); border-color: var(--accent-hover); }

/* The pause and play button of the live demos. The demos loop, so visitors can stop them. With reduced motion, a demo waits for a click. */
.demo-toggle {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 11, 16, .85);
  color: var(--dim);
  font: 700 11px/1 var(--font);
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, background .2s;
}
.demo-toggle:hover, .demo-toggle:focus-visible { opacity: 1; }
.demo-toggle.is-paused {
  top: auto;
  right: auto;
  left: 50%;
  bottom: 74px;
  width: auto;
  height: 42px;
  padding: 0 18px;
  transform: translateX(-50%);
  border-color: transparent;
  background: linear-gradient(135deg, #6d5cf5, #b65cf0);
  color: #fff;
  font-size: 14px;
  opacity: 1;
  white-space: nowrap;
  box-shadow: 0 14px 34px -8px rgba(123, 108, 246, .9);
}
.mock-phone .demo-toggle { top: 26px; right: 26px; }
.mock-phone .demo-toggle.is-paused { top: auto; right: auto; bottom: 120px; }

@media (max-width: 480px) {
  .mock-app { font-size: 13px; }
  .mock-answer-body { font-size: 14.5px; min-height: 210px; }
  .mock-btn.primary kbd { display: none; }
}

/* ---------- the phone, as an HTML replica ---------- */
.mock-phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2a2d39, #121319);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 0 110px -30px rgba(123, 108, 246, .6);
}
.mock-phone::before { content: ""; position: absolute; top: 22px; left: 50%; z-index: 2; width: 92px; height: 26px; border-radius: 20px; background: #050507; transform: translateX(-50%); }
.phone-screen {
  --m-border: #323746;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 700px;
  padding: 54px 10px 12px;
  border-radius: 38px;
  background: #14151a;
  overflow: hidden;
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #eceef4;
  text-align: left;
}
.phone-top { display: flex; align-items: center; gap: 8px; }
.phone-top img { width: 28px; height: 28px; border-radius: 8px; }
.phone-select { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--m-border); border-radius: 10px; background: #22252f; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-online { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.phone-card { border: 1px solid var(--m-border); border-radius: 12px; background: #1b1d24; overflow: hidden; }
.phone-card-head { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-bottom: 1px solid var(--m-border); color: #6f768a; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phone-card-head .mock-history { margin-left: 2px; text-transform: none; letter-spacing: 0; font-size: 11px; }
.phone-card-head .mock-status { font-size: 11px; }
.phone-answer { flex: 0 0 auto; display: flex; flex-direction: column; }
.phone-answer .mock-answer-body { flex: 0 0 auto; min-height: 0; padding: 9px 11px 2px; font-size: 13.5px; overflow: hidden; transition: transform .35s var(--ease), opacity .35s; }
.phone-answer .mock-followups { gap: 4px; padding: 0 10px 6px; }
.phone-answer .mock-followup { padding: 5px 8px; font-size: 11.5px; }
.phone-answer .mock-meta { padding: 0 11px 7px; font-size: 10.5px; }
.phone-transcript { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.phone-transcript .mock-lines { flex: 1; min-height: 0; max-height: none; }
.phone-transcript .mock-line { grid-template-columns: 46px 1fr; padding: 4px 9px; }
.phone-transcript .mock-text { font-size: 12.5px; }
.phone-input { padding: 8px 11px; border: 1px solid var(--m-border); border-radius: 11px; color: #6f768a; font-size: 12px; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 6px; }
.phone-actions span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; border: 1px solid var(--m-border); border-radius: 11px; background: #1b1d24; font-weight: 600; font-size: 12px; }
.phone-actions span.primary { border-color: transparent; background: var(--accent); }
.phone-actions span.is-on { color: #f2687a; }
.phone-actions svg { width: 14px; height: 14px; }
.phone-actions .has-menu svg:last-child { width: 9px; height: 9px; margin-left: -2px; opacity: .7; } /* Photo opens a menu */
.mock-answer-body.slide-out-right { transform: translateX(60%); opacity: 0; }
.mock-answer-body.slide-out-left { transform: translateX(-60%); opacity: 0; }
.mock-answer-body.slide-from-left { transform: translateX(-30%); opacity: 0; transition: none; }
.mock-answer-body.slide-from-right { transform: translateX(30%); opacity: 0; transition: none; }
.swipe-hint {
  position: absolute;
  z-index: 4;
  top: 190px;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 2px solid rgba(255, 255, 255, .55);
  opacity: 0;
  pointer-events: none;
}
.swipe-hint.go-right { animation: swipe-right 1s var(--ease) both; }
@keyframes swipe-right { 0% { opacity: 0; transform: translateX(-60px); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(70px); } }

/* ---------- cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card:hover { border-color: rgba(143, 130, 255, .35); transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(123, 108, 246, .45); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--dim); font-size: .98rem; }
.card p + p { margin-top: .7em; }
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(123, 108, 246, .28), rgba(208, 107, 245, .16));
  border: 1px solid rgba(143, 130, 255, .32);
  color: #d9d4ff;
}
.icon svg { width: 22px; height: 22px; }
.icon.gold { background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(251, 146, 60, .12)); border-color: rgba(251, 191, 36, .35); color: #ffe3a3; }
.icon.green { background: linear-gradient(135deg, rgba(61, 214, 140, .22), rgba(92, 200, 255, .12)); border-color: rgba(61, 214, 140, .35); color: #b7f5d6; }
.icon.blue { background: linear-gradient(135deg, rgba(92, 200, 255, .24), rgba(88, 101, 242, .14)); border-color: rgba(92, 200, 255, .35); color: #c4ecff; }
.icon.orange { background: linear-gradient(135deg, rgba(255, 184, 107, .26), rgba(242, 104, 122, .12)); border-color: rgba(255, 184, 107, .38); color: #ffe0bd; }

/* ---------- split rows (text next to a visual) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 120px); }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.split-visual { display: flex; justify-content: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--dim); }
.checks li strong { color: #fff; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(61, 214, 140, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%233dd68c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 14px;
}

/* ---------- speed ---------- */
.speed { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .speed { grid-template-columns: minmax(0, 1fr); } }
.big-number { font: 800 clamp(4.5rem, 12vw, 8.5rem)/.9 var(--font-display); letter-spacing: -.05em; margin: 0 0 12px; }
.big-number small { font-size: .35em; letter-spacing: -.01em; color: var(--dim); font-weight: 600; margin-left: 6px; }
.timeline { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.timeline-track { position: relative; height: 10px; margin: 44px 6px 64px; border-radius: 6px; background: var(--surface-3); }
.timeline-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--magenta), var(--gold)); transition: width 2.2s cubic-bezier(.3, .7, .2, 1); }
.timeline.is-visible .timeline-fill { width: 100%; }
.mark { position: absolute; top: 50%; width: 0; }
.mark::before { content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent-hover); box-shadow: 0 0 18px rgba(143, 130, 255, .8); }
.mark span { position: absolute; left: 0; transform: translateX(-50%); width: max-content; max-width: 130px; text-align: center; font-size: .82rem; color: var(--dim); line-height: 1.3; }
.mark span b { display: block; color: #fff; font-size: 1rem; }
.mark .up { bottom: 18px; }
.mark .down { top: 18px; }
.mark-0 { left: 0; }
.mark-1 { left: 16%; }
.mark-2 { left: 33%; }
.mark-3 { left: 100%; }
.mark-3 span { transform: translateX(-85%); }
.mark-0 span { transform: translateX(-15%); }
.timeline-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; padding: 0; list-style: none; }
.timeline-legend li { display: flex; gap: 12px; color: var(--dim); font-size: .95rem; }
.timeline-legend li b { color: #fff; }
.timeline-legend .num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 750; font-size: .85rem; }
@media (max-width: 560px) {
  .timeline-legend { grid-template-columns: minmax(0, 1fr); }
  .timeline { padding: 20px 14px; }
  .mark span { max-width: 74px; font-size: .72rem; }
  .mark-0 span { transform: translateX(-8px); text-align: left; }
  .mark-2 { left: 42%; }
  .mark-3 span { transform: translateX(-100%); text-align: right; }
}
.footnote { margin-top: 14px; color: var(--faint); font-size: .82rem; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps > li { counter-increment: step; position: relative; padding: 30px 26px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6d5cf5, #b65cf0);
  color: #fff;
  font: 800 1.15rem/1 var(--font-display);
  box-shadow: 0 10px 30px -8px rgba(123, 108, 246, .7);
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--dim); }

/* ---------- use-case cards ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: inherit;
}
.case-card:hover { text-decoration: none; }
.case-top { position: relative; padding: 26px 26px 22px; background: var(--case-bg, linear-gradient(135deg, rgba(123, 108, 246, .3), rgba(208, 107, 245, .12))); border-bottom: 1px solid var(--border); }
.case-top .icon { background: rgba(10, 11, 16, .35); border-color: rgba(255, 255, 255, .18); color: #fff; }
.case-top h3 { margin: 16px 0 4px; }
.case-top p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.case-body { flex: 1; display: flex; flex-direction: column; padding: 22px 26px 26px; }
.case-body blockquote { margin: 0 0 18px; color: var(--dim); font-size: 1rem; font-style: italic; }
.case-link { margin-top: auto; font-weight: 650; color: var(--accent-hover); }
.case-card:hover .case-link { text-decoration: underline; text-underline-offset: 3px; }
.case-interviewer { --case-bg: linear-gradient(135deg, rgba(92, 200, 255, .3), rgba(88, 101, 242, .14)); }
.case-candidate { --case-bg: linear-gradient(135deg, rgba(123, 108, 246, .34), rgba(208, 107, 245, .14)); }
.case-meeting { --case-bg: linear-gradient(135deg, rgba(61, 214, 140, .26), rgba(92, 200, 255, .1)); }
.case-developer { --case-bg: linear-gradient(135deg, rgba(255, 184, 107, .3), rgba(242, 104, 122, .14)); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.shot { grid-column: span 3; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .025); overflow: hidden; text-align: left; color: inherit; font: inherit; cursor: zoom-in; transition: border-color .25s, transform .25s var(--ease); }
.shot:hover { border-color: rgba(143, 130, 255, .4); transform: translateY(-3px); }
.shot.wide { grid-column: span 4; }
.shot.narrow-shot { grid-column: span 2; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); background: #14151a; }
.shot.shot-full img { aspect-ratio: auto; height: auto; object-fit: contain; }
.shot figcaption, .shot .caption { display: block; padding: 14px 18px 16px; color: var(--dim); font-size: .93rem; }
.shot .caption b { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 860px) { .gallery { grid-template-columns: minmax(0, 1fr); } .shot, .shot.wide, .shot.narrow-shot { grid-column: auto; } }
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--border-strong); border-radius: 16px; background: #0f1016; color: var(--text); }
.lightbox::backdrop { background: rgba(5, 6, 10, .82); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 12px 18px; color: var(--dim); }
.lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; background: rgba(10, 11, 16, .8); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 30px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255, 255, 255, .03); }
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, #8f82ff, #d06bf5 50%, #fbbf24) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(139, 92, 246, .9);
}
@media (min-width: 961px) { .plan.featured { transform: translateY(-14px); } }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #6d5cf5, #b65cf0); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 10px 25px -8px rgba(139, 92, 246, .8); }
.plan h3 { margin: 0 0 6px; font-size: 1.35rem; }
.plan-for { min-height: 3.2em; margin: 0 0 18px; color: var(--dim); font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amount { font: 800 3rem/1 var(--font-display); letter-spacing: -.04em; color: #fff; }
.price .amount sup { font-size: .45em; vertical-align: .9em; margin-right: 2px; font-weight: 700; }
.price .per { color: var(--dim); }
.price-note { min-height: 1.6em; margin: 0 0 22px; color: var(--faint); font-size: .88rem; }
.price-note.trial { color: var(--green); font-weight: 600; }
.plan .btn { width: 100%; margin-bottom: 24px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 28px; color: var(--dim); font-size: .95rem; line-height: 1.45; }
.plan li strong { color: #fff; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%238f82ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 18px; }
.plan li.no { color: var(--faint); }
.plan li.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23737a8f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan-sub { margin: 16px 0 10px; color: var(--faint); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--dim); }
.compare td:first-child small { display: block; color: var(--faint); font-size: .82rem; }
.compare thead th { position: sticky; top: 0; background: #12131a; color: #fff; font-size: 1rem; }
.compare thead th small { display: block; color: var(--dim); font-weight: 500; font-size: .85rem; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .group td { padding-top: 22px; color: var(--violet); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; }
.compare .col-featured { background: rgba(123, 108, 246, .07); }
.yes { display: inline-block; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%233dd68c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px; vertical-align: middle; }
.no-mark { color: var(--faint); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s; }
.faq-item[open] { border-color: rgba(143, 130, 255, .35); background: rgba(123, 108, 246, .05); }
.faq-item summary { position: relative; padding: 18px 56px 18px 22px; list-style: none; cursor: pointer; color: #fff; font-weight: 620; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 14px;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
.faq-answer { padding: 0 22px 20px; color: var(--dim); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 1em; padding-left: 1.2em; }
.faq-item[open] .faq-answer { animation: fade-in .3s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }
.faq-group { margin-top: 52px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 44px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--dim); font-weight: 600; font-size: .93rem; }
.chips a:hover { color: #fff; border-color: var(--accent-hover); text-decoration: none; }

/* ---------- the top section of the inner pages ---------- */
.page-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); text-align: center; overflow: hidden; overflow: clip; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 900px; margin: 0 auto 20px; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }
.page-hero .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- stories ---------- */
.story-hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 clamp(40px, 6vw, 64px); overflow: hidden; overflow: clip; }
.story-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .story-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.story-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.persona { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .03); max-width: 460px; }
.avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--avatar, linear-gradient(135deg, #6d5cf5, #b65cf0)); color: #fff; font: 750 1.15rem/1 var(--font-display); }
.persona b { display: block; color: #fff; }
.persona span { color: var(--dim); font-size: .92rem; }
.story { padding-bottom: clamp(40px, 6vw, 72px); }
.story-body { max-width: 740px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; color: #d9dce6; }
.story-body h2 { margin: 2.2em 0 .7em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.story-body h2:first-child { margin-top: 0; }
.story-body p { margin-bottom: 1.25em; }
.story-body .chapter { display: block; margin-bottom: 10px; color: var(--violet); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.drop::first-letter { float: left; margin: .06em .12em 0 0; font: 800 3.6em/.8 var(--font-display); color: var(--accent-hover); }
.pull {
  margin: 2em 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--accent), var(--magenta)) 1;
  color: #fff;
  font: 650 clamp(1.3rem, 2.4vw, 1.65rem)/1.4 var(--font-display);
  letter-spacing: -.01em;
}
.pull cite { display: block; margin-top: 10px; color: var(--dim); font: 500 .95rem/1.4 var(--font); font-style: normal; }
.moment { margin: 2.6em calc(-1 * min(120px, 8vw)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.moment-caption { font-size: 1rem; color: var(--dim); }
.moment-caption b { display: block; margin-bottom: 6px; color: #fff; font-size: 1.05rem; }
@media (max-width: 1000px) { .moment { margin-left: 0; margin-right: 0; grid-template-columns: minmax(0, 1fr); } }
.convo { margin: 1.6em 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 1rem; }
.convo li { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.convo li b { display: block; font-size: .8rem; letter-spacing: .04em; margin-bottom: 2px; }
.convo .them b { color: var(--them); }
.convo .me b { color: var(--me); }
.convo .ai { background: rgba(123, 108, 246, .1); border-color: rgba(143, 130, 255, .35); }
.convo .ai b { color: var(--accent-hover); }
.convo code, .mock-answer-body code { overflow-wrap: anywhere; }
.mock-answer-body code { font-size: .86em; padding: 0 .3em; border-radius: 4px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 2em 0; }
.result { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .03); text-align: center; }
.result b { display: block; font: 800 2rem/1.1 var(--font-display); color: #fff; letter-spacing: -.03em; }
.result span { color: var(--dim); font-size: .88rem; line-height: 1.35; display: block; margin-top: 4px; }
@media (max-width: 600px) { .result-grid { grid-template-columns: minmax(0, 1fr); } }
.note {
  margin: 2em 0;
  padding: 18px 20px 18px 54px;
  border: 1px solid rgba(92, 200, 255, .3);
  border-radius: 14px;
  background: rgba(92, 200, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%235cc8ff' stroke-width='2'/%3E%3Cpath d='M12 11v6M12 7.5v.5' stroke='%235cc8ff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 18px 20px / 22px;
  color: #cfe9f7;
  font-size: .98rem;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: #fff; }

/* ---------- setup boxes, code, file trees ---------- */
.setup { margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; }
@media (max-width: 860px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: #0f1016; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--dim); font-size: .85rem; font-weight: 600; }
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f50; }
.panel-head .copy { margin-left: auto; padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: transparent; color: var(--dim); font: 600 .78rem/1.2 var(--font); cursor: pointer; }
.panel-head .copy:hover { color: #fff; border-color: var(--accent-hover); }
.panel pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.65 var(--mono); font-variant-ligatures: none; color: #d7dae4; white-space: pre-wrap; word-break: break-word; }
.panel pre .h { color: #c9c2ff; font-weight: 700; }
.panel pre .c { color: #6f768a; }
.panel pre .k { color: #ffb86b; }
.panel pre .s { color: #8ee6b8; }
.tree { margin: 0; padding: 16px 18px 18px; list-style: none; font: 13.5px/1.9 var(--mono); font-variant-ligatures: none; color: #d7dae4; }
.tree ul { margin: 0; padding-left: 20px; list-style: none; border-left: 1px dashed rgba(255, 255, 255, .12); }
.tree li { position: relative; padding-left: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 12px; border-radius: 2px; background: #6f768a; }
.tree li.folder::before { background: linear-gradient(180deg, #ffcf6b, #f5a524); clip-path: polygon(0 15%, 40% 15%, 50% 0, 100% 0, 100% 100%, 0 100%); }
.tree li.md::before { background: #8f82ff; }
.tree li.pdf::before { background: #f2687a; }
.tree li.doc::before { background: #5c9dff; }
.tree li.xls::before { background: #3dd68c; }
.tree li.ppt::before { background: #ff8a5c; }
.tree li.img::before { background: #d06bf5; }
.tree li.json::before { background: #fbbf24; }
.tree small { color: var(--faint); font-family: var(--font); font-size: .8rem; margin-left: 8px; }
.options-list { margin: 0; padding: 14px 18px 18px; display: grid; gap: 10px; }
.options-list div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.options-list div:last-child { border-bottom: 0; }
.options-list dt { color: var(--dim); }
.options-list dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }

/* ---------- docs-style content (how it works, tutorials, privacy) ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .docs { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.toc p { margin: 0 0 10px; color: var(--faint); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--dim); font-size: .92rem; line-height: 1.35; }
.toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); text-decoration: none; }
.toc a.is-active { color: #fff; background: rgba(123, 108, 246, .16); }
.prose { font-size: 1.05rem; color: #d9dce6; }
.prose > section { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--border); }
.prose > section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--accent-hover); }
.prose .panel, .prose .note, .prose .table-wrap { margin: 1.6em 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border: 1px solid var(--border); border-radius: 14px; }
.prose figcaption { margin-top: 10px; color: var(--faint); font-size: .9rem; text-align: center; }
.step-list { counter-reset: s; margin: 1.4em 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.step-list > li { counter-increment: s; position: relative; margin: 0; padding: 4px 0 4px 54px; min-height: 40px; }
.step-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(143, 130, 255, .4); color: #e0dcff; font-weight: 750; }
.step-list > li b:first-child { color: #fff; }
.kv { width: 100%; border-collapse: collapse; font-size: .97rem; }
.kv th, .kv td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.kv th { color: #fff; font-weight: 650; width: 32%; }
.kv td { color: var(--dim); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .kv th, .kv td { display: block; width: auto; }
  .kv th { padding-bottom: 2px; border-bottom: 0; }
  .kv td { padding-top: 4px; }
}
.style-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4em 0; }
@media (max-width: 680px) { .style-cards { grid-template-columns: minmax(0, 1fr); } }
.style-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .03); font-size: .95rem; }
.style-card h4 { margin: 0 0 4px; font-size: 1.02rem; }
.style-card .tag { color: var(--faint); font-size: .82rem; }
.style-card .sample { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #14151a; border: 1px solid #262a36; color: #e8e9f0; font-size: .92rem; }
.style-card .sample ul { margin: .4em 0 0; padding-left: 1.2em; }

/* ---------- tutorial cards ---------- */
.tutorial-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(48px, 7vw, 80px); }
@media (max-width: 960px) { .tutorial-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tutorial-cards { grid-template-columns: minmax(0, 1fr); } }
.tutorial-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .025); color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.tutorial-card:hover { border-color: rgba(143, 130, 255, .4); transform: translateY(-2px); text-decoration: none; }
.tutorial-card b { display: block; color: #fff; margin-bottom: 2px; }
.tutorial-card span { color: var(--dim); font-size: .92rem; line-height: 1.4; display: block; }
.tutorial-card .num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 800; }
.time-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--dim); font: 600 .78rem/1.6 var(--font); vertical-align: middle; letter-spacing: 0; }

/* ---------- call-to-action band ---------- */
.cta-section { padding-top: 0; }
.cta-band {
  position: relative;
  padding: clamp(44px, 7vw, 84px) clamp(22px, 5vw, 64px);
  border: 1px solid rgba(143, 130, 255, .35);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(109, 92, 245, .28), rgba(182, 92, 240, .14) 55%, rgba(251, 191, 36, .08));
  text-align: center;
  overflow: hidden;
  overflow: clip;
}
.cta-band h2 { max-width: 820px; margin: 0 auto 16px; }
.cta-band .lead { max-width: 640px; margin: 0 auto 30px; color: #d5d2ec; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-glow { position: absolute; z-index: -1; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(143, 130, 255, .25), transparent 30%, rgba(208, 107, 245, .2), transparent 60%); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- download ---------- */
.download-card { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--border); border-radius: 24px; background: rgba(255, 255, 255, .03); text-align: center; }
.download-card .btn { margin: 10px 0 14px; }
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; text-align: left; }
@media (max-width: 600px) { .reqs { grid-template-columns: minmax(0, 1fr); } }
.reqs div { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.reqs b { display: block; color: #fff; font-size: .95rem; }
.reqs span { color: var(--dim); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding: 56px 0 30px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .012); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand p { max-width: 360px; margin: 14px 0 18px; color: var(--dim); font-size: .95rem; }
.footer-col h2 { margin: 6px 0 14px; color: #fff; font: 700 .82rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--dim); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- live demo: a working copy of the app's main window ---------- */
.dw [hidden], .demo-side [hidden] { display: none !important; }
.demo-hero { padding-bottom: clamp(20px, 4vw, 40px); }
.demo-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 980px) { .demo-layout { grid-template-columns: minmax(0, 1fr); } }

.dw { position: relative; display: flex; flex-direction: column; gap: 10px; height: 780px; max-height: calc(100vh - 110px); min-height: 640px; padding: 12px; border-radius: 16px; background: #0d0f15; border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 14px; }
@media (max-width: 560px) { .dw { height: auto; max-height: none; min-height: 0; padding: 10px; } }
.dw-titlebar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dw-titlebar img { width: 22px; height: 22px; border-radius: 6px; }
.dw-name { font-weight: 700; color: #fff; white-space: nowrap; }
.dw-scenario { flex: 1; min-width: 0; }
.dw-scenario select { width: 100%; min-width: 0; height: 32px; padding: 0 30px 0 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: .9rem; text-overflow: ellipsis; }
.dw-scenario select:disabled { opacity: .7; }
.dw-title-icons { display: flex; gap: 10px; color: var(--faint); }
.dw-title-icons svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .dw-title-icons { display: none; } }

.dw-icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--dim); font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.dw-icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: #fff; }
.dw-icon-btn:disabled { opacity: .35; cursor: default; }
.dw-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.dw-answer, .dw-transcript { display: flex; flex-direction: column; min-height: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.dw-answer { flex: 1.15; padding: 10px 14px 8px; }
.dw-answer-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.dw-answer-label { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.dw-answer-label svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-hover); stroke-width: 2; stroke-linejoin: round; }
.dw-status { flex: 1; min-width: 0; color: var(--accent-hover); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-answer-tools { display: flex; align-items: center; gap: 2px; }
.dw-history { min-width: 26px; color: var(--faint); font-size: .78rem; text-align: center; }
.dw-answer-body { flex: 1; min-height: 120px; overflow: auto; padding: 6px 2px 4px; color: var(--text); font-size: 1.04rem; line-height: 1.55; }
.dw-answer-body p { margin: 0 0 .6em; }
.dw-answer-body ul { margin: 0 0 .6em; padding-left: 1.2em; }
.dw-answer-body li { margin: .2em 0; }
.dw-answer-body li::marker { color: var(--violet); }
.dw-answer-body strong { color: #fff; }
.dw-answer-body code { font-size: .88em; padding: 0 .3em; border-radius: 4px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); overflow-wrap: anywhere; }
.dw-answer-body pre { margin: .2em 0 .7em; padding: 10px 12px; border-radius: 8px; background: #08090d; border: 1px solid var(--border); overflow: auto; font: 12.5px/1.5 var(--mono); }
.dw-answer-body pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.dw-placeholder { color: var(--faint); }
.dw-error { color: var(--danger); }
.dw.is-answering .dw-answer-body::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent-hover); animation: dw-blink 1s steps(2) infinite; }
@keyframes dw-blink { 50% { opacity: 0; } }
.dw-meta { min-height: 18px; color: var(--faint); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dw-transcript { flex: 1; padding: 8px 10px 10px; }
.dw-transcript-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 6px; }
.dw-listen { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.dw-listen i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dw-listen:disabled { opacity: .5; cursor: default; }
.dw.is-listening .dw-listen i { background: var(--danger); box-shadow: 0 0 0 4px rgba(242, 104, 122, .18); }
.dw-level { width: 64px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dw-level i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--them), var(--gold)); transition: width .1s linear; }
.dw-speaking { color: var(--them); font-size: .8rem; opacity: 0; transition: opacity .2s; }
.dw.is-speaking .dw-speaking { opacity: 1; }
.dw-voice { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.dw-voice button { height: 28px; padding: 0 10px; border: 0; background: transparent; color: var(--dim); font: inherit; font-size: .8rem; cursor: pointer; }
.dw-voice button[aria-pressed="true"][data-voice="them"] { background: rgba(255, 184, 107, .16); color: var(--them); }
.dw-voice button[aria-pressed="true"][data-voice="me"] { background: rgba(92, 200, 255, .16); color: var(--me); }
.dw-tools { display: flex; gap: 2px; margin-left: auto; }
.dw-lines { flex: 1; min-height: 90px; margin: 0; padding: 0; list-style: none; overflow: auto; }
.dw-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 5px 2px; border-radius: 8px; }
.dw-line:hover { background: rgba(255, 255, 255, .025); }
.dw-who { display: flex; flex-direction: column; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.dw-who small { color: var(--faint); font-weight: 400; font-size: .72rem; }
.dw-line.them .dw-who { color: var(--them); }
.dw-line.me .dw-who { color: var(--me); }
.dw-line.typed .dw-who { color: var(--typed); }
.dw-edited { color: var(--edited); font-size: .68rem; font-weight: 400; }
.dw-text { min-width: 0; padding: 1px 4px; border-radius: 5px; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; outline: none; }
.dw-text[contenteditable]:focus { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--accent); }
.dw-line.is-partial .dw-text { color: var(--dim); font-style: italic; }
.dw-line.is-partial .dw-text:empty::after { content: attr(data-placeholder); animation: dw-pulse 1.2s ease-in-out infinite; }
@keyframes dw-pulse { 50% { opacity: .35; } }
.dw-line-tools { display: flex; gap: 0; opacity: .25; transition: opacity .15s; }
.dw-line:hover .dw-line-tools, .dw-line:focus-within .dw-line-tools { opacity: 1; }
@media (hover: none) { .dw-line-tools { opacity: .8; } }
.dw-lines:empty { flex: 0; min-height: 0; }
.dw-empty { flex: 1; margin: 8px 4px; color: var(--faint); font-size: .9rem; }
.dw-notice { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); color: var(--gold); font-size: .86rem; }
.dw-ask { margin: 8px 0 0; }
.dw-ask input { width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: #0b0d12; color: var(--text); font: inherit; font-size: .92rem; }
.dw-ask input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.dw-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dw-answer-btn, .dw-screen-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; font: inherit; font-weight: 650; cursor: pointer; }
.dw-answer-btn { border: 0; background: var(--accent); color: #fff; }
.dw-answer-btn:hover:not(:disabled) { background: var(--accent-hover); }
.dw-screen-btn { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.dw-answer-btn:disabled, .dw-screen-btn:disabled { opacity: .45; cursor: default; }
.dw-answer-btn svg, .dw-screen-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dw-answer-btn.is-hinted { animation: dw-hint 1s var(--ease) 2; }
@keyframes dw-hint { 50% { box-shadow: 0 0 0 8px rgba(123, 108, 246, .35); } }
.dw-statusbar { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .76rem; }
.dw-statusbar span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-closed { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; padding: 24px; border-radius: 16px; background: rgba(10, 11, 16, .9); text-align: center; }
.dw-closed p { margin: 0 0 8px; color: var(--dim); }
.dw-closed .btn { justify-self: center; margin-top: 8px; }

.demo-side { display: grid; gap: 16px; }
.demo-card { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.demo-card h2 { margin: 0 0 10px; font-size: 1.05rem; }
.demo-card p { margin: 0 0 10px; color: var(--dim); font-size: .94rem; }
.demo-steps { margin: 0; padding-left: 1.2em; color: var(--dim); font-size: .94rem; display: grid; gap: 6px; }
.demo-steps b { color: var(--text); }
.demo-roles b { color: var(--text); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.demo-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.demo-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-files { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.demo-file { position: relative; width: 100%; padding: 6px 8px 6px 26px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: 13px/1.4 var(--mono); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.demo-file:hover { background: rgba(255, 255, 255, .05); }
.demo-file::before { content: ""; position: absolute; left: 8px; top: .7em; width: 11px; height: 10px; border-radius: 2px; background: #6f768a; }
.demo-file.md::before { background: #8f82ff; }
.demo-file.json::before { background: #fbbf24; }
.demo-file.cs::before { background: #3dd68c; }
.demo-file-view { margin-top: 12px; border-radius: 10px; border: 1px solid var(--border); background: #08090d; }
.demo-file-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-bottom: 1px solid var(--border); color: var(--dim); font: 12.5px/1.4 var(--mono); }
.demo-file-view pre { max-height: 380px; margin: 0; padding: 12px; overflow: auto; color: #d7dae4; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-cta { background: linear-gradient(135deg, rgba(123, 108, 246, .18), rgba(208, 107, 245, .08)); border-color: rgba(143, 130, 255, .35); }
.demo-note { max-width: 760px; margin: 22px auto 0; color: var(--faint); font-size: .86rem; text-align: center; }

/* ---------- scroll reveal (it only runs with JavaScript, and the content shows without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .timeline-fill { width: 100%; }
}
