/* Hochzeitsgalerie landing + checkout (mobile-first) */

.ep-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.ep-lp .ep-hero,
.ep-lp .ep-section,
.ep-checkout__main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 0 2.25rem;
}

body.ep-checkout,
body.ep-success {
  background: var(--bg, #f0f2f5);
}

.ep-funnel-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e6eb);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.ep-funnel-card > h1 {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 560px) {
  .ep-funnel-card {
    padding: 1.75rem 1.75rem 1.85rem;
  }
}

[data-theme="dark"] body.ep-checkout,
[data-theme="dark"] body.ep-success {
  background: #0b1220;
}

[data-theme="dark"] .ep-funnel-card {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.ep-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5a6570);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.ep-hero h1,
.ep-section h2 {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.ep-hero__sub,
.ep-lead,
.ep-checkout__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text, #2c3540);
  margin: 0;
}

.ep-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 1.5rem;
}

.ep-hero__visual {
  margin: 1.25rem 0 1rem;
}

/* CSS mock: gallery + QR card (no unfinished placeholder text) */
.ep-mock {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1.4fr 0.85fr;
  align-items: stretch;
}
@media (max-width: 560px) {
  .ep-mock { grid-template-columns: 1fr; }
}
.ep-mock__gallery,
.ep-mock__card {
  border-radius: 12px;
  border: 1px solid var(--border, #d9dee5);
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.ep-mock__gallery {
  padding: 0.75rem;
  min-height: 180px;
}
.ep-mock__bar {
  display: block;
  height: 10px;
  width: 42%;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 0.75rem;
}
.ep-mock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.ep-mock__grid span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(145deg, #dbe4ee, #c5d0dc);
}
.ep-mock__grid span:nth-child(2) { background: linear-gradient(145deg, #cfd9e6, #b7c4d4); }
.ep-mock__grid span:nth-child(3) { background: linear-gradient(145deg, #e8edf4, #d0dae6); }
.ep-mock__grid span:nth-child(5) { background: linear-gradient(145deg, #bcc8d6, #a8b6c8); }
.ep-mock__card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
}
.ep-mock__qr {
  width: 88px;
  height: 88px;
  border-radius: 6px;
  background:
    linear-gradient(#0f172a 0 0) 0 0 / 28% 28%,
    linear-gradient(#0f172a 0 0) 100% 0 / 28% 28%,
    linear-gradient(#0f172a 0 0) 0 100% / 28% 28%,
    repeating-linear-gradient(90deg, #0f172a 0 4px, transparent 4px 8px) center / 54% 54%,
    repeating-linear-gradient(#0f172a 0 4px, transparent 4px 8px) center / 54% 54%,
    #fff;
  background-repeat: no-repeat;
  border: 1px solid #cbd5e1;
}
.ep-mock__lines {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: 70%;
}
.ep-mock__lines i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
}
.ep-mock__lines i:nth-child(2) { width: 78%; }
.ep-mock__lines i:nth-child(3) { width: 55%; }

.ep-trust {
  font-size: 0.9rem;
  color: var(--muted, #4a5560);
  margin: 0;
  line-height: 1.45;
}

.ep-section--alt {
  background: var(--surface-muted, #f7f8fa);
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc(50vw - 360px));
  padding-right: max(1rem, calc(50vw - 360px));
  border-block: 1px solid var(--border, #e8ebef);
}

.ep-steps {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.ep-steps li { margin-bottom: 0.85rem; }

.ep-pricing {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .ep-pricing { grid-template-columns: 1fr 1fr; }
}

.ep-card {
  border: 1px solid var(--border, #d9dee5);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
}
.ep-card h3 { margin: 0; font-size: 1.2rem; }
.ep-card--popular {
  border-color: #2f6fed;
  box-shadow: 0 0 0 1px #2f6fed;
}
.ep-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f0ff;
  color: #1e4bb8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin: 0 0 0.5rem;
  width: fit-content;
}
.ep-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.35rem 0 0.75rem;
}
.ep-card__price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted, #5a6570);
}
.ep-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.5;
  flex: 1;
}
.ep-card .btn { align-self: stretch; text-align: center; }

.ep-note { font-size: 0.95rem; line-height: 1.5; }
.ep-note--muted { color: var(--muted, #5a6570); }

.ep-privacy {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .ep-privacy { grid-template-columns: repeat(3, 1fr); }
}
.ep-privacy h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.ep-privacy p { margin: 0; line-height: 1.5; color: var(--text, #2c3540); }

.ep-faq details {
  border-bottom: 1px solid var(--border, #e2e6eb);
  padding: 0.75rem 0;
}
.ep-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq p { margin: 0.5rem 0 0; line-height: 1.5; }

.ep-cta-final { text-align: left; }

.ep-checkout__form fieldset {
  border: 1px solid var(--border, #e2e6eb);
  border-radius: 10px;
  padding: 1rem;
  margin: 0 0 1rem;
}
.ep-checkout__form label {
  display: block;
  margin: 0.5rem 0;
}
.ep-checkout__form input[type="text"],
.ep-checkout__form input[type="email"],
.ep-checkout__form input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, #d0d7de);
}
.ep-checkout__legal {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ep-checkout__legal input { margin-top: 0.2rem; flex-shrink: 0; }
.ep-checkout__error {
  background: #fde8e8;
  color: #8a1f1f;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.ep-checkout__pay {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

/* —— Funnel stepper / summary / payment / success —— */

.ep-funnel-steps {
  margin: 0 0 1.25rem;
}

.ep-funnel-steps__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ep-funnel-steps__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2, #f3f5f7);
  color: var(--muted, #5a6570);
  font-size: 0.82rem;
  font-weight: 600;
}

.ep-funnel-steps__item.is-active {
  background: var(--primary, #1a73e8);
  color: #fff;
}

.ep-funnel-steps__item.is-done {
  background: rgba(26, 115, 232, 0.12);
  color: var(--primary, #1a73e8);
}

.ep-funnel-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ep-funnel-steps__item.is-active .ep-funnel-steps__num {
  background: rgba(255, 255, 255, 0.25);
}

.ep-funnel-steps__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-funnel-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
}

.ep-funnel-summary__chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e6eb);
  background: var(--surface, #fff);
  font-size: 0.95rem;
}

.ep-funnel-summary__chip strong {
  font-weight: 700;
}

.ep-funnel-summary__change {
  font-size: 0.9rem;
  font-weight: 600;
}

.ep-funnel-tier-pick {
  display: grid;
  gap: 0.75rem;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ep-funnel-tier-pick legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 0;
}

.ep-funnel-tier {
  display: block;
  margin: 0 !important;
  cursor: pointer;
  border: 1px solid var(--border, #e2e6eb);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ep-funnel-tier:has(input:checked),
.ep-funnel-tier.is-selected {
  border-color: var(--primary, #1a73e8);
  box-shadow: 0 0 0 1px var(--primary, #1a73e8);
}

.ep-funnel-tier input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ep-funnel-tier__body {
  display: grid;
  gap: 0.2rem;
}

.ep-funnel-tier__price {
  font-weight: 700;
  font-size: 1.05rem;
}

.ep-funnel-tier__desc {
  font-size: 0.9rem;
  color: var(--muted, #5a6570);
  line-height: 1.4;
}

.ep-funnel-actions {
  margin: 1.25rem 0 0.5rem;
}

.ep-funnel-actions .btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 480px) {
  .ep-funnel-actions .btn {
    width: auto;
    min-width: 12rem;
  }
}

.ep-funnel-back {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.ep-funnel-logged-in {
  margin: 0 0 1rem;
}

.ep-checkout .checkout-payment-methods {
  margin: 0 0 1rem;
}

.ep-checkout .checkout-payment-method {
  margin-bottom: 0.65rem;
}

/* Success page */
.ep-success__main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
}

.ep-success__main .ep-funnel-card > h1 {
  margin-bottom: 0.85rem;
}

.ep-success__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5a6570);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.ep-success__main h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.2rem);
  line-height: 1.18;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.ep-success__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  color: var(--text, #2c3540);
}

.ep-success__steps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: ep-setup;
}

.ep-success__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e2e6eb);
  border-radius: 12px;
  background: var(--surface-2, #f7f8fa);
  counter-increment: ep-setup;
}

.ep-success__steps li::before {
  content: counter(ep-setup);
  grid-row: 1 / span 2;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(26, 115, 232, 0.12);
  color: var(--primary, #1a73e8);
  margin-top: 0.1rem;
}

.ep-success__steps strong {
  font-size: 1rem;
}

.ep-success__steps span {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--muted, #5a6570);
  line-height: 1.4;
}

.ep-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ep-success__actions .btn {
  text-align: center;
}

[data-theme="dark"] .ep-funnel-steps__item {
  background: #1e293b;
  color: #94a3b8;
}

[data-theme="dark"] .ep-funnel-steps__item.is-active {
  background: var(--primary, #3b82f6);
  color: #fff;
}

[data-theme="dark"] .ep-funnel-summary__chip,
[data-theme="dark"] .ep-funnel-tier,
[data-theme="dark"] .ep-success__steps li {
  background: #111827;
  border-color: #334155;
}

[data-theme="dark"] .ep-funnel-tier:has(input:checked),
[data-theme="dark"] .ep-funnel-tier.is-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa;
}

.ep-app .ep-stat {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (min-width: 560px) {
  .ep-app .ep-stat { grid-template-columns: repeat(3, 1fr); }
}
.ep-app .ep-stat__item {
  border: 1px solid var(--border, #e2e6eb);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.ep-app .ep-stat__item strong {
  display: block;
  font-size: 1.15rem;
}

/* Dark theme */
[data-theme="dark"] .ep-mock__gallery,
[data-theme="dark"] .ep-mock__card,
[data-theme="dark"] .ep-card {
  background: #111827;
  border-color: #334155;
}
[data-theme="dark"] .ep-section--alt {
  background: #0b1220;
  border-color: #1f2937;
}
[data-theme="dark"] .ep-mock__bar,
[data-theme="dark"] .ep-mock__lines i {
  background: #475569;
}
[data-theme="dark"] .ep-mock__grid span {
  background: linear-gradient(145deg, #334155, #1e293b);
}
[data-theme="dark"] .ep-card--popular {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa;
}
