/* /css/site.css */

/* Custom Properties for Light and Dark Modes */
:root {
  /* Brand */
  --brand-orange: #EA6038;
  --brand-orange-dark: #D4502A;
  
  /* Light Mode Palette */
  --bg-color: #FCFAF8; /* Warm off-white */
  --text-color: #2D2A28; /* Deep charcoal */
  --text-muted: #5C5855;
  --card-bg: #FFFFFF;
  --border-color: #E8E5E1;
  --hero-gradient: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(234, 96, 56, 0.30) 0%, rgba(234, 96, 56, 0.08) 45%, transparent 75%), linear-gradient(180deg, #FFF4EE 0%, #FCFAF8 100%);
  --tint: #FDF0EA;
  --shadow-color: rgba(45, 42, 40, 0.08);
  --focus-ring: #EA6038;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Palette */
    --bg-color: #1F1D1C; /* Deep warm charcoal */
    --text-color: #F2EFEA;
    --text-muted: #9E9995;
    --card-bg: #2A2726;
    --border-color: #3D3938;
    --hero-gradient: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(234, 96, 56, 0.35) 0%, rgba(234, 96, 56, 0.10) 45%, transparent 75%), linear-gradient(180deg, #2B1F1B 0%, #1F1D1C 100%);
    --tint: #2A2220;
    --shadow-color: rgba(0, 0, 0, 0.4);
  }
}

/* Reset and Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-orange);
  color: #fff;
  padding: 1rem 2rem;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main {
  flex-grow: 1;
}

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

a {
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-orange-dark);
  text-decoration: underline;
}

/* Typography specifics */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { margin-bottom: 1.25rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Navigation & Footer */
header {
  padding: 2rem 0;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-color);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--brand-orange);
}

footer {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-color);
}

/* Buttons and Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-orange);
  color: #FFFFFF; /* High contrast handled by size/weight */
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
  background-color: var(--brand-orange-dark);
  text-decoration: none;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.pill {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background-color: transparent;
  color: var(--brand-orange);
  border: 1.5px solid var(--brand-orange);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Hero Sections */
.hero {
  padding: 4rem 0 6rem;
  background: var(--hero-gradient);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
}

/* Ikona ma własny kształt i cień (przezroczyste rogi) — cień pudełka
   rysował wokół niej jasny kwadrat. */
.hero-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 1rem;
}

.hero p.lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Parallax Mac Windows */
.mac-windows-container {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
  perspective: 1000px;
  min-height: 400px;
}

.mac-window {
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px var(--shadow-color), 0 0 0 1px rgba(128,128,128,0.1) inset;
  background: var(--card-bg);
  position: relative;
  z-index: 2;
  /* Bez pływania — Leszek, po wdrożeniu (25.09.2026). */
}

.mac-window.backdrop {
  position: absolute;
  top: 40px;
  right: -50px;
  width: 80%;
  z-index: 1;
  opacity: 0.7;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Grids and Cards */
.section {
  padding: 3.5rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  align-items: center;
}

.grid-2:nth-child(even) .feature-text {
  order: 2;
}

.grid-2:nth-child(even) .feature-image {
  order: 1;
}

@media (max-width: 768px) {
  .grid-2:nth-child(even) .feature-text,
  .grid-2:nth-child(even) .feature-image {
    order: initial;
  }
  .mac-window.backdrop {
    display: none;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand-orange);
}

/* Feature Blocks */
/* Sekcje funkcji na przemian na ciepłym, podbarwionym tle — strona
   była za blada („smutna”), a jednolite białe tło zlewało sekcje. */
.feature-block {
  margin-bottom: 2rem;
  border-radius: 28px;
  padding: 3.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.feature-block:nth-of-type(odd) {
  background: var(--tint);
}

.feature-image img {
  max-height: 620px;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color), 0 0 0 1px rgba(128,128,128,0.1) inset;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: bold;
}

/* Support Accordions */
.faq-list {
  margin-top: 3rem;
}

details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

summary {
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 1.5rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand-orange);
  font-weight: 400;
  transition: transform 0.3s ease;
}

details[open] summary {
  border-bottom: 1px solid var(--border-color);
}

details[open] summary::after {
  content: '−';
}

.details-content {
  padding: 1.5rem;
  color: var(--text-muted);
}

/* Data Tables */
.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-color);
}

.requirements-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.requirements-table tr:last-child td {
  border-bottom: none;
}

.requirements-table td:first-child {
  font-weight: 600;
  width: 25%;
  color: var(--text-color);
}

/* Longform Content (Privacy Policy) */
.longform-content {
  line-height: 1.75;
  font-size: 1.125rem;
}

.longform-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.longform-content h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.longform-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.longform-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.longform-content th,
.longform-content td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, #F07A4E 0%, #EA6038 50%, #D24B26 100%);
  color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-box h2, .cta-box .lead { color: #fff; }
.cta-box .lead { opacity: 0.92; }
.cta-box p, .cta-box strong { color: #fff; }
.cta-box a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-box a:hover { color: #fff; opacity: 0.85; }

/* Kroki „How it works”: numer w pomarańczowym kółku zamiast ikonki. */
.card-icon svg { width: 36px; height: 36px; }

/* Motion & Reveals */
/* Ukryte tylko przy działającym skrypcie (klasa .js na <html>). */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mac-window {
    animation: none;
  }
  .card:hover {
    transform: none;
  }
}
/* Mac App Store badge — official artwork, unchanged; only its height is set. */
.app-store-badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}
