/* yatishara.com home. Static HTML on Studio tokens (tokens.css, synced from Studio). */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
}

:root {
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gap: 16px;
  --card-r: 22px;
  --media-r: 16px;
  --card-fill: color-mix(in srgb, #fff 55%, var(--mos-plate));
  --card-shadow:
    0 1px 2px color-mix(in srgb, #0f172a 6%, transparent),
    0 2px 8px color-mix(in srgb, #0f172a 5%, transparent);
  --card-shadow-lg:
    0 6px 24px color-mix(in srgb, #0f172a 10%, transparent),
    0 2px 6px color-mix(in srgb, #0f172a 6%, transparent);
  --pill-fill: rgb(255 255 255 / 0.62);
  --pill-fill-hover: rgb(255 255 255 / 0.9);
  --pill-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 2px 4px rgb(0 0 0 / 0.05);
  --tint: color-mix(in srgb, var(--mos-accent) 12%, var(--mos-page));
  --inset: color-mix(in srgb, var(--mos-plate-strong) 70%, transparent);
}
:root[data-appearance="dark"] {
  --card-fill: color-mix(in srgb, var(--mos-plate) 92%, transparent);
  --card-shadow:
    0 1px 2px color-mix(in srgb, #000 30%, transparent),
    0 2px 8px color-mix(in srgb, #000 22%, transparent);
  --card-shadow-lg:
    0 8px 28px color-mix(in srgb, #000 40%, transparent),
    0 2px 6px color-mix(in srgb, #000 24%, transparent);
  --pill-fill: rgb(255 255 255 / 0.06);
  --pill-fill-hover: rgb(255 255 255 / 0.12);
  --pill-shadow: none;
  --tint: color-mix(in srgb, var(--mos-accent) 18%, var(--mos-page));
  --inset: color-mix(in srgb, var(--mos-plate-strong) 80%, transparent);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--mos-page); }
body {
  color: var(--mos-text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--mos-accent) 28%, transparent); }
svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: 40px 0; }

/* ---- Shell: copied from blog-redesign src/app/globals.css (stage, 36px header,
   rounded app card). Gap set to 12px per Dallas. ---- */
:root {
  --blog-frame-gap: 12px;
  --blog-frame-radius: 22px;
  --blog-frame-shadow:
    0 3px 12px color-mix(in srgb, #0f172a 8%, transparent),
    0 1px 3px color-mix(in srgb, #0f172a 5%, transparent);
  --blog-head-pill: rgb(255 255 255 / 0.56);
  --blog-head-pill-hover: rgb(255 255 255 / 0.8);
  --blog-head-pill-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 2px 4px rgb(0 0 0 / 0.06);
  --blog-head-mark: rgb(255 255 255 / 0.62);
}
:root[data-appearance="dark"] {
  --blog-frame-shadow:
    0 3px 10px color-mix(in srgb, #000 18%, transparent),
    0 1px 3px color-mix(in srgb, #000 12%, transparent);
  --blog-head-pill: rgb(0 0 0 / 0.22);
  --blog-head-pill-hover: rgb(0 0 0 / 0.3);
  --blog-head-pill-shadow: none;
  --blog-head-mark: rgb(255 255 255 / 0.1);
}
/* ---- stage (gradient) + header + app card ---- */
.blog-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: var(--blog-frame-gap);
  background-color: var(--mos-page);
  isolation: isolate;
}
.blog-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--studio-theme-gradient);
}
@media (min-width: 900px) {
  .blog-shell {
    --blog-frame-gap: 16px;
    padding-top: 4px;
  }
}

/* .studio-desktop-workspace-head: 36px, transparent, sits on the gradient. */
.blog-header {
  flex: 0 0 36px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  z-index: 40;
}
@media (max-width: 899px) {
  .blog-header { margin-bottom: 6px; }
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  min-width: 0;
  padding: 0 14px 0 3px;
  border-radius: 999px;
  background: var(--blog-head-pill);
  box-shadow: var(--blog-head-pill-shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: var(--mos-text);
}
/* π mark = Studio's logo tap: flips light/dark + new accent. */
.blog-brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--blog-head-mark);
  cursor: pointer;
  transition: transform 160ms ease;
}
.blog-brand-mark:hover { transform: rotate(-12deg); }
.blog-brand-mark:active { transform: scale(0.92); }
.blog-brand img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
[data-appearance="dark"] .blog-brand img { filter: invert(1); }
.blog-brand-link {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mos-text);
}
.blog-brand-link:hover { color: var(--mos-accent-ink); }

.blog-header-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
/* Header tool pills: 34px, round, frosted — icon + label. */
.blog-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blog-head-pill);
  box-shadow: var(--blog-head-pill-shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: var(--mos-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.blog-header-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.blog-header-btn:hover { background: var(--blog-head-pill-hover); }
@media (max-width: 520px) {
  .blog-header { gap: 4px; }
  .blog-header-links { gap: 4px; }
  .blog-brand { padding-right: 11px; gap: 6px; }
  .blog-brand-link { font-size: 12px; }
  .blog-header-btn { padding: 0 10px 0 9px; gap: 5px; font-size: 12px; }
  .blog-header-btn svg { width: 14px; height: 14px; }
}



/* .studio-stage > .studio-polish: the rounded app card. No border. */
.blog-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--blog-frame-radius);
  background: var(--mos-page);
  box-shadow: var(--blog-frame-shadow);
}
@media (max-width: 899px) {
  .blog-body { --blog-frame-radius: 18px; }
}

/* 12px on every side at every width (blog uses 6/16). */
@media (min-width: 900px) { .blog-shell { --blog-frame-gap: 12px; padding-top: 4px; } }
@media (max-width: 899px) { .blog-shell { padding-top: 4px; } }
.blog-header-btn.is-primary { background: var(--mos-accent); color: var(--mos-accent-fg); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.blog-header-btn.is-primary:hover { background: color-mix(in srgb, var(--mos-accent) 88%, #000); }

/* The one scroller: everything lives inside the card. */
.home-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.wrap { width: 100%; padding: 0 clamp(16px, 3.2vw, 48px); }

/* ---- pills ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill-row.tight { margin-top: 12px; gap: 6px; }
.pill-row.center { justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-fill);
  box-shadow: var(--pill-shadow);
  color: var(--mos-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.pill svg { width: 15px; height: 15px; color: var(--mos-muted); }
a.pill:hover { background: var(--pill-fill-hover); }
a.pill:active { transform: scale(0.98); }
.pill.ghost { background: transparent; box-shadow: none; }
.pill.ghost:hover { background: var(--pill-fill); }
.pill.primary { background: var(--mos-accent); color: var(--mos-accent-fg); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.pill.primary svg { color: var(--mos-accent-fg); }
a.pill.primary:hover { background: color-mix(in srgb, var(--mos-accent) 88%, #000); }
.pill.lg { height: 44px; padding: 0 20px; font-size: 14px; }
.pill.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.pill.xs { height: 26px; padding: 0 10px; font-size: 11px; gap: 5px; }
.pill.xs svg { width: 12px; height: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--mos-accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.chip svg { width: 14px; height: 14px; }

/* ---- hero: stacked under 1100px, two columns above ---- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 760px; }
.mock { margin: 0; min-width: 0; }
@media (max-width: 1099px) { .mock { max-width: 880px; } }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 3.4vw + 14px, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 1100px) { .hero h1 { font-size: clamp(44px, 3.6vw, 64px); } }
.lede { margin-top: 18px; font-size: clamp(16px, 0.5vw + 13px, 19px); line-height: 1.5; color: var(--mos-muted); max-width: 36em; text-wrap: pretty; }
.lede.sm { font-size: 16px; margin-top: 12px; }

/* ---- sections + cards ---- */
.section-head { display: grid; gap: 6px; margin-bottom: 22px; }
.section-head h2, .card h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
.section-head p { color: var(--mos-muted); font-size: 16px; }
.card { border-radius: var(--card-r); background: var(--card-fill); box-shadow: var(--card-shadow); padding: 24px; }
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--mos-text-soft); }
.feature { display: grid; gap: 10px; align-content: start; }
.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--mos-accent-ink);
}
.icon svg { width: 19px; height: 19px; }
.feature p, .step p { font-size: 14px; }
.step { display: grid; gap: 8px; align-content: start; }
.num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--mos-accent);
  color: var(--mos-accent-fg);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.split { display: grid; gap: 28px; padding: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; padding: 44px; } }
.split h2 { margin-top: 14px; }
.ticks { display: grid; gap: 8px; }
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--inset);
  font-weight: 500;
}
.ticks svg { color: var(--mos-accent-ink); }

.person { display: flex; gap: 18px; align-items: flex-start; }
.person img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.person .role { margin-top: 2px; font-size: 13px; color: var(--mos-muted); }
.person .role + p { margin-top: 10px; }
@media (max-width: 480px) { .person { flex-direction: column; } .person img { width: 72px; height: 72px; } }

.course { display: grid; gap: 0; padding: 12px; overflow: hidden; }
.course-art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--media-r); }
.course-copy { padding: 20px 12px 12px; }
.course-copy h2 { margin-top: 14px; }
@media (min-width: 900px) {
  .course { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
  .course-copy { padding: 24px 28px 24px 0; }
}

.cta { text-align: center; padding: 48px 24px; }
.cta .lede { margin-left: auto; margin-right: auto; }

/* ---- footer ---- */
.foot { padding: 24px 0 40px; font-size: 12px; color: var(--mos-muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a:hover { color: var(--mos-text); }

/* ---- small screens ---- */
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top-row > .pill.primary { margin-left: auto; }
  .section { padding: 28px 0; }
  .card { padding: 20px; }
  .split { padding: 24px; }
  .pill.lg { height: 42px; padding: 0 18px; }
}

/* ---- Studio custom cursor (fine pointer only; tokens set by home.js) ---- */
@media (hover: hover) and (pointer: fine) {
  .blog-shell, .blog-shell * { cursor: var(--studio-cursor-default, auto) !important; }
  .blog-shell :is(a, button):is(:hover, :active),
  .blog-shell :is(a, button):is(:hover, :active) * { cursor: var(--studio-cursor-active, pointer) !important; }
  .blog-shell :where(h1, h2, h3, p, li span) { cursor: var(--studio-cursor-text, text) !important; }
  .shell a :where(span, svg) { cursor: var(--studio-cursor-active, pointer) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- small extras ---- */
.soon { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--mos-accent-ink); background: var(--tint); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
.small { display: flex; gap: 16px; align-items: flex-start; }
.small h3 { margin-bottom: 4px; }
.small p { font-size: 14px; }
.ticks svg { color: var(--mos-accent-ink); }

/* =====================================================================
   Studio parts, ported from /opt/yatishara-studio (values copied):
   studio-messages.css (DM rows, bubbles, composer), studio-profile-avatar.css,
   studio-agent-avatar.css, agent-steps.css (active bot, task pills),
   studio-status-glyph.css, chrome/studio-shimmer-status.css,
   studio-agent.css (head tabs), planner/studio-planner.css (calendar tones).
   ===================================================================== */
.demo-window {
  border-radius: var(--card-r);
  background: var(--studio-card-surface, var(--card-fill));
  box-shadow: var(--card-shadow-lg);
  padding: 10px;
  min-width: 0;
}
.demo-window-head { padding: 2px 2px 10px; overflow: hidden; }
.demo-window-body { border-radius: 16px; background: var(--mos-page); overflow: hidden; min-width: 0; }

/* studio-agent.css .studio-agent-sidebar-tabs .studio-admin-head-tab */
.studio-admin-head-tabs { display: flex; gap: 4px; padding: 0 2px; overflow: hidden; }
.studio-admin-head-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; min-height: 28px; padding: 0 11px;
  border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--mos-ink, #111) 6%, transparent);
  color: var(--mos-muted);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
:root[data-appearance="dark"] .studio-admin-head-tab { background: color-mix(in srgb, #fff 6%, transparent); }
.studio-admin-head-tab svg { width: 14px; height: 14px; }
.studio-admin-head-tab.is-active {
  background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 16%, var(--mos-page));
  color: var(--mos-text);
}

/* studio-profile-avatar.css + profileAvatarGradient letter fallback */
.studio-profile-avatar {
  --spa-size: 32px; --spa-font: 11px;
  position: relative; box-sizing: border-box; display: block; flex-shrink: 0;
  width: var(--spa-size); height: var(--spa-size); border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-size: var(--spa-font); font-weight: 700; letter-spacing: 0.02em; line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.studio-profile-avatar.is-sm { --spa-size: 26px; --spa-font: 9px; }
.studio-profile-avatar.is-md { --spa-size: 32px; --spa-font: 11px; }
.studio-profile-avatar-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-size: 100% 100%; background-repeat: no-repeat; color: #fff;
}

/* studio-agent-avatar.css: locked disk, accent tint, face */
.studio-agent-avatar {
  --studio-agent-avatar-size: 28px;
  display: inline-grid; place-items: center; flex: 0 0 var(--studio-agent-avatar-size);
  width: var(--studio-agent-avatar-size); height: var(--studio-agent-avatar-size);
  border-radius: 50%; overflow: hidden; line-height: 0;
  background: linear-gradient(145deg, var(--cursor-accent), #46a66f);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent);
}
.studio-agent-avatar svg { width: 100%; height: 100%; display: block; }
.studio-agent-avatar-head { fill: #fff; }
.studio-agent-avatar-eyes { fill: var(--cursor-accent-ink, #18201c); }
.studio-agent-working { position: relative; display: inline-grid; place-items: center; width: var(--studio-agent-avatar-size); height: var(--studio-agent-avatar-size); flex: 0 0 auto; }
.studio-agent-working-aura {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--cursor-accent) 70%, transparent), transparent 60%);
  animation: ys-spin 2.4s linear infinite;
}
.studio-agent-working .studio-agent-avatar { position: relative; }
@keyframes ys-spin { to { transform: rotate(360deg); } }

/* agent-steps.css .studio-agent-active-bot */
.studio-agent-active-bot { display: inline-flex; align-items: center; justify-content: center; color: var(--cursor-accent-ink, var(--cursor-accent)); animation: studio-agent-active-bot 1.6s ease-in-out infinite; }
.studio-agent-active-bot svg { width: 14px; height: 14px; }
@keyframes studio-agent-active-bot {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 0 transparent); }
  50% { opacity: 1; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--cursor-accent) 85%, transparent)) drop-shadow(0 0 6px color-mix(in srgb, var(--cursor-accent) 45%, transparent)); }
}

/* studio-status-glyph.css */
.studio-status-glyph {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto;
  min-width: var(--status-glyph-size, 14px); min-height: var(--status-glyph-size, 14px); line-height: 1;
  color: color-mix(in srgb, currentColor 55%, transparent);
}
.studio-status-glyph svg { width: var(--status-glyph-size, 14px); height: var(--status-glyph-size, 14px); stroke-width: 2.5; }
.studio-status-glyph.is-done { color: var(--cursor-success, var(--mos-success, #16a34a)); }
.studio-status-glyph.is-waiting { color: var(--mos-warning, #d97706); }
.studio-status-glyph.is-running { color: var(--cursor-accent-ink, var(--cursor-accent, var(--mos-accent))); }
.studio-status-glyph-pulse { display: block; border-radius: 999px; background: currentColor; animation: studio-status-glyph-pulse 1.4s ease-in-out infinite; }
@keyframes studio-status-glyph-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
}
/* clock -> check, CSS only */
.glyph-flip { position: relative; display: inline-grid; width: 14px; height: 14px; }
.glyph-flip > * { grid-area: 1 / 1; }
.glyph-flip > .is-pending { animation: ys-out 6s steps(1) infinite; }
.glyph-flip > .is-done { animation: ys-in 6s steps(1) infinite; }
@keyframes ys-out { 0% { opacity: 1; } 55% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ys-in { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }

/* studio-messages.css: DM sidebar rows */
.dm-split { display: grid; grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr); min-height: 400px; }
.studio-dm-sidebar { display: grid; align-content: start; gap: 2px; padding: 8px 6px; border-right: 0; background: color-mix(in srgb, var(--mos-plate) 60%, var(--mos-page)); }
.studio-dm-row {
  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0;
  padding: 6px 12px 6px 8px; border: 1px solid transparent;
  --studio-dm-row-radius-start: 32px; --studio-dm-row-radius-end: 16px;
  border-radius: var(--studio-dm-row-radius-start) var(--studio-dm-row-radius-end) var(--studio-dm-row-radius-end) var(--studio-dm-row-radius-start);
}
.studio-dm-row.is-active { /* chrome/studio-chrome-kit.css .studio-chrome-plate-surface */
  border: 1px solid color-mix(in srgb, var(--color-cursor-border-soft, var(--mos-border-soft)) 82%, transparent);
  background: var(--mos-plate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.04);
}
:root[data-appearance="dark"] .studio-dm-row.is-active { box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent), 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 10px rgb(0 0 0 / 0.06); }
.studio-dm-row-main { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.studio-dm-row-avatar-wrap { display: grid; place-items: center; position: relative; flex: 0 0 auto; width: 48px; height: 48px; }
.studio-dm-row-avatar-wrap .studio-profile-avatar { --spa-size: 48px; --spa-font: 15px; }
.studio-dm-row-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.studio-dm-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.studio-dm-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; color: var(--mos-text); }
.studio-dm-row-top time { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 10px; font-weight: 600; color: var(--mos-muted); white-space: nowrap; }
.studio-dm-row-top time.is-unread { color: var(--cursor-accent-ink, var(--mos-accent)); }
.studio-dm-wa-mark { width: 10px; height: 10px; flex: 0 0 auto; color: #25d366; opacity: 0.9; display: inline-block; vertical-align: -1px; fill: currentColor; stroke: none; }
.studio-dm-source-mark { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--mos-muted) 35%, transparent); }
.studio-dm-row-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.studio-dm-row-preview { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 1.25; font-weight: 500; color: var(--mos-muted); }
.studio-dm-unread-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: var(--cursor-accent-ink, var(--cursor-accent, var(--mos-accent))); }
.studio-dm-online-dot { position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid #3dd68c; pointer-events: none; z-index: 2; }

/* chat column, bubbles */
.studio-dm-chat-column {
  display: flex; flex-direction: column; min-width: 0; background: var(--mos-page);
  --studio-dm-peer-bubble-bg: color-mix(in srgb, var(--mos-text) 6%, transparent);
}
:root[data-appearance="dark"] .studio-dm-chat-column { --studio-dm-peer-bubble-bg: color-mix(in srgb, var(--mos-text) 10%, transparent); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.studio-dm-messages { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; flex: 1 1 auto; }
.studio-dm-bubble-row { display: flex; justify-content: flex-start; align-items: flex-end; gap: 8px; width: 100%; min-width: 0; }
.studio-dm-bubble-row.is-mine { justify-content: flex-end; }
.studio-dm-bubble-row.has-sender { margin-top: 8px; }
.studio-dm-bubble-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 24px; }
.studio-dm-bubble-avatar .studio-profile-avatar { --spa-size: 24px; --spa-font: 9px; }
.studio-dm-bubble-stack { display: flex; flex-direction: column; min-width: 0; max-width: 84%; border-radius: var(--studio-r-3xl, 16px); }
.studio-dm-bubble {
  display: inline-flex; flex-direction: column; gap: 2px; min-width: min(7.25rem, 100%); max-width: 100%; width: fit-content;
  padding: 8px 11px; border-radius: var(--studio-r-3xl, 16px);
  background: var(--studio-dm-peer-bubble-bg); color: var(--mos-text);
  font-size: 13px; line-height: 1.42; overflow-wrap: anywhere;
}
.studio-dm-bubble-row.is-mine .studio-dm-bubble { background: var(--cursor-accent, var(--mos-accent)); color: #fff; }
.studio-dm-msg-head { display: flex; align-items: center; gap: 6px; height: 20px; margin: 0 0 2px; }
.studio-dm-msg-head-copy { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.studio-dm-sender-name { font-size: 12px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.studio-dm-time { font-size: 10px; font-weight: 600; color: var(--mos-muted); }
.studio-dm-bubble.is-typing { min-width: 0; padding: 10px 12px; }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--mos-muted); animation: ys-typing 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ys-typing { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* agent-steps.css task pills above the composer */
.studio-agent-task-pill-row { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; margin: 0 0 6px; }
.studio-agent-task-meter {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 8px;
  border-radius: 999px; background: var(--mos-plate);
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft));
  font-size: 12px; font-weight: 600;
}
.task-pill-lead { display: inline-grid; place-items: center; width: 20px; color: var(--mos-muted); }
.task-pill-lead > svg { width: 14px; height: 14px; }
.task-pill-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* studio-messages.css .studio-dm-composer-box: translucent, 3px blur */
.studio-dm-composer.is-split { padding: 0 8px 10px; }
.studio-dm-composer-box {
  position: relative; border-radius: 20px;
  background: var(--studio-composer-bg-page);
  -webkit-backdrop-filter: var(--studio-composer-blur); backdrop-filter: var(--studio-composer-blur);
  box-shadow: inset 0 0 0 1px var(--studio-composer-ring);
}
:root[data-appearance="light"] .studio-dm-composer-box { background: var(--studio-composer-bg); }
.composer-row { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 12px; color: var(--mos-muted); font-size: 13px; }
.composer-input { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.composer-tool svg { width: 16px; height: 16px; }
.dm-composer-submit { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--cursor-accent, var(--mos-accent)); color: #fff; }
.dm-composer-submit svg { width: 16px; height: 16px; }

/* chrome/studio-shimmer-status.css */
.studio-shimmer { position: relative; overflow: hidden; }
.studio-shimmer::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--mos-text) 7%, transparent) 50%, transparent 80%);
  transform: translateX(-100%); animation: studio-shimmer-sweep 1.6s ease-in-out infinite; pointer-events: none;
}
.studio-shimmer-glow { color: var(--cursor-accent-ink, var(--mos-accent)); animation: studio-shimmer-pulse 1.4s ease-in-out infinite; }
@keyframes studio-shimmer-sweep { to { transform: translateX(100%); } }
@keyframes studio-shimmer-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.studio-shimmer-status {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; min-height: 72px; padding: 12px; border-radius: inherit;
  background: var(--mos-plate); text-align: center;
}
.studio-shimmer-status > * { position: relative; }
.studio-shimmer-status-time { font-size: 1.375rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px color-mix(in srgb, var(--mos-accent) 55%, transparent); }
.studio-shimmer-status-sub { font-size: 12px; color: var(--mos-muted); }
.studio-gen-tile-badge {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgb(0 0 0 / 0.45); color: #fff; font-size: 10px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---- landing sections around the parts ---- */
.feature-section { padding: clamp(48px, 7vw, 104px) 0; }
.feature-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature-section.is-flip .feature-copy { order: 2; }
}
.feature-copy { max-width: 520px; }
.feature-copy h2 { margin-top: 14px; font-size: clamp(28px, 2.4vw + 10px, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.feature-demo { min-width: 0; }
.section-head.center { text-align: center; justify-items: center; margin: 0 auto 32px; max-width: 640px; }
.section-head.center h2 { margin-top: 8px; }
.mini-list { display: grid; gap: 8px; margin-top: 22px; }
.mini-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mini-list svg { width: 18px; height: 18px; color: var(--mos-accent-ink); }
.mock-lines { display: grid; min-width: 0; line-height: 1.25; }
.mock-lines b { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-lines i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.pill.xs { height: 26px; padding: 0 10px; font-size: 11px; gap: 5px; }
.pill.xs svg { width: 12px; height: 12px; }

/* office board */
.office-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.ob-tile { border-radius: 14px; background: color-mix(in srgb, var(--mos-plate) 70%, var(--mos-page)); padding: 10px; min-width: 0; display: grid; gap: 6px; align-content: start; }
.ob-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--mos-muted); padding: 0 2px 2px; }
.ob-head svg { width: 14px; height: 14px; }
.ob-tile .studio-dm-row { padding: 4px 8px 4px 4px; }
.ob-tile .studio-dm-row-avatar-wrap { width: 34px; height: 34px; }
.ob-tile .studio-dm-row-avatar-wrap .studio-profile-avatar { --spa-size: 32px; --spa-font: 11px; }
.ob-gen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ob-gen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.ob-steps { display: grid; gap: 6px; }
.ob-steps span { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--mos-page); font-size: 12px; font-weight: 600; }
.ob-cal { display: grid; gap: 6px; }

/* calendar (planner tones) */
:root { --cal-meeting-dot: #3b82f6; --cal-task-dot: #f97316; --cal-run-dot: #14b8a6; --cal-checkpoint-dot: #a855f7; }
.cal-mini, .cal-item { --tone: var(--cal-meeting-dot); background: color-mix(in srgb, var(--tone) 12%, var(--mos-page)); border-radius: 10px; box-shadow: inset 3px 0 0 var(--tone); }
.cal-mini { display: grid; padding: 8px 10px; font-size: 12px; font-weight: 600; }
.cal-mini b { font-size: 10px; color: var(--mos-muted); }
.is-task { --tone: var(--cal-task-dot); }
.is-run { --tone: var(--cal-run-dot); }
.is-booking { --tone: var(--cal-checkpoint-dot); }
.cal-day { padding: 14px; }
.cal-dayhead { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 12px; }
.cal-dayhead b { font-size: 15px; }
.cal-dayhead span { font-size: 12px; color: var(--mos-accent-ink); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 10px; align-items: center; }
.cal-hour { font-size: 11px; color: var(--mos-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 14px; }
.cal-item > svg { width: 16px; height: 16px; color: var(--tone); }
.cal-item > div { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.cal-item b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.cal-faces { display: flex; }
.cal-faces .studio-profile-avatar + .studio-profile-avatar { margin-left: -8px; }
.soon { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--mos-accent-ink); background: var(--tint); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; white-space: nowrap; }

/* diagrams */
.diagram { position: relative; }
.dg-flow { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow: hidden; padding: 4px 0 14px; }
.dg-node {
  display: grid; justify-items: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 14px 8px;
  border-radius: 18px; background: var(--card-fill); box-shadow: var(--card-shadow); text-align: center;
}
.dg-node-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--tint); color: var(--mos-accent-ink); }
.dg-node-icon svg { width: 19px; height: 19px; }
.dg-node-copy { display: grid; line-height: 1.25; }
.dg-node-copy b { font-size: 13px; }
.dg-node-copy i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.dg-node.is-soon { opacity: 0.75; }
.dg-node.is-soon .dg-node-copy i { color: var(--mos-accent-ink); font-weight: 600; }
.wa-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: #25d366; color: #fff; margin: -0px; }
.dg-node-icon:has(.wa-dot) { background: none; }
.wa-dot svg { width: 20px; height: 20px; }
.dg-link { position: relative; flex: 0 0 22px; height: 2px; background: color-mix(in srgb, var(--mos-accent) 45%, transparent); }
.dg-link-dot { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 999px; background: var(--mos-accent); animation: ys-travel 2.4s ease-in-out infinite; }
@keyframes ys-travel { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.stack-demo { display: grid; gap: 14px; }
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.kb-card { border-radius: var(--card-r); background: var(--card-fill); box-shadow: var(--card-shadow); padding: 16px; display: grid; gap: 8px; }
.kb-head { display: flex; align-items: center; gap: 8px; color: var(--mos-accent-ink); margin-bottom: 4px; }
.kb-head b { color: var(--mos-text); font-size: 14px; }
.kb-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--inset); font-size: 12px; }
.kb-row span { color: var(--mos-muted); font-size: 11px; }

.dg-create { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 0.8fr); align-items: center; }
.dg-create .dg-link { flex: none; width: 22px; }
.dg-card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--card-r); background: var(--card-fill); box-shadow: var(--card-shadow); min-width: 0; }
.dg-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--mos-accent-ink); }
.dg-step svg { width: 14px; height: 14px; }
.prompt-text { font-size: 14px; line-height: 1.45; padding: 12px; border-radius: 14px; background: var(--inset); }
.gen-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; }
.gen-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gen-frame .studio-shimmer-status { position: absolute; inset: 0; z-index: 2; animation: ys-gen-out 7s ease-in-out infinite; }
.gen-frame .gen-reveal { z-index: 1; }
@keyframes ys-gen-out { 0%, 62% { opacity: 1; } 72%, 92% { opacity: 0; } 100% { opacity: 1; } }
.gen-actions { display: flex; }
.dg-approve { justify-items: start; }

/* workflow canvas */
.wf-canvas { padding: 16px; display: grid; gap: 14px; }
.wf-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wf-title svg { width: 16px; height: 16px; color: var(--mos-accent-ink); }
.wf-run { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mos-muted); font-weight: 600; }
.wf-lane { display: grid; gap: 0; }
.wf-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--mos-plate) 70%, var(--mos-page)); }
.wf-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--tint); color: var(--mos-accent-ink); font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.wf-copy { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.wf-copy b { font-size: 13px; }
.wf-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mos-muted); }
.wf-who .studio-profile-avatar { --spa-size: 20px; --spa-font: 8px; box-shadow: none; }
.wf-approve { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, #d97706 14%, transparent); color: #b45309; font-size: 11px; font-weight: 600; }
:root[data-appearance="dark"] .wf-approve { color: #f59e0b; }
.wf-approve svg { width: 12px; height: 12px; }
.wf-status { display: inline-grid; place-items: center; width: 22px; }
.wf-join { display: block; width: 2px; height: 14px; margin-left: 26px; background: color-mix(in srgb, var(--mos-accent) 40%, transparent); }

/* files */
.files { padding: 14px; display: grid; gap: 12px; }
.file-folders { display: flex; gap: 6px; flex-wrap: wrap; }
.folder-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--inset); font-size: 12px; font-weight: 600; color: var(--mos-muted); }
.folder-chip svg { width: 14px; height: 14px; }
.folder-chip.is-on { background: var(--tint); color: var(--mos-accent-ink); }
.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.file-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; }
.file-tile img { width: 100%; height: 100%; object-fit: cover; }
.file-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgb(0 0 0 / 0.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.file-play svg { width: 14px; height: 14px; fill: #fff; }

/* grows with you */
.stage-grid { align-items: stretch; }
.stage { display: grid; gap: 10px; align-content: start; }
.stage h3 { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.stage h3 svg { width: 18px; height: 18px; color: var(--mos-accent-ink); }
.stage p { font-size: 14px; }
.stage-demo { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--mos-page); }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.member .mock-lines { flex: 1 1 auto; }
.role-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--inset); color: var(--mos-muted); }
.ws-icon { width: 32px !important; height: 32px !important; padding: 7px; border-radius: 10px; background: var(--tint); color: var(--mos-accent-ink); flex: 0 0 auto; }

/* connectors */
.dg-connect { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.1fr); align-items: center; }
.conn-col { display: grid; gap: 14px; }
.conn-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--card-fill); box-shadow: var(--card-shadow); min-width: 0; }
.conn-node b { flex: 1 1 auto; font-size: 14px; }
.conn-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.conn-state { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--cursor-success, #16a34a); }
.conn-state svg { width: 12px; height: 12px; }
.conn-lines { width: 100%; height: 100%; min-height: 220px; overflow: visible; }
.conn-lines path { fill: none; stroke: var(--mos-accent); stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: ys-dash 1.2s linear infinite; }
@keyframes ys-dash { to { stroke-dashoffset: -20; } }
.conn-office { display: grid; gap: 12px; justify-items: start; padding: 20px; border-radius: var(--card-r); background: var(--studio-card-surface, var(--card-fill)); box-shadow: var(--card-shadow-lg); }
.conn-office > b { font-size: 16px; }
.conn-office-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--tint); }
:root[data-appearance="dark"] .conn-office-mark img { filter: invert(1); }
.conn-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.conn-tools span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--mos-page); font-size: 12px; font-weight: 600; }
.conn-tools svg { width: 14px; height: 14px; color: var(--mos-accent-ink); }

/* academy */
.academy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px; align-items: center; }
.academy-art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.academy-copy { display: grid; gap: 6px; }
.academy-copy b { font-size: 16px; }
.academy-copy i { font-style: normal; font-size: 12px; color: var(--mos-muted); }
.lessons { display: grid; gap: 6px; margin-top: 8px; }
.lessons li { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--mos-plate) 70%, var(--mos-page)); font-size: 12px; font-weight: 600; }

.grid-2.narrow, .narrow-card { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---- responsive ---- */
@media (max-width: 1099px) {
  .dg-create { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .dg-create > .dg-link { display: none; }
}
@media (max-width: 760px) {
  .dm-split { grid-template-columns: minmax(0, 1fr); }
  .studio-dm-sidebar { display: none; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .dg-flow { flex-direction: column; align-items: stretch; }
  .dg-flow .dg-node { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .dg-flow .dg-link { flex: 0 0 16px; width: 2px; height: 16px; margin-left: 27px; }
  .dg-flow .dg-link-dot { left: -2px; animation-name: ys-travel-y; }
  .dg-connect { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .conn-lines { display: none; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .office-board { grid-template-columns: minmax(0, 1fr); }
  .dg-create { grid-template-columns: minmax(0, 1fr); }
}
@keyframes ys-travel-y { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gen-frame .studio-shimmer-status { animation: none; opacity: 0; }
  .glyph-flip > .is-pending { animation: none; opacity: 0; }
  .glyph-flip > .is-done { animation: none; opacity: 1; }
  .dg-link-dot { display: none; }
}
@media (min-width: 1000px) { .feature-section.is-flip .feature-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.section-head h2 { text-wrap: balance; }
.dg-create .gen-frame { aspect-ratio: 1 / 1; }
.dg-create { max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) { .dm-split { min-height: 0; } }
/* Longer sanity headline: wider copy when stacked, smaller type side by side. */
@media (max-width: 1099px) { .hero-copy { max-width: 980px; } }
@media (min-width: 1100px) { .hero h1 { font-size: clamp(38px, 2.9vw, 52px); } }

.hl { color: var(--mos-accent-ink, var(--mos-accent)); font-weight: 600; }
/* ---- hero: shorter headline, larger type ---- */
.hero { padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 5vw, 80px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 680px; }
.hero h1 { margin-top: 20px; font-size: clamp(44px, 5.4vw + 12px, 96px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.hero .lede { margin-top: 22px; font-size: clamp(16px, 0.45vw + 14px, 20px); max-width: 34em; }
.hero .pill-row { margin-top: 30px; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(56px, 5.2vw, 92px); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hero-copy { max-width: 760px; }
}
/* ---- generation tile (StudioGenerationTile) ---- */
.studio-gen-tile { position: relative; overflow: hidden; border-radius: var(--media-r); background: var(--mos-plate); width: 100%; }
.studio-gen-tile > img, .studio-gen-tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-gen-tile .gen-cover { position: absolute; inset: 0; z-index: 1; animation: ys-gen-cover 7s ease-in-out infinite; }
@keyframes ys-gen-cover { 0%, 45% { opacity: 1; } 55%, 92% { opacity: 0; } 100% { opacity: 1; } }

/* ---- AgentTaskPill strip (agent-steps.css), one horizontal row ---- */
.studio-agent-task-strip { --studio-agent-fill-slant: 7px; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%); }
.studio-agent-task-strip::-webkit-scrollbar { display: none; }
.studio-agent-task-strip-track { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; width: max-content; padding: 0 14px 0 0; }
.studio-agent-task-pill { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; max-width: 170px; box-sizing: border-box; overflow: hidden;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); border-radius: 999px; background: var(--mos-plate); color: var(--mos-text); }
.studio-agent-task-pill-fill { position: absolute; inset: 0 auto 0 0; width: 55%; background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 16%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--studio-agent-fill-slant)) 100%, 0 100%); animation: ys-fill 4s ease-in-out infinite alternate; }
@keyframes ys-fill { from { width: 30%; } to { width: 85%; } }
.studio-agent-task-pill-label { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 0 8px 0 3px; font-size: 0.6875rem; font-weight: 600; line-height: 1; }
.studio-agent-task-pill-lead { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 12px; height: 12px; margin-left: 3px; }
.studio-agent-task-pill-lead svg { width: 12px; height: 12px; stroke-width: 2.25; }
.studio-agent-task-pill-lead.is-avatar { width: 18px; height: 18px; margin-left: 0; border-radius: 999px; background: color-mix(in srgb, var(--cursor-accent) 26%, var(--mos-plate)); color: var(--cursor-accent-ink, var(--cursor-accent)); }
.studio-agent-task-pill-lead.is-avatar svg { width: 11px; height: 11px; }
.studio-agent-task-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-agent-task-pill-icon { flex: 0 0 auto; --status-glyph-size: 10px; }
.studio-agent-task-pill-icon svg { width: 10px; height: 10px; stroke-width: 3; }

/* ---- DM composer (StudioComposerMenusGallery markup, studio-messages.css sizes) ---- */
.studio-dm-composer.is-split { padding: 0; }
.studio-dm-composer-box { border-radius: 20px; }
.studio-dm-composer.is-split .studio-dm-composer-row { display: flex; align-items: center; width: 100%; min-width: 0; }
.studio-dm-composer.is-split .studio-dm-composer-row.is-message { margin: 0 8px; padding: 12px 6px 4px; width: auto; }
.studio-dm-input { font-size: 14px; line-height: 1.4; color: var(--mos-text); }
.studio-dm-input.is-placeholder { color: var(--mos-muted); }
.studio-dm-composer.is-split .studio-dm-composer-row.is-extras { min-height: 46px; padding: 4px 8px 6px; gap: 8px; }
.studio-dm-composer-mode-cluster { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.studio-dm-extras-spacer { flex: 1 1 auto; min-width: 8px; }
.studio-composer-circle-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--mos-text) 6%, transparent); color: var(--mos-text-soft, var(--mos-muted)); }
.studio-composer-circle-btn svg, .studio-dm-mode-pill svg { width: 15px; height: 15px; }
.studio-composer-send-btn.is-chat-send { background: var(--cursor-accent, var(--mos-accent)); color: var(--cursor-on-accent, #fff); }
.studio-dm-mode-pill { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--mos-text) 6%, transparent); color: var(--mos-muted); }
.studio-dm-mode-pill-preview { display: inline-grid; place-items: center; }

/* ---- Canvas (studio-canvas.css): head pills + rounded page ---- */
.canvas-doc-pane { display: grid; gap: 10px; min-width: 0; }
.canvas-doc-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.canvas-doc-title, .canvas-doc-tools > span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); background: var(--mos-page); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--mos-text); }
.canvas-doc-title { min-width: 0; margin-right: auto; }
.canvas-doc-title > svg { color: var(--mos-muted); width: 14px; height: 14px; }
.canvas-doc-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.canvas-doc-tools { display: flex; gap: 6px; }
.canvas-doc-tools svg { width: 13px; height: 13px; color: var(--mos-muted); }
.canvas-doc-body { display: grid; place-items: center; padding: 18px 0 6px; border-radius: 16px; background: color-mix(in srgb, var(--mos-text) 4%, transparent); }
.canvas-page { width: min(62%, 190px); aspect-ratio: 8.5 / 11; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgb(15 23 42 / 0.14), 0 2px 6px rgb(15 23 42 / 0.08); margin-bottom: 12px; }
.canvas-page img { width: 100%; height: 100%; object-fit: cover; }


/* ---- v13: one contained surface per demo (no box inside a box) ---- */
.demo-window { padding: 0; overflow: hidden; }
.demo-window-head { padding: 10px 10px 4px; }
.demo-window-body { border-radius: 0; background: transparent; }
.studio-dm-chat-column, .studio-dm-sidebar { background: transparent; }
.studio-dm-sidebar { box-shadow: inset -1px 0 0 color-mix(in srgb, var(--mos-text) 7%, transparent); }
.ob-tile { background: transparent; border-radius: 0; padding: 12px; }
.office-board { gap: 0 !important; }
.office-board .ob-tile + .ob-tile { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--mos-text) 7%, transparent); }
.wf-step { background: transparent; border-radius: 0; padding: 12px 6px; }
.wf-step + .wf-join + .wf-step, .wf-join + .wf-step { box-shadow: none; }
.stage-demo { background: transparent; padding: 0 0 6px; border-radius: 0; }
.academy { padding: 0; }
.academy-art { border-radius: 0; }
.academy-copy { padding: 16px 16px 16px 0; }
.dg-card .canvas-doc-body { background: color-mix(in srgb, var(--mos-text) 4%, transparent); }
.dg-card .studio-dm-composer-box { box-shadow: none; background: transparent; }
.dg-card .studio-dm-composer.is-split .studio-dm-composer-row.is-message { margin: 0; padding: 4px 0; }
.dg-card .studio-dm-composer.is-split .studio-dm-composer-row.is-extras { padding: 4px 0 0; }
.studio-dm-chat-column .studio-agent-task-strip { padding: 0 10px; margin-bottom: 6px; }
.studio-dm-chat-column .studio-dm-composer.is-split { padding: 0 8px 10px; }
.gen-frame .gen-reveal, .studio-gen-status-frame img { object-fit: cover; }
.file-grid .studio-gen-tile { aspect-ratio: 9 / 16 !important; }
.ob-gen img { aspect-ratio: 9 / 16; object-fit: cover; }
/* real logos in the v11 connector diagram */
.conn-mark.is-logo { display: grid; place-items: center; background: color-mix(in srgb, var(--mos-text) 7%, transparent); color: var(--mos-text); }
.conn-mark.is-logo svg { width: 18px; height: 18px; }
/* founders: same row layout at every width */
@media (max-width: 480px) { .person { flex-direction: row; align-items: flex-start; } .person img { width: 56px; height: 56px; } }
/* Canvas examples: website + invoice, one surface */
.canvas-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 14px; }
@media (max-width: 760px) { .canvas-duo { grid-template-columns: minmax(0, 1fr); } }
.canvas-duo .canvas-doc-body { padding: 16px 12px 4px; }
.canvas-page.is-site, .canvas-page.is-invoice { width: 100%; height: auto; color: #18181b; font-size: 10px; line-height: 1.35; padding: 12px; display: grid; gap: 10px; align-content: start; }
.canvas-page.is-site { aspect-ratio: 16 / 11; }
.canvas-page.is-invoice { aspect-ratio: 210 / 297; max-width: 220px; }
.canvas-page.is-site img, .canvas-page.is-invoice img { height: auto; }
.cv-nav { display: flex; gap: 10px; align-items: center; font-size: 9px; color: #52525b; }
.cv-nav b { margin-right: auto; color: #18181b; font-size: 11px; }
.cv-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; align-items: center; }
.cv-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cv-hero b { display: block; font-size: 13px; line-height: 1.15; letter-spacing: -0.02em; }
.cv-hero i { display: block; font-style: normal; color: #52525b; margin: 4px 0 8px; }
.cv-btn { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #a16207; color: #fff; font-weight: 600; font-size: 9px; }
.cv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cv-cards span { padding: 6px 8px; border-radius: 8px; background: #f4f1ea; color: #52525b; }
.cv-cards b { color: #18181b; }
.cv-inv-head { display: flex; justify-content: space-between; align-items: baseline; }
.cv-inv-head b { font-size: 15px; letter-spacing: -0.02em; }
.cv-inv-head span, .cv-inv-meta i { color: #71717a; font-style: normal; display: block; }
.cv-inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-weight: 600; }
.cv-inv-rows { display: grid; gap: 0; }
.cv-inv-rows span { display: flex; justify-content: space-between; padding: 5px 0; box-shadow: 0 1px 0 #ececec; }
.cv-inv-total { display: flex; justify-content: space-between; padding-top: 4px; font-size: 12px; }
/* v14: v12 preview content folded into the v13 layout */
.studio-dm-messages .hero-gens { padding-left: 32px; }
.wf-canvas-view { display: grid; gap: 12px; padding: 12px 14px 4px; }
.studio-run-view-switch { display: inline-flex; gap: 4px; justify-self: start; }
.studio-run-view-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--mos-muted); background: color-mix(in srgb, var(--mos-text) 6%, transparent); }
.studio-run-view-tab svg { width: 14px; height: 14px; }
.studio-run-view-tab.is-active { color: var(--mos-text); background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 16%, var(--mos-page)); }
.wf-canvas { display: grid; justify-items: start; padding: 4px 0 8px; background-image: radial-gradient(color-mix(in srgb, var(--mos-text) 12%, transparent) 1px, transparent 1px); background-size: 16px 16px; }
.studio-workflows-node-quiet { display: inline-flex; align-items: center; gap: 6px; }
.studio-workflows-node-quiet .studio-profile-avatar { --spa-size: 18px; --spa-font: 7px; }
.dg-approve .studio-gen-tile { max-width: 120px; aspect-ratio: 9 / 16; margin-top: 6px; }
.lev-ask { margin-top: 16px; }
.lev-ask .studio-agent-task-strip { margin: 4px 0; }
.lev-ask .leverage-grid { max-width: 360px; }
/* Canvas title pill: never truncate in the narrow Create card */
.dg-card .canvas-doc-head { flex-wrap: wrap; }
.dg-card .canvas-doc-title { margin-right: 0; }
.dg-card .canvas-doc-title-text { overflow: visible; }

/* v14: ported v12 rules */
.hero-gens { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 8px; }
.kb-source { display: inline-flex; align-items: center; gap: 6px; margin-left: 32px; font-size: 12px; font-weight: 600; color: var(--mos-accent-ink); }
.kb-source svg { width: 13px; height: 13px; }
/* ---- workflow canvas (WorkflowCanvas.tsx node + gradient edge) ---- */
.wf-canvas { display: grid; justify-items: start; gap: 0; padding: 4px 0; }
.studio-workflows-node { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: min(240px, 100%); min-height: 64px; padding: 10px 12px;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); border-radius: 12px; background: var(--mos-plate); box-shadow: var(--cursor-shadow-menu, 0 8px 24px rgba(0,0,0,.10)); font-size: 12px; }
.studio-workflows-node-copy { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; min-width: 0; }
.studio-workflows-node-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.studio-workflows-node-step { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--mos-muted); background: var(--mos-page); box-shadow: 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft)); }
.studio-workflows-node-title { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.studio-workflows-node-meta { display: flex; align-items: center; gap: 4px; }
.studio-workflows-node-quiet { color: var(--mos-muted); }
.studio-workflows-node-meta-end { margin-left: auto; }
.studio-workflows-node-chip { position: absolute; left: 12px; bottom: 8px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
  background: var(--mos-plate-strong); color: var(--mos-muted); }
.wf-edge { display: block; width: 2px; height: 22px; margin-left: 22px; border-radius: 2px; background: linear-gradient(var(--mos-accent), color-mix(in srgb, var(--mos-accent) 30%, transparent)); }

.leverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 300px; }
.leverage-grid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; animation: ys-pop 0.6s ease both; }
.leverage-grid img:nth-child(2) { animation-delay: .08s; } .leverage-grid img:nth-child(3) { animation-delay: .16s; }
.leverage-grid img:nth-child(4) { animation-delay: .24s; } .leverage-grid img:nth-child(5) { animation-delay: .32s; } .leverage-grid img:nth-child(6) { animation-delay: .4s; }
@keyframes ys-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) { .hero-gens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wf-canvas { display: grid; justify-items: start; padding: 4px 0 8px; background-image: radial-gradient(color-mix(in srgb, var(--mos-text) 12%, transparent) 1px, transparent 1px); background-size: 16px 16px; }
