/* The official store badges: the height sets the size, the width follows each artwork. */

.badges {
    --badge-h: 52px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.badges--small {
    --badge-h: 40px;
    gap: 8px;
}

.badge {
    display: inline-flex;
    /* Only the focus ring uses it: it follows the rounded corners of the artwork. */
    border-radius: var(--radius-button);
    transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
}

.badge img {
    width: auto;
    height: var(--badge-h);
}

.badge:hover {
    transform: scale(1.03);
}

.badge:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .badge {
        transition: none;
    }

    .badge:hover,
    .badge:active {
        transform: none;
    }
}

/* The home page, direction A (owner, 8.10.2026). Tokens come from index.css and DESIGN.md; everything here sits
   under .home, so the other pages of the site keep their own look. */

.home {
    --sy: clamp(76px, 10vw, 128px);
    --header-h: 64px;
    --panel: #1a1f2e;
    --radius-modal: 20px;
    --fs-body: 0.95rem;
    --shadow-float: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-lift: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(42, 209, 103, 0.2);
    --glow-go: 0 10px 28px -12px rgba(42, 209, 103, 0.55);
    --check-go: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%232ad167%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.2 4.2L19 7%27/%3E%3C/svg%3E");
    --check-mute: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-opacity=%270.5%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.2 4.2L19 7%27/%3E%3C/svg%3E");
    font-size: var(--fs-body);
}

@media (min-width: 760px) {
    .home {
        --gutter: 24px;
    }
}

@media (min-width: 980px) {
    .home {
        --header-h: 72px;
    }
}

/* Anchors land below the sticky bar. */
html:has(.home) {
    scroll-padding-top: 80px;
}

@media (min-width: 980px) {
    html:has(.home) {
        scroll-padding-top: 88px;
    }
}

/* ===== Base ===== */
.home h1, .home h2, .home h3, .home h4, .home p, .home figure, .home blockquote, .home dl, .home dd { margin: 0; }
.home svg, .home video { display: block; max-width: 100%; }
.home button { font: inherit; color: inherit; }
.home main { display: block; overflow-x: clip; }
.home main:focus { outline: none; }
.home h1, .home h2, .home h3 { text-wrap: balance; }
.home p, .home li, .home dd { text-wrap: pretty; }
.home a { text-underline-offset: 3px; }
.home .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.home .nw { white-space: nowrap; }
.home .skip {
    position: absolute; left: 12px; top: -80px; z-index: 100;
    padding: 12px 18px; border-radius: var(--radius-button);
    background: var(--go); color: var(--surface-bottom); font-weight: 700; text-decoration: none;
}
.home .skip:focus { top: 12px; }

/* ===== Buttons and links ===== */
.home .btn-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: var(--radius-cta);
    background: linear-gradient(135deg, var(--go) 0%, var(--go-deep) 100%);
    color: var(--surface-bottom); font-size: 0.95rem; font-weight: 700; line-height: 1.2; text-decoration: none;
    box-shadow: var(--glow-go);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.home .btn-go:hover { transform: scale(1.03); box-shadow: 0 0 26px rgba(42, 209, 103, 0.3); }
.home .btn-go:active { transform: scale(0.97); }
.home .btn-go--sm { min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: 0.9rem; }
.home .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: var(--radius-cta);
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none;
    transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.home .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.26); }
.home .btn-ghost:active { transform: scale(0.97); }
.home .arrow-link {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--go); font-weight: 600; text-decoration: none;
}
.home .arrow-link:hover { text-decoration: underline; }

/* ===== Header ===== */
.home .site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.home .site-header.is-scrolled {
    background: rgba(17, 17, 33, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--hairline);
}
.home .site-header.menu-open { background: var(--panel); border-bottom-color: var(--hairline); }
.home .site-header__in { height: 100%; display: flex; align-items: center; gap: 8px; }
.home .brand {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    color: var(--text); text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em;
}
/* The head sits at the bottom of the mark's box: lifted by a third, the name stands level with the glasses (owner,
   24.09.2026), as in the bar of the other pages. */
.home .brand__mark { position: relative; top: -11px; }
.home .brand sup {
    position: relative; top: -0.9em; margin-left: 1px;
    font-size: 0.5em; font-weight: 600; line-height: 0; vertical-align: baseline; color: var(--text-muted);
}
.home .nav { display: none; }
.home .site-header .btn-go { margin-left: auto; }
.home .menu-btn {
    display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}
.home .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 6px var(--gutter) 24px;
    background: var(--panel); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-float);
}
.home .menu[hidden] { display: none; }
.home .menu nav { display: flex; flex-direction: column; }
.home .menu nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 54px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--text); font-size: 1.05rem; font-weight: 600; text-decoration: none;
}
.home .menu nav a::after { content: "→"; color: var(--text-muted); font-weight: 400; }
.home .menu .badges { margin-top: 22px; }
.home .menu-backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: rgba(5, 5, 26, 0.6); }
@media (max-width: 360px) {
    .home .brand { font-size: 1rem; gap: 8px; }
    .home .site-header .btn-go--sm { padding: 10px 12px; font-size: 0.85rem; }
}
@media (min-width: 980px) {
    .home .site-header__in { display: grid; grid-template-columns: 1fr auto 1fr; grid-gap: 24px; gap: 24px; }
    .home .nav { display: flex; gap: 2px; }
    .home .nav a {
        display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-button);
        color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; font-weight: 500; text-decoration: none;
        transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
    }
    .home .nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
    .home .site-header .btn-go { margin-left: 0; justify-self: end; }
    .home .menu-btn, .home .menu, .home .menu-backdrop { display: none !important; }
}
/* The page the visitor is on (NavLink sets aria-current). */
.home .nav a[aria-current="page"], .home .menu nav a[aria-current="page"] { color: var(--go); }

/* ===== Hero ===== */
.home .hero { position: relative; isolation: isolate; padding: 24px 0 48px; }
.home .hero::before, .home .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.home .hero::before {
    width: 580px; height: 580px; left: -220px; top: -260px;
    background: radial-gradient(closest-side, rgba(42, 209, 103, 0.13), rgba(42, 209, 103, 0));
}
.home .hero::after {
    width: 640px; height: 640px; right: -240px; top: -140px;
    background: radial-gradient(closest-side, rgba(245, 158, 12, 0.08), rgba(245, 158, 12, 0));
}
.home .hero__grid { display: grid; grid-gap: 24px; gap: 24px; }
.home .hero__copy { max-width: 560px; }
.home .pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px; border-radius: var(--radius-pill);
    background: rgba(42, 209, 103, 0.1); border: 1px solid rgba(42, 209, 103, 0.26);
    color: var(--text-strong); font-size: 0.8rem; font-weight: 600; line-height: 1.4;
}
.home .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px rgba(42, 209, 103, 0.18); }
.home .hero h1 {
    margin-top: 20px;
    font-size: clamp(2.75rem, 5.2vw + 1rem, 4.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
}
.home .hero h1 span { display: block; color: var(--go); }
.home .lead {
    margin-top: 20px; max-width: 32em;
    color: rgba(255, 255, 255, 0.78); font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem); line-height: 1.7;
}
.home .hero .badges { margin-top: 28px; }
.home .facts-row {
    list-style: none; margin: 22px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; line-height: 1.4;
}
.home .facts-row li { display: inline-flex; align-items: center; gap: 8px; }
.home .facts-row svg { color: var(--go); }
.home .more-link {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px;
    color: rgba(255, 255, 255, 0.75); font-size: 0.88rem;
    text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px;
}
.home .more-link:hover { color: var(--text); text-decoration-color: var(--go); }

/* The phone group: one phone on small screens, three phones with chips from 980 px. */
.home .stage { position: relative; width: 100%; max-width: 360px; margin: 12px auto 0; padding: 92px 0 124px; }
.home .ph-back, .home .stage .chip--3 { display: none; }
.home .ph-main { position: relative; z-index: 3; width: max-content; margin: 0 auto; }
.home .ph-main .phone { --w: 236px; }
.home .peek { position: absolute; z-index: -1; left: 19%; bottom: calc(100% - 3px); width: 40%; height: auto; }
.home .chip {
    position: absolute; z-index: 4; margin: 0;
    display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px;
    background: var(--panel); box-shadow: var(--shadow-float);
    font-size: 0.8rem; font-weight: 600; line-height: 1.25; white-space: nowrap;
}
.home .chip small { display: block; margin-top: 1px; color: var(--attention); font-size: 0.72rem; font-weight: 700; }
.home .chip__ic {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px;
    background: rgba(42, 209, 103, 0.14); color: var(--go);
}
.home .chip__ic--amber { background: rgba(245, 158, 12, 0.14); color: var(--attention); }
/* Below 980 px both chips hang under the phone, so neither covers the screen's content. */
.home .chip--1 { left: 0; bottom: 66px; }
.home .chip--2 { right: 0; bottom: 8px; }
@media (max-width: 559px) {
    .home .hero .badges { --badge-h: 48px; }
}
@media (min-width: 980px) {
    .home .hero { padding: 12px 0 36px; }
    .home .hero__grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; gap: 24px; }
    .home .stage { width: 580px; max-width: none; height: 684px; margin: 0 0 0 auto; padding: 0; }
    .home .ph-back { display: block; position: absolute; top: 150px; z-index: 1; filter: brightness(0.5) saturate(0.85); }
    .home .ph-back .phone { --w: 228px; }
    .home .ph-back--left { left: -8px; rotate: -6deg; }
    .home .ph-back--right { right: -8px; rotate: 6deg; }
    .home .ph-main { position: absolute; left: 152px; top: 90px; margin: 0; }
    .home .ph-main .phone { --w: 276px; }
    .home .stage .chip--3 { display: flex; }
    /* Every side chip belongs to one phone and takes its angle (owner, 8.10.2026: a tilted phone and a straight
       chip do not match): „Plan nauki gotowy” on the plan phone, „Dobrze! +20 XP” on the chat phone, both at one
       height in the lower half, clear of the copy; the test chip hangs straight off the straight Dzisiaj phone.
       The CSS `rotate` property composes with the transform the entrance animation sets. */
    .home .chip--1 { left: -40px; right: auto; top: 452px; bottom: auto; rotate: -6deg; }
    .home .chip--3 { left: auto; right: -10px; top: 452px; bottom: auto; rotate: 6deg; }
    .home .chip--2 { left: 186px; right: auto; top: 658px; bottom: auto; }
}
@media (min-width: 980px) and (max-width: 1199px) {
    .home .stage { zoom: 0.84; }
}

/* ===== The phone frame around an app screen (810 x 1801) ===== */
.home .phone {
    --w: 280px;
    --bezel: calc(var(--w) * 0.032);
    --corner: calc(var(--w) * 0.15);
    position: relative;
    width: var(--w);
    padding: var(--bezel);
    border-radius: var(--corner);
    background: linear-gradient(155deg, #2a3342 0%, var(--ink) 36%, var(--ink) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 36px 64px -28px rgba(0, 0, 0, 0.8),
        0 20px 44px -26px rgba(42, 209, 103, 0.2);
}
.home .phone__screen {
    overflow: hidden;
    aspect-ratio: 810 / 1801;
    border-radius: calc(var(--corner) - var(--bezel));
    background: var(--surface-bottom);
}
.home .phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ===== Sections ===== */
.home .sec { padding: calc(var(--sy) / 2) 0; }
.home .sec-head { max-width: 720px; }
.home .sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.home .eyebrow {
    display: block; margin-bottom: 14px;
    color: var(--go); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4;
}
.home .h2 { font-size: clamp(1.95rem, 2.6vw + 1rem, 2.85rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.home .sec-lead { margin-top: 16px; color: rgba(255, 255, 255, 0.76); font-size: clamp(1rem, 0.3vw + 0.92rem, 1.1rem); line-height: 1.7; }
.home .sec-head--center .sec-lead { margin-left: auto; margin-right: auto; max-width: 36em; }
.home .sec-body { margin-top: clamp(40px, 5vw, 56px); }
.home .card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); background: var(--glass-tinted); border: 1px solid var(--hairline); }

/* ===== Screen crops: a phone cut by a fading edge, never a hard cut through letters ===== */
.home .crop {
    position: relative; display: flex; justify-content: center; overflow: hidden; height: 300px; height: var(--ch, 300px);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 var(--fade, 72%), transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 var(--fade, 72%), transparent);
}
.home .crop .phone { flex: none; align-self: flex-start; }
.home .crop--mid, .home .crop--end { --f: 0; }
.home .crop--mid .phone, .home .crop--end .phone { margin-top: calc(var(--w) * (-0.032 - 2.0812 * var(--f))); }
.home .crop--mid {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
}
.home .crop--end {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%);
    mask-image: linear-gradient(to bottom, transparent, #000 10%);
}

/* ===== How it works ===== */
.home .steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-gap: 28px; gap: 28px; }
.home .step { position: relative; display: flex; flex-direction: column; }
.home .step__num {
    position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    border-radius: 50%; background: var(--panel); border: 1px solid rgba(42, 209, 103, 0.45);
    color: var(--go); font-size: 1rem; font-weight: 800; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.home .step__card {
    flex: 1 1; display: flex; flex-direction: column; padding: 26px 26px 0; overflow: hidden;
    border-radius: var(--radius-card); background: var(--glass-tinted); border: 1px solid var(--hairline);
}
.home .step__card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.home .step__card p { margin: 8px 0 24px; color: rgba(255, 255, 255, 0.76); font-size: 0.94rem; line-height: 1.65; }
.home .step .crop { --ch: 340px; margin-top: auto; }
.home .step .phone { --w: 240px; }
@media (min-width: 900px) {
    .home .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .home .steps::before {
        content: ""; position: absolute; top: 21px; height: 2px;
        left: calc((100% - 48px) / 6); right: calc((100% - 48px) / 6);
        background: linear-gradient(90deg, rgba(42, 209, 103, 0.6), rgba(42, 209, 103, 0.16));
    }
    .home .step__num { margin-left: auto; margin-right: auto; margin-bottom: 22px; }
}

/* ===== Film: the thumbnail until the click, then YouTube's player ===== */
.home .film { max-width: 980px; margin-left: auto; margin-right: auto; }
.home .film__frame {
    position: relative; padding: 10px; border-radius: var(--radius-modal);
    background: var(--glass-tinted); border: 1px solid var(--hairline);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}
.home .film__play {
    position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
    background: var(--surface-bottom); cursor: pointer;
}
.home .film__poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* The play button sits low, in the dark band under the thumbnail's line, so the name and the line stay readable. */
.home .film__overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 3%;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.45), rgba(10, 10, 20, 0) 35%); color: var(--text);
}
.home .film__cta { display: inline-flex; align-items: center; gap: 14px; }
.home .film__btn {
    display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--go) 0%, var(--go-deep) 100%); color: var(--surface-bottom);
    box-shadow: 0 0 0 8px rgba(42, 209, 103, 0.14), 0 18px 40px -12px rgba(42, 209, 103, 0.6);
    transition: transform 0.2s var(--ease);
}
.home .film__btn svg { margin-left: 3px; }
.home .tm { margin-left: 2px; font-size: 0.42em; font-weight: 600; line-height: 0; vertical-align: 1.3em; opacity: 0.7; }
.home .film__play:hover .film__btn { transform: scale(1.03); }
.home .film__play:active .film__btn { transform: scale(0.97); }
.home .film__dur { font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.home .film__player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.home .film figcaption { margin-top: 18px; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 1rem; }
@media (max-width: 559px) {
    .home .film__frame { padding: 6px; border-radius: var(--radius-card); }
    .home .film__overlay { padding-bottom: 1%; }
    .home .film__btn { width: 32px; height: 32px; box-shadow: 0 0 0 4px rgba(42, 209, 103, 0.14), 0 8px 18px -8px rgba(42, 209, 103, 0.6); }
    .home .film__btn svg { width: 14px; height: 14px; margin-left: 2px; }
    .home .film__dur { display: none; }
}

/* ===== Bento ===== */
.home .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; }
.home .tile {
    grid-column: span 12; position: relative; display: flex; flex-direction: column; overflow: hidden;
    padding: 26px 24px 0; border-radius: var(--radius-card);
    background: var(--glass-tinted); border: 1px solid var(--hairline);
    transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.home .tile:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); border-color: rgba(42, 209, 103, 0.2); }
.home .tile__ic {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-button);
    background: rgba(42, 209, 103, 0.12); color: var(--go);
}
.home .tile__ic--amber { background: rgba(245, 158, 12, 0.12); color: var(--attention); }
.home .tile h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.home .tile p { margin-top: 6px; max-width: 34em; color: rgba(255, 255, 255, 0.76); font-size: 0.92rem; line-height: 1.6; }
.home .tile__media { margin-top: auto; padding-top: 22px; }
.home .types { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.home .types li {
    padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid rgba(42, 209, 103, 0.25);
    background: rgba(42, 209, 103, 0.08); color: rgba(255, 255, 255, 0.86); font-size: 0.78rem; font-weight: 600; line-height: 1.3;
}
.home .t-ocena .crop { --ch: 196px; --f: 0.67; }
.home .t-ocena .phone { --w: 240px; }
.home .t-fiszki .crop { --ch: 196px; --f: 0.29; }
.home .t-fiszki .phone { --w: 250px; }
.home .t-postepy .crop { --ch: 206px; --f: 0.052; }
.home .t-postepy .phone { --w: 270px; }
/* The progress tile sits next to a taller one: its crop grows and shows more badges instead of leaving a gap. */
.home .t-postepy .tile__media { flex: 1 1 auto; display: flex; flex-direction: column; }
.home .t-postepy .crop { flex: 1 1; height: auto; min-height: var(--ch); }
@media (max-width: 360px) {
    .home .step .phone, .home .t-ocena .phone, .home .t-fiszki .phone, .home .t-postepy .phone { --w: 224px; }
}
.home .duo {
    position: relative; flex: 1 1 auto; min-height: 440px; margin-top: 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.home .duo .phone { position: absolute; top: 8px; }
.home .duo__front { --w: 200px; left: calc(50% - 150px); z-index: 2; }
.home .duo__back { --w: 170px; left: calc(50% - 10px); top: 50px; filter: brightness(0.72); }
.home .duo .duo__back { top: 50px; }
.home .notifs { display: grid; grid-gap: 10px; gap: 10px; margin-top: auto; padding: 22px 0 26px; }
.home .notif {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-gap: 12px; gap: 12px; align-items: start;
    padding: 13px 16px 14px 13px; border-radius: 18px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08);
}
.home .notif img { width: 40px; height: 40px; border-radius: var(--radius-button); }
.home .notif__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; color: rgba(255, 255, 255, 0.66); font-size: 0.74rem; line-height: 1.4; }
.home .notif__top span:last-child { white-space: nowrap; }
.home .notif__app { font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.8); }
.home .notif__t { margin-top: 2px; font-size: 0.94rem; font-weight: 700; line-height: 1.35; }
.home .notif__b { color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; line-height: 1.45; }
@media (min-width: 700px) {
    .home .tile { padding: 30px 30px 0; }
    .home .t-ocena, .home .t-fiszki, .home .t-postepy, .home .t-przyp { grid-column: span 6; }
    .home .duo__front { --w: 280px; left: calc(50% - 214px); }
    .home .duo__back { --w: 236px; left: calc(50% - 6px); }
    .home .duo .duo__back { top: 64px; }
    .home .duo { min-height: 560px; }
}
@media (min-width: 980px) {
    .home .t-plan { grid-column: span 7; grid-row: span 2; }
    .home .t-ocena, .home .t-fiszki { grid-column: span 5; }
    .home .t-postepy, .home .t-przyp { grid-column: span 6; }
    .home .duo__front { --w: 300px; left: calc(50% - 226px); }
    .home .duo__back { --w: 252px; left: calc(50% - 4px); }
    .home .duo .duo__back { top: 70px; }
    .home .duo { min-height: 600px; }
}

/* ===== Deep dives ===== */
.home .dd { display: grid; grid-gap: 40px; gap: 40px; align-items: center; }
.home .ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-gap: 16px; gap: 16px; }
.home .ticks li { position: relative; padding-left: 38px; color: rgba(255, 255, 255, 0.76); font-size: 0.95rem; line-height: 1.6; }
.home .ticks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 8px;
    background: rgba(42, 209, 103, 0.12) var(--check-go) center / 15px no-repeat;
}
.home .ticks b { display: block; color: var(--text); font-weight: 700; }
.home .bubble { display: flex; align-items: flex-end; gap: 12px; margin-top: 28px; }
.home .bubble img { width: 44px; height: 44px; flex: none; }
.home .bubble p {
    padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--panel); border: 1px solid var(--hairline);
    color: var(--text); font-size: 0.94rem; line-height: 1.55; max-width: 30em;
}
.home .dd__media { position: relative; }
.home .dd__visual {
    position: relative; height: 560px; height: var(--vh, 560px); overflow: hidden; border-radius: var(--radius-modal);
    background: var(--glass-tinted); border: 1px solid var(--hairline);
}
.home .dd__stage {
    position: absolute; inset: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, #000 86%, transparent);
}
.home .dd__stage .phone { position: absolute; }
.home .v-podr { --vh: clamp(420px, 120vw, 580px); }
.home .v-podr .p1 { --w: clamp(150px, 42vw, 248px); left: 12%; top: 34px; }
.home .v-podr .p2 { --w: clamp(160px, 45vw, 268px); right: 12%; top: 92px; z-index: 2; }
.home .v-czat { --vh: calc(clamp(190px, 58vw, 256px) * 2.145 + 56px); }
.home .v-czat .phone { --w: clamp(190px, 58vw, 256px); left: 50%; top: 28px; transform: translateX(-50%); }
.home .v-czat .dd__stage { -webkit-mask-image: none; mask-image: none; }
.home .v-klasa { --vh: clamp(440px, 128vw, 600px); }
.home .v-klasa .phone { --w: clamp(190px, 56vw, 250px); left: 50%; top: 32px; transform: translateX(-50%); }
.home .join {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 14px;
    width: calc(100% - 32px); max-width: 320px; margin: -64px auto 0; padding: 16px 18px;
    border-radius: var(--radius-card); background: var(--panel); box-shadow: var(--shadow-float);
}
.home .join__qr {
    display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px;
    background: rgba(42, 209, 103, 0.12); color: var(--go);
}
.home .join__t { font-weight: 700; font-size: 0.98rem; line-height: 1.35; }
.home .join__s { margin-top: 2px; color: rgba(255, 255, 255, 0.72); font-size: 0.84rem; line-height: 1.4; }
.home .join__s code { display: block; font-family: inherit; color: var(--go); font-weight: 600; }
@media (min-width: 980px) {
    .home .dd { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
    .home .dd--rev .dd__text { order: 2; }
    /* Up to 1199 px the column is too narrow for the card beside the phone: the card sits below the visual. */
    .home .join { width: 100%; max-width: none; margin: 16px 0 0; }
}
@media (min-width: 1200px) {
    .home .v-klasa .phone { left: auto; right: 9%; transform: none; }
    .home .join { position: absolute; left: 6%; bottom: 40px; width: 250px; margin: 0; }
}

/* ===== Parents ===== */
.home .parents { display: grid; grid-gap: 48px; gap: 48px; align-items: center; }
.home .pfacts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-gap: 20px; gap: 20px; }
.home .pfacts li { display: flex; gap: 14px; align-items: flex-start; }
.home .pic {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
    background: rgba(42, 209, 103, 0.12); color: var(--go);
}
.home .pic svg { width: 20px; height: 20px; }
.home .pfacts b { display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.home .pfacts .ptxt { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.74); font-size: 0.92rem; line-height: 1.55; }
.home .parents__buy { margin-top: 28px; color: rgba(255, 255, 255, 0.76); font-size: 0.95rem; }
.home .parents .arrow-link { margin-top: 6px; }
.home .mail__card {
    overflow: hidden; border-radius: var(--radius-modal); border: 1px solid var(--hairline);
    background: linear-gradient(165deg, #151a27, #1a1f2e 40%, #1c2235);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}
.home .mail__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.home .mail__head img { width: 40px; height: 40px; border-radius: var(--radius-button); }
.home .mail__from { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.home .mail__sub { color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; line-height: 1.3; }
.home .mail__time { margin-left: auto; color: rgba(255, 255, 255, 0.66); font-size: 0.76rem; text-align: right; line-height: 1.35; }
.home .mail__body { padding: 24px 24px 26px; }
.home .mail__name { font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.home .mail__line { margin-top: 8px; color: rgba(255, 255, 255, 0.84); font-size: 0.95rem; line-height: 1.6; }
.home .mail__block {
    margin-top: 16px; padding: 14px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline);
}
.home .mail__block--amber { border-color: rgba(245, 158, 12, 0.35); background: rgba(245, 158, 12, 0.06); }
.home .mail__label { color: rgba(255, 255, 255, 0.62); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }
.home .mail__val { margin-top: 4px; font-weight: 600; line-height: 1.45; }
.home .mail__val em { font-style: normal; color: var(--attention); }
.home .bar { margin-top: 10px; height: 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.home .bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--go-deep), var(--go)); }
.home .mail__btn {
    display: inline-flex; margin-top: 22px; padding: 12px 18px; border-radius: 12px;
    background: var(--go); color: var(--surface-bottom); font-size: 0.92rem; font-weight: 700;
}
.home .mail figcaption { margin-top: 12px; text-align: center; color: rgba(255, 255, 255, 0.66); font-size: 0.82rem; }
@media (min-width: 640px) {
    .home .pfacts { grid-template-columns: 1fr 1fr; gap: 24px 28px; }
}
@media (min-width: 980px) {
    .home .parents { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
}

/* ===== Who stands behind it ===== */
.home .trust { display: grid; grid-gap: 16px; gap: 16px; align-items: start; }
.home .trust__lead { font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.6rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; }
.home .trust__dl { margin: 26px 0 0; border-top: 1px solid var(--hairline); }
.home .trust__dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-gap: 16px; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); }
.home .trust__dl dt { padding-top: 3px; color: rgba(255, 255, 255, 0.62); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.home .trust__dl dd { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }
.home .trust a { color: var(--go); text-decoration: none; }
.home .trust a:hover { text-decoration: underline; }
.home .trust__note { margin-top: 20px; color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; }
.home .founder blockquote { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 1.04rem; line-height: 1.6; }
.home .founder figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.home .founder__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.home .founder__who b { display: block; font-weight: 700; line-height: 1.3; }
.home .founder__who span { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; }
@media (min-width: 980px) {
    .home .trust { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
}

/* ===== Pricing ===== */
.home .plans { display: grid; grid-gap: 16px; gap: 16px; max-width: 940px; margin-left: auto; margin-right: auto; }
.home .plan {
    position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px);
    border-radius: var(--radius-card); background: var(--glass-tinted); border: 1px solid var(--hairline);
}
.home .plan--pro {
    border-color: rgba(42, 209, 103, 0.28);
    background: linear-gradient(160deg, rgba(42, 209, 103, 0.1) 0%, rgba(26, 26, 46, 0.55) 55%);
    box-shadow: 0 30px 60px -34px rgba(42, 209, 103, 0.3);
}
.home .plan--pro::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--go) 0%, rgba(42, 209, 103, 0.1) 100%);
}
.home .plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 50px; }
.home .plan__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.home .plan__price { margin-top: 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.home .plan__price span { font-size: clamp(2.3rem, 1.6vw + 1.8rem, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.home .plan__price small { color: rgba(255, 255, 255, 0.74); font-size: 1rem; font-weight: 500; }
/* A promo in the Pro card (PricingSection's `promo`): the regular price crossed out before the promo price. */
.home .plan__price s { color: rgba(255, 255, 255, 0.5); font-size: 1.1rem; font-weight: 600; text-decoration: line-through; }
.home .plan__note { margin-top: 8px; min-height: 3.2em; color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; line-height: 1.6; }
.home .plan__note strong { color: var(--go); font-weight: 700; }
.home .switch { display: inline-flex; padding: 2px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hairline); }
.home .switch button {
    min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer;
    color: rgba(255, 255, 255, 0.75); font-size: 0.84rem; font-weight: 600;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.home .switch button:hover { color: var(--text); }
.home .switch button[aria-pressed="true"] { background: var(--go); color: var(--surface-bottom); }
.home .rows { list-style: none; margin: 22px 0 28px; padding: 0; border-top: 1px solid var(--hairline); }
.home .rows li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft); font-size: 0.92rem; line-height: 1.45;
}
.home .rows li > span { display: flex; align-items: baseline; gap: 10px; color: rgba(255, 255, 255, 0.76); }
.home .rows li > span::before { content: ""; flex: none; width: 16px; height: 16px; transform: translateY(3px); background: var(--check-mute) center / contain no-repeat; }
.home .rows--pro li > span::before { background-image: var(--check-go); }
.home .rows b { font-weight: 700; text-align: right; }
@media (min-width: 361px) {
    .home .rows b { white-space: nowrap; }
}
.home .plan__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.home .plan > .btn-ghost { margin-top: auto; align-self: flex-start; }
.home .plans__fine { max-width: 780px; margin: 28px auto 0; display: grid; grid-gap: 8px; gap: 8px; text-align: center; color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; line-height: 1.65; }
@media (min-width: 820px) {
    .home .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* ===== Questions ===== */
.home .faq { max-width: 820px; margin-left: auto; margin-right: auto; border-top: 1px solid var(--hairline); }
.home .faq details { border-bottom: 1px solid var(--hairline); }
.home .faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px;
    padding: 20px 2px; cursor: pointer; list-style: none;
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.08rem); font-weight: 700; line-height: 1.4;
}
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary:hover { color: var(--go); }
.home .pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: var(--radius-button); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text); }
.home .pm::before, .home .pm::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
    background: currentColor; transform: translate(-50%, -50%);
}
.home .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s var(--ease); }
.home .faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.home .faq details[open] .pm { border-color: rgba(42, 209, 103, 0.4); color: var(--go); }
.home .ans { padding: 0 2px 24px; max-width: 690px; color: rgba(255, 255, 255, 0.76); font-size: 0.95rem; line-height: 1.7; }
.home .ans a { color: var(--go); }

/* ===== Closing band ===== */
.home .final-sec { padding-top: calc(var(--sy) / 2 + 64px); }
.home .final {
    position: relative; display: grid; grid-gap: 32px; gap: 32px; padding: clamp(32px, 5vw, 64px);
    border-radius: var(--radius-modal); border: 1px solid rgba(42, 209, 103, 0.22);
    background: radial-gradient(120% 140% at 0% 0%, rgba(42, 209, 103, 0.16), rgba(42, 209, 103, 0) 55%), var(--glass-tinted);
}
.home .final__cat { position: absolute; right: 12%; bottom: calc(100% - 2px); width: clamp(96px, 14vw, 128px); height: auto; }
.home .final__title { font-size: clamp(2.2rem, 3.4vw + 1rem, 3.4rem); }
.home .final__title span { color: var(--go); white-space: nowrap; }
.home .final__lead { margin-top: 12px; color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }
.home .final .badges { margin-top: 26px; }
.home .final .bubble { margin-top: 30px; }
.home .final__qr { display: none; }
.home .final__qr p { font-size: 0.92rem; font-weight: 600; }
.home .qr-tile { display: inline-block; padding: 12px; border-radius: 14px; background: #eef0f3; }
.home .qr-tile img { width: 112px; height: 112px; }
@media (max-width: 559px) {
    .home .final .badges { --badge-h: 48px; }
}
@media (min-width: 980px) {
    .home .final { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; }
    .home .final__qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
}

/* ===== Footer ===== */
.home .site-footer { margin-top: calc(var(--sy) / 2); padding: 64px 0 40px; background: var(--surface-footer); border-top: 1px solid var(--hairline-soft); }
.home .footer-grid { display: grid; grid-gap: 36px 24px; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .footer-brand { grid-column: 1 / -1; }
.home .footer-brand p { margin-top: 12px; max-width: 26em; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.home .footer-brand .badges { margin-top: 18px; }
.home .footer-col h3 { margin-bottom: 8px; color: rgba(255, 255, 255, 0.62); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.home .footer-col ul { list-style: none; margin: 0; padding: 0; }
.home .footer-col a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; text-decoration: none; overflow-wrap: anywhere;
}
.home .footer-col a:hover { color: var(--text); text-decoration: underline; }
.home .footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline-soft); display: grid; grid-gap: 4px; gap: 4px; color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; line-height: 1.6; }
@media (min-width: 980px) {
    .home .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
    .home .footer-brand { grid-column: auto; }
}

/* ===== Reduced motion: no hover lifts, no scaling ===== */
@media (prefers-reduced-motion: reduce) {
    .home .tile, .home .btn-go, .home .btn-ghost, .home .film__btn, .home .site-header, .home .pm::after { transition: none; }
    .home .tile:hover { translate: none; }
    .home .btn-go:hover, .home .btn-go:active, .home .btn-ghost:active,
    .home .film__play:hover .film__btn, .home .film__play:active .film__btn { transform: none; }
}

/* A single tinted-glass panel under the wordmark row (DESIGN.md: glass for surfaces in the page flow). */

.panel-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.panel-screen__main {
    display: flex;
    flex: 1 1;
    align-items: center;
    justify-content: center;
    padding: 24px var(--gutter) 64px;
}

.panel-screen__panel {
    width: 100%;
    max-width: 480px;
    padding: 32px 24px;
    border: 1px solid var(--hairline-soft);
    border-radius: var(--radius-card);
    background: var(--glass-tinted);
}

.panel-screen__title {
    margin-bottom: 12px;
    font-size: var(--fs-section);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.panel-screen__text {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: var(--fs-lead);
    line-height: 1.75;
}

/* A countdown is time, so it speaks amber; tabular digits keep it from jittering. */
.panel-screen__countdown {
    margin-bottom: 24px;
    color: var(--attention);
    font-size: var(--fs-body-sm);
    font-weight: 600;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.panel-screen__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.panel-screen__actions .cta {
    flex: 1 1 auto;
}

/* The join code, drawn the way the app draws it on the class screen: green, heavy, widely tracked. */
.join-code {
    margin-bottom: 16px;
    color: var(--go);
    font-size: var(--fs-headline);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.12em;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    word-break: break-all;
    -webkit-user-select: all;
            user-select: all;
}

.join-stores {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

/* The panel is too narrow for two store buttons side by side: they stay stacked at every width. */
.panel-screen__panel .stores {
    flex-direction: column;
}

@media (min-width: 600px) {
    .panel-screen__panel {
        padding: 40px;
    }
}

/* Store buttons. Live: the green primary (DESIGN.md marketing gradient, dark text for contrast).
   Not in the store yet: ghost glass with an amber „wkrótce" pill (amber is the colour of time). */

.stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .stores {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-cta);
    font-size: var(--fs-button);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.store--live {
    background: linear-gradient(135deg, var(--go) 0%, var(--go-deep) 100%);
    color: var(--surface-bottom);
    box-shadow: 0 10px 28px -12px rgba(42, 209, 103, 0.55);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.store--live:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 32px -12px rgba(42, 209, 103, 0.65);
}

.store--live:active {
    transform: scale(0.97);
}

.store__arrow {
    transition: transform 0.15s var(--ease);
}

.store--live:hover .store__arrow {
    transform: translateX(3px);
}

.store--soon {
    background: var(--glass-neutral);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: default;
}

.store__tag {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--attention-tint);
    color: var(--attention);
    font-size: var(--fs-label);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .store--live,
    .store__arrow {
        transition: none;
    }

    .store--live:hover,
    .store--live:active,
    .store--live:hover .store__arrow {
        transform: none;
    }
}

/* The e-mail preferences (/preferencje): switch rows in the page's glass panel, on the DESIGN.md tokens
   of index.css. Green = on and saved, amber = look here (a refused link, a failed save). */

.prefs__email {
    color: var(--text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.prefs__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* The whole row is the switch's label: one tap anywhere on it flips the list. */
.prefs__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--glass-neutral);
    cursor: pointer;
    transition: border-color 0.15s var(--ease);
}

.prefs__row:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.prefs__texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.prefs__label {
    color: var(--text);
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.4;
}

.prefs__hint {
    color: var(--text-muted);
    font-size: var(--fs-body-sm);
    line-height: 1.5;
}

.prefs__switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}

/* The real checkbox covers the drawn switch: the keyboard, the screen reader and the tap all reach it. */
.prefs__switch input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.prefs__track {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 0.15s var(--ease);
}

.prefs__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    transition: transform 0.15s var(--ease);
}

.prefs__switch input:checked + .prefs__track {
    background: var(--go);
}

.prefs__switch input:checked + .prefs__track .prefs__knob {
    transform: translateX(20px);
}

.prefs__switch input:focus-visible + .prefs__track {
    outline: 2px solid var(--go);
    outline-offset: 3px;
}

.prefs__switch input:disabled {
    cursor: default;
}

.prefs__done,
.prefs__notice {
    margin-bottom: 20px;
    font-size: var(--fs-body-sm);
    font-weight: 600;
    line-height: 1.6;
}

.prefs__done {
    color: var(--go);
}

.prefs__notice {
    color: var(--attention);
}

.panel-screen__panel .cta:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* A quiet text button under the save button: the one way out of every CoNaJutro mail at once. */
.prefs__all-off {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.prefs__all-off:disabled {
    cursor: default;
    opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
    .prefs__row,
    .prefs__track,
    .prefs__knob {
        transition: none;
    }
}

/* The account deletion page (/usun-konto): the text of produkacja.pl/usun-konto in this site's shell.
   Tokens from index.css; every section is DESIGN.md's tinted glass, the list marker the green dot the
   web page uses. One column, readable on a phone first. */

.doc__main {
    max-width: calc(720px + 2 * var(--gutter));
    padding-top: 24px;
}

.doc__eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--go-tint);
    color: var(--go);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc__title {
    margin: 16px 0 20px;
    font-size: clamp(2.1rem, 4.5vw, 3.05rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.doc__lead,
.doc__item,
.doc__note {
    color: var(--text-strong);
    font-size: var(--fs-lead);
    line-height: 1.8;
}

.doc__section {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--hairline-soft);
    border-radius: var(--radius-card);
    background: var(--glass-tinted);
    scroll-margin-top: 24px;
}

.doc__heading {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.doc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc__item {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.doc__item:last-child {
    margin-bottom: 0;
}

/* The dot sits level with the middle of the first line (line height 1.8). */
.doc__item::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: calc(0.9em - 3px);
    border-radius: 50%;
    background: var(--go);
}

/* The text and its links as one flex item, so a link does not become a column of its own. */
.doc__item > span {
    min-width: 0;
}

.doc__note {
    margin-top: 14px;
}

.doc__link {
    color: var(--go);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.doc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.doc__actions .cta {
    flex: 1 1 auto;
}

.doc__closing {
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: var(--fs-lead);
    line-height: 1.8;
}

@media (min-width: 600px) {
    .doc__section {
        padding: 28px;
    }

    .doc__actions .cta {
        flex: 0 1 auto;
    }
}

/* conajutro.pl/pobierz on a computer: the badges and the QR code, nothing else. Tokens from index.css. */

.download {
    max-width: calc(720px + 2 * var(--gutter));
    padding-top: 24px;
}

.download__title {
    font-size: clamp(2.1rem, 4.5vw, 3.05rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.download__lead {
    max-width: 34rem;
    margin-top: 16px;
    color: var(--text-strong);
    font-size: var(--fs-lead);
    line-height: 1.8;
}

.download__stores {
    margin-top: 28px;
}

.download__qr {
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-top: 32px;
    padding: 20px;
    border: 1px solid var(--hairline-soft);
    border-radius: var(--radius-card);
    background: var(--glass-tinted);
}

.download__qr-tile {
    flex: none;
    padding: 12px;
    border-radius: var(--radius-cta);
    background: #eef0f3;
}

.download__qr-tile img {
    width: 144px;
    height: 144px;
}

.download__qr p {
    max-width: 22rem;
    color: var(--text-secondary);
    font-size: var(--fs-body);
    line-height: 1.7;
}

.download__back {
    margin-top: 24px;
}

/* conajutro.pl. Every value below comes from DESIGN.md (repo root), the normative visual system:
   the dark gradient shell, green = go, amber = time and attention, Poppins at weight extremes. */

:root {
    /* Surfaces */
    --surface-top: #1a1a2e;
    --surface-bottom: #0f0f1e;
    --surface-footer: #0a0a14;
    --ink: #05051a; /* the outline of the cat logo: phone bezels */

    /* Accents */
    --go: #2ad167;
    --go-deep: #22b859;
    --go-tint: rgba(42, 209, 103, 0.12);
    --attention: #f59e0c;
    --attention-tint: rgba(245, 158, 12, 0.12);

    /* Text: white on an opacity ladder, never grey hexes */
    --text: #ffffff;
    --text-strong: rgba(255, 255, 255, 0.85);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.55);

    /* Lines and glass */
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-soft: rgba(255, 255, 255, 0.06);
    --glass-neutral: rgba(255, 255, 255, 0.04);
    --glass-tinted: linear-gradient(145deg, rgba(42, 51, 66, 0.35) 0%, rgba(26, 26, 46, 0.55) 100%);

    /* Radii */
    --radius-button: 10px;
    --radius-cta: 14px;
    --radius-card: 16px;
    --radius-pill: 100px;

    /* Type ramp */
    --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fs-display: clamp(2.5rem, 6vw, 4rem);
    --fs-headline: 2.25rem;
    --fs-section: 2rem;
    --fs-title: 1.1rem;
    --fs-lead: clamp(0.9rem, 1.5vw, 1.15rem);
    --fs-button: 0.95rem;
    --fs-body: 0.9rem;
    --fs-body-sm: 0.85rem;
    --fs-label: 0.7rem;

    /* Layout and motion */
    --gutter: 16px;
    --max-width: 1100px;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #0f0f1e;
    background: var(--surface-bottom);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
         text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-bottom) 100%);
    background-color: #0f0f1e;
    background-color: var(--surface-bottom);
    color: #ffffff;
    color: var(--text);
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-family: var(--font);
    font-size: 0.9rem;
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

::selection {
    background: rgba(42, 209, 103, 0.28);
    color: #ffffff;
    color: var(--text);
}

:focus-visible {
    outline: 2px solid #2ad167;
    outline: 2px solid var(--go);
    outline-offset: 3px;
}

.page-width {
    width: 100%;
    max-width: calc(1100px + 2 * 16px);
    max-width: calc(var(--max-width) + 2 * var(--gutter));
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-left: var(--gutter);
    padding-right: 16px;
    padding-right: var(--gutter);
}

/* ===== The wordmark row ===== */
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    color: var(--text);
    text-decoration: none;
}

/* The head is cut at the bottom of its box (the cat looks over an edge), so its eyes sit at 84% of
   the box height and a centred box put the name level with the ears. Lifting the box by a third of
   its height puts the name level with the glasses (owner, 24.09.2026). */
.wordmark__mark {
    position: relative;
    top: -11px;
}

.wordmark__name {
    font-size: 1.1rem;
    font-size: var(--fs-title);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* The ™ after the name (owner, 29.09.2026, decision D26): half the size of the letters, muted, in
   the upper index; a zero line height keeps it from making the row taller. */
.wordmark__tm {
    margin-left: 2px;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0;
    vertical-align: 0.9em;
    color: rgba(255, 255, 255, 0.55);
    color: var(--text-muted);
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    background: var(--glass-neutral);
    color: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-size: var(--fs-body-sm);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.15s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.topbar__link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    color: var(--text);
}

/* ===== Footer ===== */
.footer {
    margin-top: 88px;
    padding: 40px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid var(--hairline-soft);
    background: #0a0a14;
    background: var(--surface-footer);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-bottom: 20px;
}

.footer__links a {
    display: inline-block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-size: var(--fs-body-sm);
    font-weight: 500;
    text-decoration: none;
}

.footer__links a:hover {
    color: #ffffff;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer__legal p {
    max-width: 62ch;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.55);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-size: var(--fs-label);
    line-height: 1.6;
}

/* ===== Actions ===== */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    border-radius: var(--radius-cta);
    background: linear-gradient(135deg, #2ad167 0%, #22b859 100%);
    background: linear-gradient(135deg, var(--go) 0%, var(--go-deep) 100%);
    color: #0f0f1e;
    color: var(--surface-bottom);
    font-size: 0.95rem;
    font-size: var(--fs-button);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 28px -12px rgba(42, 209, 103, 0.55);
    transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}

.cta:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 32px -12px rgba(42, 209, 103, 0.65);
}

.cta:active {
    transform: scale(0.97);
}

.cta__arrow {
    transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: transform 0.15s var(--ease);
}

.cta:hover .cta__arrow {
    transform: translateX(3px);
}

/* Secondary: DESIGN.md glass button, without the blur (nothing sits behind it to blur). */
.cta--secondary {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    color: var(--text);
    box-shadow: none;
}

.cta--secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.quiet-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-size: var(--fs-body);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 4px;
    transition: color 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: color 0.15s var(--ease);
}

.quiet-link:hover {
    color: #ffffff;
    color: var(--text);
    text-decoration-color: currentColor;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2ad167;
    color: var(--go);
    font-size: 0.95rem;
    font-size: var(--fs-button);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link__arrow {
    transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: transform 0.15s var(--ease);
}

.text-link:hover .text-link__arrow {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .cta,
    .cta__arrow,
    .text-link__arrow,
    .topbar__link,
    .quiet-link {
        transition: none;
    }

    .cta:hover,
    .cta:active,
    .cta:hover .cta__arrow,
    .text-link:hover .text-link__arrow {
        transform: none;
    }
}

