:root {
  --blue: #245de8;
  --blue-dark: #174bc8;
  --cyan: #1399b7;
  --ink: #111423;
  --muted: #596174;
  --line: #e8ebf2;
  --soft: #f7f9fc;
  --gold: #c99b3d;
  --rose: #c74778;
  --green: #278860;
  --shadow: 0 16px 38px rgba(17, 20, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
}

.screen {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 42px 24px 56px;
  text-align: center;
}

.home-screen {
  width: min(100%, 620px);
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  margin: 0 auto 34px;
  font-size: 16px;
  line-height: 1.65;
}

.lead strong,
.blue {
  color: var(--cyan);
  font-weight: 800;
}

.home-title {
  margin: 38px auto 46px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.devotional-cover {
  position: relative;
  width: min(288px, 84vw);
  aspect-ratio: 1;
  margin: 0 auto 48px;
  overflow: hidden;
  border: 1px solid #bddbed;
  background:
    radial-gradient(circle at 20% 30%, rgba(44, 185, 214, 0.35), transparent 18%),
    radial-gradient(circle at 82% 40%, rgba(255, 255, 255, 0.96), transparent 22%),
    linear-gradient(145deg, #d8f4ff, #a9daf3 48%, #edf9ff);
  box-shadow: 0 18px 42px rgba(21, 121, 168, 0.17);
}

.home-product-image {
  display: block;
  width: min(320px, 84vw);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 48px;
  border: 1px solid #d8e2ef;
  box-shadow: 0 20px 48px rgba(21, 61, 107, 0.16);
}

.cover-ornament {
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(201, 155, 61, 0.38);
}

.cover-title {
  position: absolute;
  top: 32px;
  left: 22px;
  right: 22px;
  color: #2b4a64;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cover-subtitle {
  position: absolute;
  top: 118px;
  left: 82px;
  color: #537c91;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  transform: rotate(-8deg);
}

.mary-figure {
  position: absolute;
  right: 30px;
  bottom: 34px;
  width: 86px;
  height: 150px;
}

.mary-figure::before {
  content: "";
  position: absolute;
  inset: 0 10px;
  border-radius: 48% 48% 26% 26%;
  background: linear-gradient(90deg, #fff 0 38%, #89cbe8 40% 100%);
  border: 1px solid #6da9c5;
}

.mary-figure::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 25px;
  width: 30px;
  height: 36px;
  border-radius: 50%;
  background: #e8c7a4;
  box-shadow: 0 -9px 0 #8d6a42;
}

.monstrance {
  position: absolute;
  left: 28px;
  bottom: 34px;
  width: 58px;
  height: 88px;
  border-bottom: 16px solid var(--gold);
}

.monstrance::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 42px;
  height: 42px;
  border: 8px solid var(--gold);
  border-radius: 50%;
  background: #fff5c8;
  box-shadow: 0 42px 0 -18px var(--gold);
}

.cover-pill {
  position: absolute;
  right: 18px;
  bottom: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #219ec3;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.progress-wrap {
  margin: 0 auto 50px;
}

.mini-mary {
  width: 42px;
  height: 42px;
  margin: 0 auto 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ead9a8;
  background: linear-gradient(145deg, #fff9df, #e8fbff);
  font-size: 24px;
}

.progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4f6fa;
}

.bar {
  width: var(--progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #2f74ee);
  transition: width 0.35s ease;
}

h1,
h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.45;
}

p {
  line-height: 1.55;
}

.copy {
  margin: 0 auto 30px;
  color: var(--ink);
  font-size: 16px;
}

.field {
  position: relative;
  margin: 34px 0 16px;
}

.field .icon {
  position: absolute;
  left: 18px;
  top: 20px;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  background: #fafbfe;
  box-shadow: 0 11px 24px rgba(16, 24, 40, 0.06);
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input,
select {
  height: 64px;
  padding: 0 18px;
}

.field input {
  padding-left: 50px;
}

textarea {
  min-height: 116px;
  resize: vertical;
  padding: 18px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 93, 232, 0.1);
}

.primary {
  position: relative;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-bottom: 7px solid var(--blue-dark);
  border-radius: 10px;
  background: linear-gradient(180deg, #2464ee, #1856dd);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(24, 86, 221, 0.16);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 36px rgba(24, 86, 221, 0.22);
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hint {
  margin: 26px auto 0;
  color: var(--ink);
  font-size: 15px;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 48px;
}

.option {
  min-height: 84px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid #dde1e8;
  border-bottom: 4px solid #e4e6ea;
  border-radius: 9px;
  background: #fbfcff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 26px rgba(17, 20, 35, 0.05);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.option:hover {
  transform: translateY(-1px);
  border-color: #bfd0fb;
  background: #fff;
}

.option-emoji {
  font-size: 32px;
  text-align: center;
}

.option-text {
  padding-right: 18px;
  font-size: 15px;
  line-height: 1.35;
}

.audio-card {
  display: grid;
  grid-template-columns: 42px 1fr 58px;
  align-items: center;
  gap: 14px;
  margin: 50px 0 46px;
  padding: 18px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  background:
    linear-gradient(#fbfcff, #fbfcff) padding-box,
    linear-gradient(135deg, rgba(36, 93, 232, 0.38), rgba(201, 155, 61, 0.32)) border-box;
  box-shadow: var(--shadow);
}

.play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f74ee, var(--blue-dark));
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(36, 93, 232, 0.22);
}

.audio-main {
  min-width: 0;
}

.audio-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 13px;
}

.audio-topline strong {
  color: var(--ink);
}

.audio-topline span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.audio-progress {
  width: 100%;
  height: 9px;
  display: block;
  overflow: hidden;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e8edf6;
  cursor: pointer;
}

.audio-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #54b6d1);
}

.wave {
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    rgba(36, 93, 232, 0.18) 0 4px,
    transparent 4px 10px
  );
  mask-image: radial-gradient(ellipse at center, #000 0, #000 58%, transparent 59%);
  opacity: 0.85;
}

.priest-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(17, 20, 35, 0.16);
}

.generation {
  margin: 20px auto 40px;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  font-size: 42px;
  font-weight: 800;
  background:
    radial-gradient(circle, #fff 57%, transparent 58%),
    conic-gradient(var(--blue) var(--pct), #edf1f8 0);
  transition: background 0.2s ease;
}

.generation-panel {
  margin: 22px auto 36px;
}

.generation-track {
  width: min(100%, 360px);
  height: 12px;
  margin: -18px auto 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef8;
}

.generation-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #54b6d1);
  transition: width 0.25s ease;
}

.generation-status {
  min-height: 30px;
  margin: 0 auto 12px;
  color: var(--ink);
  font-weight: 800;
}

.generation-confirmation {
  width: min(100%, 420px);
  min-height: 0;
  margin: 0 auto;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--green);
  background: #effaf5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.generation-confirmation.show {
  padding: 12px 14px;
  border-color: #bce7d1;
  opacity: 1;
  transform: translateY(0);
}

.offer {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 34px 20px 58px;
}

.offer .screen {
  padding-bottom: 24px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.product-card,
.testimonial,
.guarantee,
.package-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card {
  min-height: 180px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.product-icon {
  font-size: 42px;
}

.package-list {
  padding: 18px;
  text-align: left;
}

.package-list li {
  margin: 10px 0;
}

.cta-row {
  width: min(100%, 540px);
  margin: 24px auto 34px;
}

.price {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--ink);
}

.price del {
  color: #8e94a3;
}

.section-title {
  margin-top: 36px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.testimonial {
  padding: 18px;
  text-align: left;
}

.stars {
  color: var(--gold);
  font-size: 18px;
}

.guarantee {
  padding: 26px;
  margin-top: 22px;
  text-align: center;
}

.checkout {
  min-height: 100vh;
  background: #f5f6fa;
  padding: 22px;
}

.checkout-grid {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
}

.checkout-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-main {
  padding: 22px;
}

.timer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #111423;
  color: #fff;
  text-align: center;
}

.timer-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
}

.timer strong {
  display: block;
  font-size: 24px;
}

.timer span {
  font-size: 12px;
  color: #c9cfdd;
}

.summary {
  padding: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.checkout h2 {
  margin-top: 24px;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  text-align: left;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.payment-tabs button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.payment-tabs .active {
  border-color: var(--blue);
  background: rgba(36, 93, 232, 0.08);
  color: var(--blue);
}

.payment-note {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: #f1f8f5;
  color: #1f6f4f;
  font-size: 14px;
  text-align: left;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 20, 35, 0.18);
  font-size: 14px;
  animation: fade 0.4s ease;
}

.final-offer {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 800px) {
  .screen {
    padding: 34px 18px 42px;
  }

  .product-strip,
  .testimonials,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout {
    padding: 12px;
  }

  .checkout-grid {
    gap: 14px;
  }

  .summary {
    order: -1;
  }
}

@media (max-width: 560px) {
  h1,
  h2 {
    font-size: 18px;
  }

  .home-title {
    font-size: 16px;
  }

  .option {
    grid-template-columns: 48px 1fr;
    min-height: 76px;
  }

  .form-grid,
  .payment-tabs {
    grid-template-columns: 1fr;
  }

  .audio-card {
    grid-template-columns: 38px 1fr 50px;
    padding: 16px;
  }

  .play {
    width: 38px;
    height: 38px;
  }

  .priest-avatar {
    width: 50px;
    height: 50px;
  }

  .audio-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
