/* Landing "Kalkulator FPS" (/landing/fps, views/landing_wrapper.php + views/landing/fps.php) - moved 2026-11-23 from
   fps.megaserwer.pl with its accepted look (fps.megaserwer CLAUDE/makiety/ile-fps-v2.html): reactbits.dev style, dark
   background, violet as the only accent, thin borders instead of shadows, system font in headings too. No animations.
   Own stylesheet on purpose: the landing wrapper loads neither Bootstrap nor the Altum theme. */
:root {
    --bg: #060010; --text: #ffffff; --muted: rgba(255,255,255,.58); --line: #271e37;
    --card: rgba(255,255,255,.025); --chip: rgba(255,255,255,.06); --band: #0b0618;
    --accent: #5227ff; --accent-soft: #b19eef; --accent-hover: #6a45ff;
    --primary-bg: var(--accent); --primary-text: #ffffff; --primary-hover: var(--accent-hover); --secondary-hover: rgba(255,255,255,.1);
    --card-shadow: inset 0 0 0 1px var(--line);
    --good: #30d158; --mid: #ffb340; --bad: #ff6961;
    --gutter: 40px; --section: 144px;
    --display: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color-scheme: dark;
}
@media (max-width: 767.98px) { :root { --gutter: 16px; --section: 96px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 14px/1.45 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
button, select { font: inherit; color: inherit; }
.small { font-size: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.muted { color: var(--muted); font-weight: 400; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.stack { display: flex; flex-direction: column; gap: 32px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }

header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 22px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; color: var(--text); }
/* Signet sized as in the Megawrzuta menu (.logo svg: 47px, 55px from 992px) */
.logo svg { display: block; width: 47px; height: 47px; }
@media (min-width: 992px) { .logo svg { width: 55px; height: 55px; } }
/* Hover like icons on Megawrzuta (custom.css "a svg"): scale only, no dimming (Marcin 2026-11-23) */
.logo svg { transition: transform .15s; }
.logo:hover { color: var(--text); }
.logo:hover svg { transform: scale(1.1); }
.logo:active svg { transform: scale(.9); }
header nav { display: flex; gap: 24px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 0; border-radius: 26px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.btn--primary { background: var(--primary-bg); color: var(--primary-text); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-text); }
.btn--secondary { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--secondary:hover { background: var(--secondary-hover); color: var(--text); }

.card { background: rgba(11,6,22,.82); border-radius: 20px; box-shadow: var(--card-shadow); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.rows { list-style: none; padding: 0; }
.rows > li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }

.switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 50px; background: var(--chip); flex-wrap: wrap; }
.switch button { height: 32px; padding: 0 14px; border: 0; border-radius: 50px; background: none; color: var(--muted); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--accent); color: #ffffff; }

/* Hero: po lewej pytanie, po prawej narzędzie */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 40px 64px; align-items: start; padding-top: 72px; }
.hero__claim { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.hero__claim .lead { font-size: 17px; max-width: 460px; }
.tool { gap: 22px; padding: 28px; }
.tool__gpu { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Own chevron 14px from the edge (the native one sat at the very right) */
.tool__gpu select { width: 100%; max-width: 360px; height: 40px; padding: 0 40px 0 12px; border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none; background: #0e0819 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8b3c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.tool__result { display: flex; flex-direction: column; gap: 12px; }
/* The label always under the number: beside a narrow range (7–9) and under a wide one (10–14) the card changed height */
.fps { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fps__value { font-family: var(--display); font-size: clamp(56px, 8vw, 96px); font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.bar span { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--good); }
.bar span[data-level="mid"] { background: var(--mid); }
.bar span[data-level="bad"] { background: var(--bad); }
.level { display: inline-flex; align-items: center; gap: 8px; }
.level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chip); }
.level[data-level="good"]::before { background: var(--good); }
.level[data-level="mid"]::before { background: var(--mid); }
.level[data-level="bad"]::before { background: var(--bad); }


.how { max-width: 820px; }

/* Tło hero: Dither z React Bits (https://reactbits.dev, MIT + Commons Clause, (c) David Haz), przepisany na czysty WebGL bez Reacta */
.hero-wrap { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; image-rendering: pixelated;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero-wrap .hero { position: relative; padding-top: 152px; padding-bottom: 96px; }
.hero__claim h1, .hero__claim p { text-shadow: 0 0 24px var(--bg), 0 0 8px var(--bg); }
footer { padding: 56px 0 72px; color: var(--muted); font-weight: 400; font-size: 13px; }
footer .wrap { display: flex; flex-direction: column; gap: 10px; max-width: 1240px; }
footer a { text-decoration: underline; text-underline-offset: 2px; }
/* Recommendations (products with affiliate links, app/includes/landing/fps.php) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tool__more { align-self: flex-start; }
.upgrade .gain { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; color: var(--accent-soft); }
.upgrade .gain--none { font-size: 16px; font-weight: 500; color: var(--muted); }
.upgrade .end, .set .end { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: var(--section); padding: 88px 0; }
.section--first { padding-top: 48px; }
.band__body { gap: 20px; }
.band__body p { font-size: 16px; }
.band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; align-items: start; }

/* Meganetwork place under the result (house ads, data-mgn-fit="content"): no room until an ad arrives, none without one */
.tool__ad { height: 0; overflow: hidden; margin-top: -22px; } /* -22px: without an ad the card keeps its height (gap of .tool) */
.tool__ad[data-mgn-state="filled"] { height: auto; overflow: visible; margin-top: 0; }

@media (max-width: 767.98px) { header nav { display: none; } .hero-wrap .hero { padding-top: 96px; } .band { padding: 64px 0; } }
