/* ==========================================================================
   Reachlyy — arkusz stylów strony (bez zasobów zewnętrznych: CSP style-src 'self')
   ========================================================================== */

:root {
  /* Motyw nocny — domyślny (bez JavaScript strona zawsze zostaje ciemna).
     Paleta z logo Reachlyy: mięta #E1F5EE + morski #0F6E56. */
  --bg: #06140f;
  --bg-soft: #0a1c16;
  --bg-card: #0f2620;
  --border: #1d3f36;
  --text: #eefaf5;
  --text-muted: #a2c8ba;
  --accent: #45d6b2;
  --accent-2: #0f9c7a;
  --on-accent: #04140f;
  --link: #45d6b2;
  --link-hover: #86ecd4;
  --success: #4ade80;
  --error: #ff8f8f;
  --radius: 16px;
  --radius-sm: 10px;
  --header-bg: rgba(6, 20, 15, 0.82);
  --footer-bg: rgba(4, 15, 11, 0.9);
  --section-alt-bg: rgba(10, 28, 22, 0.72);
  --input-bg: #081b15;
  --placeholder: #6e8f83;
  --glow-1: rgba(69, 214, 178, 0.13);
  --glow-2: rgba(15, 110, 86, 0.3);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Motyw dzienny — włączany przez assets/theme.js (data-theme="day"). */
[data-theme="day"] {
  --bg: #f3fbf8;
  --bg-soft: #e9f6f0;
  --bg-card: #ffffff;
  --border: #cfe8de;
  --text: #0c211b;
  --text-muted: #3f6157;
  --accent: #0f6e56;
  --accent-2: #14a37f;
  --on-accent: #ffffff;
  --link: #0f6e56;
  --link-hover: #0b5744;
  --success: #15803d;
  --error: #b91c1c;
  --header-bg: rgba(243, 251, 248, 0.88);
  --footer-bg: rgba(236, 247, 242, 0.95);
  --section-alt-bg: rgba(233, 246, 240, 0.8);
  --input-bg: #ffffff;
  --placeholder: #7f9c93;
  --glow-1: rgba(15, 110, 86, 0.14);
  --glow-2: rgba(20, 163, 127, 0.12);
  --shadow: 0 24px 60px rgba(15, 60, 45, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -10%, var(--glow-1), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 20;
}

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

/* --- Nagłówek ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  display: block;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--on-accent);
  width: 100%;
  padding: 15px 22px;
  box-shadow: 0 14px 32px rgba(15, 110, 86, 0.35);
}

.btn-primary:hover {
  color: var(--on-accent);
}

.btn-primary[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.92rem;
}

/* --- Sekcja hero i formularz --------------------------------------------- */

.hero {
  padding: 64px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 110, 86, 0.12);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.accent {
  color: var(--accent);
}

.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 56ch;
}

.hero-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.16);
  color: var(--success);
  font-size: 0.8rem;
  line-height: 20px;
  text-align: center;
}

.waitlist-form {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.form-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.req {
  color: var(--accent);
}

.opt {
  color: var(--text-muted);
  font-weight: 400;
}

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.field input::placeholder {
  color: var(--placeholder);
}

.field input:focus {
  border-color: var(--accent-2);
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.field-check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.field-check label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.hint {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.83rem;
}

/* Pole-pułapka dla botów — ukryte wizualnie, ale nie przez display:none,
   żeby nie zniknęło z formularza. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status[data-state="info"] {
  color: var(--text-muted);
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--error);
}

/* --- Sekcje treści -------------------------------------------------------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--section-alt-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-lead {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 32px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: krok;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-weight: 700;
}

.step p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq summary::marker {
  color: var(--accent);
}

.faq details[open] summary {
  margin-bottom: 10px;
}

.faq details p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.section-cta {
  padding-bottom: 96px;
}

/* --- Sekcja z filmem ------------------------------------------------------ */

/* Wydzielona scena pod film: miękka poświata akcentu zamiast tła alternatywnego
   (sekcja FAQ wyżej ma już .section-alt, więc naprzemienny rytm się nie psuje). */
.section-video {
  background: radial-gradient(1000px 620px at 50% 42%, var(--glow-1), transparent 68%);
}

.section-video h2,
.section-video .section-lead {
  text-align: center;
}

.section-video .section-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

/* Duży odtwarzacz 16:9 na całą szerokość kolumny treści (wrap 1120px
   daje ponad 1000px szerokości filmu). Proporcje trzyma aspect-ratio,
   a nie padding hack; iframe wypełnia kontener. */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 70px -24px rgba(69, 214, 178, 0.5);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-more {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.cta-inner {
  text-align: center;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cta-inner .btn {
  width: auto;
}

/* --- Podstrony (polityka prywatności, podziękowanie, 404) ----------------- */

.page {
  padding: 56px 0 88px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 38px;
  font-size: 1.3rem;
}

.prose h3 {
  margin-top: 26px;
  font-size: 1.05rem;
}

.prose ul {
  color: var(--text-muted);
  padding-left: 22px;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose .note {
  border-left: 3px solid var(--accent);
  background: rgba(15, 110, 86, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  color: var(--text);
}

/* --- Stopka -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: 28px 0;
}

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

.footer-brand {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* --- Social (Instagram / TikTok / YouTube) --------------------------------- */

.social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-label {
  margin: 0 4px 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social a:hover {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 110, 86, 0.35);
}

.social svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Hero: kompaktowe ikony, brak pełnościowego etykiety */
.hero-social {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-social .social-label {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-social .social a {
  width: 64px;
  height: 64px;
}

.hero-social .social svg {
  width: 30px;
  height: 30px;
}

/* Stopka: większe ikony z krótką etykietą */
.footer .social {
  gap: 8px;
}

.footer .social a {
  width: 48px;
  height: 48px;
}

.footer .social svg {
  width: 24px;
  height: 24px;
}

/* --- Responsywność ------------------------------------------------------- */

@media (max-width: 920px) {
  .hero {
    padding-top: 44px;
  }

  .hero-grid,
  .steps,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .site-nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .waitlist-form {
    padding: 22px;
  }

  .section {
    padding: 56px 0;
  }
}

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

  .btn {
    transition: none;
  }
}


