/* ==========================================================================
   app.manawaflow.pl — HUB PRODUKTÓW (strona główna) i STRONY APLIKACJI
   (/celo/, /talko/). Dokłada się do css/app-wow.css (klasy .aw-*), nie
   zastępuje go: te same kolory, czcionki (Poppins + Lato) i ostre kąty.
   ========================================================================== */

/* ---------- HERO strony głównej: konstelacja produktów ---------- */
.hub-stack {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    perspective: 1400px;
}
.hub-chip {
    --tool-accent: #b56bff;
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px 20px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    animation: hubFloat 7s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.hub-chip::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--tool-accent), var(--aw-gold));
}
.hub-chip::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
    background: var(--tool-accent); opacity: 0.22; filter: blur(40px);
    pointer-events: none;
}
.hub-chip:hover { border-color: rgba(253, 197, 0, 0.55); background: rgba(255, 255, 255, 0.1); }
.hub-chip:nth-child(odd) { transform: translateY(18px); }
.hub-chip.is-big { grid-column: span 2; }
.hub-chip i {
    font-style: normal; font-size: 1.3rem; line-height: 1;
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tool-accent), color-mix(in srgb, var(--tool-accent) 50%, #0a0c12));
    box-shadow: 0 10px 24px -10px var(--tool-accent);
    margin-bottom: 6px;
}
.hub-chip b { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.hub-chip small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); line-height: 1.45; }
.hub-chip em {
    font-style: normal; font-family: var(--font-head); font-size: 0.64rem; font-weight: 600;
    letter-spacing: 1.4px; text-transform: uppercase; color: var(--aw-gold);
}
@keyframes hubFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

/* ---------- OD CZEGO ZACZĄĆ (dobór do celu) ---------- */
.hub-pick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.hub-pick a {
    --tool-accent: #6A0DAD;
    position: relative;
    display: flex; flex-direction: column; gap: 14px;
    padding: 26px 24px 22px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--color-dark);
    text-decoration: none;
    transition: transform 0.45s var(--aw-ease), border-color 0.3s ease, box-shadow 0.45s ease;
}
.hub-pick a::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--tool-accent), var(--aw-gold));
    transform: scaleX(0.2); transform-origin: left; transition: transform 0.5s var(--aw-ease);
}
.hub-pick a:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tool-accent) 45%, transparent); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--tool-accent) 60%, rgba(15, 18, 25, 0.5)); }
.hub-pick a:hover::before { transform: scaleX(1); }
.hub-pick q {
    quotes: '„' '”';
    font-family: var(--font-head); font-size: 1.02rem; font-weight: 500; line-height: 1.45;
}
.hub-pick span {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--line);
    font-family: var(--font-head); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--tool-accent);
}
.hub-pick span i { font-style: normal; transition: transform 0.3s var(--aw-ease); }
.hub-pick a:hover span i { transform: translateX(5px); }

/* ---------- KARTA NARZĘDZIA: dwa przyciski + próbka ---------- */
.tool-card[data-href] { cursor: pointer; }
.tool-name a { color: inherit; text-decoration: none; }
.tool-name a:hover { color: var(--tool-accent); }
.tool-foot { align-items: center; flex-wrap: wrap; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tool-btn i { font-style: normal; transition: transform 0.3s var(--aw-ease); }
.tool-btn:hover i { transform: translateX(4px); }
.tool-btn.is-line { border: 1px solid var(--color-dark); color: var(--color-dark); background: #fff; }
.tool-btn.is-line:hover { border-color: var(--tool-accent); color: var(--tool-accent); }
.tool-btn.is-buy { background: var(--color-dark); color: #fff; border: 1px solid var(--color-dark); }
.tool-btn.is-buy:hover { background: var(--tool-accent); border-color: var(--tool-accent); box-shadow: 0 12px 26px -10px var(--tool-accent); }
.tool-try {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
    color: var(--tool-accent); text-decoration: none;
}
.tool-try i { font-style: normal; transition: transform 0.3s var(--aw-ease); }
.tool-try:hover i { transform: translateX(4px); }

/* ---------- PORÓWNANIE ---------- */
.hub-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #fff; }
.hub-compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 0.92rem; }
.hub-compare th, .hub-compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hub-compare thead th {
    font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
    color: var(--ink-mut); background: var(--bg-soft);
}
.hub-compare tbody tr:last-child td { border-bottom: none; }
.hub-compare td:first-child { min-width: 210px; }
.hub-compare td:first-child a { display: flex; align-items: center; gap: 12px; color: var(--color-dark); text-decoration: none; }
.hub-compare td:first-child a:hover b { color: var(--tool-accent); }
.hub-compare td:first-child i {
    font-style: normal; flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, var(--tool-accent), color-mix(in srgb, var(--tool-accent) 55%, #0a0c12));
}
.hub-compare td:first-child b { font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.hub-compare .is-price { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.hub-compare .is-free { color: #0B8A7E; font-weight: 700; }

/* ==========================================================================
   STRONA APLIKACJI (/celo/, /talko/)
   ========================================================================== */
.pp-hero .aw-title { font-size: clamp(2.4rem, 4vw, 4rem); }
.pp-hero-price {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    margin: -12px 0 30px;
    font-family: var(--font-head);
}
.pp-hero-price b { font-size: 2rem; font-weight: 600; color: #fff; }
.pp-hero-price s { color: rgba(255, 255, 255, 0.5); }
.pp-hero-price span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); }

/* makieta telefonu */
.pp-phone-wrap { position: relative; display: flex; justify-content: center; }
.pp-phone {
    position: relative;
    width: min(320px, 82vw);
    aspect-ratio: 9 / 18.5;
    padding: 12px;
    background: linear-gradient(160deg, #26262f, #0b0b10);
    border-radius: 44px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 120px -40px rgba(181, 107, 255, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    animation: hubFloat 8s ease-in-out infinite;
}
.pp-phone::before {
    content: ''; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px;
    transform: translateX(-50%); background: #0b0b10; border-radius: 14px; z-index: 2;
}
.pp-screen {
    position: relative; height: 100%; overflow: hidden;
    border-radius: 34px;
    background: var(--pp-screen-bg, linear-gradient(180deg, #F6F4FF, #ECE8FB));
    color: #17132E;
    padding: 54px 16px 16px;
    display: flex; flex-direction: column; gap: 10px;
    font-family: var(--font-body);
}
.pp-screen .ps-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; }
.pp-screen .ps-pill { padding: 4px 9px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(23, 19, 46, 0.08); font-size: 0.7rem; }
.pp-screen .ps-card {
    padding: 14px; border-radius: 16px; background: #fff;
    box-shadow: 0 6px 18px -8px rgba(23, 19, 46, 0.2);
}
.pp-screen .ps-hero { color: #fff; background: var(--pp-grad, linear-gradient(120deg, #7C3AED, #DB2777 60%, #F5B83D)); }
.pp-screen .ps-hero small { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.85; }
.pp-screen .ps-hero b { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-top: 4px; }
.pp-screen .ps-k { font-size: 0.58rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6E6889; }
.pp-screen .ps-t { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; margin: 4px 0 8px; line-height: 1.35; }
.pp-screen .ps-opt {
    display: block; padding: 8px 10px; margin-top: 6px; border-radius: 10px;
    border: 1.5px solid #E7E2F6; font-size: 0.72rem; line-height: 1.35;
}
.pp-screen .ps-opt.on { border-color: #16a34a; background: #ECFDF3; }
.pp-screen .ps-bar { height: 6px; border-radius: 6px; background: #ECE8FB; overflow: hidden; margin-top: 8px; }
.pp-screen .ps-bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--pp-grad, linear-gradient(90deg, #7C3AED, #DB2777)); }
.pp-screen .ps-row { display: flex; gap: 8px; }
.pp-screen .ps-row .ps-card { flex: 1; text-align: center; padding: 10px 6px; }
.pp-screen .ps-row b { display: block; font-family: var(--font-head); font-size: 1rem; }
.pp-screen .ps-row small { font-size: 0.58rem; color: #6E6889; }
.pp-screen .ps-bubble { max-width: 85%; padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 0.72rem; line-height: 1.4; box-shadow: 0 4px 12px -6px rgba(23, 19, 46, 0.25); }
.pp-screen .ps-bubble.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--pp-me, #DCFCE7); }
.pp-screen .ps-who { font-size: 0.58rem; font-weight: 700; color: #6E6889; margin-bottom: 2px; }
.pp-float {
    position: absolute; z-index: 3;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: #fff; font-family: var(--font-head);
    animation: hubFloat 6s ease-in-out infinite;
}
.pp-float b { display: block; font-size: 1.1rem; font-weight: 600; color: var(--aw-gold); }
.pp-float span { font-size: 0.7rem; color: rgba(255, 255, 255, 0.72); }
.pp-float { padding: 9px 13px; }
.pp-float b { font-size: 1rem; }
.pp-float.f1 { left: -8%; top: 3%; }
.pp-float.f2 { right: -8%; bottom: 22%; animation-delay: -2s; }
.pp-float.f3 { left: -8%; bottom: 3%; animation-delay: -4s; }

/* problem → rozwiązanie */
.pp-pain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pp-pain div { padding: 26px 24px; background: #fff; border: 1px solid var(--line); }
.pp-pain b { display: block; font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.pp-pain p { margin: 0; font-size: 0.94rem; line-height: 1.65; color: var(--ink-mut); }
.pp-pain p strong { color: var(--color-dark); }

/* programy / światy tydzień po tygodniu */
.pp-programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pp-prog {
    --tool-accent: #6A0DAD;
    position: relative; background: #fff; border: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.pp-prog::before { content: ''; height: 4px; background: linear-gradient(90deg, var(--tool-accent), var(--aw-gold)); }
.pp-prog-head { padding: 26px 26px 18px; }
.pp-prog-head small { font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--tool-accent); }
.pp-prog-head h3 { margin: 6px 0 8px; font-size: 1.4rem; font-weight: 600; }
.pp-prog-head p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--ink-mut); }
.pp-weeks { list-style: none; margin: 0; padding: 0 26px 24px; display: flex; flex-direction: column; }
.pp-weeks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.pp-weeks li > i {
    font-style: normal; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 0.74rem; font-weight: 700;
    color: var(--tool-accent); background: color-mix(in srgb, var(--tool-accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--tool-accent) 30%, transparent);
}
.pp-weeks b { display: block; font-family: var(--font-head); font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.pp-weeks span { display: block; margin-top: 2px; font-size: 0.84rem; line-height: 1.5; color: var(--ink-mut); }

/* anatomia lekcji */
.pp-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; counter-reset: ppf; border: 1px solid var(--line); background: #fff; }
.pp-flow div { position: relative; padding: 26px 22px; border-right: 1px solid var(--line); counter-increment: ppf; }
.pp-flow div:last-child { border-right: none; }
.pp-flow div::before {
    content: counter(ppf, decimal-leading-zero);
    display: block; margin-bottom: 14px;
    font-family: var(--font-head); font-size: 1.6rem; font-weight: 200; color: var(--color-accent-1);
}
.pp-flow b { display: block; font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; margin-bottom: 6px; }
.pp-flow p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--ink-mut); }

/* fundamenty merytoryczne */
.pp-science { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; }
.pp-science div { padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--color-accent-1); }
.pp-science b { display: block; font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; }
.pp-science small { display: block; margin: 2px 0 8px; font-size: 0.78rem; color: var(--color-accent-1); font-weight: 700; }
.pp-science p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--ink-mut); }
.pp-honest { margin-top: 26px; font-size: 0.88rem; line-height: 1.65; color: var(--ink-mut); max-width: 820px; }

/* nagrody (CELO) */
.pp-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pp-rewards div { padding: 30px 28px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.pp-rewards small { font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--aw-gold); }
.pp-rewards b { display: block; margin: 10px 0 8px; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: #fff; line-height: 1.2; }
.pp-rewards p { margin: 0; font-size: 0.92rem; line-height: 1.65; }

/* pudełko ceny na końcu */
.pp-buy {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
    max-width: 980px; margin: 0 auto;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pp-buy > div { padding: 40px 38px; }
.pp-buy > div + div { border-left: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pp-buy ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pp-buy li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; line-height: 1.5; }
.pp-buy li::before { content: '✓'; position: absolute; left: 0; color: var(--aw-gold); font-weight: 700; }
.pp-buy .pp-price { text-align: center; }
.pp-buy .pp-price b { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 300; color: #fff; line-height: 1; }
.pp-buy .pp-price s { color: rgba(255, 255, 255, 0.5); margin-right: 6px; }
.pp-buy .pp-price span { display: block; margin-top: 8px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); }
.pp-buy .aw-btn { justify-content: center; }
.pp-buy small.pp-fine { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; line-height: 1.5; text-align: center; }

/* menu podstrony produktu: link „wszystkie narzędzia” */
.pp-crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.pp-crumb:hover { color: var(--aw-gold); }

/* nagłówki sekcji na środku: przy szerokich siatkach kart lewy nagłówek wisiał w pustce */
.hub .aw-head.is-center { max-width: 860px; }
/* dwie równe linie: lekka część u góry, pogrubiona zawsze w drugiej linii */
.hub .aw-head h2 strong { display: block; }
.hub .filters { justify-content: center; }
.hub .aw-note { text-align: center; max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------- telefon i tablet ---------- */
@media (max-width: 1180px) {
    .pp-science { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .hub-stack { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hub-chip:nth-child(odd) { transform: none; }
    .pp-float { display: none; }
    .pp-buy { grid-template-columns: 1fr; }
    .pp-buy > div + div { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
    .pp-flow div { border-right: none; border-bottom: 1px solid var(--line); }
    .pp-flow div:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
    .hub-stack { grid-template-columns: 1fr; }
    .pp-science { grid-template-columns: 1fr; }
    .hub-chip.is-big { grid-column: auto; }
    .hub-chip { animation: none; }
    .tool-foot { flex-direction: column; align-items: stretch; }
    .tool-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .tool-btn { justify-content: center; }
    .pp-buy > div { padding: 30px 22px; }
    .pp-phone { width: min(280px, 78vw); }
}
@media (prefers-reduced-motion: reduce) {
    .hub-chip, .pp-phone, .pp-float { animation: none; }
}
