/* ======================================================================
   GLOSSI BRAND SYSTEM
   Editorial and conversion-page compositions. The launch system loads after
   this file and owns universal tokens, typography roles, and navigation.
   ====================================================================== */

body.brand-page {
  --brand-reading: 720px;
  --brand-page-title: var(--launch-display-lg);
  --brand-editorial-title: var(--launch-display-lg);
  --brand-subheading: clamp(24px, 2.5vw, 32px);
  --brand-body-large: var(--launch-body-large);
  --brand-shadow: 0 24px 64px rgba(18, 18, 20, 0.08);
  padding-top: 60px;
}

body.brand-page *,
body.brand-page *::before,
body.brand-page *::after { box-sizing: border-box; }

body.brand-page :where(.page-grid__line--l, .page-grid__line--r) {
  border-color: var(--brand-line);
}

body.brand-page .btn {
  border-radius: var(--brand-radius);
  min-height: 42px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease, transform 160ms ease;
}
body.brand-page .btn:hover { transform: translateY(-1px); }
body.brand-page .btn-primary {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
body.brand-page .btn-primary:hover {
  background: #2a2a2e;
  border-color: #2a2a2e;
}
body.brand-page .btn-outline,
body.brand-page .btn-ghost {
  background: transparent;
  border-color: var(--brand-line-strong);
  color: var(--brand-ink);
}
body.brand-page .btn-outline:hover,
body.brand-page .btn-ghost:hover { background: rgba(24, 24, 27, 0.045); }

body.brand-page .section-label,
body.brand-page .content-eyebrow {
  color: var(--brand-copy);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

body.brand-page .section-label::before,
body.brand-page .content-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--brand-orange);
  vertical-align: 1px;
}

body.brand-page .footer {
  background: var(--brand-canvas);
  border-top: 1px solid var(--brand-line);
}




/* ----------------------------------------------------------------------
   RESOURCE DIRECTORY + CHANGELOG
   ---------------------------------------------------------------------- */

body.brand-directory .page-wrap {
  max-width: calc(var(--brand-max) + (var(--brand-pad) * 2));
  padding-inline: var(--brand-pad);
}

body.brand-directory .page-layout {
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px);
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: var(--brand-section);
}

body.brand-directory .page-sidebar {
  top: 96px;
  padding: 0;
  border: 0;
}

body.brand-directory .page-title {
  max-width: 9ch;
  margin: 0 0 18px;
  color: var(--brand-ink);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.02;
}

body.brand-directory .page-subtitle {
  max-width: 30ch;
  color: var(--brand-copy);
  font-size: 16px;
  line-height: 1.55;
}

body.brand-directory .page-content { min-width: 0; padding-left: 0; }

body.brand-directory .sidebar-cta {
  margin-top: 36px;
  padding: 22px;
  background: var(--brand-canvas-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
}
body.brand-directory .sidebar-cta:hover {
  border-color: var(--brand-line-strong);
  box-shadow: 0 18px 42px rgba(18, 18, 20, 0.06);
}




body.brand-directory .page-tabs {
  gap: 4px;
  margin-bottom: 28px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-canvas-soft);
}
body.brand-directory .page-tab {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: var(--brand-radius);
  color: var(--brand-copy);
}
body.brand-directory .page-tab:hover { background: rgba(24, 24, 27, 0.04); }
body.brand-directory .page-tab.active {
  background: var(--brand-canvas);
  color: var(--brand-ink);
  box-shadow: 0 1px 4px rgba(18, 18, 20, 0.08);
}

body.brand-resources .page-wrap {
  width: min(100%, calc(var(--brand-max) + (var(--brand-pad) * 2)));
  max-width: none;
}

body.brand-resources .page-layout {
  display: block;
  padding-top: clamp(72px, 7vw, 96px);
}

body.brand-resources .resources-head {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding: 0 0 clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--brand-line);
}

body.brand-resources .resources-head-copy .section-label {
  display: block;
  margin-bottom: 20px;
}

body.brand-resources .page-title {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

body.brand-resources .resources-head-summary {
  padding-bottom: 4px;
}

body.brand-resources .page-subtitle {
  max-width: 33ch;
  font-size: 16px;
  line-height: 1.55;
}

body.brand-resources .resources-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

body.brand-resources .resources-utility a,
body.brand-resources .resources-studio-link {
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

body.brand-resources .resources-utility a {
  border-bottom: 1px solid var(--brand-line-strong);
  padding-bottom: 2px;
  transition: border-color 160ms ease;
}

body.brand-resources .resources-utility a:hover { border-color: var(--brand-ink); }
body.brand-resources .page-content { padding: 0; }

body.brand-resources .resources-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--brand-line);
}

body.brand-resources .page-tabs {
  display: flex;
  gap: 26px;
  width: auto;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

body.brand-resources .page-tabs::-webkit-scrollbar { display: none; }

body.brand-resources .page-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease;
}

body.brand-resources .page-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--brand-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

body.brand-resources .page-tab:hover,
body.brand-resources .page-tab.active {
  background: transparent;
  color: var(--brand-ink);
  box-shadow: none;
}

body.brand-resources .page-tab.active::after { transform: scaleX(1); }

body.brand-resources .resources-studio-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  color: var(--brand-copy);
  transition: color 160ms ease;
}

body.brand-resources .resources-studio-link:hover { color: var(--brand-ink); }
body.brand-resources .resources-studio-link svg { width: 15px; height: 15px; }

body.brand-resources .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

body.brand-resources .card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

body.brand-resources .card.hidden { display: none; }

body.brand-resources .card-image {
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background-color: var(--brand-canvas-soft);
  transition: opacity 180ms ease;
}

body.brand-resources .card:hover {
  transform: none;
  box-shadow: none;
}

body.brand-resources .card:hover .card-image { opacity: 0.88; }

body.brand-resources .card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 16px 0 0;
}

body.brand-resources .card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}
body.brand-resources .card-type {
  color: var(--brand-copy);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
body.brand-resources .card-type::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--brand-orange);
  vertical-align: 1px;
}

body.brand-resources .card-date {
  color: var(--brand-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

body.brand-resources .card-date::before {
  content: "·";
  margin-right: 9px;
}

body.brand-resources .card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}
body.brand-resources .card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--brand-copy);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.brand-resources .card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--brand-line);
}

body.brand-resources .card.is-featured .card-image {
  aspect-ratio: 16 / 9;
}

body.brand-resources .card.is-featured .card-body {
  padding: 0;
}

body.brand-resources .card.is-featured h2 {
  max-width: 15ch;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.06;
}

body.brand-resources .card.is-featured p {
  max-width: 36ch;
  font-size: 16px;
  -webkit-line-clamp: 4;
}

body.brand-changelog .page-layout {
  grid-template-columns: minmax(210px, 0.27fr) minmax(0, 1fr);
  gap: clamp(56px, 6vw, 84px);
  padding-top: clamp(64px, 7vw, 96px);
}
body.brand-changelog .page-title {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(38px, 3.4vw, 46px);
  line-height: 1.04;
}
body.brand-changelog .page-subtitle {
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.52;
}
body.brand-changelog .changelog-feed {
  max-width: none;
  padding-left: 0;
  border-left: 0;
}
body.brand-changelog .changelog-entry {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  column-gap: 34px;
  margin: 0 0 42px;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--brand-line);
}
body.brand-changelog .changelog-entry:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
body.brand-changelog .changelog-entry::before,
body.brand-changelog .changelog-entry::after { display: none; }
body.brand-changelog .changelog-entry-meta {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin: 5px 0 0;
}
body.brand-changelog .changelog-date {
  margin: 0;
  color: var(--brand-copy);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
body.brand-changelog .changelog-tags { gap: 5px; }
body.brand-changelog .changelog-entry h3 {
  grid-column: 2;
  margin-bottom: 13px;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
body.brand-changelog .changelog-entry p {
  grid-column: 2;
  max-width: 60ch;
  color: rgba(24, 24, 27, 0.76);
  font-size: 16px;
  line-height: 1.58;
}
body.brand-changelog .changelog-entry ul {
  grid-column: 2;
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--brand-line);
  list-style: none;
}
body.brand-changelog .changelog-entry li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 15px;
  border-bottom: 1px solid var(--brand-line);
  color: rgba(24, 24, 27, 0.68);
  font-size: 14px;
  line-height: 1.45;
}
body.brand-changelog .changelog-entry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 4px;
  height: 4px;
  background: var(--brand-orange);
}
body.brand-changelog .changelog-tag {
  padding: 3px 7px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  color: rgba(24, 24, 27, 0.58);
  background: transparent;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ----------------------------------------------------------------------
   ARTICLES + CUSTOMER STORIES
   ---------------------------------------------------------------------- */

body.brand-article .content-layout {
  max-width: var(--brand-max);
  padding: clamp(72px, 8vw, 112px) var(--brand-pad) 0;
}

body.brand-article .content-layout {
  width: var(--launch-frame);
  max-width: var(--launch-max);
  margin-inline: auto;
  grid-template-columns: 160px minmax(0, var(--brand-reading));
  justify-content: start;
  gap: clamp(120px, 14vw, 200px);
  padding-inline: 0;
  padding-top: clamp(48px, 5vw, 72px);
}

body.brand-article .content-main { max-width: var(--brand-reading); }
body.brand-article .content-sidebar { padding: 0; }
body.brand-article .content-nav {
  position: static;
  display: block;
  max-height: none;
  padding: 0;
  overflow: visible;
}
body.brand-article .content-nav-label,
body.brand-article .content-nav a:not(.content-back) { display: none; }
body.brand-article .content-nav .content-back {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--brand-copy);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
body.brand-article .content-nav .content-back:hover { color: var(--brand-ink); }

@media (min-width: 1021px) {
  /* Keep the utility label on the site rail. The chevron hangs into the
     preceding gutter so the word aligns with the Glossi mark above it. */
  body.brand-article .content-nav .content-back svg { margin-left: -24px; }
}

body.brand-article .content-header {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--brand-line);
}
body.brand-article .content-title {
  font-family: var(--font-heading);
  max-width: 14ch;
  margin-bottom: 20px;
  font-size: clamp(42px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
body.brand-article .content-subtitle {
  max-width: 34em;
  color: var(--brand-copy);
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.5;
}
body.brand-article .content-meta { color: var(--brand-muted); font-weight: 400; }
body.brand-article .content-byline-sep { margin-inline: 6px; }
body.brand-article .article-image,
body.brand-article .content-body :where(img, video) { border-radius: var(--brand-radius); }
body.brand-article .prose { color: var(--brand-ink); }
body.brand-article .prose > p {
  color: rgba(24, 24, 27, 0.82);
  font-size: 18px;
  line-height: 1.72;
}
body.brand-article .prose h2 {
  margin-top: 76px;
  color: var(--brand-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.08;
}
body.brand-article .prose h3 {
  margin-top: 52px;
  font-size: 24px;
  font-weight: 500;
}
body.brand-article .prose hr { border-color: var(--brand-line); }
body.brand-article .cta-block {
  margin-top: 88px;
  padding: 48px;
  border: 0;
  border-radius: var(--brand-radius);
  background: var(--brand-dark);
  text-align: left;
}
body.brand-article .cta-block :where(h3, p, a) { color: #fff; }
body.brand-article .cta-block > p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}






















/* ----------------------------------------------------------------------
   GET STARTED
   ---------------------------------------------------------------------- */

body.brand-get-started .hero {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(80px, 8vw, 108px) var(--brand-pad) clamp(52px, 5vw, 68px);
  border: 0;
  text-align: center;
}
body.brand-get-started .hero-badge {
  gap: 9px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-copy);
  font-size: 12px;
  font-weight: 500;
}
body.brand-get-started .hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
}
body.brand-get-started .hero-badge svg { display: none; }
body.brand-get-started .hero h1 {
  max-width: 11ch;
  margin: 24px auto;
  font-size: var(--brand-page-title);
  font-weight: 400;
  line-height: 1;
}
body.brand-get-started .hero p {
  max-width: 570px;
  margin: 0 auto 32px;
  color: var(--brand-copy);
  font-size: 18px;
  line-height: 1.5;
}
body.brand-get-started .hero-ctas { justify-content: center; }
body.brand-get-started .video-section {
  max-width: var(--brand-max);
  padding: 0 var(--brand-pad) var(--brand-section);
}
body.brand-get-started .video-section .glossi-video {
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
}
body.brand-get-started :where(.steps-section, .tutorials-section, .concepts-section, .docs-section) {
  padding: var(--brand-section-compact) var(--brand-pad);
  border-top: 1px solid var(--brand-line);
  background: var(--brand-canvas);
}
body.brand-get-started :where(.section-header, .tutorials-grid, .concepts-grid, .docs-section > *, .steps-grid) {
  max-width: var(--brand-max);
}
body.brand-get-started .section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.5fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
  margin: 0 auto 48px;
  text-align: left;
}
body.brand-get-started .section-header .section-label { grid-column: 1 / -1; margin-bottom: -24px; }
body.brand-get-started .section-title {
  font-size: var(--brand-heading);
  font-weight: 400;
  line-height: 1.02;
}
body.brand-get-started .section-header .section-desc {
  max-width: 34em;
  margin: 0;
  color: var(--brand-copy);
  text-align: left;
}
body.brand-get-started .steps-grid { gap: 0; }
body.brand-get-started .step-card {
  padding: 32px 28px 36px;
  border-radius: 0;
  border-color: var(--brand-line);
  background: transparent;
}
body.brand-get-started .step-card + .step-card { border-left: 0; }
body.brand-get-started .step-card:first-child { border-radius: var(--brand-radius) 0 0 var(--brand-radius); }
body.brand-get-started .step-card:last-child { border-radius: 0 var(--brand-radius) var(--brand-radius) 0; }
body.brand-get-started .step-card:hover { background: var(--brand-canvas-soft); box-shadow: none; }
body.brand-get-started .step-number {
  width: auto;
  height: auto;
  margin-bottom: 52px;
  border-radius: 0;
  background: transparent;
  color: var(--brand-muted);
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------
   DEMO / SALES CONVERSION
   ---------------------------------------------------------------------- */

body.brand-demo .page-wrap {
  width: min(100%, calc(var(--brand-max) + (var(--brand-pad) * 2)));
  max-width: none;
  padding-inline: var(--brand-pad);
}

body.brand-demo .page-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(460px, 1.16fr);
  gap: clamp(48px, 7vw, 96px);
  min-height: 0;
  padding: clamp(72px, 8vw, 104px) 0 var(--brand-section);
  align-items: start;
}

body.brand-demo .page-sidebar {
  position: static;
  min-height: 0;
  padding: 0;
  border: 0;
}





body.brand-demo .page-title {
  max-width: 8ch;
  margin: 0 0 24px;
  color: var(--brand-ink);
  font-size: var(--brand-page-title);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

body.brand-demo .page-subtitle {
  max-width: 38ch;
  margin: 0 0 40px;
  color: var(--brand-copy);
  font-size: var(--brand-body-large);
  line-height: 1.55;
}















body.brand-demo .page-content {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

body.brand-demo .form-container {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  padding: clamp(30px, 3vw, 40px);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-canvas-soft);
}

body.brand-demo .form-heading {
  margin: 0 0 14px;
  color: var(--brand-ink);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}




body.brand-demo .form-label {
  color: var(--brand-copy);
  font-size: 12px;
  font-weight: 500;
}

body.brand-demo .form-input {
  min-height: 50px;
  padding: 13px 14px;
  border-color: var(--brand-line-strong);
  border-radius: var(--brand-radius);
  background: var(--brand-canvas);
  color: var(--brand-ink);
  font-size: 14px;
  box-shadow: none;
}

body.brand-demo .form-input:focus {
  border-color: rgba(24, 24, 27, 0.34);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

body.brand-demo .form-submit {
  min-height: 50px;
  border-radius: var(--brand-radius);
  background: var(--brand-dark);
  font-size: 14px;
  font-weight: 500;
}

body.brand-demo :where(.form-row, #demo-form > .form-group, .form-submit) {
  animation: none;
}




body.brand-get-started .step-card h3 { font-size: 20px; }
body.brand-get-started .step-card p { color: var(--brand-copy); }
body.brand-get-started .tutorials-grid { margin-inline: auto; gap: 16px; }
body.brand-get-started .tutorial-card,
body.brand-get-started .concept-card,
body.brand-get-started .docs-card {
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-canvas-soft);
  box-shadow: none;
}
body.brand-get-started .tutorial-card:hover,
body.brand-get-started .concept-card:hover,
body.brand-get-started .docs-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line-strong);
  box-shadow: 0 18px 42px rgba(18, 18, 20, 0.06);
}
body.brand-get-started .concept-icon,
body.brand-get-started .tutorial-play { border-radius: var(--brand-radius); }

















/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */

@media (max-width: 1020px) {
  body.brand-page .nav-links { display: none; }
  body.brand-directory .page-layout { grid-template-columns: 1fr; gap: 48px; }
  body.brand-directory .page-sidebar {
    position: static;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--brand-line);
  }
  body.brand-directory .page-title,
  body.brand-directory .page-subtitle { max-width: 22ch; }
  body.brand-directory .sidebar-cta { max-width: 420px; }
  body.brand-changelog .page-layout { gap: 34px; }
  body.brand-changelog .page-sidebar { padding-bottom: 30px; }
  body.brand-changelog .page-subtitle { max-width: 34ch; }

  body.brand-resources .page-title { max-width: 14ch; }
  body.brand-resources .resources-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
    gap: 48px;
    padding-bottom: 52px;
  }
  body.brand-resources .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  body.brand-get-started .section-header { grid-template-columns: 1fr; gap: 28px; }
  body.brand-get-started .section-header .section-label { margin-bottom: 0; }









  body.brand-article .content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body.brand-article .content-sidebar {
    display: block;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--brand-line);
    overflow: hidden;
  }
  body.brand-article .content-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    max-height: none;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
  }
  body.brand-article .content-nav::-webkit-scrollbar { display: none; }
  body.brand-article .content-nav-label { display: none; }
  body.brand-article .content-nav a:not(.content-back) {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 0;
    border-left: 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
  }
  body.brand-article .content-nav a:not(.content-back).active {
    border-bottom-color: var(--brand-orange);
  }
  body.brand-article .content-main {
    width: min(100%, var(--brand-reading));
    max-width: var(--brand-reading);
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  body.brand-changelog .page-title { font-size: 36px; }
  body.brand-changelog .changelog-entry {
    grid-template-columns: 1fr;
    row-gap: 17px;
    margin-bottom: 34px;
    padding-bottom: 34px;
  }
  body.brand-changelog .changelog-entry-meta {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
  body.brand-changelog .changelog-entry > h3,
  body.brand-changelog .changelog-entry > p,
  body.brand-changelog .changelog-entry > ul { grid-column: 1; }
  body.brand-changelog .changelog-entry h3 { font-size: 24px; }
  body.brand-changelog .changelog-entry p { font-size: 15px; }
}

@media (max-width: 768px) {
  body.brand-article .content-sidebar { display: none; }
}

@media (max-width: 768px) {
  body.brand-page .nav-inner { padding-inline: 20px; }
  body.brand-page .nav-right .btn-ghost { display: none; }
  body.brand-page .nav-right .btn { min-height: 36px; padding-inline: 13px; }

  body.brand-resources .page-layout { padding-top: 64px; }
  body.brand-resources .resources-head {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 40px;
  }
  body.brand-resources .resources-head-copy .section-label { margin-bottom: 20px; }
  body.brand-resources .page-title {
    max-width: 14ch;
    font-size: clamp(38px, 10vw, 44px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }
  body.brand-resources .page-subtitle { max-width: 38ch; }
  body.brand-resources .resources-utility { margin-top: 18px; }
  body.brand-resources .resources-toolbar { margin-bottom: 32px; }
  body.brand-resources .resources-studio-link { display: none; }
  body.brand-resources .page-tabs {
    width: 100%;
    gap: 22px;
  }
  body.brand-resources .page-tab { min-height: 50px; }
  body.brand-resources .card-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  body.brand-resources .card.is-featured {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding-bottom: 36px;
  }
  body.brand-resources .card.is-featured .card-image { aspect-ratio: 16 / 10; }
  body.brand-resources .card.is-featured .card-body { padding-top: 18px; }
  body.brand-resources .card.is-featured h2 { font-size: clamp(26px, 8vw, 34px); }
  body.brand-directory .page-layout { gap: 32px; padding-top: 56px; }
  body.brand-directory .page-sidebar { padding-bottom: 28px; }
  body.brand-directory .page-tabs { width: 100%; }
  body.brand-resources .page-layout { padding-top: 64px; }
  body.brand-resources .resources-head { padding-bottom: 40px; }

  body.brand-article .content-layout { padding-top: 56px; }
  body.brand-article .content-title { font-size: clamp(36px, 10vw, 44px); }
  body.brand-article .content-subtitle { font-size: 18px; }
  body.brand-article .prose > p { font-size: 17px; }
  body.brand-article .cta-block { padding: 32px 24px; }

  body.brand-get-started .hero { padding-top: 64px; }
  body.brand-get-started .hero h1 {
    font-size: clamp(38px, 10vw, 44px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }







  body.brand-get-started .steps-grid { grid-template-columns: 1fr; }
  body.brand-get-started .step-card,
  body.brand-get-started .step-card + .step-card,
  body.brand-get-started .step-card:first-child,
  body.brand-get-started .step-card:last-child {
    border: 1px solid var(--brand-line);
    border-top: 0;
    border-radius: 0;
  }
  body.brand-get-started .step-card:first-child {
    border-top: 1px solid var(--brand-line);
    border-radius: var(--brand-radius) var(--brand-radius) 0 0;
  }
  body.brand-get-started .step-card:last-child { border-radius: 0 0 var(--brand-radius) var(--brand-radius); }
  body.brand-get-started .step-number { margin-bottom: 28px; }


}

@media (max-width: 900px) {
  body.brand-demo .page-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
  }
  body.brand-demo .page-sidebar {
    display: block;
    padding: 0;
  }
  body.brand-demo .page-content {
    display: flex;
    order: initial;
    width: 100%;
    padding: 0;
  }
  body.brand-demo .form-container {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 720px) {
  body.brand-demo .page-layout { padding-top: 52px; }
  body.brand-demo .page-title {
    font-size: clamp(38px, 10vw, 44px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }
  body.brand-demo .page-subtitle { font-size: 16px; }

  body.brand-demo .form-container { padding: 26px 20px; }
  body.brand-demo .form-heading { font-size: 24px; }
  body.brand-demo .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (min-width: 621px) and (max-width: 900px) {
  body.brand-resources .card-grid { grid-template-columns: 1fr; }
  body.brand-resources .card:not(.is-featured) {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
    gap: 24px;
    align-items: start;
  }
  body.brand-resources .card:not(.is-featured) .card-image {
    min-height: 190px;
    aspect-ratio: auto;
  }
  body.brand-resources .card:not(.is-featured) .card-body { padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  body.brand-page *,
  body.brand-page *::before,
  body.brand-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
