@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Te same wartości co w loaderze: src/renderer/styles.css. */
:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-2: #111117;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f4f3f6;
  --muted: #b4b2bc;
  --dim: #8d8b97;
  --accent: #8b5cff;
  --on-accent: #ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-text: color-mix(in oklab, var(--accent) 72%, white);
  --ok: #4ade94;
  --warn: #f2c063;
  --bad: #ff6474;
  --r1: 27.3px;
  --r2: 18.6px;
  --r3: 13.7px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast: 130ms;
  --mid: 240ms;
  --slow: 460ms;
  --gutter: clamp(16px, 4vw, 40px);
  --page: 1160px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  corner-shape: superellipse(1.63);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: url("/assets/grain.png");
  opacity: .035;
  pointer-events: none;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.brand { fill: currentColor; stroke: none; }
.icon.flip { transform: scaleY(-1); }

.logo { display: block; width: 26px; height: 26px; flex: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.product-glyph {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(160deg, #ff2e63, #e4003f);
  color: #fff;
}
.product-glyph .icon { width: 17px; height: 17px; }
.product-glyph-lg { width: 54px; height: 54px; border-radius: 16px; }
.product-glyph-lg .icon { width: 30px; height: 30px; }

.meter {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
.meter-demo { transform: scaleX(.77) !important; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r2);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 300ms var(--ease-out), box-shadow var(--mid), filter var(--fast), background var(--mid), color var(--fast);
}
.btn:active { transform: scale(.975); }
.btn .icon { stroke-width: 2.1; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 22px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 28px -6px color-mix(in oklab, var(--accent) 70%, transparent); }

.btn-ghost-strong {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
}
.btn-ghost-strong:hover { background: var(--surface-2); }
.btn-ghost-strong.is-armed { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 100, 116, .6); }

.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn:disabled:active { transform: none; }

.btn-small { min-height: 38px; padding: 0 16px; border-radius: var(--r3); font-size: 14px; }
.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--fast), color var(--fast);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.text-button { color: var(--muted); font-size: 13px; font-weight: 500; transition: color var(--fast); }
.text-button:hover { color: var(--accent-text); }
.text-button:disabled { color: var(--dim); cursor: default; }

.lang {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--fast), color var(--fast);
}
.lang:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Nawigacja ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  transition: background var(--mid), box-shadow var(--mid), backdrop-filter var(--mid);
}
.site-nav.is-stuck {
  background: rgba(11, 11, 15, .72);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
}
.nav-links { display: flex; gap: 26px; margin-left: 18px; color: var(--muted); font-size: 14px; }
.nav-links a { transition: color var(--fast); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-login { padding: 8px 12px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color var(--fast); }
.nav-login:hover { color: var(--text); }

/* ---------- Pierwszy ekran ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84dvh, 760px);
  padding: 120px var(--gutter) 150px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("/assets/art/night.jpg") center 40% / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 15, .88) 0%, rgba(11, 11, 15, .45) 55%, rgba(11, 11, 15, .15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%, rgba(11, 11, 15, .45) 100%);
}
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.09) translateY(-1.2%); }
}
.hero-inner { position: relative; width: 100%; max-width: var(--page); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 13px;
}
.eyebrow .icon { width: 14px; height: 14px; color: #ff4d7d; }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.hero-sub { max-width: 54ch; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--dim); font-size: 13px; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }

/* ---------- Podgląd programu ---------- */

.mock-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--page);
  margin: -96px auto 0;
  padding: 0 var(--gutter);
}
.mock {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: var(--r1);
  background: #15141b;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -40px color-mix(in oklab, var(--accent) 60%, transparent);
  font-size: 13px;
}
.mock-side { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: rgba(255, 255, 255, .025); box-shadow: 1px 0 0 var(--line); }
.mock-brand { display: flex; align-items: center; gap: 9px; margin: 0 6px 16px; font-size: 15px; font-weight: 600; }
.mock-brand .logo { width: 20px; height: 20px; }
.mock-side small { margin: 10px 6px 2px; color: var(--dim); font-size: 12px; }
.mock-nav { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 13px; color: var(--muted); }
.mock-nav.is-active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 500; }
.mock-nav .product-glyph { width: 24px; height: 24px; border-radius: 7px; }
.mock-nav .product-glyph .icon { width: 14px; height: 14px; }
.mock-main { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 20px 20px; }
.mock-photo {
  height: 230px;
  margin: 0 -20px;
  background: url("/assets/art/day.jpg") center 45% / cover no-repeat;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.mock-title { display: flex; align-items: center; gap: 14px; margin-top: -30px; position: relative; }
.mock-title b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.mock-title small { color: var(--muted); }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mock-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; }
.mock-stats > div + div { box-shadow: -1px 0 0 var(--line); }
.mock-stats small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-stats b { font-size: 15px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.mock-stats b.is-ok { display: flex; align-items: center; gap: 7px; color: var(--ok); }
.mock-stats .meter { margin-top: 7px; }
.mock-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 30px -10px var(--accent);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Sekcje ---------- */

.section { max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 100px var(--gutter) 0; }
.section-narrow { max-width: calc(820px + var(--gutter) * 2); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { color: var(--accent-text); font-size: 13px; font-weight: 600; }
.section-head h2 { margin-top: 8px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  padding: 24px;
  border-radius: var(--r2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background var(--mid), box-shadow var(--mid);
}
.feature:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.feature-icon .icon { width: 19px; height: 19px; }
.feature h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.feature p { margin-top: 7px; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 24px; border-radius: var(--r2); background: linear-gradient(160deg, var(--surface-2), transparent 70%); box-shadow: inset 0 0 0 1px var(--line); }
.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- Cennik ---------- */

.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.price-card {
  position: relative;
  padding: 30px;
  border-radius: var(--r1);
  background: linear-gradient(170deg, color-mix(in oklab, var(--accent) 14%, transparent), transparent 55%), var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, var(--line));
}
.price-badge {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 6px 13px;
  border-radius: 0 0 12px 12px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.price-product { display: block; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.segments { display: inline-flex; gap: 3px; margin-top: 16px; padding: 3px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.segment { min-height: 36px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background var(--fast), color var(--fast); }
.segment:hover { color: var(--text); }
.segment.is-active { background: var(--accent); color: var(--on-accent); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.price strong { font-size: clamp(44px, 6vw, 60px); font-weight: 650; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price span { color: var(--dim); font-size: 15px; }
.price-features { display: grid; gap: 10px; padding: 18px 0; box-shadow: 0 -1px 0 var(--line); }
.price-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.price-features .icon { margin-top: 3px; color: var(--accent-text); stroke-width: 2.2; }
.trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  box-shadow: 0 -1px 0 var(--line);
  font-size: 13px;
}
.trial b { display: block; font-weight: 600; }
.trial small { color: var(--dim); font-size: 13px; }
.price-side {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--r1);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price-side h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.price-side .price-features { margin-top: 14px; box-shadow: none; padding-top: 0; }
.price-side .note { margin-top: auto; padding-top: 12px; }
.btn-discord { margin-top: 14px; }
.btn-discord .icon { color: #8e9cff; }

.note { color: var(--dim); font-size: 13px; line-height: 1.5; }
.note.is-warn { color: var(--warn); }
.note.is-bad { color: var(--bad); min-height: 0; }
.note.is-bad:empty { display: none; }

/* ---------- Pytania ---------- */

.faq { display: grid; gap: 8px; }
.faq details {
  border-radius: var(--r3);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background var(--mid);
}
.faq details[open] { background: var(--surface-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  margin-right: 3px;
  border-right: 1.7px solid var(--dim);
  border-bottom: 1.7px solid var(--dim);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--mid) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: 14px; }

/* ---------- Zakończenie strony ---------- */

.cta {
  position: relative;
  max-width: var(--page);
  margin: 100px auto 0;
  overflow: hidden;
  border-radius: var(--r1);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (max-width: 1240px) { .cta { margin-inline: var(--gutter); } }
.cta-photo { position: absolute; inset: 0; background: url("/assets/art/board.jpg") center / cover no-repeat; }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 15, .92), rgba(11, 11, 15, .55)); }
.cta-body { position: relative; padding: clamp(32px, 6vw, 60px); }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.cta p { max-width: 46ch; margin: 10px 0 22px; color: var(--muted); }
.cta .icon { width: 18px; height: 18px; }

.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 48px var(--gutter) 36px;
  color: var(--dim);
  font-size: 13px;
}
.footer .brand { color: var(--text); font-size: 15px; }
.footer .logo { width: 20px; height: 20px; }
.footer p { flex: 1; }
.footer-discord { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--muted); transition: color var(--fast), background var(--fast); }
.footer-discord:hover { background: var(--surface-2); color: #8e9cff; }

/* ---------- Pojawianie się ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Logowanie i rejestracja ---------- */

.page-auth {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(700px 480px at 70% 15%, color-mix(in oklab, var(--accent) 14%, transparent), transparent), var(--bg);
}
.lang-corner { position: fixed; top: 14px; right: 16px; z-index: 5; }
.auth-card {
  display: grid;
  grid-template-columns: 420px minmax(0, 440px);
  width: min(860px, 100%);
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--r1);
  background: #15141b;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.auth-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background: url("/assets/art/night.jpg") 45% center / cover no-repeat;
}
.auth-photo-day { background-image: url("/assets/art/day.jpg"); }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 15, .82), transparent 45%); }
.auth-photo p { position: relative; z-index: 1; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 30px; min-width: 0; }
.auth-form-compact { padding-block: 26px 20px; }
.auth-logo { display: inline-block; width: fit-content; border-radius: 8px; }
.auth-logo .logo, .auth-logo-static { width: 42px; height: 42px; }
.auth-form h1 { margin: 14px 0 20px; font-size: 25px; font-weight: 600; letter-spacing: -.028em; }
.auth-form-compact h1 { margin: 10px 0 14px; font-size: 23px; }
.auth-sub { margin: -12px 0 18px; color: var(--muted); font-size: 14px; }
.auth-switch { margin-top: 14px; color: var(--dim); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--accent-text); font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }
.auth-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; color: var(--dim); font-size: 13px; }
.auth-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; transition: color var(--fast); }
.auth-help a:hover { color: #8e9cff; }
.auth-help .icon { width: 14px; height: 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
#turnstile:not(:empty) { margin-bottom: 12px; }

.field-wrap { margin-bottom: 4px; }
.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 8px 0 14px;
  gap: 11px;
  border-radius: var(--r2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--dim);
  cursor: text;
  transition: box-shadow var(--mid), background var(--mid), color var(--mid);
}
.field:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.field:focus-within {
  color: var(--accent-text);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 70%, transparent);
}
.field.has-error { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 100, 116, .65); }
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding-top: 15px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  caret-color: var(--accent-text);
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); transition: background-color 9999s; }
.field-label {
  position: absolute;
  left: 41px;
  top: 16px;
  color: var(--muted);
  transform-origin: left top;
  pointer-events: none;
  white-space: nowrap;
  transition: transform 300ms var(--ease-out), color var(--mid);
}
.field input:focus + .field-label,
.field input:not(:placeholder-shown) + .field-label { transform: translateY(-9px) scale(.76); color: var(--dim); }
.field input:focus + .field-label { color: var(--accent-text); }
.field.has-error input + .field-label { color: var(--bad); }
.field-error {
  min-height: 19px;
  padding: 3px 0 0 14px;
  color: var(--bad);
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  transition: opacity var(--mid);
}
.field-error.is-visible { opacity: 1; }
.code-input { font-size: 18px; letter-spacing: .34em; font-variant-numeric: tabular-nums; }

.auth-form-compact .field { height: 46px; }
.auth-form-compact .field input { padding-top: 13px; }
.auth-form-compact .field-label { top: 13px; font-size: 14px; }
.auth-form-compact .field-error { min-height: 16px; padding-top: 1px; font-size: 11px; }
.auth-form-compact .field-wrap { margin-bottom: 1px; }
.auth-form-compact .btn-full { min-height: 44px; margin-top: 2px; }

.reveal {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--r3);
  color: var(--dim);
  transition: color var(--fast), background var(--fast);
}
.reveal:hover { color: var(--text); background: var(--surface-2); }
.reveal i {
  position: absolute;
  width: 20px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg) scaleX(1);
  transition: transform var(--mid) var(--ease-out);
}
.reveal[aria-pressed="true"] i { transform: rotate(-45deg) scaleX(0); }

/* ---------- Panel ---------- */

.page-dash {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100dvh;
  background: radial-gradient(900px 500px at 85% -5%, color-mix(in oklab, var(--accent) 12%, transparent), transparent), var(--bg);
}
.dash-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 20px 14px 14px;
  background: rgba(255, 255, 255, .02);
  box-shadow: 1px 0 0 var(--line);
}
.dash-side .brand { margin: 2px 8px 24px; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  transition: background var(--fast), color var(--fast);
}
.dash-nav a:hover { background: var(--surface-2); color: var(--text); }
.lang-side { align-self: flex-start; margin: auto 0 8px 4px; }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.dash-user > div { flex: 1; min-width: 0; }
.dash-user b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dash-user small { display: block; color: var(--dim); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent); font-weight: 600; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: var(--muted); transition: background var(--fast), color var(--fast); }
.icon-button:hover { background: var(--surface-3); color: var(--text); }

.dash-main { min-width: 0; max-width: 1120px; padding: 34px clamp(16px, 3vw, 38px) 48px; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.dash-head p { margin-top: 4px; color: var(--dim); font-size: 14px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.dash-empty { display: grid; place-items: center; gap: 12px; min-height: 60dvh; color: var(--muted); text-align: center; }
.dash-empty > .icon { width: 26px; height: 26px; color: var(--bad); }
.spinner { width: 26px; height: 26px; border: 2.5px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border-radius: var(--r2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card h2 { color: var(--muted); font-size: 14px; font-weight: 500; }
.card > .btn { width: 100%; }
.card > .link { margin-top: auto; }
.link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--accent-text); font-size: 13px; font-weight: 500; }
.link:hover { text-decoration: underline; }
.link .icon { width: 14px; height: 14px; }

.card-sub { position: relative; grid-column: 1 / -1; padding: 0; overflow: hidden; }
.card-sub-photo {
  position: absolute;
  inset: 0;
  background: url("/assets/art/night.jpg") center 45% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 30%, rgba(0, 0, 0, .75));
  opacity: .55;
}
.card-sub-body { position: relative; display: flex; flex-direction: column; padding: 24px; }
.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sub-head h2 { color: var(--text); font-size: 15px; font-weight: 600; }
.sub-head small { display: block; color: var(--dim); font-size: 13px; }
.sub-head .product-glyph { width: 40px; height: 40px; border-radius: 12px; }
.sub-head .product-glyph .icon { width: 22px; height: 22px; }
.tag { margin-left: auto; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-style: normal; font-weight: 600; }
.sub-big { font-size: clamp(24px, 3.2vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.sub-big.is-off { color: var(--bad); }
.sub-number { font-size: 1.5em; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.sub-note { margin-top: 5px; color: var(--muted); font-size: 14px; }
.card-sub .meter { max-width: 420px; margin-top: 16px; }

.rows { display: grid; gap: 1px; overflow: hidden; border-radius: 13px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 8px 14px; background: #121117; font-size: 14px; }
.row span { color: var(--dim); }
.row b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

.hash-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 12px 14px; border-radius: 13px; background: #121117; box-shadow: inset 0 0 0 1px var(--line); }
.hash-label { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }
.hash { overflow-wrap: anywhere; color: var(--muted); font: 500 12px/1.5 "Geist Mono", ui-monospace, monospace; user-select: all; }

.input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  border-radius: var(--r3);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  transition: box-shadow var(--mid);
}
.input::placeholder { color: var(--dim); }
.input:focus { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 70%, transparent); }
.redeem { display: grid; gap: 8px; }
.redeem-row { display: flex; gap: 8px; }
.redeem-row .btn { min-height: 44px; padding: 0 16px; border-radius: var(--r3); }

.state { display: flex; align-items: center; gap: 12px; }
.state-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--surface-2); color: var(--muted); }
.state-icon.is-ok { background: rgba(74, 222, 148, .13); color: var(--ok); }
.state-icon .icon { width: 19px; height: 19px; }
.state strong { display: block; font-weight: 600; }
.state small { color: var(--dim); font-size: 13px; }

.list { display: grid; gap: 1px; }
.list li { display: flex; align-items: center; gap: 11px; min-height: 40px; font-size: 14px; }
.list li + li { box-shadow: 0 -1px 0 var(--line); }
.list span { flex: 1; min-width: 0; }
.list time { color: var(--dim); font-size: 13px; text-align: right; white-space: nowrap; }
.list .icon { color: var(--dim); }
.list .dot { color: var(--accent-text); }
.list .is-login_failed .dot, .list .is-web_login_failed .dot, .list .is-login_foreign_device .dot, .list .is-launch_foreign_device .dot { color: var(--bad); }

/* ---------- Kasa ---------- */

.price-usdc { margin: -12px 0 18px; color: var(--dim); font-size: 13px; }
.price-usdc:empty { display: none; }
#plan-cta .btn { width: 100%; }

.page-checkout {
  display: flex;
  flex-direction: column;
  background: radial-gradient(700px 480px at 70% 5%, color-mix(in oklab, var(--accent) 14%, transparent), transparent), var(--bg);
}
.checkout-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
.checkout { display: flex; flex: 1; justify-content: center; padding: 8px 16px 48px; }
.checkout-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(720px, 100%);
  height: fit-content;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--r1);
  background: #15141b;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .9);
}
form.checkout-card { width: min(480px, 100%); }
.checkout-card h1 { font-size: clamp(23px, 3vw, 28px); font-weight: 600; letter-spacing: -.028em; line-height: 1.15; }
.checkout-center { width: min(480px, 100%); align-items: center; text-align: center; }
.segments-wide { display: flex; width: 100%; margin-top: 0; }
.segments-wide .segment { flex: 1; padding: 0 4px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: var(--r3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.checkout-total > span { color: var(--muted); }
.checkout-total > div { text-align: right; }
.checkout-total b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.checkout-total small { color: var(--dim); font-size: 13px; }
.checkout-rate:empty { display: none; }
.accept { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.accept input { position: absolute; opacity: 0; pointer-events: none; }
.sw-box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: transparent; transition: background var(--fast), color var(--fast); }
.sw-box .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.accept input:checked + .sw-box { background: var(--accent); color: #fff; }
.accept input:focus-visible + .sw-box { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.checkout-card > .field-error { min-height: 0; padding-top: 0; margin-top: -8px; }
.checkout-card > .field-error:empty { display: none; }

.checkout-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r3); background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 500; }
.checkout-status.is-warn { background: rgba(242, 192, 99, .12); color: var(--warn); }
.checkout-status .icon { flex: none; }
.checkout-clock { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.spinner-small { width: 16px; height: 16px; flex: none; border-width: 2px; }

.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: start; }
.pay-fields { display: grid; gap: 8px; min-width: 0; }
.pay-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 12px 14px; border-radius: var(--r3); background: #121117; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.pay-box > span { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }
.pay-box b { font-weight: 600; }
.pay-amount { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent); }
.pay-amount strong { font-size: clamp(22px, 3.4vw, 28px); font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-address { grid-template-columns: minmax(0, 1fr); justify-items: start; }
.pay-address .hash { font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; color: var(--text); }
.pay-key { width: 100%; }
.pay-key .hash { font-size: 14px; color: var(--text); }
.pay-qr { display: grid; gap: 8px; justify-items: center; }
.pay-qr small { color: var(--dim); font-size: 12px; line-height: 1.4; text-align: center; }
.qr { width: 100%; max-width: 220px; height: auto; border-radius: var(--r3); background: #fff; image-rendering: pixelated; }
.pay-rules { display: grid; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pay-rules li { display: flex; gap: 10px; }
.pay-rules .icon { margin-top: 2px; color: var(--warn); }
.pay-rules li:last-child .icon { color: var(--dim); }
.pay-rules .is-strong { color: var(--text); font-weight: 500; }
.pay-details { color: var(--dim); font-size: 13px; }
.pay-details summary { cursor: pointer; }
.pay-details .hash { display: block; margin-top: 6px; }
.checkout-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-actions-full { display: grid; width: 100%; }
.checkout-actions-full .btn { width: 100%; white-space: normal; text-align: center; }

/* ---------- Komunikaty ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #1c1b23;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -10px rgba(0, 0, 0, .8);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--mid), transform 400ms var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--accent-text); }

.not-found { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100dvh; }
.not-found .logo { width: 54px; height: 54px; }
.not-found h1 { font-size: 72px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }

/* ---------- Mniejsze ekrany ---------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: minmax(0, 1fr); width: min(460px, 100%); min-height: 0; }
  .auth-photo { display: none; }
}

@media (max-width: 820px) {
  .page-dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side {
    position: sticky;
    z-index: 10;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 10px 16px;
    background: rgba(11, 11, 15, .85);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line);
  }
  .dash-side .brand { margin: 0 auto 0 0; }
  .dash-nav { order: 3; display: flex; width: 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .dash-nav a { min-height: 36px; padding: 0 10px; white-space: nowrap; font-size: 13px; }
  .lang-side { margin: 0; align-self: center; }
  .dash-user { padding: 0; background: none; box-shadow: none; }
  .dash-user > div { display: none; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-main { padding-top: 22px; }
  html { scroll-padding-top: 110px; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; padding: 104px var(--gutter) 120px; }
  .hero-photo::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 15, .55) 60%, rgba(11, 11, 15, .7) 100%); }
  .mock-wrap { margin-top: -80px; }
  .mock { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .mock-photo { height: 150px; }
  .mock-stats { grid-template-columns: minmax(0, 1fr); }
  .mock-stats > div + div { box-shadow: 0 -1px 0 var(--line); }
  .section { padding-top: 72px; }
  .feature-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .price-card, .price-side { padding: 22px; }
  .segments { display: flex; width: 100%; }
  .segment { flex: 1; padding: 0 6px; }
  .price-badge { right: 18px; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 3; flex-basis: 100%; }
  .footer-discord { margin-left: auto; }
  .nav-login { display: none; }
  .auth-form { padding: 28px 22px 24px; }
  .trial { flex-wrap: wrap; }
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .pay-qr { order: 2; }
  .redeem-row { flex-wrap: wrap; }
  .redeem-row .input { flex-basis: 100%; }
  .redeem-row .btn { flex: 1; }
  .list time { max-width: 45%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
