/*
 * MaturaTracker — landing
 * Kolory i Inter wzięte z aplikacji (styl Graphite), szeroki Archivo na nagłówki i licznik.
 */
/* Czcionki trzymane u nas (bez Google Fonts — żadnego IP do Google'a). Licencja SIL OFL: fonts/LICENSE-*.txt */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/inter-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/inter-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/inter-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/inter-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/inter-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/inter-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
    --asfalt: #0b0b0e;
    --grafit: #15151a;
    --grafit-2: #1c1c23;
    --linia: rgba(255, 255, 255, 0.08);
    --kreda: #ececf1;
    --popiol: #a3a3b4;
    --fiolet: #8b5cf6;
    --fiolet-mocny: #7c3aed;
    --fiolet-tlo: rgba(139, 92, 246, 0.14);

    --f-bad: #ef4444;
    --f-weak: #f97316;
    --f-avg: #f59e0b;
    --f-good: #eab308;
    --f-vgood: #84cc16;
    --f-excel: #22c55e;
    --f-max: #fbbf24;

    --font-body: 'Inter', system-ui, sans-serif;
    --font-wide: 'Archivo', 'Arial Black', sans-serif;

    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 8px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--asfalt);
    background-image: radial-gradient(ellipse 70% 45% at 70% -5%, rgba(124, 58, 237, 0.10) 0%, transparent 60%);
    color: var(--kreda);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--fiolet);
    outline-offset: 3px;
    border-radius: 4px;
}

.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;
}

.wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* ---------- nagłówek ---------- */
.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-wide);
    font-stretch: 112%;
    font-weight: 800;
    font-size: 1.05rem;
}

.social {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--popiol);
}

.social a {
    text-decoration: none;
}

.social a:hover {
    color: var(--kreda);
}

/* ---------- hero ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 96px;
}

h1,
h2 {
    font-family: var(--font-wide);
    font-stretch: 118%;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1.04;
    margin: 0;
}

h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    max-width: 13ch;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.lead {
    margin: 24px 0 32px;
    max-width: 34rem;
    color: var(--popiol);
    font-size: 1.15rem;
}

/* ---------- formularz ---------- */
.waitlist {
    max-width: 34rem;
}

.field-row {
    display: flex;
    gap: 8px;
}

.waitlist input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--linia);
    border-radius: var(--r-md);
    background: var(--grafit);
    color: var(--kreda);
    font: inherit;
}

.waitlist input[type="email"]::placeholder {
    color: #6f6f80;
}

.waitlist input[type="email"]:focus {
    outline: none;
    border-color: var(--fiolet);
    box-shadow: 0 0 0 3px var(--fiolet-tlo);
}

.waitlist button {
    flex: 0 0 auto;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--r-md);
    background: var(--fiolet-mocny);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.waitlist button:hover {
    background: var(--fiolet);
}

.waitlist button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--popiol);
    cursor: pointer;
}

.consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--fiolet-mocny);
}

.form-msg {
    min-height: 1.4em;
    margin: 12px 0 0;
    font-size: 0.92rem;
}

.form-msg.ok {
    color: var(--f-excel);
}

.form-msg.err {
    color: #f87171;
}

.waitlist.sent .field-row,
.waitlist.sent .consent {
    display: none;
}

.launch-note {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #7c7c8e;
}

/* ---------- licznik ---------- */
.instrument {
    position: relative;
    padding: 28px 28px 24px;
    border: 1px solid var(--linia);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #17171d 0%, #111116 100%);
}

.gauge-wrap {
    position: relative;
    isolation: isolate;
}

/* poświata i płomień przy wysokiej formie */
.gauge-wrap::before {
    content: '';
    position: absolute;
    inset: 8% 14% 18%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 85%, rgba(251, 146, 60, 0.55) 0%, rgba(239, 68, 68, 0.25) 35%, transparent 70%);
    filter: blur(18px);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gauge-wrap.hot::before {
    opacity: 0.55;
    transform: scale(1);
}

.gauge-wrap.max::before {
    opacity: 1;
    transform: scale(1.08);
    animation: flicker 1.6s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1.04) translateY(0); opacity: 0.85; }
    35% { transform: scale(1.12) translateY(-3%); opacity: 1; }
    60% { transform: scale(1.06) translateY(-1%); opacity: 0.9; }
    100% { transform: scale(1.14) translateY(-4%); opacity: 1; }
}

.gauge {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.gauge .arc-bg {
    fill: none;
    stroke: #24242c;
    stroke-width: 16;
}

.gauge .arc {
    fill: none;
    stroke-width: 16;
    opacity: 0.22;
    transition: opacity 0.4s ease;
}

.gauge .arc.lit {
    opacity: 1;
}

.gauge .tick {
    stroke: #3a3a46;
    stroke-width: 2;
}

.gauge .tick.major {
    stroke: #5a5a68;
    stroke-width: 2.5;
}

.gauge .tick-label {
    fill: #7c7c8e;
    font-family: var(--font-wide);
    font-stretch: 110%;
    font-weight: 700;
    font-size: 11px;
}

.needle {
    transform-origin: 130px 130px;
    transform: rotate(-90deg);
    transition: transform 0.9s cubic-bezier(0.34, 1.45, 0.5, 1);
}

.needle line {
    stroke: var(--kreda);
    stroke-width: 4;
    stroke-linecap: round;
}

.needle circle {
    fill: var(--kreda);
}

.readout {
    margin-top: -6px;
    text-align: center;
}

.score {
    display: block;
    font-family: var(--font-wide);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.status {
    margin-top: 8px;
    min-height: 1.4em;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: color 0.4s ease;
}

.strip-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 28px 0 10px;
    font-size: 0.85rem;
    color: var(--popiol);
}

.strip-head p {
    margin: 0;
}

.strip-head .total {
    flex: 0 0 auto;
    white-space: nowrap;
}

.strip-head .total b {
    color: var(--kreda);
    font-variant-numeric: tabular-nums;
}

.strip {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 5px;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #7c7c8e;
    font: inherit;
    font-size: 0.68rem;
    cursor: pointer;
}

.day .cell {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid var(--linia);
    background: #1d1d24;
    color: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.day:hover .cell {
    border-color: rgba(139, 92, 246, 0.6);
}

.day:active .cell {
    transform: scale(0.92);
}

.day[data-level="1"] .cell { background: rgba(139, 92, 246, 0.28); color: #d7ccff; }
.day[data-level="2"] .cell { background: rgba(139, 92, 246, 0.48); color: #efeaff; }
.day[data-level="4"] .cell { background: rgba(139, 92, 246, 0.72); color: #fff; }
.day[data-level="8"] .cell { background: #8b5cf6; color: #fff; }
.day[data-level="14"] .cell { background: #a78bfa; color: #1a1033; }

.day.today {
    color: var(--kreda);
    font-weight: 600;
}

.presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.presets button {
    padding: 8px 12px;
    border: 1px solid var(--linia);
    border-radius: 999px;
    background: transparent;
    color: var(--kreda);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.presets button:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: var(--fiolet-tlo);
}

.presets button.quiet {
    color: var(--popiol);
}

/* ---------- jak to działa ---------- */
.how {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 72px;
    border-top: 1px solid var(--linia);
}

.steps {
    list-style: none;
    counter-reset: krok;
    margin: 32px 0 0;
    padding: 0;
}

.steps li {
    counter-increment: krok;
    position: relative;
    padding-left: 52px;
    margin-bottom: 28px;
}

.steps li::before {
    content: counter(krok);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    font-family: var(--font-wide);
    font-stretch: 115%;
    font-weight: 800;
    font-size: 0.9rem;
    color: #c4b5fd;
}

.steps h3 {
    margin: 4px 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.steps p {
    margin: 0;
    color: var(--popiol);
    max-width: 30rem;
}

.shot {
    margin: 0;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--linia);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #7c7c8e;
}

/* ---------- od twórcy ---------- */
.author {
    padding-top: 72px;
    padding-bottom: 72px;
    border-top: 1px solid var(--linia);
}

.author blockquote {
    margin: 0;
    max-width: 44rem;
}

.author blockquote p {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.45;
}

.author blockquote footer {
    margin-top: 18px;
    color: var(--popiol);
    font-size: 0.95rem;
}

/* ---------- pytania ---------- */
.faq {
    padding-top: 72px;
    padding-bottom: 72px;
    border-top: 1px solid var(--linia);
}

.faq h2 {
    margin-bottom: 24px;
}

.faq details {
    max-width: 46rem;
    border-bottom: 1px solid var(--linia);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--fiolet);
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0 0 20px;
    color: var(--popiol);
    max-width: 40rem;
}

/* ---------- zamknięcie ---------- */
.closing {
    padding-top: 80px;
    padding-bottom: 96px;
    border-top: 1px solid var(--linia);
}

.closing h2 {
    max-width: 16ch;
    margin-bottom: 28px;
}

/* ---------- stopka ---------- */
.bottom {
    border-top: 1px solid var(--linia);
    font-size: 0.85rem;
    color: #7c7c8e;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    padding-bottom: 24px;
}

.bottom-row p {
    margin: 0;
}

.bottom nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bottom a {
    text-decoration: none;
}

.bottom a:hover {
    color: var(--kreda);
}

/* ---------- strony tekstowe (polityka) ---------- */
.doc {
    max-width: 46rem;
    padding-top: 32px;
    padding-bottom: 80px;
}

.doc h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    max-width: none;
    margin-bottom: 8px;
}

.doc h2 {
    font-family: var(--font-body);
    font-stretch: normal;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 36px 0 8px;
}

.doc p,
.doc li {
    color: #c9c9d4;
}

.doc .meta {
    color: #7c7c8e;
    font-size: 0.9rem;
}

.doc .todo {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 0 4px;
    border-radius: 4px;
}

/* ---------- hero: data startu ---------- */
.eyebrow {
    margin: 0 0 18px;
}

.eyebrow span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- widżet Formy z biretem ---------- */
.fd-top {
    --glow: var(--f-avg);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
}

.fd-top::before {
    content: '';
    position: absolute;
    left: -4%;
    top: 0;
    width: 52%;
    height: 100%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--glow) 45%, transparent), transparent 70%);
    filter: blur(22px);
    opacity: 0.35;
    transition: opacity 0.6s ease, background 0.6s ease;
}

.fd-top.hot::before {
    opacity: 0.75;
}

.fd-mascot {
    flex: 0 0 auto;
    width: 46%;
    max-width: 230px;
}

.fd-mascot svg {
    display: block;
    width: 100%;
    height: auto;
}

.fd-mascot.hop {
    animation: fdHop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes fdHop {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-14px) scale(1.06); }
    70% { transform: translateY(2px) scale(0.98); }
    100% { transform: translateY(0) scale(1); }
}

.fd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fd-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--popiol);
}

.fd-info .status {
    margin-top: 6px;
}

.fd-segs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 22px;
}

.fd-seg {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.fd-seg i {
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- funkcje ---------- */
.features {
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid var(--linia);
}

.section-head {
    max-width: 40rem;
    margin-bottom: 56px;
}

.section-head p {
    margin: 14px 0 0;
    color: var(--popiol);
    font-size: 1.1rem;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
    gap: 56px;
    align-items: center;
    margin-bottom: 96px;
}

.feature.flip .feature-copy {
    order: 2;
}

.feature-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--fiolet-tlo);
    color: #d4c7ff;
    font-size: 0.82rem;
    font-weight: 600;
}

.feature h3 {
    margin: 0 0 14px;
    font-family: var(--font-wide);
    font-stretch: 112%;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.12;
}

.feature p {
    margin: 0;
    color: var(--popiol);
}

.feature ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.feature li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    color: var(--kreda);
    font-size: 0.98rem;
}

.feature li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: 700;
}

.feature li b {
    font-weight: 600;
    color: #a7f3d0;
}

.clip {
    margin: 0;
}

.clip-frame {
    position: relative;
    padding-top: 26px;
    border: 1px solid var(--linia);
    border-radius: var(--r-lg);
    background: #141419;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.06);
    overflow: hidden;
}

.clip-dots {
    position: absolute;
    top: 9px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.clip-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.clip video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0b0b0e;
}

/* ---------- dlaczego to działa ---------- */
.why {
    padding-top: 72px;
    padding-bottom: 72px;
    border-top: 1px solid var(--linia);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.why-card {
    padding: 24px;
    border: 1px solid var(--linia);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #17171d 0%, #111116 100%);
}

.why-ico {
    font-size: 1.6rem;
}

.why-card h3 {
    margin: 12px 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.why-card p {
    margin: 0;
    color: var(--popiol);
    font-size: 0.98rem;
}

@media (max-width: 900px) {
    .feature,
    .feature.flip {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-bottom: 72px;
    }

    .feature.flip .feature-copy {
        order: 0;
    }

    .why-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .features,
    .why {
        padding-top: 56px;
        padding-bottom: 32px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .fd-top {
        gap: 14px;
    }

    .fd-mascot {
        width: 42%;
    }

    .clip-frame {
        padding-top: 20px;
    }

    .clip-dots {
        top: 6px;
    }
}

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 900px) {
    .hero,
    .how {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 64px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .how,
    .author,
    .faq {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .closing {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .top .social {
        display: none;
    }

    .brand span {
        font-size: 0.95rem;
    }

    .field-row {
        flex-direction: column;
    }

    .instrument {
        padding: 22px 16px 18px;
    }

    .strip {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        row-gap: 10px;
    }

    .strip-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* nazwa w logo jak w aplikacji: fioletowy gradient */
.brand span {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #8b5cf6;
}

[hidden] {
    display: none !important;
}

/* ---------- pokaz aplikacji w hero (zamiast Formy): zapętlony klip wtopiony w tło ---------- */
main {
    overflow-x: clip;                /* klip wychodzi poza prawą krawędź treści — bez poziomego przewijania */
}

.showcase {
    --clip-blur: 0px;                /* nagranie z Focusee Pro, bez znaku wodnego — ostro (np. 0.7px = lekkie rozmycie) */
    position: relative;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.showcase::before {
    content: '';
    position: absolute;
    inset: 5% 0 5% 10%;
    background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.24), transparent 70%);
    filter: blur(40px);
}

.showcase-frame {
    position: relative;
    /* na szerokim ekranie klip jest większy: wychodzi w prawo poza kolumnę, ale nie dalej niż do krawędzi okna */
    width: calc(100% + min(440px, (100vw - min(100vw, 1140px)) / 2 + 24px));
    aspect-ratio: 1920 / 986;
    overflow: hidden;
    /* wszystkie krawędzie rozpływają się w tle strony; rogi (tam był znak wodny) najmocniej */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 76%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 78%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 76%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 78%, transparent);
    mask-composite: intersect;
}

.showcase-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);          /* rozmycie nie zostawia jasnej obwódki */
    filter: blur(var(--clip-blur)) brightness(0.92) saturate(1.05);
}

@media (max-width: 900px) {
    .showcase-frame { width: auto; margin: 0 -16px; aspect-ratio: 3 / 2; } /* na telefonie środek klipu, trochę większy */
}

/* pułapka na boty w formularzu zapisu: pole niewidoczne dla ludzi */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* =====================================================================
 * 27.10 — strona na całą szerokość, większe logo i klip, zmieniający się nagłówek
 * ===================================================================== */
:root {
    --pad: clamp(16px, 5vw, 96px);   /* odstęp treści od krawędzi okna */
}

.wrap {
    max-width: none;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* logo trochę większe */
.brand { gap: 12px; font-size: 1.3rem; }
.brand img { width: 48px; height: auto; }

/* hero: tekst po lewej, klip po prawej aż do krawędzi okna */
@media (min-width: 901px) {
    .hero { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 32px; }
}
h1 { font-size: clamp(2.3rem, 4.3vw, 5rem); }
.showcase-frame { width: calc(100% + var(--pad)); }

/* zmieniający się nagłówek: hasła leżą w tej samej komórce, wjeżdżają od lewej do prawej */
.rot { display: grid; }
.rot-item { grid-area: 1 / 1; align-self: start; }               /* każde hasło zaczyna się od góry */
.rot-item + .rot-item { visibility: hidden; }               /* bez skryptu widać tylko pierwsze hasło */
.rot.ready .rot-item {
    visibility: visible;
    clip-path: inset(-0.2em 100% -0.2em 0);                 /* schowane: odsłania się od lewej */
    opacity: 0.4;
    transition: clip-path 1s cubic-bezier(0.65, 0, 0.25, 1), opacity 1s ease;
}
.rot.ready .rot-item.is-on { clip-path: inset(-0.2em 0 -0.2em 0); opacity: 1; }
.rot.ready .rot-item.is-out { clip-path: inset(-0.2em 0 -0.2em 100%); opacity: 0.4; transition-duration: 0.7s; }  /* znika w prawo */
.rot.ready .rot-item.no-anim { transition: none; }

/* „matury.” w gradiencie jak w logo; gdy hasło wjedzie, przez słowo przechodzi błysk i lekka poświata */
.grad {
    background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%), linear-gradient(90deg, #a78bfa, #f97316);
    background-size: 260% 100%, 100% 100%;
    background-position: 130% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.rot.ready .rot-item.is-on .grad { animation: gradShine 1.5s cubic-bezier(0.45, 0, 0.25, 1) 0.8s both; }
@keyframes gradShine {
    0% { background-position: 130% 0, 0 0; filter: drop-shadow(0 0 0 rgba(249, 115, 22, 0)); }
    45% { filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.5)); }
    100% { background-position: -30% 0, 0 0; filter: drop-shadow(0 0 0 rgba(249, 115, 22, 0)); }
}
@media (prefers-reduced-motion: reduce) {
    .rot.ready .rot-item.is-on .grad { animation: none; }
}

/* Discord: dopóki nie ma linku zaproszenia (landing.js → SOCIAL.discord), pozycja jest wyszarzona */
.discord-link[data-soon] { opacity: 0.5; cursor: default; }

@media (max-width: 900px) {
    .showcase-frame { width: auto; margin: 0 calc(-1 * var(--pad)); }
}

@media (max-width: 560px) {
    .wrap { padding-left: var(--pad); padding-right: var(--pad); }
    .brand span { font-size: 1.1rem; }
    .brand img { width: 42px; }
}
