/* Styl PitStudio, wspólny dla strony i aplikacji: systemowe kolory i fonty Apple, kapsuły, karty, poświaty CMY. */

:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --text: #1d1d1f;
  --text-2: rgba(60, 60, 67, 0.78);
  --text-3: rgba(60, 60, 67, 0.55);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.2);
  --separator: rgba(60, 60, 67, 0.14);
  --accent: #007aff;
  --accent-hover: #0066d6;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --sheet-shadow: 0 14px 34px rgba(24, 26, 70, 0.2);
  --sheet-back: #f4f4f7;
  --glow-cyan: rgba(0, 168, 237, 0.16);
  --glow-amber: rgba(255, 190, 0, 0.15);
  --glow-magenta: rgba(232, 13, 140, 0.1);
  --radius: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: rgba(28, 28, 30, 0.74);
    --surface-solid: #2c2c2e;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f5f5f7;
    --text-2: rgba(235, 235, 245, 0.68);
    --text-3: rgba(235, 235, 245, 0.45);
    --fill: rgba(120, 120, 128, 0.24);
    --fill-2: rgba(120, 120, 128, 0.36);
    --separator: rgba(84, 84, 88, 0.55);
    --accent: #0a84ff;
    --accent-hover: #3d9bff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.35);
    --sheet-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    --sheet-back: #ececf0;
    --glow-cyan: rgba(0, 150, 220, 0.24);
    --glow-amber: rgba(255, 176, 0, 0.16);
    --glow-magenta: rgba(210, 0, 120, 0.2);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Poświaty jak na ekranie startowym aplikacji: błękit, bursztyn, magenta. */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 0% 0%, var(--glow-cyan), transparent 70%),
    radial-gradient(55vmax 40vmax at 100% 4%, var(--glow-amber), transparent 70%),
    radial-gradient(60vmax 45vmax at 100% 100%, var(--glow-magenta), transparent 70%);
}

.bar, main, .foot { position: relative; z-index: 1; }

a { color: var(--accent); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

h1, h2, h3 { color: var(--text); }

/* Pasek nawigacji: szklana kapsuła jak w aplikacji. */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: max(12px, env(safe-area-inset-top)) 16px 0;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.bar-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Logo „Trzy farby”: kolory mieszają się tylko między sobą, nie z tłem strony. */
.logo { isolation: isolate; }

.brand-mark {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.studio-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 30px rgba(24, 26, 70, 0.22));
}

.bar-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.bar-links a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.bar-links a:hover,
.bar-links a[aria-current="page"] {
  color: var(--text);
  background: var(--fill);
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}

.lang-switch a {
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current="true"] {
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

@media (max-width: 560px) {
  .bar-inner { border-radius: 24px; }
  .bar-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid var(--separator);
  }
  .lang-switch { margin-left: auto; }
}

/* Treść */
main {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 72px;
}

.hero {
  padding: 72px 0 32px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.4;
}

.app-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 26px;
  border-radius: 22.4%;
  box-shadow: var(--sheet-shadow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--fill); color: var(--text); }
.btn-secondary:hover { background: var(--fill-2); }

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sekcje i karty */
.section { margin-top: 64px; }

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-align: center;
}

.section-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-2);
  font-size: 19px;
  text-align: center;
}

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

.card h2, .card h3 {
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.card h2 { font-size: 22px; }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--text-2); }

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.card:hover { transform: translateY(-2px); }

.more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.card > .tile { margin-bottom: 16px; }

/* Kolorowe kafelki ikon jak w ustawieniach aplikacji */
.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}

.tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-blue { background: linear-gradient(180deg, #3a9bff, #007aff); }
.tile-green { background: linear-gradient(180deg, #4cd471, #28b84c); }
.tile-orange { background: linear-gradient(180deg, #ffab33, #ff8a00); }
.tile-pink { background: linear-gradient(180deg, #ff5277, #f0254f); }
.tile-indigo { background: linear-gradient(180deg, #716ff0, #4b49cf); }
.tile-teal { background: linear-gradient(180deg, #3fc4dc, #1d9db6); }
.tile-purple { background: linear-gradient(180deg, #c06bec, #a144d6); }
.tile-gray { background: linear-gradient(180deg, #a0a0a6, #7b7b82); }

/* Karta aplikacji na stronie głównej */
a.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
}

.app-card img {
  width: 104px;
  height: 104px;
  border-radius: 22.4%;
  box-shadow: 0 8px 22px rgba(24, 26, 70, 0.22);
}

.app-card h3 { font-size: 26px; }
.app-card .chips { justify-content: flex-start; margin-top: 14px; }

@media (max-width: 560px) {
  .app-card { grid-template-columns: 1fr; text-align: center; }
  .app-card img { margin: 0 auto; }
  .app-card .chips { justify-content: center; }
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.contact > div { flex: 1 1 240px; }
.contact > .tile { margin: 0; }

/* Ilustracja PitPrint: wachlarz kartek z literą P */
.sheets {
  position: relative;
  width: 250px;
  height: 214px;
  margin: 0 auto 28px;
}

.sheet {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 138px;
  height: 182px;
  margin-left: -69px;
  border-radius: 15px;
  background: var(--sheet-back);
  box-shadow: var(--sheet-shadow);
}

.sheet-l { transform: translateX(-46px) rotate(-9deg); }
.sheet-r { transform: translateX(46px) rotate(9deg); }

.sheet-c {
  top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  background: #fff;
  isolation: isolate;
}

.sheet-mark { width: 84px; height: 98px; }
.ink { mix-blend-mode: multiply; }

.sheet .line {
  display: block;
  width: 86px;
  height: 7px;
  margin-top: 16px;
  border-radius: 4px;
  background: #e3e3e8;
}

.sheet .line.short { width: 62px; margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .sheet-l, .sheet-r { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .sheets:hover .sheet-l { transform: translateX(-56px) rotate(-13deg); }
  .sheets:hover .sheet-r { transform: translateX(56px) rotate(13deg); }
}

/* „Co drukujemy?” */
.showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 40px;
  padding: 40px;
}

.showcase .sheets { margin: 0; }
.showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: 12px;
}
.showcase p + p { margin-top: 12px; }

@media (max-width: 720px) {
  .showcase { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; }
  .showcase .sheets { margin: 0 auto 8px; }
}

/* Lista funkcji */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
}

.feature h3 {
  margin: 2px 0 5px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
}

/* Polityka prywatności i inne dłuższe teksty */
.article {
  max-width: 780px;
  margin: 48px auto 0;
  padding: clamp(24px, 5vw, 52px);
}

.article h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article .meta {
  margin: 0 0 28px;
  color: var(--text-3);
  font-size: 15px;
}

.article h2 {
  margin: 36px 0 8px;
  font-size: 21px;
  letter-spacing: -0.012em;
}

.article p,
.article li { color: var(--text); }
.article p { margin: 0 0 12px; }
.article ul { margin: 0 0 12px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article li::marker { color: var(--text-3); }

.summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.summary p { margin: 0; font-size: 18px; line-height: 1.45; }
.summary strong { display: block; margin-bottom: 2px; }

/* Wsparcie */
.support-hero { padding-bottom: 8px; }

.tip {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--text-3);
  font-size: 15px;
}

.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.faq details + details { border-top: 1px solid var(--separator); }

.faq summary {
  position: relative;
  padding: 19px 56px 19px 24px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }

.faq .answer { padding: 0 24px 20px; }
.faq .answer p { margin: 0 0 10px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

kbd {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  font: inherit;
  font-size: 0.92em;
}

/* Stopka */
.foot {
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  color: var(--text-3);
  font-size: 14px;
}

.foot-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
}

.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Strony bez nawigacji: wybór języka i 404 */
.page-choose main,
.page-404 main {
  display: flex;
  align-items: center;
  justify-content: center;
}
