/* A single, quiet studio composition. Copy is always above the sculpture. */
.faq { padding: 88px 24px 112px; }
.faq-wrap { max-width: 960px; margin: 0 auto; }
.faq-contact { margin: 18px 0 0; color: #526467; font-size: 18px; }
.faq-contact a { color: #327165; text-decoration: underline; text-underline-offset: 4px; }
.faq-jump { display: inline-block; margin-top: 16px; color: #327165; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.faq-jump:focus-visible { outline: 2px solid #327165; outline-offset: 4px; }
.faq-list { display: grid; gap: 12px; margin-top: 36px; }
.faq-list details { background: #fff; border: 1px solid rgba(15,30,34,.08); border-radius: 18px; overflow: hidden; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; color: #0B1619; font: 600 20px/1.35 'Cabinet Grotesk', sans-serif; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { flex-shrink: 0; color: #327165; font: 400 28px/1 sans-serif; transition: transform .2s; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list summary:hover { background: rgba(50,113,101,.04); }
.faq-list summary:focus-visible { outline: 2px solid #327165; outline-offset: -4px; border-radius: 18px; }
.faq-answer { padding: 0 28px 24px; color: #526467; font-size: 17px; line-height: 1.7; }
.faq-answer p { margin: 0; max-width: 72ch; }
.faq-answer a { color: #327165; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .faq { padding: 64px 20px 88px; } .faq-list summary { padding: 20px; font-size: 18px; } .faq-answer { padding: 0 20px 20px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .faq-list summary > span { transition: none; } }
.intro-page { display: none; }
.intro-loading, .intro-loading body { overflow: hidden; }
.intro-loading .intro-page, .intro-complete .intro-page { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; background: #0C0D0F; color: #fff; opacity: 1; transition: opacity .45s ease; }
.intro-complete .intro-page { opacity: 0; pointer-events: none; }
.intro-content { width: min(560px, calc(100vw - 48px)); text-align: center; }
.intro-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; margin-bottom: 48px; }
.intro-logo img { width: clamp(180px, 30vw, 300px); height: clamp(180px, 30vw, 300px); object-fit: contain; }
.intro-logo strong { font: 700 clamp(42px, 8vw, 80px)/1 'Cabinet Grotesk', system-ui, sans-serif; letter-spacing: -.01em; }
.intro-progress { height: 3px; border-radius: 999px; background: rgba(142,216,187,.15); overflow: hidden; }
.intro-progress span { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: #8ED8BB; transition: width .45s ease; }
.intro-content p { margin: 16px 0 0; color: #9DB2B4; font: 400 12px/1.5 'Cabinet Grotesk', sans-serif; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .intro-loading .intro-page, .intro-complete .intro-page, .intro-progress span { transition: none; } }
.flow-hero {
  /* Hero jest zawsze ciemne — przypinamy ciemną paletę, by przyciski miały poprawny kontrast niezależnie od trybu systemu. */
  --text: #E6EFEE; --muted: #9DB2B4; --accent: #2E9C8F;
  --surface: #15262B; --border: #2A4249; --on-accent: #04100F;
  min-height: 100svh; padding: 48px 24px 0; gap: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 58%, rgba(50, 113, 101, .24) 0%, rgba(50, 113, 101, .08) 55%, transparent 100%), #0C0D0F;
  color: var(--text); justify-content: flex-start;
}
.hero-copy { position: relative; z-index: 3; width: min(100%, 1100px); min-width: 0; margin: 0 auto; }
.hero-background-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.24); transform-origin: center; z-index: 0; pointer-events: none; }
.flow-hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, #0C0D0F 0%, rgba(12, 13, 15, .5) 18%, rgba(12, 13, 15, .12) 45%, transparent 70%), linear-gradient(rgba(0, 0, 0, .05), rgba(0, 0, 0, .05)), rgba(25, 65, 57, .8); }
.hero-story-button { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px 22px; border: 1px solid rgba(142,216,187,.35); border-radius: 999px; background: rgba(12,13,15,.45); color: #E6EFEE; text-decoration: none; font: 500 14px/1 'Cabinet Grotesk', sans-serif; white-space: nowrap; transition: background .2s, border-color .2s; }
.hero-story-button svg { width: 20px; height: 20px; }
.hero-story-button:hover { background: rgba(25,65,57,.8); border-color: #8ED8BB; }
.hero-story-button:focus-visible { outline: 2px solid #8ED8BB; outline-offset: 5px; }
.flow-hero { padding-bottom: 128px; }
@media (max-width: 767px) { .flow-hero .hero-story-button { bottom: 32px; } }
.hero-brand { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 24px; }
.hero-brand img { width: auto; height: 76px; margin-right: 0; }
.hero-brand strong { font: 700 46px/1 'Cabinet Grotesk', system-ui, sans-serif; letter-spacing: -.01em; }
.flow-hero .eyebrow { margin: 0; color: #9DB2B4; font-size: 10px; letter-spacing: .19em; }
.flow-hero h1 { margin: 14px auto 0; max-width: none; font-size: clamp(50px, 6.2vw, 88px); line-height: 1.07; letter-spacing: -.04em; text-shadow: none; }
.flow-hero h1 span { color: #5BBCAD; }
.flow-hero .sub { margin: 19px auto 0; max-width: 59ch; font-size: 24px; line-height: 1.65; color: #fff; text-wrap: balance; }
.flow-hero .links { margin-top: 23px; gap: 16px; }
.hero-install { display: flex; align-items: center; gap: 16px; width: min(100%, 860px); margin: 24px auto 0; padding: 8px 16px; background: #fff; border: 1px solid rgba(15, 30, 34, .08); border-radius: 18px; box-shadow: 0 8px 22px rgba(11, 22, 25, .05); text-align: left; }
.hero-install pre { flex: 1; min-width: 0; margin: 0; overflow-x: auto; color: #0B1619; font: 400 16px/1.8 'Geist Mono', monospace; }
.hero-copy-command { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 6px 8px; border: 0; border-radius: 11px; background: #0f1e22; color: #fff; font: 500 16px/1.2 'Cabinet Grotesk', sans-serif; cursor: pointer; }
.hero-copy-command svg { width: 18px; height: 18px; }
.hero-copy-command:hover { background: #327165; }
.hero-copy-command:focus-visible, .hero-install-links a:focus-visible { outline: 2px solid #5BBCAD; outline-offset: 4px; }
.hero-install-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; font-size: 18px; }
.hero-install-links a { color: #9DB2B4; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(157, 178, 180, .4); }
.hero-install-links a:hover { color: #E6EFEE; }
@media (max-width: 560px) {
  .hero-install { gap: 8px; padding: 8px 12px; }
  .hero-copy-command { font-size: 14px; }
  .hero-install pre { font-size: 13px; }
}
/* Buttony wg aeterna.framer.ai: Geist Mono, ostre rogi. Primary = czarny solid, Secondary = crop marks. */
/* Przyciski w hero korzystają z jednego, wspólnego stylu .btn z index.html (zunifikowane). */
.hero-note { margin: 13px 0 0; font-size: 10px; color: #78827c; }
.hero-note span { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #829887; margin: 0 6px 2px 0; }
.knowledge-matter { position: relative; width: min(1440px, 100vw); height: clamp(390px, 37vw, 540px); margin: -8px -24px 0; touch-action: pan-y; }
#matterCanvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.knowledge-matter.is-ready #matterCanvas { opacity: 1; }
.matter-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; color: #52685d; }
.matter-fallback p { font: 500 clamp(22px, 4vw, 38px)/1.2 Fraunces, Georgia, serif; }
.matter-fallback span { max-width: 42ch; font-size: 13px; }
.is-ready .matter-fallback { display: none; }
.matter-footer { position: absolute; inset: auto 6% 22px; display: flex; justify-content: space-between; align-items: center; color: #758179; font-size: 10px; letter-spacing: .03em; }
.matter-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 11px; border: 1px solid #a3aea54a; border-radius: 20px; background: #e6e7e599; color: #56665c; font: inherit; cursor: pointer; }
.matter-toggle:hover { background: #f2f3ef; }
.matter-toggle:focus-visible { outline: 2px solid #176b60; outline-offset: 4px; }
.matter-toggle[hidden] { display: none; }
@media (max-width: 767px) {
  .flow-hero { padding: 40px 20px 128px; }
  .hero-brand { margin-bottom: 22px; }
  .hero-brand img { height: 64px; }
  .hero-brand strong { font-size: 40px; }
  .flow-hero h1 { max-width: none; font-size: clamp(44px, 10.5vw, 68px); }
  .flow-hero .sub { font-size: 20px; max-width: 40ch; }
  .hero-note { font-size: 9px; max-width: 38ch; margin: 14px auto 0; }
  .knowledge-matter { height: 410px; margin-top: 0; }
  .matter-footer { inset: auto 20px 16px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { #matterCanvas { transition: none; } }

/* Responsive layout for the current video hero and content. */
.split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.case-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-copy, .case-media, .ucard, .footer-col { min-width: 0; }
.case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card h3, .faq-answer, .faq-contact a, .footer-col a { overflow-wrap: anywhere; }
.hero-copy-command { min-height: 44px; flex-shrink: 0; }
.hero-install-links { flex-wrap: wrap; }
.faq-jump, .hero-install-links a { min-height: 44px; align-content: center; }
.intro-content { padding-block: 24px; }
.intro-logo img { width: clamp(150px, min(30vw, 35svh), 300px); height: clamp(150px, min(30vw, 35svh), 300px); }
.intro-logo strong { font-size: clamp(36px, min(8vw, 12svh), 80px); }
@media (max-width: 1024px) {
  .footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 600px; }
}
@media (max-width: 960px) {
  .case-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .case-copy { order: 0; }
  .case-media { order: 1; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; }
  .footer-scene-wrap { display: flex; flex-direction: column; width: calc(100% + 40px); margin-left: -20px; }
  .footer-cta-copy { position: relative; order: -1; top: auto; left: auto; right: auto; transform: none; width: 100%; padding: 40px 24px 24px; }
  .footer-scene { width: 100%; }
  .footer-cta-copy .links { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .flow-hero { position: relative; padding: 32px 24px 128px; }
  .flow-hero h1 { font-size: clamp(34px, 9.5vw, 62px); }
  .flow-hero .sub { font-size: clamp(17px, 2.8vw, 20px); line-height: 1.55; }
  .hero-install { gap: 10px; padding: 10px 12px; }
  .hero-install pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; font-size: 13px; line-height: 1.6; }
  .hero-install-links { gap: 8px 24px; font-size: 16px; }
  .faq-contact { font-size: 16px; }
  .footer-logo strong { font-size: clamp(26px, 7vw, 34px); }
  .footer-logo img { height: 60px; }
  .ucard-body, .ucard-foot { padding-inline: 18px; }
  .ucard-hint { flex-wrap: wrap; }
  .button.gh-fab { right: 16px; bottom: 16px; transform: scale(.6); }
}
@media (max-width: 440px) {
  .flow-hero { padding-bottom: 184px; }
  .flow-hero .hero-story-button { bottom: 88px; }
  .case-cards, .footer-wrap { grid-template-columns: minmax(0, 1fr); }
  .case-cards.framed { padding: 14px; }
  .footer-cta-copy .links { flex-direction: column; align-items: stretch; }
  .footer-cta-copy .btn { justify-content: center; }
  .faq-list summary { gap: 12px; padding: 18px; }
}
@media (max-height: 700px) {
  .flow-hero { position: relative; }
  .intro-logo { gap: 12px; margin-bottom: 24px; }
  .intro-logo img { width: min(180px, 32svh); height: min(180px, 32svh); }
  .intro-logo strong { font-size: clamp(32px, 8svh, 56px); }
}
