:root {
  --violet: #5B33C9;
  --violet-deep: #3B1E8F;
  --raspberry: #B3245B;
  --teal: #00696B;
  --amber: #8B4A00;
  --ink: #1C1B1F;
  --muted: #49454F;
  --bg: #FFFBFF;
  --tint: #F3EDF7;
  --line: #E7E0EC;
  --radius: 22px;
  --hero: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 50%, var(--raspberry) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #FFB1C8; outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--violet); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nagłówek i hero */
.hero { background: var(--hero); color: #fff; padding-bottom: 56px; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 999px; display: inline-block; min-height: 44px; }
.nav-links a:hover { background: rgba(255,255,255,.14); }
.nav-links .nav-cta { background: #fff; color: var(--violet-deep); font-weight: 700; }
.nav-links .nav-cta:hover { background: #F3EDF7; }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 32px; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-weight: 600; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; }
.lead { font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-meta { font-size: .95rem; margin: 0; }
.hero-phone { display: flex; justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1.05rem; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--violet-deep); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { min-height: 60px; padding-inline: 36px; font-size: 1.15rem; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.phone { width: min(300px, 78vw); padding: 10px; background: #15121c; border-radius: 42px;
  box-shadow: 0 30px 60px rgba(20, 6, 60, .45), inset 0 0 0 2px #2c2836; transform: rotate(3deg); }
.phone img { border-radius: 32px; width: 100%; }
.phone-sm { width: 100%; max-width: 240px; transform: none; box-shadow: 0 18px 40px rgba(59, 30, 143, .22); }

/* Sekcje */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 32px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent);
  color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.c-violet { --accent: var(--violet); }
.c-raspberry { --accent: var(--raspberry); }
.c-teal { --accent: var(--teal); }
.c-amber { --accent: var(--amber); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0 0; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery figcaption { font-weight: 700; color: var(--violet-deep); }

.soon { margin-top: 48px; border: 2px dashed #CAC4D0; border-radius: var(--radius); padding: 24px 28px; background: #fff; }
.soon p { margin: 0 0 8px; color: var(--muted); }
.soon ul { margin: 0; padding-left: 1.2em; color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.steps li { counter-increment: s; background: #fff; border-radius: 18px; padding: 18px 20px 18px 72px; position: relative; min-height: 64px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--raspberry); color: #fff; font-weight: 800; display: grid; place-items: center; }
.note { color: var(--muted); margin-top: 20px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 24px; }
.fact { border-left: 6px solid var(--teal); background: var(--tint); border-radius: 0 18px 18px 0; padding: 18px 22px; }
.fact p { margin: 0; color: var(--muted); }
.fact-warn { border-left-color: var(--raspberry); background: #FFF0F4; }

.download { background: var(--hero); color: #fff; text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.download h2 { margin-top: 8px; }
.file-info { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 32px; margin: 20px 0 0; justify-content: center; }
.file-info div { text-align: center; }
.file-info dt { font-size: .85rem; opacity: .9; }
.file-info dd { margin: 0; font-weight: 700; }
.file-info .hash { grid-column: 1 / -1; }
.file-info code { font-size: .78rem; word-break: break-all; background: rgba(0,0,0,.18); padding: 4px 8px; border-radius: 8px; display: inline-block; max-width: 100%; }
.small { font-size: .9rem; }

.footer { background: #141218; color: #E6E1E5; padding: 36px 0; font-size: .95rem; }
.footer a { color: #CFBCFF; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0 0 8px; max-width: 46em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { display: inline-block; min-height: 44px; padding: 10px 0; }

/* Strona prywatności */
.page-head { background: var(--hero); color: #fff; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: 24px; }
.prose { max-width: 780px; padding: 48px 0 72px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .cards, .facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:not(:first-child) { display: none; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .file-info { grid-template-columns: 1fr 1fr; }
  .phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.btn-outline { border: 2px solid var(--violet); color: var(--violet); }

.hero-link { color: #fff; font-weight: 700; }
.iphone-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.iphone-grid .steps li { background: var(--tint); }
.iphone-cta { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .iphone-grid { grid-template-columns: 1fr; } }
.btn-primary { background: var(--violet); color: #fff; }
