/* ═══════════════════════════════════════════════════════════════════════════
   dB RECORDS APPS STORE — arkusz stylów całej witryny.
   Marka (kolory + czcionki) na samej górze: zmień tu, przebuduje się wszystko.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --ink:      #0a0a0b;   /* tło główne          */
  --cell:     #141417;   /* tło sekcji / hover  */
  --rail:     #1f1f23;
  --hairline: #34343a;   /* linie / obramowania */
  --steel:    #5a5a62;
  --silver:   #8a8a92;   /* etykiety mono       */
  --mist:     #b6b6bc;   /* tekst opisowy       */
  --paper:    #f4f3f0;   /* tekst główny        */
  --alarm:    #eb5757;   /* czerwony / błąd     */
  --ok:       #7bd88f;   /* zielony / sukces    */
  --wait:     #e0b352;   /* bursztyn / oczekiwanie, notatki wewnętrzne */

  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-brand:   "Gilroy", "Inter Tight", ui-sans-serif, system-ui, sans-serif;

  --max: 1440px;
  --gutter: 24px;
  --gutter-md: 56px;
}

/* Logo wordmark: Gilroy Light, self-hosted (same family the studio apps use). */
@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/Gilroy-Light.otf") format("opentype");
}

/* Body + mono fonts, self-hosted (Inter Tight, JetBrains Mono; SIL OFL 1.1).
   Served from our own origin so pages make no third-party (Google) font
   request: see the Cookie Policy. latin + latin-ext cover EN + PL text. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-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: "Inter Tight";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-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;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--paper); color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100vh; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }

/* ── Pomocnicze ────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .wrap { padding: 0 var(--gutter-md); } }
.mono { font-family: var(--font-mono); text-transform: uppercase; }
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver); }
.inline-link { border-bottom: 1px solid var(--hairline); color: var(--paper); transition: border-color .2s; }
.inline-link:hover { border-color: var(--mist); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ══ NAWIGACJA ══════════════════════════════════════════════════════════ */
header.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid rgba(52,52,58,.4);
  background: rgba(10,10,11,.6); backdrop-filter: blur(12px);
  transition: background .3s, border-color .3s;
}
header.nav.scrolled { background: rgba(10,10,11,.92); border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; transition: height .3s; }
header.nav.scrolled .nav-inner { height: 48px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand svg { height: 22px; width: auto; color: var(--paper); transition: height .3s; }
header.nav.scrolled .brand svg { height: 17px; }
.brand .word { font-family: var(--font-brand); font-weight: 300; font-size: 18px; letter-spacing: .005em; }
.nav-links { margin-left: auto; display: none; align-items: center; gap: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-cta { margin-left: 16px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper); transition: border-color .2s, color .2s; white-space: nowrap; }
.nav-cta:hover { border-color: var(--mist); }
.nav-burger { margin-left: 16px; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--hairline); border-radius: 999px; color: var(--paper); background: none; cursor: pointer; }
.nav-menu { display: none; border-top: 1px solid var(--hairline); background: var(--ink); padding: 24px var(--gutter); }
.nav-menu.open { display: block; }
.nav-menu ul { display: grid; gap: 18px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-menu { display: none !important; }
}
.nav-spacer { height: 64px; }

/* ══ HERO (homepage) ════════════════════════════════════════════════════ */
.hero { position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 900px); display: flex; align-items: stretch;
  background: radial-gradient(120% 90% at 60% 20%, #1a1a1f 0%, #0a0a0b 60%);
  /* Podmień na własne zdjęcie: wrzuć plik do img/ i odkomentuj:
     background-image: url("../img/hero.jpg"); background-size: cover; background-position: center; */
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 30%, transparent 45%, rgba(0,0,0,.72)); }
.hero .spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle 320px at var(--mx,50%) var(--my,42%), rgba(255,255,255,.06), transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 128px; padding-bottom: 56px; }
@media (min-width: 768px) { .hero-inner { padding-top: 160px; padding-bottom: 96px; } }
.hero h1 { margin-top: 24px; font-weight: 600; letter-spacing: -.02em; line-height: .98;
  font-size: clamp(40px, 8vw, 76px); max-width: 14ch; }
.hero p.lead { margin-top: 24px; max-width: 52ch; color: var(--mist); font-size: clamp(16px, 2.2vw, 20px); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { margin-top: 56px; display: none; gap: 32px; align-items: baseline;
  border-top: 1px solid rgba(52,52,58,.6); padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.hero-meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
@media (min-width: 768px) { .hero-meta { display: flex; } }

/* ── Przyciski ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 13px 26px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .24s, border-color .24s, color .24s; }
.btn-primary { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--hairline); color: var(--paper); background: none; }
.btn-ghost:hover { border-color: var(--mist); }
.btn-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 12px 24px; }

/* ══ PAGE HERO (podstrony) ══════════════════════════════════════════════ */
.page-hero { border-bottom: 1px solid var(--hairline); background: var(--cell); padding: 96px 0 64px; }
@media (min-width: 768px) { .page-hero { padding: 128px 0 96px; } }
.page-hero h1 { margin-top: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(34px, 6vw, 60px); max-width: 20ch; }
.page-hero p.lead { margin-top: 20px; max-width: 54ch; color: var(--mist); font-size: clamp(15px, 2vw, 18px); }

/* ══ SEKCJE / SIATKA / PROSE ════════════════════════════════════════════ */
/* padding pionowy (nie shorthand) — bezpieczne, gdy .section łączy się z .wrap */
.section { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 768px) { .section { padding-top: 104px; padding-bottom: 104px; } }
.section.hair { border-bottom: 1px solid var(--hairline); }
.grid12 { display: grid; gap: 40px; }
/* Column spans only apply once the 12-track grid exists (≥768px). Kept out of
   the base rule so that on mobile grid12 stays a single full-width column —
   otherwise span-N children invent implicit tracks and render under-width. */
@media (min-width: 768px) {
  .grid12 { grid-template-columns: repeat(12, 1fr); gap: 56px; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
}
.prose { color: var(--mist); font-size: clamp(15px, 2vw, 18px); line-height: 1.7; max-width: 60ch; }
.prose p + p { margin-top: 20px; }

/* ══ KATALOG (homepage) ═════════════════════════════════════════════════ */
.catalogue { border-top: 1px solid var(--hairline); background: var(--ink); padding: 80px 0; }
@media (min-width: 768px) { .catalogue { padding: 112px 0; } }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.cat-head h2 { margin-top: 16px; font-weight: 600; letter-spacing: -.02em; font-size: clamp(28px, 5vw, 48px); max-width: 18ch; }
.cat-head .note { display: none; text-align: right; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
@media (min-width: 768px) { .cat-head .note { display: block; } }
.rows { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.row { display: grid; align-items: center; gap: 20px; padding: 24px 0;
  grid-template-columns: auto 1fr auto; transition: background .24s; border-top: 1px solid var(--hairline); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--cell); }
/* The 5-column layout needs real width for the longest content combo
   (tiered launch pricing + a 3-platform tag) — below this it's the mobile
   stack, not a cramped row. */
@media (min-width: 1024px) {
  .row { grid-template-columns: auto minmax(0,2fr) minmax(0,2fr) auto auto; gap: 32px; padding: 28px 16px; }
}
.icon-tile { width: 56px; height: 56px; border-radius: 22%; border: 1px solid rgba(52,52,58,.6);
  background: linear-gradient(160deg, #26262b, #131316); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--silver);
  transition: transform .4s ease; overflow: hidden; flex-shrink: 0; }
.icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.row:hover .icon-tile { transform: scale(1.05); }
@media (min-width: 1024px) { .icon-tile { width: 64px; height: 64px; } }
.row .id .plat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.row .id h3 { margin-top: 4px; font-weight: 600; letter-spacing: -.01em; font-size: clamp(18px, 2.4vw, 21px); }
.row .tag { grid-column: 1 / -1; max-width: 58ch; font-size: 14px; color: var(--mist); }
@media (min-width: 1024px) { .row .tag { grid-column: 3 / 4; } }
.row .price { grid-column: 1 / -1; text-align: left; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; }
.row .price .amt { color: var(--paper); }
.row .price .amt.launch { color: var(--ok); font-size: 13px; }
.row .price .was { display: block; color: var(--steel); text-decoration: line-through; font-size: 10px; margin-bottom: 2px; }
.row .price .sub { margin-top: 4px; display: block; color: var(--silver); }
.row .price .sub.launch { color: var(--ok); }
.row .arrow { display: none; color: var(--silver); transition: transform .24s, color .24s; }
.row:hover .arrow { color: var(--paper); transform: translateX(4px); }
@media (min-width: 1024px) {
  .row .price { grid-column: auto; text-align: right; }
  .row .arrow { display: block; }
}

/* ══ STUDIO ═════════════════════════════════════════════════════════════ */
.studio { border-top: 1px solid var(--hairline); background: var(--cell); padding: 80px 0; }
@media (min-width: 768px) { .studio { padding: 112px 0; } }
.studio-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .studio-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.studio h2 { font-weight: 600; letter-spacing: -.02em; font-size: clamp(26px, 4vw, 40px); max-width: 20ch; margin-top: 16px; }
.frame { border: 1px solid var(--hairline); border-radius: 4px;
  background: radial-gradient(130% 100% at 30% 20%, #1e1e23, #0d0d0f); display: grid; place-items: center; overflow: hidden; }
.frame.ar43 { aspect-ratio: 4/3; }
.frame.ar169 { aspect-ratio: 16/9; }
.frame span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
/* App screenshots (product page): show the whole shot, crisp, framed */
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--hairline);
  border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.4); background: var(--ink); }
.shot.portrait { max-width: 440px; margin-left: auto; margin-right: auto; }
.shot-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; color: var(--silver); }

/* Cookie Policy: disclosure table. */
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cookie-table thead th { font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--silver);
  background: var(--cell); border-bottom-color: var(--steel); }
.cookie-table td { color: var(--mist); }
.cookie-table td code { font-family: var(--font-mono); font-size: 12.5px; color: var(--paper); }
.shots { display: grid; gap: 24px; }

/* ══ SLIDER SCREENSHOTÓW (strona produktu) ═════════════════════════════ */
.slider { outline: none; }
.slider-stage { position: relative; display: grid; place-items: center;
  min-height: 320px; background: var(--cell); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 20px; }
.slider-stage .slide { display: none; max-width: 100%; max-height: 640px;
  width: auto; height: auto; border: 1px solid var(--hairline); border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4); background: var(--ink); }
.slider-stage .slide.active { display: block; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline);
  background: rgba(10,10,12,.7); color: var(--silver); font-size: 16px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s; }
.slider-arrow:hover { color: var(--paper); border-color: var(--steel); background: rgba(10,10,12,.9); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: thin; }
.slider-thumbs .thumb { flex: 0 0 auto; width: 96px; height: 60px; padding: 0;
  border: 1px solid var(--hairline); border-radius: 4px; background: var(--cell);
  cursor: pointer; overflow: hidden; opacity: .55; transition: opacity .2s, border-color .2s; }
.slider-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-thumbs .thumb:hover { opacity: .85; }
.slider-thumbs .thumb.active { opacity: 1; border-color: var(--paper); }
@media (max-width: 640px) {
  .slider-stage { padding: 12px; min-height: 200px; }
  .slider-stage .slide { max-height: 420px; }
  .slider-arrow { width: 36px; height: 36px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .slider-thumbs .thumb { width: 72px; height: 46px; }
}

/* ══ ADMIN ▸ MEDIA ══════════════════════════════════════════════════════ */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { border: 1px solid var(--hairline); background: var(--cell); padding: 10px;
  display: flex; flex-direction: column; gap: 8px; }
.media-item img { width: 100%; height: 90px; object-fit: contain; background: var(--ink);
  border: 1px solid rgba(52,52,58,.5); }
.media-meta { display: flex; flex-direction: column; gap: 2px; }

/* ══ PRODUKT ════════════════════════════════════════════════════════════ */
.prod-hero { border-bottom: 1px solid var(--hairline); background: var(--cell); }
.prod-hero .icon-lg { width: 64px; height: 64px; border-radius: 22%; border: 1px solid rgba(52,52,58,.6);
  background: linear-gradient(160deg, #26262b, #131316); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--silver); overflow: hidden; }
.prod-hero .icon-lg img { width: 100%; height: 100%; object-fit: cover; }
.prod-hero h1 { margin-top: 24px; font-weight: 600; letter-spacing: -.02em; font-size: clamp(34px, 6vw, 58px); }
.prod-hero .tagline { margin-top: 20px; max-width: 46ch; font-size: clamp(17px,2.4vw,20px); color: var(--mist); }
.prod-hero .desc { margin-top: 20px; max-width: 52ch; color: var(--mist); }
.feature { border-top: 1px solid var(--hairline); padding-top: 24px; }
.feature h3 { font-weight: 600; letter-spacing: -.01em; font-size: 18px; }
.feature p { margin-top: 12px; font-size: 14px; color: var(--mist); line-height: 1.6; }
.specs { display: grid; gap: 0 64px; }
@media (min-width: 768px) { .specs { grid-template-columns: 1fr 1fr; } }
.spec { display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.spec dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.spec dd { text-align: right; font-size: 14px; color: var(--paper); }

/* ══ LISTY (downloads / support / guides) ═══════════════════════════════ */
.panel { border: 1px solid var(--hairline); background: var(--cell); }
.panel > * + * { border-top: 1px solid var(--hairline); }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.list-row:hover { background: var(--rail); }
.pill { border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.tag-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.dl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--hairline); padding-bottom: 16px; margin-bottom: 24px; }
.dl-head h2 { font-weight: 600; font-size: clamp(20px,3vw,26px); letter-spacing: -.01em; }
.faq-item { border-top: 1px solid var(--hairline); padding-top: 24px; }
.faq-item + .faq-item { margin-top: 32px; }
.faq-item h3 { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.faq-item p { margin-top: 12px; font-size: 14px; color: var(--mist); line-height: 1.6; }

/* ══ FORMULARZE ═════════════════════════════════════════════════════════ */
.field { width: 100%; border: 1px solid var(--hairline); background: var(--ink);
  padding: 12px 16px; font-size: 14px; color: var(--paper); font-family: var(--font-display); }
.field.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; text-transform: none; }
.field::placeholder { color: var(--steel); }
.field:focus { border-color: var(--mist); outline: none; }
.label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.alert { border: 1px solid var(--hairline); padding: 14px 16px; font-size: 13px; line-height: 1.5; }
.alert.err { border-color: rgba(235,87,87,.5); color: #f3a3a3; }
.alert.ok  { border-color: rgba(123,216,143,.4); color: var(--ok); }
.switch-mode { margin-top: 24px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silver); background: none; border: none; cursor: pointer; }
.switch-mode:hover { color: var(--paper); }

/* Social sign-in: an "or" divider and full-width provider buttons. */
.oauth-sep { display: flex; align-items: center; gap: 14px; margin: 24px 0 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--silver); }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.oauth-buttons { display: grid; gap: 10px; }
.oauth-btn { justify-content: center; width: 100%; }

.card { border: 1px solid var(--hairline); background: var(--ink); padding: 24px; }
@media (min-width: 768px) { .card { padding: 32px; } }

/* ══ KONTO — licencje ═══════════════════════════════════════════════════ */
.acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.acct-head h1 { font-weight: 600; letter-spacing: -.02em; font-size: clamp(26px,4vw,40px); }
.lic { border: 1px solid var(--hairline); background: var(--cell); padding: 20px; }
.lic + .lic { margin-top: 16px; }
.lic-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lic-top .name { font-weight: 600; font-size: 17px; }
.lic-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.status-dot.active { color: var(--ok); }
.status-dot.revoked { color: var(--alarm); }
/* Lapsed subscription: nothing was taken away, it just ran out — warn, don't alarm. */
.status-dot.expired { color: var(--silver); }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.keybox { margin-top: 16px; display: flex; gap: 10px; align-items: stretch; }
.keybox code { flex: 1; min-width: 0; border: 1px solid var(--hairline); background: var(--ink);
  padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--mist);
  overflow-x: auto; white-space: nowrap; }
.copy-btn { border: 1px solid var(--hairline); background: none; color: var(--paper); cursor: pointer;
  padding: 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s, color .2s; white-space: nowrap; }
.copy-btn:hover { border-color: var(--mist); }

/* ══ STOPKA ═════════════════════════════════════════════════════════════ */
footer.site { border-top: 1px solid var(--hairline); background: var(--ink); padding: 64px 0; color: var(--mist); }
@media (min-width: 768px) { footer.site { padding: 80px 0; } }
.foot-grid { display: grid; gap: 48px; }
/* Spans only inside the 12-track grid (≥768px); mobile stacks full-width. */
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: repeat(12, 1fr); }
  .foot-brand { grid-column: span 4; }
  .foot-col { grid-column: span 3; }
  .foot-col.small { grid-column: span 2; }
}
.foot-brand .mark { height: 32px; width: auto; color: var(--paper); }
.foot-brand .addr { margin-top: 20px; max-width: 24rem; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--silver); line-height: 1.7; }
.foot-brand .reg { margin-top: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #7c7c85; line-height: 1.7; }
.foot-col .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); }
.foot-col ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--paper); }
.foot-col a:hover { color: var(--mist); }
.foot-bottom { margin-top: 56px; border-top: 1px solid var(--hairline); padding-top: 24px;
  display: flex; flex-direction: column; gap: 16px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
@media (min-width: 768px) { .foot-bottom { flex-direction: row; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ══ SUPPORT / TICKETS ═══════════════════════════════════════════════════ */
.tstatus { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.tstatus i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); flex: none; }
.tstatus.open i     { background: var(--alarm); }
.tstatus.pending i  { background: var(--mist); }
.tstatus.resolved i { background: var(--ok); }
.tstatus.closed i   { background: var(--steel); }

.thread { display: grid; gap: 16px; }
.tmsg { border: 1px solid var(--hairline); background: var(--cell); padding: 16px 18px; }
.tmsg.admin { border-left: 2px solid var(--paper); }
.tmsg.note { border: 1px dashed var(--wait); background: rgba(224,179,82,.08); }
.tmsg.note .tmsg-head { color: var(--wait); }
.tmsg-head { display: flex; justify-content: space-between; gap: 12px; }
.tmsg-body { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--mist); }

/* Support v2: SLA chips, tags, composer mode toggle, admin note flags. */
.sla-chip { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 8px;
  border: 1px solid var(--hairline); color: var(--mist); vertical-align: middle; }
.sla-chip.overdue { color: var(--alarm); border-color: var(--alarm); }
.sla-chip.warn    { color: var(--wait);  border-color: var(--wait); }
.sla-chip.ok      { color: var(--ok);    border-color: var(--hairline); }

.tag-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; border: 1px solid var(--hairline);
  background: var(--rail); color: var(--mist); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.tag-chip:hover { border-color: var(--alarm); color: var(--alarm); }
.tag-chip-inline { color: var(--silver); }

.note-flag { border: 1px dashed var(--wait); background: rgba(224,179,82,.08); padding: 12px 16px; }

.composer-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); }
.composer-tab { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--silver); padding: 10px 4px;
  margin-right: 20px; cursor: pointer; }
.composer-tab.active { color: var(--paper); border-bottom-color: var(--paper); }
.composer-tab[data-mode="note"].active { color: var(--wait); border-bottom-color: var(--wait); }

.btn-note { background: var(--wait); color: var(--ink); border: 1px solid var(--wait); }

/* Downloads: older builds list — a proper row inside the panel */
.dl-older { border-top: 1px solid var(--hairline); }
.dl-older summary { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; user-select: none; }
.dl-older summary::-webkit-details-marker { display: none; }
.dl-older summary:hover { background: var(--rail); }
.dl-older summary .tag-mono { color: var(--paper); }
.dl-older-chev { margin-left: auto; color: var(--silver); font-size: 18px; line-height: 1; transition: transform .18s ease; }
.dl-older[open] .dl-older-chev { transform: rotate(90deg); }
.dl-older .list-row { border-top: 1px solid var(--hairline); padding: 12px 20px; gap: 8px 16px; }
