/* OsiedloPark — landing (design tokens from docs/03-DESIGN-SYSTEM.md) */

:root {
  --primary: #0F766E;
  --primary-dark: #115E59;
  --primary-light: #CCFBF1;
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-muted: #94A3B8;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --blue: #2563EB;
  --blue-light: #DBEAFE;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-phone: 0 30px 60px rgba(15, 23, 42, 0.25);
  --shadow-fab: 0 6px 16px rgba(15, 118, 110, 0.35);
  --radius-btn: 14px;
  --radius-card: 20px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-nav {
  height: 44px;
  padding: 0 22px;
}

.btn .icon {
  flex-shrink: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary);
}

.logo:hover {
  color: var(--ink);
}

.logo:hover span {
  color: var(--primary-dark);
}

/* —— Demo badge (tymczasowe) —— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.demo-badge-sm {
  font-size: 10px;
  padding: 3px 8px;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #F59E0B;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: demo-pulse 2s ease-out infinite;
}

@keyframes demo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-demo {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  animation: hero-rise 0.8s ease-out 0.32s both;
}

@media (prefers-reduced-motion: reduce) {
  .demo-dot { animation: none; }
  .hero-demo { animation: none; opacity: 1; transform: none; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-desktop a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav-desktop a:not(.btn):hover {
  color: var(--ink);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
}

.nav-toggle:hover {
  background: var(--bg);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a:not(.btn) {
  display: block;
  padding: 14px 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  border-radius: 12px;
}

.nav-mobile a:not(.btn):hover {
  background: var(--bg);
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 8px;
}

/* —— Hero —— */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(204, 251, 241, 0.55) 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 100%, rgba(15, 118, 110, 0.08) 0%, transparent 50%),
    var(--bg);
  padding: 48px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

/* Animated background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
}

.hero-blob-a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(204, 251, 241, 0.95) 0%, rgba(15, 118, 110, 0.18) 55%, transparent 70%);
  animation: blob-drift-a 18s ease-in-out infinite;
}

.hero-blob-b {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  bottom: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.22) 0%, rgba(204, 251, 241, 0.5) 50%, transparent 70%);
  animation: blob-drift-b 22s ease-in-out infinite;
}

.hero-blob-c {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  top: 38%;
  left: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(204, 251, 241, 0.35) 45%, transparent 70%);
  animation: blob-drift-c 16s ease-in-out infinite;
}

/* Soft parking-lot grid */
.hero-grid-pattern {
  position: absolute;
  inset: -20%;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: grid-pan 40s linear infinite;
}

/* Floating “free spot” dots */
.hero-spots {
  position: absolute;
  inset: 0;
}

.hero-spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.18;
  animation: spot-float 7s ease-in-out infinite;
  animation-delay: var(--d);
}

.hero-spot-pulse {
  background: var(--green);
  opacity: 0.28;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35);
  animation:
    spot-float 7s ease-in-out infinite,
    spot-pulse 3.2s ease-out infinite;
  animation-delay: var(--d), var(--d);
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: min(90vw, 720px);
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.1) 0%, transparent 70%);
  animation: glow-breathe 8s ease-in-out infinite;
}

@keyframes blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6%, 8%) scale(1.08); }
  66% { transform: translate(-4%, 4%) scale(0.96); }
}

@keyframes blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-8%, -6%) scale(1.1); }
  70% { transform: translate(5%, -3%) scale(0.94); }
}

@keyframes blob-drift-c {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -58%) scale(1.15); }
}

@keyframes grid-pan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

@keyframes spot-float {
  0%, 100% { transform: translateY(0); opacity: 0.16; }
  50% { transform: translateY(-14px); opacity: 0.32; }
}

@keyframes spot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

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

@keyframes phone-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  text-align: center;
  max-width: 560px;
  animation: hero-rise 0.8s ease-out both;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-sub {
  margin: 20px 0 0;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.5;
  color: var(--ink-soft);
  animation: hero-rise 0.8s ease-out 0.1s both;
}

.hero-copy .btn {
  margin-top: 32px;
  animation: hero-rise 0.8s ease-out 0.18s both;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.22);
}

.hero-copy .btn:hover {
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.32);
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  animation: hero-rise 0.8s ease-out 0.26s both;
}

/* Phone mockup */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  animation: hero-rise 0.9s ease-out 0.15s both;
}

.phone-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 118, 110, 0.18);
  pointer-events: none;
  animation: phone-orbit 48s linear infinite;
}

.phone-orbit::before,
.phone-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.45;
}

.phone-orbit::before {
  top: 0;
  left: 50%;
  margin-left: -5px;
  background: var(--green);
}

.phone-orbit::after {
  bottom: 12%;
  right: 8%;
  width: 7px;
  height: 7px;
  opacity: 0.35;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 572px;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    var(--shadow-phone),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: phone-float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.phone-feed {
  flex: 1;
  padding: 8px 14px 0;
  overflow: hidden;
}

.phone-estate {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.phone-estate svg {
  color: var(--ink-soft);
}

.phone-meta {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.phone-tabs {
  display: flex;
  background: #E2E8F0;
  border-radius: 999px;
  padding: 3px;
  margin: 10px 0 6px;
  gap: 2px;
}

.phone-tab {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 4px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Aktywny segment „Szukają" = niebieski (jak w aplikacji) */
.phone-tab.is-seek {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

/* Aktywny segment „Udostępniają" = zielony */
.phone-tab.is-offer {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.phone-hint {
  margin: 0 0 8px;
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--blue);
}

.listing-card {
  background: var(--surface);
  border-radius: 14px;
  border-left: 3px solid transparent;
  padding: 9px 11px;
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
}

.listing-card.seek {
  border-left-color: var(--blue);
}

.listing-card.offer {
  border-left-color: var(--green);
}

.lc-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-seek {
  background: var(--blue-light);
  color: var(--blue);
}

.avatar-offer {
  background: var(--green-light);
  color: var(--green);
}

.lc-id {
  min-width: 0;
  flex: 1;
}

.lc-name {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.lc-name .shield {
  flex-shrink: 0;
}

.lc-sub {
  font-size: 9px;
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-seek {
  color: var(--blue);
}

.sub-offer {
  color: var(--green);
}

.badge {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
}

.listing-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}

.listing-date svg {
  flex-shrink: 0;
}

.listing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.listing-chips span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 999px;
}

.listing-desc {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 9px;
}

.lc-foot span:first-child {
  color: var(--ink-soft);
}

.lc-foot span:last-child {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ================= Interaktywne demo (hero) ================= */
.phone-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 0;
  overflow: hidden;
}

.phone-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.phone-list::-webkit-scrollbar { display: none; }

/* karty jako przyciski */
.listing-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.listing-card:hover { box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12); }
.listing-card:active { transform: scale(0.99); }

.phone-tab { cursor: pointer; font-family: inherit; }
.phone-hint.hint-offer { color: var(--green); }

/* pasek „wstecz" */
.phone-pushbar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  padding: 4px 0 8px;
  cursor: pointer;
}

/* szczegóły ogłoszenia */
.phone-detail { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.phone-detail::-webkit-scrollbar { display: none; }
.detail-head { display: flex; align-items: center; gap: 8px; }
.avatar-lg { width: 34px; height: 34px; font-size: 11px; }
.detail-name { font-size: 13px; }
.badge-block { display: inline-flex; margin-top: 8px; }
.detail-date { margin-top: 8px; font-size: 12px; }
.detail-hint {
  margin-top: 10px;
  background: rgba(204, 251, 241, 0.6);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--ink);
}
.detail-desc { margin: 8px 0 0; font-size: 10px; line-height: 1.45; color: var(--ink-soft); }
.detail-cta {
  margin-top: 10px;
  width: 100%;
  height: 38px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.cta-seek { background: var(--primary); }
.cta-seek:hover { background: var(--primary-dark); }
.cta-offer { background: var(--green); }

/* czat */
.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
  scrollbar-width: none;
}
.chat-scroll::-webkit-scrollbar { display: none; }
.chat-banner {
  align-self: center;
  max-width: 94%;
  background: rgba(204, 251, 241, 0.85);
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 8.5px;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
}
.bubble { max-width: 80%; padding: 6px 9px; font-size: 10px; line-height: 1.35; border-radius: 13px; }
.bubble.them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.bubble.me {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.deal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin: 6px 0;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.deal-bar span { background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 8px; font-size: 9px; }
.deal-bar.done {
  justify-content: center;
  background: var(--green-light);
  border-color: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: default;
}
.chat-chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.chat-chips::-webkit-scrollbar { display: none; }
.qchip {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  white-space: nowrap;
}
.q-blue { border-color: rgba(37, 99, 235, 0.25); background: rgba(219, 234, 254, 0.5); color: var(--blue); }
.q-green { border-color: rgba(22, 163, 74, 0.25); background: rgba(220, 252, 231, 0.6); color: var(--green); }
.chat-input { display: flex; align-items: center; gap: 6px; padding: 6px 0 8px; }
.chat-input input {
  flex: 1;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 11px;
  color: var(--ink);
  outline: none;
  background: var(--surface);
}
.chat-input input:focus { border-color: var(--primary); }
.chat-input button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

/* profil */
.profile-wrap { flex: 1; min-height: 0; overflow-y: auto; text-align: center; padding: 16px 6px; }
.profile-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.profile-rating { margin-top: 4px; font-size: 11px; color: var(--ink); }
.profile-rating .stars { color: #F59E0B; letter-spacing: 1px; }
.profile-stats { margin-top: 3px; font-size: 10px; color: var(--ink-soft); }
.profile-badges { margin-top: 10px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.profile-badges span {
  font-size: 8.5px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 9px;
  border-radius: 999px;
}
.profile-note { text-align: left; margin-top: 12px; }

/* nav jako przyciski */
.phone-nav button { padding: 0; font-family: inherit; }

/* toast w telefonie */
.phone-toast {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 6;
}
.phone-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* etykieta „klikalne demo" nad telefonem */
.phone-hintpill {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  animation: hintfloat 2.6s ease-in-out infinite;
}

@keyframes hintfloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-hintpill { animation: none; }
}

.phone-nav {
  flex: none;
  height: 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 4px 6px;
  position: relative;
}

.phone-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 600;
  color: var(--ink-muted);
  width: 44px;
}

.phone-nav .nav-item.active {
  color: var(--primary);
}

.phone-nav .nav-fab {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  margin-bottom: 4px;
  transform: translateY(-10px);
}

/* —— Trust bar —— */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

.trust-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* —— Sections —— */
.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 48px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.step-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* —— Safety —— */
.section-safety {
  background: rgba(204, 251, 241, 0.35);
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.safety-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.safety-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.safety-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.safety-item p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* —— FAQ —— */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item summary:hover {
  background: var(--bg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.faq-item p a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Final CTA —— */
.cta-final {
  background: var(--ink);
  padding: 72px 24px;
  text-align: center;
}

.cta-final h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.cta-final-sub {
  margin: 12px auto 0;
  max-width: 28rem;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.85);
}

.cta-final .btn {
  margin-top: 28px;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  padding: 0 0 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-top: 8px;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 320px;
}

.logo-footer {
  color: #fff;
  font-size: 20px;
}

.logo-footer:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* —— Legal pages —— */
.legal-page {
  background: var(--bg);
  min-height: calc(100vh - var(--header-h));
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--ink-muted);
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-note {
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  padding: 16px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--ink);
}

/* —— Responsive —— */
@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .safety-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }
}

@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }

  .hero-copy {
    text-align: left;
    flex: 1;
    max-width: 520px;
  }

  .hero-demo {
    justify-content: flex-start;
  }

  .hero-phone {
    flex: 0 0 auto;
    width: auto;
  }

  .section {
    padding: 88px 0;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 24px 40px;
  }

  .footer-brand {
    flex: 1 1 240px;
  }

  .footer-brand p {
    max-width: 280px;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-copy {
    flex: 1 1 100%;
    text-align: left;
    margin-top: 8px;
  }
}

@media (min-width: 1100px) {
  .container {
    padding: 0 56px;
  }

  .phone-frame {
    width: 300px;
    height: 612px;
  }

  .phone-orbit {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
  }
}

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

  .btn,
  .nav-toggle-bar,
  .faq-item summary::after {
    transition: none;
  }

  .hero-blob,
  .hero-grid-pattern,
  .hero-spot,
  .hero-spot-pulse,
  .hero-glow,
  .phone-orbit,
  .phone-frame,
  .hero-copy,
  .hero-sub,
  .hero-copy .btn,
  .hero-note,
  .hero-phone {
    animation: none !important;
  }

  .hero-copy,
  .hero-sub,
  .hero-copy .btn,
  .hero-note,
  .hero-phone {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Enrichment sections — same tokens, same visual language
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-lead {
  max-width: 640px;
  margin: -28px auto 44px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* —— Two roles —— */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.role-card-seek {
  border-left-color: var(--blue);
}

.role-card-offer {
  border-left-color: var(--green);
}

.role-card .badge {
  font-size: 11px;
  padding: 5px 12px;
  letter-spacing: 0.05em;
}

.role-card h3 {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.role-card > p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.role-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink);
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.role-card-seek .role-list li::before {
  background-color: var(--blue-light);
}

.role-card-offer .role-list li::before {
  background-color: var(--green-light);
}

/* —— Use cases —— */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.usecase-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.usecase-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.usecase-card p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* —— Invite / QR —— */
.section-invite {
  background: var(--bg);
}

.invite-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.invite-copy {
  flex: 1;
  max-width: 520px;
}

.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.invite-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.invite-copy > p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.invite-list {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.invite-list li svg {
  flex: none;
  color: var(--primary);
}

.invite-poster {
  flex: none;
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.poster {
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 28px 0;
  text-align: center;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.invite-poster:hover .poster {
  transform: rotate(0deg);
}

.poster-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.poster-logo span {
  color: var(--primary);
}

.poster-head {
  margin: 14px 0 18px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.poster-qr {
  display: inline-block;
  padding: 12px;
  border: 3px solid var(--primary-light);
  border-radius: 20px;
  background: var(--surface);
}

.poster-qr img {
  display: block;
}

.poster-scan {
  margin: 16px 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.poster-band {
  margin: 0 -28px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* —— Assurance band —— */
.assurance {
  background: var(--primary);
  padding: 44px 0;
}

.assurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

.assurance-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.assurance-item p {
  margin: 6px auto 0;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* —— Waitlist / cities —— */
.section-cities {
  background: var(--bg);
}

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

.cities-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 28px auto 0;
}

.cities-input {
  flex: 1;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.cities-input::placeholder {
  color: var(--ink-muted);
}

.cities-input:focus {
  border-color: var(--primary);
}

.cities-form .btn {
  flex: none;
}

.cities-note {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.cities-note[hidden] {
  display: none;
}

/* —— Scroll reveal (added by JS; no-JS keeps content visible) —— */
.is-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Responsive: enrichment —— */
@media (min-width: 640px) {
  .roles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .usecase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .assurance-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .cities-form {
    flex-direction: row;
  }

  .role-card,
  .usecase-card {
    padding: 32px 28px;
  }
}

@media (min-width: 900px) {
  .usecase-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .invite-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }

  .invite-poster {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster {
    transform: none;
    transition: none;
  }

  .is-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
