/* site.css — Brykam marketing site. Standalone (no dashboard.css).
   Dark theme, Rubik, mobile-first. Signature: orange→gold "ticker" rail
   + tabular stat numerals that read like an auction board. */

:root {
  --bg: #0c0f15;
  --surface: #161b24;
  --surface-2: #1c222d;
  --border: #272e3b;
  --orange: #f06830;
  --blue: #4b7ef5;
  --gold: #f5b020;
  --success: #2ecc71;
  --text: #eef1f6;
  --muted: #9aa4b4;
  --faint: #6c7788;
  --radius-btn: 10px;
  --radius-card: 16px;
  --maxw: 1120px;
  --prose: 72ch;
  --grad: linear-gradient(90deg, var(--orange) 0%, var(--gold) 100%);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* faint top-lit atmosphere pulled toward the ticker's warm end */
  background-image: radial-gradient(120% 60% at 50% -10%,
    rgba(240, 104, 48, 0.10), rgba(12, 15, 21, 0) 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: #1a0d06;
}
.btn-primary:hover {
  background: #ff7a42;
  box-shadow: 0 0 0 1px rgba(245, 176, 32, 0.4),
              0 8px 28px rgba(240, 104, 48, 0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

/* ---------- shared layout ---------- */
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3rem 0; }

main > article,
.poradnik { padding: 2.5rem 0; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  position: relative;
}
/* the ticker rail — the page's signature accent */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.9;
}
.site-header .logo { display: inline-flex; align-items: center; }
.site-header .logo img { height: 44px; width: auto; }
.site-header nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}
.site-header nav a { color: var(--muted); font-weight: 500; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

.footer-brand .logo img { height: 40px; width: auto; }
.footer-langs { display: flex; gap: 0.5rem; margin-top: 1rem; font-size: 0.85rem; flex-wrap: wrap; }
.footer-langs a { display: inline-block; color: var(--faint); padding: 0.2rem 0.55rem; border: 1px solid var(--border); border-radius: 999px; }
.footer-langs a.active { color: var(--text); background: var(--surface); border-color: var(--faint); }
.footer-langs a:hover { text-decoration: none; color: var(--text); }

/* ---------- hero ---------- */
.l-hero { padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.l-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: 820px;
  position: relative;
  z-index: 1;
}
/* decorative car accent — faded/masked into the dark bg so it never
   competes with hero text contrast. Hidden on mobile (readability first). */
.l-hero-art {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  width: min(46vw, 620px);
  height: auto;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.l-hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l-hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.l-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.l-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.l-stat dt {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
}
.l-stat dd {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- pain ---------- */
.l-pain-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.l-pain-list li {
  position: relative;
  padding: 1rem 1rem 1rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
}
.l-pain-list li::before {
  content: "!";
  position: absolute;
  left: 1rem; top: 1rem;
  width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(240, 104, 48, 0.15);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- steps (a true sequence — numbering is honest) ---------- */
.l-steps-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.l-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.l-step-num {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.5rem;
}
.l-step h3 { margin-bottom: 0.35rem; }
.l-step p { margin: 0; color: var(--muted); }

/* ---------- proof ---------- */
.l-proof figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.l-proof img { width: 100%; }
.l-proof figcaption {
  padding: 0.85rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ---------- living preview (real masked board, demo-to-signup bridge) ---------- */
.l-live { text-align: center; }
.eyebrow-live { position: relative; padding-left: 1rem; }
.eyebrow-live::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); animation: l-live-pulse 2s infinite;
}
@keyframes l-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
.l-live-count { color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 1.4rem; }
.l-live-board {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; background: var(--surface); text-align: left; margin-bottom: 1.6rem;
}
.l-live-fallback { margin: 0; }
.l-live-fallback img { width: 100%; display: block; }
.l-live-fallback figcaption {
  padding: 0.85rem 1.25rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border);
}
.l-live-rows { display: flex; flex-direction: column; }
.l-live-row {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: inherit; text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.l-live-row:last-child { border-bottom: none; }
.l-live-row:hover { background: var(--surface-2); }
.l-live-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.l-live-photo {
  width: 54px; height: 40px; object-fit: cover; border-radius: 8px;
  background: var(--surface-2); flex: 0 0 auto;
}
.l-live-photo--none { display: inline-block; }
.l-live-id { flex: 1 1 40%; min-width: 0; display: flex; flex-direction: column; }
.l-live-name {
  font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.l-live-loc { color: var(--faint); font-size: 0.82rem; }
.l-live-cells {
  display: flex; gap: 1.25rem; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap;
}
.l-live-cell { display: flex; flex-direction: column; gap: 1px; text-align: right; min-width: 0; }
.l-live-cell-l {
  font-size: 0.68rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint);
}
.l-live-cell-v { font-size: 0.92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-live-margin { color: var(--faint); font-weight: 600; }
.l-live-margin.is-good { color: var(--success); }
.l-live-profit { color: var(--success); font-size: 0.82rem; }
.l-live-cd { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; transition: color 0.3s; }
.l-live-cell--cd { min-width: 6.5em; }  /* keep width steady as the seconds tick */
/* Escalating urgency, tied to the REAL auction moment (authentic, never faked).
   ENDING soon = warm alarm (you'll lose the deal): orange <24h → red+pulse <1h.
   STARTING soon = cool anticipation (get ready / register): blue, pulse <1h. */
.l-live-cd.is-end-soon   { color: var(--orange); font-weight: 700; }
.l-live-cd.is-end-now    { color: #ff5964; font-weight: 700; animation: l-cd-pulse 1.1s ease-in-out infinite; }
.l-live-cd.is-start-soon { color: var(--blue); font-weight: 700; }
.l-live-cd.is-start-now  { color: var(--blue); font-weight: 700; animation: l-cd-pulse 1.1s ease-in-out infinite; }
@keyframes l-cd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* Row accent bar draws the eye to the most imminent lots — inset shadow, no shift. */
.l-live-row.is-end-soon   { box-shadow: inset 3px 0 0 var(--orange); }
.l-live-row.is-end-now    { box-shadow: inset 3px 0 0 #ff5964; }
.l-live-row.is-start-soon { box-shadow: inset 3px 0 0 var(--blue); }
.l-live-row.is-start-now  { box-shadow: inset 3px 0 0 var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .l-live-cd.is-end-now, .l-live-cd.is-start-now { animation: none; }
}
@media (max-width: 640px) {
  .l-live-row { flex-wrap: wrap; }
  .l-live-cells { gap: 0.9rem; }
  .l-live-cell--margin { order: -1; }  /* margin is the hook — keep it prominent on mobile */
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-live::before { animation: none; }
}

/* ---------- personas ---------- */
.l-personas-grid { display: grid; gap: 1.25rem; }
.l-persona {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}
.l-persona ul { margin: 1rem 0 0; padding: 0 0 0 1.1rem; color: var(--muted); }
.l-persona li { margin-bottom: 0.5rem; }

/* ---------- features ---------- */
.l-features-grid { display: grid; gap: 1.25rem; }
.l-feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.l-feature h3 { margin-bottom: 0.4rem; }
.l-feature p { margin: 0; color: var(--muted); }
.feat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  display: block;
}

/* ---------- pricing teaser ---------- */
.l-pricing-card {
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.l-pricing-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.l-pricing-card h2 { margin-bottom: 0.35rem; }
.l-pricing-card p { margin: 0; color: var(--muted); }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0 1.25rem;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- final cta ---------- */
.l-final { text-align: center; }
.l-final .section-inner { max-width: 640px; }

/* ---------- prose (articles + static pages) ---------- */
.prose {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.prose p, .prose li { color: #d7dce6; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose img { border-radius: var(--radius-card); margin: 1.5rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.prose th { background: var(--surface); }
.prose blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--muted);
}
.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

.article .crumbs { margin-bottom: 0.5rem; }
.article .crumbs a { color: var(--muted); text-decoration: none; }
.article .crumbs a:hover { color: var(--text); }
.article .meta { color: var(--faint); font-size: 0.9rem; margin-top: -0.25rem; }
.article .meta time { font-variant-numeric: tabular-nums; }

/* cta box inside articles */
.cta-box {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.cta-box h3 { margin-bottom: 0.35rem; }
.cta-box p { color: var(--muted); }
.cta-box .btn { margin-top: 0.75rem; }

.related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related h3 { margin-bottom: 0.75rem; }
.related a { display: block; padding: 0.4rem 0; color: var(--blue); }

/* ---------- poradnik index ---------- */
.poradnik .poradnik-lead { color: var(--muted); max-width: 60ch; }
.card-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.guide-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.guide-card:hover {
  text-decoration: none;
  border-color: var(--orange);
  transform: translateY(-2px);
}
.guide-card-date {
  font-size: 0.8rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.guide-card h2 { font-size: 1.25rem; margin: 0.4rem 0 0.5rem; }
.guide-card p { color: var(--muted); margin: 0 0 0.75rem; }
.guide-card-more { color: var(--orange); font-weight: 600; font-size: 0.9rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0.75rem;
}
.site-footer a { display: block; color: var(--muted); padding: 0.3rem 0; }
.site-footer a:hover { color: var(--text); text-decoration: none; }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn-primary:hover { transform: none; }
  .guide-card:hover { transform: none; }
}

/* ---------- tablet / desktop ---------- */
@media (min-width: 768px) {
  .l-pain-list { grid-template-columns: repeat(3, 1fr); }
  .l-steps-list { grid-template-columns: repeat(3, 1fr); }
  .l-personas-grid { grid-template-columns: 1fr 1fr; }
  .l-features-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .l-pricing-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
  .site-footer { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1024px) {
  .l-features-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  /* car accent only where there's room beside the 820px hero text column */
  .l-hero-art { display: block; }
}

/* header collapses to a tidy stack on small screens */
@media (max-width: 767px) {
  .site-header { justify-content: space-between; }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    flex: 0 0 100%;
  }
  .site-header .btn-primary { padding: 0.55rem 1rem; }
}
