/* Pico Bay additions to the shared ctrlPi theme. */
.hero { overflow-x: clip; }
.text-page { max-width: 760px; padding-top: 56px; padding-bottom: 48px; }
.text-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 24px; }
.text-page h2, .text-page h3 { margin-top: 32px; margin-bottom: 12px; }
.text-page p { color: var(--slate); margin-bottom: 18px; }
.text-page ul { padding-left: 24px; color: var(--slate); }
.text-page li + li { margin-top: 8px; }
.text-page code { overflow-wrap: anywhere; }
.faq-item + .faq-item { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 4px; }
.license-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 0.9rem/1.7 'JetBrains Mono', monospace; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.i-brand { background: rgba(139,92,246,.12); color: var(--violet); }
.quick-start { }
.quick-start .code-block { margin: 24px 0; }
.quick-start p { color: var(--slate); }
.app-preview { max-width: 860px; margin-top: 48px; }
.app-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.app-preview figcaption { margin-top: 14px; font-size: .88rem; text-align: center; color: var(--slate); }
@media (max-width: 600px) {
  .text-page { padding-top: 32px; }
  .license-text { padding: 18px; font-size: .8rem; }
}
.quick-start .code-block pre { background: #0b1120; color: #e2e8f0; border-radius: 14px; padding: 22px 90px 22px 22px; overflow-x: auto; font: .95rem/1.6 'JetBrains Mono', monospace; }
.quick-start .copy-btn { width: auto; padding: 5px 10px; color: #cbd5e1; }
.quick-start > p + p { margin-top: 16px; }


.gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--blue); font-size: 1.3rem; cursor: pointer; }
.screenshot-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; }
.gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 4px 4px 16px; }
.gallery-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.files-shot { aspect-ratio: 668 / 379; }
.console-shot { aspect-ratio: 593 / 414; }
.app-preview .gallery-frame img { position: absolute; max-width: none; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.files-shot img { width: 119.91%; left: -10.03%; top: -124.27%; }
.console-shot img { width: 135.08%; left: -17.54%; top: -112.08%; }
.gallery-hint { text-align: center; color: var(--slate); font-size: .85rem; margin-top: 12px; }
.screenshot-gallery:focus-visible, .gallery-controls button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Keep cards, screenshots, and reading columns proportionate on wide screens. */
.app-preview figcaption { max-width: 620px; margin-left: auto; margin-right: auto; }

.gallery-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gallery-pagination button { min-width: 36px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--blue); font: inherit; cursor: pointer; }
.gallery-page[aria-current="true"] { background: var(--blue); color: white; border-color: var(--blue); }
#gallery-position { color: var(--slate); font-size: .85rem; }
.gallery-pagination button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
