/* veskyra.com/chat. Veskyra Chat's palette: ink #1C2430 and paper #F7F5F0 (the app's), with the teal of the app
   icon's reply bubble as the accent. Plus Jakarta Sans headings, Inter text, JetBrains Mono labels (brand guide §2).
   Tokens only below; no hex in components. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --surface: #ffffff;
  --ink: #1c2430;
  --ink-2: #3c4452;
  --muted: #5b6472;
  --border: #e5e1d8;
  --accent: #2f777c;
  --accent-ink: #25666b;
  --accent-soft: rgb(51 127 132 / 0.1);
  --btn-ink: #ffffff;
  --hero-a: #1c2430;
  --hero-b: #0d1219;
  --on-hero: #f7f5f0;
  --on-hero-muted: rgb(247 245 240 / 0.7);
  --teal-bright: #73c2c3;
  --danger: #b3382c;
  --ok: #1a7a4a;
  /* The product illustrations: the web app's own tokens (apps/web/app/app.css). */
  --app-canvas: #e9e5dc;
  --app-rail: #1c2430;
  --app-rail-ink: #f7f5f0;
  --app-rail-muted: rgb(247 245 240 / 0.55);
  --app-rail-on: rgb(247 245 240 / 0.14);
  --app-panel: #fdfcf9;
  --app-panel-2: #f4f1ea;
  --app-ink: #1c2430;
  --app-muted: #747a85;
  --app-line: #e6e1d6;
  --app-other: #f1eee6;
  --app-mine: linear-gradient(160deg, #2c374b 0%, #1c2430 100%);
  --app-mine-ink: #f7f5f0;
  --app-mention: rgb(28 36 48 / 0.09);
  --shadow: 0 1px 2px rgb(23 28 38 / 0.06), 0 8px 24px rgb(23 28 38 / 0.07);
  --shadow-lg: 0 30px 80px -30px rgb(10 14 20 / 0.55), 0 2px 8px rgb(10 14 20 / 0.12);
  --t-hero: clamp(2.6rem, 6vw, 4.4rem);
  --t-h2: clamp(1.9rem, 3.5vw, 2.75rem);
  --t-h3: 1.375rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.15rem, 1.8vw, 1.35rem);
  --section: clamp(72px, 10vw, 128px);
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

[data-theme='dark'] {
  --paper: #0b0f15;
  --paper-2: #10151d;
  --surface: #141920;
  --ink: #f1eee7;
  --ink-2: #cdd0d5;
  --muted: #9aa0a9;
  --border: #232a35;
  --accent: #73c2c3;
  --accent-ink: #8fd2d3;
  --accent-soft: rgb(115 194 195 / 0.1);
  --btn-ink: #0b0f15;
  --hero-a: #161d28;
  --hero-b: #080b10;
  --app-canvas: #090c11;
  --app-rail: #0c1016;
  --app-rail-on: rgb(247 245 240 / 0.11);
  --app-panel: #141920;
  --app-panel-2: #1b212a;
  --app-ink: #f1eee7;
  --app-muted: #8f96a1;
  --app-line: #232a35;
  --app-other: #1d2430;
  --app-mine: linear-gradient(160deg, #34415a 0%, #273246 100%);
  --app-mention: rgb(115 194 195 / 0.16);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body) / 1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  display: inline-block;
  font: 500 0.8125rem / 1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.lead { font-size: var(--t-lead); color: var(--muted); max-width: 62ch; margin-top: 18px; }
h1 { font-size: var(--t-hero); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--display);
  padding: 14px 24px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.15s, filter 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(0.92); }
.btn-primary { background: var(--accent); color: var(--btn-ink); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.on-hero .btn-secondary { border-color: var(--on-hero); color: var(--on-hero); }
.on-hero .btn-primary { background: var(--teal-bright); color: #0b0f15; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 1.02rem/1 var(--display); letter-spacing: 0.06em; color: var(--ink); text-decoration: none; }
.tm { font-size: 0.6em; vertical-align: super; margin-left: 1px; font-weight: 600; }
.brand-logo-wrap { display: inline-flex; }
.brand-logo { width: 30px; height: 30px; }
.brand-logo--sm { width: 24px; height: 24px; }
.brand-logo-dark { display: none; }
[data-theme='dark'] .brand-logo-light { display: none; }
[data-theme='dark'] .brand-logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a.active, .nav-links a:not(.btn):hover { color: var(--accent-ink); }
.nav-cta { padding: 10px 16px; font-size: 0.9rem; }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }
.nav-mobile-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }
#mobile-menu { display: none; }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  #mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--border); }
  #mobile-menu a { padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); }
  #mobile-menu .mobile-cta { margin-top: 10px; text-align: center; background: var(--accent); color: var(--btn-ink); border-radius: 10px; border: 0; }
  #mobile-menu .theme-toggle { margin-top: 12px; }
}

/* Sections */
section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.band { background: var(--paper-2); }
.dark-band { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); color: var(--on-hero); }
.dark-band h1, .dark-band h2, .dark-band h3, .hero h1 { color: var(--on-hero); }
.dark-band .lead, .dark-band .muted { color: var(--on-hero-muted); }
.dark-band .eyebrow { color: var(--teal-bright); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: 0.92fr 1.08fr; } }
.hero h1 .hl { color: var(--teal-bright); }
.hero .lead { color: var(--on-hero-muted); }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--on-hero-muted); display: flex; gap: 8px; align-items: center; }
.hero::before {
  content: ''; position: absolute; inset: auto -20% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, rgb(115 194 195 / 0.18), transparent);
  pointer-events: none;
}
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.card .icon svg { width: 20px; height: 20px; }
.dark-band .card { background: rgb(247 245 240 / 0.04); border-color: rgb(247 245 240 / 0.1); box-shadow: none; }
.dark-band .card p { color: var(--on-hero-muted); }
.dark-band .card .icon { background: rgb(115 194 195 / 0.12); color: var(--teal-bright); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.dark-band .checks li { color: var(--on-hero-muted); }

/* Feature rows: copy beside an illustration */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .feature-row.flip > :first-child { order: 2; }
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row p { color: var(--muted); margin-top: 14px; }

/* Compare: who holds the keys */
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 860px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.key-diagram { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 4px; font: 500 0.78rem/1.3 var(--mono); color: var(--muted); }
.key-diagram .node { flex: 1; text-align: center; padding: 14px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.key-diagram .node.holds { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.key-diagram .node.bad { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); color: var(--danger); }
.key-diagram .wire { flex: 0 0 22px; height: 2px; background: var(--border); }
.badge-yes, .badge-no { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.06em; padding: 5px 8px; border-radius: 6px; text-transform: uppercase; }
.badge-yes { background: var(--accent-soft); color: var(--accent-ink); }
.badge-no { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

/* Video */
.video-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgb(247 245 240 / 0.08); background: #0b0f15; aspect-ratio: 16 / 9; }
.video-wrap video { width: 100%; height: 100%; }
.video-notes { display: grid; gap: 18px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { border-left: 2px solid var(--teal-bright); padding-left: 16px; }
.stat b { display: block; font: 700 1.5rem/1.2 var(--display); color: var(--on-hero); }
.stat span { color: var(--on-hero-muted); font-size: 0.95rem; }
.fine { font-size: 0.85rem; color: var(--muted); }
.dark-band .fine { color: var(--on-hero-muted); }

/* Audiences */
.audience { display: flex; flex-direction: column; }
.audience .who { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.audience h3 { font-size: 1.25rem; }
.audience p { margin-top: 10px; }

/* Platforms strip */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.platform { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); background: var(--surface); }
.platform svg { width: 16px; height: 16px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 1.1rem/1.4 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--font); color: var(--accent-ink); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* Final CTA */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
footer { background: var(--paper-2); border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-top { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-blurb { color: var(--muted); margin-top: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-head { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--muted); }

/* Reveal */
[data-reveal].reveal-ready { opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
[data-reveal].reveal-ready.is-visible { opacity: 1; transform: none; }

/* ---------- Product illustrations: the web app's real layout, drawn with its own tokens ---------- */
.app {
  --r: 18px;
  display: grid; grid-template-columns: 210px 1fr; border-radius: var(--r); overflow: hidden;
  background: var(--app-panel); box-shadow: var(--shadow-lg); border: 1px solid rgb(247 245 240 / 0.08);
  font: 400 13.5px/1.45 var(--font); color: var(--app-ink); text-align: left; min-height: 440px;
}
.app.single { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.app-rail { background: var(--app-rail); color: var(--app-rail-ink); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-org { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 8px 14px; font-family: var(--display); }
.app-org i { width: 22px; height: 22px; border-radius: 6px; background: var(--teal-bright); display: inline-block; }
.app-sec { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-rail-muted); padding: 12px 8px 6px; }
.app-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--app-rail-muted); white-space: nowrap; overflow: hidden; }
.app-item.on { background: var(--app-rail-on); color: var(--app-rail-ink); font-weight: 600; }
.app-item .hash { opacity: 0.6; width: 12px; text-align: center; }
.app-item .count { margin-left: auto; background: var(--teal-bright); color: #0b0f15; border-radius: 999px; font: 700 10.5px/1 var(--font); padding: 3px 6px; }
.app-item .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55c; margin-left: 2px; }
.app-main { display: flex; flex-direction: column; background: var(--app-panel); min-width: 0; }
.app-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--app-line); font-weight: 700; font-family: var(--display); white-space: nowrap; min-width: 0; }
.app-head .sub { overflow: hidden; text-overflow: ellipsis; font: 400 12px/1 var(--font); color: var(--app-muted); }
@media (max-width: 1180px) { .app-head .sub { display: none; } }
.app-head .e2e { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font); color: var(--accent-ink); background: var(--accent-soft); padding: 5px 8px; border-radius: 999px; }
[data-theme='dark'] .app-head .e2e { color: var(--teal-bright); }
.app-head .e2e svg { width: 11px; height: 11px; }
.app-log { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--font); color: #f7f5f0; background: #3c4452; }
.msg .av.t { background: #2f777c; }
.msg .av.g { background: #7a5c2e; }
.msg .av.ai { background: linear-gradient(140deg, #73c2c3, #2f777c); }
.msg .who { font-weight: 700; font-size: 13px; }
.msg .who small { font-weight: 400; color: var(--app-muted); margin-left: 6px; font-size: 11.5px; }
.msg .body { margin-top: 2px; color: var(--app-ink); }
.mention { background: var(--app-mention); color: var(--accent-ink); font-weight: 600; padding: 0 4px; border-radius: 4px; }
[data-theme='dark'] .mention { color: var(--teal-bright); }
.reacts { display: flex; gap: 6px; margin-top: 6px; }
.react { border: 1px solid var(--app-line); border-radius: 999px; padding: 2px 8px; font-size: 12px; background: var(--app-panel-2); }
.react.me { border-color: var(--teal-bright); }
.thread-link { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
[data-theme='dark'] .thread-link { color: var(--teal-bright); }
.thread-link .faces { display: inline-flex; }
.thread-link .faces i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--app-panel); margin-left: -5px; background: #3c4452; display: inline-block; }
.thread-link .faces i:first-child { margin-left: 0; background: #2f777c; }
.file { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--app-line); border-radius: 12px; padding: 8px 12px; background: var(--app-panel-2); font-size: 12.5px; }
.file b { display: block; font-size: 12.5px; }
.file small { color: var(--app-muted); }
.file .ext { width: 30px; height: 36px; border-radius: 6px; background: #b3382c; color: #fff; font: 700 9px/36px var(--font); text-align: center; }
.app-compose { margin: 0 16px 14px; border: 1px solid var(--app-line); border-radius: 14px; padding: 10px 12px; color: var(--app-muted); display: flex; align-items: center; gap: 10px; background: var(--app-panel); }
.app-compose .send { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--app-rail); display: grid; place-items: center; }
[data-theme='dark'] .app-compose .send { background: var(--teal-bright); }
.app-compose .send svg { width: 12px; height: 12px; color: #f7f5f0; }
[data-theme='dark'] .app-compose .send svg { color: #0b0f15; }
.app-compose .tools { display: flex; gap: 8px; font: 700 11px/1 var(--font); }
.app-compose .tools span { border: 1px solid var(--app-line); border-radius: 6px; padding: 3px 5px; }
.ai-card { margin-top: 6px; border: 1px solid var(--app-line); border-left: 3px solid var(--teal-bright); border-radius: 12px; padding: 10px 12px; background: var(--app-panel-2); }
.ai-card .meta { font: 500 10.5px/1 var(--mono); color: var(--app-muted); letter-spacing: 0.04em; margin-top: 8px; }

/* A GIF, drawn: a short loop that plays like one. Stops under reduced motion. */
.gif { margin-top: 6px; width: 220px; height: 124px; border-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(160deg, #233046, #101722); }
.gif .lbl { position: absolute; left: 8px; bottom: 6px; font: 700 9.5px/1 var(--mono); color: rgb(247 245 240 / 0.6); letter-spacing: 0.06em; }
.gif svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gif .rocket { animation: lift 2.4s ease-in-out infinite; transform-origin: center; }
.gif .flame { animation: flick 0.25s steps(2) infinite; }
.gif .star { animation: twinkle 1.6s linear infinite; }
@keyframes lift { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-6px); } }
@keyframes flick { 50% { opacity: 0.45; } }
@keyframes twinkle { 50% { opacity: 0.2; } }

/* The thread panel beside a room */
.app.thread-view { grid-template-columns: 1fr 0.95fr; }
.thread-pane { border-left: 1px solid var(--app-line); background: var(--app-panel-2); display: flex; flex-direction: column; }
.thread-pane .app-head { background: var(--app-panel-2); }

/* Phone frame for the mobile illustration */
.phone { width: 270px; border-radius: 40px; padding: 10px; background: #0b0f15; box-shadow: var(--shadow-lg); margin: 0 auto; }
.phone .screen { border-radius: 31px; overflow: hidden; background: var(--app-panel); }
.phone .app { box-shadow: none; border: 0; border-radius: 0; min-height: 470px; }

.illus-stack { position: relative; }
.illus-float { position: absolute; right: -14px; bottom: -26px; width: min(300px, 70%); }
@media (max-width: 900px) { .illus-float { position: static; width: 100%; margin-top: 18px; } }

@media (max-width: 640px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-rail { display: none; }
  .app.thread-view { grid-template-columns: minmax(0, 1fr); }
  .thread-pane { border-left: 0; border-top: 1px solid var(--app-line); }
}

/* Lock and key, the security diagram */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; } }
.flow .step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; text-align: center; box-shadow: var(--shadow); }
.flow .step b { display: block; font-family: var(--display); font-size: 1.05rem; margin-top: 10px; }
.flow .step span { color: var(--muted); font-size: 0.93rem; }
.flow .arrow { color: var(--accent); text-align: center; font-size: 1.4rem; }
.flow .step .glyph { width: 44px; height: 44px; margin: 0 auto; color: var(--accent-ink); }
.cipher { font: 500 0.78rem/1.5 var(--mono); color: var(--muted); word-break: break-all; margin-top: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table.facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.facts th, table.facts td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.facts th { font: 600 0.8rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
table.facts tr:last-child td { border-bottom: 0; }
table.facts td:first-child { font-weight: 600; width: 34%; }

.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 20px; background: var(--surface); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal].reveal-ready { opacity: 1; transform: none; transition: none; }
  .gif .rocket, .gif .flame, .gif .star { animation: none; }
  .btn:hover { transform: none; }
}

/* Contact page (the form's own styles are the shared contact-form.css) */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 860px) { .contact-wrap { grid-template-columns: 1.1fr 0.9fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.contact-aside hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-aside p { color: var(--muted); font-size: 0.95rem; }
.big-link { font-family: var(--mono); font-size: 1.1rem; color: var(--accent-ink); text-decoration: none; display: inline-block; margin: 8px 0 16px; }

/* About hero: the Veskyra Chat badge beside the intro. About is the one page that shows the badge; every other page
   uses the symbol. */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-hero-badge { margin: 0; }
.about-hero-badge img { width: clamp(150px, 20vw, 220px); height: auto; }
.about-hero-badge .brand-logo-light { display: block; }
.about-hero-badge .brand-logo-dark { display: none; }
[data-theme='dark'] .about-hero-badge .brand-logo-light { display: none; }
[data-theme='dark'] .about-hero-badge .brand-logo-dark { display: block; }
@media (max-width: 760px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero-badge { order: -1; }
  .about-hero-badge img { width: 132px; }
}
