/**
 * Shared public-site chrome — landing (/) and SPA (/pricing, /releases).
 * Class names: packages/web/src/app/lib/public-site-chrome.ts
 */
:root {
  --public-site-content-max: 80rem;
  --public-site-page-gutter: clamp(1.5rem, 4vw, 2.5rem);
  --public-site-content-width: min(
    var(--public-site-content-max),
    calc(100% - 2 * var(--public-site-page-gutter))
  );
  --public-site-header-height: 3.5rem;
  --public-site-header-offset: var(--public-site-header-height);
  --public-site-chrome-edge-padding: 0.625rem;
  --public-site-chrome-font-size: 14px;
  --public-site-chrome-line-height: 1.25;
  --public-site-chrome-font-weight: 400;
  --public-site-chrome-font-family:
    "Inter", "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --public-site-nav-color: #5c6675;
  --public-site-nav-hover-color: #252f3d;
  --public-site-main-color: #252f3d;
  --public-site-header-bg: rgba(247, 247, 244, 0.85);
}

.container,
.public-site-container {
  width: var(--public-site-content-width);
  margin-inline: auto;
}

.public-site-header-offset {
  padding-top: var(--public-site-header-offset);
}

.site-header,
.public-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--public-site-header-bg);
  backdrop-filter: blur(8px);
  font-family: var(--public-site-chrome-font-family);
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  -webkit-font-smoothing: antialiased;
}

.header-inner,
.public-site-header-row {
  position: relative;
  display: flex;
  min-height: var(--public-site-header-height);
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--public-site-chrome-edge-padding);
  gap: 1rem;
}

.brand,
.public-site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--public-site-main-color);
  line-height: var(--public-site-chrome-line-height);
}

.brand-mark,
.public-site-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-name,
.public-site-brand-name {
  font-size: var(--public-site-chrome-font-size);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: var(--public-site-chrome-line-height);
}

.site-nav,
.public-site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  color: var(--public-site-nav-color);
}

@media (min-width: 768px) {
  .site-nav,
  .public-site-nav {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
  }

  .brand,
  .public-site-brand,
  .header-actions,
  .public-site-header-actions {
    position: relative;
    z-index: 1;
  }
}

.site-nav-tab,
.site-nav-current,
.public-site-nav-link,
.public-site-nav-current {
  font-family: inherit;
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  text-decoration: none;
  color: var(--public-site-nav-color);
  transition: color 0.15s;
}

.site-nav-tab:hover,
.public-site-nav-link:hover {
  color: var(--public-site-nav-hover-color);
}

.site-nav-current,
.public-site-nav-current {
  cursor: default;
}

.header-actions,
.public-site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.public-site-chrome-text,
.btn-login,
.btn-header-download,
.public-site-btn-login,
.public-site-btn-download {
  font-family: inherit;
  font-size: var(--public-site-chrome-font-size);
  line-height: var(--public-site-chrome-line-height);
}

.btn-login,
.public-site-btn-login {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--public-site-main-color);
  font-weight: var(--public-site-chrome-font-weight);
  transition: background 0.15s;
}

.btn-login:hover,
.public-site-btn-login:hover {
  background: #f0f0f4;
}

.btn-header-download,
.public-site-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-block: 0.5rem;
  padding-inline: 0.6875rem 1rem;
  border: none;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-header-download .btn-primary-icon,
.public-site-btn-download-icon {
  display: flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
}

.btn-header-download .btn-primary-icon svg,
.public-site-btn-download-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.btn-header-download:hover,
.public-site-btn-download:hover {
  background: #1e293b;
}

.btn-header-download.is-pending {
  opacity: 0.6;
  pointer-events: none;
}

/* Touch-only devices (phones, tablets) cannot run the desktop app; the landing
 * hero offers «send yourself the link» there instead. */
@media (hover: none) and (pointer: coarse) {
  .btn-header-download,
  .public-site-btn-download {
    display: none;
  }
}

.site-feedback-dialog[hidden] {
  display: none !important;
}

.site-feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--public-site-chrome-font-family);
}

.site-feedback-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgb(15 23 42 / 0.45);
  cursor: pointer;
}

.site-feedback-dialog-panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 26rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / 0.18);
}

.site-feedback-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-feedback-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2328;
}

.site-feedback-dialog-close {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #8b95a5;
  cursor: pointer;
}

.site-feedback-dialog-close:hover {
  color: #1f2328;
}

.site-feedback-dialog-lead {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #8b95a5;
}

.site-feedback-dialog.is-authenticated [data-feedback-anon],
.site-feedback-dialog:not(.is-authenticated) [data-feedback-signed-in],
.site-feedback-dialog.is-authenticated [data-feedback-auth-field] {
  display: none;
}

.site-feedback-form {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.site-feedback-input,
.site-feedback-textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgb(0 0 0 / 0.12);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #1f2328;
  background: #fff;
}

.site-feedback-input {
  border-radius: 9999px;
}

.site-feedback-textarea {
  min-height: 6.5rem;
  border-radius: 1.25rem;
  resize: vertical;
}

.site-feedback-input:focus,
.site-feedback-textarea:focus {
  outline: 2px solid rgb(15 23 42 / 0.18);
  outline-offset: 1px;
}

.site-feedback-input::placeholder,
.site-feedback-textarea::placeholder {
  color: #8b95a5;
}

.site-feedback-submit {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
}

.site-feedback-submit:hover:not(:disabled) {
  background: #1e293b;
}

.site-feedback-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.site-feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-feedback-status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
}

.site-feedback-dialog.is-sent .site-feedback-dialog-lead,
.site-feedback-dialog.is-sent .site-feedback-form {
  display: none;
}

.site-feedback-dialog.is-sent .site-feedback-status {
  margin-top: 1.25rem;
  min-height: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.site-feedback-status[data-state="ok"] {
  color: #17663a;
}

.site-feedback-status[data-state="error"] {
  color: #b42318;
}

html {
  overflow-x: clip;
  overscroll-behavior-y: none;
}

body {
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: #f7f7f4;
}

.page {
  --content-width: var(--public-site-content-width);
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--public-site-header-offset);
  font-family: var(--public-site-chrome-font-family);
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  background: #f7f7f4;
  color: #252f3d;
  -webkit-font-smoothing: antialiased;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

.site-footer {
  padding: 2rem 0 calc(var(--public-site-chrome-edge-padding) * 2);
  text-align: center;
  font-size: var(--public-site-chrome-font-size);
  color: #8b95a5;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-footer-nav a,
.site-footer-nav .site-footer-action {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-nav a:hover,
.site-footer-nav .site-footer-action:hover {
  color: #5c6675;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.site-footer-copy {
  margin: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  background: #f7f7f4;
  color: #252f3d;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Hero */
.hero {
  padding: 3rem 0 0;
  text-align: center;
  container-type: inline-size;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: #252f3d;
  font-size: clamp(2rem, 4.5cqi + 1rem, 3.875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-brand-name,
.hero-headline {
  display: block;
}

.hero-brand-name {
  font-size: clamp(1.125rem, 2cqi + 0.75rem, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c6675;
}

.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #5c6675;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding-block: 0.875rem;
  padding-inline: 1.375rem 1.75rem;
  border: none;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary-icon {
  display: flex;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
}

.btn-primary-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-primary.is-pending {
  opacity: 0.6;
  pointer-events: none;
}

.hero-platforms {
  margin: 0;
  font-size: 0.875rem;
  color: #5c6675;
}

.download-status {
  font-size: 0.875rem;
  color: #8b95a5;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 5rem;
  }
}

/* Demo stage */
.demo-stage {
  position: relative;
  margin-top: 3rem;
  width: var(--content-width);
  margin-inline: auto;
  scroll-margin-top: calc(var(--public-site-header-offset, 3.5rem) + 1rem);
}

.demo-stage-bg {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.demo-stage-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.demo-stage-overlay {
  display: none;
}

.demo-stage-inner {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

/* Office / Code switch above the mock */
.demo-shell-tabs {
  display: flex;
  width: max-content;
  gap: 0.25rem;
  margin: 0 auto 1rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.demo-shell-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #5c6675;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.demo-shell-tab:hover {
  color: #252f3d;
}

.demo-shell-tab[aria-pressed="true"] {
  background: #fff;
  color: #252f3d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-shell-tab:focus-visible {
  outline: 2px solid #2778c1;
  outline-offset: 1px;
}

.demo-shell-tab-icon {
  width: 16px;
  height: 16px;
}

/* Product mock — токены @razum/ui-kit/src/theme.css */
.product-mock,
.mock-card {
  --m-app: #f3f3f3;
  --m-panel-left: #f3f3f3;
  --m-panel-main: #fcfcfc;
  --m-panel-right: #fcfcfc;
  --m-surface: #ffffff;
  --m-sunken: #f1f1f1;
  --m-segment-track: #e3e3e3;
  --m-hover: rgba(20, 20, 20, 0.06);
  --m-selected: rgba(20, 20, 20, 0.08);
  --m-split: rgba(20, 20, 20, 0.08);
  --m-divider-subtle: rgba(20, 20, 20, 0.04);
  --m-main: #141414;
  --m-secondary: rgba(20, 20, 20, 0.84);
  --m-muted-dark: rgba(20, 20, 20, 0.72);
  --m-muted: rgba(20, 20, 20, 0.6);
  --m-muted-light: rgba(20, 20, 20, 0.4);
  --m-accent: #2778c1;
  --m-added: #067647;
  --m-deleted: #b42318;
  --m-attention: #b45309;
  --m-attention-strong: #8d4a2b;
  --m-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --m-font: 12px;
  --m-font-sm: 11px;
  --m-font-xs: 10px;

  font-size: var(--m-font);
  color: var(--m-main);
}

.product-mock svg,
.mock-card svg,
.demo-shell-tab svg,
.shell-eyebrow svg,
.shell-demo-link svg {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-mock {
  overflow: hidden;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: var(--m-app);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.product-mock:not([data-demo-shell="code"]) .mock-code-only {
  display: none;
}

.mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 500px;
  background: var(--m-panel-main);
}

.mock-pane-chrome {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  height: 36px;
  min-height: 36px;
}

.mock-chrome-spacer {
  flex: 1;
  min-width: 0;
}

.mock-chrome-icon {
  width: 15px;
  height: 15px;
  color: var(--m-muted-dark);
}

.mock-chrome-icon--sm {
  width: 13px;
  height: 13px;
}

.mock-chrome-icon.is-disabled {
  color: var(--m-muted-light);
}

/* Sidebar */
.mock-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-bottom: 1px solid var(--m-split);
  background: var(--m-panel-left);
}

.mock-sidebar-chrome {
  gap: 0.375rem;
  padding: 0 0.5rem 0 0.75rem;
}

.mock-traffic-lights {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4375rem;
  margin-right: 0.25rem;
}

.mock-traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mock-traffic-light--close {
  background: #ff5f57;
}

.mock-traffic-light--minimize {
  background: #febc2e;
}

.mock-traffic-light--zoom {
  background: #28c840;
}

.mock-segmented {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  margin-left: 0.125rem;
  padding: 2px;
  border-radius: 7px;
  background: var(--m-segment-track);
}

.mock-segment {
  display: flex;
  width: 24px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--m-muted);
  cursor: pointer;
}

.mock-segment svg {
  width: 12px;
  height: 12px;
}

.mock-segment[aria-pressed="true"] {
  background: var(--m-surface);
  color: var(--m-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mock-segment:focus-visible,
.mock-sidebar-row:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: -1px;
}

.mock-sidebar-scroll {
  flex: 1;
  min-height: 0;
  padding: 0.25rem 0.5rem 0.5rem;
  overflow: auto;
}

.mock-shell-nav[hidden] {
  display: none;
}

.mock-sidebar-row {
  display: flex;
  width: 100%;
  min-height: 28px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--m-main);
  font-family: inherit;
  font-size: var(--m-font);
  line-height: 1.3;
  text-align: left;
}

.mock-row-icon {
  width: 14px;
  height: 14px;
  color: var(--m-muted-dark);
}

.mock-row-kbd {
  margin-left: auto;
  font-size: var(--m-font-xs);
  color: var(--m-muted);
}

.mock-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem 0.25rem;
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-section-header > span:first-child {
  flex: 1;
}

.mock-section-action {
  width: 13px;
  height: 13px;
  color: var(--m-muted);
}

.mock-project-row {
  font-weight: 500;
  color: var(--m-muted-dark);
}

.mock-session-list[hidden],
.mock-more[hidden] {
  display: none;
}

.mock-more {
  color: var(--m-muted);
  cursor: pointer;
}

.mock-more:hover {
  background: var(--m-hover);
  color: var(--m-main);
}

.mock-shell-nav[data-demo-shell-nav="code"] .mock-session-list,
.code-screen .mock-session-list {
  padding-left: 1.125rem;
}

.mock-session-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-session {
  color: var(--m-secondary);
  cursor: pointer;
  transition: background 0.12s ease;
}

.mock-session:hover {
  background: var(--m-hover);
}

.mock-session.is-active {
  background: var(--m-selected);
  color: var(--m-main);
}

.mock-avatar {
  display: flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.08);
  color: var(--m-muted-dark);
  font-size: 9px;
  font-weight: 500;
}

.mock-session-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-session-time {
  flex-shrink: 0;
  font-size: var(--m-font-xs);
  color: var(--m-muted);
}

.mock-status {
  display: flex;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  color: var(--m-muted);
}

.mock-status svg {
  width: 13px;
  height: 13px;
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mock-dot--waiting {
  background: var(--m-attention-strong);
}

/* Running agent: the 3×3 dot perimeter from client-ui RunningChatIcon */
.mock-running {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  color: rgba(20, 20, 20, 0.8);
}

.mock-running i {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: currentColor;
  animation: mock-running-blink 1.2s step-end infinite;
}

.mock-running i:nth-child(1) { top: 0; left: 0; animation-delay: 0s; }
.mock-running i:nth-child(2) { top: 0; left: 4px; animation-delay: 0.15s; }
.mock-running i:nth-child(3) { top: 0; left: 8px; animation-delay: 0.3s; }
.mock-running i:nth-child(4) { top: 4px; left: 8px; animation-delay: 0.45s; }
.mock-running i:nth-child(5) { top: 8px; left: 8px; animation-delay: 0.6s; }
.mock-running i:nth-child(6) { top: 8px; left: 4px; animation-delay: 0.75s; }
.mock-running i:nth-child(7) { top: 8px; left: 0; animation-delay: 0.9s; }
.mock-running i:nth-child(8) { top: 4px; left: 0; animation-delay: 1.05s; }

@keyframes mock-running-blink {
  0%,
  100% {
    opacity: 0.2;
  }
  12% {
    opacity: 1;
  }
}

.mock-sidebar-bottom {
  display: none;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.25rem 0.5rem 0.5rem;
}

.mock-user-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.375rem;
}

.mock-user-avatar {
  display: flex;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.08);
  color: var(--m-muted-dark);
  font-size: 9px;
  font-weight: 500;
}

.mock-user-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
}

.mock-user-name,
.mock-user-plan {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-user-plan {
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

/* Main column */
.mock-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--m-panel-main);
}

.mock-main-chrome {
  padding: 0 0.625rem 0 0.5rem;
}

.mock-main-title {
  overflow: hidden;
  padding: 0.125rem 0.25rem;
  color: var(--m-muted-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-mock[data-demo-shell="office"] .mock-main-title {
  padding: 0.1875rem 0.5rem;
  border-radius: 6px;
  background: var(--m-selected);
  color: var(--m-main);
}

.mock-main-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.mock-transcript-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mock-transcript-inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1rem;
}

.demo-panel {
  animation: demo-panel-in 0.22s ease;
}

.demo-panel[hidden] {
  display: none !important;
}

@keyframes demo-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mock-transcript {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-user-prompt {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--m-split);
  border-radius: 12px;
  background: var(--m-surface);
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mock-activity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.mock-activity-line {
  margin: 0;
  line-height: 1.4;
  color: var(--m-muted-dark);
}

.mock-activity-detail {
  color: var(--m-muted-light);
}

.mock-added {
  color: var(--m-added);
}

.mock-deleted {
  color: var(--m-deleted);
}

.product-mock code,
.mock-card code {
  padding: 0 0.1875rem;
  border-radius: 4px;
  background: rgba(20, 20, 20, 0.05);
  font-family: var(--m-mono);
  font-size: var(--m-font-sm);
}

.mock-agent-text {
  margin: 0;
  padding: 0 0.25rem;
  line-height: 1.55;
}

.mock-agent-list {
  margin: -0.25rem 0 0;
  padding: 0 0.25rem 0 1.25rem;
  line-height: 1.55;
}

.mock-agent-list li + li {
  margin-top: 0.25rem;
}

.mock-agent-list strong {
  font-weight: 600;
}

.mock-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--m-split);
  border-radius: 8px;
  background: var(--m-surface);
}

.mock-result-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-result-action {
  color: var(--m-muted-dark);
}

.mock-result-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 22px;
}

.mock-file-icon {
  width: 12px;
  height: 12px;
  color: var(--m-muted);
}

.mock-result-meta {
  margin-left: auto;
  font-size: var(--m-font-sm);
  color: var(--m-muted);
  white-space: nowrap;
}

/* Composer */
.mock-composer-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem 0.75rem;
}

.mock-composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border: 1px solid var(--m-split);
  border-radius: 12px;
  background: var(--m-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mock-composer-add,
.mock-composer-send {
  display: flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.mock-composer-add {
  background: var(--m-sunken);
  color: var(--m-muted-dark);
}

.mock-composer-add svg,
.mock-composer-send svg {
  width: 13px;
  height: 13px;
}

.mock-composer-send {
  background: var(--m-main);
  color: #fff;
}

.mock-composer-field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  line-height: 1.5;
}

.mock-composer-text,
.mock-composer-placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-composer-placeholder {
  color: var(--m-muted-light);
}

.mock-composer:not(.has-text) .mock-composer-text,
.mock-composer:not(.has-text) .mock-composer-send,
.mock-composer.has-text .mock-composer-placeholder {
  display: none;
}

.mock-composer-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
}

.mock-composer-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.25rem;
}

.mock-composer-mode-chevron {
  width: 12px;
  height: 12px;
  color: var(--m-muted);
}

.mock-composer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.375rem 0;
  font-size: var(--m-font-sm);
  color: var(--m-muted-dark);
}

.mock-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.mock-meta-item svg {
  width: 12px;
  height: 12px;
}

.mock-meta-item .mock-meta-chevron {
  width: 11px;
  height: 11px;
  color: var(--m-muted);
}

.mock-context-ring {
  width: 13px;
  height: 13px;
  color: var(--m-muted);
}

/* Right panel */
.mock-panel {
  display: none;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid var(--m-split);
  background: var(--m-panel-right);
}

.mock-side {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.mock-side[hidden] {
  display: none;
}

.mock-panel-chrome {
  padding: 0 0.625rem;
  border-bottom: 1px solid var(--m-split);
}

.mock-panel-heading {
  padding-left: 0.25rem;
}

.mock-panel-tabs {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.125rem;
  overflow: hidden;
}

.mock-panel-tab {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.1875rem 0.4375rem;
  border-radius: 6px;
  font-size: var(--m-font-sm);
  color: var(--m-muted-dark);
}

.mock-panel-tab svg {
  width: 12px;
  height: 12px;
}

.mock-panel-tab.is-active {
  background: var(--m-selected);
  color: var(--m-main);
}

.mock-overview {
  padding: 0.5rem 0.625rem;
}

.mock-overview-label {
  margin: 0 0 0.375rem;
  padding-left: 0.25rem;
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-screen {
  overflow: hidden;
  border: 1px solid var(--m-split);
  border-radius: 8px 8px 0 0;
  background: var(--m-surface);
}

.mock-browser-bar {
  display: flex;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--m-divider-subtle);
  background: var(--m-sunken);
}

.mock-browser-url {
  padding: 1px 10px;
  border-radius: 5px;
  background: var(--m-surface);
  font-size: var(--m-font-xs);
  color: var(--m-muted);
}

.mock-browser-page {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  gap: 0.3125rem;
  padding: 0.625rem 0.75rem;
}

.mock-page-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.mock-price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.1875rem 0.25rem;
  border-bottom: 1px solid var(--m-divider-subtle);
  font-size: var(--m-font-sm);
  color: var(--m-muted-dark);
}

.mock-price-row b {
  font-weight: 500;
  color: var(--m-main);
}

.mock-price-row.is-highlight {
  border-radius: 4px;
  background: rgba(180, 83, 9, 0.1);
  color: var(--m-attention);
}

.mock-doc-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(20, 20, 20, 0.07);
}

.mock-doc-line.is-short {
  width: 64%;
}

.mock-doc-line.is-marked {
  background: rgba(180, 83, 9, 0.3);
}

.mock-bars {
  display: flex;
  height: 70px;
  align-items: flex-end;
  gap: 6px;
  padding: 0 0.25rem;
}

.mock-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: rgba(39, 120, 193, 0.22);
}

.mock-bars span.is-current {
  background: var(--m-accent);
}

.mock-screen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--m-split);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: var(--m-surface);
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-button {
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--m-split);
  border-radius: 6px;
  color: var(--m-main);
}

.mock-overview-header {
  padding-top: 0.875rem;
}

.mock-assignment {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.5rem;
  border-radius: 6px;
  color: var(--m-secondary);
}

.mock-assignment.is-active {
  background: var(--m-selected);
  color: var(--m-main);
}

.mock-diff-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mock-diff-scroll .mock-code {
  flex: none;
  overflow: visible;
}

.mock-diff-file {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--m-divider-subtle);
  font-family: var(--m-mono);
  font-size: var(--m-font-sm);
}

.mock-code {
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 0.375rem 0;
  overflow: hidden;
  font-family: var(--m-mono);
  font-size: 10.5px;
  font-variant-ligatures: none;
  line-height: 1.6;
  color: var(--m-main);
  /* Newlines between the block lines must collapse, or every line doubles. */
  white-space: normal;
}

.mock-code span {
  display: block;
  min-height: 1.6em;
  padding: 0 0.75rem;
  white-space: pre;
}

.mock-shot {
  width: min(100%, 420px);
  margin: 0.75rem 0 0;
}

.mock-shot-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--m-split);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.08);
}

.mock-shot figcaption {
  margin-top: 0.375rem;
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-code .ctx {
  color: var(--m-muted-dark);
}

.mock-code .add {
  background: rgba(6, 118, 71, 0.08);
  color: #05603a;
}

.mock-code .del {
  background: rgba(180, 35, 24, 0.07);
  color: #912018;
}

.mock-terminal .add,
.mock-terminal .del {
  background: none;
}

.mock-terminal .cmd {
  margin-top: 0.125rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .demo-stage {
    margin-top: 4rem;
  }

  .demo-stage-inner {
    padding: 1.75rem 4rem 2.5rem;
  }

  .mock-body {
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 720px;
  }

  .mock-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--m-split);
  }

  .mock-sidebar-bottom {
    display: block;
  }
}

@media (min-width: 1024px) {
  .mock-body {
    grid-template-columns: 240px minmax(0, 1fr) minmax(300px, 38%);
  }

  .mock-panel {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-panel {
    animation: none;
  }

  .mock-running i {
    animation-duration: 1.8s;
  }
}

/* Sections */
.section {
  margin-top: 4rem;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-title-lg {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #5c6675;
}

/* Office and Code sections */
.shell-section {
  display: grid;
  gap: 2rem;
  align-items: center;
  scroll-margin-top: calc(var(--public-site-header-offset, 3.5rem) + 1rem);
}

.shell-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin: 0;
  padding: 0.3125rem 0.75rem;
  border: 1px solid rgb(15 23 42 / 0.12);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #252f3d;
}

.shell-eyebrow svg {
  width: 14px;
  height: 14px;
}

.shell-title {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #252f3d;
}

.shell-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #5c6675;
}

.shell-points {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.shell-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5c6675;
}

.shell-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0.125rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #252f3d;
  content: "";
}

.shell-points strong {
  font-weight: 600;
  color: #252f3d;
}

.shell-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.75rem;
  padding-bottom: 0.125rem;
  border-bottom: 1px solid rgb(37 47 61 / 0.25);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #252f3d;
  text-decoration: none;
  transition: border-color 0.15s;
}

.shell-demo-link:hover {
  border-bottom-color: #252f3d;
}

.shell-demo-link svg {
  width: 14px;
  height: 14px;
}

.shell-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  border-radius: 12px;
  background: url("/mountains-illustration.png") center 30% / cover no-repeat;
}

.shell-section--reverse .shell-visual {
  background-position: center 85%;
}

/* Code section: the visual is a full Code screen, not a half-column card. */
.shell-section--screen {
  align-items: start;
}

.shell-section--screen .shell-section-copy {
  max-width: 42rem;
}

.code-screen-stage.shell-visual {
  width: 100%;
  padding: 1rem;
}

.code-screen-scroll {
  width: 100%;
  container-type: inline-size;
}

/* Narrow: sidebar, chat, and Changes stack so none of them is clipped. */
.code-screen .mock-body {
  grid-template-columns: minmax(0, 1fr);
}

.code-screen .mock-sidebar {
  border-right: none;
  border-bottom: 1px solid var(--m-split);
}

.code-screen .mock-sidebar-bottom {
  display: block;
}

.code-screen .mock-session {
  cursor: default;
}

.code-screen .mock-main {
  min-height: 420px;
}

.code-screen .mock-panel {
  display: flex;
  min-height: 320px;
  border-top: 1px solid var(--m-split);
}

@container (min-width: 880px) {
  .code-screen .mock-body {
    grid-template-columns: 240px minmax(0, 1fr) minmax(300px, 36%);
    min-height: 720px;
  }

  .code-screen .mock-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--m-split);
  }

  .code-screen .mock-main {
    min-height: 0;
  }

  .code-screen .mock-panel {
    min-height: 0;
    border-top: none;
    border-left: 1px solid var(--m-split);
  }
}

.mock-card {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: var(--m-panel-main);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.mock-card-label {
  margin: 0.125rem 0.5rem 0.375rem;
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-role {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 6px;
}

.mock-role:first-of-type {
  background: var(--m-selected);
}

.mock-role-icon {
  display: flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.06);
  color: var(--m-muted-dark);
}

.mock-role-icon svg {
  width: 14px;
  height: 14px;
}

.mock-role-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  line-height: 1.35;
}

.mock-role-name {
  font-weight: 500;
}

.mock-role-hint {
  font-size: var(--m-font-sm);
  color: var(--m-muted);
}

.mock-card .mock-composer {
  align-items: flex-start;
}

.mock-card .mock-composer-text {
  white-space: normal;
}

.mock-card .mock-composer-meta {
  padding-bottom: 0.25rem;
}

.mock-card .mock-result-card {
  margin-top: 0.625rem;
}

.steps-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

.step-card .step-num {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(15 23 42 / 0.12);
  border-radius: 50%;
  background: #fff;
  color: #252f3d;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.step-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #5c6675;
}

/* CTA */
.cta-actions {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .section {
    margin-top: 6rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-title-lg {
    font-size: 1.875rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shell-visual {
    padding: 3rem 2rem;
  }
}

@media (min-width: 960px) {
  .shell-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .shell-section--reverse .shell-visual {
    order: -1;
  }

  .shell-section--screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-screen-stage.shell-visual {
    padding: 1.25rem;
  }
}
