/* ==========================================================================
   Rozlicznik — product landing page
   Extends Codeluk base styles (style.css)
   ========================================================================== */

.page-rozlicznik {
  --rz-accent: var(--rozlicznik-accent);
  --rz-accent-soft: rgba(52, 211, 153, 0.14);
  --rz-accent-glow: rgba(52, 211, 153, 0.32);
  --rz-green-dark: #071510;
  --rz-green-mid: #0c2419;
  --rz-green-panel: #0f2e1f;
  --rz-gradient-hero: linear-gradient(
    135deg,
    rgba(7, 21, 16, 0.98) 0%,
    rgba(12, 36, 25, 0.94) 45%,
    rgba(10, 30, 22, 0.82) 100%
  );
}

/* Hero */
.rz-hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.rz-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--rz-gradient-hero);
}

.rz-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 14, 10, 0.97) 0%,
    rgba(8, 22, 16, 0.75) 45%,
    rgba(8, 24, 18, 0.2) 75%,
    transparent 100%
  );
}

.rz-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.rz-hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rz-hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.rz-hero-titles h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-main);
}

.rz-hero-package {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
}

.rz-beta-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #052e1a;
  background: var(--rz-accent);
  border-radius: var(--radius-sm);
}

.rz-hero-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.rz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.rz-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #052e1a;
  background: var(--rz-accent);
  border: none;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.rz-btn-primary:hover {
  background: #6ee7b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rz-accent-glow);
}

.rz-hero-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 28rem;
}

.rz-hero-visual {
  display: flex;
  justify-content: center;
}

.rz-app-preview {
  width: min(100%, 20rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: linear-gradient(160deg, rgba(15, 46, 31, 0.95) 0%, rgba(8, 24, 18, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 36px var(--rz-accent-glow);
  overflow: hidden;
}

.rz-app-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rz-app-preview-bar span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.rz-app-preview-bar span:first-child {
  background: rgba(52, 211, 153, 0.65);
}

.rz-app-preview-url {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-dim);
}

.rz-app-preview-body {
  padding: 1rem 1.1rem 1.15rem;
}

.rz-app-preview-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.rz-preview-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rz-preview-stat strong {
  color: var(--text-muted);
  font-weight: 600;
}

.rz-preview-stat span {
  color: var(--rz-accent);
  font-variant-numeric: tabular-nums;
}

.rz-preview-stat--total {
  border-bottom: none;
  padding-top: 0.65rem;
  font-weight: 700;
}

.rz-preview-stat--total strong {
  color: var(--text-main);
}

/* Features */
.rz-features-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--rz-green-dark) 100%);
}

.rz-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.rz-feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(15, 46, 31, 0.45);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.rz-feature-card:hover {
  border-color: rgba(52, 211, 153, 0.28);
  transform: translateY(-2px);
}

.rz-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--rz-accent-soft);
  color: var(--rz-accent);
}

.rz-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.rz-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Workflow */
.rz-workflow-section {
  background: var(--rz-green-panel);
  border-block: 1px solid rgba(52, 211, 153, 0.1);
}

.rz-workflow-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rz-workflow-panel {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, rgba(12, 36, 25, 0.9) 0%, rgba(8, 24, 18, 0.95) 100%);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.rz-workflow-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rz-accent);
  margin-bottom: 0.85rem;
}

.rz-workflow-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rz-workflow-panel li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}

.rz-workflow-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--rz-accent);
}

/* Devices + PWA */
.rz-devices-section {
  background: var(--bg-dark);
}

.rz-devices-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.rz-devices-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.rz-devices-content h2 span {
  color: var(--rz-accent);
}

.rz-devices-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 36rem;
}

.rz-devices-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rz-devices-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rz-devices-list li::before {
  content: "✓";
  color: var(--rz-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.rz-devices-visual {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rz-device-chip {
  padding: 1rem 1.25rem;
  min-width: 7.5rem;
  text-align: center;
  background: rgba(15, 46, 31, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-lg);
}

.rz-device-chip strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.rz-device-chip span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Beta */
.rz-beta-section {
  background: linear-gradient(180deg, var(--rz-green-dark) 0%, #051008 100%);
  border-top: 1px solid rgba(52, 211, 153, 0.12);
}

.rz-beta-inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.rz-beta-inner h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.rz-beta-inner p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.rz-beta-inner p + p {
  margin-top: 0.85rem;
}

.page-rozlicznik .rz-beta-inner a {
  color: var(--rz-accent);
  font-weight: 600;
  transition: color var(--transition);
}

.page-rozlicznik .rz-beta-inner a:hover {
  color: #6ee7b7;
}

/* CTA */
.rz-cta-section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, rgba(12, 36, 25, 0.96) 0%, rgba(7, 21, 16, 0.98) 100%);
  border-top: 1px solid rgba(52, 211, 153, 0.15);
}

.rz-cta-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.rz-cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.rz-cta-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  .rz-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .rz-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .rz-hero-visual {
    justify-content: flex-end;
  }

  .rz-workflow-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .rz-devices-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

@media (min-width: 1100px) {
  .rz-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Promo gallery (screenshots)
   -------------------------------------------------------------------------- */
.rz-gallery-section {
  background: var(--bg-dark);
}

.rz-promo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 100%;
}

.rz-promo-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  background: rgba(15, 46, 31, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.rz-promo-item:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.rz-promo-item a {
  display: block;
  line-height: 0;
}

.rz-promo-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  max-width: 100%;
  background: rgba(5, 18, 12, 0.6);
}

.rz-promo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 10rem;
  aspect-ratio: 16 / 9;
  padding: 1.25rem;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(15, 46, 31, 0.65),
    rgba(15, 46, 31, 0.65) 10px,
    rgba(12, 36, 25, 0.85) 10px,
    rgba(12, 36, 25, 0.85) 20px
  );
}

.rz-promo-placeholder-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.rz-promo-placeholder-filename {
  font-size: 0.72rem;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-dim);
}

.rz-cta-privacy-link {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(52, 211, 153, 0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.rz-cta-privacy-link:hover,
.rz-cta-privacy-link:focus-visible {
  color: var(--rz-accent);
  text-decoration-color: var(--rz-accent);
}

@media (min-width: 640px) {
  .rz-promo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 900px) {
  .rz-promo-gallery {
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Privacy / legal document
   -------------------------------------------------------------------------- */
.page-rozlicznik .legal-page {
  background: linear-gradient(180deg, var(--rz-green-dark) 0%, var(--rz-green-mid) 55%, #051008 100%);
}

.page-rozlicznik .legal-content {
  max-width: 44rem;
}

.page-rozlicznik .legal-content h1 {
  color: var(--text-main);
}

.page-rozlicznik .legal-content h2 {
  color: var(--rz-accent);
}

.page-rozlicznik .legal-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.15rem 0 0.5rem;
}

.page-rozlicznik .legal-content a {
  color: var(--rz-accent);
}

.page-rozlicznik .legal-content a:hover {
  color: #6ee7b7;
}

.page-rozlicznik .legal-updated {
  color: var(--text-dim);
}

.legal-draft-notice {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.06);
}

.legal-todo {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--rz-accent);
  background: rgba(52, 211, 153, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-todo strong {
  color: var(--text-main);
}

.page-rozlicznik .app-privacy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.18);
  align-items: center;
}

.page-rozlicznik .app-privacy-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rz-accent);
  transition: color var(--transition);
}

.page-rozlicznik .app-privacy-nav a:hover {
  color: #6ee7b7;
}
