.granul-main { max-width: 1120px; padding-bottom: 48px; }
.granul-main .feature-section { width: 100%; margin: 28px 0; padding: clamp(22px, 4vw, 44px); scroll-margin-top: 24px; }
.granul-main .feature-section > h2 { font: 500 clamp(28px, 3vw, 36px)/1.2 Georgia, serif; letter-spacing: -.025em; margin: 0 0 26px; }
.granul-feature { padding: 26px 0; border-top: 1px solid #b59b6d44; }
.granul-feature:first-of-type { padding-top: 0; border-top: 0; }
.granul-feature:last-child { padding-bottom: 0; }
.granul-feature h3 { font-size: clamp(19px, 1.8vw, 22px); margin: 0 0 14px; line-height: 1.35; }
.granul-feature p { max-width: 76ch; margin: 12px 0 20px; color: #4c5647; font-size: 15px; line-height: 1.8; }
.granul-feature .granul-pictures { display: flex; flex-wrap: wrap; align-items: start; gap: 24px; margin-top: 24px; }
.granul-pictures figure { margin: 0; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.granul-pictures figure a { display: block; border-radius: 9px; overflow: hidden; }
.granul-pictures img { width: var(--image-width); max-width: 100%; height: auto; display: block; border-radius: 9px; }
.granul-pictures figcaption { font-size: 12px; line-height: 1.6; margin-top: 9px; color: #6b6556; }
.granul-controls { display: grid; grid-template-columns: minmax(130px, 180px) 1fr; gap: 12px 24px; max-width: 900px; padding: 16px 0; }
.granul-controls dt { font-weight: 650; }
.granul-controls dd { margin: 0; color: #5c5e51; }

#capture .capture-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  max-width: 400px;
  margin-top: 16px;
}
#capture .capture-controls > figure { max-width: 100%; }
#capture .capture-preview figure { width: 100%; max-width: 485px; }
#grain-controls .granul-controls {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 18px;
  margin-block: 12px 0;
  padding: 0;
}
@media (min-width: 900px) {
  .granul-main #capture { align-items: center; }
  #capture .capture-preview { justify-content: center; }
  .feature-document #grain-controls {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
  }
  #grain-controls .granul-pictures { grid-column: 1; grid-row: 1; }
  #grain-controls .feature-copy { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  #grain-controls .granul-controls dd { margin-bottom: 0; }
}

.granul-requirements dl { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.granul-requirements dt { font-weight: 650; }
.granul-requirements dd { margin: 0; line-height: 1.8; color: #5c5e51; }
.product-demo { margin: 24px 0 32px; padding: clamp(18px, 3vw, 30px); border: 1px solid #ac845b45; border-radius: var(--studio-radius); background: var(--studio-surface); box-shadow: var(--studio-shadow); }
.product-demo h2, .product-demo h3 { font: 500 clamp(25px, 3vw, 36px)/1.2 Georgia, serif; letter-spacing: -.025em; margin: 0 0 20px; }
.product-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #242a23; }
.product-video-frame { position: relative; }
.product-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: var(--studio-button-radius); background: transparent; color: #fff8eb; font: 600 12px/1.4 Arial, sans-serif; cursor: pointer; }
.product-video-play[hidden] { display: none; }
.product-video-play-icon { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid; }
.product-video-play-icon svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.product-video-play-label { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 4px 10px; border-radius: 5px; background: #252c24e6; text-align: center; }
.product-video-play:focus-visible { outline: 3px solid #fff8eb; outline-offset: 5px; }
@media (max-width: 600px) {
  .product-video-play { width: 56px; height: 56px; }
  .product-video-play-label { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .product-video-play-icon { width: 56px; height: 56px; }
  .product-video-play-icon svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .product-video-play-icon { transition: none; } }
.granul-language-note { margin: 18px 0; padding: 12px 18px; border: 1px solid var(--studio-border); border-radius: 8px; background: var(--studio-surface); font-size: 13px; line-height: 1.65; color: #5c513c; }
.granul-download-note { font-size: 13px; color: #776648; line-height: 1.8; }
.granul-downloads { scroll-margin-top: 24px; }
.granul-release-download { margin-bottom: 32px; }
.granul-release-download .actions { flex-wrap: wrap; }

@media (max-width: 600px) {
  .granul-controls, .granul-requirements dl { grid-template-columns: 1fr; gap: 6px; }
  .granul-controls dd, .granul-requirements dd { margin-bottom: 14px; }
  .granul-pictures { gap: 18px; }
  .granul-pictures figure { flex-basis: auto; }
}

.product-demo.shell { margin: 28px auto; }
.product-gallery { min-width: 0; margin: 24px 0; }
.product-gallery-stage { position: relative; width: min(100%, var(--active-screenshot-width, 100%)); margin-inline: auto; }
.product-gallery-stage figure { width: 100%; margin: 0 auto; }
.product-gallery-stage figure[hidden] { display: none; }
.product-gallery-stage a { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.product-gallery-stage a:focus-visible { outline: 3px solid #256482; outline-offset: -4px; }
.product-gallery .product-gallery-stage img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.product-gallery-edge {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  display: grid;
  place-items: center;
  width: clamp(36px, 16%, 135px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff9ec;
  cursor: pointer;
}
.product-gallery-edge-prev { left: 0; --edge-direction: to right; }
.product-gallery-edge-next { right: 0; --edge-direction: to left; }
.product-gallery-edge:is(:hover, :active, :focus-visible) { background: linear-gradient(var(--edge-direction), #16110caa, #16110c55 52%, transparent); }
.product-gallery-edge:focus-visible { outline: 2px solid #d4924f; outline-offset: -4px; }
.product-gallery-edge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px #21160e);
  opacity: 0;
}
.product-gallery-edge:is(:hover, :active, :focus-visible) svg { opacity: 1; }
.product-gallery-controls { display: grid; grid-template-columns: 44px 7ch 44px; justify-content: center; gap: 4px; align-items: center; margin: 6px 0; }
.product-gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #544535; cursor: pointer; }
.product-gallery-controls button:hover { background: #d1a5782b; }
.product-gallery-controls button:focus-visible { outline: 2px solid #704416; outline-offset: -3px; }
.product-gallery-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.product-gallery .product-gallery-caption { margin: 0; color: #544535; text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
.product-gallery-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
