/* Mamá en Oración: página de ventas mobile-only */

@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #13213C;
  --navy-deep: #0D172B;
  --paper: #FAF5EB;
  --linen: #F1E7D6;
  --ink: #13213C;
  --ink-soft: #3D475C;
  --gold: #D9B56E;          /* botão e acentos sobre azul */
  --gold-light: #E2BF7E;    /* texto dourado sobre azul */
  --gold-line: #B8893E;     /* linhas e ornamentos sobre creme */
  --gold-text: #7A5A1E;     /* texto dourado sobre creme */
  --on-navy: #F5EEDF;
  --on-navy-soft: #D6CFBF;
  --rule: rgba(19, 33, 60, 0.14);
  --rule-navy: rgba(226, 191, 126, 0.28);

  --serif: "Gloock", "Georgia", "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 24px;
  --section-y: 76px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #E3E3E1;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--navy); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Página: uma coluna mobile, centralizada no desktop ---------- */

.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

@media (min-width: 481px) {
  .page { box-shadow: 0 0 0 1px rgba(19, 33, 60, 0.06), 0 30px 80px -20px rgba(19, 33, 60, 0.28); }
}

section {
  padding: var(--section-y) var(--gutter);
  text-align: center;
}

.field-navy  { background: var(--navy); color: var(--on-navy); }
.field-paper { background: var(--paper); }
.field-linen { background: var(--linen); }

/* ---------- Tipografia ---------- */

.display,
.title,
h3 {
  font-family: var(--serif);
  font-weight: 400; /* Gloock é uma face display de peso único, desenhada já em bold */
  text-wrap: balance;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(36px, 10.4vw, 44px);
  line-height: 1.08;
  margin-top: 28px;
}

.display em {
  font-style: normal;
  color: var(--gold-light);
}

.title {
  font-size: clamp(31px, 8.8vw, 37px);
  line-height: 1.12;
  margin: 0 auto;
  max-width: 15ch;
}

.label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 16px;
}
.label::before,
.label::after {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.field-navy .label { color: var(--gold-light); }

.body-copy {
  margin-top: 22px;
  text-align: left;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* o "$" da Gloock parece um S; o cifrão usa a sans */
.cur {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82em;
  margin-left: 0.04em;
}

.sprig {
  display: block;
  width: 64px;
  height: 24px;
  margin: 0 auto;
  color: var(--gold-line);
}
.field-navy .sprig { color: var(--gold); }

/* ---------- Botões ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: #E4C27F; }
}

.btn-xl { min-height: 68px; font-size: 18px; }

/* ---------- Fotos ---------- */

.photo,
.arch {
  margin: 36px auto 0;
}

.photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(19, 33, 60, 0.45);
}

.photo-product { width: 88%; }
.photo-product img { box-shadow: 0 22px 44px -26px rgba(19, 33, 60, 0.55); }

/* Moldura em arco: janela de capela */
.arch {
  width: 82%;
  padding: 8px;
  border: 1px solid var(--gold-line);
  border-radius: 50% 50% 18px 18px / 38% 38% 18px 18px;
}
.field-navy .arch { border-color: rgba(226, 191, 126, 0.5); }

.arch img {
  width: 100%;
  border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
}

/* ---------- 1. Hero ---------- */

.hero { padding-top: 26px; padding-bottom: 64px; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.brand .sprig { width: 52px; height: 20px; }

.hero-photo { width: 76%; margin-top: 30px; }

.hero-turn {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  color: var(--gold-light);
  text-wrap: balance;
}

.lede {
  margin-top: 14px;
  color: var(--on-navy-soft);
  text-wrap: pretty;
}

.price-block {
  margin: 34px auto 22px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-navy);
}

.price-label,
.price-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-navy-soft);
}
.price-label { letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; font-size: 13px; }

.price {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.05;
  color: var(--on-navy);
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}

/* ---------- 2. Coração ---------- */

.litany {
  margin-top: 34px;
  text-align: center;
}

.litany p {
  padding: 20px 6px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.litany p:last-child { border-bottom: 1px solid var(--rule); }

.turn {
  margin: 40px calc(var(--gutter) * -1) calc(var(--section-y) * -1);
  padding: 52px var(--gutter) 60px;
  background: var(--navy);
  color: var(--on-navy);
}

.turn p {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  text-wrap: balance;
}

/* ---------- 3. Material ---------- */

.trio {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.trio li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.trio h3 { font-size: 24px; line-height: 1.2; }
.trio p { margin-top: 6px; color: var(--ink-soft); font-size: 17px; }

/* ---------- 4. Temas ---------- */

.theme-list {
  margin: 34px auto 0;
  max-width: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.theme-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-content: flex-start;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
  color: var(--on-navy);
}

/* losango dourado antes de cada tema */
.theme-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- 5. Como funciona ---------- */

.steps {
  margin-top: 40px;
  text-align: left;
  position: relative;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  position: relative;
  padding-bottom: 30px;
}
.steps li:last-child { padding-bottom: 0; }

/* fio que liga os passos */
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25.5px;
  top: 54px;
  bottom: 4px;
  width: 1px;
  background: var(--gold-line);
  opacity: 0.45;
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-text);
}

.steps h3 { font-size: 24px; line-height: 1.2; padding-top: 10px; }
.steps p { margin-top: 6px; color: var(--ink-soft); font-size: 17px; }

/* ---------- 6. Por dentro: a página de exemplo ---------- */

.leaf {
  position: relative;
  margin-top: 28px;
  padding: 40px 26px 38px;
  background: #FFFDF8;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(19, 33, 60, 0.06),
    0 24px 48px -28px rgba(19, 33, 60, 0.45);
}

/* borda azul inferior, como nas páginas do ebook */
.leaf::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  border-radius: 0 0 6px 6px;
  background: var(--navy);
}

.leaf-day {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.leaf-title {
  margin-top: 10px;
  font-size: 29px;
  line-height: 1.15;
}

.leaf-text {
  margin-top: 16px;
  text-align: left;
  font-size: 17px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.leaf-rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 24px auto;
  background: var(--gold-line);
}

.leaf-prayer {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- 7. O que recebes ---------- */

.checklist {
  margin-top: 30px;
  text-align: left;
}

.checklist li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.checklist li:last-child { border-bottom: 1px solid var(--rule); }

.tick {
  width: 30px;
  height: 30px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}

.checklist h3 { font-size: 22px; line-height: 1.25; }
.checklist p { margin-top: 4px; color: var(--ink-soft); font-size: 17px; }

/* ---------- 8. Bônus ---------- */

.bonus-list {
  margin-top: 34px;
  display: grid;
  gap: 26px;
}

.bonus {
  background: var(--linen);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 44px -30px rgba(19, 33, 60, 0.55);
}

.bonus img { width: 100%; }

.bonus-body { padding: 24px 22px 28px; }

.bonus-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bonus h3 {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.15;
}

.bonus-body p:last-child {
  margin-top: 10px;
  text-align: left;
  font-size: 17px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- 9. Idades ---------- */

.ages { margin-top: 28px; }

.ages p {
  padding: 18px 4px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.ages p:last-child { border-bottom: 1px solid var(--rule); }

.statement {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- 10. Oferta ---------- */

.offer {
  padding-top: 72px;
  padding-bottom: 72px;
  background:
    radial-gradient(120% 60% at 50% 34%, #1E3157 0%, rgba(30, 49, 87, 0) 70%),
    var(--navy);
}

.offer .title { max-width: 13ch; font-size: clamp(34px, 9.8vw, 41px); }

.offer-buy { scroll-margin-top: 30vh; }

.bundle {
  position: relative;
  margin: 36px auto 0;
  width: 68%;
}

.bundle-cover {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(226, 191, 126, 0.25);
}

.offer-bonuses {
  margin: 28px auto 0;
  text-align: left;
  border-top: 1px solid var(--rule-navy);
}

.offer-bonuses li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-navy);
}

.offer-bonuses img {
  width: 48px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.7);
}

.offer-bonus-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.offer-bonus-name {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--on-navy);
}

.offer-price {
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.offer-note {
  margin: 12px 0 26px;
  text-wrap: balance;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-navy-soft);
}

.offer-contents {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
  text-wrap: balance;
}

/* ---------- 11. FAQ ---------- */

.faq .label { margin-bottom: 26px; }

.faq-list {
  text-align: left;
  border-top: 1px solid var(--rule);
}

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  color: var(--gold-text);
  transition: transform 220ms var(--ease-out);
}
.faq details[open] .faq-icon { transform: rotate(45deg); }

.faq details p {
  padding: 0 44px 22px 0;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- 12. Fechamento ---------- */

.close { padding-top: 64px; }
.close .arch { margin-top: 0; margin-bottom: 36px; }
.close .title { max-width: 13ch; }
.close .btn { margin-top: 32px; }

.close-note {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-navy-soft);
}

/* ---------- Rodapé ---------- */

.footer {
  padding: 40px var(--gutter) calc(120px + env(safe-area-inset-bottom));
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}
.footer .brand { margin-bottom: 16px; }
.footer p + p { margin-top: 6px; }
.footer a {
  display: inline-block;
  padding: 12px 4px;
  margin: -12px 0;
  color: var(--gold-light);
  text-underline-offset: 3px;
}

/* ---------- Barra de compra fixa ---------- */

.buybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  translate: -50% 110%;
  transition: translate 200ms var(--ease-out);
  will-change: translate;
  background: rgba(13, 23, 43, 0.97);
  border-top: 1px solid var(--rule-navy);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}

.buybar[data-visible="true"] {
  translate: -50% 0;
  transition: translate 320ms var(--ease-drawer);
}

.buybar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buybar-price {
  flex: none;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  color: var(--gold-light);
  white-space: nowrap;
}

.buybar-btn {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 12px 8px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 374px) {
  .btn { font-size: 16px; letter-spacing: 0.04em; }
  .btn-xl { font-size: 16.5px; }
  .buybar { padding-left: 12px; padding-right: 12px; }
  .buybar-inner { gap: 10px; }
  .buybar-btn { font-size: 13.5px; letter-spacing: 0; }
  .buybar-price { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* sem deslocamento: a barra só aparece e some com um fade curto */
  .buybar { translate: -50% 0; opacity: 0; transition: opacity 160ms ease; }
  .buybar[data-visible="true"] { opacity: 1; transition: opacity 200ms ease; }
  .faq-icon { transition: none; }
  .btn:active { transform: none; }
}

/* grupos que não quebram no meio */
.offer-contents span,
.offer-note span { white-space: nowrap; }
.offer-note span:last-child { white-space: normal; }
