/* Seyka Studio section (/studio).
   Editorial pages (paper and ink, very large tight headlines with a serif-italic second line, mono labels,
   hairline rules) beside a faithful copy of the chat app's sidebar. Every rule is scoped under .studio so the
   guide's own pages are untouched. Theme comes from <html data-theme> (shared with the chat app). */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('https://static.seyka.ru/fonts/golos-text-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('https://static.seyka.ru/fonts/golos-text-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://static.seyka.ru/fonts/piazzolla-cyrillic-wght-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://static.seyka.ru/fonts/piazzolla-latin-wght-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://static.seyka.ru/fonts/rubik-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://static.seyka.ru/fonts/rubik-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

.studio {
  --st-paper: #f2efe6;
  --st-card: #faf7ef;
  --st-ink: #15150f;
  --st-mute: #57564b;
  --st-rule: #d9d4c5;
  --st-rule-2: #b9b4a4;
  --st-accent: #4f46e5;
  --st-accent-soft: #c7c9ff;
  --st-band: #15150f;
  --st-band-ink: #f2efe6;
  --st-band-mute: #a9a797;

  /* The chat app's sidebar tokens (apps/chat/src/app/globals.css), light. */
  --sb-bg: oklch(0.984 0.003 247.858);
  --sb-fg: oklch(0.129 0.042 264.695);
  --sb-accent: oklch(0.968 0.007 247.896);
  --sb-accent-fg: oklch(0.208 0.042 265.755);
  --sb-border: oklch(0.929 0.013 255.508);
  --sb-muted: oklch(0.554 0.046 257.417);
  --sb-primary: oklch(0.208 0.042 265.755);
  --sb-primary-fg: oklch(0.984 0.003 247.858);
  --sb-wordmark: #312e81;
  --sb-badge-bg: rgb(59 130 246 / 0.1);
  --sb-badge-fg: #2563eb;
  --sb-nose: #6366f1;

  --st-sans: 'Golos Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --st-serif: 'Piazzolla', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --st-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --st-pad: clamp(20px, 4vw, 56px);
  /* The guide footer (SiteFooter) reads --font-sans; pointing it at Golos keeps Source Serif off these pages. */
  --font-sans: var(--st-sans);

  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--st-paper);
  color: var(--st-ink);
  font-family: var(--st-sans);
  font-size: 16px;
  line-height: 1.55;
}

[data-theme='dark'] .studio {
  --st-paper: #12110d;
  --st-card: #1a1914;
  --st-ink: #f2efe6;
  --st-mute: #a9a797;
  --st-rule: #2e2c25;
  --st-rule-2: #4a473d;
  --st-accent: #a5b4fc;
  --st-band: #0a0907;

  --sb-bg: oklch(0.208 0.042 265.755);
  --sb-fg: oklch(0.984 0.003 247.858);
  --sb-accent: oklch(0.279 0.041 260.031);
  --sb-accent-fg: oklch(0.984 0.003 247.858);
  --sb-border: oklch(1 0 0 / 10%);
  --sb-muted: oklch(0.704 0.04 256.788);
  --sb-primary: oklch(0.929 0.013 255.508);
  --sb-primary-fg: oklch(0.208 0.042 265.755);
  --sb-wordmark: #c7d2fe;
  --sb-badge-fg: #60a5fa;
}

.studio a {
  color: inherit;
}

/* ---------- the rail: a copy of the chat sidebar ---------- */

.studio .st-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--sb-bg);
  color: var(--sb-fg);
  border-right: 1px solid var(--sb-border);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  padding: 16px 12px 12px;
}

.studio .st-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-bottom: 8px;
  text-decoration: none;
}
.studio .st-brand:hover {
  opacity: 0.8;
}
.studio .st-brand-mark {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.studio .st-cat {
  color: var(--sb-fg);
  transform: rotate(-6deg);
}
.studio .st-cat-eye {
  fill: var(--sb-bg);
}
.studio .st-cat-nose {
  fill: var(--sb-nose);
}
.studio .st-wordmark {
  font-family: 'Rubik', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--sb-wordmark);
  white-space: nowrap;
}

.studio .st-menu,
.studio .st-sub ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.studio .st-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio .st-menu > li.st-gap {
  margin-top: 12px;
}

.studio .st-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 8px;
  border-radius: 6px;
  color: var(--sb-fg);
  text-decoration: none;
  white-space: nowrap;
}
.studio .st-row:hover,
.studio .st-sub-row:hover {
  background: var(--sb-accent);
  color: var(--sb-accent-fg);
}
.studio .st-row.is-active {
  background: var(--sb-accent);
  color: var(--sb-accent-fg);
  font-weight: 500;
}
.studio .st-icon {
  flex: none;
}
.studio .st-badge {
  margin-left: auto;
  border-radius: 4px;
  background: var(--sb-badge-bg);
  color: var(--sb-badge-fg);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.studio .st-sub {
  margin: 4px 0 0 14px;
  padding: 2px 0 2px 10px;
  border-left: 1px solid var(--sb-border);
}
.studio .st-sub + .st-sub {
  margin-top: 8px;
}
.studio .st-sub-label {
  margin: 0;
  padding: 6px 8px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sb-muted);
}
.studio .st-sub-row {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--sb-fg);
  text-decoration: none;
}
.studio .st-sub-row.is-current {
  background: var(--sb-accent);
  color: var(--sb-accent-fg);
  font-weight: 500;
}

/* An .st-btn-primary, sized down to the rail and stretched across it. */
.studio .st-btn.st-rail-cta {
  display: flex;
  justify-content: center;
  min-height: 36px;
  margin: 10px 0 0 14px;
  font-size: 14px;
}

.studio .st-rail-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
}
.studio .st-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--sb-primary);
  color: var(--sb-primary-fg);
  font-size: 15px;
  text-decoration: none;
}

.studio .st-topbar {
  display: none;
}

/* ---------- page column ---------- */

.studio .st-page {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio .st-main {
  flex: 1;
}
.studio .st-page > .footer {
  margin-top: 0;
}

.studio .st-head {
  position: relative;
  padding: clamp(36px, 6vw, 72px) var(--st-pad) 0;
}
.studio .st-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--st-mute);
}
.studio .st-crumbs a {
  text-decoration: none;
}
.studio .st-crumbs a:hover {
  color: var(--st-ink);
  text-decoration: underline;
}

.studio .st-eyebrow {
  margin: 0;
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--st-mute);
  max-width: none;
}
.studio .st-eyebrow::before {
  content: '●';
  margin-right: 10px;
  font-size: 7px;
  vertical-align: 2px;
  color: var(--st-accent);
}

.studio .st-h1 {
  margin: 18px 0 0;
  max-width: 17ch;
  font-family: var(--st-sans);
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--st-ink);
  text-wrap: balance;
}
.studio .st-serif {
  display: block;
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.studio .st-h2 {
  margin: 14px 0 0;
  font-family: var(--st-sans);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: inherit;
}
.studio h2,
.studio h3 {
  font-family: var(--st-sans);
  color: inherit;
}
.studio p {
  max-width: 62ch;
}

/* ---------- hero ---------- */

.studio .st-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 28px var(--st-pad) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--st-rule);
}
.studio .st-lead {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--st-mute);
}
.studio .st-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.studio .st-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s;
}
.studio .st-btn:hover {
  transform: translateY(-1px);
}
.studio .st-btn-primary {
  background: var(--st-ink);
  color: var(--st-paper);
}
.studio .st-btn-ghost {
  border: 1px solid var(--st-rule-2);
}
.studio .st-btn-accent {
  background: var(--st-accent-soft);
  color: #15150f;
  font-weight: 600;
}

/* ---------- sections ---------- */

.studio .st-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px 56px;
  padding: clamp(48px, 7vw, 96px) var(--st-pad);
  border-bottom: 1px solid var(--st-rule);
}
.studio .st-sec.is-card {
  background: var(--st-card);
}
.studio .st-sec-head {
  align-self: start;
  position: sticky;
  top: 24px;
}
.studio .st-sec-head .st-intro {
  margin: 18px 0 0;
  color: var(--st-mute);
}
.studio .st-prose {
  font-size: 17px;
  line-height: 1.65;
}
.studio .st-prose > :first-child {
  margin-top: 0;
}
.studio .st-prose p,
.studio .st-prose ul,
.studio .st-prose ol {
  margin: 0 0 18px;
}
.studio .st-prose ul,
.studio .st-prose ol {
  padding-left: 1.2em;
}
.studio .st-prose li {
  margin-bottom: 8px;
}
.studio .st-prose li::marker {
  color: var(--st-accent);
}
.studio .st-prose h3 {
  margin: 28px 0 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.studio .st-prose a,
.studio .st-faq a {
  color: var(--st-accent);
  text-underline-offset: 3px;
}
.studio .st-prose strong {
  font-weight: 600;
}

/* numbered rows */
.studio .st-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: st-step;
}
.studio .st-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 26px 0;
  border-top: 1px solid var(--st-rule);
  counter-increment: st-step;
}
.studio .st-steps li:last-child {
  border-bottom: 1px solid var(--st-rule);
}
.studio .st-steps li::before {
  content: counter(st-step, decimal-leading-zero);
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--st-mute);
  padding-top: 6px;
}
.studio .st-steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.studio .st-steps p {
  margin: 0;
  color: var(--st-mute);
}

/* product window: a drawn illustration until real screenshots exist */
.studio .st-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
  margin: 0 var(--st-pad) clamp(40px, 6vw, 72px);
  padding: clamp(22px, 3vw, 40px);
  background: var(--st-card);
  border: 1px solid var(--st-rule);
  border-radius: 28px;
}
.studio .st-demo-brief h2 {
  margin: 12px 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.studio .st-demo-brief p {
  margin: 0 0 14px;
  color: var(--st-mute);
}
.studio .st-demo-reply {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--st-accent);
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 18px;
}
.studio .st-window {
  margin: 0;
  background: #fff8ea;
  color: #15150f;
  border: 1px solid #e3dccb;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 40px rgb(21 21 15 / 0.12);
}
.studio .st-window img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.studio .st-window-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3dccb;
  font-size: 13px;
  font-weight: 700;
}
.studio .st-window-bar span:last-child {
  font-family: var(--st-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #57564b;
}
.studio .st-window-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  padding-top: 16px;
}
.studio .st-window-h {
  margin: 8px 0;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.studio .st-window-h span {
  display: block;
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 400;
}
.studio .st-window-text {
  margin: 0;
  font-size: 12px;
  color: #57564b;
}
.studio .st-window-tiles {
  display: grid;
  gap: 10px;
}
.studio .st-window-tiles span {
  display: block;
  height: 72px;
  border-radius: 10px;
  background: #c9d4bb;
}
.studio .st-window-tiles span + span {
  background: #e7c3ab;
}
.studio .st-window-label {
  font-family: var(--st-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #57564b;
}

/* comparison table */
.studio .st-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.studio .st-compare caption {
  text-align: left;
  padding-bottom: 14px;
  font-family: var(--st-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.studio .st-compare th,
.studio .st-compare td {
  padding: 14px 12px 14px 0;
  border-top: 1px solid var(--st-rule);
  text-align: left;
  vertical-align: top;
}
.studio .st-compare thead th {
  border-top: 0;
  font-weight: 600;
}
.studio .st-compare tbody th {
  font-weight: 500;
  color: var(--st-mute);
}
.studio .st-compare td:last-child {
  font-weight: 600;
}
.studio .st-table-wrap {
  overflow-x: auto;
}

/* FAQ */
.studio .st-faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--st-rule);
}
.studio .st-faq-item:last-child {
  border-bottom: 1px solid var(--st-rule);
}
.studio .st-faq-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.studio .st-faq-item p {
  margin: 0;
  color: var(--st-mute);
}

/* dark closing band */
.studio .st-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: end;
  padding: clamp(56px, 8vw, 104px) var(--st-pad);
  background: var(--st-band);
  color: var(--st-band-ink);
}
.studio .st-band .st-eyebrow {
  color: var(--st-band-mute);
}
.studio .st-band .st-h2 {
  font-size: clamp(38px, 5.4vw, 76px);
}
.studio .st-band .st-serif {
  color: var(--st-accent-soft);
}
.studio .st-band p {
  margin: 0 0 20px;
  color: var(--st-band-mute);
}
.studio .st-band-note {
  margin-top: 16px !important;
  font-family: var(--st-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- phone ---------- */

@media (max-width: 899px) {
  .studio {
    display: block;
  }
  .studio .st-rail {
    display: none;
  }
  .studio .st-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 12px;
    background: var(--sb-bg);
    color: var(--sb-fg);
    border-bottom: 1px solid var(--sb-border);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
  }
  .studio .st-topbar .st-brand {
    margin: 0;
  }
  .studio .st-menu-toggle summary {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
  }
  .studio .st-menu-toggle summary::-webkit-details-marker {
    display: none;
  }
  .studio .st-menu-toggle[open] summary {
    background: var(--sb-accent);
  }
  .studio .st-menu-panel {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 52px);
    /* 100vh includes the mobile browser's toolbar, which would clip the menu's last rows. */
    max-height: calc(100dvh - 52px);
    overflow-y: auto;
    padding: 12px 12px 20px;
    background: var(--sb-bg);
    border-bottom: 1px solid var(--sb-border);
    box-shadow: 0 12px 24px rgb(15 23 42 / 0.12);
  }
  .studio .st-menu-panel .st-login {
    margin-top: 16px;
  }

  .studio .st-sec,
  .studio .st-band,
  .studio .st-demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio .st-sec-head {
    position: static;
  }
  .studio .st-hero {
    align-items: flex-start;
  }
  .studio .st-steps li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .studio .st-window-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio .st-window-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

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