/* ScanPeek homepage. Visitor pages and admin use their original styles. */
body.scanpeek-home {
  margin: 0;
  background: #f2ede5;
  color: #22324d;
  font-family: "Inter", Arial, sans-serif;
}
body.scanpeek-home .page-shell {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body.scanpeek-home > .footer {
  display: none;
}
.sp-index {
  --sp-ink: #22324d;
  --sp-muted: #53606b;
  --sp-accent: #126d92;
  --sp-accent-strong: #22324d;
  --sp-paper: #f2ede5;
  --sp-line: #d8cfc3;
  width: 100%;
  overflow: clip;
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sp-index,
.sp-index *,
.sp-index *::before,
.sp-index *::after {
  box-sizing: border-box;
}
.sp-index a {
  color: inherit;
  text-decoration: none;
}
.sp-index a:focus-visible {
  outline: 3px solid var(--sp-accent);
  outline-offset: 5px;
}
.sp-container {
  width: min(1310px, calc(100% - 104px));
  margin-inline: auto;
}

/* Hero focuses on the product; QR demos live in the example section below. */
.sp-hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(60px, 7vw, 100px) 24px;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 253, 248, 0.84),
      transparent 72%
    ),
    var(--sp-paper);
}
.sp-hero-inner {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sp-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  margin: 0;
  font:
    750 clamp(60px, 7.5vw, 112px)/1.1 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -0.085em;
  color: #22324d;
  animation: sp-wordmark-enter 0.92s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.sp-wordmark-symbol {
  display: block;
  width: 1.2em;
  height: 1.2em;
  flex: none;
  margin-right: 0.24em;
}
.sp-wordmark span:last-child {
  color: #38bdf8;
}
.sp-hero-statement {
  max-width: 1040px;
  margin: clamp(32px, 6vh, 68px) 0 0;
  font:
    450 clamp(20px, 2.25vw, 34px)/1.55 "Inter",
    Arial,
    sans-serif;
  letter-spacing: -0.04em;
  color: var(--sp-ink);
  text-wrap: balance;
  animation: sp-copy-enter 0.85s ease 0.65s both;
}
.sp-hero-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: 56px;
  margin-top: clamp(32px, 5vh, 52px);
  padding: 16px 26px;
  border: 1px solid var(--sp-accent-strong);
  border-radius: 999px;
  background: var(--sp-accent-strong);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  animation: sp-copy-enter 0.85s ease 0.95s both;
}
.sp-hero-cta span {
  font-size: 20px;
  line-height: 1;
}
.sp-hero-cta:hover {
  background: #304769;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34, 50, 77, 0.16);
}
.sp-hero-cta:focus-visible {
  outline: 3px solid var(--sp-accent);
  outline-offset: 5px;
}
#jak-dziala { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  html:has(body.scanpeek-home) { scroll-behavior: smooth; }
}
@keyframes sp-wordmark-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -60px, 0);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
@keyframes sp-copy-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Existing explanatory sections remain accessible by scrolling. */
.sp-details {
  background: #faf7f2;
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}
.sp-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-top: 100px;
  padding-bottom: 110px;
}
.sp-overline {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--sp-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sp-details-heading {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.sp-details h2 {
  margin: 0;
  font: 650 clamp(34px, 3.8vw, 54px)/1.18 "Manrope", Arial, sans-serif;
  letter-spacing: -0.065em;
  color: var(--sp-ink);
  text-wrap: balance;
}
.sp-details-heading > p {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--sp-muted);
  font-size: 15px;
  line-height: 1.8;
}
.sp-details-qrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}
.sp-details-qr-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
  padding: 28px 18px 24px;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  text-align: center;
  color: var(--sp-ink);
  transition: border-color 180ms ease, transform 180ms ease;
}
.sp-details-qr-card:hover {
  border-color: var(--sp-accent);
  transform: translateY(-3px);
}
.sp-details-qr-card:focus-visible {
  outline: 3px solid var(--sp-accent);
  outline-offset: 4px;
}
.sp-details-qr-image {
  display: block;
  width: min(100%, 270px);
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.sp-details-qr-image img { display: block; width: 100%; height: auto; }
.sp-details-qr-card strong {
  margin-top: 18px;
  font: 650 16px/1.45 "Manrope", Arial, sans-serif;
}
.sp-details-qr-card > span:last-child {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sp-muted);
}
@media (max-width: 900px) {
  .sp-details-qrs { gap: 14px; }
  .sp-details-qr-card { padding: 20px 12px; }
  .sp-details-qr-card strong { font-size: 14px; }
}
@media (max-width: 650px) {
  .sp-details-grid { padding-top: 68px; padding-bottom: 75px; }
  .sp-details-qrs { grid-template-columns: 1fr; gap: 14px; max-width: 370px; margin-inline: auto; }
  .sp-details-qr-card { padding: 18px; }
  .sp-details-qr-image { width: min(100%, 240px); }
}
.sp-footer {
  padding: 80px 0;
}
.sp-footer-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 38px;
}
.sp-footer-title {
  display: block;
  color: var(--sp-muted);
  font-size: 15px;
}
.sp-footer-mail {
  display: inline-block;
  margin-top: 15px;
  font:
    700 clamp(28px, 3.4vw, 43px)/1.2 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -0.055em;
}
.sp-footer-mail:hover {
  color: var(--sp-accent);
}
.sp-footer-mail span {
  margin-left: 20px;
  color: var(--sp-accent);
  font-size: 0.8em;
}
.sp-justvision {
  font-size: 20px;
  color: var(--sp-muted) !important;
  font-weight: 700;
  white-space: nowrap;
}
.sp-justvision:hover {
  color: var(--sp-accent) !important;
}

/* Product explanation, deliberately structured without decorative feature cards. */
.sp-about {
  padding: clamp(75px, 8vw, 120px) 0 clamp(74px, 8vw, 115px);
  background: #faf7f2;
  border-top: 1px solid var(--sp-line);
}
.sp-about-lead {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}
.sp-about-lead h2 {
  max-width: 1200px;
  margin: 0;
  font:
    700 clamp(36px, 4vw, 59px)/1.15 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -0.065em;
  color: var(--sp-ink);
}
.sp-about-lead p {
  max-width: 775px;
  margin: 26px auto 0;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.85;
  color: var(--sp-muted);
  text-align: center;
}
.sp-about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 95px);
  margin-top: clamp(65px, 8vw, 115px);
}
.sp-about-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 2px solid var(--sp-accent);
  padding-top: 25px;
}
.sp-about-column h3 {
  margin: 0;
  color: var(--sp-ink);
  font:
    700 clamp(25px, 2.5vw, 35px)/1.25 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -0.055em;
}
.sp-column-intro {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  min-height: 0;
  margin: 20px 0 28px;
  color: var(--sp-muted);
  font-size: 15px;
  line-height: 1.7;
}
.sp-simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--sp-line);
}
.sp-simple-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 19px 0 21px;
  border-bottom: 1px solid var(--sp-line);
}
.sp-simple-list li span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sp-ink);
}
.sp-simple-list li small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sp-muted);
}
.sp-about-note {
  margin: 41px 0 0;
  max-width: 900px;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.65;
}
@media (max-width: 790px) {
  .sp-about-columns {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 70px;
  }
  .sp-column-intro {
    min-height: 0;
  }
  .sp-about-lead h2 {
    font-size: clamp(33px, 6vw, 48px);
  }
}
@media (max-width: 480px) {
  .sp-about {
    padding: 68px 0 76px;
  }
  .sp-about-lead h2 {
    font-size: 34px;
  }
  .sp-about-lead p {
    margin-top: 18px;
    font-size: 15px;
  }
  .sp-about-columns {
    margin-top: 59px;
    gap: 42px;
  }
  .sp-about-column h3 {
    font-size: 29px;
  }
  .sp-about-note {
    margin-top: 33px;
  }
}

@media (max-width: 900px) {
  .sp-container {
    width: min(100% - 48px, 720px);
  }
  .sp-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 75px;
    padding-bottom: 85px;
  }
}
@media (max-width: 600px) {
  .sp-container {
    width: calc(100% - 36px);
  }
  .sp-hero {
    padding: 46px 17px 72px;
  }
  .sp-wordmark {
    font-size: clamp(33px, 9.7vw, 60px);
  }
  .sp-wordmark-symbol {
    margin-right: 0.16em;
  }
  .sp-hero-statement {
    margin-top: 33px;
    font-size: clamp(17px, 4.6vw, 22px);
    line-height: 1.55;
  }
  .sp-scroll-cue {
    bottom: 17px;
  }
  .sp-details h2 {
    font-size: 37px;
  }
  .sp-footer-row {
    display: block;
  }
  .sp-justvision {
    display: inline-block;
    margin-top: 38px;
  }
}
@media (max-height: 740px) and (min-width: 601px) {
  .sp-hero {
    padding-top: 30px;
    padding-bottom: 58px;
  }
  .sp-wordmark {
    font-size: clamp(54px, 6.5vw, 88px);
  }
  .sp-hero-statement {
    margin-top: 20px;
    font-size: clamp(19px, 2vw, 28px);
  }
  .sp-scroll-cue {
    bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-index *,
  .sp-index *::before,
  .sp-index *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
    filter: none !important;
  }
}

/* Reversible section reveals, initialized only after JS has registered observers. */
.sp-scroll-ready body.scanpeek-home .sp-scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 25px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sp-reveal-delay, 0ms);
}
.sp-scroll-ready body.scanpeek-home .sp-scroll-reveal[data-sp-direction="up"] {
  transform: translate3d(0, -25px, 0);
}
.sp-scroll-ready body.scanpeek-home .sp-scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .sp-scroll-ready body.scanpeek-home .sp-scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .sp-about-lead h2 {
    white-space: normal;
  }
}

/* Contact form: two visible fields, styled with Iceland's warm palette. */
.sp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.sp-contact-intro h2 {
  margin: 17px 0 18px;
  max-width: 490px;
  color: var(--sp-ink);
  font:
    700 clamp(32px, 3.4vw, 49px)/1.14 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -0.065em;
}
.sp-contact-intro p {
  margin: 0;
  max-width: 420px;
  color: var(--sp-muted);
  font-size: 15px;
  line-height: 1.75;
}
.sp-contact-overline {
  color: var(--sp-accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.sp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sp-contact-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sp-contact-field label {
  color: var(--sp-ink);
  font-size: 13px;
  font-weight: 650;
}
.sp-contact-field input,
.sp-contact-field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbbfb0;
  border-radius: 6px;
  background: #fffdfa;
  color: var(--sp-ink);
  font:
    400 15px/1.5 "Inter",
    Arial,
    sans-serif;
  resize: vertical;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.sp-contact-field input::placeholder,
.sp-contact-field textarea::placeholder {
  color: #898077;
}
.sp-contact-field input:focus,
.sp-contact-field textarea:focus {
  border-color: var(--sp-accent-strong);
  outline: 2px solid rgba(21, 127, 168, 0.2);
  outline-offset: 1px;
}
.sp-contact-privacy {
  margin: -2px 0 0;
  color: var(--sp-muted);
  font-size: 12px;
  line-height: 1.6;
}
.sp-contact-submit {
  align-self: flex-start;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--sp-accent-strong);
  color: #fff;
  font:
    700 13px/1.2 "Inter",
    Arial,
    sans-serif;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.sp-contact-submit:hover {
  background: #304769;
  transform: translateY(-2px);
}
.sp-contact-submit:focus-visible {
  outline: 3px solid var(--sp-accent);
  outline-offset: 3px;
}
.sp-contact-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.sp-contact-status[hidden] {
  display: none;
}
.sp-contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.sp-contact-success {
  color: #356547;
}
.sp-contact-error {
  color: #a03328;
}
.sp-contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sp-contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid var(--sp-line);
}
.sp-contact-bottom > span {
  color: var(--sp-muted);
  font-size: 12px;
}
@media (max-width: 790px) {
  .sp-contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sp-contact-intro h2 {
    font-size: clamp(32px, 6vw, 43px);
  }
  .sp-contact-bottom {
    margin-top: 55px;
  }
}
@media (max-width: 480px) {
  .sp-contact-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .sp-contact-bottom .sp-justvision {
    margin: 0;
  }
}
