/* Strona główna, cennik, „Jak to działa”, logowanie i reset hasła savier.app (styl „Kropka”). Butelkowa zieleń w ramkach z ziarnem, papier w sekcjach
   jasnych, limonka jako jedyny akcent. Kropka z logo wraca jako błyszczące kule i kropki na końcu nagłówków.
   Pozostałe podstrony (logowanie, profil, blog) nadal korzystają ze style.css. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --deep: #0c271e;
  --green: #143d2f;
  --green-hi: #1d5240;
  --green-2: #1c5743;
  --ink: #10241c;
  --lime: #dff38f;
  --lime-2: #c6e35a;
  --mint: #dff2e7;
  --paper: #f7f8f3;
  --white: #fff;
  --on: rgba(223, 242, 231, 0.76);
  --on-2: rgba(223, 242, 231, 0.58);
  --hair: rgba(223, 242, 231, 0.14);
  --muted: #56645d;
  --line: #dfe6e1;
  --focus: var(--lime);

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ui: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(10px, 1.6vw, 24px);
  --pad: clamp(20px, 5.5vw, 80px);
  --r-frame: clamp(24px, 2.6vw, 36px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(36, 96, 74, 0.55) 0%, rgba(36, 96, 74, 0) 65%),
    linear-gradient(180deg, #123b2e 0%, var(--deep) 900px);
  background-color: var(--deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Bez pojedynczego słowa w ostatnim wierszu akapitu (tam, gdzie przeglądarka to obsługuje).
   Krótkie słowa na końcu wiersza sklejają twarde spacje ze scripts/twarde-spacje.mjs. */
p,
li,
dd,
summary {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.inner {
  width: min(1240px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* Ramki: zielona (domyślna) i papierowa. Ziarno leży pod treścią, nad tłem. */
.frame {
  position: relative;
  isolation: isolate;
  margin: var(--gutter) var(--gutter) 0;
  border-radius: var(--r-frame);
  overflow: clip;
  background:
    radial-gradient(900px 640px at 78% 28%, var(--green-hi) 0%, rgba(29, 82, 64, 0) 70%),
    var(--green);
  box-shadow: 0 0 0 1px rgba(223, 242, 231, 0.1), 0 60px 120px -60px rgba(0, 0, 0, 0.6);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.frame-paper {
  --focus: var(--green-2);
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 85% 10%, #e3f3e9 0%, rgba(227, 243, 233, 0) 70%),
    var(--paper);
}

.frame-paper::before {
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.14  0 0 0 0 0.11  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
}

/* Typografia */
.h1,
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.02;
}

.h2 {
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.02;
}

.h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lede {
  margin: 26px 0 0;
  max-width: 36ch;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--on);
  text-wrap: pretty;
}

.frame-paper .lede {
  color: var(--muted);
}

.note {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--on-2);
}

/* Kropka z logo: mała błyszcząca kula zamiast kropki na końcu nagłówka. */
.dot {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.05em;
  border-radius: 50%;
  vertical-align: baseline;
  background: radial-gradient(circle at 34% 30%, #fbffe0 0%, #e4f59a 32%, #b9d457 68%, #7d9b2c 100%);
  box-shadow: inset -0.02em -0.03em 0.05em rgba(54, 80, 12, 0.35);
}

@media (min-width: 981px) {
  br.br-wide {
    display: inline;
  }
}

@media (max-width: 980px) {
  br.br-wide {
    display: none;
  }
}

/* Przyciski */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 700 17px/1 var(--ui);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(16, 36, 28, 0.12), 0 14px 30px -14px rgba(223, 243, 143, 0.55);
}

.btn-ghost {
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(223, 242, 231, 0.3);
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-green {
  background: var(--green);
  color: var(--paper);
}

.btn-line {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(16, 36, 28, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover {
    background: #e8f8a6;
  }

  .btn-ghost:hover {
    background: rgba(223, 242, 231, 0.07);
    box-shadow: inset 0 0 0 1.5px rgba(223, 242, 231, 0.55);
  }

  .btn-paper:hover {
    background: var(--white);
  }

  .btn-green:hover {
    background: var(--green-2);
  }

  .btn-line:hover {
    box-shadow: inset 0 0 0 1.5px rgba(16, 36, 28, 0.45);
  }
}

/* Połysk: jasna smuga przelatuje przez przycisk co kilka sekund. */
.btn-shine {
  overflow: hidden;
  isolation: isolate;
}

.btn-shine::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%) skewX(-20deg);
  animation: shine 4.6s var(--ease-in-out) 1.2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-130%) skewX(-20deg);
  }

  32%,
  100% {
    transform: translateX(340%) skewX(-20deg);
  }
}

/* Nagłówek */
.landing-header {
  position: relative;
  z-index: 20;
}

.nav {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: clamp(22px, 3vw, 40px);
}

.brand img {
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--on);
  transition: color 150ms ease;
}

.nav-links a[aria-current="page"] {
  color: var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--paper);
  }
}

.menu-only {
  display: none;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-menu-toggle {
  display: none;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.ctas {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.systems {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  align-items: center;
  gap: 20px 48px;
  padding-block: 30px 46px;
  border-top: 1px solid var(--hair);
}

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

.systems ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  color: rgba(247, 248, 243, 0.86);
}

/* Scena w hero: projekt 640x700, a 1em to 16 px projektu, więc całość skaluje się z szerokością kolumny. */
.hero-art {
  container-type: inline-size;
}

.scene {
  --w: 640;
  position: relative;
  height: 45.5em;
  font-size: calc(100cqw / var(--w) * 16);
}

.scene > * {
  position: absolute;
}

.sphere {
  aspect-ratio: 1;
  border-radius: 50%;
}

.sphere-lime {
  background: radial-gradient(circle at 32% 28%, #fdffe8 0%, #f1fbbf 12%, #e1f490 30%, #c4dd63 55%, #8eae35 82%, #6b8a23 100%);
  box-shadow: inset -1.6em -2.1em 3.75em rgba(54, 80, 12, 0.45), inset 1em 1.1em 2.5em rgba(255, 255, 255, 0.35), 0 3.75em 5.6em -2.5em rgba(0, 0, 0, 0.55);
}

.sphere-lime::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 14%;
  width: 33%;
  height: 19%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  transform: rotate(-28deg);
  filter: blur(2px);
}

.sphere-green {
  background: radial-gradient(circle at 34% 30%, #5f9c82 0%, #2f6b54 30%, #1a4a39 62%, #0d2c22 100%);
  box-shadow: inset -1.1em -1.4em 2.5em rgba(0, 0, 0, 0.35), 0 2.5em 3.75em -1.9em rgba(0, 0, 0, 0.6);
}

.sphere-mint {
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #eef9f2 30%, #c5e6d3 70%, #8fbfa6 100%);
  box-shadow: 0 1.25em 1.9em -0.9em rgba(0, 0, 0, 0.5);
}

.s-lime-big {
  --ax: 1.3em;
  --ay: 1.7em;
  z-index: 1;
  width: 18.75em;
  right: 0;
  top: 0;
}

.s-mint {
  z-index: 2;
  width: 3.4em;
  right: 22.5em;
  top: 2.5em;
}

.s-green {
  z-index: 2;
  width: 9.75em;
  right: 26.25em;
  top: 10em;
}

.s-glass {
  z-index: 3;
  width: 27.5em;
  right: 3.1em;
  top: 11.9em;
}

.s-cv {
  z-index: 5;
  width: 11.9em;
  right: 28.4em;
  top: 34em;
}

.s-lime-small {
  z-index: 6;
  width: 5.4em;
  right: -0.8em;
  top: 40.6em;
}

/* Unoszenie: każdy element ma inny czas i przesunięcie fazy, żeby nie ruszały się razem.
   Kule pływają po dwóch osiach naraz: poziomo (translate) i pionowo (transform) z różnymi okresami,
   więc tor się nie powtarza, a ruch nigdy całkiem nie staje. Zasięg ustawiają --ax i --ay. */
.float {
  animation: bob var(--t, 8s) ease-in-out var(--d, 0s) infinite alternate;
  will-change: transform;
}

.sphere.float {
  animation:
    float-x calc(var(--t, 8s) * 1.5) ease-in-out var(--d, 0s) infinite alternate,
    float-y calc(var(--t, 8s) * 0.93) ease-in-out var(--d, 0s) infinite alternate;
  will-change: transform, translate;
}

@keyframes bob {
  from {
    transform: translate3d(0, -0.45em, 0) rotate(-1.2deg);
  }

  to {
    transform: translate3d(0, 0.55em, 0) rotate(1.4deg);
  }
}

@keyframes float-x {
  from {
    translate: calc(var(--ax, 1em) * -1) 0;
  }

  to {
    translate: var(--ax, 1em) 0;
  }
}

@keyframes float-y {
  from {
    transform: translate3d(0, calc(var(--ay, 1.4em) * -1), 0);
  }

  to {
    transform: translate3d(0, var(--ay, 1.4em), 0);
  }
}

/* Szkło: tafla z formularzem rekrutacyjnym i karta CV */
.glass {
  border-radius: 1.8em;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.07) 55%, rgba(223, 243, 143, 0.08));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 3em 5.6em -2.5em rgba(0, 0, 0, 0.65);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: linear-gradient(140deg, rgba(64, 120, 98, 0.92), rgba(29, 82, 64, 0.94));
  }
}

.form-card {
  padding: 1.75em 1.75em 1.6em;
  transform: rotate(-9deg);
}

.form-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.2em;
}

.form-top b {
  font-size: 0.95em;
  font-weight: 600;
}

.chip {
  padding: 0.4em 0.8em;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: var(--lime);
  transition: background-color 250ms ease;
}

.chip.is-done {
  background: var(--mint);
}

.glabel {
  display: block;
  margin: 0 0 0.45em;
  font-size: 0.8em;
  font-weight: 500;
  color: rgba(247, 248, 243, 0.72);
}

.gin {
  position: relative;
  height: 3em;
  margin-bottom: 0.85em;
  padding: 0 1em;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0.875em;
  font-size: 1.04em;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(247, 248, 243, 0.94);
  transition: background-color 250ms ease, box-shadow 200ms ease;
}

.gin.is-empty {
  background: rgba(247, 248, 243, 0.34);
}

.gin.is-typing {
  background: rgba(247, 248, 243, 0.98);
  box-shadow: 0 0 0 0.2em rgba(223, 243, 143, 0.7);
}

.gcaret {
  display: none;
  width: 2px;
  height: 1.3em;
  margin-left: 2px;
  background: var(--ink);
}

.gin.is-typing .gcaret {
  display: inline-block;
}

.gprogress {
  margin-top: 0.4em;
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: rgba(247, 248, 243, 0.76);
}

.gprogress [data-fill-cv] {
  transition: opacity 300ms ease;
}

.gprogress [data-fill-cv].is-hidden {
  opacity: 0;
}

.gbar {
  height: 0.38em;
  margin-top: 0.6em;
  border-radius: 0.38em;
  overflow: hidden;
  background: rgba(247, 248, 243, 0.2);
}

.gbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transform-origin: left center;
  transition: transform 420ms var(--ease-out);
}

.cv-card {
  position: relative;
  padding: 1.1em;
  border-radius: 1.4em;
  transform: rotate(7deg);
  transition: box-shadow 300ms ease;
}

.cv-card .doc {
  width: 2.75em;
  height: 3.4em;
  border-radius: 0.55em;
  display: grid;
  place-items: center;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--green);
  background: var(--paper);
}

.cv-card b {
  display: block;
  margin-top: 0.9em;
  font-size: 0.95em;
  font-weight: 600;
}

.cv-card span {
  display: block;
  font-size: 0.8em;
  line-height: 1.35;
  color: rgba(247, 248, 243, 0.74);
}

.cv-card .tick {
  position: absolute;
  top: 0.9em;
  right: 0.9em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 220ms ease, transform 280ms var(--ease-out);
}

.cv-card .tick svg {
  width: 0.95em;
  height: 0.95em;
}

.cv-card.is-attached {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1.5px rgba(223, 243, 143, 0.7), 0 2.1em 3.75em -1.9em rgba(0, 0, 0, 0.6);
}

.cv-card.is-attached .tick {
  opacity: 1;
  transform: scale(1);
}

/* Jeden profil. Każda aplikacja. */
.product {
  padding-block: clamp(64px, 9vw, 130px);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.product .lede {
  max-width: 30ch;
}

.profile-list {
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-list li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  background: rgba(28, 87, 67, 0.08);
}

.ws-stage {
  position: relative;
}

.ws-stage .sphere {
  position: absolute;
  font-size: 16px;
}

.ws-stage .s-a {
  z-index: 0;
  width: 150px;
  right: -40px;
  top: -56px;
}

.ws-stage .s-b {
  z-index: 3;
  width: 64px;
  left: -26px;
  bottom: -22px;
}

.builder-workspace {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(16, 36, 28, 0.08), 0 50px 90px -50px rgba(16, 36, 28, 0.55);
}

.ws-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  color: var(--mint);
  background: var(--green);
}

.ws-bar img {
  width: auto;
  height: 22px;
}

.ws-bar span {
  font-size: 13px;
  font-weight: 600;
}

.ws-body {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.builder-workspace-menu {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 12px;
  background: #f3f7f4;
  border-right: 1px solid var(--line);
}

.builder-workspace-menu span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #3d4b44;
}

.builder-workspace-menu span.active {
  color: var(--paper);
  background: var(--green);
}

.builder-workspace-menu b {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--mint);
}

.builder-workspace-menu .active b {
  color: var(--ink);
  background: var(--lime);
}

.builder-workspace-main {
  padding: 22px 24px 26px;
}

.builder-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.builder-workspace-head strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.builder-workspace-head small {
  font-size: 13.5px;
  color: var(--muted);
}

.builder-workspace-actions em {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  transition: transform 120ms var(--ease-out);
}

.builder-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-top: 18px;
}

.builder-profile-fields label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5953;
}

.builder-profile-fields .wide,
.builder-profile-name {
  grid-column: 1 / -1;
}

.builder-profile-name {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 12px;
}

.builder-profile-fields [data-demo-value] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink);
  background: #fbfcfb;
  box-shadow: inset 0 0 0 1px #d8e1dc;
  transition: box-shadow 150ms ease;
}

.builder-profile-fields .is-select::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
}

.builder-profile-file em {
  flex: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--mint);
  transition: transform 120ms var(--ease-out);
}

.builder-profile-fields .is-demo-focused {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--green-2), 0 0 0 4px rgba(223, 243, 143, 0.75);
}

.builder-workspace .builder-demo-text:empty::after {
  content: "\200b";
}

.builder-profile-file.is-demo-focused em,
.builder-workspace-actions em.is-demo-clicked {
  transform: scale(0.94);
}

.builder-workspace-pointer {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5l15 8.2-6.4 1.6 3.8 7.1-2.7 1.4-3.8-7.1L5 18.5z' fill='%2310241c' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition-property: transform, opacity;
  transition-timing-function: var(--ease-in-out), ease;
}

.builder-workspace.is-demo-running .builder-workspace-pointer {
  opacity: 1;
}

.builder-workspace-ready {
  transition: opacity 300ms ease;
}

.builder-workspace.is-demo-running .builder-workspace-ready {
  opacity: 0;
}

.builder-workspace.is-demo-saved .builder-workspace-ready {
  opacity: 1;
}

/* Savier AI */
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.ai-art {
  position: relative;
  padding: 40px 0;
}

.ai-art .sphere {
  position: absolute;
  font-size: 16px;
}

.ai-art .s-a {
  width: 200px;
  left: -60px;
  top: -10px;
}

.ai-art .s-b {
  z-index: 3;
  width: 74px;
  right: -14px;
  bottom: 6px;
}

.ai-card {
  position: relative;
  z-index: 2;
  padding: 26px;
  font-size: 16px;
}

.ai-card .q {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on);
}

.ai-field {
  border-radius: 16px;
  overflow: hidden;
  background: #f7f8f3;
}

.ai-answer {
  --focus: var(--green-2);
  max-height: 290px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 36, 28, 0.25) transparent;
}

/* Tekst wygasa przy dolnej krawędzi, dopóki jest coś niżej (klasę ustawia js/ai-demo.js). */
.ai-answer.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
}

.ai-answer p {
  margin: 0;
}

.ai-answer p + p {
  margin-top: 10px;
}

.ai-answer:empty::after {
  content: "Savier AI pisze odpowiedź…";
  color: var(--muted);
}

.ai-answer mark {
  color: inherit;
  background: linear-gradient(transparent 62%, rgba(223, 243, 143, 0.95) 62%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ai-count {
  margin: 8px 4px 0;
  font-size: 13px;
  color: var(--on-2);
  font-variant-numeric: tabular-nums;
}

.ai-panel {
  --focus: var(--green-2);
  margin-top: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.55);
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.ai-panel-head span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Ton: trzy przyciski radiowe jako jeden przełącznik. */
.ai-tones {
  margin: 0;
  padding: 3px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 0;
  border-radius: 11px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ai-tones label {
  position: relative;
  cursor: pointer;
}

.ai-tones input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ai-tones span {
  display: grid;
  place-items: center;
  height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  transition: background-color 150ms ease, color 150ms ease;
}

.ai-tones input:checked + span {
  color: var(--paper);
  background: var(--green);
}

.ai-tones input:focus-visible + span {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .ai-tones label:hover input:not(:checked) + span {
    color: var(--ink);
    background: var(--mint);
  }
}

.ai-length {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-stepper {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 11px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ai-stepper button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, transform 120ms var(--ease-out);
}

.ai-stepper button svg {
  width: 18px;
  height: 18px;
}

.ai-stepper button:active:not(:disabled) {
  transform: scale(0.92);
}

.ai-stepper button:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .ai-stepper button:hover:not(:disabled) {
    background: var(--mint);
  }
}

.ai-stepper output {
  min-width: 104px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ai-words {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ai-go {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  font: 700 15px/1 var(--ui);
  color: var(--ink);
  background: var(--lime);
  cursor: pointer;
  transition: background-color 150ms ease, transform 140ms var(--ease-out);
}

.ai-go:active:not(:disabled) {
  transform: scale(0.98);
}

.ai-go:disabled {
  cursor: progress;
  background: #eaf8ad;
}

@media (hover: hover) and (pointer: fine) {
  .ai-go:hover:not(:disabled) {
    background: #e8f8a6;
  }
}

.tiers {
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}

.tiers div {
  padding: 20px 16px 0 0;
}

.tiers div + div {
  padding-left: 18px;
  border-left: 1px solid var(--hair);
}

.tiers dt {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tiers dt small {
  margin-left: 6px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on);
}

.tiers dd {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--on);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.frame-paper .text-link {
  color: var(--green-2);
}

/* Prywatność: mała sekcja pod planami, w tym samym jasnym kafelku */
.privacy {
  margin-top: clamp(88px, 11vw, 150px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.privacy .h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.privacy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 24px 64px;
}

.privacy-head .lede {
  margin: 0;
}

.privacy-list,
.feature-list {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}

.privacy-list li,
.feature-list li {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* Ikona w miętowym kółku: listy z ikonami i objaśnienia na „Jak to działa”. */
.privacy-list .ic,
.feature-list .ic,
.howto-pair .ic,
.howto-callout .ic,
.auth-callout .ic,
.auth-ic {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
}

.privacy-list .ic svg,
.feature-list .ic svg,
.howto-pair .ic svg,
.howto-callout .ic svg,
.auth-callout .ic svg,
.auth-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-list p,
.feature-list p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

/* Plany: skrót na stronie głównej i pełny cennik */
.plans-teaser {
  padding-block: clamp(64px, 9vw, 120px);
}

.teaser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.teaser-head .lede {
  margin-top: 18px;
}

.teaser-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teaser-plan {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(16, 36, 28, 0.07), 0 30px 60px -44px rgba(16, 36, 28, 0.5);
}

.teaser-plan.is-pick {
  color: var(--paper);
  background: var(--green);
}

.teaser-plan h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.price {
  margin: 14px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.price small {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.is-pick .price small,
.plan .price small {
  color: var(--on);
}

.teaser-plan ul,
.plan ul,
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}

.teaser-plan li,
.plan li,
.check-list li {
  position: relative;
  padding-left: 30px;
}

.teaser-plan li::before,
.plan li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.5L14 7.4' fill='none' stroke='%23143d2f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.is-pick li::before,
.plan li::before,
.check-list li::before {
  background-color: var(--lime);
}

.check-list {
  margin-top: 30px;
  gap: 12px;
  font-size: 16.5px;
  color: var(--on);
}

/* Końcowe wezwanie */
.final {
  padding-block: clamp(80px, 11vw, 150px);
  text-align: center;
}

.final .h2 {
  font-size: clamp(42px, 5.6vw, 88px);
}

.final .ctas {
  justify-content: center;
}

.final .sphere {
  position: absolute;
  z-index: -1;
  font-size: 16px;
}

.final .s-a {
  width: clamp(160px, 22vw, 320px);
  right: -4%;
  top: -18%;
}

.final .s-b {
  width: clamp(70px, 8vw, 120px);
  left: 7%;
  bottom: 12%;
}

.final .s-c {
  width: 44px;
  left: 18%;
  top: 16%;
}

/* Stopka */
.footer {
  padding-block: 44px 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.footer img {
  width: auto;
  height: 26px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
  color: var(--on);
}

@media (hover: hover) and (pointer: fine) {
  .footer nav a:hover {
    color: var(--paper);
  }
}

/* Nazwa serwisu z linkiem do polityki prywatności, w której są dane sprzedawcy z NIP. W osobnym wierszu pod linkami. */
.footer-legal {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-2);
}

@media (hover: hover) {
  .footer-legal a:hover {
    color: var(--paper);
  }
}

/* Cennik */
.pricing-head {
  padding-block: clamp(40px, 6vw, 84px) 0;
  text-align: center;
}

.pricing-head .lede {
  margin-inline: auto;
  max-width: 44ch;
}

.pricing-hero {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.pricing-hero .sphere {
  position: absolute;
  z-index: -1;
  font-size: 16px;
}

.pricing-hero .s-a {
  width: clamp(150px, 20vw, 290px);
  right: -60px;
  top: 90px;
}

.pricing-hero .s-b {
  width: 56px;
  left: 9%;
  top: 230px;
}

.pricing-hero .s-c {
  width: clamp(90px, 9vw, 130px);
  left: -40px;
  bottom: 140px;
}

.plans {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-radius: 28px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 34px;
}

.plans > .plan:not(.is-pick) {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(223, 242, 231, 0.12);
}

.plans > .plan:first-child {
  border-radius: 28px 0 0 28px;
}

.plans > .plan:last-child {
  border-radius: 0 28px 28px 0;
}

.plan.is-pick {
  z-index: 2;
  margin-block: -18px;
  padding-top: 50px;
  padding-bottom: 52px;
  border-radius: 28px;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1.5px rgba(223, 243, 143, 0.7), 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
}

.plan-desc {
  margin: 10px 0 0;
  min-height: 3.1em;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--on);
}

.plan .price {
  margin-top: 26px;
  color: var(--paper);
}

.plan-price-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--on-2);
}

.plan .btn {
  margin-top: 26px;
  width: 100%;
}

.plan-includes {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  font-weight: 600;
  color: var(--on);
}

.plan .plan-includes + ul {
  margin-top: 16px;
}

.plan li small {
  display: block;
  font-size: 13.5px;
  color: var(--on-2);
}

/* Czego nie ma w planie: przygaszone, z krzyżykiem. */
.plan li.is-no {
  color: var(--on-2);
}

.plan li.is-no::before {
  background: rgba(223, 242, 231, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2l5.6 5.6M12.8 7.2l-5.6 5.6' fill='none' stroke='%239fb5aa' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Plan Pro jeszcze niedostępny: wyszarzony, bez przycisku zakupu. */
.plan.is-soon .plan-name h2,
.plan.is-soon > :not(.plan-name) {
  opacity: 0.5;
}

.plan.is-soon ul {
  filter: grayscale(1);
}

.plan.is-soon .plan-badge {
  color: var(--paper);
  background: rgba(223, 242, 231, 0.18);
}

.btn:disabled {
  pointer-events: none;
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: 0.15em;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green);
  background: var(--mint);
}

.teaser-plan.is-soon h3 {
  color: var(--muted);
}

.teaser-plan.is-soon > :not(h3) {
  opacity: 0.5;
}

.teaser-plan.is-soon ul {
  filter: grayscale(1);
}

.compare .col-soon {
  color: #8a958f;
}

.compare td.col-soon > span {
  opacity: 0.4;
}

.pricing-links {
  margin-top: clamp(44px, 5vw, 64px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.credit-scale {
  display: grid;
  gap: 10px;
}

.credit-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.credit-row b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.credit-row .len {
  height: 8px;
  border-radius: 8px;
  background: rgba(223, 242, 231, 0.12);
  overflow: hidden;
}

.credit-row .len i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transform-origin: left center;
}

.credit-row span {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: var(--on);
  font-variant-numeric: tabular-nums;
}

.compare-section {
  padding-block: clamp(64px, 8vw, 110px);
}

.compare-section .h2 {
  text-align: center;
}

.compare-wrap {
  margin-top: clamp(36px, 5vw, 56px);
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15.5px;
}

.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-block: 20px;
  background: var(--paper);
  border-bottom: 1.5px solid rgba(16, 36, 28, 0.18);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.compare thead th small {
  display: block;
  margin-top: 2px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.compare thead th:first-child {
  width: 40%;
}

.compare tbody th {
  font-weight: 500;
}

.compare tbody td {
  width: 20%;
  color: #2c3a33;
}

.compare td,
.compare thead th:not(:first-child) {
  text-align: center;
}

.compare .cat th {
  padding-top: 36px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green);
  border-bottom-color: rgba(16, 36, 28, 0.18);
}

.compare .col-pick {
  background: rgba(223, 243, 143, 0.18);
}

.compare thead .col-pick {
  background: #f1f6dc;
}

.yes,
.no {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
}

.yes {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.6 11.3l2.9 2.8 5.9-6.2' fill='none' stroke='%23dff38f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.no {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8' stroke='%2393a19a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 32px clamp(40px, 6vw, 96px);
}

.qa {
  border-top: 1px solid var(--hair);
}

.qa:last-child {
  border-bottom: 1px solid var(--hair);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

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

.qa summary i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(223, 242, 231, 0.1);
  transition: transform 220ms var(--ease-out), background-color 150ms ease;
}

.qa summary i::before,
.qa summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.qa summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qa[open] summary i {
  transform: rotate(45deg);
  background: var(--lime);
}

.qa[open] summary i::before,
.qa[open] summary i::after {
  background: var(--ink);
}

.qa p {
  margin: -6px 0 24px;
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--on);
}

/* Jak to działa */
.howto-hero .s-a {
  position: absolute;
  z-index: -1;
  width: clamp(70px, 7vw, 100px);
  left: -60px;
  bottom: 40px;
  font-size: 16px;
}

/* Scena ma tu tyle miejsca co tekst, żeby formularz był czytelny także na średnich ekranach. */
.howto-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Scena w hero: okno przeglądarki z formularzem i okienko Savier. Projekt 600 px szerokości, a 1em to
   16 px projektu, jak .scene na stronie głównej. Stan pokazu ustawia js/howto-demo.js w data-state. */
.howto-art {
  margin: 0;
}

.howto-scene {
  --w: 600;
  position: relative;
  height: 32em;
  font-size: calc(100cqw / var(--w) * 16);
}

.howto-scene > * {
  position: absolute;
}

.howto-scene .s-big {
  --ax: 1em;
  --ay: 1.3em;
  z-index: 1;
  width: 12.5em;
  right: -2em;
  bottom: -1.5em;
}

.howto-scene .s-small {
  z-index: 1;
  width: 3em;
  left: 1.5em;
  top: 1.2em;
}

/* Za oknem: wystaje zza lewej krawędzi i nie zasłania pól. */
.howto-scene .s-mid {
  z-index: 1;
  width: 5em;
  left: -2.6em;
  bottom: 6em;
}

.howto-window {
  z-index: 2;
  left: 0;
  right: 7%;
  top: 5.5em;
  padding: 0 0.5em 0.5em;
  border-radius: 1.4em;
}

.hw-bar {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.8em 0.5em;
}

.hw-dots {
  display: flex;
  gap: 0.35em;
}

.hw-dots i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: rgba(247, 248, 243, 0.4);
}

.hw-url {
  flex: 1;
  min-width: 0;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(247, 248, 243, 0.82);
  background: rgba(12, 39, 30, 0.38);
}

.hw-page {
  padding: 1.3em 1.3em 1.2em;
  border-radius: 1em;
  color: var(--ink);
  background: var(--paper);
}

.hw-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  margin-bottom: 1em;
}

.hw-head b {
  font-family: var(--display);
  font-size: 1.15em;
  letter-spacing: -0.01em;
}

.hw-head span {
  font-size: 0.75em;
  color: var(--muted);
}

.hw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75em;
}

.hw-field.is-wide {
  grid-column: 1 / -1;
}

.hw-label {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted);
}

.hw-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.6em;
  padding: 0 0.85em;
  overflow: hidden;
  border-radius: 0.7em;
  font-size: 0.88em;
  font-weight: 500;
  white-space: nowrap;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 200ms ease;
}

.hw-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.hw-field.is-empty .hw-text {
  opacity: 0;
  transform: translateY(0.35em);
}

.hw-field.is-filling .hw-input {
  box-shadow: inset 0 0 0 1px var(--green-2), 0 0 0 0.25em rgba(223, 243, 143, 0.75);
}

.hw-field.is-file .hw-input {
  box-shadow: inset 0 0 0 1.5px rgba(28, 87, 67, 0.35);
}

.hw-placeholder {
  position: absolute;
  left: 0.85em;
  font-size: 0.9em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 200ms ease;
}

.hw-field.is-file.is-empty .hw-input {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(16, 36, 28, 0.18);
}

.hw-field.is-file.is-empty .hw-placeholder {
  opacity: 1;
}

.hw-tick {
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
}

.hw-tick svg {
  width: 0.85em;
  height: 0.85em;
}

.hw-submit {
  display: inline-flex;
  align-items: center;
  height: 2.4em;
  margin-top: 1.1em;
  padding: 0 1.3em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--paper);
  background: var(--green);
}

.howto-notice {
  z-index: 4;
  right: 0;
  top: 0;
  width: 15.5em;
  padding: 1.1em 1.1em 1.15em;
  border-radius: 1.2em;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(16, 36, 28, 0.06), 0 1.6em 3em -1.2em rgba(0, 0, 0, 0.55);
  transform-origin: top right;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.howto-scene[data-state="idle"] .howto-notice {
  opacity: 0;
  transform: translateY(-0.4em) scale(0.96);
}

.howto-notice small {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--green);
}

/* Kropka z logo przed nazwą, jak w okienku wtyczki. */
.howto-notice small::before {
  content: "";
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fbffe0 0%, #e4f59a 32%, #b9d457 68%, #7d9b2c 100%);
}

.howto-notice-close {
  position: absolute;
  top: 0.55em;
  right: 0.8em;
  font-size: 1.1em;
  color: var(--muted);
}

.howto-notice strong {
  display: block;
  margin-top: 0.35em;
  font-family: var(--display);
  font-size: 1.1em;
  letter-spacing: -0.01em;
}

.howto-notice p {
  margin: 0.3em 0 0.9em;
  font-size: 0.8em;
  line-height: 1.4;
  color: var(--muted);
}

.howto-notice-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

.howto-notice-cta.is-pressed {
  transform: scale(0.96);
  background: var(--lime-2);
}

.howto-scene[data-state="done"] .howto-notice-cta {
  background: var(--mint);
}

/* Spis treści: przyklejony do góry ekranu, bieżącą sekcję zaznacza js/how-it-works.js. */
.howto-toc {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  justify-content: center;
  margin: var(--gutter) var(--gutter) 0;
  pointer-events: none;
}

.howto-toc ol {
  margin: 0;
  padding: 5px;
  list-style: none;
  display: flex;
  gap: 2px;
  border-radius: 999px;
  background: rgba(15, 46, 36, 0.94);
  box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.howto-toc a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--on);
  transition: background-color 150ms ease, color 150ms ease;
}

.howto-toc a.is-current {
  color: var(--ink);
  background: var(--lime);
}

@media (hover: hover) and (pointer: fine) {
  .howto-toc a:not(.is-current):hover {
    color: var(--paper);
    background: rgba(223, 242, 231, 0.08);
  }
}

/* Sekcje pod spisem treści nie chowają nagłówka pod przyklejonym paskiem. */
.howto-intro,
.howto-features,
.howto-install-section,
.howto-privacy,
#faq {
  scroll-margin-top: 76px;
}

.howto-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.howto-callout,
.auth-callout {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 46ch;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  font-size: 15.5px;
  color: var(--paper);
  background: rgba(223, 243, 143, 0.1);
  box-shadow: inset 0 0 0 1px rgba(223, 243, 143, 0.22);
}

.howto-callout .ic,
.auth-callout .ic {
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0;
  background: var(--lime);
}

.howto-pair {
  margin: 0;
  display: grid;
  gap: 12px;
}

.howto-pair div {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.howto-pair dt {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.howto-pair .ic {
  flex: none;
  margin: 0;
}

.howto-pair dd {
  margin: 14px 0 0;
  font-size: 16.5px;
  color: var(--on);
}

.howto-features,
.howto-privacy {
  padding-block: clamp(64px, 9vw, 120px);
}

.feature-list {
  margin-top: clamp(36px, 5vw, 56px);
  row-gap: 44px;
}

.feature-list .text-link {
  margin-left: 2px;
}

.howto-footnote {
  margin: clamp(36px, 4vw, 48px) 0 0;
  font-size: 15px;
  color: var(--muted);
}

.howto-install-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 48px;
}

.howto-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(223, 242, 231, 0.08);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.howto-tabs[hidden],
.howto-install[hidden] {
  display: none;
}

.howto-tabs button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--ui);
  white-space: nowrap;
  color: var(--on);
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.howto-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--lime);
}

@media (hover: hover) and (pointer: fine) {
  .howto-tabs button[aria-selected="false"]:hover {
    color: var(--paper);
    background: rgba(223, 242, 231, 0.08);
  }
}

.howto-install {
  margin-top: clamp(40px, 5vw, 64px);
}

.howto-install > p {
  margin: 12px 0 0;
  max-width: 64ch;
  font-size: 16.5px;
  color: var(--on);
}

.howto-install .howto-callout {
  margin-top: 18px;
  max-width: 64ch;
}

.howto-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.howto-steps li {
  counter-increment: step;
  padding: 24px 22px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.howto-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  font: 700 18px/1 var(--display);
  color: var(--ink);
  background: var(--lime);
}

.howto-steps h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.howto-steps p {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--on);
}

.howto-steps li > .text-link {
  margin-top: 14px;
}

.howto-facts {
  margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.howto-facts div {
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
}

.howto-facts dt {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.howto-facts dd {
  margin: 8px 0 0;
  max-width: 58ch;
  font-size: 16px;
  color: var(--muted);
}

.qa .text-link {
  font-weight: 600;
}

/* Logowanie, reset hasła i nowe hasło: zielona ramka z kontekstem po lewej i jasna karta z formularzem.
   Skrypty (auth.js, reset-password.js, new-password.js) szukają pól po id, data-* i klasach active, is-met, error. */
.auth-frame {
  padding-bottom: clamp(48px, 7vw, 96px);
}

.auth-frame .s-a {
  position: absolute;
  z-index: -1;
  width: clamp(120px, 14vw, 210px);
  right: clamp(-60px, -3vw, -20px);
  top: 28%;
  font-size: 16px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: start;
  gap: clamp(40px, 7vw, 120px);
  padding-top: clamp(40px, 6vw, 84px);
}

.auth-kicker {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lime);
}

/* Tekst po lewej stoi w miejscu niezależnie od wysokości karty: rejestracja jest wyższa od logowania, więc
   wyśrodkowany tekst zjeżdżał w dół po zmianie zakładki. Odstęp z góry stawia go na środku karty logowania,
   a sticky trzyma go w widoku przy przewijaniu dłuższego formularza. */
.auth-copy {
  position: sticky;
  top: clamp(24px, 8vh, 96px);
  margin-top: clamp(48px, 10vw, 156px);
}

.auth-copy .h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.auth-copy .lede {
  max-width: 34ch;
}

.auth-card {
  --focus: var(--green-2);
  position: relative;
  z-index: 2;
  padding: clamp(26px, 3.2vw, 40px);
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(16, 36, 28, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.65);
}

.auth-ic {
  margin-bottom: 18px;
}

.auth-card h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.auth-intro {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.auth-checking {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted);
}

.auth-checking[hidden],
.account-form[hidden],
.form-status[hidden] {
  display: none;
}

.auth-checking p {
  margin: 0;
}

/* Wskaźnik sprawdzania sesji: stały obrót, więc liniowo. */
.auth-spinner {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(28, 87, 67, 0.18);
  border-top-color: var(--green-2);
  animation: auth-spin 800ms linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Logowanie i rejestracja: dwa przyciski jako jeden przełącznik, jak ton w pokazie Savier AI. */
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.auth-tab {
  height: 42px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--ui);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.auth-tab.active {
  color: var(--paper);
  background: var(--green);
}

@media (hover: hover) and (pointer: fine) {
  .auth-tab:not(.active):hover {
    color: var(--ink);
    background: var(--mint);
  }
}

.account-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.account-form > label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.account-form > label:first-of-type {
  margin-top: 0;
}

.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  font: 500 16px/1 var(--ui);
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .account-form input:not(:disabled):hover {
    box-shadow: inset 0 0 0 1.5px rgba(16, 36, 28, 0.28);
  }
}

.account-form input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--green-2), 0 0 0 4px rgba(223, 243, 143, 0.8);
}

.account-form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 84px;
}

.password-reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font: 600 14px/1 var(--ui);
  color: var(--green-2);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .password-reveal:hover {
    background: var(--mint);
  }
}

/* Wymagania hasła: spełnione zmieniają kolor i dostają znaczek, bez ruchu. */
.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.password-rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(16, 36, 28, 0.05);
  transition: color 150ms ease, background-color 150ms ease;
}

.password-rules li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(16, 36, 28, 0.25);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.password-rules li.is-met {
  color: var(--green);
  background: var(--mint);
}

.password-rules li.is-met::before {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.3l2 1.9 4-4.2' fill='none' stroke='%23dff38f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: none;
}

.account-form .terms-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.account-form a:not(.btn),
.auth-links a {
  font-weight: 700;
  color: var(--green-2);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Widżet ma najmniej 300 px. Na najwęższych ekranach jego prawy brzeg się chowa, a pola zostają w karcie. */
.turnstile-box {
  margin-top: 10px;
  overflow: hidden;
}

.turnstile-box:empty {
  display: none;
}

.auth-submit {
  width: 100%;
  margin-top: 12px;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  margin: 8px 0 0;
  font-size: 15px;
  text-align: center;
}

.terms-privacy {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Komunikat po wysłaniu formularza wjeżdża lekko z góry (rzadkie, potwierdza akcję). */
.form-status {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--green);
  background: var(--mint);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

@starting-style {
  .form-status {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.form-status.error {
  color: #8a1f11;
  background: #fbe7e2;
}

/* Baner cookies (tworzy go js/cookies.js) */
.cookie-banner {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-card {
  width: min(680px, 100%);
  padding: 18px 18px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(16, 36, 28, 0.1), 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --focus: var(--green-2);
}

.cookie-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #33443d;
}

.cookie-card strong {
  color: var(--ink);
}

.cookie-card a {
  font-weight: 700;
  color: var(--green-2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cookie-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: 700 14px/1 var(--ui);
  cursor: pointer;
}

.cookie-primary {
  border: 1.5px solid var(--green);
  color: var(--paper);
  background: var(--green);
}

/* Odmowa ma tę samą wagę co zgoda: ten sam rozmiar, tylko jaśniejsze tło. */
.cookie-secondary {
  border: 1.5px solid var(--green);
  color: var(--green);
  background: var(--white);
}

/* Tablet i telefon */
@media (max-width: 1100px) {
  .privacy-list {
    gap: 0 28px;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto 1fr;
  }

  .nav-account {
    justify-self: end;
  }

  .nav-account .btn-ghost {
    display: none;
  }

  .landing-menu-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--paper);
    background: rgba(223, 242, 231, 0.1);
    cursor: pointer;
  }

  .landing-menu-toggle span,
  .landing-menu-toggle span::before,
  .landing-menu-toggle span::after {
    display: block;
    width: 18px;
    height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 200ms var(--ease-out), opacity 150ms ease;
  }

  .landing-menu-toggle span {
    position: relative;
  }

  .landing-menu-toggle span::before,
  .landing-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .landing-menu-toggle span::before {
    top: -6px;
  }

  .landing-menu-toggle span::after {
    top: 6px;
  }

  .is-menu-open .landing-menu-toggle span {
    background: transparent;
  }

  .is-menu-open .landing-menu-toggle span::before {
    transform: translateY(6px) rotate(45deg);
  }

  .is-menu-open .landing-menu-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    background: #0f2e24;
    box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }

  .is-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 17px;
    color: var(--paper);
  }

  .menu-only {
    display: block;
  }

  .hero-grid,
  .howto-hero .hero-grid,
  .product-grid,
  .ai-grid,
  .credits-grid,
  .faq-grid,
  .privacy-head,
  .howto-intro-grid,
  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    order: -1;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .auth-copy {
    position: static;
    width: min(100%, 520px);
    margin-top: 0;
    margin-inline: auto;
  }

  .auth-frame .s-a {
    display: none;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .systems {
    grid-template-columns: minmax(0, 1fr);
  }

  .systems ul {
    justify-content: flex-start;
  }

  .ai-art {
    order: 2;
  }

  .privacy-list,
  .teaser-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .privacy-list {
    gap: 0;
  }

  .privacy-list li {
    padding-bottom: 28px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .plans > .plan,
  .plans > .plan:first-child,
  .plans > .plan:last-child {
    border-radius: 24px;
  }

  .plan.is-pick {
    margin-block: 0;
    padding-block: 32px 34px;
  }

  .plan-desc {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .nav-account .btn-paper {
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .brand img {
    height: 26px;
  }

  .ctas .btn {
    width: 100%;
  }

  /* Strona główna na telefonie: w hero sam tekst, bez sceny z formularzem, i bez kul na całej stronie.
     Ukryty formularz nie jest widoczny na ekranie, więc js/hero-fill.js go nie animuje. */
  .home .hero-art,
  .home .sphere {
    display: none;
  }

  .home .hero-grid {
    padding-bottom: 8px;
  }

  /* Mniejsza scena: projekt 420 px szerokości, mniej kul. */
  .scene {
    --w: 420;
    height: 47.4em;
  }

  .s-lime-big {
    width: 11.9em;
    right: -1.2em;
    top: 0;
  }

  .s-mint {
    display: none;
  }

  .s-green {
    width: 5.6em;
    right: 20.5em;
    top: 4.4em;
  }

  .s-glass {
    width: 23.5em;
    right: 1.4em;
    top: 5.6em;
  }

  .form-card {
    transform: rotate(-5deg);
  }

  .s-cv {
    width: 10.6em;
    right: 12.6em;
    top: 37.9em;
  }

  .s-lime-small {
    width: 4.2em;
    right: 2.4em;
    top: 39.6em;
  }

  .builder-workspace-head strong {
    font-size: 18px;
  }

  .builder-workspace-actions em {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .final .h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .final .s-a {
    width: 130px;
    right: -50px;
    top: -50px;
  }

  .final .s-b {
    width: 70px;
    left: -24px;
    bottom: -24px;
  }

  .final .s-c,
  .pricing-hero .s-b {
    display: none;
  }

  /* Karta logowania: więcej miejsca na pola i widżet Turnstile. */
  .auth-grid {
    width: calc(100% - 24px);
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .pricing-hero .s-a {
    width: 150px;
    right: -70px;
    top: auto;
    bottom: 38%;
  }

  .pricing-hero .s-c {
    width: 90px;
    bottom: 12%;
  }

  .ws-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-workspace-menu {
    display: flex;
    gap: 6px;
    overflow: hidden;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .builder-workspace-menu span {
    flex: none;
  }

  .builder-workspace-main {
    padding: 18px 16px 20px;
  }

  .builder-workspace-head small {
    display: none;
  }

  .builder-profile-name {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .builder-profile-name label:first-child {
    display: none;
  }

  .ws-stage .s-a {
    width: 96px;
    right: -20px;
    top: -36px;
  }

  .ai-card {
    padding: 18px;
  }

  .ai-tones span {
    font-size: 12.5px;
  }

  .ai-stepper output {
    min-width: 88px;
  }

  .tiers {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiers div,
  .tiers div + div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--hair);
  }

  .tiers dd {
    margin: 0;
  }

  .credit-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
  }

  .credit-row b,
  .credit-row span {
    grid-row: 1;
  }

  .credit-row .len {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .compare-wrap {
    overflow-x: auto;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }

  .compare {
    min-width: 620px;
  }

  /* Jak to działa: mniejsza scena (projekt 440 px), spis treści w treści strony, jedna kolumna. */
  .howto-scene {
    --w: 440;
    height: 34em;
  }

  .howto-window {
    right: 0;
    top: 7.5em;
  }

  .howto-notice {
    width: 15em;
  }

  .howto-scene .s-big {
    width: 9em;
    right: -2.5em;
  }

  .howto-scene .s-mid {
    width: 3.6em;
    left: -1.2em;
  }

  .howto-toc {
    position: static;
  }

  .howto-toc ol {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
  }

  .howto-toc a {
    padding: 8px 13px;
    font-size: 14px;
  }

  .feature-list,
  .howto-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-list {
    row-gap: 32px;
  }

  .howto-tabs {
    display: flex;
    width: 100%;
  }

  .howto-tabs[hidden] {
    display: none;
  }

  .howto-tabs button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .howto-pair div {
    padding: 22px;
  }

  .howto-pair dt {
    font-size: 20px;
  }

  .qa summary {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float,
  .btn-shine::after {
    animation: none;
  }

  .btn-shine::after {
    display: none;
  }

  .auth-spinner {
    animation: auth-pulse 1.2s ease-in-out infinite alternate;
  }

  .form-status {
    transition: opacity 200ms ease;
  }
}

@keyframes auth-pulse {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

.credits-buy-cta {
  margin-top: 26px;
}
