/* Owllet — strona produktu.
   Język wizualny jak owllet.pl i docs/07-design/images/layouts/projekt_strony.PNG:
   kremowo-brzoskwiniowe tło, fioletowe koło, bloby, przekrzywione kwadraty, Poppins. */

:root {
  --purple: #453c84;
  --purple-soft: #534d93;
  --navy: #232d5b;
  --navy-dark: #161c3d;
  --indigo: #3c4aa0;
  --coral: #f26c63;
  --coral-dark: #e4544b;
  --coral-light: #ff9a8d;
  --peach: #f6b8a6;
  --blush: #fbe1d8;
  --gold: #f3c25e;
  --mint: #8be0c7;
  --violet: #8c6ff5;
  --bg: #f7eee8;
  --bg-light: #fbf5f1;
  --white: #fff;
  --ink: #1c1f2e;
  --muted: #8a8197;

  --radius-card: 28px;
  --radius-btn: 12px;
  --shadow: 0 30px 60px -28px rgba(69, 60, 132, 0.35);
  --shadow-coral: 0 10px 20px rgba(255, 123, 109, 0.3);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 80px);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff8f3 0%, var(--bg) 45%, #f0e6df 100%) fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  color: var(--navy-dark);
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
}

.skip-link:focus {
  top: 16px;
}

.muted {
  color: var(--muted);
}

.pos {
  color: #2fae8b;
}

.neg {
  color: var(--coral);
}

/* Material Symbols */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ---------------------------------------------------------------------------
   Kształty dekoracyjne (jak na owllet.pl i w projekcie strony)
--------------------------------------------------------------------------- */

.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

.tile {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  rotate: 14deg;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}

.tile--coral { background: #e66960; }
.tile--peach { background: #f7b787; width: 32px; height: 32px; border-radius: 8px 3px 8px 3px; }
.tile--navy { background: var(--navy-dark); width: 40px; height: 40px; border-radius: 8px; rotate: -12deg; }

.dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite reverse;
  pointer-events: none;
}

.dot--purple { background: var(--purple); }
.dot--coral { background: var(--coral); }

.spark {
  position: absolute;
  width: 46px;
  height: 46px;
  fill: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite;
}

.squircle {
  position: absolute;
  border-radius: 28%;
  pointer-events: none;
}

.squircle--purple { background: var(--purple); }
.squircle--coral { background: var(--coral); }
.squircle--navy { background: var(--navy-dark); }
.squircle--peach { background: var(--peach); }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 12px); }
}

@keyframes twinkle {
  0%, 100% { scale: 1; opacity: 0.85; }
  50% { scale: 0.7; opacity: 0.5; }
}

/* ---------------------------------------------------------------------------
   Przyciski, odznaki, ikony
--------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background-color 0.2s;
}

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

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

.btn--small {
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn--coral {
  background: linear-gradient(to right, #ff7b6d, var(--coral-light));
  color: var(--white);
  box-shadow: var(--shadow-coral);
}

.btn--coral:hover {
  box-shadow: 0 14px 26px rgba(255, 123, 109, 0.42);
}

.btn--ink {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(69, 60, 132, 0.25);
}

.btn--ghost {
  background: var(--white);
  color: var(--purple);
  box-shadow: inset 0 0 0 2px rgba(69, 60, 132, 0.18);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 16px;
  border-radius: var(--radius-btn);
  background: var(--navy-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.05;
}

.store-badge svg {
  width: 26px;
  height: 26px;
}

.store-badge small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}

.badge--indigo {
  background: #e6e4f4;
  color: var(--purple);
}

.badge--violet {
  background: #ece6fe;
  color: #6a4ce0;
}

.badge--outline {
  box-shadow: inset 0 0 0 1.5px currentColor;
  color: var(--coral);
  font-size: 12px;
  transform: translateY(-0.4em);
}

.pill {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
}

/* Okrągłe ikony jak na liście „Historia” w projekcie */
.circle,
.ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
}

.circle .ms,
.ico .ms {
  font-size: 20px;
}

.circle--purple,
.ico--violet { background: var(--purple); }
.circle--navy,
.ico--indigo { background: var(--navy); }
.circle--coral,
.ico--coral { background: var(--coral); }
.circle--peach { background: var(--peach); }
.circle--gold,
.ico--gold { background: var(--gold); }
.ico--mint { background: #5fcaa9; }

/* ---------------------------------------------------------------------------
   Nawigacja
--------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 14px var(--gutter) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 8px 8px 14px;
  border-radius: 20px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.nav.is-stuck {
  background: rgba(251, 245, 241, 0.92);
  box-shadow: 0 12px 30px -18px rgba(69, 60, 132, 0.45);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--navy-dark);
  transition: opacity 0.3s;
}

/* Na górze strony logo jest duże w fioletowym kole — w pasku chowamy je. */
.nav:not(.is-stuck) .nav__brand {
  opacity: 0;
  pointer-events: none;
}

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav__links a {
  font-size: 16px;
  text-decoration: none;
  color: #555;
}

.nav__links a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--gutter) 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg .blob--peach {
  width: 340px;
  height: 320px;
  right: -110px;
  top: 16%;
  background: linear-gradient(160deg, var(--peach), #f7c8b7);
  opacity: 0.85;
  animation-delay: -3s;
}

.hero__bg .blob--coral {
  width: 230px;
  height: 220px;
  right: 3%;
  bottom: -90px;
  background: linear-gradient(160deg, var(--coral), #f48f7f);
  opacity: 0.85;
  animation-delay: -6s;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  min-height: calc(100svh - 200px);
  margin: 0 auto;
}

/* Bez z-index: koło (z-index -1) ma leżeć pod telefonem, w kontekście .hero. */
.hero__copy {
  position: relative;
  color: var(--white);
}

/* Wielkie fioletowe koło z owllet.pl — zakotwiczone przy treści, żeby zawsze ją zakrywało. */
.hero__circle {
  position: absolute;
  z-index: -1;
  right: -190px;
  bottom: -330px;
  width: 1500px;
  height: 1500px;
  border-radius: 50%;
  background: var(--purple);
  animation: grow 1.2s var(--ease-out) both;
  transform-origin: 30% 30%;
}

@keyframes grow {
  from { scale: 0.6; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  animation: fade 0.8s 0.1s var(--ease-out) both;
}

.hero__title {
  margin-top: 30px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero__title span {
  display: block;
  animation: fade 0.8s var(--ease-out) both;
}

.hero__title span:nth-child(1) { animation-delay: 0.2s; }
.hero__title span:nth-child(2) { animation-delay: 0.28s; }
.hero__title span:nth-child(3) { animation-delay: 0.36s; }

.hero__title .hero__accent {
  margin-top: 4px;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 500;
  color: var(--peach);
  animation-delay: 0.48s;
}

.hero__lead {
  max-width: 34ch;
  margin-top: 22px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  animation: fade 0.8s 0.6s var(--ease-out) both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: fade 0.8s 0.7s var(--ease-out) both;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  animation: fade 0.8s 0.8s var(--ease-out) both;
}

.hero__note .ms {
  font-size: 18px;
  color: var(--peach);
}

@keyframes fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Sowa z logo: oczy śledzą kursor */
.owl {
  flex: none;
  width: clamp(64px, 6vw, 84px);
  height: auto;
  overflow: visible;
}

.owl__body { fill: var(--purple-soft); }
.owl__wing { fill: #ea7466; }
.owl__brow { fill: #ee7766; }
.owl__ring { fill: #2b2766; }
.owl__white { fill: var(--white); }
.owl__pupil { fill: #1f2233; transition: transform 0.12s linear; }
.owl__glint { fill: var(--white); }
.owl__beak { fill: #e2803a; }
.owl__clasp { fill: #6a64b0; }
.owl__clasp-shadow { fill: #3d387a; }

.owl__lid {
  fill: var(--purple-soft);
  transform-box: fill-box;
  transform-origin: top;
  transform: scaleY(0);
}

.owl.is-blinking .owl__lid {
  animation: blink 0.22s ease-in-out;
}

@keyframes blink {
  50% { transform: scaleY(1); }
}

/* Telefon + karta „Historia” jak w projekcie strony */
.hero__device {
  position: relative;
  justify-self: center;
  width: min(580px, 100%);
  height: 600px;
  animation: device 1.1s 0.25s var(--ease-out) both;
}

@keyframes device {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}

.hero__device .blob--navy {
  width: 330px;
  height: 330px;
  left: 6%;
  bottom: -40px;
  background: linear-gradient(140deg, var(--navy), var(--indigo));
  opacity: 0.75;
}

.phone {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 260px;
  border: 5px solid #222;
  border-radius: 42px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.phone__screen {
  position: relative;
  aspect-ratio: 1179 / 2556;
}

.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s, transform 1.4s var(--ease-out);
}

.phone__screen img.is-active {
  opacity: 1;
  transform: none;
}

.history {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 70px;
  width: 250px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 12px;
}

.history__head {
  position: relative;
  height: 96px;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, var(--navy) 70%, transparent 71%),
    linear-gradient(90deg, var(--peach) 50%, var(--coral) 50%);
}

.history__head p {
  position: absolute;
  inset: 26px 0 auto;
  text-align: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

.history__body {
  margin-top: -18px;
  position: relative;
  padding: 16px 16px 18px;
  border-radius: 24px 24px 0 0;
  background: var(--white);
}

.history__label {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 6px;
  font-size: 13px;
}

.history__label b {
  font-weight: 500;
  color: var(--navy);
}

.history__label span {
  color: var(--muted);
}

.history ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.history li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.history .circle {
  width: 30px;
  height: 30px;
}

.history .circle .ms {
  font-size: 16px;
}

.history li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.history b {
  display: block;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}

.history small {
  color: var(--muted);
  font-size: 10.5px;
}

.history em {
  font-style: normal;
  font-weight: 500;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history em.plus {
  color: #2fae8b;
}

.float-chip {
  position: absolute;
  z-index: 3;
  left: -12%;
  top: 56%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 15px;
  white-space: nowrap;
  animation: chip 1s 1s var(--ease-out) both, float 7s 2s ease-in-out infinite;
}

.float-chip b {
  display: block;
  font-weight: 500;
}

.float-chip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.float-chip em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 600;
  color: var(--coral);
}

@keyframes chip {
  from { opacity: 0; scale: 0.9; }
  to { opacity: 1; scale: 1; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow);
  text-decoration: none;
  animation: bounce 2.4s ease-in-out infinite;
}

@keyframes bounce {
  50% { transform: translateY(8px); }
}

/* ---------------------------------------------------------------------------
   Pasek bolączek (marquee)
--------------------------------------------------------------------------- */

.pains {
  overflow: hidden;
  padding: 26px 0;
  background: var(--purple);
  color: var(--white);
  rotate: -1.5deg;
  margin: 10px -20px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  font-size: 19px;
  animation: marquee 60s linear infinite;
}

.marquee__track > span:nth-child(3n + 1) {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}

.marquee__track > span:nth-child(3n) {
  font-weight: 500;
  color: var(--peach);
  margin-right: 40px;
}

.marquee__track .ms {
  color: var(--coral-light);
}

.pains:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------------
   Sekcje funkcji
--------------------------------------------------------------------------- */

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy > p {
  max-width: 46ch;
  margin-top: 18px;
  color: #4d4a5c;
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 16px;
  rotate: -8deg;
  color: var(--white);
  box-shadow: 0 10px 20px -8px rgba(69, 60, 132, 0.4);
}

.feature__icon .ms {
  font-size: 28px;
  rotate: 8deg;
}

.hint {
  font-size: 14px;
  color: var(--muted) !important;
}

.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: #4d4a5c;
}

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Demo na tle przekrzywionego „squircle'a” jak w projekcie strony */
.demo {
  position: relative;
  isolation: isolate;
  padding: clamp(12px, 2vw, 24px);
}

.demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 0 -2% 16%;
  border-radius: 28%;
  background: var(--purple);
  rotate: -12deg;
}

.demo::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--coral);
  rotate: 20deg;
  right: 2%;
  top: 4%;
}

/* --- Demo: skan paragonu ------------------------------------------------- */

.demo--scan {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.receipt {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 26px;
  background: #fffdf8;
  color: #2b2b33;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.35);
  rotate: -3deg;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}

.receipt p {
  position: relative;
  padding: 0 4px;
  border-radius: 4px;
  transition: box-shadow 0.4s, background-color 0.4s;
}

.receipt__shop {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.receipt .center {
  text-align: center;
  margin-top: 6px;
}

.receipt__sep {
  margin: 8px 0;
  padding: 4px 0 !important;
  text-align: center;
  border-block: 1px dashed #c9c7c0;
}

.receipt__row {
  display: flex;
  justify-content: space-between;
}

.receipt__sum {
  margin-top: 6px;
  font-weight: 700;
  font-size: 14px;
}

.receipt [data-hit].is-hit[data-hit="shop"] {
  background: rgba(139, 224, 199, 0.35);
  box-shadow: 0 0 0 2px #2fae8b;
}

.receipt [data-hit].is-hit[data-hit="sum"] {
  background: rgba(243, 160, 70, 0.25);
  box-shadow: 0 0 0 2px #f0953a;
}

.receipt__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(242, 108, 99, 0.18) 80%, var(--coral) 98%, transparent);
  opacity: 0;
}

.demo--scan.is-scanning .receipt__scanline {
  animation: scan 1.8s cubic-bezier(0.45, 0, 0.55, 1) both;
}

@keyframes scan {
  0% { transform: translateY(-60px); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(var(--scan-to, 380px)); opacity: 0; }
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
}

.form-card label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.form-card output {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.form-card output .ms {
  color: #c9952b;
}

.form-card output.amount {
  color: var(--coral);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.form-card output.is-typing::after {
  content: "";
  width: 2px;
  height: 20px;
  background: var(--purple);
  animation: caret 0.8s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.form-card .btn {
  margin-top: 6px;
  padding: 0 14px;
  white-space: nowrap;
}

/* --- Demo: budżet -------------------------------------------------------- */

.demo--budget::before {
  background: var(--coral);
  rotate: 10deg;
}

.demo--budget::after {
  background: var(--navy-dark);
  left: 0;
  right: auto;
  top: auto;
  bottom: 6%;
  width: 36px;
  height: 36px;
}

.budget {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

.budget__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.budget__head > p:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
}

.budget__left {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.budget__left b {
  color: #2fae8b;
  font-weight: 600;
  transition: color 0.3s;
}

.budget__left.is-over b {
  color: var(--coral);
}

.budget__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.budget__item button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "ico name add" "ico bar bar";
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s;
}

.budget__item button:hover {
  background: var(--bg-light);
}

.budget__item .ico {
  grid-area: ico;
}

.budget__name {
  grid-area: name;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
}

.budget__name small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.budget__add {
  grid-area: add;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.budget__bar {
  grid-area: bar;
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: #e8f7f2;
  overflow: hidden;
}

.budget__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: #2fae8b;
  transition: width 0.6s var(--ease-out), background-color 0.3s;
}

.budget__item.is-over .budget__bar {
  background: #fde3e1;
}

.budget__item.is-over .budget__bar span {
  background: var(--coral);
}

.budget__item.is-over .budget__name small {
  color: var(--coral);
  font-weight: 600;
}

.budget__item.is-bump .budget__bar span {
  animation: bump 0.4s var(--ease-out);
}

@keyframes bump {
  40% { filter: brightness(1.25); }
}

/* --- Demo: Siri ---------------------------------------------------------- */

.demo--siri {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.demo--siri::before {
  background: var(--peach);
  rotate: -8deg;
}

.lock {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  min-height: 420px;
  padding: 26px 16px 16px;
  border: 5px solid #222;
  border-radius: 40px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, var(--gold) 0 30%, transparent 30.5%),
    radial-gradient(circle at 110% 55%, var(--coral) 0 26%, transparent 26.5%),
    radial-gradient(circle at -30% -10%, var(--indigo) 0 75%, transparent 75.5%),
    var(--navy);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.lock__time {
  margin-top: 96px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lock__date {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.85;
}

.lock__notif {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: left;
  font-size: 12.5px;
  line-height: 1.35;
  transform: translateY(-140%);
  transition: transform 0.6s var(--ease-out);
}

.lock__notif img {
  border-radius: 8px;
}

.lock__notif > div {
  flex: 1;
  min-width: 0;
}

.lock__notif p:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.lock__notif p:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.lock__notif.is-shown {
  transform: none;
}

.siri {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.siri__text {
  min-height: 3em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.siri__orb {
  position: relative;
  width: 56px;
  height: 56px;
  opacity: 0.4;
  transition: opacity 0.4s;
}

.demo--siri.is-listening .siri__orb {
  opacity: 1;
}

.siri__orb span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(2px);
}

.siri__orb span:nth-child(1) { background: radial-gradient(circle at 30% 30%, #ff6fd8, transparent 60%); }
.siri__orb span:nth-child(2) { background: radial-gradient(circle at 70% 40%, #3ec7ff, transparent 60%); }
.siri__orb span:nth-child(3) { background: radial-gradient(circle at 50% 75%, #8c6ff5, transparent 60%); }

.demo--siri.is-listening .siri__orb span {
  animation: orb 1.6s ease-in-out infinite;
}

.demo--siri.is-listening .siri__orb span:nth-child(2) { animation-delay: -0.5s; }
.demo--siri.is-listening .siri__orb span:nth-child(3) { animation-delay: -1s; }

@keyframes orb {
  0%, 100% { transform: scale(0.9) rotate(0); }
  50% { transform: scale(1.15) rotate(180deg); }
}

.pending {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: #ece8ef;
  box-shadow: var(--shadow);
  transition: background-color 0.5s;
}

.pending.is-approved {
  background: var(--white);
}

.pending__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pending__name {
  flex: 1;
  min-width: 0;
}

.pending__name b {
  display: block;
  font-weight: 500;
  color: var(--navy);
}

.pending__name small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.pending__row em {
  font-style: normal;
  font-weight: 600;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.pending__state {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.pending.is-approved .btn {
  background: #2fae8b;
  box-shadow: none;
  pointer-events: none;
}

/* --- Demo: kalendarz zaplanowanych -------------------------------------- */

.demo--calendar::before {
  background: var(--navy-dark);
  rotate: 8deg;
}

.demo--calendar::after {
  background: var(--peach);
}

.cal {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cal__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.cal__head p:first-child {
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
  text-transform: capitalize;
}

.cal__head .muted {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cal__week,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.cal__week {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cal__grid button,
.cal__grid span {
  display: grid;
  place-items: center;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-light);
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.cal__grid span.is-empty {
  background: transparent;
}

.cal__grid .is-today {
  box-shadow: inset 0 0 0 2px var(--purple);
  font-weight: 600;
}

.cal__grid button {
  position: relative;
  cursor: pointer;
  background: var(--c);
  color: var(--navy);
  font-weight: 600;
  transition: transform 0.2s var(--ease-out);
}

.cal__grid button:hover,
.cal__grid button[aria-pressed="true"] {
  transform: scale(1.12);
}

.cal__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.cal__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  transition: background-color 0.3s;
}

.cal__list li.is-active {
  background: var(--bg-light);
}

.cal__list .ico {
  width: 36px;
  height: 36px;
}

.cal__list .ms {
  font-size: 18px;
}

.cal__list b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.cal__list small {
  color: var(--muted);
  font-size: 12px;
}

.cal__list em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--coral);
}

/* ---------------------------------------------------------------------------
   Karuzela kart — fioletowy blok jak koło z hero
--------------------------------------------------------------------------- */

.cards-section {
  position: relative;
  overflow: hidden;
  margin: 0 clamp(8px, 2vw, 24px);
  padding: clamp(72px, 9vw, 110px) 0;
  border-radius: clamp(32px, 5vw, 64px);
  background: var(--purple);
  color: var(--white);
  isolation: isolate;
}

.cards-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 400px;
  right: -120px;
  top: -140px;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  background: linear-gradient(160deg, var(--coral), #f48f7f);
  opacity: 0.9;
}

.cards-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34px;
  height: 34px;
  left: 6%;
  top: 14%;
  border-radius: 8px 3px 8px 3px;
  background: #f7b787;
  rotate: 16deg;
}

.cards-section h2 {
  color: var(--white);
}

.cards-section__copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cards-section__copy p {
  max-width: 52ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.cards {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  padding: 20px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -4px;
}

.cards::-webkit-scrollbar {
  display: none;
}

.cards.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.cards.is-dragging * {
  pointer-events: none;
}

/* Kolory słupków w kartach w palecie strony */
.mini {
  --indigo: var(--navy);
  --violet: var(--purple);
  --mint: #8fd6c2;

  flex: none;
  width: 270px;
  min-height: 300px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  scroll-snap-align: center;
  user-select: none;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease-out);
}

.mini:nth-child(odd) {
  transform: rotate(-2deg);
}

.mini:nth-child(even) {
  transform: rotate(2deg) translateY(14px);
}

.mini:hover {
  transform: none;
}

.mini h3 {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.mini__value {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.mini__value small {
  font-size: 14px;
}

.mini__foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.wbars,
.vbars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin-top: 24px;
}

.wbars span,
.vbars span {
  flex: 1;
  height: calc(var(--h) * 100%);
  min-height: 14px;
  border-radius: 10px;
  background: var(--c);
}

.vbars {
  height: 170px;
}

.vbars span {
  border-radius: 14px;
}

.wdays {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.wdays span {
  flex: 1;
  text-align: center;
}

.donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  margin: 16px auto 18px;
}

.donut i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 38%, var(--coral) 0 62%, var(--indigo) 0 83%, var(--mint) 0);
  -webkit-mask: radial-gradient(circle, #0000 52%, #000 53%);
  mask: radial-gradient(circle, #0000 52%, #000 53%);
}

.donut span {
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 12px;
}

.legend li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--c);
}

.heat {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.heat span {
  aspect-ratio: 1;
  border-radius: 7px;
  background: color-mix(in srgb, var(--purple) calc(var(--v) * 100%), var(--bg));
}

.month-stats {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.month-stats p {
  display: grid;
}

.month-stats small {
  font-size: 13px;
  color: var(--muted);
}

.month-stats b {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.month-stats b.neg { color: var(--coral); }
.month-stats b.pos { color: #2fae8b; }

.mini--invest svg {
  width: 100%;
  height: 170px;
  margin-top: 18px;
}

/* ---------------------------------------------------------------------------
   Majątek + cele
--------------------------------------------------------------------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter) 40px;
}

.duo__item {
  position: relative;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 40px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.duo__item h2 {
  font-size: clamp(26px, 2.8vw, 34px);
}

.duo__item > p {
  margin-top: 14px;
  color: #4d4a5c;
  max-width: 44ch;
}

.wealth-chart {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--bg-light);
}

.wealth-chart svg {
  width: 100%;
  height: 150px;
  overflow: visible;
}

.wealth-chart__line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 2s var(--ease-out);
}

.wealth-chart__dot {
  fill: var(--coral);
  stroke: var(--white);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.4s 1.8s;
}

.is-seen .wealth-chart__line {
  stroke-dashoffset: 0;
}

.is-seen .wealth-chart__dot {
  opacity: 1;
}

.wealth-legend {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.wealth-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  font-size: 15px;
}

.wealth-legend li + li {
  border-top: 1px solid var(--bg);
}

.wealth-legend .ms {
  color: var(--purple);
}

.wealth-legend b {
  font-weight: 500;
}

.wealth-legend em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.goal {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--bg-light);
}

.goal label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.goal output {
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.goal input[type="range"] {
  grid-column: 1 / -1;
}

.goal__name {
  grid-template-columns: 1fr !important;
}

.goal input[type="text"] {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--coral) var(--fill, 50%), #ecdcd5 0);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--coral) var(--fill, 50%), #ecdcd5 0);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px var(--purple), 0 6px 12px rgba(69, 60, 132, 0.25);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px var(--purple), 0 6px 12px rgba(69, 60, 132, 0.25);
}

.goal__result {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid #ecdcd5;
  font-size: 16px;
}

.goal__result b {
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}

.jar {
  position: relative;
  flex: none;
  width: 54px;
  height: 70px;
  border-radius: 12px 12px 18px 18px;
  background: var(--white);
  overflow: hidden;
  box-shadow: inset 0 0 0 3px var(--purple);
}

.jar::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -2px;
  height: 8px;
  border-radius: 4px;
  background: var(--purple);
  z-index: 1;
}

.jar span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--jar, 40%);
  background: linear-gradient(#ff9a8d, var(--coral));
  transition: height 0.5s var(--ease-out);
}

/* ---------------------------------------------------------------------------
   Pozostałe funkcje
--------------------------------------------------------------------------- */

.more {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 10vw, 120px);
}

.more__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.more__list li {
  display: flex;
  gap: 16px;
}

.more__list h3 {
  color: var(--navy);
}

.more__list p {
  margin-top: 6px;
  font-size: 15px;
  color: #5d5a6b;
}

.more__list a {
  color: var(--coral-dark);
  font-weight: 600;
}

.more__list .badge--outline {
  transform: none;
  font-size: 11px;
}

/* ---------------------------------------------------------------------------
   Prywatność — granatowy blok z blobami
--------------------------------------------------------------------------- */

.privacy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 clamp(8px, 2vw, 24px);
  padding: clamp(80px, 10vw, 130px) var(--gutter);
  border-radius: clamp(32px, 5vw, 64px);
  background: linear-gradient(140deg, var(--navy), var(--navy-dark));
  color: var(--white);
}

.privacy::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 500px;
  left: -200px;
  bottom: -260px;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  background: var(--purple);
}

.privacy::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 200px;
  height: 190px;
  right: -60px;
  top: -50px;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  background: linear-gradient(160deg, var(--coral), #f48f7f);
}

.privacy h2,
.privacy h3 {
  color: var(--white);
}

.privacy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.privacy__points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.privacy__points li {
  display: flex;
  gap: 16px;
}

.privacy__points .ms {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(246, 184, 166, 0.16);
  color: var(--peach);
}

.privacy__points h3 {
  font-weight: 500;
}

.privacy__points p {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
}

.cipher {
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.cipher__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.cipher__tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.cipher__tabs button[aria-selected="true"] {
  background: linear-gradient(to right, #ff7b6d, var(--coral-light));
  color: var(--white);
}

.cipher__body {
  margin: 0;
  min-height: 250px;
  padding: 24px 20px 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--peach);
}

.cipher__body .k {
  color: rgba(255, 255, 255, 0.5);
}

.cipher__body .s {
  color: var(--peach);
}

.cipher__body.is-server .s {
  color: #a9b0d8;
}

.cipher__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.cipher__foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.cipher__foot.is-server::before {
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
}

/* ---------------------------------------------------------------------------
   FAQ
--------------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px -22px rgba(69, 60, 132, 0.4);
}

.faq summary {
  position: relative;
  padding: 20px 64px 20px 24px;
  font-weight: 500;
  font-size: 17px;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 10px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 10px no-repeat,
    linear-gradient(to right, #ff7b6d, var(--coral-light));
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 22px;
  max-width: 62ch;
  font-size: 15px;
  color: #4d4a5c;
}

/* ---------------------------------------------------------------------------
   CTA + stopka — jak dół projektu strony
--------------------------------------------------------------------------- */

.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 10vw, 130px) var(--gutter) clamp(100px, 12vw, 160px);
  text-align: center;
}

.final__shapes .squircle--purple {
  width: 360px;
  height: 340px;
  left: -110px;
  top: 20%;
  rotate: -14deg;
  z-index: -1;
}

.final__shapes .squircle--coral {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -110px;
  rotate: 12deg;
  z-index: -1;
}

.final__logo {
  width: 110px;
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 18px 24px rgba(69, 60, 132, 0.3));
  animation: float 6s ease-in-out infinite;
}

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

.final p {
  max-width: 44ch;
  margin: 16px auto 0;
  color: #4d4a5c;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  font-size: 14px;
  color: var(--ink);
}

.footer .nav__brand {
  font-size: 18px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer nav a {
  color: #555;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   Responsywność
--------------------------------------------------------------------------- */

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

  .float-chip {
    left: -4%;
  }
}

@media (max-width: 900px) {
  .hero__inner,
  .feature,
  .privacy__inner,
  .duo,
  .faq {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  .hero {
    padding-top: 96px;
  }

  /* Na wąskim ekranie koło zakrywa całą treść, a jego łuk przechodzi pod telefonem. */
  .hero__circle {
    right: -500px;
    bottom: -200px;
  }

  .hero__device {
    margin-top: 16px;
  }

  .hero__scroll {
    display: none;
  }
}

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

  .nav__links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .hero__cta > * {
    flex: 1 1 100%;
  }

  .hero__device {
    height: 520px;
  }

  .phone {
    left: 0;
    width: 220px;
  }

  .history {
    width: 210px;
    top: 90px;
  }

  .float-chip {
    left: 2%;
    top: auto;
    bottom: 0;
    font-size: 13px;
  }

  .demo--scan,
  .demo--siri {
    grid-template-columns: 1fr;
  }

  .lock {
    aspect-ratio: auto;
  }

  .more__list {
    grid-template-columns: 1fr;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
