/* Strona startowa storage.decisr.pl (DecisR Magazyn): przewijana animacja porządkowania domu. Widok: things/welcome.blade.php */
/* Układ: lepka scena (canvas, przekrój domu) na 7 ekranów przewijania + karty rozdziałów; potem funkcje, start, CTA; na końcu notatki produkcyjne Higgsfield */
:root {
  --disp: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #080b24; --bg-2: #0e1433; --surface: #141b3a; --surface-2: #1b2450; --glass: rgba(14,20,51,.72);
  --line: rgba(255,255,255,.12); --line-strong: rgba(255,255,255,.26);
  --ink: #eef1ff; --muted: #b4bce6; --faint: #8791c0;
  --accent: #6f7dff; --accent-soft: rgba(111,125,255,.18); --accent-ink: #c9cfff;
  --yellow: #ffd84a; --on-yellow: #0c1030; --yellow-soft: rgba(255,216,74,.16);
  --green: #34d399; --green-soft: rgba(52,211,153,.16); --red: #ff8a7a;
  --sky1: #0a0f2e; --sky2: #2a2a5e; --sky3: #6b4a6e; --ground: #121a17; --night: 1;
  --shadow: 0 30px 70px rgba(3,6,30,.55);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #eef0fb; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #eceffb; --glass: rgba(255,255,255,.82);
  --line: rgba(12,16,48,.1); --line-strong: rgba(12,16,48,.22);
  --ink: #0c1030; --muted: #4a5280; --faint: #646b94;
  --accent: #2230d6; --accent-soft: rgba(34,48,214,.1); --accent-ink: #2230d6;
  --yellow-soft: rgba(255,216,74,.3); --green: #0a8f5b; --green-soft: rgba(10,143,91,.12); --red: #c2410c;
  --sky1: #7fb2e8; --sky2: #b9d6f2; --sky3: #f5d9b8; --ground: #5d7a4a; --night: 0;
  --shadow: 0 24px 50px rgba(12,16,48,.18);
} }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0fb; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #eceffb; --glass: rgba(255,255,255,.82);
  --line: rgba(12,16,48,.1); --line-strong: rgba(12,16,48,.22);
  --ink: #0c1030; --muted: #4a5280; --faint: #646b94;
  --accent: #2230d6; --accent-soft: rgba(34,48,214,.1); --accent-ink: #2230d6;
  --yellow-soft: rgba(255,216,74,.3); --green: #0a8f5b; --green-soft: rgba(10,143,91,.12); --red: #c2410c;
  --sky1: #7fb2e8; --sky2: #b9d6f2; --sky3: #f5d9b8; --ground: #5d7a4a; --night: 0;
  --shadow: 0 24px 50px rgba(12,16,48,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--disp); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 99px; font: 800 15.5px var(--body); text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--y { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 12px 28px rgba(255,216,74,.28); }
.btn--g { background: var(--glass); border-color: var(--line-strong); color: var(--ink); backdrop-filter: blur(8px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* Nawigacja */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); }
.nav__in { max-width: 1280px; margin: 10px auto 0; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 18px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(3,6,30,.25); }
.logo { font: 800 21px var(--disp); letter-spacing: -.05em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #ffd84a, #f59e0b); display: grid; place-items: center; font-style: normal; color: #0c1030; font-size: 14px; }
.logo small { font: 700 13px var(--body); color: var(--muted); letter-spacing: 0; }
.nav__links { display: flex; gap: 4px; margin-left: 10px; }
.nav__links a { padding: 8px 12px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav__sp { flex: 1; }
.themebtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--ink); display: grid; place-items: center; }
@media (max-width: 860px) { .nav__links, .nav .hide-m { display: none; } .nav__in { margin: 8px 10px 0; } }

/* Scena przewijania */
.story { position: relative; height: 700vh; height: 700svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.chapters { position: absolute; inset: 0; pointer-events: none; }
.ch { position: absolute; left: max(24px, 4vw); top: 50%; width: min(440px, 36vw); transform: translateY(-46%); opacity: 0; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.ch.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.ch__eb { display: inline-flex; align-items: center; gap: 8px; font: 800 12.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.ch h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: .98; margin: 12px 0 16px; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.ch h1 em { font-style: normal; color: var(--yellow); }
.ch h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; margin: 10px 0 12px; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.ch p { margin: 0; color: rgba(255,255,255,.88); font-size: 17px; text-shadow: 0 2px 14px rgba(0,0,0,.5); max-width: 42ch; }
.ch__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ch__hint { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-weight: 700; font-size: 14px; }
.ch__hint span { width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(255,255,255,.6); position: relative; }
.ch__hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,6,22,.72) 0%, rgba(4,6,22,.35) 32%, rgba(4,6,22,0) 52%); }

/* Karty aplikacji w scenie */
.ui { position: absolute; right: max(20px, 3vw); bottom: max(24px, 5vh); width: min(330px, 28vw); padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); box-shadow: var(--shadow); color: var(--ink); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.25,1.15); pointer-events: none; }
.ui.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ui__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ui__h b { font: 800 16px var(--disp); }
.ui small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font: 800 11.5px var(--body); background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.pill--y { background: var(--yellow-soft); color: var(--yellow); }
.pill--g { background: var(--green-soft); color: var(--green); }
:root[data-theme="light"] .pill--y { color: #7a5b00; }
.qrrow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
.qr { width: 76px; height: 76px; border-radius: 10px; background: #fff; padding: 6px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; }
.qr i { background: #0c1030; border-radius: 1px; }
.qr i.o { background: transparent; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); font-weight: 700; font-size: 14px; }
.list li.zero { background: var(--yellow-soft); }
.list li .chk { width: 18px; height: 18px; border-radius: 6px; background: var(--green); display: grid; place-items: center; color: #04281b; font-size: 12px; font-weight: 900; flex: none; }
.photo { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #222; }
.photo canvas { display: block; width: 100%; height: auto; }
.mk { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(255,216,74,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,216,74,.7); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255,216,74,0); } }
.phone { border-radius: 26px; padding: 10px; background: #0b0f26; border: 1px solid rgba(255,255,255,.18); }
.phone__cam { height: 120px; border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(160deg, #6b5440, #3d2c22); }
.phone__cam::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255,216,74,.9); border-radius: 12px; }
.phone__cam::after { content: ""; position: absolute; left: 14px; right: 14px; height: 2px; top: 20px; background: linear-gradient(90deg, transparent, #ffd84a, transparent); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 20px; } 50% { top: calc(100% - 22px); } }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 99px; background: var(--bg-2); border: 1.5px solid var(--green); box-shadow: 0 0 0 4px var(--green-soft); font-weight: 700; }
.search span.caret { width: 2px; height: 20px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-weight: 800; font-size: 14px; }
.path i { font-style: normal; color: var(--faint); }

/* Szyna pomieszczeń */
.rail { position: absolute; right: max(20px, 3vw); top: 96px; display: grid; gap: 6px; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); min-width: 210px; }
.rail__t { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 13px; color: var(--muted); padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.rail__t b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rail__bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 2px 4px 4px; }
.rail__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--green)); border-radius: inherit; }
.rail a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.rail a .st { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 11px; font-weight: 900; color: transparent; flex: none; transition: background .2s, border-color .2s; }
.rail a.is-now { color: var(--ink); background: var(--accent-soft); }
.rail a.is-now .st { border-color: var(--yellow); }
.rail a.is-done .st { background: var(--green); border-color: var(--green); color: #04281b; }
.rail a span.n { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .scrim { background: linear-gradient(0deg, rgba(4,6,22,.9) 0%, rgba(4,6,22,.6) 34%, rgba(4,6,22,0) 58%); }
  .ch { left: 16px; right: 16px; width: auto; top: auto; bottom: 22px; transform: translateY(12px); }
  .ch.is-on { transform: none; }
  .ch h1 { font-size: 40px; } .ch h2 { font-size: 28px; } .ch p { font-size: 15px; }
  .ui { width: auto; left: 16px; right: 16px; bottom: auto; top: 76px; padding: 12px; }
  .ui .photo, .ui .phone__cam { display: none; }
  .rail { display: none; }
}

/* Sekcje po scenie */
.sec { max-width: 1180px; margin: 0 auto; padding-block: 90px 20px; }
.sec__eb { font: 800 12.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.sec h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; margin: 10px 0 14px; max-width: 18ch; }
.sec > p { color: var(--muted); max-width: 60ch; font-size: 17px; margin: 0 0 30px; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat { grid-template-columns: minmax(0, 1fr); } }
.fc { padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.fc h3 { font-size: 20px; }
.fc p { margin: 0; color: var(--muted); font-size: 15px; }
.fc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 800 18px var(--disp); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 20px; border-radius: 22px; border: 1.5px dashed var(--line-strong); display: grid; gap: 6px; }
.step b { font: 800 34px var(--disp); color: var(--yellow); }
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cta { margin: 80px auto 0; max-width: 1180px; padding: 46px; border-radius: 32px; background: linear-gradient(135deg, #2230d6, #4a3bd6 55%, #6f7dff); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(30px, 3.6vw, 46px); }
.cta p { margin: 8px 0 0; color: rgba(255,255,255,.85); max-width: 52ch; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 28px; } }
.foot { max-width: 1180px; margin: 0 auto; padding-block: 40px 30px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; color: var(--faint); font-size: 14px; font-weight: 600; }
.foot a { text-decoration: none; }

/* Notatki do makiety */
.notes { max-width: 1180px; margin: 50px auto 0; padding-block: 0 60px; }
.notes__box { border-radius: 26px; border: 1.5px dashed var(--line-strong); padding: 26px; background: var(--bg-2); }
.notes h2 { font-size: 30px; margin-bottom: 6px; }
.notes h3 { font-size: 19px; margin: 24px 0 10px; }
.notes p, .notes li { color: var(--muted); font-size: 15px; }
.notes ul, .notes ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.notes b { color: var(--ink); }
.notes code { font: 700 13px ui-monospace, Consolas, monospace; color: var(--accent-ink); }
.tbl { overflow-x: auto; margin-top: 8px; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.tbl th { text-align: left; font: 800 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.prompt { display: block; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font: 600 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.copy { margin-top: 6px; border: 1px solid var(--line-strong); background: none; color: var(--accent-ink); border-radius: 99px; padding: 3px 10px; font: 800 12px var(--body); }
.warn { padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); font-weight: 600; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
