/* Design layer for the existing sales page. The content stays in index.html. */
#root [data-pv-dobra] {
  --ink: #142e27;
  --muted: #4c6159;
  --paper: #f6f5ed;
  --panel: #fffef8;
  --pine: #0d241e;
  --mint: #bfe4c6;
  --gold: #f4b666;
  --copper: #9a481f;
  --edge: #d5ded1;
  --shadow: 0 20px 45px -29px #102d2480;
  --heading: Inter, system-ui, sans-serif;
  --pv-primary: var(--pine) !important;
  --pv-accent: var(--copper) !important;
  --pv-bg: var(--paper) !important;
  --pv-text: var(--ink) !important;
  --pv-text-muted: var(--muted) !important;
  --pv-cream: var(--panel) !important;
  --pv-pink: #edf1e5 !important;
  --pv-mint: #e8f2e4 !important;
  --pv-mint-border: var(--edge) !important;
  --pv-success-txt: #296347 !important;
  --pv-radius: 24px !important;
  --pv-container: 1160px !important;
  --pv-font-heading: var(--heading) !important;
  --pv-heading-weight: 800 !important;
  --pv-heading-tracking: -.055em !important;
  color: var(--ink);
}

#root .pv-grao { display: none; }

#root #secao-0 > div {
  position: relative;
  z-index: 2;
  padding: .7rem 1rem;
  background: linear-gradient(100deg, #a4532c, #853b1d 52%, #9e4d26) !important;
  font-size: clamp(.68rem, 2.65vw, .8rem);
  line-height: 1.4;
  letter-spacing: .09em;
}

#root section {
  position: relative;
  padding: clamp(3.6rem, 8vw, 7.4rem) clamp(1rem, 5vw, 4rem);
  text-align: center;
}

#root h1,
#root h2,
#root h3 { text-wrap: balance; }

#root section h2 {
  max-width: 23ch;
  margin-inline: auto;
  font-size: clamp(1.8rem, 4.8vw, 3.45rem);
  line-height: 1.04 !important;
}

#root section h3 { letter-spacing: -.038em !important; }

#root section > div > h2::after,
#root #planos > div:first-child h2::after {
  display: block;
  width: 3rem;
  height: 3px;
  margin: 1.25rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  content: '';
}

#root a[data-pv-cta] {
  position: relative;
  padding: .95rem clamp(1rem, 3vw, 1.7rem);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #a6542d;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #a3522d, #89401e) !important;
  color: white !important;
  box-shadow: 0 13px 21px -15px #5a250bba !important;
  font-size: clamp(.78rem, 2.7vw, .92rem) !important;
  font-weight: 800 !important;
  line-height: 1.4;
  letter-spacing: .06em !important;
  transition: translate 220ms ease, box-shadow 220ms ease;
}

#root a[data-pv-cta]::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 25%, #ffffff38 50%, transparent 75%);
  content: '';
  transition: transform 520ms ease;
}

#root :is(a[href], summary):focus-visible {
  outline: 3px solid #a85624;
  outline-offset: 5px;
}

#root :is(#secao-1, #secao-4, #secao-9) [data-pv-sup='escura'] a:focus-visible,
#root #secao-1 a:focus-visible { outline-color: #f3b971; }

/* Opening: technical grid, warm highlight and a CSS schematic behind the mockup. */
#root #secao-1 section,
#root #secao-4 section {
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 76% 18%, #254b37b3, transparent 51%),
    linear-gradient(145deg, #0d211d 18%, #17362c 100%) !important;
  color: #fffaf0 !important;
}

#root #secao-1 section {
  min-height: min(730px, 90svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(2.45rem, 5vw, 4.4rem);
}

#root #secao-1 section > div { width: 100%; min-width: 0; }

#root #secao-1 section::before,
#root #secao-4 section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#cfebcc0e 1px, transparent 1px),
    linear-gradient(90deg, #cfebcc0e 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, transparent 5%, black 56%, transparent);
  pointer-events: none;
  content: '';
}

#root #secao-1 .pv-blob {
  width: min(48vw, 36rem);
  height: min(48vw, 36rem);
  opacity: .36;
  filter: blur(60px);
}

#root #secao-1 .pv-blob-a { background: #47a575; }
#root #secao-1 .pv-blob-b { background: #ae5c2b; opacity: .2; }

#root #secao-1 .pv-hero-conteudo > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 54rem;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

#root #secao-1 .pv-kicker {
  margin: 0 0 1.2rem;
  padding: .47rem .72rem;
  border: 1px solid #c0e4c743;
  background: #e6f5da0f;
  color: #e7f2d9;
  font: 650 .7rem/1.3 var(--heading);
  letter-spacing: .015em;
}

#root #secao-1 h1 {
  max-width: 27ch;
  color: #fffaf0 !important;
  font-size: clamp(1.95rem, 5.3vw, 3.45rem);
  font-weight: 800 !important;
  line-height: 1.04 !important;
  text-wrap: balance;
}

#root #secao-1 .pv-hero-regua {
  width: 4.5rem;
  height: 3px;
  margin: 1rem 0;
  background: linear-gradient(90deg, var(--gold), #bfe4c62e);
}

#root #secao-1 :is(.pv-hero-sub, .pv-hero-paragrafo, .pv-hero-subcta) {
  max-width: 36rem;
  margin-inline: auto;
  color: #d4e1d7 !important;
  font-size: clamp(.88rem, 2.7vw, 1.02rem);
  line-height: 1.55 !important;
}

#root #secao-1 .pv-hero-sub { margin-top: 0; }
#root #secao-1 .pv-hero-paragrafo { margin-top: .8rem; }
#root #secao-1 .pv-hero-subcta { margin-top: .65rem; font-size: .76rem; }
#root #secao-1 .pv-hero-lista { margin-top: 1rem; }

#root #secao-1 .pv-hero-lista li {
  justify-content: center;
  gap: .55rem;
  margin-top: .42rem;
  color: #e0efde !important;
  font-size: clamp(.79rem, 2.6vw, .95rem);
}

#root #secao-1 .pv-hero-lista ul { text-align: center; }
#root #secao-1 .pv-hero-lista svg { width: 1.05rem; height: 1.05rem; color: var(--gold) !important; }
#root #secao-1 .pv-hero-cta { margin-top: 1.3rem; }

#root :is(#secao-1, #secao-4, #secao-9 [data-pv-sup='escura']) a[data-pv-cta] {
  border-color: #ffcc8a;
  background: linear-gradient(135deg, #ffcb86, #e79b4e) !important;
  color: #272015 !important;
  box-shadow: 0 13px 26px -14px #e5a35880 !important;
}

#root #secao-1 [data-pv-tilt] {
  display: block;
  width: 100%;
  max-width: 42rem;
  max-height: none;
  margin: 1.3rem auto .3rem;
  overflow: visible;
}

#root img[data-placas-mockup] {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

#root #secao-1 [data-pv-tilt] > img[data-placas-mockup] { max-height: none !important; }

/* Placeholder surfaces stay recognizably illustrative until real artwork is supplied. */
#root :is(#secao-1, #secao-2, #secao-7, #secao-8, #secao-9) [class*='border-dashed'] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: end;
  padding: 0 1rem 1.3rem;
  border: 1px solid #c2e1c83a;
  border-radius: 16px;
  background: radial-gradient(ellipse at 53% 42%, #40805c75 0, transparent 60%),
    radial-gradient(ellipse at 100% 15%, #ad703b62, transparent 50%),
    linear-gradient(145deg, #172e28, #0b211b 70%);
  color: #f2f8ea;
  box-shadow: inset 0 0 0 4px #cce8cb0a;
}

#root :is(#secao-1, #secao-2, #secao-7, #secao-8, #secao-9) [class*='border-dashed']::before {
  position: absolute;
  z-index: -1;
  inset: 8px;
  border-radius: 10px;
  background-image: radial-gradient(circle, #d6efcd48 1px, transparent 1.5px),
    linear-gradient(90deg, #d6efcd11 1px, transparent 1px),
    linear-gradient(#d6efcd11 1px, transparent 1px);
  background-position: center;
  background-size: 21px 21px, 42px 42px, 42px 42px;
  mask-image: radial-gradient(ellipse, black, transparent 85%);
  pointer-events: none;
  content: '';
}

#root :is(#secao-1, #secao-2, #secao-7, #secao-8, #secao-9) [class*='border-dashed']::after {
  position: absolute;
  z-index: -1;
  top: 13%;
  left: 50%;
  width: min(31%, 9rem);
  height: 49%;
  transform: translate(-50%, 0) rotate(-9deg);
  border: 1px solid #dfefd084;
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, #f4bd7d9c 0 2px, transparent 2px 8px) center 55% / 37% 25% no-repeat,
    linear-gradient(135deg, #b5d8a957, transparent 60%), #3b6a50;
  box-shadow: 11px 10px 0 -1px #152f25, 11px 10px 0 0 #96c9ac70,
    22px 20px 0 -1px #1e4031, 22px 20px 0 0 #b0dab26b, 0 10px 30px #050e0a85;
  pointer-events: none;
  content: '';
}

#root :is(#secao-1, #secao-2, #secao-7, #secao-8, #secao-9) [class*='border-dashed'] > span {
  z-index: 1;
  color: #e9f3e1;
  opacity: .9;
}

#root #secao-1 [data-pv-tilt] > div {
  max-width: none;
  height: auto;
  min-height: 13.6rem;
  max-height: none !important;
  aspect-ratio: 2.05;
  border-radius: 21px;
  box-shadow: 0 26px 60px -30px #000c;
}

#root #secao-1 [data-pv-tilt] > div::after { width: 32%; top: 14%; height: 51%; }

/* Alternating paper surfaces, high-contrast chapter break and floating cards. */
#root #secao-2 section {
  background: radial-gradient(ellipse at 50% 110%, #dbe9d6, transparent 65%), var(--paper) !important;
}

#root #secao-2 [class*='border-dashed'] { height: clamp(12rem, 33vw, 21rem); max-width: 48rem; }
#root #secao-3 section { background: #eaf0e5 !important; }
#root #secao-6 section { background: var(--panel) !important; }
#root #secao-7 section { background: linear-gradient(150deg, #e6eee0, #f4f1e6) !important; }
#root #secao-8 section { background: #eaf0e5 !important; }
#root #secao-9 section { background: radial-gradient(ellipse at 50% 42%, #e2ebdc, transparent 68%), #f7f6ef !important; }
#root #secao-10 section { background: #e7efe3 !important; }
#root #secao-11 section { background: var(--paper) !important; }

#root #secao-4 section { padding-block: clamp(4rem, 9vw, 7.7rem); }
#root #secao-4 section h2 { max-width: 19ch; color: #fffaf0 !important; }
#root #secao-4 section h2 + p { max-width: 49ch; margin-inline: auto; font-size: clamp(1rem, 2.2vw, 1.2rem); }
#root #secao-4 section p:first-child { color: var(--gold) !important; font-size: .72rem; }

#root :is(#secao-3, #secao-6, #secao-8) section .grid > div[data-pv-sup] {
  border: 1px solid var(--edge) !important;
  border-radius: 19px;
  background: var(--panel) !important;
  box-shadow: var(--shadow);
  transition: translate 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

#root #secao-3 section .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  max-width: 64rem;
  gap: .85rem;
}

#root :is(#secao-3, #secao-6) section .grid > div[data-pv-sup] {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#root #secao-3 section .grid > div { min-height: 5.3rem; padding: 1rem; }
#root #secao-3 .grid img {
  box-sizing: content-box;
  width: 1.75rem;
  height: 1.75rem;
  padding: .53rem;
  border: 1px solid #d1e3cd;
  border-radius: 11px;
  background: #e8f2e3;
}

#root #secao-6 section .grid { gap: .85rem; }
#root #secao-6 section .grid > div { padding: 1.25rem; }
#root #secao-6 section .grid > div:nth-child(3n + 2) { background: #f4f7ee !important; }
#root #secao-6 section .grid h3 { font-size: 1rem; }

#root #secao-7 section > div > [data-pv-sup='escura'] {
  max-width: 48rem;
  border: 1px solid #668875;
  background: radial-gradient(ellipse at 80% 0, #365e44, transparent 65%), var(--pine) !important;
  box-shadow: 0 24px 52px -33px #122e27be;
}

#root #secao-7 section h3 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
#root #secao-7 section [class*='border-dashed'] { height: clamp(10rem, 26vw, 15rem); }

/* Six coordinated bonus cards and two plan cards with a clear visual hierarchy. */
#root #secao-8 section .grid { gap: 1rem; }

#root #secao-8 section .grid > div {
  --art-hue: 0deg;
  padding: .5rem;
}

#root #secao-8 section .grid > div:nth-child(2) { --art-hue: 35deg; }
#root #secao-8 section .grid > div:nth-child(3) { --art-hue: -25deg; }
#root #secao-8 section .grid > div:nth-child(4) { --art-hue: 70deg; }
#root #secao-8 section .grid > div:nth-child(5) { --art-hue: 110deg; }
#root #secao-8 section .grid > div:nth-child(6) { --art-hue: -45deg; }

#root #secao-8 section .grid > div > div:first-child { border-radius: 12px; overflow: hidden; }
#root #secao-8 [data-bonus-cover] + span {
  top: .48rem;
  right: .48rem;
  padding: .27rem .45rem;
  font-size: clamp(.6rem, 2.35vw, .7rem);
  line-height: 1.25;
}
#root #secao-8 [class*='border-dashed'] { height: clamp(10rem, 22vw, 13rem); filter: hue-rotate(var(--art-hue)); }
#root #secao-8 section .grid h3 { font-size: clamp(1.14rem, 2vw, 1.42rem); }
#root #secao-8 section .grid > div > div:nth-child(2) { padding: 1rem .8rem .8rem; }
#root #secao-8 section .grid [class*='rounded-full'] { background: #e8f1e0 !important; color: #25513c !important; }

#root #planos > div:first-child > div:last-child { display: none; }
#root #planos > .grid { gap: clamp(1rem, 3vw, 1.6rem); }
#root #planos > .grid > div { border: 1px solid var(--edge); box-shadow: var(--shadow); }
#root #planos > .grid > [data-pv-sup='clara'] { background: var(--panel) !important; }

#root #planos > .grid > [data-pv-sup='escura'] {
  --pv-success-txt: #c1e9c7 !important;
  border-color: #6b987b;
  background: radial-gradient(ellipse at 85% 0, #3a6447, transparent 60%), #142f25 !important;
  box-shadow: 0 23px 46px -26px #153b2cce !important;
}

#root #planos > .grid [class*='border-dashed'] { height: clamp(9rem, 24vw, 12rem); }
#root #planos h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
#root #planos > div[class*='items-start'] { align-items: center; justify-content: center; background: #e5efe1 !important; box-shadow: var(--shadow); }

#root #secao-10 section li {
  justify-content: center;
  align-items: center;
}

#root #secao-7 section ul > li,
#root #planos > .grid > [data-pv-sup] > ul > li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  text-align: left;
}

#root #secao-7 section ul > li > svg,
#root #planos > .grid > [data-pv-sup] > ul > li > svg { margin-top: .28em; }

#root #secao-10 section .grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  max-width: 44rem;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#root #secao-10 section h2 { margin-inline: auto; font-size: clamp(1.6rem, 3.8vw, 2.5rem); }
#root #secao-10 img { max-width: min(13rem, 68%); }

#root #secao-11 details {
  margin-bottom: .65rem;
  padding: .95rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 7px 15px -14px #18412e7a;
  transition: background-color 240ms ease, border-color 240ms ease;
}

#root #secao-11 details[open] { border-color: #89b097; background: #edf6e9; }
#root #secao-11 summary {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) 1rem;
  gap: .6rem;
  font-size: clamp(.96rem, 2.5vw, 1.15rem);
  line-height: 1.45;
}

#root #secao-11 summary::before { content: ''; }

#root footer {
  border-top: 1px solid #a7cdaa27;
  background: #10271e !important;
  color: #dbe8d8 !important;
  padding-block: clamp(2rem, 6vw, 3.6rem);
}

html::before {
  position: fixed;
  z-index: 999;
  inset: 0 0 auto;
  height: 3px;
  transform: scaleX(var(--placas-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, #72b594, #ffc47d);
  pointer-events: none;
  content: '';
}

@media (min-width: 48rem) {
  #root #secao-8 section .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 39.99rem) {
  #root #secao-1 section { padding-block: 1.7rem; }
  #root #secao-1 h1 { max-width: 20ch; }
  #root #secao-1 .pv-hero-regua { margin-block: .65rem; }
  #root #secao-1 [data-pv-tilt] > div { min-height: 10.5rem; aspect-ratio: 2.05; }
  #root #secao-1 .pv-hero-lista li { margin-top: .3rem; }
  #root #secao-1 .pv-hero-cta { margin-top: .9rem; }
  #root #secao-1 .pv-hero-cta, #root #secao-1 a[data-pv-cta] { width: 100%; }
  #root #secao-3 section .grid, #root #secao-6 section .grid { margin-top: 1.8rem; }
  #root #secao-8 section .grid { margin-inline: auto; max-width: 32rem; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #root a[data-pv-cta]:hover { translate: 0 -3px; scale: 1; }
  #root a[data-pv-cta]:hover::before { transform: translateX(110%); }

  #root :is(#secao-3, #secao-6, #secao-8) section .grid > div[data-pv-sup]:hover {
    translate: 0 -5px;
    scale: 1;
    border-color: #91b3a0 !important;
    box-shadow: 0 19px 40px -22px #1f503b82;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #root #secao-1 [data-pv-tilt] > div::after { animation: sheet-hover 5.5s ease-in-out infinite; }
  #root #secao-4 section::before { animation: grid-glow 7s ease-in-out infinite alternate; }
}

@media (prefers-reduced-motion: reduce) {
  #root *, #root *::before, #root *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}

@keyframes sheet-hover {
  50% { transform: translate(-50%, -6px) rotate(-7deg); }
}

@keyframes grid-glow {
  from { opacity: .45; }
  to { opacity: 1; }
}
