/* Tokeny 1:1 z mobile/src/lib/theme.ts („Bold Minimal”): fiolet = marka i akcje, turkus = obecność na żywo. */
@font-face { font-family: Archivo; font-weight: 500; font-display: swap; src: url(/fonts/archivo-500.ttf) format('truetype'); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(/fonts/archivo-800.ttf) format('truetype'); }

:root {
  --bg: #fff; --ink: #0A0A0A; --ink-hover: #242422; --ink600: #6B6B66; --ink400: #A6A6A0; --body: #2A2A28;
  --hair: #ECEBE9; --muted: #F4F3F1; --muted-hover: #E9E7E4;
  --accent: #5B4FFF; --accent-strong: #4A3FE0; --accent-tint: #EFEDFF;
  --live: #19C2C6; --live-deep: #0B7275; --live-tint: #E2F7F8; --map: #F4F3FF;
  --danger: #C4302B; --danger-tint: #FDEEEE;
  --card: 0 6px 14px rgba(10,10,10,.08); --float: 0 10px 16px rgba(10,10,10,.16);
  color-scheme: only light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 500 17px/1.55 Archivo, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: -.01em; }
h1, h2, h3, b, strong, summary, .btn, .chip { font-weight: 800; color: var(--ink); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(38px, 10vw, 68px); }
h2 { font-size: clamp(30px, 7vw, 46px); }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--body); max-width: 34em; }
.small { font-size: 14px; color: var(--ink600); }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; }

/* ── nagłówek ── */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.035em; }
.brand svg { width: 38px; height: 38px; }
.beta { font-size: 12px; font-weight: 800; color: var(--live-deep); background: var(--live-tint); border-radius: 9px; padding: 5px 10px; letter-spacing: 0; }

/* ── przyciski (Button z ui.tsx: 18 px zaokrąglenia, 800, wciśnięcie 0.96) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 12px 22px; border: 0; border-radius: 18px;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s, background-color .15s; }
.btn:active { transform: scale(.96); }
.btn .i { font-size: 20px; stroke-width: 2.4; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ── hero ── */
.hero { display: grid; gap: 40px; padding-block: 24px 64px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.choices { display: grid; gap: 14px; margin-top: 28px; max-width: 460px; }
.choice { display: grid; gap: 8px; }
.choice .btn { width: 100%; }
.choice .small { text-align: center; }
.iphone { margin-top: 18px; font-size: 15px; color: var(--ink600); max-width: 560px; }
.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot::before { content: ''; position: absolute; inset: 8% 0 4%; background: var(--map); border-radius: 48px; }

/* ── sekcje funkcji ── */
.features { display: grid; gap: 20px; padding-bottom: 32px; }
.feature { display: grid; gap: 28px; align-items: center; border-radius: 32px; padding: 32px 24px 0; overflow: hidden; }
.feature .txt { display: grid; gap: 12px; max-width: 30em; }
.feature .shot { display: flex; justify-content: center; margin-bottom: -90px; }
.f-map { background: var(--map); } .f-live { background: var(--live-tint); } .f-chat { background: var(--accent-tint); } .f-priv { background: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 12px; }
.chip .i { font-size: 15px; }
.chip.live { color: var(--live-deep); }

/* ── instalacja ── */
section.block { padding-block: 72px 0; }
.block > .wrap > h2 { margin-bottom: 12px; }
.block > .wrap > .lead { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--muted); border-radius: 22px; padding: 20px; }
.steps li::before { content: counter(s); float: left; margin-right: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 17px; background: var(--ink); color: #fff; font-weight: 800; font-size: 20px; }
.steps li:last-child::before { content: '✓'; background: var(--live-deep); }
.steps h3 { min-height: 46px; display: flex; align-items: center; margin-bottom: 10px; }
.steps p + p { margin-top: 8px; }
.sys { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 15px; box-shadow: var(--card); }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: var(--accent); position: relative; flex: none; }
.toggle::after { content: ''; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.note { margin-top: 16px; border: 2px solid var(--hair); border-radius: 22px; padding: 20px; }
.note h3 .i { font-size: 26px; color: var(--accent); }
.note h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.note p + p { margin-top: 8px; }

/* ── lista oczekujących ── */
.wait { background: var(--ink); color: #D9D7D3; border-radius: 32px; padding: 32px 24px; display: grid; gap: 24px; }
.wait h2, .wait b { color: #fff; }
.wait .lead { color: #D9D7D3; margin-top: 12px; }
.wait a { color: #B9B3FF; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 800; color: #fff; font-size: 15px; }
input[type=email] { width: 100%; min-height: 56px; border: 2px solid transparent; border-radius: 16px; background: #fff; color: var(--ink); padding: 14px 16px; font: inherit; font-size: 17px; }
input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,79,255,.35); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.hint { font-size: 14px; background: rgba(255,255,255,.08); border-radius: 16px; padding: 12px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 15px; font-weight: 800; color: #FFB4B1; min-height: 1em; }
.msg:empty { display: none; }
.done { background: var(--live-tint); color: var(--ink); border-radius: 22px; padding: 20px; }
.done b { color: var(--live-deep); display: block; font-size: 19px; margin-bottom: 4px; }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; }
details { background: var(--muted); border-radius: 20px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-size: 17px; line-height: 1.3; min-height: 60px; }
summary::-webkit-details-marker { display: none; }
summary .i { font-size: 20px; transition: transform .2s; }
details[open] summary .i { transform: rotate(180deg); }
details > div { padding: 0 20px 20px; display: grid; gap: 10px; }
details ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

footer { margin-top: 88px; border-top: 1px solid var(--hair); padding-block: 28px 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--ink600); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ── podstrony (polityka, wypisanie) ── */
.doc { max-width: 720px; padding-block: 16px 24px; }
.doc h1 { font-size: clamp(34px, 8vw, 48px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.todo { background: #FFF3C4; color: var(--ink); border-radius: 6px; padding: 0 4px; }
.panel { background: var(--muted); border-radius: 22px; padding: 24px; display: grid; gap: 14px; justify-items: start; margin-top: 24px; }

/* ── mockupy ekranów (style z komponentów aplikacji) ── */
.phone { width: 272px; height: 564px; flex: none; position: relative; border-radius: 46px; background: var(--ink); padding: 9px; box-shadow: var(--float), 0 30px 60px rgba(10,10,10,.12); }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #000; z-index: 3; }
.scr { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.3; letter-spacing: -.01em; padding: 46px 14px 0; }
.scr b { font-weight: 800; }
.scr .t { font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.scr .sub { color: var(--ink600); font-size: 11px; }
.m-row { display: flex; align-items: center; gap: 8px; }
.m-ib { width: 34px; height: 34px; border-radius: 13px; background: var(--muted); display: grid; place-items: center; flex: none; }
.m-ib .i { font-size: 16px; }
.glass { background: rgba(255,255,255,.94); box-shadow: var(--card); }
.m-chip { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 11px; padding: 7px 12px; border-radius: 12px; background: var(--muted); white-space: nowrap; }
.m-chip.on { background: var(--ink); color: #fff; }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.av { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; position: relative; }
.av.a0 { background: var(--ink); } .av.a1 { background: var(--accent); } .av.a2 { background: var(--live-deep); } .av.a3 { background: #6B6B66; }
.av .st { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; background: var(--live); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--live-tint); color: var(--live-deep); font-weight: 800; font-size: 10.5px; border-radius: 9px; padding: 4px 8px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--live-deep); position: relative; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--live-deep); animation: wave 1.6s ease-out infinite; }
@keyframes wave { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.tag { font-weight: 800; font-size: 8.5px; letter-spacing: .02em; background: var(--ink); color: #fff; border-radius: 7px; padding: 3px 6px; }
.m-tabs { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 54px; border-radius: 22px; background: #fff; box-shadow: var(--float); display: flex; justify-content: space-around; align-items: center; }
.m-tabs span { display: grid; justify-items: center; gap: 2px; font-size: 9px; font-weight: 800; color: var(--ink400); }
.m-tabs span.on { color: var(--ink); }
.m-tabs .i { font-size: 18px; }

/* mapa */
.scr.map { background: var(--map); padding: 44px 12px 0; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map > .m-row, .map > .m-chips { position: relative; }
.map .m-row { justify-content: space-between; }
.map .m-chips { margin-top: 10px; flex-wrap: nowrap; }
.dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid #fff; background: var(--ink); box-shadow: var(--card); }
.dot.pub { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; border: 2.5px solid var(--ink); }
.dot.live { background: var(--live); }
.pin-av { position: absolute; margin: -20px 0 0 -17px; border: 2.5px solid #fff; box-shadow: var(--card); }
.m-card { position: absolute; left: 12px; right: 12px; bottom: 80px; background: #fff; border-radius: 22px; box-shadow: var(--card); padding: 6px; display: flex; gap: 10px; align-items: center; }
.cover { width: 78px; height: 78px; border-radius: 17px; background: var(--live-tint); color: var(--live-deep); display: grid; place-items: center; position: relative; flex: none; }
.cover .i { font-size: 26px; stroke-width: 1.8; }
.cover .tag { position: absolute; top: 6px; left: 6px; }
.m-card > div:last-child { display: grid; gap: 3px; min-width: 0; }
.m-card b { font-size: 13.5px; }
.m-card .sub { margin-bottom: 4px; }

/* dodawanie spotu */
.photo { height: 110px; border-radius: 20px; margin: 14px 0 12px; background: linear-gradient(160deg, #BFE8E9 0%, #7FC9CB 45%, #2E8F92 100%); position: relative; overflow: hidden; }
.photo::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; border-radius: 50%; background: rgba(11,114,117,.55); }
.photo::after { content: ''; position: absolute; left: 20%; top: 18%; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.75); }
.lbl { font-weight: 800; font-size: 11px; margin: 12px 0 6px; }
.fld { background: var(--muted); border-radius: 14px; padding: 11px 12px; font-weight: 800; }
.seg { display: flex; gap: 2px; background: var(--muted); border-radius: 14px; padding: 3px; }
.seg span { flex: 1; text-align: center; padding: 8px 0; border-radius: 11px; font-weight: 800; font-size: 11px; color: var(--ink600); }
.seg span.on { background: #fff; color: var(--ink); box-shadow: var(--card); }
.m-btn { margin-top: 14px; height: 44px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* znajomi */
.f-list { display: grid; gap: 8px; margin-top: 14px; }
.f-item { display: flex; align-items: center; gap: 10px; background: var(--muted); border-radius: 18px; padding: 10px; }
.f-item > div { display: grid; gap: 2px; min-width: 0; }
.stat { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 10.5px; color: var(--live-deep); white-space: nowrap; }
.stat .i { font-size: 12px; }
.stat.off { color: var(--ink600); }
.now { margin-top: 12px; background: var(--live-tint); border-radius: 18px; padding: 12px; display: grid; gap: 8px; }
.now .m-row .av { width: 28px; height: 28px; border-radius: 10px; font-size: 11px; margin-right: -12px; border: 2px solid var(--live-tint); }

/* czat (motyw „Fiolet” z chatPrefs.ts) */
.scr.chat { background: #F7F6FF; padding-inline: 0; display: flex; flex-direction: column; }
.c-head { display: flex; align-items: center; gap: 10px; padding: 0 12px 10px; border-bottom: 1px solid rgba(10,10,10,.06); }
.c-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 18px; background: #fff; font-size: 12.5px; line-height: 1.35; align-self: flex-start; }
.bub.me { align-self: flex-end; background: var(--accent); color: #fff; }
.who { font-size: 10px; font-weight: 800; color: #9A96C9; margin: 8px 0 1px 4px; }
.meta { align-self: flex-end; display: flex; align-items: center; gap: 3px; font-size: 10px; color: #9A96C9; margin: 2px 4px 0; }
.meta .i { font-size: 12px; color: var(--accent); }
.c-spot { align-self: flex-start; width: 78%; background: #fff; border-radius: 18px; padding: 5px; display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.c-spot .cover { width: 50px; height: 50px; border-radius: 14px; }
.c-spot .cover .i { font-size: 20px; }
.c-spot > div:last-child { display: grid; gap: 3px; }
.c-bar { display: flex; gap: 8px; align-items: center; padding: 8px 12px 26px; }
.c-bar .fld { flex: 1; background: #fff; color: var(--ink400); font-weight: 500; border-radius: 16px; }
.c-send { width: 38px; height: 38px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.c-send .i { font-size: 17px; }

/* prywatność */
.sw-row { display: flex; align-items: center; gap: 10px; background: var(--muted); border-radius: 18px; padding: 12px; margin-top: 14px; }
.sw-row > div { flex: 1; display: grid; gap: 2px; }
.sw { width: 38px; height: 22px; border-radius: 11px; background: #D9D7D3; position: relative; flex: none; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.sw.on { background: var(--accent); } .sw.on::after { left: auto; right: 3px; }
.h17 { font-size: 15px; font-weight: 800; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
  .btn, summary .i { transition: none; }
}

@media (min-width: 720px) {
  .feature { padding: 48px 48px 0; }
  .wait { padding: 48px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-block: 40px 96px; }
  .feature { grid-template-columns: 1fr 1fr; padding: 56px 64px 0; gap: 48px; }
  .feature .txt { padding-bottom: 56px; }
  .feature:nth-child(even) .txt { order: 2; }
  .feature .shot { margin-bottom: -60px; }
  .wait { grid-template-columns: 1fr 1fr; align-items: start; padding: 56px 64px; gap: 48px; }
  section.block { padding-top: 104px; }
}
