/* mBursa how-to (/przewodnik/): hero with device stack, film, role-based step player, day timeline, access matrix. */
:root {
  --bg: #EEF3EF; --surface: #FFFFFF; --sunk: #E3EBE5; --ink: #0F2219; --muted: #566A60; --line: #CFDCD3;
  --accent: #1E5C43; --accent-ink: #FFFFFF; --accent-soft: #D5E9DD; --signal: #E39A2B; --signal-ink: #2A1A00;
  --shadow: 0 30px 70px -30px rgba(15, 45, 30, .45);
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1611; --surface: #12211A; --sunk: #0E1B15; --ink: #E6F0EA; --muted: #9AB0A4; --line: #23382D;
    --accent: #7ED3A6; --accent-ink: #062014; --accent-soft: #173527; --signal: #F2B552; --signal-ink: #2A1A00;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.howto { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
.howto img { max-width: 100%; }
.howto .wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.howto h1, .howto h2, .howto h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; margin: 0; }
.howto .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.howto a { color: var(--accent); }
.howto :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.howto-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.howto-top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.howto-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink) !important; text-decoration: none; }
.howto-logo img { width: 34px; height: 34px; }
.howto-logo small { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.howto-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.howto-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.howto-nav a:hover { color: var(--ink); background: var(--sunk); }
.howto-nav a.login { color: var(--accent-ink); background: var(--accent); }

.hero { padding-block: 64px 32px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 82px); font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 15px var(--body); border-radius: 999px; padding: 12px 20px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) !important; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink) !important; border-color: transparent; }
.btn:hover { transform: translateY(-1px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; max-width: 520px; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-family: var(--display); font-size: 30px; letter-spacing: -0.03em; }
.facts span { font-size: 13px; color: var(--muted); }
.stack { position: relative; aspect-ratio: 16 / 11.5; perspective: 1800px; }
.stack .desk { position: absolute; left: 0; top: 4%; width: 88%; transform: rotateY(-12deg) rotateX(4deg); transform-origin: 0 50%; animation: drift 9s ease-in-out infinite alternate; }
.stack .mob { position: absolute; right: 0; bottom: 0; width: 27%; transform: rotateY(-8deg); animation: drift 7s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }

.frame { position: relative; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.frame .chrome { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.frame .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame .chrome span { margin-left: 10px; font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { display: block; width: 100%; height: auto; }
.phone { position: relative; background: #050A08; border-radius: 32px; padding: 8px; box-shadow: var(--shadow), 0 0 0 1.5px #2C3B33; }
.phone img { display: block; width: 100%; border-radius: 25px; }

.howto section { padding-block: 56px; scroll-margin-top: 64px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 46em; }
.sec-head h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }

.film { border-radius: 22px; overflow: hidden; background: #08130F; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; display: block; }
.film-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .06em; }

.roles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.role { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.role b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.role small { color: var(--muted); font-size: 13px; }
.role[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.role[aria-selected="true"] small { color: inherit; opacity: .8; }
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.rail button { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; text-align: left; font: 600 15px var(--body); color: var(--muted); background: none; border: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.rail button span { font: 500 12px var(--mono); color: var(--muted); }
.rail button:hover { background: var(--sunk); color: var(--ink); }
.rail button[aria-current="step"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.rail button[aria-current="step"] span { color: var(--accent); }
.player { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stage { position: relative; display: grid; place-items: center; background: radial-gradient(120% 90% at 70% 0%, var(--accent-soft), transparent 70%), var(--sunk); border-radius: 24px; padding: clamp(14px, 3vw, 36px); overflow: hidden; }
.stage .shot { position: relative; width: 100%; }
.stage.is-phone .shot { width: min(340px, 78%); }
.stage .shot.enter { animation: enter .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.spots { position: absolute; inset: 0; }
.frame .spots { top: 30px; }
.phone .spots { inset: 8px; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--signal); color: var(--signal-ink); font: 700 13px var(--mono); box-shadow: 0 6px 18px rgba(0,0,0,.3); display: grid; place-items: center; padding: 0; }
.spot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; }
.spot.active::after { animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.tip { position: absolute; z-index: 3; max-width: 240px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; line-height: 1.35; pointer-events: none; transform: translate(-50%, calc(-100% - 24px)); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.tip.below { transform: translate(-50%, 24px); }
.notes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.notes h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.notes .lead { color: var(--muted); font-size: 17px; margin: 12px 0 0; max-width: 40em; }
.open-view { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; }
.howto-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.howto-box h4 { margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.howto-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.spotlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.spotlist button { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; }
.spotlist button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font: 700 11px var(--mono); }
.spotlist button.active { border-color: var(--signal); }
.spotlist button.active b { background: var(--signal); color: var(--signal-ink); }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.controls .count { font: 500 13px var(--mono); color: var(--muted); margin-right: auto; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--signal)); }
.kbd { font: 500 12px var(--mono); color: var(--muted); }

.day { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.moment { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.moment time { font: 500 13px var(--mono); color: var(--accent); }
.moment h3 { font-size: 21px; font-weight: 700; }
.moment p { margin: 0; color: var(--muted); font-size: 15px; }
.moment a { font-weight: 600; font-size: 14px; margin-top: auto; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.howto table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.howto th, .howto td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.howto thead th { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.howto tbody tr:last-child td { border-bottom: 0; }
.howto td.c { text-align: center; }
.yes, .no, .own { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.yes { background: var(--accent-soft); color: var(--accent); }
.no { color: var(--muted); }
.own { background: color-mix(in srgb, var(--signal) 22%, transparent); color: var(--ink); }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.howto-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.howto-foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-block: 36px 16px; }
  .tour { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .rail button { flex: none; grid-template-columns: auto auto; }
  .notes { grid-template-columns: 1fr; }
  .howto-nav a:not(.login) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .howto *, .howto *::before, .howto *::after { animation: none !important; transition: none !important; }
}
