/* Kolory z kod/src/theme/tokeny.json (02-marka.md). „Świt” #F2A65A tylko dekoracyjnie, nigdy na tekst. */
:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --nested: #F2F2F7;
  --label: #1C1C1E;
  --muted: #5C5C66;
  --sep: #D8D8DE;
  --accent: #0E6B66;
  --accent-strong: #0A5753;
  --on-accent: #FFFFFF;
  --accent-soft: #E3F2F0;
  --call: #1D5BB8;
  --payment: #8A5300;
  --meeting: #6A45C2;
  --success: #1B7340;
  --dawn: #F2A65A;
  --chip: 12%;
  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 8px 24px rgba(0,0,0,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-round: "Nunito", ui-rounded, "SF Pro Rounded", var(--font);
  --wrap: 1120px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --nested: #2C2C2E;
    --label: #F2F2F7;
    --muted: #A1A1AA;
    --sep: #38383A;
    --accent: #5CC9BE;
    --accent-strong: #5CC9BE;
    --on-accent: #0B0B0C;
    --accent-soft: #0F2B29;
    --call: #82B1FF;
    --payment: #F2B65A;
    --meeting: #BCA6FF;
    --success: #6FD08C;
    --chip: 18%;
    --shadow: 0 8px 24px rgba(0,0,0,.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--font-round); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
.num { font-family: var(--font-round); font-variant-numeric: tabular-nums; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--card); color: var(--label); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--on-accent); border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-store { flex-direction: column; gap: 0; line-height: 1.15; padding: 8px 26px; }
.btn-store small { font-size: .75rem; font-weight: 500; opacity: .9; }
.btn-store strong { font-size: 1.1rem; }

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  backdrop-filter: saturate(1.8) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--sep) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--label); text-decoration: none; font-family: var(--font-round); font-weight: 800; font-size: 1.25rem; }
.logo svg { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--label); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.hero .lead { margin-top: 20px; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.tagline { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagline span {
  font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--card); color: var(--label); border: 1px solid var(--sep);
}

/* Makieta telefonu (HTML/CSS) */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dawn) 35%, transparent) 0%, transparent 65%);
  top: 4%; z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(310px, 84vw); aspect-ratio: 9 / 19;
  background: #0B0B0C; border-radius: 48px; padding: 11px;
  box-shadow: 0 30px 60px rgba(0,0,0,.22), inset 0 0 0 2px #2C2C2E;
}
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--bg); padding: 14px 14px 0; display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.35;
}
.screen > * { flex-shrink: 0; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0B0B0C; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 2px 12px 0; font-weight: 600; font-size: 13px; height: 26px; }
.status .bars { display: flex; gap: 4px; align-items: center; }
.status .bars i { display: block; width: 16px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; }
.status .bars b { display: block; width: 14px; height: 9px; border-radius: 2px; background: currentColor; }
.scr-title { font-family: var(--font-round); font-weight: 800; font-size: 26px; margin: 14px 4px 2px; }
.scr-sub { color: var(--muted); font-size: 12px; margin: 0 4px 12px; }
.leave {
  background: var(--accent); color: var(--on-accent); border-radius: 20px; padding: 14px 16px;
}
.leave .k { font-size: 11px; font-weight: 600; opacity: .9; display: flex; align-items: center; gap: 6px; }
.leave .k svg { width: 14px; height: 14px; }
.leave .big { font-family: var(--font-round); font-weight: 800; font-size: 30px; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.leave .s { font-size: 12px; opacity: .92; }
.leave .pill { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .leave .pill { background: rgba(0,0,0,.14); } }
.leave .pill svg { width: 12px; height: 12px; }
.rows { margin-top: 10px; background: var(--card); border-radius: 14px; overflow: hidden; }
.row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.row + .row { border-top: 1px solid var(--sep); }
.row .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.row .ic svg { width: 16px; height: 16px; }
.row .t { font-weight: 600; font-size: 13px; }
.row .d { color: var(--muted); font-size: 11px; }
.ic-call { background: color-mix(in srgb, var(--call) var(--chip), transparent); color: var(--call); }
.ic-pay { background: color-mix(in srgb, var(--payment) var(--chip), transparent); color: var(--payment); }
.ic-task { background: color-mix(in srgb, var(--accent) var(--chip), transparent); color: var(--accent); }
.ic-meet { background: color-mix(in srgb, var(--meeting) var(--chip), transparent); color: var(--meeting); }
.scr-sec { margin: 14px 4px 0; font-weight: 600; }
.rows-tight { margin-top: 6px; }
.scr-bottom { margin-top: auto; display: flex; justify-content: center; padding: 10px 0 16px; }
.drop {
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.drop svg { width: 24px; height: 24px; }

/* Problem */
.problem { background: var(--card); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card { background: var(--bg); border-radius: var(--radius-l); padding: 26px; }
.p-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.p-card .ico svg { width: 22px; height: 22px; }
.p-card p { margin-top: 8px; color: var(--muted); }

/* Kroki */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { background: var(--card); border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-round); font-weight: 800;
}
.step p { color: var(--muted); }
.demo { margin-top: auto; background: var(--nested); border-radius: var(--radius); padding: 14px; font-size: .92rem; }
.bubble { background: var(--card); border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.bubble .mic { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.bubble .mic svg { width: 14px; height: 14px; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 8px 10px; }
.chip { flex: none; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip-row span:last-child { font-size: .9rem; min-width: 0; }
.c-task { color: var(--accent); background: color-mix(in srgb, var(--accent) var(--chip), transparent); }
.c-call { color: var(--call); background: color-mix(in srgb, var(--call) var(--chip), transparent); }
.c-pay { color: var(--payment); background: color-mix(in srgb, var(--payment) var(--chip), transparent); }
.c-meet { color: var(--meeting); background: color-mix(in srgb, var(--meeting) var(--chip), transparent); }
.notif { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.notif .app { flex: none; width: 30px; height: 30px; border-radius: 8px; overflow: hidden; }
.notif .app svg { width: 30px; height: 30px; }
.notif b { display: block; font-size: .92rem; }
.notif small { color: var(--muted); font-size: .82rem; }

/* Funkcje */
.features { background: var(--card); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.f-card { background: var(--bg); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.f-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.f-card .ico svg { width: 22px; height: 22px; }
.f-card p { color: var(--muted); font-size: .95rem; }
.f-card .note { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--sep); padding-top: 10px; margin-top: auto; }
.badge {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
}
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Cennik */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 18px; border: 2px solid transparent; position: relative; }
.plan.best { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .best-label {
  position: absolute; top: -14px; left: 24px; background: var(--accent); color: var(--on-accent);
  font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-family: var(--font-round); font-weight: 800; font-size: 1.4rem; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font-family: var(--font-round); font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: .95rem; }
.plan .for { color: var(--muted); font-size: .95rem; margin-top: -8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: .95rem; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
.plan li.inherit { font-weight: 600; }
.plan .btn { margin-top: auto; }
.trial-box {
  margin-top: 28px; background: var(--accent-soft); border-radius: var(--radius-l); padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.trial-box svg { width: 28px; height: 28px; color: var(--accent); }
.trial-box p + p { margin-top: 6px; }
.trial-box .small { font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--card); border-radius: var(--radius); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 600; position: relative; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list .answer { padding: 0 20px 20px; color: var(--muted); }
.faq-list .answer p + p { margin-top: 10px; }

/* Końcowe CTA */
.final { padding-top: 24px; }
.final-box {
  background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 56px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.final-box::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--dawn);
  top: -40px; right: -30px; opacity: .9;
}
.final-box h2 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); position: relative; z-index: 1; }
.final-box p { margin: 14px auto 0; max-width: 46ch; opacity: .95; position: relative; z-index: 1; }
.final-box .btn { margin-top: 28px; background: var(--on-accent); color: var(--accent-strong); position: relative; z-index: 1; }
.final-box .btn:hover { background: color-mix(in srgb, var(--on-accent) 88%, var(--accent)); }
.final-box .btn:focus-visible { outline-color: var(--on-accent); }
.final-box .slogan { font-family: var(--font-round); font-weight: 700; margin-top: 22px; font-size: .95rem; opacity: .9; }

/* Stopka */
footer { padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
.legal-note { flex-basis: 100%; font-size: .8rem; }

/* Przyklejony przycisk na telefonie */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  backdrop-filter: saturate(1.8) blur(12px);
  border-top: 1px solid var(--sep);
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
}
.sticky-cta .btn { white-space: nowrap; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; visibility: hidden; }

/* Responsywność */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .plans { gap: 28px; max-width: 520px; }
  .plan.best { order: -1; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 32px 0 56px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }
  .hero-cta .btn { width: 100%; }
  .final-box { padding: 44px 20px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .trial-box { grid-template-columns: 1fr; gap: 10px; }
  .site-header .btn-small { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
}

/* ---------- Wielojęzyczność ---------- */
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Przełącznik języka (działa bez JS dzięki <details>) */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 12px;
  color: var(--label); font-size: .9rem; font-weight: 600; border: 1px solid var(--sep);
  background: var(--card);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--accent); }
.lang-switch summary svg { width: 18px; height: 18px; flex: none; }
.lang-switch[open] summary { border-color: var(--accent); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  list-style: none; margin: 0; padding: 6px; min-width: 190px;
  max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--sep); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--label); text-decoration: none; font-size: .95rem;
}
.lang-menu a:hover { background: var(--nested); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--accent); }
.lang-menu a[aria-current]::after { content: "✓"; }

/* Strona wyboru języka (główny adres) */
.chooser { min-height: 100vh; display: flex; align-items: center; padding: 48px 0; }
.chooser .wrap { width: 100%; }
.chooser .logo { margin-bottom: 28px; }
.chooser h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.chooser .lead { margin-top: 10px; color: var(--muted); }
.lang-grid {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px;
}
.lang-grid a {
  display: flex; align-items: center; min-height: 52px; padding: 0 18px;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--sep);
  color: var(--label); text-decoration: none; font-weight: 600;
}
.lang-grid a:hover { border-color: var(--accent); color: var(--accent); }
.js-redirecting body { visibility: hidden; }

/* Japoński: font systemowy (Hiragino) lub Noto Sans JP z Google Fonts, łamanie po frazach */
:root:lang(ja) {
  --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Nunito", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", var(--font);
}
:lang(ja) body { line-break: strict; word-break: auto-phrase; overflow-wrap: break-word; line-height: 1.7; }
:lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
:lang(ja) .hero .lead { max-width: 24em; }
:lang(ja) .eyebrow { letter-spacing: .02em; }
/* Nagłówki po japońsku łamiemy tylko w miejscach <wbr> z i18n/ja.json (keep-all), z awaryjnym łamaniem przy braku miejsca. */
:lang(ja) h1, :lang(ja) h2 { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .eyebrow { text-transform: none; }
