/* Consistent vertical rhythm between sections, matching the homepage
   (every section sits 0.8rem below the previous one instead of the
   colored blocks butting together at 0px). */
.site-main > section {
  margin-top: 0.8rem;
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  min-height: min(760px, calc(100svh - 96px));
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: 30px;
}

.product-hero.coral {
  background: var(--coral);
  color: #fff9f4;
}

.product-hero.dark {
  background: var(--ink);
  color: #fff9f4;
}

.product-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5.6vw, 5.8rem);
}

.product-hero-kicker {
  margin: 0 0 clamp(3rem, 8vh, 6rem);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-hero-copy .display-title {
  font-size: clamp(3.8rem, 5.2vw, 6.6rem);
}

.product-hero-bottom {
  max-width: 590px;
  margin-top: 3rem;
}

.product-hero-bottom p {
  margin: 0 0 1.5rem;
  color: inherit;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  opacity: 0.9;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.product-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
}

.product-hero.coral .product-hero-visual {
  background: #ffd2c8;
}

.product-hero.dark .product-hero-visual {
  background: var(--coral);
}

.benefit-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0.8rem 0;
  background: var(--paper-deep);
  border-radius: 20px;
}

/* The track is transparent on desktop so its children act as direct grid
   cells; on mobile it becomes the moving rail of the auto-scroll marquee. */
.benefit-track { display: contents; }
.benefit-dup { display: none; }

.benefit-track > div {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.benefit-track > div:nth-child(4) {
  border-right: 0;
}

.benefit-ribbon strong,
.benefit-ribbon span {
  display: block;
}

.benefit-ribbon strong {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.benefit-ribbon span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 5vw, 5rem);
}

.story-section.tinted {
  background: var(--paper-deep);
  border-radius: 30px;
}

.story-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.story-intro .section-title {
  font-size: clamp(2.45rem, 3.2vw, 4.4rem);
}

.story-intro .section-copy {
  max-width: 470px;
  margin-top: 1.5rem;
}

.story-stack {
  border-top: 1px solid var(--line);
}

.story-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.story-row > span {
  color: var(--coral-deep);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 900;
}

.story-row h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.story-row p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  min-height: 740px;
  padding: clamp(3rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--ink);
  border-radius: 30px;
  color: #fff9f4;
}

.feature-stage-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.feature-stage-copy .section-title {
  font-size: clamp(2.45rem, 3.2vw, 4.4rem);
}

.feature-stage-copy .section-copy {
  max-width: 510px;
  color: #c8bfb7;
}

.feature-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.feature-points div {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.86rem;
}

.feature-points div::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--lime);
  border-radius: 50%;
  color: var(--ink);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.feature-stage-art {
  position: absolute;
  top: 8%;
  right: -8%;
  width: min(61%, 820px);
  min-height: 620px;
  background: #fffaf5;
  border-radius: 30px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.32);
  transform: rotate(-3deg);
}

.pricing-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
}

.pricing-number {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  background: var(--coral);
  color: #fff9f4;
}

.pricing-number strong {
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.78;
  text-transform: uppercase;
}

.pricing-number span {
  max-width: 460px;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  background: var(--paper-deep);
}

.pricing-detail .section-copy {
  max-width: 620px;
}

.pricing-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.pricing-list span {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.faq-simple {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 5vw, 5rem);
}

.faq-simple-list {
  border-top: 1px solid var(--line);
}

.faq-simple details {
  border-bottom: 1px solid var(--line);
}

.faq-simple summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 800;
  list-style: none;
}

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

.faq-simple summary::after {
  content: "+";
  font-size: 1.5rem;
}

.faq-simple details[open] summary::after {
  content: "−";
}

.faq-simple details p {
  max-width: 680px;
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.product-final {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  padding: clamp(4rem, 10vw, 9rem) clamp(1.3rem, 6vw, 6rem);
  background: var(--lime);
  border-radius: 30px;
}

.product-final-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 210px;
}

@media (max-width: 1050px) {
  .story-section,
  .feature-stage,
  .pricing-band,
  .faq-simple {
    grid-template-columns: 1fr;
  }

  .story-intro {
    position: static;
  }

  .feature-stage {
    min-height: 1050px;
  }

  .feature-stage-art {
    top: auto;
    right: -5%;
    bottom: 4%;
    width: 90%;
  }

  .product-final {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px), (max-width: 1050px) and (orientation: portrait) {
  .product-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .product-hero-visual {
    min-height: 590px;
  }

  .product-hero-copy .display-title {
    font-size: clamp(4rem, 9vw, 6.5rem);
  }
}

@media (max-width: 720px) {
  .product-hero {
    border-radius: 22px;
  }

  .product-hero-copy {
    min-height: 610px;
    padding: 1.5rem;
  }

  .product-hero-copy .display-title {
    font-size: clamp(2.75rem, 12vw, 4.9rem);
  }

  .product-hero-actions .button {
    width: 100%;
  }

  .story-section,
  .faq-simple {
    padding-inline: 0.85rem;
  }

  .story-row {
    grid-template-columns: 42px 1fr;
  }

  .feature-stage {
    min-height: 950px;
    padding-inline: 1.2rem;
  }

  .feature-stage-art {
    right: -38%;
    width: 132%;
    transform: rotate(-2deg) scale(0.82);
    transform-origin: right bottom;
  }

  .pricing-list {
    grid-template-columns: 1fr;
  }

  .product-final-actions {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .product-hero {
    position: relative;
    display: block;
    min-height: 800px;
    overflow: hidden;
  }

  .product-hero-copy {
    min-height: 0;
    padding: 1.4rem 1.25rem;
  }

  .product-hero-kicker {
    margin-bottom: 1.6rem;
  }

  .product-hero-copy .display-title {
    max-width: 10ch;
    font-size: clamp(3.1rem, 14vw, 4.8rem);
    line-height: 0.84;
  }

  .product-hero-bottom {
    margin-top: 1.35rem;
  }

  .product-hero-bottom p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .product-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-hero-actions .button {
    width: auto;
    min-width: 0;
    padding-inline: 0.7rem;
  }

  .product-hero-visual {
    position: absolute;
    inset: auto 0 0;
    min-height: 375px;
  }

  .product-hero-visual .merchant-app-phone {
    width: min(58vw, 260px);
  }

  .benefit-ribbon {
    display: flex;
    padding: 0.55rem;
    overflow: hidden;
  }

  .benefit-track {
    display: flex;
    width: max-content;
    animation: benefit-marquee 16s linear infinite;
  }

  .benefit-dup { display: block; }

  .benefit-track > div {
    min-width: min(44vw, 190px);
    margin-right: 0.55rem;
    padding: 1rem;
    border: 0;
    background: var(--paper);
    border-radius: 14px;
    text-align: left;
  }

  .story-section,
  .faq-simple {
    gap: 2rem;
    padding: 4.5rem 1rem;
  }

  .story-stack {
    display: flex;
    gap: 0.75rem;
    margin-inline: -1rem;
    padding: 0 1rem 0.5rem;
    overflow-x: auto;
    border: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .story-stack::-webkit-scrollbar {
    display: none;
  }

  .story-row {
    display: block;
    min-width: min(82vw, 340px);
    min-height: 340px;
    padding: 1.3rem;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 20px;
    scroll-snap-align: center;
  }

  .story-row h3 {
    margin-top: 4.6rem;
    font-size: clamp(2.05rem, 9vw, 2.55rem);
    overflow-wrap: break-word;
  }

  .feature-stage {
    display: block;
    min-height: 0;
    padding: 2.2rem 1.25rem 3rem;
    border-radius: 22px;
  }

  .feature-stage-copy .section-title {
    max-width: 9ch;
    font-size: 3rem;
  }

  .feature-points {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .feature-points div {
    align-items: flex-start;
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .feature-stage-art {
    display: none;
  }

  .pricing-band {
    display: block;
    min-height: 0;
    border-radius: 22px;
  }

  .pricing-number,
  .pricing-detail {
    padding: 2.6rem 1.25rem;
  }

  .pricing-number strong {
    font-size: clamp(5rem, 24vw, 7.5rem);
  }

  .pricing-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.8rem;
  }

  .faq-simple summary {
    min-height: 64px;
    padding: 1.1rem 0;
    font-size: 1.05rem;
  }

  .product-final {
    gap: 2rem;
    padding: 4rem 1.25rem;
    border-radius: 22px;
  }

  html[lang="de"] .feature-stage-copy .section-title {
    max-width: none;
    font-size: clamp(1.84rem, 7.8vw, 2.6rem);
  }
}

@media (max-width: 390px) {
  .product-hero {
    min-height: 760px;
  }

  .product-hero-copy .display-title {
    font-size: 3rem;
  }
}

/* Auto-scroll marquee for the benefit ribbon on mobile. The track holds two
   identical sets of cells, so translating it by -50% loops seamlessly. */
@keyframes benefit-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-track { animation: none; }
}
