/* Product editorial refinement. Load after editorial-polish.css. */
[data-page="home"], [data-page="workflow"] {
  --global-header-size: 64px;
  --signature-ink: #1e1f23;
  --signature-muted: #62646d;
  --signature-paper: #f5f5f7;
  --signature-radius: 30px;
}

[data-page="home"] .site-header {
  background: rgba(255, 255, 255, .86);
  color: var(--signature-ink);
  border-color: rgba(29, 29, 31, .08);
}
[data-page="home"] .site-nav > a:not(.web-entry) { color: #51535b; }
[data-page="home"] .site-nav > a:not(.web-entry):hover,
[data-page="home"] .site-nav > a:not(.web-entry)[aria-current="page"] { color: #1e1f23; }
[data-page="home"] .site-nav .web-entry { color: #fff; }

/* A centered object and a single purpose, with a fully visible release status. */
[data-page="home"] .signature-hero {
  background: #fff;
  color: var(--signature-ink);
  text-align: center;
  padding: clamp(3.5rem, 6.2vw, 6rem) var(--page-gutter) 24px;
}
.signature-hero .hero-copy { width: 100%; max-width: 1040px; }
.signature-hero .product-name, .signature-eyebrow {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
  color: #4e5059;
}
.signature-headline, .signature-hero .hero-headline {
  max-width: 1040px;
  margin: 19px auto 0;
  font-size: clamp(3.75rem, 5.7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 600;
  color: var(--signature-ink);
  text-wrap: balance;
}
.signature-headline > span, .signature-hero .hero-headline > span { display: block; }
.signature-hero .light-word { color: inherit; }
.signature-description, .signature-hero .hero-description {
  max-width: 680px;
  margin: 25px auto 0;
  color: var(--signature-muted);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.signature-actions, .signature-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  margin-top: 27px;
}
.signature-actions .button, .signature-hero .hero-actions .button {
  min-height: 50px;
  padding: 13px 26px;
  font-size: 1.0625rem;
}
.signature-hero .text-link { color: #0875e1; }
.signature-status, .signature-hero .hero-status, .signature-hero .hero-note {
  width: 100%;
  max-width: 700px;
  margin: 18px auto 0;
  font-size: .875rem;
  line-height: 1.7;
  color: #656770;
}
.signature-hero .brand-scene {
  width: min(500px, 100%);
  height: auto;
  aspect-ratio: 1.12 / 1;
  margin: 26px auto 0;
}
.signature-hero .brand-canvas, .signature-hero .brand-poster {
  transform: none;
  animation: none;
}
.signature-hero .brand-motion-toggle {
  right: 0;
  bottom: 5px;
  color: #62656d;
  background: #f2f2f5;
  border: 0;
}
.signature-hero .brand-motion-toggle:hover { background: #e6e6eb; color: #1e1f23; }

/* The interface has its own wide canvas instead of another small feature card. */
.signature-showcase {
  width: calc(100% - var(--visual-gutter) - var(--visual-gutter));
  max-width: 1340px;
  margin-inline: auto;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}
.signature-showcase .studio-window {
  border: 1px solid #d2d4dc;
  border-radius: var(--signature-radius);
  box-shadow: 0 22px 70px -42px rgba(34, 44, 60, .42), 0 1px 4px rgba(34, 44, 60, .04);
}
.signature-showcase .studio-titlebar { background: #f7f7f9; }
.signature-showcase .studio-main { padding: 36px 40px 30px; }
.signature-showcase figcaption {
  max-width: 800px;
  margin: 23px auto 0;
  text-align: center;
  font-size: .875rem;
  line-height: 1.7;
  color: #656770;
}
.signature-showcase .stage-description { line-height: 1.7; }

/* A native horizontal gallery; the next card remains visible on a narrow screen. */
.highlight-section { background: #fff; padding-block: 68px 94px; }
.highlight-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.highlight-heading h2 { font-size: clamp(2.125rem, 4vw, 3.5rem); }
.highlight-heading > p {
  max-width: 520px;
  color: var(--signature-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.highlight-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(340px, 31vw, 456px);
  gap: 24px;
  width: 100%;
  padding-block: 8px 28px;
  padding-inline: max(var(--page-gutter), calc((100% - var(--content)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--page-gutter), calc((100% - var(--content)) / 2));
  scrollbar-width: thin;
  scrollbar-color: #c6c7cd transparent;
}
.highlight-gallery:focus-visible { outline-offset: -4px; }
.highlight-card {
  min-width: 0;
  min-height: 438px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 39px 36px 34px;
  background: var(--signature-paper);
  border: 0;
  border-radius: var(--signature-radius);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.highlight-card .highlight-index {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #70727b;
}
.highlight-title, .highlight-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.035em;
  margin-top: 19px;
  color: var(--signature-ink);
  text-wrap: balance;
}
.highlight-copy, .highlight-card > p:not(.highlight-index) {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--signature-muted);
  margin-top: 18px;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.highlight-visual {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 34px;
}
.highlight-visual > svg, .highlight-visual > img { width: 100%; height: auto; }
.highlight-visual figcaption, .highlight-caption {
  font-size: .8125rem;
  line-height: 1.6;
  color: #6c6e76;
  margin-top: 15px;
}
.highlight-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.highlight-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 12px;
  background: #fff;
  color: #505968;
  font-size: .8125rem;
  line-height: 1.5;
}
.highlight-file, .highlight-check {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff;
  font-size: .875rem;
  line-height: 1.55;
  color: #565d69;
}
.highlight-file + .highlight-file, .highlight-check + .highlight-check { margin-top: 9px; }
.highlight-file svg, .highlight-check svg { flex-shrink: 0; color: #3480bd; }
.highlight-file > span, .highlight-check > span { min-width: 0; overflow-wrap: anywhere; }
.highlight-dialog { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.highlight-dialog .bubble-user, .highlight-dialog .bubble-reply {
  max-width: 95%;
  padding: 13px 15px;
  border-radius: 16px;
  font-size: .875rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.highlight-dialog .bubble-user { align-self: flex-end; background: #e4edf9; color: #3c5879; }
.highlight-dialog .bubble-reply { align-self: flex-start; background: #fff; color: #565d69; }
.highlight-dialog > span { font-size: .75rem; line-height: 1.6; color: #71747c; }
.highlight-team .team-lead {
  position: relative;
  display: block;
  max-width: 184px;
  margin-inline: auto;
  padding: 12px 17px;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  color: #3c5879;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.55;
}
.highlight-team .team-lead::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 19px;
  background: #cbd3df;
}
.highlight-team .team-members {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}
.highlight-team .team-members::before {
  content: "";
  position: absolute;
  left: calc((100% - 16px) / 6);
  right: calc((100% - 16px) / 6);
  top: -13px;
  height: 1px;
  background: #cbd3df;
}
.highlight-team .team-members > span {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 11px 7px;
  border-radius: 11px;
  background: #fff;
  color: #566174;
  font-size: .8125rem;
  line-height: 1.6;
  text-align: center;
}
.highlight-team .team-members > span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 1px;
  height: 13px;
  background: #cbd3df;
}
.highlight-files .highlight-file { min-height: 47px; }
.highlight-delivery .usage-legends { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.usage-legends > span {
  padding: 7px 10px;
  border-radius: 9px;
  background: #fff;
  color: #626670;
  font-size: .75rem;
  line-height: 1.5;
}
.usage-legends > span:first-child { background: #e5effb; color: #3c5879; }
.usage-legends > span:nth-child(2) { background: #fbf0df; color: #7d633f; }
.highlight-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 13px; }
.highlight-controls [data-highlight-status] { font-size: .8125rem; line-height: 1.5; color: #686b74; }
.highlight-controls button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ededf1;
  color: #585d68;
}
.highlight-controls button:hover:not(:disabled) { background: #dfe1e7; color: #20242d; }
.highlight-controls button:disabled { opacity: .45; }
.highlight-controls button svg { width: 18px; height: 18px; }

/* The detail page keeps its chapter navigation nearby without crowding the story. */
[data-page="workflow"] .product-nav {
  position: sticky;
  top: var(--global-header-size);
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(22px);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  border-bottom: 1px solid rgba(29, 29, 31, .1);
}
.product-nav-shell {
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--content);
  min-height: 62px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.product-nav-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #25262c;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.product-nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.product-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #64666f;
  font-size: .8125rem;
  line-height: 1.5;
  white-space: nowrap;
}
.product-nav-links a:hover, .product-nav-links a:focus-visible { color: #0875e1; }
.product-nav-action {
  flex-shrink: 0;
  min-height: 44px;
  font-size: .875rem;
  padding: 10px 18px;
}
[data-page="workflow"] main section[id],
[data-page="workflow"] .detail-steps article[id] { scroll-margin-top: calc(1rem + 48px); }
[data-page="workflow"] .page-hero {
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
[data-page="workflow"] .page-hero .hero-headline {
  font-size: clamp(3.75rem, 5.7vw, 5rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
[data-page="workflow"] .workflow-showcase { padding-bottom: 38px; }
[data-page="workflow"] .modes-chapter { padding-top: 76px; }
[data-page="workflow"] .mode-grid { gap: 24px; margin-top: 43px; }
[data-page="workflow"] .mode-card {
  padding: 42px;
  background: #f5f5f7;
  color: var(--signature-ink);
  border-radius: var(--signature-radius);
}
[data-page="workflow"] .mode-card h3 { font-size: 1.875rem; line-height: 1.3; }
[data-page="workflow"] .pro-mode .mode-label,
[data-page="workflow"] .pro-mode > p { color: var(--signature-muted); }
[data-page="workflow"] .mode-example { padding: 25px; background: #fff; }
[data-page="workflow"] .pro-mode .mode-example > span,
[data-page="workflow"] .pro-mode .mode-example p { color: var(--signature-muted); }
[data-page="workflow"] .detail-steps { margin-top: 46px; }
[data-page="workflow"] .detail-steps > article { padding-block: 64px; }
[data-page="workflow"] .detail-object { border-radius: 24px; padding: 33px; }
[data-page="workflow"] .context-window,
[data-page="workflow"] .usage-preview { border-radius: var(--signature-radius); }
[data-page="workflow"] .usage-chapter,
[data-page="workflow"] .context-chapter { background: #f5f5f7; }
[data-page="workflow"] .model-config-grid { gap: 38px; }

@media (max-width: 1100px) {
  .product-nav-shell { gap: 18px; }
  .product-nav-links { gap: 15px; }
  .product-nav-links a { font-size: .75rem; }
  .product-nav-action { padding-inline: 14px; font-size: .8125rem; }
}

@media (max-width: 960px) {
  [data-page="home"], [data-page="workflow"] { --global-header-size: 60px; }
  [data-page="home"] .site-nav { background: #fff; border-color: #e3e3e8; }
  [data-page="home"] .site-nav .web-entry { color: #0875e1; }
  .signature-headline, .signature-hero .hero-headline { font-size: clamp(3rem, 7vw, 4rem); }
  .signature-hero .brand-scene { width: min(410px, 100%); }
  .signature-showcase .studio-main { padding: 30px 28px; }
  .highlight-section { padding-block: 52px 72px; }
  .highlight-gallery { grid-auto-columns: 340px; gap: 20px; }
  .highlight-card { min-height: 420px; padding: 32px; }
  .product-nav-shell { flex-wrap: wrap; padding-block: 5px 0; gap: 0 18px; }
  .product-nav-action { margin-left: auto; font-size: .875rem; }
  .product-nav-links {
    order: 3;
    flex-basis: 100%;
    margin: 1px 0 0;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .product-nav-links a { flex-shrink: 0; font-size: .8125rem; }
  [data-page="workflow"] main section[id],
  [data-page="workflow"] .detail-steps article[id] { scroll-margin-top: calc(3.25rem + 52px); }
  [data-page="workflow"] .page-hero .hero-headline { font-size: clamp(3rem, 7vw, 4rem); }
  [data-page="workflow"] .mode-card { padding: 34px; }
  [data-page="workflow"] .detail-steps > article { padding-block: 48px; }
  [data-page="workflow"] .detail-object { padding: 28px; }
}

@media (max-width: 600px) {
  [data-page="home"], [data-page="workflow"] { --global-header-size: 56px; --signature-radius: 26px; }
  [data-page="home"] .signature-hero { padding: 38px 20px 18px; }
  .signature-hero .product-name, .signature-eyebrow { font-size: 1.0625rem; }
  .signature-headline, .signature-hero .hero-headline {
    font-size: clamp(2.25rem, 9.8vw, 2.625rem);
    margin-top: 15px;
    line-height: 1.16;
    letter-spacing: -.04em;
  }
  .signature-description, .signature-hero .hero-description {
    font-size: 1.0625rem;
    line-height: 1.65;
    margin-top: 21px;
  }
  .signature-actions, .signature-hero .hero-actions { gap: 4px 18px; margin-top: 22px; }
  .signature-actions .button, .signature-hero .hero-actions .button { font-size: 1rem; min-height: 48px; }
  .signature-status, .signature-hero .hero-status, .signature-hero .hero-note { margin-top: 15px; }
  .signature-hero .brand-scene { width: min(280px, 100%); margin-top: 18px; }
  .signature-showcase { padding-bottom: 53px; }
  .signature-showcase .studio-window { border-radius: 22px; }
  .signature-showcase .studio-main { padding: 25px 20px; }
  .signature-showcase figcaption { font-size: .8125rem; margin-top: 20px; padding-inline: 4px; }
  .highlight-section { padding-block: 35px 57px; }
  .highlight-heading { gap: 14px; margin-bottom: 23px; }
  .highlight-heading h2 { font-size: 2rem; }
  .highlight-heading > p { font-size: 1rem; line-height: 1.7; }
  .highlight-gallery {
    grid-auto-columns: calc(100% - 24px);
    gap: 16px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
    padding-bottom: 22px;
  }
  .highlight-card { min-height: 410px; padding: 30px 27px 27px; }
  .highlight-title, .highlight-card h3 { font-size: 1.5rem; margin-top: 15px; }
  .highlight-copy, .highlight-card > p:not(.highlight-index) { font-size: 1rem; line-height: 1.7; margin-top: 15px; }
  .highlight-visual { padding-top: 28px; }
  .highlight-file, .highlight-check { padding: 12px 13px; font-size: .8125rem; }
  .product-nav-shell { gap: 0 12px; }
  .product-nav-title { font-size: 1.0625rem; }
  .product-nav-action { font-size: .8125rem; padding: 10px 14px; }
  .product-nav-links { gap: 23px; }
  [data-page="workflow"] .page-hero { padding-top: 44px; padding-bottom: 36px; }
  [data-page="workflow"] .page-hero .hero-headline { font-size: clamp(2.25rem, 9.8vw, 2.625rem); line-height: 1.17; }
  [data-page="workflow"] .modes-chapter { padding-top: 45px; }
  [data-page="workflow"] .mode-grid { gap: 17px; margin-top: 31px; }
  [data-page="workflow"] .mode-card { padding: 31px 25px; }
  [data-page="workflow"] .mode-card h3 { font-size: 1.625rem; }
  [data-page="workflow"] .mode-example { padding: 21px; }
  [data-page="workflow"] .detail-steps { margin-top: 31px; }
  [data-page="workflow"] .detail-steps > article { padding-block: 34px; }
  [data-page="workflow"] .detail-object { padding: 25px 22px; border-radius: 22px; }
  [data-page="workflow"] .model-config-grid { gap: 27px; }
  [data-page="home"] .button, [data-page="workflow"] .button,
  [data-page="home"] .text-link, [data-page="workflow"] .text-link { min-height: 44px; }
}

@media (max-width: 360px) {
  .signature-hero .brand-scene { width: min(252px, 100%); }
  .signature-actions, .signature-hero .hero-actions { flex-direction: column; }
  .highlight-card { padding-inline: 24px; }
  .product-nav-title { font-size: 1rem; }
  .product-nav-action { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .highlight-gallery { scroll-behavior: auto; scroll-snap-type: x proximity; }
  .signature-hero .brand-canvas, .signature-hero .brand-poster { transform: none; animation: none; }
}

/* Fit the brand object and primary decision into the first viewport. */
[data-page="home"] .signature-hero {padding-top:30px;padding-bottom:34px;}
.signature-hero .product-name,.signature-hero .eyebrow {display:inline-block;vertical-align:baseline;}
.signature-hero .eyebrow {margin-left:10px;font-size:1.0625rem;color:#62646d;}
.signature-hero .brand-scene {width:250px;height:174px;aspect-ratio:auto;margin:8px auto 10px;}
.signature-hero .signature-headline {margin-top:8px;}
@media(max-width:760px){.signature-hero .brand-scene{width:208px;height:145px;margin-top:5px;}.signature-hero .eyebrow{font-size:.9375rem;}.signature-hero .signature-description{max-width:290px;}}

@media(min-width:1024px){.highlight-gallery{grid-template-columns:none;grid-auto-columns:clamp(360px,34vw,456px);}}

.highlight-controls>div{display:flex;align-items:center;gap:12px;}
[data-highlight-prev] svg{transform:rotate(180deg);}
