/* VINCIVO landing. Tokeny 1:1 z frontend/mobile/src/theme.ts */

:root {
  --bg:            #FAF8FF;
  --surface:       #FFFFFF;
  --surface-alt:   #F4F1FB;
  --border:        #E5DFF5;
  --text:          #1B1730;
  --muted:         #6B6588;
  --meta:          #8B85A6;
  --primary:       #6F52F0;
  --primary-press: #5840D8;
  --primary-soft:  rgba(111, 82, 240, 0.10);
  --accent:        #E8762A;
  --success:       #16A97A;
  --danger:        #E0455C;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-card:    0 2px 8px rgba(27, 23, 48, 0.06);
  --shadow-lift:    0 18px 44px rgba(27, 23, 48, 0.10);
  --shadow-primary: 0 10px 28px rgba(111, 82, 240, 0.28);

  --maxw: 1120px;
  --gutter: 24px;

  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Work Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-press); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-weight: 700; font-size: clamp(1.85rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-weight: 600; font-size: 1.2rem; }
p  { margin: 0; }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 16px; height: 16px; stroke-width: 2.1; }
.icon.lg { width: 24px; height: 24px; stroke-width: 1.75; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }
.section.tight { padding: 76px 0; }
.section.alt { background: var(--surface-alt); border-block: 1px solid var(--border); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: 12px 18px; border-radius: var(--r-md); z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- nawigacja ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--primary); }
.nav .btn { margin-left: 8px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; flex: none; }
.brand-word {
  font-family: var(--f-head); font-weight: 800; font-size: 20px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- przyciski, piguleczki statusu ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn.primary:hover { background: var(--primary-press); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-card); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 600;
}
.pill.neutral { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.pill.success { background: rgba(22, 169, 122, 0.12); color: var(--success); }
.pill.accent  { background: rgba(232, 118, 42, 0.14); color: var(--accent); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--primary); opacity: 0.45; }

.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.muted { color: var(--muted); }
.meta { color: var(--meta); font-size: 13px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -240px -10% auto 30%;
  height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(111, 82, 240, 0.16), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: 300px;
  width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 118, 42, 0.11), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; gap: 64px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
}
.hero h1 { margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--meta); font-size: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }

/* ---------- makieta telefonu ---------- */

.phone-stage { position: relative; display: flex; justify-content: center; padding-bottom: 70px; }
.phone {
  position: relative; width: 320px; max-width: 100%;
  background: #1B1730; border-radius: 46px; padding: 10px;
  box-shadow: var(--shadow-lift);
}
.phone-screen {
  background: var(--bg); border-radius: 37px; overflow: hidden;
  padding: 18px 16px 22px;
}
.phone-notch {
  width: 96px; height: 5px; border-radius: var(--r-pill);
  background: rgba(27, 23, 48, 0.16); margin: 2px auto 16px;
}
.screen-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.screen-title { font-family: var(--f-head); font-weight: 700; font-size: 17px; }

.mock-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px; box-shadow: var(--shadow-card);
}
.mock-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--border);
  color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 21px;
  background: hsl(250, 55%, 55%);
}
.avatar .verified {
  position: absolute; right: -2px; bottom: -2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--bg);
  display: grid; place-items: center; color: #fff;
}
.avatar .verified .icon { width: 10px; height: 10px; stroke-width: 3.4; }
.mock-name { font-family: var(--f-head); font-weight: 600; font-size: 16px; }

.why {
  margin: 14px 0 12px; padding: 13px 14px;
  background: var(--primary-soft); border-radius: var(--r-md);
  border-left: 3px solid var(--primary);
}
.why-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 6px;
}
.why p { font-size: 13.5px; line-height: 1.55; color: var(--text); }

.mock-prompt { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.mock-prompt .q { font-size: 11.5px; color: var(--meta); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.mock-prompt .a { font-size: 13.5px; margin-top: 3px; }

.mock-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 14px; }
.mock-btn {
  border-radius: var(--r-pill); padding: 11px 10px; text-align: center;
  font-size: 13.5px; font-weight: 600;
}
.mock-btn.sec { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }
.mock-btn.pri { background: var(--primary); color: #fff; }

.float-card {
  position: absolute; left: -40px; bottom: -10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: var(--shadow-lift); width: 214px;
}
.float-card .row { display: flex; align-items: center; gap: 9px; }
.float-card .val { font-family: var(--f-head); font-weight: 700; font-size: 15px; }

.track { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.track > span { display: block; height: 100%; border-radius: 3px; background: var(--success); }

/* ---------- siatki tresci ---------- */

.head-block { max-width: 42rem; margin-bottom: 52px; }
.head-block p { margin-top: 16px; }
.head-block.center { margin-inline: auto; text-align: center; }
.head-block.center .eyebrow { justify-content: center; }

.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); align-items: center; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-ico {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
}

/* zestawienie: typowa aplikacja kontra VINCIVO */
.compare { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--border); }
.compare-cell { padding: 22px 26px; }
.compare-cell.them { background: var(--surface-alt); color: var(--meta); }
.compare-cell.us { border-left: 1px solid var(--border); }
.compare-cell .label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.compare-cell.them .label { color: var(--meta); }
.compare-cell.us .label { color: var(--primary); }
.compare-cell p { font-size: 15.5px; }
.compare-cell.us p { color: var(--text); }

/* sciezki akademii */
.paths { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.path {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--path); border-radius: var(--r-lg);
  padding: 22px 22px 20px; box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.path-ico {
  width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--surface-alt); color: var(--path); margin-bottom: 16px;
  background: color-mix(in srgb, var(--path) 14%, transparent);
}
.path h3 { font-size: 1.08rem; }
.path p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.path .count { display: block; margin-top: 16px; font-size: 12.5px; color: var(--meta); font-weight: 600; }

/* karta statystyk akademii */
.stats-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface-alt); border-radius: var(--r-md); padding: 14px; text-align: center; }
.stat .v { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; }
.stat .k { font-size: 11.5px; color: var(--meta); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.skill { margin-top: 14px; }
.skill .l { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.skill .l span:last-child { color: var(--meta); font-variant-numeric: tabular-nums; }
.privacy-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px;
  padding: 13px 15px; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary); font-size: 13.5px; line-height: 1.5;
}

/* bezpieczenstwo */
.safety { display: grid; gap: 24px; grid-template-columns: 1fr; }
.safety-item { display: flex; gap: 16px; }
.safety-ico { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: rgba(22, 169, 122, 0.12); color: var(--success); }
.safety-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.safety-item p { color: var(--muted); font-size: 15px; }

/* czat: filtr tresci */
.chat-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-card); }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 10px; }
.bubble.them { background: var(--surface-alt); border-bottom-left-radius: 5px; }
.bubble.me { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble.hidden-msg {
  background: var(--surface); border: 1px dashed var(--border); color: var(--muted);
  max-width: 92%; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px;
}
.bubble.hidden-msg .show { color: var(--primary); font-weight: 600; display: block; margin-top: 4px; }

/* cennik */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-primary); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: var(--r-pill);
}
.plan h3 { font-size: 1.25rem; }
.plan .price { font-family: var(--f-head); font-weight: 800; font-size: 2rem; margin: 14px 0 4px; letter-spacing: -0.03em; }
.plan .per { color: var(--meta); font-size: 14px; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li .icon { color: var(--success); margin-top: 4px; }
.plan li.off { color: var(--meta); }
.plan li.off .icon { color: var(--meta); }

/* faq */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--primary); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; font-size: 15.5px; max-width: 42rem; }

/* pasmo CTA */
.cta-band {
  background: var(--primary); color: #fff; border-radius: var(--r-lg);
  padding: 56px 48px; box-shadow: var(--shadow-primary);
  display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; max-width: 18em; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-top: 12px; max-width: 32em; }
.cta-band .btn { background: #fff; color: var(--primary); box-shadow: none; }
.cta-band .btn:hover { background: #F4F1FB; color: var(--primary-press); }

/* ---------- stopka ---------- */

.footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h4 { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--meta); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); font-size: 15px; }
.footer a:hover { color: var(--primary); }
.footer .company { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-top: 18px; }
.footer .company strong { color: var(--text); font-weight: 600; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--meta); font-size: 14px;
}
.linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline;
}
.linkbtn:hover { color: var(--primary); }

/* ---------- baner cookies ---------- */

.cookie-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 150%);
  width: min(720px, calc(100vw - 32px)); z-index: 90;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
  padding: 20px 22px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.cookie-bar.is-open { transform: translate(-50%, 0); }
.cookie-bar p { font-size: 14.5px; color: var(--muted); flex: 1 1 320px; }
.cookie-bar strong { color: var(--text); }

/* ---------- strony prawne ---------- */

.doc { padding: 64px 0 96px; }
.doc-head { max-width: 46rem; margin-bottom: 44px; }
.doc-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.doc-head .meta { margin-top: 14px; }
.doc-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h4 { font-family: var(--f-head); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--meta); margin-bottom: 14px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--muted); font-size: 14.5px; display: block; }
.toc a:hover { color: var(--primary); }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; font-size: 14.5px;
}
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-alt); font-family: var(--f-head); font-weight: 600; font-size: 13px; color: var(--text); }
.prose td { color: var(--muted); }
.prose tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }
.callout {
  background: var(--primary-soft); border-radius: var(--r-md);
  padding: 16px 18px; margin: 0 0 24px; display: flex; gap: 12px; align-items: flex-start;
}
.callout p { color: var(--text); font-size: 15px; margin: 0; }
.callout .icon { color: var(--primary); margin-top: 3px; }
.placeholder {
  background: rgba(232, 118, 42, 0.16); color: #8A4110;
  padding: 1px 7px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.94em;
}

/* ---------- responsywnosc ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .float-card { left: auto; right: -10px; bottom: 24px; }
  .grid-3, .paths, .plans { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doc-body { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .grid-3, .paths, .plans, .safety { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell.us { border-left: none; border-top: 1px solid var(--border); }
  .cta-band { padding: 40px 26px; }
  .float-card { position: static; width: 100%; margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-bar { padding: 18px; }
}
