/* guide.css - "Jak działa Privio" (przewodnik).
   Style przewodnika dopasowane do systemu designu strony (styles.css):
   zmienne przewodnika (--ground/--accent/--ink-soft...) aliasowane do tokenów strony,
   a --surface/--surface-2/--line/--ink/--shadow dziedziczą się z :root strony,
   więc tryb jasny/ciemny działa tak samo jak na reszcie serwisu.
   Wszystkie selektory zawężone pod .guide2, żeby nie kolidowały ze stroną. */

.guide2{
  --ground:var(--bg);
  --ink-soft:var(--ink-2);
  --ink-faint:var(--ink-3);
  --line-strong:color-mix(in srgb, var(--ink-3) 42%, var(--line));
  --accent:var(--primary);
  --accent-ink:var(--primary);
  --accent-soft:color-mix(in srgb, var(--primary) 12%, var(--surface));
  --unlocked:var(--ok);
  --locked:#C6841F;
  --shadow-lift:var(--shadow-lg);
  --radius:16px;

  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.62;
  color:var(--ink);
}

.guide2 .mono{font-family:var(--mono)}
.guide2 code{font-family:var(--mono); font-size:.9em;
  background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:1px 6px}

.guide2 .shell{display:grid; grid-template-columns:230px minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:start}
@media (max-width:860px){.guide2 .shell{grid-template-columns:1fr}}

/* hero */
.guide2 .g-hero{padding:clamp(34px,6vw,60px) 0 30px; border-bottom:1px solid var(--line)}
.guide2 .eyebrow{display:inline-flex; align-items:center; gap:9px; font-size:12.5px; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase; color:var(--accent-ink);
  background:var(--accent-soft); padding:6px 13px; border-radius:100px; margin:0}
.guide2 .g-hero h1{font-size:clamp(2.2rem,5.4vw,3.7rem); line-height:1.04; font-weight:900;
  font-family:var(--round); letter-spacing:-.02em; margin:20px 0 0; text-wrap:balance; max-width:18ch}
.guide2 .g-hero .lede{font-size:clamp(1.04rem,2vw,1.24rem); color:var(--ink-soft); max-width:62ch;
  margin:18px 0 0; font-weight:600}

/* spis treści (sidebar) */
.guide2 .toc{position:sticky; top:82px; align-self:start; font-size:14.5px}
@media (max-width:860px){.guide2 .toc{position:static; margin:22px 0 4px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:8px}}
.guide2 .toc ol{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px}
@media (max-width:860px){.guide2 .toc ol{flex-direction:row; flex-wrap:wrap}}
.guide2 .toc a{display:flex; gap:10px; align-items:baseline; text-decoration:none; color:var(--ink-soft);
  padding:8px 12px; border-radius:9px; font-weight:700; border:1px solid transparent; transition:.15s}
.guide2 .toc a .num{font-family:var(--mono); font-size:12px; color:var(--ink-faint); font-weight:600}
.guide2 .toc a:hover{background:var(--surface); color:var(--ink)}
.guide2 .toc a.active{background:var(--accent-soft); color:var(--accent-ink); border-color:var(--line)}
.guide2 .toc a.active .num{color:var(--accent-ink)}

/* treść */
.guide2 .gbody{padding-bottom:80px}
.guide2 .gbody section{padding:46px 0 8px; scroll-margin-top:88px}
.guide2 .gbody section+section{border-top:1px solid var(--line)}
.guide2 .s-kicker{font-family:var(--mono); font-size:12.5px; font-weight:600; letter-spacing:.08em;
  color:var(--accent-ink); text-transform:uppercase}
.guide2 h2{font-size:clamp(1.55rem,3.3vw,2.15rem); font-weight:900; font-family:var(--round);
  letter-spacing:-.018em; margin:10px 0 0; text-wrap:balance}
.guide2 h3{font-size:1.14rem; font-weight:800; font-family:var(--round); margin:30px 0 8px; letter-spacing:-.01em}
.guide2 p{margin:14px 0; max-width:70ch}
.guide2 .lead{font-size:1.07rem; color:var(--ink-soft); font-weight:600; max-width:66ch}
.guide2 strong{font-weight:800}

.guide2 .note{border-left:3px solid var(--accent); background:var(--accent-soft); border-radius:0 11px 11px 0;
  padding:15px 18px; margin:20px 0; font-size:14.5px; font-weight:600; color:var(--ink)}
.guide2 .note b{color:var(--accent-ink)}
.guide2 .note.good{border-color:var(--unlocked); background:color-mix(in srgb,var(--unlocked) 12%,var(--surface))}
.guide2 .note.good b{color:var(--unlocked)}
.guide2 .note .h{display:block; font-weight:900; margin-bottom:4px; font-size:13px; letter-spacing:.05em; text-transform:uppercase}

/* karty technologii */
.guide2 .tech{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:22px}
@media (max-width:720px){.guide2 .tech{grid-template-columns:1fr}}
.guide2 .tcard{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; box-shadow:var(--shadow)}
.guide2 .tcard .top{display:flex; align-items:center; gap:12px; margin-bottom:4px}
.guide2 .tcard .ic{width:40px; height:40px; border-radius:11px; display:grid; place-items:center; font-size:20px;
  background:var(--accent-soft); flex:none}
.guide2 .tcard h4{margin:0; font-size:1.06rem; font-weight:900; font-family:var(--round)}
.guide2 .tcard .sub{font-size:12px; font-weight:700; color:var(--ink-faint); font-family:var(--mono); text-transform:uppercase; letter-spacing:.04em}
.guide2 .tcard p{margin:12px 0 0; font-size:14px; color:var(--ink-soft); max-width:none}
.guide2 .tcard .why{margin-top:12px; border-top:1px dashed var(--line); padding-top:12px; font-size:13.5px}
.guide2 .tcard .why b{color:var(--accent-ink); display:block; margin-bottom:2px; font-size:12px; letter-spacing:.04em; text-transform:uppercase}

/* mapa polaczen (hub) */
.guide2 .hubwrap{margin-top:22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:12px 12px 6px}
.guide2 .hub{width:100%; height:auto; display:block}
.guide2 .hub .link{stroke:var(--line-strong); stroke-width:2}
.guide2 .hub .link.hot{stroke:var(--accent); stroke-width:3}
.guide2 .hub .node{fill:var(--surface-2); stroke:var(--line); stroke-width:1.5; cursor:pointer; transition:.15s}
.guide2 .hub .node:hover{stroke:var(--accent)}
.guide2 .hub .node.hot{fill:var(--accent-soft); stroke:var(--accent); stroke-width:2.5}
.guide2 .hub .center{fill:var(--accent); stroke:none}
.guide2 .hub .nlabel{fill:var(--ink); font-family:var(--round); font-weight:800; font-size:14px; pointer-events:none}
.guide2 .hub .clabel{fill:#fff; font-family:var(--round); font-weight:900; font-size:19px; pointer-events:none}
.guide2 .hubdetail{margin-top:8px; padding:16px 18px; border-top:1px solid var(--line)}
.guide2 .hubdetail .who{font-weight:900; font-size:1.02rem; margin-bottom:2px}
.guide2 .hubdetail .ask{font-size:13px; font-weight:800; color:var(--accent-ink); text-transform:uppercase; letter-spacing:.04em; margin-top:10px}
.guide2 .hubdetail p{margin:6px 0 0; font-size:14.5px; color:var(--ink-soft); max-width:none}
.guide2 .hubhint{font-size:12.5px; color:var(--ink-faint); font-weight:700; text-align:center; padding:4px 0 8px}

/* scenariusze */
.guide2 .scen{display:flex; flex-wrap:wrap; gap:8px; margin-top:22px}
.guide2 .scenb{font-family:inherit; font-size:14px; font-weight:800; padding:10px 15px; border-radius:100px; cursor:pointer;
  border:1px solid var(--line); background:var(--surface); color:var(--ink-soft); transition:.15s; display:flex; gap:8px; align-items:center}
.guide2 .scenb:hover{color:var(--ink); border-color:var(--line-strong)}
.guide2 .scenb.on{background:var(--ink); color:var(--ground); border-color:var(--ink)}
.guide2 .scenb .em{font-size:16px}
.guide2 .flowbox{margin-top:16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(16px,2.4vw,24px)}
.guide2 .flowtitle{font-weight:900; font-size:1.08rem; margin:0 0 4px; font-family:var(--round)}
.guide2 .flowsub{font-size:13.5px; color:var(--ink-faint); font-weight:700; margin:0 0 6px}
.guide2 .steps{margin-top:10px}
.guide2 .step{display:grid; grid-template-columns:30px 1fr; gap:14px; padding:12px 8px; border-top:1px solid var(--line); align-items:start}
.guide2 .step:first-child{border-top:none}
.guide2 .step .num{width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-weight:900;
  font-family:var(--mono); font-size:13px; background:var(--accent-soft); color:var(--accent-ink); flex:none}
.guide2 .step .txt{font-size:14.5px; font-weight:600}
.guide2 .step .txt .lead2{font-weight:800; color:var(--ink)}
.guide2 .step .sys{display:inline-block; margin-top:5px; font-size:11.5px; font-weight:800; color:var(--accent-ink);
  background:var(--accent-soft); border-radius:6px; padding:2px 8px; letter-spacing:.02em}

/* mechanizmy (akordeon) */
.guide2 .mech{margin-top:20px; display:flex; flex-direction:column; gap:10px}
.guide2 .mitem{border:1px solid var(--line); border-radius:12px; background:var(--surface); overflow:hidden; box-shadow:var(--shadow)}
.guide2 .mhead{display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center; padding:16px 18px;
  cursor:pointer; width:100%; border:none; background:none; text-align:left; font-family:inherit; color:inherit; font-size:15.5px; font-weight:800}
.guide2 .mhead:hover{background:var(--surface-2)}
.guide2 .mtoggle{width:26px; height:26px; border-radius:7px; display:grid; place-items:center; background:var(--surface-2);
  color:var(--ink-soft); font-weight:900; transition:.2s; flex:none; font-size:18px; line-height:1}
.guide2 .mitem.open .mtoggle{transform:rotate(45deg); background:var(--accent); color:#fff}
.guide2 .mbody{display:none; padding:0 18px 18px; border-top:1px solid var(--line)}
.guide2 .mitem.open .mbody{display:block}
.guide2 .mbody p{margin:14px 0 0; font-size:14.5px; color:var(--ink-soft); max-width:none}

/* poziomy trudnosci */
.guide2 .lvl{display:inline-flex; gap:3px; margin-left:4px; vertical-align:middle}
.guide2 .lvl i{width:8px; height:8px; border-radius:50%; background:var(--line-strong)}
.guide2 .lvl i.on{background:var(--accent)}

/* siatka 2-kol + podpisy + kod */
.guide2 .g2{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px}
@media (max-width:720px){.guide2 .g2{grid-template-columns:1fr}}
.guide2 .cap{font-size:12px; color:var(--ink-faint); font-family:var(--mono); margin:18px 0 -6px; letter-spacing:.01em}
.guide2 pre.cx{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:15px 17px;
  overflow-x:auto; font-family:var(--mono); font-size:13px; line-height:1.7;
  box-shadow:var(--shadow); margin:14px 0; color:var(--ink); white-space:pre}
.guide2 pre.cx .kw{color:var(--accent-ink); font-weight:600}
.guide2 pre.cx .cm{color:var(--unlocked); font-style:italic}

/* rozwijane szczegoly */
.guide2 details.dd{border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:var(--shadow); overflow:hidden; margin:10px 0}
.guide2 details.dd>summary{list-style:none; cursor:pointer; padding:15px 18px; font-weight:800; font-size:15px;
  display:flex; justify-content:space-between; align-items:center; gap:12px}
.guide2 details.dd>summary::-webkit-details-marker{display:none}
.guide2 details.dd>summary::after{content:"+"; width:26px; height:26px; border-radius:7px; background:var(--surface-2);
  color:var(--ink-soft); display:grid; place-items:center; font-weight:900; font-size:18px; line-height:1; flex:none; transition:transform .2s}
.guide2 details.dd[open]>summary::after{transform:rotate(45deg); background:var(--accent); color:#fff}
.guide2 details.dd>summary:hover{background:var(--surface-2)}
.guide2 details.dd .ddbody{padding:0 18px 18px; border-top:1px solid var(--line)}
.guide2 details.dd .ddbody p{margin:14px 0 0; color:var(--ink-soft); font-size:14.5px; max-width:none}

/* tabela Apple Watch */
.guide2 .awtabwrap{overflow-x:auto; margin-top:14px}
.guide2 .awtab{width:100%; border-collapse:collapse; font-size:14px; min-width:340px}
.guide2 .awtab th,.guide2 .awtab td{text-align:left; padding:9px 12px; border-bottom:1px solid var(--line)}
.guide2 .awtab th{font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-faint); font-weight:800}
.guide2 .awtab td{color:var(--ink-soft); font-weight:600}
.guide2 .awtab td b{color:var(--ink)}
.guide2 .awtab tr:last-child td{border-bottom:none}
