/* Zrozumieć Światło: landing aparatu jednorazowego.
   Kolory wyłącznie ze zmiennych --zs-* (tokens.css). Reguły bazowe przeniesione z brand.css marki. */

/* Fonty lokalne (bez Google Fonts: prywatność). Podział na latin / latin-ext jak w źródle. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-serif-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-serif-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-head: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zs-krem); color: var(--zs-granat); font: 400 16px/1.5 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; font-size-adjust: 0.60; line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 .8em; max-width: 70ch; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, model-viewer:focus-visible { outline: 3px solid var(--zs-granat); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.block { padding-top: clamp(48px, 8vw, 88px); }
.muted, .note { color: var(--zs-tusz); }
.note { font-size: 14px; }
.eyebrow { font: 700 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--zs-granat); color: var(--zs-krem); padding: 10px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }

/* Przycisk: jedna pigułka akcentowa na widok, płaska (granat na złocie) */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 15px/1 var(--font-body); background: var(--zs-zloto); color: var(--zs-granat); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.btn:hover { transform: translateY(-2px); }

/* Flare: znak z plików marki, zmieniamy tylko rozmiar i położenie */
.flare { pointer-events: none; user-select: none; }
.flare-mark { width: 18px; height: 18px; flex: none; }
.flare-big { position: absolute; top: -70px; right: -80px; width: clamp(200px, 30vw, 300px); height: auto; }

/* Nagłówek */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 8px; position: relative; z-index: 2; }
.top .brand { flex: none; }
.top .logo { width: 96px; height: 96px; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px clamp(12px, 3vw, 28px); font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; padding: 6px 2px; }
.top nav a:hover { text-decoration: underline; }

/* Sekcja główna */
.hero { position: relative; padding: clamp(8px, 3vw, 32px) 0 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--zs-tusz); max-width: 34ch; }
.cta-row { margin: 26px 0 0; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--zs-mgla); }
.shot img { width: 100%; }
.shot figcaption { font: 500 13px/1.4 var(--font-body); padding: 10px 14px 12px; }

/* Karty */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.card { background: var(--zs-mgla); border-radius: var(--radius); padding: 22px 22px 14px; }
.card p { color: var(--zs-tusz); }

/* Podgląd 3D */
.viewer { position: relative; margin-top: 18px; border-radius: var(--radius); background: var(--zs-mgla); aspect-ratio: 4 / 3; max-height: 640px; width: 100%; overflow: hidden; }
.viewer-poster, .viewer model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer-poster { object-fit: contain; transition: opacity .5s ease; }
.viewer.is-ready .viewer-poster { opacity: 0; pointer-events: none; }
.viewer model-viewer { background: transparent; --poster-color: transparent; }
.viewer-load { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; border: 0;
  font: 700 14px/1 var(--font-body); background: var(--zs-granat); color: var(--zs-krem); cursor: pointer; }

/* Galeria */
.viewer + .note { margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 14px; }

/* Kroki */
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { border-top: 2px solid var(--zs-granat); padding-top: 14px; }
.steps p { color: var(--zs-tusz); }
.num { display: block; font: 400 2.6rem/1 var(--font-head); font-size-adjust: 0.60; margin-bottom: 8px; }

/* Parametry */
.spec { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--zs-mgla); }
.spec dt { color: var(--zs-tusz); }
.spec dd { margin: 0; font-weight: 500; text-align: right; }

/* Zapis: granatowa sekcja, krem na granacie */
.signup { background: var(--zs-granat); color: var(--zs-krem); margin-top: clamp(56px, 9vw, 104px); overflow: hidden; }
.signup-in { position: relative; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.signup p { max-width: 46ch; }
.signup .eyebrow { color: var(--zs-niebo); }
.signup a:focus-visible { outline-color: var(--zs-krem); }
.flare-side { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: clamp(90px, 16vw, 150px); height: auto; }
.soon { font: 400 1.35rem/1.3 var(--font-head); font-size-adjust: 0.60; }
.note-new-tab { display: block; margin-top: 12px; font-size: 14px; color: var(--zs-niebo); }
[hidden] { display: none !important; }

/* Stopka */
.foot { padding-top: 28px; padding-bottom: 36px; color: var(--zs-tusz); font-size: 14px; }
.foot p { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.foot .flare-mark { width: 16px; height: 16px; }

/* Wejście sekcji: miękko, bez nagłego zatrzymania; wyłączone przy ograniczonym ruchu */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .flare-big { animation: pulse 2s ease-in-out infinite alternate; transform-origin: 46% 57%; }
  @keyframes pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .flare-big { top: -22px; right: -52px; width: 130px; }
  .hero .eyebrow { max-width: 62%; }
  .top .logo { width: 96px; height: 96px; }
  .flare-side { top: 34px; transform: none; width: 84px; }
  .signup h2 { max-width: 9ch; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .top nav { gap: 12px; font-size: 14px; }
}
