/* Studio product page */

:root {
  --studio-max: 1000px;
  --studio-padding-desktop: max(2.7rem, calc((100vw - var(--studio-max)) / 2));
  --studio-padding-mid: 2.7rem;
  --studio-padding-mobile: 0.9rem;
}

body:has(.studio-page) #main {
  max-width: none;
  padding-top: 0;
  animation: fadeIn 0.3s ease-in-out;
}

body:has(.studio-page) #main article.content {
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.studio-page) #header .navbar-logo a,
body:has(.studio-page) #header .navbar-logo a:link,
body:has(.studio-page) #header .navbar-logo a:visited,
body:has(.studio-page) #header .navbar-logo a:active,
body:has(.studio-page) #header .navbar-logo a:hover {
  background: linear-gradient(90deg, #090a09, #4a4d4a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

#main.content article.studio-page div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.studio-hero-section {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0 0 6rem;
}

.studio-hero {
  width: 100%;
  padding: 1rem var(--studio-padding-desktop) 0.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.studio-network-figure {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem !important;
  display: block;
  position: relative;
  background: transparent;
}

#main.content article.studio-page .studio-network-figure {
  margin: 0 auto 3rem !important;
}

.studio-network-image {
  width: 100%;
  height: auto;
  max-height: min(450px, 50vh);
  min-height: 200px;
  object-fit: contain;
  display: block;
}

.studio-old-home-figure {
  height: 360px;
  max-width: 720px;
  margin-bottom: 5.5rem !important;
  overflow: hidden;
  pointer-events: none;
}

#main.content article.studio-page .studio-old-home-figure {
  margin-bottom: 5.5rem !important;
}

.studio-old-home-scene {
  width: min(1200px, 100vw);
  height: 700px;
  margin-left: 50%;
  position: relative;
  top: -120px;
  overflow: hidden;
  background: transparent;
  transform: translateX(-50%);
}

.studio-old-home-unicorn {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.studio-unicorn-scene {
  width: 100%;
  height: 100%;
}

.studio-old-home-fade,
.studio-old-home-mark,
.studio-old-home-mid {
  position: absolute;
  display: none;
  pointer-events: none;
}

.studio-old-home-fade-top,
.studio-old-home-fade-bottom {
  left: 0;
  width: 100%;
  height: 10vh;
}

.studio-old-home-fade-top {
  top: 0;
  background: transparent;
}

.studio-old-home-fade-bottom {
  bottom: 0;
  background: transparent;
}

.studio-old-home-fade-left,
.studio-old-home-fade-right {
  top: 0;
  width: 5%;
  height: 100%;
}

.studio-old-home-fade-left {
  left: 0;
  background: transparent;
}

.studio-old-home-fade-right {
  right: 0;
  background: transparent;
}

.studio-old-home-mark {
  width: 16px;
  height: 16px;
}

.studio-old-home-mark::before,
.studio-old-home-mark::after,
.studio-old-home-mid::before,
.studio-old-home-mid::after {
  content: "";
  position: absolute;
  background: rgb(25, 25, 25);
}

.studio-old-home-mark::before {
  top: 0;
  left: 0;
  width: 1.333px;
  height: 16px;
}

.studio-old-home-mark::after {
  top: 0;
  left: 0;
  width: 16px;
  height: 1.333px;
}

.studio-old-home-mark-tl {
  top: 24px;
  left: 24px;
}

.studio-old-home-mark-tr {
  top: 24px;
  right: 24px;
  transform: rotate(90deg);
}

.studio-old-home-mark-bl {
  bottom: 24px;
  left: 24px;
  transform: rotate(-90deg);
}

.studio-old-home-mark-br {
  right: 24px;
  bottom: 24px;
  transform: rotate(180deg);
}

.studio-old-home-mid {
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
}

.studio-old-home-mid::before {
  top: 0;
  left: 0;
  width: 1.25px;
  height: 16px;
}

.studio-old-home-mid::after {
  top: 7.385px;
  left: 0;
  width: 16px;
  height: 1px;
}

.studio-old-home-mid-left {
  left: 24px;
}

.studio-old-home-mid-right {
  right: 24px;
  transform: translateY(-50%) rotate(180deg);
}

.studio-system-plate {
  width: min(720px, 100%);
  margin: 0 auto 3rem !important;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px),
    #fff;
  background-size: 36px 36px;
  padding: 14px;
  color: var(--fg);
}

#main.content article.studio-page .studio-system-plate {
  margin: 0 auto 3rem !important;
}

.studio-plate-header,
.studio-plate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-plate-header {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 13%, transparent);
  padding-bottom: 10px;
}

.studio-plate-footer {
  border-top: 1px solid color-mix(in srgb, var(--fg) 13%, transparent);
  padding-top: 10px;
}

.studio-plate-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px 0;
}

.studio-plate-grid::before,
.studio-plate-grid::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 112px);
  height: 1px;
  background: color-mix(in srgb, var(--fg) 20%, transparent);
}

.studio-plate-grid::before {
  left: 23%;
}

.studio-plate-grid::after {
  right: 23%;
}

.studio-rail {
  display: grid;
  gap: 10px;
  align-content: center;
}

.studio-node {
  min-height: 64px;
  border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  background: color-mix(in srgb, #fff 94%, var(--fg) 6%);
  padding: 13px 14px;
  text-align: left;
}

.studio-node span,
.studio-local-grid span,
.studio-flow-list span {
  display: block;
  font-family: var(--font-sans);
  color: var(--fg5);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-node strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--fg1);
}

.studio-node-major {
  background: #fff;
  border-color: color-mix(in srgb, var(--fg) 24%, transparent);
}

.studio-command-spine {
  position: relative;
  z-index: 1;
  min-height: 228px;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  background: #fff;
  padding: 19px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.studio-spine-title {
  font-family: 'Chakra Petch', var(--font-sans);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.studio-spine-subtitle {
  max-width: 13rem;
  margin-top: -0.35rem;
  font-family: var(--font-sans);
  color: var(--fg4);
  font-size: 12px;
  line-height: 1.35;
}

.studio-pulse-stack {
  width: 100%;
  display: grid;
  gap: 8px;
}

.studio-pulse-stack span {
  display: block;
  height: 7px;
  background: linear-gradient(90deg, #0b0b0b, #858585 62%, #f2f2f2);
}

.studio-pulse-stack span:nth-child(2) {
  width: 76%;
}

.studio-pulse-stack span:nth-child(3) {
  width: 92%;
}

.studio-pulse-stack span:nth-child(4) {
  width: 64%;
}

.studio-pulse-stack span:nth-child(5) {
  width: 84%;
}

.studio-spine-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg4);
}

.studio-cover-caption,
.content .studio-cover-caption {
  margin: 0.35rem 0 1.35rem !important;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg5);
  text-align: center;
}

#main.content article.content h1.studio-title,
.studio-title {
  width: auto !important;
  max-width: none !important;
  margin: 0 auto 1.2rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 400 !important;
  font-size: clamp(1.8em, 8vw, 2.3em) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  color: var(--fg);
  white-space: nowrap;
}

.studio-title .studio-rotating-line {
  display: inline;
  white-space: nowrap;
}

.studio-title .studio-rotate {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--fg);
  transition: none;
}

.studio-title .studio-rotate::after {
  content: none;
}

.studio-subtitle {
  width: auto;
  max-width: none;
  margin: 0.4rem auto 2rem !important;
  font-family: var(--font-sans);
  font-size: 1rem !important;
  line-height: 1.58;
  color: var(--fg2);
  text-align: center;
  white-space: nowrap;
}

.studio-br-mobile {
  display: none;
}

.studio-cta-row {
  display: flex;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
}

/* Hero CTA buttons at 16px (Download for macOS / Docs / Request Demo) */
.studio-cta-row .btn {
  font-size: 16px;
}

.studio-cta-row .btn.primary {
  margin-right: 1.4em;
}

.btn-with-chevron {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-with-chevron svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease-in-out;
}

.btn-with-chevron svg path {
  fill: currentColor;
  opacity: 0.4;
  transition: opacity 0.2s ease-in-out;
}

.btn-with-chevron:hover svg {
  transform: translateX(3px);
}

.btn-with-chevron:hover svg path {
  opacity: 0.7;
}

.studio-section {
  width: 100vw;            /* full-bleed like the hero, so content fills 1000px (matches Tinker) */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: var(--studio-padding-desktop);
  padding-right: var(--studio-padding-desktop);
  margin-top: 2.5rem !important;
  box-sizing: border-box;
}

.studio-section + .studio-section {
  margin-top: 6.5rem !important;
}

.studio-h2 {
  margin: 0 0 1.5rem !important;
  font-family: var(--font-sans);
  font-size: 1.45rem !important;
  line-height: 1.4;
  font-weight: 400 !important;
  font-style: normal !important;
  color: var(--fg);
  text-align: center;
}

.studio-h2-left {
  text-align: left;
}

.studio-h2-subtitle {
  max-width: none;  /* sized by content, like hero subtitle */
  margin: -0.7rem auto 2rem !important;
  font-family: var(--font-serif);  /* match hero subtitle */
  color: #090a09;
  font-size: clamp(1rem, 3.2vw, 1.125rem);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;  /* break only at the manual <br>, like the subtitle */
}

.studio-section:has(.studio-faq) .studio-h2 {
  margin-bottom: 1rem !important;
}

.studio-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.94rem;
}


.studio-feature-card {
  text-align: left;
}

.studio-feature-heading {
  min-height: 24px;
  margin-bottom: 0.15em !important;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.125rem;
}

/* 8px gap under the card title -> description, matching Tinker
   (specificity beats the broad article.studio-page div { margin: 0 } override) */
#main.content article.studio-page .studio-feature-heading {
  margin-bottom: 8px !important;
}

.studio-feature-mark {
  width: 0.4em;
  height: 0.67em;
  flex: 0 0 0.4em;
  display: block;
  background: #090a09;
  transform: translateY(-1px);
}

.studio-feature-card h3 {
  margin: 0 !important;
  font-family: var(--font-sans);
  font-size: 1.125rem !important;
  line-height: 24px;
  font-style: normal !important;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--fg);
}

.studio-flow-list p,
.studio-local-grid p,
.studio-faq p {
  margin: 0 !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg3);
}

.studio-feature-card p {
  margin: 0 !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg3);
}

.studio-runtimes-section {
  overflow: hidden;
}

.studio-runtimes-track {
  max-width: 900px;
  margin: 0 auto !important;
  overflow: visible;
}

.studio-runtimes-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.studio-runtime-badge {
  width: auto;
  height: 28px;
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.studio-runtime-logo {
  display: block;
  width: auto !important;
  height: var(--logo-h, 24px) !important;
  max-width: none !important;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: translate(var(--logo-x, 0), var(--logo-y, 0));
}

.logo-cursor,
.logo-gemini,
.logo-opencode,
.logo-cohere,
.logo-zed {
  --logo-h: 24px;
}

.logo-openai {
  --logo-h: 23px;
}

.logo-nvidia {
  --logo-h: 22px;
  --logo-x: 1px;
}

.logo-claude {
  --logo-h: 20px;
}

.logo-mistral {
  --logo-h: 21px;
}

.logo-deepseek {
  --logo-h: 21px;
}

.logo-qwen {
  --logo-h: 23px;
}

.logo-moonshot {
  --logo-h: 22px;
}

.logo-nous {
  --logo-h: 23px;
}

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

.studio-pricing-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid rgba(9, 10, 9, 0.1);   /* hairline, like the rest of the page */
  border-radius: 6px;
  background: transparent;
  box-sizing: border-box;
}

.studio-pricing-card-header {
  display: block;
  margin: 0;
}

.studio-pricing-eyebrow {
  margin: 0 0 0.5rem !important;
  font-family: var(--font-sans);
  font-size: 1rem !important;
  line-height: 1.2;
  font-weight: 500;
  color: #090a09 !important;
}

.studio-pricing-card h3 {
  margin: 0 0 0.6rem !important;
  font-family: var(--font-sans);
  font-size: 1.125rem !important;
  line-height: 1.25;
  font-style: normal !important;
  font-weight: 500;
  color: #090a09;
}

.studio-pricing-price {
  margin: 0 0 0.9rem !important;
  font-family: var(--font-sans);
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0;
}

.studio-pricing-description {
  min-height: 4.7em;       /* reserve 3 lines so both cards' CTAs align */
  max-width: 420px;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.55;
  color: #090a09 !important;
}

.studio-pricing-includes {
  margin: 0 0 0.9rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--font-sans);
  font-size: 1rem !important;
  line-height: 1.3;
  font-weight: 500;
  color: #090a09 !important;
}

.studio-pricing-list {
  display: grid;
  gap: 0.62rem;
  margin: 0 !important;
  padding: 0;
  list-style: none !important;
  list-style-type: none !important;
  margin-left: 0 !important;
}

.studio-pricing-list li {
  position: relative;
  margin: 0 !important;
  padding-left: 1.6rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #090a09;
  list-style: none !important;
  list-style-type: none !important;
}

.studio-pricing-list li::marker {
  content: "";
}

.studio-pricing-list li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 2px;
  width: 5px;
  height: 9px;
  border-right: 1.6px solid #090a09;
  border-bottom: 1.6px solid #090a09;
  border-radius: 0;
  background: none;
  transform: rotate(45deg);
}

.studio-pricing-cta {
  width: 100%;
  justify-content: center;
  margin: 1.25rem 0 1.15rem !important;
  min-height: 44px;
  border-radius: 999px;
}

.studio-pricing-card .studio-pricing-cta.btn.plain {
  display: flex;
  border: 0 !important;
  text-decoration: none;
}

.studio-split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 5rem;
  align-items: start;
}

.studio-body-large {
  max-width: 395px;
  margin: 0 !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg2);
}

.studio-flow-list {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}

.studio-flow-list div {
  display: grid;
  grid-template-columns: 42px minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  margin: 0 !important;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}

.studio-flow-list strong {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 500;
}

.studio-local-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: color-mix(in srgb, var(--fg) 3.5%, #fff);
}

.studio-local-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.studio-local-grid div {
  margin: 0 !important;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
}

.studio-local-grid strong {
  display: block;
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
}

.studio-faq {
  margin-top: 0 !important;
  display: block;
  width: 100% !important;
  max-width: 660px !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  background-color: #fff;
}

.studio-section .studio-faq {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.studio-faq-item {
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  inline-size: 100%;
  box-sizing: border-box;
  margin: 0 -0.5rem !important;
  padding: 0 0.5rem;
  position: relative;
  transition: background-color 0.2s ease-in-out;
}

.studio-faq-item:last-of-type {
  border-bottom: none;
}

.studio-faq-question {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.125rem;        /* match the primitive titles (Tinker: FAQ question = card title) */
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: var(--fg);
  user-select: none;
  width: 100%;
  margin: 0;
  transition: opacity 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.studio-faq-question::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--fg5);
  border-right: 1.5px solid var(--fg5);
  transform: translateY(-60%) rotate(45deg);   /* right-pointing chevron, like agenticstudio.dev */
  transition: transform 200ms ease, border-color 200ms ease;
  will-change: transform;
}

.studio-faq-toggle:checked + .studio-faq-question::after {
  transform: translateY(-40%) rotate(135deg);   /* rotates 90° to point down on expand */
}

.studio-faq-question:hover {
  color: var(--fg);
}

.studio-faq-question:hover::after {
  border-color: var(--fg3);
}

.studio-faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.studio-faq-answer {
  font-family: var(--font-serif);   /* serif body, like Tinker's FAQ answer */
  color: var(--fg2);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0;
  padding-right: 0 !important;
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: none;
  transform-origin: top;
  overflow-anchor: none;
  transition:
    grid-template-rows 240ms ease,
    opacity 200ms ease;
  will-change: grid-template-rows, opacity;
  width: 100%;
}

.studio-faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.studio-faq-toggle:checked ~ .studio-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
  padding: 0 0 0.9rem 0;
}

.studio-faq-answer p {
  margin: 0 0 1rem !important;
  padding: 0;
  max-width: none;
}

.studio-pricing-answer .studio-pricing-grid {
  margin-top: 1.2rem;
  gap: 1rem;
}

.studio-pricing-answer {
  width: 100%;            /* stay within the centered FAQ width (no broken break-out) */
  margin: 0;
  transform: none;
}

.studio-pricing-answer > p {
  max-width: 660px;
  margin-left: 0 !important;       /* left-align with the other answers (not centered) */
  margin-right: auto !important;
  font-size: 1rem;          /* match the other FAQ answers / "What you want to build…" */
  line-height: 1.5;
  color: #090a09;
}

.studio-pricing-answer .studio-pricing-description {
  font-size: 1rem;
}

.studio-final-cta {
  margin: 7rem auto 0 !important;
  padding: 0 var(--studio-padding-desktop);
  text-align: center;
}

.studio-final-cta h2 {
  margin: 0 auto 1.5rem !important;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.3rem) !important;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0;
}

.studio-final-cta p {
  margin: 1rem 0 0 !important;
  font-family: var(--font-sans);
  color: var(--fg4);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .studio-hero,
  .studio-section,
  .studio-final-cta {
    padding-left: var(--studio-padding-mid);
    padding-right: var(--studio-padding-mid);
  }

  .studio-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.4rem;
  }

  .studio-split-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .studio-body-large {
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  .studio-hero-section {
    min-height: auto;
    padding-top: 50px !important;
    padding-bottom: 4.4rem;
  }

  .studio-hero,
  .studio-section,
  .studio-final-cta {
    padding-left: var(--studio-padding-mobile);
    padding-right: var(--studio-padding-mobile);
  }

  .studio-system-plate {
    padding: 11px;
    margin-bottom: 1.75rem !important;
  }

  .studio-network-figure,
  #main.content article.studio-page .studio-network-figure {
    margin-bottom: 1.75rem !important;
  }

  .studio-old-home-figure {
    height: 320px;
  }

  .studio-old-home-mark-tl,
  .studio-old-home-mark-tr {
    top: 18px;
  }

  .studio-old-home-mark-bl,
  .studio-old-home-mark-br {
    bottom: 18px;
  }

  .studio-old-home-mark-tl,
  .studio-old-home-mark-bl,
  .studio-old-home-mid-left {
    left: 18px;
  }

  .studio-old-home-mark-tr,
  .studio-old-home-mark-br,
  .studio-old-home-mid-right {
    right: 18px;
  }

  #main.content article.content h1.studio-title,
  .studio-title,
  .studio-subtitle,
  .studio-h2-subtitle {
    white-space: normal;
  }

  .studio-br-mobile {
    display: inline;
  }

  #main.content article.studio-page .studio-system-plate {
    margin-bottom: 1.75rem !important;
  }

  .studio-plate-header,
  .studio-plate-footer {
    font-size: 9px;
    gap: 0.5rem;
  }

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

  .studio-plate-grid::before,
  .studio-plate-grid::after {
    display: none;
  }

  .studio-command-spine {
    order: -1;
    grid-column: 1 / -1;
    min-height: 168px;
    padding: 16px 14px;
  }

  .studio-rail {
    display: contents;
  }

  .studio-node {
    min-height: 80px;
    padding: 10px;
  }

  .studio-node span,
  .studio-local-grid span,
  .studio-flow-list span {
    font-size: 9px;
  }

  .studio-node strong {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .studio-spine-title {
    font-size: 24px;
  }

  .studio-pulse-stack {
    gap: 7px;
  }

  .studio-cover-caption,
  .content .studio-cover-caption {
    margin-bottom: 1.4rem !important;
  }

  #main.content article.content h1.studio-title,
  .studio-title {
    font-size: clamp(1rem, 5vw, 2.3em) !important;
  }

  .studio-subtitle {
    font-size: clamp(0.72rem, 3.05vw, 1rem) !important;
  }

  .studio-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .studio-cta-row .btn:first-child {
    flex: 0 0 auto;
    order: 1;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 44px;
  }

  /* Force a line break after Download so Docs + Request Demo share the next row */
  .studio-cta-row::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 2;
  }

  .studio-cta-row .btn:not(:first-child) {
    flex: 0 0 auto;
    order: 3;
  }

  .studio-section {
    margin-top: 2.5rem !important;
  }

  .studio-features,
  .studio-local-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .studio-runtimes-inner {
    gap: 0.65rem;
  }

  /* Two centered rows: first 7 icons (ending NVIDIA) on row 1, the rest on row 2 */
  .studio-runtime-badge:nth-child(-n+7) {
    order: 1;
  }

  .studio-runtimes-inner::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 2;
  }

  .studio-runtime-badge:nth-child(n+8) {
    order: 3;
  }

  .studio-pricing-answer {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .studio-pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .studio-pricing-card {
    min-height: 0;
  }

  .studio-runtime-badge {
    min-height: 0;
    padding: 0;
  }

  .studio-flow-list div {
    grid-template-columns: 36px 1fr;
  }

  .studio-flow-list p {
    grid-column: 2;
  }

  .studio-local-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .studio-final-cta {
    margin-top: 5rem !important;
  }
}

@media (min-width: 768px) {
  .studio-network-image {
    min-height: 360px;
  }
}

/* ============================================================
   STUDIO PAGE RE-TUNE — one coherent type + color system
   Colors:  #090a09 = primary (titles, questions, content)
            #6b6866 = secondary (taglines, descriptions, captions)
   Weights: 500 = titles/labels   400 = body
   ============================================================ */

/* Hero tagline — one step above body, secondary grey */
.studio-subtitle {
  font-size: clamp(1rem, 3.2vw, 1.125rem) !important;  /* up to 18px */
  line-height: 1.5 !important;
  color: #090a09 !important;  /* match home body text */
}

/* Card titles — same size as body but heavier so they read as labels */
.studio-feature-card h3 {
  font-weight: 400 !important;
  color: #090a09 !important;
  line-height: 1 !important;
}
.studio-feature-card p {
  color: #090a09 !important;  /* match home body text */
}

/* FAQ — question is the label (heavier, dark), answer is supporting (grey) */
.studio-faq-question {
  font-weight: 400 !important;
  color: #090a09 !important;
}
.studio-faq-answer {
  color: #090a09 !important;   /* match the primitive descriptions ("What you want to build…") */
}

/* Final CTA — large but not oversized; caption uses the one secondary grey */
.studio-final-cta h2 {
  font-size: clamp(2rem, 5vw, 2.75rem) !important;  /* down from 3.3rem */
}
.studio-final-cta p {
  color: #6b6866 !important;
}
