/* =====================================================================
   CAPTURA · Cristovão Brilho
   Editorial · structured · 9 sections
   ===================================================================== */

:root {
  --page: #FFFFFF;
  --page-soft: #FAF6EE;
  --page-warm: #F2E9D8;
  --ink: #1A130A;
  --ink-soft: #4A382A;
  --ink-muted: #7A6650;
  --terracotta: #B84A22;
  --terracotta-dark: #8F3618;
  --terracotta-soft: #D8A07E;
  --green: #1E3A28;
  --line: rgba(26,19,10,0.10);
  --line-strong: rgba(26,19,10,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.05;
}

em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

strong { font-weight: 500; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: var(--terracotta); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,19,10,0.16); border-radius: 999px; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1280px) { .container { padding: 0 64px; } }

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 6.5rem 0; } }
@media (min-width: 1024px) { section { padding: 7.5rem 0; } }

/* Decorative dotted corners on cream-toned sections */
.oquevem,
.principios,
.sobre,
.faq {
  position: relative;
  overflow: hidden;
}
.oquevem::before,
.principios::before,
.sobre::before,
.faq::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 360px; height: 360px;
  background-image: radial-gradient(circle, rgba(184,74,34,0.10) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.55;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(0.2px);
}
.oquevem::after,
.principios::after,
.sobre::after,
.faq::after {
  content: '';
  position: absolute;
  bottom: -140px; right: -140px;
  width: 380px; height: 380px;
  background-image: radial-gradient(circle, rgba(184,74,34,0.10) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.45;
  pointer-events: none;
  border-radius: 50%;
}

/* =========================================================
   Typography
   ========================================================= */
.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.display em { color: var(--terracotta); }

.display-2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
}
.display-2 em { color: var(--terracotta); }

.display-3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 540px;
  margin-top: 1.5rem;
}

.muted {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 480px;
}
.muted em { color: var(--terracotta); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 22px;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.centered .kicker { justify-content: center; }
.centered .kicker::before { display: none; }

.centered { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.centered .muted { margin-left: auto; margin-right: auto; }

/* =========================================================
   CTAs
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease, box-shadow 0.4s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn__arrow { font-size: 15px; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }

.btn--primary {
  background: var(--terracotta);
  color: #fff;
}
.btn--primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -18px rgba(184,74,34,0.5);
}
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

.btn--block { display: flex; width: 100%; padding: 20px 24px; }

/* =========================================================
   Reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 0.5px solid transparent;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}
@media (min-width: 768px) { .header__inner { padding: 22px 48px; } }
@media (min-width: 1280px) { .header__inner { padding: 22px 64px; } }

.brand { display: inline-flex; flex-direction: column; line-height: 1.15; gap: 4px; }
.brand__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav { display: none; align-items: center; gap: 28px; }
.nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav a:hover { color: var(--terracotta); }
@media (min-width: 1024px) { .nav { display: inline-flex; } }

.hamburger {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 0.5px solid var(--line-strong);
  background: rgba(255,255,255,0.8);
  display: grid; place-items: center; gap: 5px;
  cursor: pointer;
}
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: all 0.3s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .hamburger { display: none; } }

.mobile-menu {
  background: rgba(255,255,255,0.98);
  border-top: 0.5px solid var(--line);
  padding: 14px 24px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
/* Respect hidden attribute (overrides display: flex above) */
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  border-bottom: 0.5px solid var(--line);
}
.mobile-menu a:last-child { border: 0; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--page-soft);
  padding: 56px 0 88px;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: 72px 0 120px; } }
.hero__bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(184,74,34,0.06) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at top left, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at top left, black 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 80px;
  }
}

.hero__copy h1 { margin: 0; }
.hero__copy .lead { margin-top: 24px; max-width: 460px; }

/* Price tag above form — De [strike] por [big value] [−off badge] */
.hero__price {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.hero__price-value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terracotta);
}
.hero__price-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.hero__cta { margin-top: 28px; max-width: 460px; }
.hero__cta-note {
  margin-top: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-align: center;
}
@media (max-width: 640px) {
  .hero__price { margin-top: 24px; }
  .hero__price-value { font-size: 40px; }
  .hero__price-note { font-size: 11px; }
  .hero__cta { margin-top: 22px; }
}

.hero__stats {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 0.5px solid var(--line);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: baseline;
}
.hero__stats > div { display: flex; align-items: baseline; gap: 14px; }
.hero__stats dt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero__stats dd {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: 140px;
  line-height: 1.4;
}

/* Citation-style stat with long readable sentence */
.hero__stats__cite { flex: 1 1 300px; align-self: center !important; }
.hero__stats__cite dd {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--ink-soft);
  max-width: 380px;
  line-height: 1.55;
}
.hero__stats__cite dd em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

/* Hero art container */
.hero__art {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 12px 12px 12px 24px;
}
@media (min-width: 1024px) { .hero__art { margin: 0 0 0 auto; } }

/* Notebook cover — NO frame around it. The cover IS the notebook. */
.hero__photo {
  position: relative;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 30px 50px rgba(26,19,10,0.22));
  z-index: 1;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 3/4.1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  position: relative;
  z-index: 1;
}

/* Spiral binding rings — on the LEFT EDGE of the cover, extending slightly above/below to suggest wire wrapping over the top/bottom */
.hero__rings {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 18px;
  width: 18px;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='22' viewBox='0 0 18 22' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='2' width='12' height='18' rx='6' ry='6' fill='%230c0703'/%3E%3Crect x='5' y='4' width='8' height='14' rx='4' ry='4' fill='%232e1f12'/%3E%3Crect x='4.5' y='5' width='0.8' height='12' fill='%23d4b896' opacity='0.45'/%3E%3Crect x='5' y='16' width='8' height='2' rx='1' fill='%23000' opacity='0.30'/%3E%3C/svg%3E");
  background-size: 18px 22px;
  background-repeat: round;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.40));
}

/* Spiral binding — wire-o loops on the left edge of the cover.
   Each loop has dark outer + inner shadow + metallic highlight,
   tiled vertically with gap between to read clearly as binding. */
.hero__rings {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 14px;
  width: 14px;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='22' viewBox='0 0 14 22'%3E%3Crect x='2' y='4' width='10' height='14' rx='5' ry='5' fill='%230c0703'/%3E%3Crect x='4' y='6' width='6' height='10' rx='3' ry='3' fill='%232c1e12'/%3E%3Crect x='3' y='6' width='0.8' height='10' fill='%23d4b896' opacity='0.55'/%3E%3Crect x='4' y='14' width='6' height='2' rx='1' fill='%23000' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 14px 22px;
  background-repeat: round;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.45));
}

/* Page block on right — paper thickness with horizontal page lines */
.hero__pages {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -8px;
  width: 8px;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(120,100,72,0.12) 0px,
      rgba(120,100,72,0.12) 1px,
      transparent 1px,
      transparent 2.4px
    ),
    linear-gradient(90deg,
      rgba(228,210,182,0.55),
      rgba(180,160,130,0.95)
    );
  border-radius: 0 3px 3px 0;
  box-shadow: 4px 6px 12px rgba(26,19,10,0.18);
}

.hero__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.96);
  border: 0.5px solid var(--line-strong);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  box-shadow: 0 16px 40px -16px rgba(26,19,10,0.18);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.hero__pill--top { top: 36px; right: 16px; }
.hero__pill-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--terracotta);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__stamp {
  position: absolute;
  bottom: 60px;
  left: -32px;
  width: 110px; height: 110px;
  display: grid;
  place-items: center;
  z-index: 3;
  background: var(--page-soft);
  border-radius: 50%;
  border: 0.5px solid var(--line-strong);
  box-shadow: 0 16px 40px -16px rgba(26,19,10,0.20);
}
.hero__stamp svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spinSlow 50s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero__stamp-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--ink);
}
.hero__stamp-core {
  position: relative;
  font-size: 22px;
  color: var(--terracotta);
  line-height: 1;
}

.hero__credential {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.hero__credential-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--terracotta);
  flex: none;
  animation: credentialPulse 1.8s ease-in-out infinite;
}
@keyframes credentialPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.4); }
}
.hero__credential-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

/* =========================================================
   FORM
   ========================================================= */
.form {
  margin-top: 32px;
  max-width: 460px;
}
.form__field { margin-bottom: 16px; }
.form__field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.form__optional {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink-muted);
  opacity: 0.7;
  margin-left: 6px;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  background: var(--page);
  border: 0.5px solid var(--line-strong);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.form input::placeholder {
  color: rgba(26,19,10,0.35);
  font-weight: 300;
}
.form input:focus {
  border-color: var(--terracotta);
  background: #fff;
}
.form input[aria-invalid="true"] { border-color: var(--terracotta); }

.form__error {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--terracotta);
  margin-top: 6px;
  min-height: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.form__error.is-visible { opacity: 1; transform: translateY(0); }

/* Server-side error message below submit button */
.form__server-error {
  margin-top: 12px;
  padding: 12px 16px;
  border: 0.5px solid rgba(184,74,34,0.4);
  background: rgba(184,74,34,0.08);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1.45;
  text-align: center;
}
.form__server-error[hidden] { display: none; }

/* Margin only on the actual submit button — não no botão interno do iti */
.form ._submit,
.form button[type="submit"] { margin-top: 18px; }
.form__privacy {
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  text-align: center;
}
.form.is-loading button { opacity: 0.6; pointer-events: none; }
.form.is-loading button .btn__label::after { content: '…'; margin-left: 2px; }

/* =========================================================
   ActiveCampaign integration overrides
   Style AC's dynamic classes to match editorial design
   ========================================================= */

/* Required asterisk */
.field-required {
  color: var(--terracotta);
  font-weight: 400;
  margin-left: 2px;
}

/* Reset AC defaults that could leak through */
#checkoutForm { font-size: inherit; line-height: inherit; font-family: inherit; }
#checkoutForm ._form_element { position: relative; margin: 0; max-width: 100%; }
#checkoutForm ._form-content { display: block; }
#checkoutForm ._field-wrapper { position: relative; }
#checkoutForm ._clear-element { clear: both; }
#checkoutForm ._button-wrapper { width: 100%; }

/* Input invalid state (set by AC) */
#checkoutForm input._has_error,
#checkoutForm ._has_error input {
  border-color: var(--terracotta) !important;
  background: rgba(184,74,34,0.03) !important;
}

/* Inline error tooltip */
#checkoutForm ._error {
  position: absolute;
  z-index: 5;
  right: 0;
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
}
#checkoutForm ._error._above { padding-bottom: 6px; bottom: 100%; }
#checkoutForm ._error._below { padding-top: 6px; top: 100%; }
#checkoutForm ._error-inner {
  background: var(--terracotta);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(184,74,34,0.45);
}
#checkoutForm ._error-arrow {
  position: absolute;
  width: 0;
  height: 0;
}
#checkoutForm ._error._above ._error-arrow {
  bottom: -1px;
  right: 18px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--terracotta);
}
#checkoutForm ._error._below ._error-arrow {
  top: -1px;
  right: 18px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--terracotta);
}

/* Form-level error (server response) */
#checkoutForm ._form_error,
#checkoutForm ._show_be_error ._error-inner {
  display: block;
  background: rgba(184,74,34,0.10);
  color: var(--terracotta);
  border: 0.5px solid rgba(184,74,34,0.35);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  box-shadow: none;
  white-space: normal;
}
#checkoutForm ._show_be_error { float: none; min-width: 0; }

/* Loading state on submit */
#checkoutForm ._submit.processing,
#checkoutForm button._submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
#checkoutForm ._submit.processing .btn__label::after {
  content: '…';
  margin-left: 4px;
  display: inline-block;
}

/* Thank you message (fallback if redirect doesn't fire) */
#checkoutForm ._form-thank-you {
  margin-top: 18px;
  padding: 22px 24px;
  background: var(--page-soft);
  border: 0.5px solid var(--line-strong);
  border-radius: 8px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.4;
}

/* Hide AC branding */
#checkoutForm ._form-branding { display: none !important; }

/* intl-tel-input — phone field with country code dropdown
   The library positions .iti__country-container absolutely on the left.
   We DON'T override positioning — only visuals (border, font, colors). */

#checkoutForm .iti {
  position: relative;
  display: block;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

/* Force lib's positioning even if other CSS interferes */
#checkoutForm .iti__country-container,
#checkoutForm .iti__flag-container {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2 !important;
  padding: 1px !important;
}

#checkoutForm .iti__selected-country,
#checkoutForm .iti__selected-flag {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 6px 0 14px !important;
  border-radius: 8px 0 0 8px;
}

/* Input INSIDE .iti — only set visual properties.
   Padding-left is calculated by the library at runtime to make room for the flag. */
#checkoutForm .iti input[type="text"],
#checkoutForm .iti input[type="tel"],
#checkoutForm .iti input.iti__tel-input {
  background: var(--page);
  border: 0.5px solid var(--line-strong);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  /* Match other form fields' vertical padding; horizontal kept default for lib */
  padding-top: 14px;
  padding-bottom: 14px;
  padding-right: 18px;
  margin: 0;
  width: 100%;
}

#checkoutForm .iti input[type="text"]::placeholder,
#checkoutForm .iti input[type="tel"]::placeholder {
  color: rgba(26,19,10,0.35);
  font-weight: 300;
}

#checkoutForm .iti input[type="text"]:focus,
#checkoutForm .iti input[type="tel"]:focus {
  border-color: var(--terracotta);
  background: #fff;
  outline: none;
}

/* Selected country button (button containing flag + dial code) */
#checkoutForm .iti__selected-country,
#checkoutForm .iti__selected-flag {
  background-color: transparent;
  padding-left: 14px;
  padding-right: 6px;
  border-radius: 8px 0 0 8px;
}
#checkoutForm .iti__selected-country:hover,
#checkoutForm .iti__selected-flag:hover,
#checkoutForm .iti__selected-country:focus,
#checkoutForm .iti__selected-flag:focus {
  background-color: var(--page-soft);
}

/* Dial code text styling */
#checkoutForm .iti__selected-dial-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 6px;
}

/* Country dropdown list */
#checkoutForm .iti__country-list {
  border-radius: 8px;
  margin-top: 4px;
  border: 0.5px solid var(--line-strong);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  background: #fff;
  box-shadow: 0 22px 50px -18px rgba(26,19,10,0.25);
  max-height: 280px;
}
#checkoutForm .iti__country.iti__highlight {
  background-color: var(--page-soft);
}

/* Mobile: smaller dial code text, ensure dropdown doesn't overflow */
@media (max-width: 640px) {
  #checkoutForm .iti__country-list { min-width: 280px; font-size: 12.5px; }
  #checkoutForm .iti__selected-dial-code { font-size: 13px; }
}

/* =========================================================
   SPLIT (head + content) shared
   ========================================================= */
.split {
  display: grid;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 96px;
  }
}

/* =========================================================
   O QUE VEM POR E-MAIL · 2x2 grid
   ========================================================= */
.oquevem { background: var(--page-soft); }
.oquevem header h2 { margin-top: 4px; }
.oquevem header .muted { margin-top: 20px; max-width: 360px; }

.cards-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } }

/* 5 cards: mobile 1-col → tablet 2-col centered → desktop 3-col left-aligned (3+2) */
.cards-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
/* Mobile: single column, capped width */
.cards-5 > .ftcard {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 460px;
  padding: 30px 28px;
}
/* Tablet (640–1023): 2 columns, last card centered */
@media (min-width: 640px) {
  .cards-5 > .ftcard {
    flex: 0 1 calc((100% - 20px) / 2);
    max-width: none;
    padding: 36px 32px;
  }
}
/* Desktop (≥1024px): 3 colunas em cima (1/3 cada), 2 embaixo MAIORES (1/2 cada) */
@media (min-width: 1024px) {
  .cards-5 { justify-content: flex-start; }
  .cards-5 > .ftcard {
    flex: 0 1 calc((100% - 40px) / 3);  /* 3-col base for cards 1-3 */
  }
  /* Bottom row: cards 4 e 5 ocupam metade cada (mais largos que top) */
  .cards-5 > .ftcard:nth-child(4),
  .cards-5 > .ftcard:nth-child(5) {
    flex: 0 1 calc((100% - 20px) / 2);
  }
}

/* Header da seção (substitui o split com header fixo à esquerda) */
.oquevem__head {
  max-width: 760px;
  margin-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .oquevem__head { margin-bottom: 5rem; }
}
.oquevem__head h2 { margin-top: 4px; }
.oquevem__head .muted { margin-top: 20px; max-width: 540px; }

.ftcard {
  background: var(--page);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.ftcard:hover {
  transform: translateY(-3px);
  border-color: rgba(184,74,34,0.30);
  box-shadow: 0 22px 50px -22px rgba(26,19,10,0.18);
}
.ftcard__n {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(184,74,34,0.10);
  color: var(--terracotta);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 20px;
}
.ftcard h3 {
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ftcard p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* =========================================================
   COMO FUNCIONA · photo + steps
   ========================================================= */
.funciona { background: var(--page); }

.funciona__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .funciona__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 80px;
  }
}

.funciona__photo {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: var(--page-soft);
  border-radius: 18px;
  padding: 22px;
  border: 0.5px solid var(--line);
}
@media (min-width: 1024px) { .funciona__photo { margin: 0; } }
.funciona__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  border: 0.5px solid var(--line-strong);
}
.funciona__tag {
  position: absolute;
  bottom: 36px; left: 36px;
  background: rgba(255,255,255,0.96);
  border: 0.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 40px -16px rgba(26,19,10,0.20);
  backdrop-filter: blur(8px);
}
.funciona__tag span:first-child {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.funciona__tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.funciona__content header h2 { margin-top: 4px; }
.funciona__content .muted { margin-top: 18px; max-width: 460px; }

.steps {
  margin: 36px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--line);
}
.steps li:first-child { border-top: 0.5px solid var(--line); }
.steps__n {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
}
.steps li h3 {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.steps li p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* =========================================================
   BENEFÍCIOS · 2x3 grid
   ========================================================= */
.beneficios {
  background: var(--page-soft);
  position: relative;
  overflow: hidden;
}
.beneficios::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 400px; height: 400px;
  background-image: radial-gradient(circle, rgba(184,74,34,0.10) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.cards-3 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.bcard {
  background: var(--page);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.bcard:hover {
  transform: translateY(-3px);
  border-color: rgba(184,74,34,0.25);
  box-shadow: 0 22px 50px -22px rgba(26,19,10,0.18);
}
.bcard__n {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(184,74,34,0.10);
  color: var(--terracotta);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 18px;
}
.bcard h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.bcard p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================
   PRINCÍPIOS · 3 quote cards
   ========================================================= */
.principios { background: var(--page); }

.qcard {
  position: relative;
  background: var(--page-soft);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.qcard__glyph {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  line-height: 0.5;
  color: var(--terracotta);
  margin-bottom: 24px;
}
.qcard p {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}
.qcard footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.qcard__avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.qcard__author {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.principios__cta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* =========================================================
   SOBRE · bio + foto
   ========================================================= */
.sobre { background: var(--page-soft); }

.sobre__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .sobre__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 96px;
  }
}

.sobre__content h2 { margin-top: 4px; }
.sobre__content .lead {
  margin-top: 28px;
}
.sobre__content .lead.has-dropcap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--terracotta);
}
.sobre__content strong { color: var(--ink); }
.sobre__content em { color: var(--terracotta); }

.sobre__visual {
  max-width: 460px;
  margin: 0 auto;
  background: var(--page);
  padding: 22px;
  border-radius: 18px;
  border: 0.5px solid var(--line);
  box-shadow: 0 50px 80px -40px rgba(26,19,10,0.25);
}
@media (min-width: 1024px) { .sobre__visual { margin: 0 0 0 auto; } }
.sobre__visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 0.5px solid var(--line-strong);
  filter: contrast(1.04) saturate(0.95);
}
.sobre__visual figcaption {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.55;
}
.sobre__caption-label {
  flex: none;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--terracotta);
}

/* =========================================================
   FAQ · accordion + contact card
   ========================================================= */
.faq { background: var(--page); }
.faq .centered { margin-bottom: 4rem; }

.faq__layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .faq__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 56px;
    align-items: start;
  }
}

.faq__list {
  display: flex;
  flex-direction: column;
  background: var(--page);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq__item { border-bottom: 0.5px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.3s ease;
}
.faq__btn:hover { background: var(--page-soft); }
.faq__btn-text { display: flex; align-items: baseline; gap: 16px; flex: 1; }
.faq__num {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  flex: none;
}
.faq__q {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.35;
}
@media (min-width: 640px) { .faq__q { font-size: 19px; } }
.faq__toggle {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease;
}
.faq__item.is-open .faq__toggle {
  color: #fff;
  background: var(--terracotta);
  transform: rotate(45deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22,1,0.36,1);
}
.faq__answer > div { overflow: hidden; }
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__answer p {
  padding: 0 26px 22px 56px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq__contact {
  background: var(--page-soft);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__contact-kicker {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  width: max-content;
  padding: 5px 12px;
  background: rgba(184,74,34,0.10);
  border-radius: 2px;
}
.faq__contact h3 {
  font-size: 22px;
  letter-spacing: -0.012em;
}
.faq__contact > p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq__contact strong { color: var(--ink); }
.faq__contact .btn { width: 100%; }
.faq__contact .btn--ghost { background: #fff; }

/* =========================================================
   AVISO
   ========================================================= */
.aviso {
  background: var(--page-warm);
  padding: 28px 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.aviso p {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.aviso strong { color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 48px 0 32px;
  background: var(--page);
  border-top: 0.5px solid var(--line);
}
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  padding: 16px 22px;
  background: var(--page-soft);
  border-left: 2px solid var(--terracotta);
  border-radius: 0 8px 8px 0;
  max-width: 720px;
}

.footer__terms {
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: 4px 0;
}
.footer__terms summary {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.25s ease;
}
.footer__terms summary::-webkit-details-marker { display: none; }
.footer__terms summary::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--terracotta);
  transition: transform 0.3s ease;
}
.footer__terms[open] summary::after { transform: rotate(45deg); }
.footer__terms summary:hover { color: var(--ink); }

.footer__terms-body {
  padding: 4px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__terms-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 820px;
}
.footer__terms-body strong { font-weight: 500; color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding-top: 12px;
}
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer__brand .brand__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
}
.footer__brand .brand__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer__copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--ink-muted);
}

.footer__contact {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  text-align: center;
  padding-top: 14px;
}
.footer__contact a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease;
}
.footer__contact a:hover {
  border-color: var(--ink);
}

/* =========================================================
   RESPONSIVE · mobile-first refinements
   ========================================================= */

/* Prevent iOS auto-zoom on input focus (needs font-size >= 16px) */
@media (max-width: 768px) {
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"] { font-size: 16px; }
}

/* =========================================================
   TABLET DOWN · ≤ 1023px
   ========================================================= */
@media (max-width: 1023px) {
  .hero { padding: 48px 0 80px; }
  .hero__grid { gap: 48px; }

  .split, .funciona__grid, .sobre__grid { gap: 48px; }
  .centered { margin-bottom: 3rem; }

  /* FAQ stacks (contact card moves below accordion) */
  .faq__layout { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   MOBILE · ≤ 640px
   ========================================================= */
@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 20px; }

  /* Kicker pill — fits narrow screens */
  .kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
    padding: 5px 11px;
    margin-bottom: 20px;
  }

  /* Header */
  .header__inner { padding: 14px 20px; }
  .brand__title { font-size: 17px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.22em; }
  .mobile-menu { padding: 12px 20px 18px; }
  .mobile-menu a {
    padding: 11px 12px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  /* HERO */
  .hero { padding: 32px 0 64px; }
  .hero__grid { gap: 36px; }
  .hero__copy h1 { font-size: 2.4rem; line-height: 1; }
  .hero__copy .lead { font-size: 0.9375rem; margin-top: 18px; }

  /* Hero stats */
  .hero__stats {
    margin-top: 28px;
    padding-top: 20px;
    gap: 20px 28px;
  }
  .hero__stats > div { gap: 12px; }
  .hero__stats dt { font-size: 26px; }
  .hero__stats dd {
    font-size: 10px;
    letter-spacing: 0.22em;
    max-width: 130px;
  }

  /* Hero photo — tighter frame */
  .hero__photo { padding: 12px; border-radius: 14px; }
  .hero__photo img { border-radius: 8px; }

  /* Hero pill (Acesso imediato) */
  .hero__pill--top {
    top: 22px; right: 22px;
    padding: 7px 14px;
    font-size: 10px;
    letter-spacing: 0.10em;
    gap: 8px;
  }
  .hero__pill-dot { width: 5px; height: 5px; }

  /* Hero rotating stamp — smaller + safer position */
  .hero__stamp {
    width: 84px; height: 84px;
    bottom: 32px; left: -12px;
  }
  .hero__stamp-text { font-size: 6.5px; letter-spacing: 0.28em; }
  .hero__stamp-core { font-size: 18px; }

  /* Notebook art — mobile */
  .hero__art { padding: 10px 10px 10px 20px; max-width: 470px; }
  .hero__photo { transform: rotate(-1deg); }
  .hero__rings {
    top: -8px; bottom: -8px;
    left: 10px;
    width: 12px;
    background-size: 12px 20px;
  }
  .hero__pages {
    top: 4px; bottom: 4px;
    right: -7px;
    width: 7px;
  }

  /* Hero credential strip — tighter */
  .hero__credential {
    gap: 10px;
    padding: 13px 18px;
    margin-top: 16px;
  }
  .hero__credential-value { font-size: 11px; letter-spacing: 0.20em; }
  .hero__credential-dot { width: 6px; height: 6px; }

  /* FORM */
  .form { margin-top: 28px; }
  .form__field { margin-bottom: 14px; }
  .form__field label { font-size: 10px; letter-spacing: 0.22em; }
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"] {
    padding: 14px 16px;
  }
  .form__error { font-size: 10.5px; }
  .form ._submit,
  .form button[type="submit"] { margin-top: 12px; }
  .form__privacy { font-size: 10.5px; line-height: 1.5; }

  /* Buttons */
  .btn { padding: 16px 24px; font-size: 11.5px; letter-spacing: 0.16em; }
  .btn--block { padding: 18px 24px; }

  /* CARDS grids */
  .ftcard, .bcard { padding: 22px 20px; border-radius: 12px; }
  .ftcard h3, .bcard h3 { font-size: 17px; }
  .ftcard p, .bcard p { font-size: 13.5px; }
  .ftcard__n, .bcard__n {
    width: 32px; height: 32px;
    font-size: 14px;
    margin-bottom: 16px;
    border-radius: 6px;
  }

  /* COMO FUNCIONA */
  .funciona__photo { padding: 12px; border-radius: 14px; }
  .funciona__photo img { border-radius: 8px; }
  .funciona__tag {
    bottom: 24px; left: 24px;
    padding: 10px 14px;
    font-size: 12.5px;
  }
  .funciona__tag span:first-child { font-size: 9px; letter-spacing: 0.22em; }
  .funciona__content .muted { margin-top: 14px; }

  /* Steps */
  .steps { margin: 28px 0 24px; }
  .steps li {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 18px 0;
  }
  .steps__n {
    width: 32px; height: 32px;
    font-size: 14px;
    border-radius: 6px;
  }
  .steps li h3 { font-size: 16px; margin-bottom: 4px; }
  .steps li p { font-size: 13px; }

  /* PRINCÍPIOS · quote cards */
  .qcard {
    padding: 28px 22px 22px;
    min-height: auto;
    border-radius: 12px;
  }
  .qcard__glyph { font-size: 52px; margin-bottom: 18px; }
  .qcard p { font-size: 16.5px; line-height: 1.45; }
  .qcard footer { margin-top: 20px; padding-top: 16px; gap: 10px; }
  .qcard__avatar { width: 36px; height: 36px; font-size: 12px; }
  .qcard__author { font-size: 11.5px; }
  .principios__cta { margin-top: 36px; }

  /* SOBRE */
  .sobre__visual {
    padding: 12px;
    border-radius: 14px;
    max-width: 340px;
  }
  .sobre__visual img { border-radius: 8px; }
  .sobre__content .lead { margin-top: 22px; }
  .sobre__content .lead.has-dropcap::first-letter {
    font-size: 3.4em;
    padding: 4px 10px 0 0;
  }
  .sobre__visual figcaption { margin-top: 14px; font-size: 11px; gap: 10px; }
  .sobre__caption-label { font-size: 12px; }

  /* FAQ */
  .faq .centered { margin-bottom: 2.5rem; }
  .faq__list { border-radius: 12px; }
  .faq__btn { padding: 18px 20px; gap: 16px; }
  .faq__btn-text { gap: 14px; }
  .faq__num { font-size: 10px; letter-spacing: 0.18em; }
  .faq__q { font-size: 15.5px; line-height: 1.35; }
  .faq__toggle { width: 22px; height: 22px; font-size: 13px; }
  .faq__answer p {
    padding: 0 20px 18px 44px;
    font-size: 13.5px;
    line-height: 1.65;
  }
  .faq__contact { padding: 24px 22px; border-radius: 12px; }
  .faq__contact h3 { font-size: 19px; }
  .faq__contact > p { font-size: 13px; line-height: 1.55; }
  .faq__contact-kicker { font-size: 9.5px; letter-spacing: 0.28em; }
  .faq__contact .btn { padding: 14px 20px; font-size: 11px; }

  /* AVISO */
  .aviso { padding: 24px 0; }
  .aviso p { font-size: 11.5px; line-height: 1.6; }

  /* FOOTER */
  .footer { padding: 36px 0 28px; }
  .footer__legal { gap: 18px; }
  .footer__note {
    font-size: 12.5px;
    padding: 14px 18px;
    line-height: 1.55;
  }
  .footer__terms summary {
    font-size: 10px;
    letter-spacing: 0.22em;
    padding: 12px 0;
  }
  .footer__terms-body p {
    font-size: 12px;
    line-height: 1.65;
  }
  .footer__bottom { gap: 10px; padding-top: 8px; }
  .footer__brand .brand__title { font-size: 17px; }
  .footer__copy { font-size: 10.5px; }
}

/* =========================================================
   ULTRA-SMALL · ≤ 380px (iPhone SE, etc.)
   ========================================================= */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  section { padding: 3.5rem 0; }

  .hero { padding: 24px 0 56px; }
  .hero__copy h1 { font-size: 2.1rem; }
  .hero__copy .lead { font-size: 0.9rem; }

  /* Stats stack vertical on tiny screens */
  .hero__stats {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .hero__stats > div { gap: 14px; }
  .hero__stats dt { font-size: 24px; }
  .hero__stats dd { max-width: none; }

  /* Photo frame tighter */
  .hero__photo { padding: 10px; border-radius: 12px; }

  /* Stamp pulled further inside */
  .hero__stamp {
    width: 76px; height: 76px;
    bottom: 24px;
    left: -8px;
  }
  .hero__stamp-text { font-size: 6px; }
  .hero__stamp-core { font-size: 16px; }

  /* Rings + pages — ultra-small */
  .hero__art { padding: 8px 8px 8px 16px; max-width: 420px; }
  .hero__rings {
    top: -6px; bottom: -6px;
    left: 8px;
    width: 10px;
    background-size: 10px 18px;
  }
  .hero__pages {
    top: 3px; bottom: 3px;
    right: -6px;
    width: 6px;
  }

  /* Form */
  .form { margin-top: 24px; }
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"] { padding: 13px 14px; }
  .btn { padding: 15px 22px; font-size: 11px; letter-spacing: 0.14em; }

  /* Cards */
  .ftcard, .bcard { padding: 20px 18px; }
  .ftcard h3, .bcard h3 { font-size: 16.5px; }

  /* Steps */
  .steps li { grid-template-columns: 36px 1fr; gap: 12px; }
  .steps__n { width: 30px; height: 30px; font-size: 13px; }

  /* Funciona tag */
  .funciona__tag {
    bottom: 18px; left: 18px;
    padding: 8px 12px;
    font-size: 11.5px;
  }

  /* FAQ */
  .faq__btn { padding: 16px 18px; gap: 12px; }
  .faq__btn-text { gap: 12px; }
  .faq__q { font-size: 14.5px; }
  .faq__answer p { padding: 0 18px 16px 38px; font-size: 13px; }
}

/* =========================================================
   LANDSCAPE · short mobile screens
   ========================================================= */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 24px 0 48px; }
  section { padding: 3.5rem 0; }
}

/* =========================================================
   TOUCH DEVICES · disable hover transforms
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  .ftcard:hover,
  .bcard:hover {
    transform: none;
    box-shadow: none;
  }
  .btn--primary:hover {
    transform: none;
    background: var(--terracotta);
  }
  .btn--primary:hover .btn__arrow { transform: none; }
}

/* =========================================================
   VENDA ABERTA · header CTA, galeria, modal pré-checkout,
   pricebox e páginas do funil (confirmação / obrigado)
   ========================================================= */

/* ---- Header CTA (único item à direita; menu removido) ---- */
.header__cta {
  display: inline-flex;
  margin-left: auto;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.header__cta-short { display: none; }
@media (max-width: 600px) {
  .header__cta { padding: 11px 16px; letter-spacing: 0.08em; }
  .header__cta-full { display: none; }
  .header__cta-short { display: inline; }
  .header__cta .btn__arrow { display: none; }
}

/* ---- Imagens novas: ajuste de proporção ---- */
.hero__photo { transform: rotate(-1deg); }
.hero__photo img { aspect-ratio: 1 / 1; }
.funciona__photo img { aspect-ratio: 16 / 11; }

/* ---- Galeria · o caderno ambientado ---- */
.galeria { background: var(--page-soft); }
.galeria__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
  .galeria__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.galeria__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--line);
  background: var(--page);
  box-shadow: 0 18px 44px -28px rgba(26,19,10,0.30);
}
.galeria__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.galeria__item:hover img { transform: scale(1.04); }
@media (hover: none) { .galeria__item:hover img { transform: none; } }

/* ---- Modal · pré-checkout ---- */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.checkout-modal[hidden] { display: none; }
.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,19,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFade 0.25s ease;
}
.checkout-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--page);
  border: 0.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 34px 30px 30px;
  box-shadow: 0 40px 90px -30px rgba(26,19,10,0.55);
  animation: modalRise 0.35s cubic-bezier(0.22,1,0.36,1);
}
.checkout-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0.5px solid var(--line);
  background: var(--page-soft);
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.checkout-modal__close:hover { background: var(--page-warm); color: var(--ink); }
.checkout-modal__close .ico { width: 16px; height: 16px; }
.checkout-modal__head { margin-bottom: 18px; padding-right: 30px; }
.checkout-modal__head .kicker { margin-bottom: 14px; }
.checkout-modal__head h2 { margin: 0; }
.checkout-modal__desc {
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Pricebox · resumo do pedido */
.pricebox {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--page-soft);
  border: 0.5px solid var(--line);
  border-radius: 10px;
}
.pricebox__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pricebox__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}
.pricebox__value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--terracotta);
  white-space: nowrap;
}
.pricebox__note {
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.4;
}
.pricebox__installment {
  margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Hero price · "a partir de" + parcelamento */
.hero__price-from {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__price-install {
  margin-top: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Seletor de quantidade (stepper) */
.qty {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qty__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.qty__control {
  display: inline-flex;
  align-items: center;
  border: 0.5px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
}
.qty__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.qty__btn:hover:not(:disabled) { background: var(--page-warm); color: var(--terracotta); }
.qty__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty__input {
  width: 46px;
  height: 40px;
  text-align: center;
  border: 0;
  border-left: 0.5px solid var(--line);
  border-right: 0.5px solid var(--line);
  background: var(--page);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  pointer-events: none;
}
.qty__input:focus { outline: none; }
.qty__hint {
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-muted);
  text-align: center;
}

/* Form do modal — reaproveita .form; só zera max-width e margin-top */
.checkout-modal .form { margin-top: 0; max-width: none; }

/* Estado de envio do botão de checkout */
#checkoutForm button[type="submit"].processing {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}
#checkoutForm button[type="submit"].processing .btn__label::after {
  content: '…';
  margin-left: 4px;
}

/* Scroll-lock com o modal aberto */
body.is-modal-open { overflow: hidden; }

/* ---- Sticky bar (mobile) · preço + CTA fixo no rodapé ---- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 0.5px solid var(--line-strong);
  box-shadow: 0 -8px 30px -16px rgba(26,19,10,0.35);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.sticky-bar.is-visible { transform: translateY(0); pointer-events: auto; }
.sticky-bar__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-bar__price {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--terracotta);
}
.sticky-bar__note {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar__cta { flex: none; padding: 14px 22px; font-size: 11px; letter-spacing: 0.12em; }
/* desktop tem CTA no header → esconde a barra */
@media (min-width: 1024px) { .sticky-bar { display: none; } }
/* não competir com o modal aberto */
body.is-modal-open .sticky-bar { transform: translateY(120%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sticky-bar { transition: none; } }
/* folga no rodapé pra barra não cobrir o copyright (mobile/tablet) */
@media (max-width: 1023px) { .footer { padding-bottom: 92px; } }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-modal__backdrop,
  .checkout-modal__dialog { animation: none; }
}

/* Mobile — modal como bottom sheet quase cheio */
@media (max-width: 560px) {
  .checkout-modal { padding: 0; align-items: flex-end; }
  .checkout-modal__dialog {
    max-width: none;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    padding: 30px 22px 24px;
  }
}

/* ---- Páginas do funil · confirmação + obrigado ---- */
.fhero {
  position: relative;
  background: var(--page-soft);
  overflow: hidden;
  text-align: center;
  padding: 64px 0 72px;
}
@media (min-width: 768px) { .fhero { padding: 88px 0 96px; } }
.fhero .container { max-width: 760px; }
.fhero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(184,74,34,0.08);
  border-radius: 999px;
}
.fhero__badge .ico { width: 14px; height: 14px; flex: none; }
.fhero h1 { margin: 0 0 18px; }
.fhero .lead { margin-left: auto; margin-right: auto; }
.fsection { padding: 48px 0 72px; }
.fsection .container { max-width: 760px; }
.fcard {
  background: var(--page);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
@media (min-width: 768px) { .fcard { padding: 36px; } }
.fcard__head { margin-bottom: 22px; text-align: center; }
.fcard__head h2 { margin: 0 0 8px; }
/* Confirmação compacta · card do upsell dentro do hero */
.fhero--tight { padding: 56px 0 64px; }
@media (min-width: 768px) { .fhero--tight { padding: 70px 0; } }
.fcard--in-hero { margin-top: 36px; text-align: left; }
#hotmart-sales-funnel { min-height: 80px; }
.fnext { margin-top: 8px; display: grid; gap: 14px; }
.fnext__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--page-soft);
  border: 0.5px solid var(--line);
  border-radius: 12px;
}
.fnext__n {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.fnext__item h3 { font-size: 19px; margin: 0 0 2px; }
.fnext__item p { font-size: 13.5px; color: var(--ink-muted); margin: 0; line-height: 1.5; }

/* ---- Anotações visuais · ajustes mobile do hero ---- */
@media (max-width: 1023px) {
  /* Anotação 2: imagem acima do texto no mobile */
  .hero__art { order: -1; margin-bottom: 8px; }
  /* Anotação 1: stats em largura total (citação estava prensada) */
  .hero__stats { flex-direction: column; gap: 18px; align-items: stretch; }
  .hero__stats > div { width: 100%; }
  .hero__stats__cite { flex: 1 1 100%; align-self: flex-start !important; }
  .hero__stats__cite dd { max-width: none; }
}
