/* Design system shared with ZakladyMH_index.html */
:root {
  --mint: #cbebe7;
  --mint-soft: #eef7f5;
  --mint-panel: #ddf1ed;
  --teal: #498c84;
  --teal-dark: #2f6a63;
  --peach: #fed7aa;
  --peach-hover: #eac69c;
  --ink: #27433f;
  --text: #4a515d;
  --line: #d4d4d4;
  --button-text: #1c2321;
  --radius: 6px;
  --font-body: Manrope, system-ui, sans-serif;
  --font-heading: "Plus Jakarta Sans", Manrope, system-ui, sans-serif;
}

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

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

body {
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1, h2 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 7.5vw, 3rem); }
h2 { margin-bottom: 0.6em; font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { margin-bottom: 0.5em; font-size: 1.15rem; }
p { text-wrap: pretty; }
p + p { margin-top: 0.9em; }
strong { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-right: max(20px, env(safe-area-inset-right));
  padding-left: max(20px, env(safe-area-inset-left));
}

section { padding: 64px 0; }
.alt { background: var(--mint-soft); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 34px;
  border-radius: var(--radius);
  background: var(--peach);
  color: var(--button-text);
  font: 700 1.05rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:active { background: var(--peach-hover); transform: scale(0.98); }
.btn, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cta { margin-top: 32px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Header */
.site-header { padding: 18px 0; border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.logo b { color: var(--teal); }

.eyebrow {
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Photos */
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo--square { aspect-ratio: 1; }
.photo--wide { margin-top: 40px; aspect-ratio: 16 / 10; object-position: center 65%; }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero__grid { display: grid; grid-template-areas: "intro" "image" "action"; }
.hero__intro { grid-area: intro; }
.hero__action { grid-area: action; }
.hero__claim { margin: 14px 0 6px; color: var(--teal-dark); font-size: 1.15rem; font-weight: 700; }

.hero__lead {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  border: 1px solid rgb(73 140 132 / 0.4);
  border-radius: var(--radius);
}

.hero .cta { margin-top: 24px; }
.hero__note { max-width: 28em; margin-top: 16px; font-size: 0.9rem; }
.hero__image { grid-area: image; margin-top: 16px; aspect-ratio: 4 / 3; }

/* Teal band with countdown */
.band { padding: 56px 0; background: var(--teal); }
.band__title { margin-bottom: 24px; color: var(--peach); text-align: center; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 440px; margin: 0 auto; }

.countdown__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 4px 12px;
  border-radius: var(--radius);
  background: var(--peach);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.countdown__value { font-size: 2.2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* Pain points */
.reason { padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--teal); }
.reason:last-child { border-bottom: 1px solid var(--teal); }

.reason h2 {
  margin-bottom: 0.5em;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.reason p { color: #3d444f; font-size: 1.05rem; }

/* Photo with bordered text cards */
.feature { display: grid; gap: 32px; margin-top: 32px; }
.cards { display: grid; gap: 28px; align-content: center; }
.card { padding-top: 24px; border-top: 1px solid var(--teal); }
.card + .card { margin-top: 0; } /* cancel the paragraph spacing inside grids */

/* How it works */
.prose { margin-top: 32px; }

.steps {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px 22px 30px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: var(--peach);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.panel {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--mint-panel);
  color: #2b313b;
}

/* Testimonials */
.quotes { display: grid; gap: 32px 64px; margin-top: 32px; }
.quotes .card { color: #3d444f; font-size: 1rem; }
.testimonials__name { margin-bottom: 8px; color: var(--teal-dark); font-weight: 700; }

/* One screenshot at a time */
.slider {
  display: flex;
  align-items: flex-start;
  max-width: 806px;
  margin: 56px auto 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  transition: height 0.3s;
}

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

.quote {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.quote .zoom { min-width: 0; max-width: 100%; }

.quote img {
  max-width: min(100%, 762px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.car-nav__count { min-width: 3.5em; font-size: 0.95rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

.car-nav button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--peach);
  color: var(--button-text);
  font: 700 1.4rem/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}

.car-nav button:active { background: var(--peach-hover); }
.car-nav button:disabled { opacity: 0.4; cursor: default; }

/* Enlarged review screenshot */
.zoom { display: block; border: 0; background: none; cursor: zoom-in; }

/* About */
.about { display: grid; gap: 28px; align-items: center; }

.about__photo img { width: 100%; }

/* Footer */
.site-footer { padding: 56px 0; background: var(--teal); color: #fff; font-size: 1rem; font-weight: 500; }
.site-footer p + p { margin-top: 0.3em; }
.site-footer a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--peach); }
.foot { display: grid; gap: 18px; }

/* Sign-up dialog */
.is-locked { overflow: hidden; }

.signup {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  border: 0;
  background: rgb(0 0 0 / 0.6);
}

.signup[open] { display: flex; padding: 16px; }

.signup__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding-top: 36px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.signup__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* Match the SmartEmailing form to the page; the id outranks the form's own styles */
#signup form.se-webform { width: 100% !important; border: 0 !important; background: transparent; box-shadow: none !important; font-family: var(--font-body); font-size: 16px; }
#signup form.se-webform * { line-height: 1.4 !important; }
#signup form.se-webform .se-header h3 { padding-top: 0; color: var(--ink); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }
#signup form.se-webform .se-body ul { margin: 0; padding: 0 24px; }
#signup form.se-webform .se-body ul li label { color: var(--ink); font-size: 0.9rem; }

#signup form.se-webform .se-body ul li input[type=text] {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px; /* smaller text makes iOS zoom in on focus */
  font-weight: 500;
}

#signup form.se-webform .se-body ul li input[type=text]:focus { outline: 3px solid var(--teal); outline-offset: 1px; }

#signup form.se-webform .se-submit button {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--peach);
  color: var(--button-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
}

#signup form.se-webform .se-submit button:hover { background: var(--peach-hover); }

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  background: rgb(0 0 0 / 0.9);
}

.lightbox[open] { display: grid; place-items: center; }

/* script.js caps the size at twice the file dimensions */
.lightbox__image { width: 90vw; height: 80vh; height: 80dvh; object-fit: contain; touch-action: pan-y pinch-zoom; }

.lightbox__button {
  position: absolute;
  padding: 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__button:focus-visible { outline-color: #fff; }
.lightbox__close { top: env(safe-area-inset-top); right: 0; }
.lightbox__prev { bottom: env(safe-area-inset-bottom); left: 0; }
.lightbox__next { right: 0; bottom: env(safe-area-inset-bottom); }

/* Sticky sign-up button */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  visibility: hidden;
  padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.25s, visibility 0.25s;
}

.sticky-cta.is-visible { visibility: visible; transform: none; }
.sticky-cta .btn { display: block; padding-block: 16px; }

/* Phones: full-width buttons and swipeable testimonials */
@media (max-width: 759px) {
  .cta .btn { display: block; }

  /* Narrower side gutter gives wide screenshots more room */
  .slider { margin-inline: -16px; }

  .quotes {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-inline: -20px;
    padding: 0 20px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }

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

  .quotes .card {
    flex: 0 0 86%;
    padding: 22px 20px;
    border-top-width: 3px;
    border-radius: var(--radius);
    background: #fff;
    scroll-snap-align: start;
  }
}

/* Gentle appearance on scroll, added by script only */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-shown { opacity: 1; transform: none; }

@media (hover: hover) {
  .btn:hover { background: var(--peach-hover); transform: translateY(-1px); }
  .car-nav button:enabled:hover { background: var(--peach-hover); }
  .site-footer a:hover { color: var(--peach); }
}

@media (min-width: 760px) {
  section { padding: 112px 0; }
  .hero { padding: 32px 0 64px; }
  .band { padding: 72px 0; }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: ". image" "intro image" "action image" ". image";
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 56px;
  }

  .hero__image { margin-top: 0; aspect-ratio: 4 / 5; object-position: 45% center; }
  .sticky-cta { display: none; }
  .feature { grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .foot { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .btn:active { transform: none; }
}
