/*
Theme Name: Kovcheg Social Publisher
Theme URI: https://kovcheg-post.com
Author: Kovcheg
Description: Product website for Kovcheg Post social publishing automation.
Version: 2.0.0
Requires at least: 6.0
Text Domain: kovcheg
*/

:root {
  --bg: #f6f7f3;
  --ink: #141819;
  --muted: #66706d;
  --paper: #ffffff;
  --soft: #eef2ee;
  --line: #d9dfd7;
  --green: #1f6f51;
  --green-2: #dceee5;
  --blue: #245bc9;
  --blue-2: #e1e9ff;
  --amber: #d9822b;
  --amber-2: #fff0dc;
  --red: #b24635;
  --shadow: 0 18px 50px rgba(21, 30, 26, .08);
}

.appdemo {
  display: grid;
  gap: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1480px;
  min-height: calc(100vh - 76px);
}

.appdemo-sidebar {
  background: #151a18;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  height: calc(100vh - 76px);
  padding: 24px;
  position: sticky;
  top: 76px;
}

.appdemo-workspace {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: 22px;
}

.appdemo-workspace span,
.appdemo-kicker,
.appdemo-user span,
.appdemo-metrics span,
.appdemo-target span,
.appdemo-table em,
.appdemo-upload small {
  color: var(--muted);
}

.appdemo-workspace span,
.appdemo-kicker {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.appdemo-workspace strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.appdemo-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.appdemo-sidebar nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
  font-weight: 850;
  padding: 11px 12px;
}

.appdemo-sidebar nav a.active,
.appdemo-sidebar nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.appdemo-reviewer {
  background: rgba(220, 238, 229, .09);
  border: 1px solid rgba(220, 238, 229, .16);
  border-radius: 10px;
  margin-top: 28px;
  padding: 16px;
}

.appdemo-reviewer span {
  color: #9bdab9;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.appdemo-reviewer p {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  margin-top: 8px;
}

.appdemo-main {
  padding: 28px;
}

.appdemo-top {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.appdemo-top h1 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 860px;
}

.appdemo-user {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 260px;
  padding: 14px 16px;
}

.appdemo-user strong,
.appdemo-user span {
  display: block;
}

.appdemo-user strong {
  margin-top: 4px;
}

.appdemo-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.appdemo-metrics article,
.appdemo-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.appdemo-metrics article,
.appdemo-card {
  padding: 16px;
}

.appdemo-card {
  padding: 22px;
}

.appdemo-metrics strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}

.appdemo-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
}

.appdemo-bottom {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  margin-top: 18px;
}

.appdemo-card-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.appdemo-card h2 {
  font-size: 26px;
}

.appdemo-pill {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34403c;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.appdemo-pill.green {
  background: var(--green-2);
  border-color: #b9d9c7;
  color: var(--green);
}

.appdemo-upload {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(220, 238, 229, .65), rgba(225, 233, 255, .55)),
    #fff;
  border: 1px dashed #9ab5a6;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 138px;
  padding: 22px;
  text-align: center;
}

.appdemo-upload input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.appdemo-upload span {
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.appdemo-field,
.appdemo-controls label {
  display: grid;
  gap: 8px;
}

.appdemo-field {
  margin-top: 16px;
}

.appdemo-field span,
.appdemo-controls span {
  color: #34403c;
  font-size: 13px;
  font-weight: 900;
}

.appdemo-field textarea,
.appdemo-controls input,
.appdemo-controls select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  min-height: 46px;
  padding: 12px;
  width: 100%;
}

.appdemo-field textarea {
  resize: vertical;
}

.appdemo-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.appdemo-targets {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.appdemo-target {
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 13px;
}

.appdemo-target.connected {
  border-color: #b9d9c7;
}

.appdemo-target label {
  align-items: center;
  display: flex;
  gap: 8px;
  font-weight: 900;
}

.appdemo-target button,
.appdemo-modal-card button[data-close-oauth] {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 10px;
  width: fit-content;
}

.appdemo-target button:disabled {
  background: var(--green);
}

.appdemo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.appdemo-phone {
  background: #101413;
  border: 10px solid #202827;
  border-radius: 28px;
  color: #fff;
  margin: 0 auto;
  max-width: 350px;
  overflow: hidden;
}

.appdemo-phone-top {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 14px;
}

.appdemo-phone-top span {
  background: rgba(255, 255, 255, .35);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.appdemo-media {
  align-items: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, rgba(31, 111, 81, .88), rgba(36, 91, 201, .78)),
    #1a2421;
  display: grid;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.appdemo-media strong {
  font-size: 54px;
}

.appdemo-media span {
  color: rgba(255, 255, 255, .74);
  display: block;
  font-weight: 800;
}

.appdemo-media img,
.appdemo-media video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.appdemo-phone p {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  padding: 14px;
}

.appdemo-phone-actions {
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  padding: 12px 14px 16px;
}

.appdemo-table {
  display: grid;
  gap: 10px;
}

.appdemo-table div {
  align-items: center;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, .8fr) minmax(110px, .6fr) minmax(180px, 1fr);
  min-height: 58px;
  padding: 12px;
}

.appdemo-table span {
  font-weight: 900;
}

.appdemo-table strong {
  color: var(--green);
  font-size: 13px;
}

.appdemo-table div[data-row="TikTok"] strong {
  color: var(--amber);
}

.appdemo-table div.connected strong {
  color: var(--green);
}

.appdemo-table em {
  font-size: 12px;
  font-style: normal;
}

.appdemo-log {
  color: #46514e;
  display: grid;
  font-size: 14px;
  gap: 10px;
  line-height: 1.5;
  margin: 0;
  padding-left: 20px;
}

.appdemo-security {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr) auto;
  margin-top: 18px;
}

.appdemo-security p {
  color: #46514e;
}

.appdemo-security a {
  color: var(--green);
  font-weight: 900;
}

.appdemo-modal {
  align-items: center;
  background: rgba(13, 18, 16, .58);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.appdemo-modal[hidden] {
  display: none;
}

.appdemo-modal-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .24);
  max-width: 560px;
  padding: 24px;
  width: min(100%, 560px);
}

.appdemo-oauth {
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.appdemo-oauth-brand {
  align-items: center;
  background: #111317;
  border-radius: 10px;
  color: #fff;
  display: grid;
  font-size: 24px;
  font-weight: 900;
  height: 68px;
  justify-content: center;
  margin-bottom: 16px;
}

.appdemo-oauth p,
.appdemo-oauth li {
  color: #46514e;
}

.appdemo-oauth ul {
  line-height: 1.7;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .appdemo,
  .appdemo-layout,
  .appdemo-bottom,
  .appdemo-security {
    grid-template-columns: 1fr;
  }

  .appdemo-sidebar {
    height: auto;
    position: static;
  }

  .appdemo-main {
    padding: 18px;
  }

  .appdemo-top {
    align-items: stretch;
    flex-direction: column;
  }

  .appdemo-metrics,
  .appdemo-controls,
  .appdemo-targets {
    grid-template-columns: 1fr;
  }

  .appdemo-table div {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(220, 238, 229, .65), transparent 420px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.62;
  margin: 0;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 243, .88);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 12px;
  min-width: 220px;
}

.brand span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.mark {
  align-items: center;
  background: var(--ink);
  border-radius: 9px;
  color: #fff;
  display: grid;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.topbar nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.topbar nav a {
  color: #2e3735;
  font-size: 14px;
  font-weight: 700;
}

.shell {
  margin: 0 auto;
  max-width: 1220px;
  padding: 34px;
}

.section {
  margin-top: 26px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.24fr) minmax(330px, .76fr);
}

.panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-main {
  min-height: 560px;
  padding: 38px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 900px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.lede {
  color: #46514e;
  font-size: 20px;
  line-height: 1.55;
  margin-top: 22px;
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  min-height: 46px;
  padding: 12px 16px;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.button.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.meta-row {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
}

.tag {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2d3835;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 11px;
}

.terminal {
  background: #141819;
  border-radius: 10px;
  color: #e9f0ec;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  overflow: hidden;
}

.terminal-bar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  gap: 8px;
  padding: 14px 18px;
}

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

.dot.red { background: #f36b5f; }
.dot.amber { background: #f0bd4f; }
.dot.green { background: #52c97a; }

.terminal-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.code-line {
  color: #9fb0aa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.flow-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 16px;
}

.flow-card strong {
  display: block;
  margin-bottom: 8px;
}

.flow-card span {
  color: #b8c6c1;
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  min-height: 250px;
}

.feature .num {
  color: var(--green);
  display: block;
  font-weight: 900;
  margin-bottom: 42px;
}

.feature p,
.price p,
.step p {
  color: var(--muted);
  margin-top: 12px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.workflow {
  background: var(--ink);
  color: #fff;
}

.workflow h2,
.workflow p {
  color: inherit;
}

.step {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  padding: 22px;
}

.step b {
  color: #8fe0b4;
  display: block;
  margin-bottom: 22px;
}

.price {
  display: flex;
  flex-direction: column;
  min-height: 370px;
}

.price strong {
  font-size: 34px;
  margin-top: 18px;
}

.price ul {
  color: #3f4a47;
  line-height: 1.7;
  margin: 18px 0 0;
  padding-left: 20px;
}

.price .button {
  justify-content: center;
  margin-top: auto;
}

.accent-green {
  background: var(--green-2);
}

.accent-blue {
  background: var(--blue-2);
}

.accent-amber {
  background: var(--amber-2);
}

.notice {
  background: #fff;
  border-left: 6px solid var(--amber);
  border-radius: 10px;
  padding: 22px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  color: var(--muted);
  margin-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 34px;
  padding: 28px 34px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
}

.site-footer .footer-legal {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 34px auto;
  max-width: 900px;
  padding: 42px;
}

.doc h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.doc h2 {
  font-size: 28px;
  margin-top: 34px;
}

.doc h3 {
  margin-top: 28px;
}

.doc p,
.doc li {
  color: #46514e;
  line-height: 1.7;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.demo-shell {
  margin: 0 auto;
  max-width: 1320px;
  padding: 34px;
}

.demo-hero {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  margin-bottom: 18px;
}

.demo-hero h1 {
  max-width: 760px;
}

.demo-review-card {
  background: var(--ink);
  border-radius: 10px;
  color: #fff;
  padding: 22px;
}

.demo-review-card span,
.demo-review-card p,
.demo-kicker,
.demo-account span,
.demo-preview span,
.demo-upload small {
  color: var(--muted);
}

.demo-review-card span {
  color: #9bdab9;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.demo-review-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.demo-review-card p {
  color: rgba(255, 255, 255, .78);
  margin-top: 12px;
}

.demo-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.22fr) minmax(280px, .82fr);
}

.demo-panel {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.demo-panel-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.demo-panel h2 {
  font-size: 26px;
}

.demo-kicker {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.demo-badge,
.demo-check {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34403c;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.demo-badge.green,
.demo-check {
  background: var(--green-2);
  border-color: #b9d9c7;
  color: var(--green);
}

.demo-account-list,
.demo-queue-list {
  display: grid;
  gap: 10px;
}

.demo-account {
  align-items: center;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 12px;
}

.demo-account.connected {
  border-color: #b9d9c7;
}

.demo-account strong,
.demo-account span {
  display: block;
}

.demo-account span {
  font-size: 13px;
  margin-top: 3px;
}

.demo-platform-mark {
  align-items: center;
  border-radius: 9px;
  color: #fff;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.demo-platform-mark.tiktok {
  background: #111317;
}

.demo-platform-mark.instagram {
  background: #b2467d;
}

.demo-platform-mark.facebook {
  background: var(--blue);
}

.demo-platform-mark.threads {
  background: var(--green);
}

.demo-icon-button {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 11px;
}

.demo-icon-button:disabled {
  background: var(--green);
  cursor: default;
}

.demo-security-note {
  background: var(--green-2);
  border-radius: 10px;
  margin-top: 16px;
  padding: 16px;
}

.demo-security-note p {
  color: #3f4a47;
  font-size: 14px;
  margin-top: 8px;
}

.demo-security-note a {
  color: var(--green);
  display: inline-block;
  font-weight: 900;
  margin-top: 10px;
}

.demo-upload {
  align-items: center;
  background: #f9faf7;
  border: 1px dashed #aeb9ae;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-bottom: 14px;
  min-height: 132px;
  padding: 20px;
  text-align: center;
}

.demo-upload input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.demo-upload span {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.demo-preview {
  align-items: center;
  background: var(--soft);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
  padding: 12px;
}

.demo-preview-art {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-size: 32px;
  font-weight: 900;
  justify-content: center;
}

.demo-preview img,
.demo-preview video {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  width: 100%;
}

.demo-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.demo-field span,
.demo-targets legend {
  color: #34403c;
  font-size: 13px;
  font-weight: 900;
}

.demo-field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

.demo-targets {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  padding: 14px;
}

.demo-targets legend {
  padding: 0 8px;
}

.demo-targets label {
  align-items: center;
  color: #34403c;
  display: flex;
  gap: 8px;
  font-weight: 800;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demo-queue-row {
  align-items: center;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px;
}

.demo-queue-row strong {
  color: var(--green);
  font-size: 13px;
  text-align: right;
}

.demo-queue-row[data-state="needs-oauth"] strong,
.demo-queue-row[data-state="waiting-for-connection"] strong {
  color: var(--amber);
}

.demo-log {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.demo-log ol {
  color: #46514e;
  display: grid;
  font-size: 14px;
  gap: 8px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    position: static;
  }

  .shell {
    padding: 18px;
  }

  .hero,
  .section-head,
  .demo-hero,
  .demo-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .demo-shell {
    padding: 18px;
  }

  .hero-main,
  .doc {
    padding: 24px;
  }

  .demo-preview {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .demo-targets {
    grid-template-columns: 1fr;
  }

  .terminal {
    min-height: auto;
  }
}
