/* Shared look of the standalone pages (/demo, /assistant and their /lt
   versions). The Framer export's inline_styles.css is not loaded on them, so
   the parts they share with the homepage are copied here from it: the nav
   (.vex-* rules in lt/index.html), the hero eyebrow and highlight, card and badge
   styles. The site has one theme, dark, which mirrors "/".
   Page-specific styles live next to each page's script. */

:root {
  --bg: #0a0a0c;
  --surface: #0b0d10;
  --surface-2: #13161e;
  --border: #181c25;
  --text: #f4f2ef;
  --muted: #b2b2b2;
  --muted-2: #999999;
  --faint: #6c6f78;
  --accent: #b0e562;
  --accent-2: #a0d64a;
  --grad: linear-gradient(135deg, #c5f07a 0%, #a0d64a 100%);
  --btn-shadow: 0 12px 26px -10px rgba(160, 214, 74, .6);
  --accent-ink: #0a0a0c;
  --accent-soft: rgba(176, 229, 98, .12);
  --accent-ring: rgba(176, 229, 98, .35);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, .1);
  --sheet-head: #11141a;
  --sheet-grid: #181c25;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --nav-bg: rgba(18, 18, 21, .72);
  --nav-border: 1px solid rgba(176, 229, 98, .14);
  --nav-shadow: rgba(0, 0, 0, .5) 0 12px 34px 0;
  --menu-bg: #141417;
  --menu-hover: #1e1e23;
  --badge-shadow: rgba(73, 73, 73, .2) 0 2px 3px 0;
  --font-head: "Clash Grotesk", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Roboto", "Instrument Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip; /* not hidden: that would stop the sticky nav */
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
button, textarea, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; position: relative; }

/* Hero backdrop: soft lime glow over a dot grid (like the homepage's dot field). */
.backdrop { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: 0; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(176, 229, 98, .10), transparent 70%),
    radial-gradient(rgba(244, 242, 239, .10) 1px, transparent 1.4px) 0 0 / 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}
main, footer { position: relative; z-index: 1; }

/* ---- nav: the homepage's .vex-nav ---- */
.vex-nav {
  position: sticky; top: 24px; z-index: 50;
  line-height: normal; /* the homepage's; body text here uses 1.55, which made the CTA 2px taller */
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - 48px); max-width: 890px; margin: 24px auto 0;
  padding: 10px 14px 10px 24px; box-sizing: border-box;
  background: var(--nav-bg); border: var(--nav-border); border-radius: 100px; box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
}
.vex-logo { display: flex; align-items: center; flex: 0 0 auto; }
.vex-logo img { height: 49px; width: auto; display: block; object-fit: contain; }
.vex-logo .logo-dark { filter: invert(1) brightness(1.9); }
.vex-links { display: flex; align-items: center; gap: 22px; }
.vex-nav { transition: padding .3s ease, box-shadow .3s ease, background .3s ease; }
/* css/deck-theme.css (dark) and light/css/enhance.css: slimmer once scrolled */
.vex-nav.scrolled {
  padding-top: 7px; padding-bottom: 7px;
  background: rgba(14, 14, 16, .82); border-color: rgba(176, 229, 98, .2);
  box-shadow: rgba(0, 0, 0, .55) 0 14px 40px 0;
}
.vex-links a {
  position: relative; text-decoration: none; color: var(--text); font-family: var(--font-ui);
  font-size: 17px; font-weight: 500; white-space: nowrap; transition: color .2s;
}
.vex-links a:hover, .vex-links a[aria-current="page"] { color: var(--accent); }
.vex-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; border-radius: 2px;
  background: var(--accent); transition: right .28s cubic-bezier(.22, .61, .36, 1);
}
.vex-links a:hover::after, .vex-links a[aria-current="page"]::after { right: 0; }
.vex-cta {
  flex: 0 0 auto; text-decoration: none; color: var(--accent-ink); font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 100px; white-space: nowrap;
  background: var(--grad); box-shadow: var(--btn-shadow); transition: filter .2s;
}
.vex-cta:hover { filter: brightness(1.06); }
.vex-mlink, .vex-burger { display: none; }
@media (min-width: 861px) and (max-width: 1260px) {
  .vex-links { gap: 18px; }
  .vex-links a { font-size: 15px; }
}
@media (min-width: 861px) and (max-width: 960px) {
  .vex-links { gap: 13px; }
  .vex-links a { font-size: 14px; }
}
@media (max-width: 860px) {
  .vex-nav { gap: 12px; }
  .vex-links {
    display: none; position: absolute; top: calc(100% + 12px); right: 8px; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 2px; min-width: 230px;
    background: var(--menu-bg); border-radius: 18px; padding: 10px;
    box-shadow: 0 18px 44px -12px rgba(10, 10, 12, .18);
  }
  .vex-links.open { display: flex; }
  .vex-links a { display: block; width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 16px; }
  .vex-links a::after { display: none; }
  .vex-links a:hover { background: var(--menu-hover); }
  .vex-mlink { display: block; margin-top: 6px; text-align: center; color: var(--accent-ink) !important; background: var(--grad); font-weight: 600; }
  .vex-mlink:hover { filter: brightness(1.05); background: var(--grad) !important; }
  .vex-cta { display: none; }
  .vex-burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 48px; height: 44px; flex: 0 0 auto; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%;
  }
  .vex-burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
  .vex-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .vex-burger.open span:nth-child(2) { opacity: 0; }
  .vex-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}


/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 100px; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, background .2s ease, opacity .2s ease;
}
.btn-primary { padding: 12px 22px; background: var(--grad); color: var(--accent-ink); box-shadow: var(--btn-shadow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04) saturate(1.05); }
.btn-primary:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-ghost { padding: 11px 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent-ring); }

/* ---- hero: the homepage's eyebrow + highlighted word ---- */
.hero { text-align: center; padding: 64px 0 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1.75px; color: var(--accent);
}
.eyebrow span { padding: 6px 14px; border: 1px solid var(--accent-ring); border-radius: 100px; background: rgba(10, 10, 12, .6); }
.eyebrow::before, .eyebrow::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-ring)); }
.eyebrow::after { transform: scaleX(-1); }
@media (max-width: 560px) {
  .eyebrow { font-size: 11.5px; letter-spacing: 1.2px; }
  .eyebrow::before, .eyebrow::after { display: none; }
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.2; font-weight: 500;
  margin: 22px auto 18px; max-width: 820px; text-wrap: balance;
}
.hl { background-image: var(--grad); color: var(--accent-ink); border-radius: .08em; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl { background-image: linear-gradient(0deg, #b0e562, #b0e562); }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 640px; margin: 0 auto; text-wrap: pretty; }

/* ---- panels (demo / assistant UI) ---- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); min-width: 0; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-family: var(--font-head); font-weight: 500; font-size: 17px;
}
.panel-head .step-no {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 13px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-ring);
}
.panel-head .pill { margin-left: auto; font-family: var(--font-body); font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.panel-head .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.panel-head .pill.working i { background: var(--warn); animation: pulse 1s ease-in-out infinite; }
.panel-head .pill.done i { background: var(--accent); }
@keyframes pulse { 50% { opacity: .3; } }
.panel-body { padding: 16px 18px 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; animation: rise .35s ease both; }
.step .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.step.work .ic { border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.step.ok .ic { background: var(--accent-soft); color: var(--accent); }
.step.ok .ic::before { content: ""; width: 9px; height: 5px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.step.err .ic { background: var(--warn-soft); color: var(--warn); }
.step.err .ic::before { content: "!"; font-weight: 600; font-size: 13px; }
.step.work .tx { color: var(--muted); }
.placeholder { color: var(--faint); font-size: 15px; margin: 4px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* summary, warnings, email drafts */
.summary { font-size: 15px; margin: 0 0 14px; }
.missing {
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px;
}
.missing b { color: var(--warn); font-weight: 500; display: block; margin-bottom: 4px; }
.missing ul { margin: 0; padding-left: 18px; }
.reply { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); overflow: hidden; animation: rise .4s ease both; }
.reply-head { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; overflow-wrap: anywhere; }
.reply-head b { color: var(--text); font-weight: 500; }
.reply textarea {
  display: block; width: 100%; min-height: 160px; border: 0; resize: none; overflow: hidden; padding: 12px 14px;
  background: transparent; font-size: 15px; line-height: 1.6;
}
.reply textarea:focus { outline: none; }
.reply textarea:not([readonly]) { background: var(--accent-soft); }
.reply-actions { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.reply-actions .btn { padding: 9px 16px; font-size: 14.5px; }
.note { font-size: 13px; color: var(--faint); margin: 12px 0 0; }

/* ---- explainer sections: the homepage's section badge + cards ---- */
section.block { padding: 96px 0 0; text-align: center; }
.sec-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 8px 14px 8px 8px; margin-bottom: 18px;
  background: var(--bg); border-radius: 100px; box-shadow: var(--badge-shadow);
  font-family: var(--font-mono); font-style: italic; font-weight: 500; font-size: 15px; color: var(--muted);
}
.sec-badge { border: 1px solid var(--border); }
.sec-badge i { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px -2px var(--accent-ring); }
.block h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
.block .lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 40px; text-wrap: pretty; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); text-align: left; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card:hover { border-color: var(--accent-ring); transform: translateY(-3px); }
.card .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); margin-bottom: 16px; box-shadow: 0 0 18px -4px var(--accent-ring); }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted-2); font-family: var(--font-ui); font-size: 16.5px; line-height: 1.5; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent); }

.cta {
  margin: 96px 0 0; padding: 60px 24px; text-align: center; border-radius: 28px;
  background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.cta h2 { margin: 0 0 10px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }
.cta .btn-primary, .cta .btn-ghost { padding: 14px 26px; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { padding: 40px 0 48px; text-align: center; color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 14.5px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
