/* Generator linku (index.html): start, 3 kroki, panel i podgląd w ramce telefonu. */

/* ---------------------------------------------------------------- */
/* Pasek górny                                                        */
/* ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-product {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-product::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-btn .i {
  width: 18px;
  height: 18px;
}

/* Pasek kroków jak w referencji: ciemna pigułka aktywnego kroku i kółka pozostałych. */
.steps {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
}

.steps .pill-dark {
  min-height: 38px;
  padding: 0 16px 0 13px;
  font-size: 14px;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-3);
}

.step-dot .i {
  width: 17px;
  height: 17px;
}

.step-dot.done {
  border-color: #ffd0bb;
  background: var(--orange-soft);
  color: var(--orange);
}

.step-dot:disabled {
  cursor: default;
}

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

/* ---------------------------------------------------------------- */
/* Start                                                              */
/* ---------------------------------------------------------------- */

.start-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-start .title {
  font-size: clamp(33px, 9.6vw, 54px);
}

.s-start .sub {
  margin-top: 0;
}

.hero-art {
  position: relative;
  min-height: 150px;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 14% 50%;
}

.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -20px rgb(28 27 26 / 0.45);
}

.float b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.float b .i {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.float-good {
  top: 22%;
  right: 0;
}

.float-bad {
  top: calc(22% + 52px);
  right: 0;
}

.float-bad b {
  background: var(--dark);
}

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

.facts li {
  padding: 12px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.facts strong {
  display: block;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.facts span {
  display: block;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
}

/* ---------------------------------------------------------------- */
/* Formularze kroków                                                  */
/* ---------------------------------------------------------------- */

.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.form-card > .hint {
  margin-top: -8px;
}

.mini-preview {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px 12px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
}

.mini-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.mini-text {
  min-width: 0;
}

.mini-text small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.mini-text strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-stars {
  display: flex;
  gap: 1px;
  color: var(--orange);
}

.mini-stars .i {
  width: 15px;
  height: 15px;
  fill: var(--orange);
  stroke-width: 1.8;
}

.howto {
  padding: 0;
  border-radius: 18px;
  background: var(--surface-2);
  font-size: 14px;
}

.howto summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.howto summary::after {
  content: "+";
  color: var(--ink-3);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.howto[open] summary::after {
  content: "–";
}

.howto ol {
  margin: 0;
  padding: 0 16px 16px 34px;
  color: var(--ink-2);
  line-height: 1.45;
}

.howto li + li {
  margin-top: 6px;
}

.howto b {
  color: var(--ink);
  font-weight: 600;
}

.howto code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}

.option-text strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.option-text span {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.35;
}

.option-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.option-check .i {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.option:has(input:checked) {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgb(255 106 43 / 0.1);
}

.option:has(input:checked) .option-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.option:has(input:checked) .option-check {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.site-field {
  padding: 4px 2px 0;
}

.options .note {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.6);
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- */
/* E-mail i kod                                                       */
/* ---------------------------------------------------------------- */

.code-card {
  gap: 14px;
}

.code-art {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.code-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.code-ask,
.code-enter {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check .box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.check .box .i {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.check:has(input:checked) .box {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.check:has(input:focus-visible) .box {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.code-sent {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  text-align: center;
}

.code-sent b {
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.otp {
  position: relative;
  display: block;
}

.otp input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  opacity: 0.01;
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.otp-boxes i {
  display: grid;
  place-items: center;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  transition: border-color 0.15s, background 0.15s;
}

.otp-boxes i.filled {
  background: var(--surface);
}

.otp:focus-within .otp-boxes i.next {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgb(255 106 43 / 0.12);
}

.otp.is-err .otp-boxes i {
  border-color: var(--err);
}

.code-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: -6px 0 0;
}

.code-actions .text-link:disabled {
  color: var(--ink-3);
  text-decoration: none;
  cursor: default;
}

.dev-code {
  margin: 0;
  padding: 10px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
}

.dev-code b {
  color: var(--ink);
  letter-spacing: 0.12em;
}

.turnstile:empty {
  display: none;
}

/* ---------------------------------------------------------------- */
/* Panel                                                              */
/* ---------------------------------------------------------------- */

.s-panel {
  gap: 12px;
}

.panel-head .title {
  margin-top: 2px;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 80% at 100% 0%, rgb(255 106 43 / 0.42) 0%, rgb(255 106 43 / 0) 60%),
    var(--dark);
  color: #fff;
}

.link-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgb(255 255 255 / 0.62);
  font-size: 13.5px;
  font-weight: 500;
}

.link-label .i {
  width: 16px;
  height: 16px;
}

.link-label span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-url {
  color: #fff;
  font-size: clamp(22px, 6.6vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
  word-break: break-all;
}

.link-actions {
  display: flex;
  gap: 8px;
}

.pill-orange,
.pill-line {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-orange {
  border: 0;
  background: var(--orange);
  color: #fff;
}

.pill-line {
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.pill-orange .i,
.pill-line .i {
  width: 19px;
  height: 19px;
}

.round-line {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 50%;
  color: #fff;
}

.card-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}

.card-head strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.card-head div span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
}

.card-icon .i {
  width: 20px;
  height: 20px;
}

.msg-card,
.stats-card,
.qr-card {
  padding: 16px;
}

/* Kod QR: podgląd i trzy formaty do pobrania. */
.qr-body {
  display: grid;
  grid-template-columns: minmax(0, 148px) 1fr;
  gap: 12px;
  margin-top: 14px;
}

.qr-preview {
  align-self: start;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.qr-preview svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.qr-btn {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.qr-btn:active {
  transform: scale(0.98);
}

.qr-btn-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.qr-btn-icon .i {
  width: 18px;
  height: 18px;
}

.qr-btn > span:last-child {
  min-width: 0;
}

.qr-btn strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
}

.qr-btn small {
  display: block;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.qr-btn-main {
  border-color: #ffd0bb;
  background: var(--orange-soft);
}

.qr-btn-main .qr-btn-icon {
  background: var(--orange);
  color: #fff;
}

@media (hover: hover) {
  .qr-btn:hover {
    border-color: var(--line-2);
  }

  .qr-btn-main:hover {
    border-color: var(--orange);
  }
}

.msg-text {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-2);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.msg-text:focus {
  border-color: var(--orange);
  background: var(--surface);
}

.stats-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 6px;
}

.stats-nums p {
  margin: 0;
}

.stats-nums strong {
  display: block;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stats-nums span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

/* Słupki dzienne jak „Weekly Stats” w referencji: pomarańczowe dobre, czarne słabe. */
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  height: 132px;
  margin-top: 12px;
  padding-top: 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px);
}

.bar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.bar-day i {
  display: block;
  width: 12px;
  border-radius: 999px;
}

.bar-day .good {
  background: var(--orange);
}

.bar-day .bad {
  background: var(--dark);
}

.bar-day .none {
  height: 12px;
  background: var(--line);
}

.bar-day span {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.bars-legend {
  display: flex;
  gap: 16px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

.bars-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}

.lg-good::before {
  background: var(--orange);
}

.lg-bad::before {
  background: var(--dark);
}

.upsell {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border-radius: var(--r-card);
  background:
    linear-gradient(100deg, rgb(20 18 17 / 0.92) 0%, rgb(20 18 17 / 0.72) 55%, rgb(20 18 17 / 0.2) 100%),
    url("/img/tlo-ciemne.webp") right center / cover no-repeat,
    #141211;
  color: #fff;
}

.upsell-logo {
  display: block;
  width: auto;
  height: 15px;
  margin-bottom: 18px;
  opacity: 0.92;
}

.upsell .kicker {
  color: rgb(255 255 255 / 0.55);
}

.upsell h2 {
  margin: 8px 0 8px;
  text-wrap: balance;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.upsell p {
  margin: 0 0 18px;
  color: rgb(255 255 255 / 0.68);
  font-size: 15px;
}

.panel-foot {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.made-by {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  align-items: start;
  margin-top: 6px;
  padding: 18px 2px 6px;
  border-top: 1px solid var(--line);
}

.made-by .dh-mark {
  grid-row: span 2;
  width: 36px;
  height: 25px;
  margin-top: 3px;
  color: var(--ink);
}

.made-by p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.made-by b {
  color: var(--ink);
  font-weight: 600;
}

.made-by .text-link {
  justify-self: start;
  padding-left: 0;
}

/* ---------------------------------------------------------------- */
/* Podgląd w ramce telefonu                                           */
/* ---------------------------------------------------------------- */

/* Tło od Codexa: kostki ze znaku Design House na brzegach, pusty środek pod telefon.
   Wersja ciemna leży obok (/img/tlo-ciemne.webp). Tło to osobna warstwa
   z zapasem na brzegach, żeby paralaksa (app.js) nie odsłaniała krawędzi. */
.stage {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  background: #f1f0ee;
  color: var(--ink);
}

.stage-bg {
  position: absolute;
  inset: -36px;
  background: url("/img/tlo-jasne.webp") center / cover no-repeat;
  transform: translate3d(var(--bg-x, 0px), var(--bg-y, 0px), 0);
  will-change: transform;
  pointer-events: none;
}

.stage > :not(.stage-bg) {
  position: relative;
  z-index: 1;
}

.stage-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.stage-chip .i {
  width: 18px;
  height: 18px;
}

.stage-close {
  display: none;
}

.phone-wrap {
  --s: 0.78;
  position: relative;
  translate: var(--phone-x, 0px) var(--phone-y, 0px);
  width: calc(412px * var(--s));
  height: calc(866px * var(--s));
  flex: none;
}

.phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 412px;
  height: 866px;
  padding: 11px;
  border-radius: 62px;
  background: #0b0b0b;
  box-shadow:
    0 0 0 2px #2c2a28,
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 50px 90px -34px rgb(28 27 26 / 0.55);
  transform: scale(var(--s));
  transform-origin: 0 0;
}

.phone-screen {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 51px;
  background: var(--bg);
}

.phone-screen iframe {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
}

.phone-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 34px 0 46px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 122px;
  height: 35px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.status-icons {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.status-icons b {
  width: 4px;
  border-radius: 2px;
  background: var(--ink);
}

.status-icons b:nth-child(1) {
  height: 6px;
}

.status-icons b:nth-child(2) {
  height: 9px;
}

.status-icons b:nth-child(3) {
  width: 22px;
  height: 11px;
  margin-left: 5px;
  border-radius: 3px;
}

.stage-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(12px);
}

.stage-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.stage-tabs button[aria-selected="true"] {
  background: var(--dark);
  color: #fff;
}

/* Telefon: podgląd jako pełny ekran po kliknięciu „oka”. */
@media (max-width: 1023px) {
  .stage.open {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    gap: 14px;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    animation: rise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .stage-close {
    display: grid;
  }

  .stage-tabs button {
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------- */
/* Desktop: formularz po lewej, telefon z podglądem po prawej.        */
/* ---------------------------------------------------------------- */

@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(460px, 600px) 1fr;
    min-height: 100dvh;
  }

  .flow {
    min-width: 0;
  }

  .flow .screen {
    max-width: 600px;
    padding: 32px clamp(32px, 4vw, 56px);
  }

  .stage {
    position: sticky;
    top: 12px;
    display: flex;
    height: calc(100dvh - 24px);
    margin: 12px 12px 12px 0;
    border-radius: 36px;
  }


  .preview-btn {
    display: none;
  }

  .s-start .title {
    font-size: clamp(44px, 4.2vw, 60px);
  }

  /* Obok jest pełny podgląd, więc kroki nie muszą rozciągać kart na całą wysokość. */
  .s-step > .top {
    margin-bottom: auto;
  }

  .s-step > .bottom {
    margin-bottom: auto;
  }

  .s-step .grow {
    flex-grow: 0;
  }

  .code-art {
    flex: none;
    height: 200px;
  }

  .mini-preview {
    display: none;
  }

  .howto,
  .options .note {
    margin-top: 4px;
  }
}

/* Niskie telefony (Safari z paskami): chowamy to, co najmniej potrzebne. */
@media (max-height: 640px) and (max-width: 1023px) {
  .facts,
  .mini-preview,
  .s-start .sub {
    display: none;
  }

  .option {
    padding: 12px 14px;
  }

  .s-step .sub {
    display: none;
  }

  .screen {
    gap: 12px;
  }
}

/* ---------------------------------------------------------------- */
/* Komunikat                                                          */
/* ---------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.5);
  transform: translateX(-50%);
  animation: toast-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

.toast .i {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
