/* ============================================================
   Production overrides
   Hides wireframe chrome and renders the page cleanly.
   ============================================================ */

/* Kill the body grid/dot pattern from styles.css */
body::before,
body::after { display: none !important; }

/* Base body styling for production */
body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* ============================================================
   MOBILE PRODUCTION
   The mobile design was drawn at 375px. We let it grow up to
   500px on small viewports for a comfortable single-column read.
   ============================================================ */
.prod-mobile {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface-1);
  color: var(--ink);
  position: relative;
  min-height: 100vh;
  overflow: hidden; /* prevent rare overflow from absolute-positioned bits */
}

/* The mobile nav was scoped inside the phone shell. Make it sit on top here. */
.prod-mobile .m-nav {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Section dividers were drawn relative to the phone background */
.prod-mobile .wf-section + .wf-section { border-top: 1px solid var(--hairline); }

/* ============================================================
   DESKTOP PRODUCTION
   No browser chrome — render the page edge-to-edge.
   ============================================================ */
.prod-desktop-scale {
  background: var(--bg);
}
.prod-desktop-scale .d-page {
  /* d-page already styles itself */
}

/* ============================================================
   Make sure no wireframe-only widgets ever appear if someone
   accidentally adds them back (defensive)
   ============================================================ */
.sketch-meta,
.variant-bar,
.view-toggle,
.notes,
.note-col,
.sketch-footer,
.v-watermark,
.sec-tag { display: none !important; }

/* ============================================================
   Wordmark (PNG logo) — overrides the stacked-text version
   ============================================================ */
.wordmark.wordmark-img {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: 0;
}
.wordmark.wordmark-img img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.wordmark.wordmark-img.sm img { height: 18px; }
.wordmark.wordmark-img.md img { height: 24px; }
.wordmark.wordmark-img.lg img { height: 32px; }
.wordmark.wordmark-img.xl img { height: 44px; }

/* Reset stacked-text rules that no longer apply to the image version */
.wordmark.wordmark-img .top,
.wordmark.wordmark-img .bot { display: none; }

/* Buy section product strip: logo sits next to mini cover —
   give it a bit of breathing room and keep it from overflowing */
.buy-product .info .wordmark.wordmark-img img { max-width: 100%; }
.d-buy-info .wordmark.wordmark-img.xl img { height: 40px; }

/* Footer wordmark should sit on its own line, never crop */
.m-footer .wordmark.wordmark-img,
.d-footer-brand .wordmark.wordmark-img {
  max-width: 100%;
}
.m-footer .wordmark.wordmark-img img { max-width: 90%; }

/* Footer social links (mobile) — anchors styled like the old spans */
a.ft-soc {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Footer link anchors (desktop) — inherit color, no underline, hover lifts */
.d-footer-col ul li a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.d-footer-col ul li a:hover { color: var(--ink); }

/* Top nav anchors (desktop) — strip browser default underline */
.d-nav-links a,
.d-topnav a {
  text-decoration: none;
  cursor: pointer;
}

/* ============================================================
   Mobile menu overlay
   ============================================================ */
.m-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  animation: m-menu-fade 0.18s ease;
}
@keyframes m-menu-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.m-menu-panel {
  width: min(86vw, 360px);
  background: var(--surface-1);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  padding: 20px 22px 28px;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  animation: m-menu-slide 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes m-menu-slide {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.m-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.m-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.m-menu-close:hover {
  color: var(--orange-neon);
  border-color: var(--orange-deep);
}
.m-menu-list {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  gap: 4px;
}
.m-menu-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 16px 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, padding-left 0.15s;
}
.m-menu-list button:hover {
  color: var(--orange-neon);
  padding-left: 8px;
}
.m-menu-list button:last-child { border-bottom: 0; }
.m-menu-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(140deg, var(--teal-bright), var(--teal));
  color: #02161a;
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 22px var(--teal-glow);
}
.m-menu-cta:hover { filter: brightness(1.05); }


/* ============================================================
   Jump-to-buy CTA (used inside Pain & Solution on mobile)
   ============================================================ */
.jump-cta {
  margin-top: 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--orange-neon);
  color: #1a0d05;
  border: 1px solid var(--orange-neon);
  border-radius: 10px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 176, 117, 0.4) inset,
    0 8px 24px rgba(209, 115, 67, 0.35),
    0 0 28px rgba(255, 176, 117, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.jump-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 176, 117, 0.6) inset,
    0 10px 28px rgba(209, 115, 67, 0.45),
    0 0 36px rgba(255, 176, 117, 0.4);
}
.jump-cta:active { transform: translateY(0); }
.jump-cta .jump-cta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Floating WhatsApp button (global, both layouts)
   ============================================================ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--teal-bright) 0%, var(--teal) 100%);
  color: #02161a;
  text-decoration: none;
  z-index: 100;
  box-shadow:
    0 0 0 1px rgba(125, 213, 223, 0.6) inset,
    0 0 22px var(--teal-glow),
    0 0 44px rgba(91, 192, 206, 0.4),
    0 10px 26px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(125, 213, 223, 0.85) inset,
    0 0 30px var(--teal-glow),
    0 0 60px rgba(91, 192, 206, 0.55),
    0 14px 30px rgba(0, 0, 0, 0.6);
}
.wa-float-ic {
  display: inline-flex;
  color: #03161a;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}
.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(91, 192, 206, 0.55);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 192, 206, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(91, 192, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 192, 206, 0); }
}

@media (min-width: 900px) {
  .wa-float {
    right: 28px;
    bottom: 28px;
    width: 66px;
    height: 66px;
  }
}

/* ============================================================
   Payment-method chips (Hotmart: PIX / Boleto / Cartão)
   ============================================================ */
.d-pay-methods,
.m-pay-methods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.d-pay-chip,
.m-pay-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-neon);
  background: rgba(255, 176, 117, 0.08);
  border: 1px solid var(--orange-deep);
  border-radius: 999px;
  padding: 5px 10px;
}
.m-pay-chip {
  font-size: 10px;
  padding: 4px 9px;
  letter-spacing: 0.12em;
}

/* ============================================================
   Language availability strip
   "Físico: PT  |  Digital: PT · EN · ES (em breve)"
   ============================================================ */
.d-buy-langs,
.m-buy-langs {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 246, 232, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.d-buy-langs-label,
.m-buy-langs-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.d-lang-row,
.m-lang-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
}
.m-lang-row { grid-template-columns: 72px 1fr; }

.d-lang-format,
.m-lang-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.m-lang-format { font-size: 11.5px; gap: 5px; }

.d-lang-flags,
.m-lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.d-lang-chip,
.m-lang-chip {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1;
  overflow: hidden;
}
.d-lang-chip > span:last-child,
.m-lang-chip > span:last-child,
.d-lang-chip {
  /* spacing wrapper handled below */
}
.d-lang-chip {
  padding-right: 10px;
}
.m-lang-chip {
  font-size: 11px;
  padding-right: 9px;
  gap: 0;
}
.d-lang-code,
.m-lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 4px 6px;
  margin-right: 8px;
  background: rgba(255, 246, 232, 0.06);
  border-right: 1px solid var(--border);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-neon);
}
.m-lang-code {
  min-width: 22px;
  padding: 3px 5px;
  margin-right: 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.d-lang-chip em,
.m-lang-chip em {
  font-style: normal;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--hairline);
}
.d-lang-chip.soon,
.m-lang-chip.soon {
  background: transparent;
  border-style: dashed;
  color: var(--ink-mute);
}
.d-lang-chip.soon .d-lang-code,
.m-lang-chip.soon .m-lang-code {
  background: transparent;
  color: var(--orange-neon);
  border-right-style: dashed;
}
.d-lang-chip.soon em,
.m-lang-chip.soon em {
  color: var(--orange-neon);
  border-left-style: dashed;
}

/* ============================================================
   Buy-section cover override — uses the 3-livros transparent
   product shot instead of a single flat cover image.
   ============================================================ */
.d-buy-product { grid-template-columns: 400px 1fr; }
.d-buy-cover {
  width: 100%;
  max-width: 400px;
  aspect-ratio: auto;
  height: auto;
}
.d-buy-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 30px rgba(255, 176, 117, 0.18));
}
.buy-product .cover-mini {
  width: 100%;
  max-width: 150px;
  aspect-ratio: auto;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.buy-product .cover-mini img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 18px rgba(255, 176, 117, 0.15));
}
/* Widen the mobile buy-product grid so the 3-livros image isn't squeezed */
.buy-product { grid-template-columns: 140px 1fr; }
