/* ==========================================================================
   Fotowrzutka — marketing pages (home + /cennik). Wave 4.
   Standalone stylesheet: these templates do NOT load /static/style.css.
   Direction: docs/design-direction.md — dark-first cinematic hero ("golden
   hour after dark"), night->day scroll narrative, UI is the frame and the
   guests' photos are the only colour. Fraunces (display) + Schibsted Grotesk
   (text), candle-gold accent, rare coral blush micro-accent.
   Self-hosted fonts + local WebP only (production CSP blocks CDNs).
   ========================================================================== */

/* ---------- self-hosted fonts (Google Fonts, SIL OFL) ---------- */
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 560;font-display:swap;
  src:url('/static/fonts/fraunces-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:'Fraunces';font-style:italic;font-weight:400 560;font-display:swap;
  src:url('/static/fonts/fraunces-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:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;
  src:url('/static/fonts/fraunces-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:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;
  src:url('/static/fonts/fraunces-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:'Schibsted Grotesk';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('/static/fonts/schibsted-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:'Schibsted Grotesk';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('/static/fonts/schibsted-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;}

/* =========================================================================
   TOKENS
   ========================================================================= */
:root{
  /* DAY palette (light) — default; "how it works", pricing, footer */
  --bg:#FBF7EF; --surface:#FFFDF8; --surface-2:#F4EEE2; --screen:#FBF7EE;
  --ink:#221F17; --muted:#6E6A5E; --line:#E7DECE;
  --gold:#B07A24; --gold-soft:#E0A63C; --gold-deep:#8F6317; --sage:#556A4C; --blush:#D2745C;
  /* CTA: warm candle-gold in BOTH themes (never a dark/black button). Dark ink
     text on bright gold clears WCAG AA at ~8:1; light text on bright gold does
     not (~1.6:1), so the readable gold button uses dark text like the hero. */
  --accent-fill:var(--gold-soft); --accent-on:#1B1A12; --ghost-border:rgba(34,31,23,.22);

  /* fonts */
  --font-display:'Fraunces','Bodoni 72',Georgia,serif;
  --font-text:'Schibsted Grotesk','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;

  /* fluid type scale */
  --fs-display:clamp(2.6rem,1.6rem + 4.6vw,4.4rem);
  --fs-h2:clamp(1.7rem,1.2rem + 2.2vw,2.6rem);
  --fs-h3:clamp(1.2rem,1.05rem + .7vw,1.5rem);
  --fs-lead:clamp(1.05rem,1rem + .35vw,1.25rem);
  --fs-small:.875rem; --fs-eyebrow:.75rem;
  --lh-tight:1.08; --lh-snug:1.25; --lh-body:1.6; --tracking-eyebrow:.22em;

  /* radii */
  --r-sm:12px; --r-md:16px; --r-lg:24px; --r-xl:32px; --r-pill:999px;

  /* warm shadows + glows */
  --sh-sm:0 2px 8px rgba(30,26,16,.10);
  --sh-md:0 12px 34px rgba(30,26,16,.14);
  --sh-lg:0 26px 70px rgba(18,16,9,.34);
  --glow-gold:0 0 0 1px rgba(233,176,74,.45),0 8px 30px rgba(233,176,74,.28);

  /* spacing */
  --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px;
  --pad-x:clamp(1.15rem,4vw,2rem);
  --maxw:1120px;

  /* motion */
  --ease-out:cubic-bezier(.22,.61,.36,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --dur-fast:.16s; --dur:.28s; --dur-slow:.6s;
}

/* Dark values, reused by full dark-mode root AND by always-dark .night zones. */
:root[data-theme="dark"], .night{
  --bg:#16150F; --surface:#201E16; --surface-2:#2A2820; --screen:#24221A;
  --ink:#F2ECDF; --muted:#A8A292; --line:#34322A;
  --gold:#E9B04A; --gold-soft:#F3CE86; --gold-deep:#C9862A; --sage:#8FA080; --blush:#EC9782;
  --accent-fill:var(--gold); --accent-on:#1B1A12; --ghost-border:rgba(242,236,223,.28);
}
/* Marketing commits to its designed palette on all devices (owner decision 2026-07-11):
   night hero + cream day sections everywhere; no OS-theme flip. */

/* =========================================================================
   BASE
   ========================================================================= */
*{box-sizing:border-box;margin:0;padding:0}
/* overflow-x:clip (not :hidden) so html/body do NOT become a new scroll
   container — :hidden implicitly creates one in some engines, which breaks
   position:sticky on .nav (the sticky element's containing block becomes that
   inner scroller instead of the viewport). :hidden stays first as a fallback
   for browsers without :clip support (Safari <16, older WebViews); the cascade
   means :clip wins wherever it is understood. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden;overflow-x:clip}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--font-text);font-size:1rem;line-height:var(--lh-body);
  color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;
  overflow-x:hidden;overflow-x:clip;transition:background .4s ease,color .4s ease;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}

/* shared type helpers */
.eyebrow{font-size:var(--fs-eyebrow);letter-spacing:var(--tracking-eyebrow);
  text-transform:uppercase;color:var(--gold);font-weight:600}
.wrap{max-width:var(--maxw);margin:0 auto;padding-left:var(--pad-x);padding-right:var(--pad-x)}
.sect{padding-block:clamp(3.5rem,8vw,6rem)}
.sect-head{text-align:center;max-width:44ch;margin:0 auto clamp(2rem,4vw,3rem)}
.sect-head h2{font-family:var(--font-display);font-weight:480;font-size:var(--fs-h2);
  line-height:var(--lh-snug);margin:.5rem 0 .6rem;text-wrap:balance}
.sect-head h2 em{font-style:italic}
.sect-lead{color:var(--muted);font-size:var(--fs-lead);text-wrap:pretty}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-text);font-size:1rem;font-weight:600;line-height:1;
  padding:.95rem 1.7rem;border-radius:var(--r-pill);border:1px solid transparent;
  cursor:pointer;text-align:center;
  transition:transform var(--dur-fast) var(--ease-out),box-shadow var(--dur) ease,
             background var(--dur) ease,border-color var(--dur) ease;}
.btn-primary{background:var(--accent-fill);color:var(--accent-on)}
/* Clear hover in every theme: brighten the gold + lift + gold glow. `filter`
   is theme-agnostic, so the state reads even if the fill token changes. */
.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--glow-gold);filter:brightness(1.06)}
.btn-primary:focus-visible{box-shadow:var(--glow-gold)}
.btn-primary:active{filter:brightness(.96)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--ghost-border)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px)}
.btn:active{transform:translateY(1px)}
.btn-lg{padding:1.1rem 2rem;font-size:1.05rem}
/* Non-clickable state for owned/unavailable plan buttons (rendered as <span>). */
.btn.is-disabled{opacity:.55;cursor:default;pointer-events:none;transform:none}

/* =========================================================================
   NAV (sticky, transparent over hero -> solid on scroll)
   ========================================================================= */
.nav{position:sticky;top:0;z-index:50;transition:background var(--dur) ease,
  box-shadow var(--dur) ease,border-color var(--dur) ease;
  border-bottom:1px solid transparent;background:transparent}
.nav.stuck{background:color-mix(in srgb,var(--bg) 86%,transparent);
  backdrop-filter:blur(14px);border-bottom-color:var(--line)}
.nav-in{max-width:var(--maxw);margin:0 auto;padding:.85rem var(--pad-x);
  display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{font-family:var(--font-display);font-size:1.5rem;font-weight:560;
  letter-spacing:-.01em;transition:font-size var(--dur) ease;color:var(--ink)}
.nav.stuck .brand{font-size:1.32rem}
.brand em{font-style:italic;color:var(--gold)}
.nav-links{display:flex;align-items:center;gap:1.4rem;font-size:.94rem}
.nav-links a{color:var(--ink);opacity:.85;transition:opacity .2s,color .2s}
.nav-links a:hover{opacity:1;color:var(--gold)}
.nav-links .btn{padding:.55rem 1.2rem;font-size:.9rem}
.brand{white-space:nowrap}
.nav-links{flex:none}
/* Progressive collapse into the hamburger drawer as width shrinks */
@media(max-width:1020px){.nav-links .nav-hide{display:none}}
/* Below 720px keep ONLY the CTA beside the brand — everything else lives in the
   drawer. Guarantees the brand can never overlap nav links on phones. */
@media(max-width:720px){
  .nav-links a:not(.btn){display:none}
  .nav-links{gap:.6rem}
  .nav-links .btn{padding:.5rem .9rem;font-size:.85rem}
  .brand{font-size:1.28rem}
}
/* Very narrow phones: brand can shrink further so the CTA always fits */
@media(max-width:380px){.brand{font-size:1.1rem}.nav-in{gap:.5rem}}

/* ---- hamburger (left of the brand, visible on every breakpoint) ---- */
.nav-left{display:flex;align-items:center;gap:.7rem;min-width:0}
.nav-burger{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;flex:none;
  width:44px;height:44px;padding:11px;background:transparent;cursor:pointer;
  border:1px solid var(--ghost-border);border-radius:var(--r-pill);
  transition:border-color var(--dur) ease}
.nav-burger span{display:block;height:2px;border-radius:2px;background:var(--ink);
  transition:background .2s ease}
.nav-burger:hover{border-color:var(--gold)}
.nav-burger:hover span{background:var(--gold)}

/* ---- slide-in navigation drawer (always dark, .night tokens) ---- */
.drawer-overlay{position:fixed;inset:0;z-index:70;background:rgba(10,9,5,.55);
  backdrop-filter:blur(2px);opacity:0;transition:opacity var(--dur) ease}
.drawer-overlay.show{opacity:1}
.drawer{position:fixed;top:0;left:0;z-index:80;width:min(86vw,320px);height:100%;
  background:var(--bg);color:var(--ink);border-right:1px solid var(--line);box-shadow:var(--sh-lg);
  padding:1rem 1.05rem 2rem;display:flex;flex-direction:column;overflow-y:auto;
  transform:translateX(-100%);transition:transform var(--dur) var(--ease-out)}
.drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;
  margin-bottom:1.1rem;padding-bottom:.4rem}
.drawer-close{background:transparent;border:none;color:var(--ink);font-size:2rem;line-height:1;
  cursor:pointer;width:42px;height:42px;border-radius:var(--r-pill);transition:color .2s ease}
.drawer-close:hover{color:var(--gold)}
.drawer-nav{display:flex;flex-direction:column;gap:.15rem}
.drawer-nav a{padding:.78rem .65rem;border-radius:var(--r-sm);color:var(--ink);font-weight:500;
  transition:background .2s ease,color .2s ease}
.drawer-nav a:hover{background:var(--surface-2);color:var(--gold)}
.drawer-nav .drawer-cta{margin:.65rem 0;background:var(--accent-fill);color:var(--accent-on);
  font-weight:700;text-align:center}
.drawer-nav .drawer-cta:hover{background:var(--accent-fill);color:var(--accent-on);filter:brightness(1.06)}
.drawer-nav .drawer-legal{font-size:.85rem;color:var(--muted)}
.drawer-nav .drawer-legal:hover{color:var(--gold)}
body.drawer-open{overflow:hidden}
@media (prefers-reduced-motion: reduce){.drawer,.drawer-overlay{transition:none}}

/* =========================================================================
   HERO (night) — cinematic; animation stage lives here
   ========================================================================= */
.hero{position:relative;overflow:hidden;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-2;background:
  radial-gradient(120% 90% at 78% 8%,rgba(233,176,74,.16),transparent 55%),
  radial-gradient(90% 80% at 8% 100%,rgba(143,160,128,.12),transparent 60%),
  var(--bg)}
/* slow bokeh drift */
.hero::after{content:"";position:absolute;inset:-15%;z-index:-1;opacity:.5;pointer-events:none;
  background:
   radial-gradient(circle 3px at 20% 30%,var(--gold-soft),transparent 60%),
   radial-gradient(circle 5px at 66% 22%,var(--gold),transparent 60%),
   radial-gradient(circle 2px at 82% 60%,var(--gold-soft),transparent 60%),
   radial-gradient(circle 4px at 40% 78%,var(--gold-soft),transparent 60%),
   radial-gradient(circle 3px at 88% 84%,var(--gold),transparent 60%);
  filter:blur(1px);animation:bokehDrift 22s ease-in-out infinite alternate}
@keyframes bokehDrift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-14px,-22px,0)}}
.hero-in{max-width:var(--maxw);margin:0 auto;padding:clamp(2.4rem,6vw,4.5rem) var(--pad-x) clamp(3rem,6vw,5rem);
  display:grid;grid-template-columns:minmax(300px,1fr) minmax(340px,1.12fr);
  gap:clamp(2rem,4vw,3.2rem);align-items:center}
@media(max-width:900px){.hero-in{grid-template-columns:1fr;gap:2rem}
  .hero-copy{order:2;text-align:center}
  .hero-copy .hero-cta{justify-content:center}
  .stage-wrap{order:1;margin-inline:auto}}
.hero h1{font-family:var(--font-display);font-weight:440;font-size:var(--fs-display);
  line-height:var(--lh-tight);letter-spacing:-.01em;margin:.9rem 0 1.1rem;text-wrap:balance}
.hero h1 em{font-style:italic;color:var(--gold-soft)}
.hero-lead{color:var(--muted);font-size:var(--fs-lead);max-width:46ch;margin-bottom:1.8rem}
.hero-copy .hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.hero-note{font-size:var(--fs-small);color:var(--muted);margin-top:1rem}
.hero-note b{color:var(--gold-soft);font-weight:600}

/* ---- hero animation stage (adapted from docs/prototypes/hero-animacja.html) --
   Fixed 560x500 scene, scaled to container width by marketing.js.
   ~11s loop per storyboard: QR table card settles -> guest lifts phone ->
   scan (beam) -> QR lights gold -> app crossfades in -> tap "Add" ->
   photo arcs into the live gallery -> target cell lights + counter +1 (blush
   pulse) -> long "beat" holding the fuller gallery. Pure CSS; JS only fits
   the scale + ticks the counter. ------------------------------------------- */
.stage-wrap{position:relative;width:100%;max-width:560px;justify-self:end;
  overflow:hidden;border-radius:var(--r-xl);box-shadow:var(--sh-lg);
  border:1px solid rgba(233,176,74,.14)}
.stage{position:relative;width:560px;height:500px;--loop:11s;
  background:#14130D;transform-origin:top left}
.abs{position:absolute}
.backdrop{inset:0;width:100%;height:100%;object-fit:cover;
  filter:blur(7px) brightness(.5) saturate(.95);transform:scale(1.08)}
.vignette{inset:0;background:radial-gradient(ellipse at 62% 46%,transparent 26%,rgba(12,11,7,.68) 100%)}

/* live gallery glass panel */
.panel-g{left:22px;top:24px;width:262px;padding:14px;border-radius:16px;
  background:rgba(20,18,12,.55);backdrop-filter:blur(10px);border:1px solid rgba(243,206,134,.16)}
.panel-g .lbl{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:#E9E1CF;margin:0 0 10px;
  display:flex;align-items:center;gap:6px}
.panel-g .lbl::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--blush);
  box-shadow:0 0 8px var(--blush);animation:livedot 2.4s ease-in-out infinite}
@keyframes livedot{0%,100%{opacity:1}50%{opacity:.35}}
.g{display:grid;grid-template-columns:repeat(3,74px);gap:9px}
.cell{width:74px;height:74px;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.06);position:relative}
.cell img{width:100%;height:100%;object-fit:cover}
.cell.target img{opacity:0;animation:cellArt var(--loop) infinite}
.cell.target{animation:cellFill var(--loop) infinite}
@keyframes cellFill{0%,64%{box-shadow:none}67%{box-shadow:0 0 0 3px rgba(233,176,74,.75),0 0 18px rgba(233,176,74,.5)}
  74%{box-shadow:0 0 0 2px rgba(233,176,74,.3)}100%{box-shadow:none}}
@keyframes cellArt{0%,65%{opacity:0}69%,100%{opacity:1}}
.count{margin:12px 2px 0}
.count b{font-family:var(--font-display);font-weight:500;font-size:28px;color:#F2ECDF;
  font-variant-numeric:tabular-nums;display:inline-block;animation:countPulse var(--loop) infinite}
@keyframes countPulse{0%,66%{transform:none;color:#F2ECDF}68%{transform:scale(1.18);color:var(--blush)}
  74%,100%{transform:none;color:#F2ECDF}}
.count small{display:block;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:#B7B1A0}

/* table card with the QR code */
.card{right:34px;bottom:30px;width:114px;height:142px;background:#FFFDF8;border-radius:8px;
  box-shadow:var(--sh-lg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  animation:cardIn var(--loop) infinite;transform-origin:bottom center}
@keyframes cardIn{0%{opacity:0;transform:translateY(14px) scale(1)}
  5%,95%{opacity:1;transform:none}33%{transform:scale(.98)}36%{transform:scale(1)}100%{opacity:0}}
.card .t{font-family:var(--font-display);font-style:italic;font-size:13px;color:#4A5A45}
.card .s{font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:#8a857c}
/* Real scannable QR (SVG) on the table card — keeps the gold "capture" flash. */
.qr{width:58px;height:58px;border-radius:4px;background:#fff;padding:2px;object-fit:contain;
  animation:qrGlow var(--loop) infinite}
@keyframes qrGlow{0%,30%,38%,100%{box-shadow:none}34%{box-shadow:0 0 0 5px rgba(233,176,74,.65),0 0 16px rgba(233,176,74,.5)}}

/* guest hand holding the phone (photo snapshot) */
.hand{right:170px;bottom:-6px;width:212px;height:150px;border-radius:14px 14px 0 0;overflow:hidden;
  box-shadow:var(--sh-lg);animation:handIn var(--loop) infinite;transform-origin:bottom center}
.hand img{width:100%;height:100%;object-fit:cover}
@keyframes handIn{0%,6%{opacity:0;transform:translateY(30px)}15%,93%{opacity:1;transform:none}100%{opacity:0}}

/* phone */
.phone{right:198px;bottom:132px;width:128px;height:252px;background:#0D0C08;border-radius:24px;padding:9px;
  box-shadow:var(--sh-lg);animation:phoneIn var(--loop) infinite;transform-origin:bottom center}
@keyframes phoneIn{
  0%,6%{opacity:0;transform:translateY(40px) rotate(4deg)}
  9%{opacity:.7;transform:translateY(46px) rotate(4deg)}      /* anticipation dip */
  18%,92%{opacity:1;transform:translateY(0) rotate(0)}
  98%,100%{opacity:0;transform:translateY(16px)}}
.screen{position:relative;width:100%;height:100%;border-radius:16px;overflow:hidden;background:var(--screen)}
.scan,.papp{position:absolute;inset:0}
.scan{animation:scanHide var(--loop) infinite;background:#12110B}
.scan .cam{width:100%;height:100%;object-fit:cover;opacity:.5;filter:brightness(.8)}
@keyframes scanHide{0%,36%{opacity:1}42%,100%{opacity:0}}
.vf{position:absolute;left:50%;top:40%;width:68px;height:68px;transform:translate(-50%,-50%);
  border:2px solid var(--gold-soft);border-radius:9px}
.vf::after{content:"";position:absolute;left:5px;right:5px;height:2px;background:var(--gold-soft);
  border-radius:2px;box-shadow:0 0 8px var(--gold-soft);animation:beam var(--loop) infinite}
@keyframes beam{0%,18%{top:8%;opacity:0}20%{opacity:1}30%{top:86%;opacity:1}34%{opacity:0}100%{opacity:0}}
.qr-mini{position:absolute;left:50%;top:40%;width:44px;height:44px;transform:translate(-50%,-50%);border-radius:3px;
  background:#fff;padding:2px;object-fit:contain;opacity:.95}
.scan .lbl2{position:absolute;bottom:10px;left:0;right:0;text-align:center;color:#EFEAE0;
  font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.papp{animation:appShow var(--loop) infinite;opacity:0}
@keyframes appShow{0%,38%{opacity:0}44%,100%{opacity:1}}
.papp .hd{position:absolute;left:0;right:0;top:0;height:74px;overflow:hidden}
.papp .hd img{width:100%;height:100%;object-fit:cover}
.papp .hd span{position:absolute;left:0;right:0;bottom:5px;text-align:center;font-family:var(--font-display);
  font-style:italic;color:#fff;font-size:12.5px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.papp .add{position:absolute;left:9px;right:9px;top:84px;height:31px;background:var(--gold);border-radius:8px;
  color:#1B1A12;display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:700;
  animation:tap var(--loop) infinite;overflow:hidden}
.papp .add::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;
  background:rgba(255,255,255,.7);opacity:0;animation:ripple var(--loop) infinite}
@keyframes tap{0%,46%,53%,100%{transform:none}49%{transform:scale(.94)}}
@keyframes ripple{0%,48%{opacity:.6;transform:scale(0)}52%{opacity:0;transform:scale(9)}53%,100%{opacity:0}}
.papp .row{position:absolute;left:9px;right:9px;top:125px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.papp .row i{display:block;aspect-ratio:1;border-radius:6px;overflow:hidden}
.papp .row img{width:100%;height:100%;object-fit:cover}

/* flying photo: from the phone into the live gallery panel. End offset lands the
   tile on the target cell (top-left of the 3x3 grid) in the 560x500 scene. */
.fly{right:238px;bottom:250px;width:62px;height:62px;border-radius:9px;overflow:hidden;
  box-shadow:var(--sh-lg);opacity:0;animation:fly var(--loop) infinite}
.fly img{width:100%;height:100%;object-fit:cover}
@keyframes fly{
  0%,52%{opacity:0;transform:translate(0,0) scale(.4) rotate(0)}
  54%{opacity:1;transform:translate(-18px,-40px) scale(1) rotate(-5deg)}
  60%{transform:translate(-92px,-92px) scale(1.04) rotate(-8deg)}
  65%{transform:translate(-150px,-52px) scale(1) rotate(-2deg)}
  67%{opacity:1;transform:translate(-141px,-36px) scale(.92) rotate(0)}
  69%,100%{opacity:0;transform:translate(-141px,-36px) scale(.6)}}

@media (prefers-reduced-motion: reduce){
  .hero::after{animation:none}
  .stage *{animation:none !important}
  .scan{opacity:0}.papp{opacity:1}.card{opacity:1}.hand{opacity:1}.phone{opacity:1;transform:none}
  .cell.target img{opacity:1}.count b{color:#F2ECDF;transform:none}
}

/* =========================================================================
   TRUST BAND — night -> dawn transition strip under the hero
   ========================================================================= */
/* Solid dark band; the "dawn" is the clean cut into the light section below. */
.trust{background:var(--bg);border-top:1px solid rgba(233,176,74,.14);
  border-bottom:1px solid rgba(233,176,74,.14)}
.trust-in{max-width:var(--maxw);margin:0 auto;padding:2.2rem var(--pad-x);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1rem 2.4rem;text-align:center}
.trust .big{font-family:var(--font-display);font-weight:500;font-size:clamp(1.4rem,3vw,2rem);color:var(--gold-soft)}
.trust .big b{color:var(--gold-soft)}
.trust .items{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;justify-content:center;
  color:#D8D2C2;font-size:.92rem}
.trust .items span{display:inline-flex;align-items:center;gap:.4rem}
.trust .items span::before{content:"\2713";color:var(--gold)}
.trust .stars{color:var(--gold);letter-spacing:.1em}

/* =========================================================================
   HOW IT WORKS (day) — three steps + connecting thread of light
   ========================================================================= */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;position:relative}
.steps::before{content:"";position:absolute;top:54px;left:16%;right:16%;height:2px;z-index:0;
  background:linear-gradient(90deg,transparent,var(--gold-soft),transparent);opacity:.5}
@media(max-width:760px){.steps{grid-template-columns:1fr;max-width:420px;margin:0 auto}
  .steps::before{display:none}}
.step{position:relative;z-index:1;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:2.2rem 1.5rem 1.7rem;box-shadow:var(--sh-sm);text-align:center;
  transition:transform var(--dur) var(--ease-out),box-shadow var(--dur) ease}
.step:hover{transform:translateY(-5px);box-shadow:var(--sh-md)}
.step-no{width:52px;height:52px;margin:0 auto 1.1rem;border-radius:var(--r-pill);
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);
  font-weight:500;font-size:1.5rem;background:var(--surface-2);color:var(--gold-deep);
  border:1px solid var(--line)}
.step h3{font-family:var(--font-display);font-weight:560;font-size:var(--fs-h3);margin-bottom:.4rem}
.step p{color:var(--muted);font-size:.96rem}

/* =========================================================================
   PROOF — real weddings masonry
   ========================================================================= */
.alt{background:var(--surface-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.masonry{columns:3 260px;column-gap:1rem}
.ph{position:relative;break-inside:avoid;margin-bottom:1rem;border-radius:var(--r-sm);
  overflow:hidden;box-shadow:var(--sh-sm)}
.ph img{width:100%;transition:transform var(--dur-slow) var(--ease-out)}
.ph figcaption{position:absolute;left:14px;right:14px;bottom:11px;z-index:1;color:#fff;
  font-family:var(--font-display);font-style:italic;font-size:1.02rem;
  opacity:0;transform:translateY(8px);transition:opacity var(--dur) ease,transform var(--dur) ease;
  text-shadow:0 1px 10px rgba(0,0,0,.6)}
.ph::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,rgba(20,18,10,.6));
  opacity:0;transition:opacity var(--dur) ease}
.ph:hover img{transform:scale(1.04)}
.ph:hover::after,.ph:hover figcaption{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.ph img{transition:none}.ph:hover img{transform:none}}

/* =========================================================================
   START HOOK — value-first ("see your gallery in 2 min")
   ========================================================================= */
.hook{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);
  box-shadow:var(--sh-md);padding:clamp(1.8rem,4vw,3rem);
  display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.8rem,4vw,3rem);align-items:center}
@media(max-width:820px){.hook{grid-template-columns:1fr;text-align:center}
  .hook-preview{order:-1;margin-inline:auto}}
.hook h2{font-family:var(--font-display);font-weight:480;font-size:var(--fs-h2);line-height:var(--lh-snug);margin:.4rem 0 .7rem}
.hook p{color:var(--muted);margin-bottom:1.4rem}
.hook-form{display:flex;gap:.6rem;flex-wrap:wrap}
.hook-form input{flex:1;min-width:200px;font:inherit;font-size:1rem;padding:.9rem 1.1rem;
  border-radius:var(--r-pill);border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.hook-form input:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-color:var(--gold)}
.hook-form .btn{transition:box-shadow var(--dur) ease,transform var(--dur-fast) var(--ease-out),background var(--dur)}
.hook-form input:focus ~ .btn,.hook-form .btn:hover{box-shadow:0 0 22px rgba(236,151,130,.45)}
/* phone preview mockup */
.hook-preview{width:200px;height:400px;border-radius:32px;background:#0D0C08;padding:10px;
  box-shadow:var(--sh-lg)}
.hook-preview .scr{width:100%;height:100%;border-radius:24px;background:var(--surface-2);
  overflow:hidden;position:relative;border:1px solid var(--line)}
.hook-preview .pv-hd{height:120px;background-size:cover;background-position:center;
  display:flex;align-items:flex-end;padding:14px}
.hook-preview .pv-names{font-family:var(--font-display);font-style:italic;color:#fff;font-size:1.15rem;
  line-height:1.15;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.hook-preview .pv-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px 10px 58px}
.hook-preview .pv-grid i{display:block;aspect-ratio:1;border-radius:7px;background:var(--line) center/cover no-repeat}
.hook-preview .pv-add{position:absolute;left:14px;right:14px;bottom:14px;display:flex;
  align-items:center;justify-content:center;gap:6px;height:36px;border-radius:var(--r-pill);
  background:var(--accent-fill);color:var(--accent-on);font-family:var(--font-text);
  font-weight:600;font-size:.8rem;letter-spacing:.01em;box-shadow:0 6px 18px rgba(0,0,0,.28)}
.hook-preview .pv-add svg{width:15px;height:15px;flex:none}

/* =========================================================================
   PRICING (goldilocks) — shared card styles used on home + /cennik
   ========================================================================= */
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;align-items:stretch}
@media(max-width:860px){.plans{grid-template-columns:1fr;max-width:420px;margin:0 auto}}
.plan{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:2rem 1.6rem 1.7rem;box-shadow:var(--sh-sm);display:flex;flex-direction:column;gap:1rem;
  transition:transform var(--dur) var(--ease-out),box-shadow var(--dur) ease}
.plan:hover{transform:translateY(-6px);box-shadow:var(--sh-md)}
.plan.featured{border:1.5px solid var(--gold);background:var(--surface);box-shadow:var(--glow-gold);
  padding-top:2.6rem;animation:breathe 2.6s ease-in-out infinite}
@keyframes breathe{0%,100%{box-shadow:0 0 0 1px rgba(233,176,74,.4),0 8px 26px rgba(233,176,74,.16)}
  50%{box-shadow:0 0 0 1px rgba(233,176,74,.55),0 10px 36px rgba(233,176,74,.32)}}
@media(min-width:861px){.plan.featured{transform:translateY(-8px)}
  .plan.featured:hover{transform:translateY(-14px)}}
@media (prefers-reduced-motion: reduce){.plan.featured{animation:none}}
.plan-badge{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--gold);
  color:#1B1A12;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;
  padding:.32rem 1rem;border-radius:var(--r-pill);white-space:nowrap;box-shadow:0 4px 14px rgba(233,176,74,.4)}
.plan-name{font-family:var(--font-display);font-weight:560;font-size:1.4rem}
.plan-price{font-family:var(--font-display);font-weight:500;font-size:2.7rem;line-height:1}
.plan.featured .plan-price{color:var(--gold-deep)}
.plan-price small{display:block;font-family:var(--font-text);font-size:.82rem;color:var(--muted);
  margin-top:.4rem;font-weight:400}
.plan-feats{list-style:none;display:flex;flex-direction:column;gap:.55rem;font-size:.94rem;
  color:var(--muted);flex:1;text-align:left}
.plan-feats li{padding-left:1.7rem;position:relative}
.plan-feats li::before{content:"\2713";position:absolute;left:0;top:0;color:var(--gold);font-weight:700}
.plan-note{font-size:.86rem;font-weight:600;color:var(--gold-deep);text-align:center;
  margin:-.2rem 0 .2rem;padding:.4rem .6rem;background:var(--gold-soft);border-radius:var(--r-md)}
.plan .btn{width:100%}

/* =========================================================================
   INTEGRATIONS / BACKUP
   ========================================================================= */
.integr{display:grid;grid-template-columns:1fr auto;gap:clamp(1.6rem,4vw,3rem);align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);
  padding:clamp(1.8rem,4vw,2.8rem);box-shadow:var(--sh-sm)}
@media(max-width:760px){.integr{grid-template-columns:1fr;text-align:center}}
.integr h2{font-family:var(--font-display);font-weight:480;font-size:var(--fs-h2);line-height:var(--lh-snug);margin:.4rem 0 .6rem}
.integr p{color:var(--muted);max-width:52ch}
.integr .note{font-size:var(--fs-small);color:var(--gold-deep);margin-top:.8rem;font-weight:600}
.logos{display:flex;gap:1.4rem;justify-content:center}
.logos a{width:96px;height:96px;border-radius:var(--r-lg);display:flex;align-items:center;justify-content:center;
  background:var(--surface-2);border:1px solid var(--line);transition:transform var(--dur) var(--ease-out),box-shadow var(--dur)}
.logos svg{width:52px;height:52px;filter:grayscale(1);opacity:.7;transition:filter var(--dur),opacity var(--dur)}
.logos a:hover{transform:translateY(-4px);box-shadow:var(--sh-md)}
.logos a:hover svg{filter:none;opacity:1}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
@media(max-width:860px){.quotes{grid-template-columns:1fr;max-width:520px;margin:0 auto}}
.quote{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.8rem 1.6rem;box-shadow:var(--sh-sm);display:flex;flex-direction:column;gap:1.1rem}
.quote p{font-family:var(--font-display);font-size:1.14rem;font-style:italic;line-height:1.5;position:relative}
.quote p::before{content:"\201E";color:var(--gold);font-size:1.4em;line-height:0;vertical-align:-.35em;margin-right:.05em}
.q-who{display:flex;align-items:center;gap:.75rem;margin-top:auto}
.q-av{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:none;border:2px solid var(--gold-soft)}
.q-name{font-weight:600;font-size:.96rem}
.q-meta{font-size:.82rem;color:var(--muted)}

/* ---- testimonials carousel (JS-driven; one slide at a time) ---- */
.carousel{position:relative;max-width:640px;margin:0 auto;padding:0 3rem}
.carousel-viewport{overflow:hidden;border-radius:var(--r-lg)}
.carousel-track{display:flex;list-style:none;margin:0;padding:0;transition:transform .5s ease}
.carousel-slide{flex:0 0 100%;max-width:100%;box-sizing:border-box;padding:.3rem;display:flex}
.carousel-slide .quote{flex:1;min-height:230px}
.carousel-arrow{position:absolute;top:calc(50% - 1.2rem);transform:translateY(-50%);z-index:2;
  width:2.6rem;height:2.6rem;border-radius:50%;border:1px solid var(--line);background:var(--surface);
  color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:var(--sh-sm);transition:background var(--dur),border-color var(--dur)}
.carousel-arrow:hover{border-color:var(--gold)}
.carousel-arrow:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.carousel-arrow svg{width:1.15rem;height:1.15rem}
.carousel-arrow.prev{left:0}
.carousel-arrow.next{right:0}
.carousel-dots{display:flex;justify-content:center;gap:.55rem;margin-top:1.2rem;flex-wrap:wrap}
.carousel-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:var(--gold-soft);transition:background var(--dur),transform var(--dur)}
.carousel-dots button[aria-selected="true"]{background:var(--gold);transform:scale(1.25)}
.carousel-dots button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:560px){.carousel{padding:0 .5rem}.carousel-arrow{top:auto;bottom:-3.3rem;transform:none}
  .carousel-arrow.prev{left:calc(50% - 3.6rem)}.carousel-arrow.next{right:calc(50% - 3.6rem)}
  .carousel-dots{margin-top:4rem}}
@media (prefers-reduced-motion: reduce){.carousel-track{transition:none}}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq{max-width:720px;margin:0 auto}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  margin-bottom:.7rem;box-shadow:var(--sh-sm);overflow:hidden;border-left:3px solid transparent;
  transition:border-color var(--dur)}
.faq details[open]{border-left-color:var(--gold)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:1.1rem 1.3rem;font-family:var(--font-display);font-weight:560;font-size:1.1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--font-text);font-weight:400;font-size:1.5rem;color:var(--gold);
  line-height:1;transition:transform var(--dur);flex:none}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq-a{padding:0 1.3rem 1.15rem;color:var(--muted);font-size:.96rem}
.faq summary:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}

/* =========================================================================
   FINAL CTA (night, closes the narrative)
   ========================================================================= */
.finalcta{position:relative;overflow:hidden;text-align:center;isolation:isolate}
.finalcta::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(90% 80% at 20% 10%,rgba(233,176,74,.16),transparent 55%),
  radial-gradient(80% 70% at 82% 90%,rgba(236,151,130,.1),transparent 55%),var(--bg)}
.finalcta-in{max-width:760px;margin:0 auto;padding:clamp(3.5rem,8vw,6rem) var(--pad-x)}
.finalcta h2{font-family:var(--font-display);font-weight:440;font-size:var(--fs-h2);line-height:var(--lh-snug);
  margin:.6rem 0 1.6rem;text-wrap:balance}
.finalcta h2 em{font-style:italic;color:var(--gold-soft)}
.finalcta .fnote{color:var(--muted);font-size:var(--fs-small);margin-top:1rem}

/* =========================================================================
   FOOTER (day)
   ========================================================================= */
.foot{background:var(--surface-2);border-top:1px solid var(--line);padding:2.8rem var(--pad-x) 2.2rem}
.foot-in{max-width:var(--maxw);margin:0 auto;display:flex;flex-wrap:wrap;gap:1.5rem 2rem;
  justify-content:space-between;align-items:flex-start}
.foot .brand{font-size:1.3rem}
.foot-links{display:flex;gap:0 1.6rem;flex-wrap:wrap;font-size:.92rem;color:var(--muted)}
/* Vertical padding (not a font-size bump) brings each link's tap target to
   >=44px tall without changing the visible text size — touch-target fix. */
.foot-links a{display:inline-flex;align-items:center;padding:.68rem 0;transition:color .2s}
.foot-links a:hover{color:var(--gold)}
.foot-credits{max-width:var(--maxw);margin:1.8rem auto 0;padding-top:1.2rem;border-top:1px solid var(--line);
  font-size:.72rem;color:var(--muted);line-height:1.7}

/* =========================================================================
   SCROLL REVEAL + mobile sticky CTA
   ========================================================================= */
.reveal{opacity:0;transform:translateY(22px);transition:opacity var(--dur-slow) var(--ease-out),transform var(--dur-slow) var(--ease-out)}
.reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.09s}.reveal.d2{transition-delay:.18s}.reveal.d3{transition-delay:.27s}
html.no-js .reveal{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none}}

.mobile-cta{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;display:none;
  transform:translateY(140%);transition:transform var(--dur) var(--ease-out)}
.mobile-cta.show{transform:none}
.mobile-cta .btn{width:100%;box-shadow:var(--sh-lg)}
@media(max-width:720px){.mobile-cta{display:block}}
/* Cookie banner takes priority over the fixed CTA on mobile (both dock to the
   bottom edge and would otherwise overlap) — body.cc-open is toggled by
   consent.js for as long as the banner is visible. Generic hook: any brand's
   CSS can add its own `body.cc-open .some-fixed-element{display:none}` rule
   the same way, no JS changes required. */
body.cc-open .mobile-cta{display:none}

/* =========================================================================
   SCROLLABLE TABLE AFFORDANCE (generic)
   Any horizontally-scrollable table wrapper (overflow-x:auto) can add class
   "tbl-scroll" to get a right-edge fade cue that the content continues off-
   screen, and pair it with a "tbl-scroll-hint" <p> (shown on mobile only) for
   an explicit "swipe" nudge. Used by the plan-comparison table on
   /galeria-na-wesele; any other landing table can reuse both classes as-is.
   ========================================================================= */
.tbl-scroll{position:relative}
.tbl-scroll::after{content:"";position:absolute;top:0;right:0;bottom:0;width:28px;
  background:linear-gradient(90deg,transparent,var(--bg));pointer-events:none}
.tbl-scroll-hint{display:none;color:var(--muted);font-size:.82rem;margin:0 0 .5rem}
@media(max-width:640px){.tbl-scroll-hint{display:block}}

/* =========================================================================
   PRICING PAGE extras (/cennik)
   ========================================================================= */
.price-head{text-align:center;max-width:52ch;margin:0 auto clamp(2rem,4vw,3rem)}
.price-head h1{font-family:var(--font-display);font-weight:440;font-size:var(--fs-h2);
  line-height:var(--lh-snug);margin:.5rem 0 .7rem}
.cancel-note{max-width:560px;margin:0 auto 1.8rem;padding:.9rem 1.2rem;border-radius:var(--r-md);
  background:color-mix(in srgb,var(--blush) 20%,var(--surface));color:var(--ink);
  border:1px solid var(--blush);text-align:center;font-size:.95rem}
.free-strip{margin-top:1.8rem;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.4rem 1.6rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.free-strip h3{font-family:var(--font-display);font-weight:560;font-size:1.25rem}
.free-strip p{color:var(--muted);font-size:.9rem;max-width:54ch}
.free-strip .btn{flex:none}
.addons{margin-top:3.4rem}
.addons-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:1.5rem}
@media(max-width:700px){.addons-grid{grid-template-columns:1fr}}
.addon{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.7rem 1.5rem;box-shadow:var(--sh-sm);text-align:center;display:flex;flex-direction:column;gap:.7rem;
  transition:transform var(--dur) var(--ease-out),box-shadow var(--dur)}
.addon:hover{transform:translateY(-4px);box-shadow:var(--sh-md)}
.addon-price{font-family:var(--font-display);font-weight:500;font-size:1.7rem;color:var(--gold-deep)}
.addon .muted{color:var(--muted);font-size:.92rem}
.addon .btn{align-self:center}
.hint{color:var(--muted);font-size:.82rem;margin-top:.4rem}
.trust-row{display:flex;justify-content:center;gap:.6rem 2rem;flex-wrap:wrap;margin-top:1.6rem;
  font-size:.9rem;color:var(--muted)}
.trust-row span{display:inline-flex;align-items:center;gap:.4rem}
.trust-row span::before{content:"\2713";color:var(--gold)}

/* Mobile: the featured plan goes on top of the stack (design-direction §5 —
   on a narrow screen the visual "middle" does not exist). */
@media(max-width:860px){.plans{display:flex;flex-direction:column}}

/* =========================================================================
   THEME GLUE — night zones inside a light page
   ========================================================================= */
/* .night swaps the custom properties, but `color`/`background` set on <body>
   have already resolved against the day tokens and are inherited as concrete
   values. Re-declare them on .night so its descendants pick up night tokens
   regardless of the page-level theme. */
.night{background:var(--bg);color:var(--ink)}
/* The nav sits on the body (outside the hero), so a transparent bar over a
   light body would render night-cream text on cream. Keep the night nav on
   its own dark backdrop in both themes; .stuck still adds the blur mix. */
.nav.night{background:var(--bg)}
.nav.night.stuck{background:color-mix(in srgb,var(--bg) 86%,transparent)}
/* Dawn transition: keep the trust-band copy (warm-light text) on a solid dark
   backdrop and do the night->day gradient in an empty strip below it, so the
   text never lands on the light end of the blend in either theme. */
.trust{background:#16150F}
.trust::after{content:"";display:block;height:64px;background:linear-gradient(180deg,#16150F,var(--bg))}

/* Ken Burns drift on masonry photos — cinematic motion without video files */
.masonry img{transform-origin:center;transition:transform .6s ease}
@media (prefers-reduced-motion: no-preference){
  .masonry .ph{overflow:hidden}
  .masonry img{animation:kenburns 22s ease-in-out infinite alternate}
  .masonry .ph:nth-child(2n) img{animation-duration:26s;animation-delay:-8s}
  .masonry .ph:nth-child(3n) img{animation-duration:30s;animation-delay:-15s}
}
@keyframes kenburns{
  0%{transform:scale(1) translate(0,0)}
  100%{transform:scale(1.09) translate(1.5%,-1.5%)}
}
/* Mobile perf: the continuous Ken Burns compositing on every masonry photo is a
   scroll-jank source on phones (where the effect is barely visible anyway). Hold
   the photos still on small screens. */
@media (max-width:720px){
  .masonry img{animation:none}
}

/* Video tiles in masonry — behave exactly like photos */
.ph video{display:block;width:100%;height:auto;border-radius:inherit}




/* Justified gallery rows: flex-grow = aspect ratio -> equal height per row,
   flush edges, images keep natural proportions (no cropping) */
.masonry{columns:auto;display:flex;flex-direction:column;gap:1rem}
.m-row{display:flex;gap:1rem;align-items:stretch}
.m-row .ph{margin:0;flex:var(--ar) 1 0%;min-width:0;overflow:hidden}
.m-row .ph img,.m-row .ph video{width:100%;height:auto;display:block}
@media (max-width:720px){
  .m-row{flex-wrap:wrap}
  .m-row .ph{flex:1 1 calc(50% - .5rem)}
  .m-row .ph img,.m-row .ph video{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1.2}
}

/* Mobile sticky CTA must never hide the footer's legal links — reserve space */
@media (max-width:720px){
  footer{padding-bottom:calc(84px + env(safe-area-inset-bottom, 0px))}
}

/* Mobile perf: backdrop-filter blur (live-gallery panel in the hero + the stuck
   nav) is expensive to repaint while scrolling on phones. Swap the blur for a
   slightly more opaque solid fill — same look, none of the per-frame cost. */
@media (max-width:720px){
  .nav.night.stuck{backdrop-filter:none;background:var(--bg)}
  .panel-g{backdrop-filter:none;background:rgba(20,18,12,.82)}
}

/* =========================================================================
   HERO value-first inline entry (naweselu-style: names field + gold CTA)
   ========================================================================= */
.hero-start{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;
  max-width:47ch;margin-bottom:.2rem}
.hero-start-input{flex:1;min-width:230px;font:inherit;font-size:1rem;padding:.95rem 1.2rem;
  border-radius:var(--r-pill);border:1px solid var(--ghost-border);
  background:rgba(255,255,255,.05);color:var(--ink)}
.hero-start-input::placeholder{color:var(--muted)}
.hero-start-input:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-color:var(--gold)}
.hero-start .btn{flex:none}
.hero-copy .hero-start input:focus ~ .btn,.hero-start .btn:hover{box-shadow:var(--glow-gold)}
@media(max-width:900px){.hero-copy .hero-start{margin-inline:auto}}
@media(max-width:520px){.hero-start{flex-direction:column;align-items:stretch}
  .hero-start-input{min-width:0}.hero-start .btn{width:100%}}

/* Small phones (SEO/UX fix): on mobile the stage-wrap mockup renders ABOVE the
   hero copy (order:1 in the @media(max-width:900px) rule above, near .hero-in),
   so its height pushes the "Stwórz galerię" form below the fold. Tighten the
   vertical rhythm and shrink the mockup so the form still lands within a
   ~390x844 first viewport. CSS-only — marketing.js's fitStage() reads the
   shrunk stage-wrap width and scales the fixed 560x500 scene down to match,
   so nothing here fights the JS sizing. */
@media(max-width:520px){
  .hero-in{padding-top:1.3rem;padding-bottom:1.5rem;gap:1.1rem}
  .stage-wrap{max-width:270px}
  .hero-lead{margin-bottom:1.1rem}
  .hero-note{margin-top:.6rem}
}

/* =========================================================================
   STARTER OVERLAY — dismissible modal over the dimmed homepage (Option B)
   Always dark-brand (.night tokens), independent of the page section behind it.
   ========================================================================= */
body.starter-open{overflow:hidden}
/* the `hidden` attr (set by JS on close) must actually hide these — the position/
   display rules below would otherwise override it, leaving a transparent full-screen
   layer that swallows every click after the overlay is dismissed. */
.starter-backdrop[hidden],.starter[hidden]{display:none}
/* Translucent scrim, NOT a solid fill — the homepage (nav/hero) must read clearly
   through it, just dimmed. .74 alpha here used to crush to near-black when the
   overlay sat on top of the ALREADY-dark `.night` hero section (rgba(9,8,4,.74)
   over #16150F ≈ rgb(12,11,8) — indistinguishable from opaque black). Lowering
   the alpha into the .55-.65 band and adding the blur (both prefixed — Safari
   needs -webkit-) keeps the same near-black tint while letting detail bleed
   through instead of compounding into a black rectangle. */
.starter-backdrop{position:fixed;inset:0;z-index:100;background:rgba(9,8,4,.6);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;transition:opacity var(--dur) ease}
.starter-backdrop.show{opacity:1}
.starter{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;
  padding:clamp(1rem,4vw,2rem);opacity:0;transition:opacity var(--dur) ease}
.starter.show{opacity:1}
.starter-card{position:relative;width:min(440px,100%);max-height:92vh;overflow-y:auto;text-align:center;
  background:var(--surface);color:var(--ink);border:1px solid rgba(233,176,74,.28);
  border-radius:var(--r-xl);box-shadow:var(--sh-lg);padding:clamp(1.7rem,4vw,2.5rem);
  transform:translateY(14px) scale(.98);transition:transform var(--dur) var(--ease-out)}
.starter.show .starter-card{transform:none}
.starter-close{position:absolute;top:.6rem;right:.7rem;width:44px;height:44px;border-radius:var(--r-pill);
  background:transparent;border:none;color:var(--muted);font-size:2rem;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:color .2s ease}
.starter-close:hover{color:var(--gold)}
.starter-close:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.starter-h{font-family:var(--font-display);font-weight:480;font-size:clamp(1.5rem,1.2rem + 1.6vw,2rem);
  line-height:var(--lh-snug);margin:.5rem 0 .6rem;text-wrap:balance}
.starter-h em{font-style:italic;color:var(--gold-soft)}
.starter-lead{color:var(--muted);font-size:1rem;margin-bottom:1.5rem;text-wrap:pretty}
/* Validation error echoed from a failed POST /start/create (e.g. past date, empty
   names, throttle) — mirrors the wizard's .fw-alert.err on the .night/blush tokens. */
.starter-alert{border-radius:var(--r-sm);padding:.7rem .9rem;font-size:.92rem;text-align:left;
  color:var(--blush);background:rgba(210,116,92,.14);border:1px solid rgba(210,116,92,.35);
  margin:-.4rem 0 1rem}
.starter-form{display:flex;flex-direction:column;gap:1rem}
.starter-field{display:flex;flex-direction:column;gap:.35rem;text-align:left}
.starter-field span{font-size:.85rem;font-weight:600;color:var(--ink)}
.starter-field input{font:inherit;font-size:1rem;padding:.85rem 1.1rem;border-radius:var(--r-md);
  border:1px solid var(--ghost-border);background:rgba(255,255,255,.05);color:var(--ink)}
.starter-field input::placeholder{color:var(--muted)}
.starter-field input:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-color:var(--gold)}
.starter-field input[type=date]::-webkit-calendar-picker-indicator{filter:invert(.85);cursor:pointer}
.starter-submit{width:100%;margin-top:.3rem}
.starter-skip{background:transparent;border:none;color:var(--muted);font:inherit;font-size:.92rem;
  cursor:pointer;padding:.4rem;text-decoration:underline;text-underline-offset:2px;transition:color .2s ease}
.starter-skip:hover{color:var(--gold)}
@media (prefers-reduced-motion: reduce){
  .starter,.starter-backdrop,.starter-card{transition:none}
}

/* =========================================================================
   /CENNIK — FULL NIGHT THEME (owner decision 2026-07-14)
   The pricing page was originally built on the DAY palette, so clicking
   "Cennik" from the dark homepage caused a jarring light flash. This block
   makes /cennik render in the same cinematic night theme as the homepage.
   Scoped entirely to `body.pricing-night`, so the homepage's day sections are
   untouched — it just re-declares the shared .night token set on the pricing
   body. Every section (price-head, plan cards, free-strip, addons, FAQ,
   cancel-note, footer) then resolves the dark palette instead of the light
   default, and the nav gets `night` in the markup to match home exactly.
   Token values are identical to the shared .night set above for an exact
   visual match with the homepage.
   ========================================================================= */
body.pricing-night{
  --bg:#16150F; --surface:#201E16; --surface-2:#2A2820; --screen:#24221A;
  --ink:#F2ECDF; --muted:#A8A292; --line:#34322A;
  --gold:#E9B04A; --gold-soft:#F3CE86; --gold-deep:#C9862A; --sage:#8FA080; --blush:#EC9782;
  --accent-fill:var(--gold); --accent-on:#1B1A12; --ghost-border:rgba(242,236,223,.28);
  background:var(--bg);color:var(--ink);
}
/* Featured plan price: brighter candle-gold so it pops against the dark
   surface the way the homepage's primary elements do (large display text —
   clears WCAG AA-large on the dark card). */
body.pricing-night .plan.featured .plan-price{color:var(--gold-soft)}
/* Capacity-note pill: keep dark ink on the light-gold fill. Light-gold text on
   a light-gold fill would wash out; dark ink holds AA contrast. */
body.pricing-night .plan-note{color:#1B1A12}
