/* ═══════════════════════════════════════════════
   DO ZERO AO PATRIMÔNIO — TSL V4
   Structure: servidorqueinveste.com.br
   Palette:   dap.anthonymiranda.com.br/v2
   ═══════════════════════════════════════════════ */

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

:root {
  /* ── dap v2 palette ── */
  --bg: #0a0a0a;
  --bg-light: #111111;
  --bg-card: #161616;
  --bg-card-2: #1a1a1a;
  --border: #262626;
  --border-hover: #3a3a3a;

  --accent: #f66e15;
  --accent-light: #ff8a3a;
  --accent-glow: rgba(246, 110, 21, 0.15);
  --accent-dark: #d85e10;

  --green: #48d597;
  --red: #ef6a5f;

  --text: #d4d4d4;
  --text-muted: #8a8a8a;
  --white: #ffffff;

  /* ── typography ── */
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Inter", sans-serif;

  /* ── layout ── */
  --container: min(1060px, calc(100% - 2.5rem));
  --radius: 14px;
  --radius-sm: 10px;
}


body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--white);
}

summary {
  font: inherit;
}

mark {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

/* ═══════ UTILITY ═══════ */

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.centered {
  text-align: center;
}

.accent {
  color: var(--accent);
}

.accent-text {
  color: var(--accent);
  font-weight: 600;
}

.small-caps {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.55;
}

/* ═══════ SECTIONS ═══════ */

.section {
  padding: 5rem 1.25rem;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    var(--bg-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.sub-title {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ═══════ CTA BUTTON — dap v2 orange ═══════ */

.btn-cta {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(246, 110, 21, 0.35);
  background: var(--accent-light);
}

.btn-cta:active {
  transform: translateY(0);
}

.section-cta {
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: var(--bg);
}

/* ═══════ HERO ═══════ */

.hero {
  position: relative;
  padding: 5rem 1.25rem 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Desktop: full background image */
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.75) 40%, rgba(10, 10, 10, 0.3) 65%, transparent 85%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    url('assets/img/hero-bg-desktop.webp') center right / cover no-repeat;
  background-color: var(--bg);
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Desktop: hero-img is hidden – the background image replaces it */
.hero-img {
  display: none;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

/* ── Logo Mark ── */
.logo-mark {
  margin-bottom: 1.5rem;
}

.logo-svg {
  width: 195px;
  height: auto;
}

.logo-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: block;
  color: var(--white);
}

.logo-mark-sm .logo-title {
  font-size: 1.1rem;
}

/* ── Hero Copy ── */
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Hero Image (mobile/tablet only) ── */
.hero-img img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ═══════ CHECK LIST ═══════ */

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* border between items (like reference) */
.check-list.bordered li {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.check-list.bordered li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ═══════ TESTIMONIALS ═══════ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-header strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-header span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ═══════ COMPARISON ═══════ */

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.comparison-col {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.comparison-col h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.comparison-col li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}

.comparison-col-bad {
  background: rgba(239, 106, 95, 0.05);
  border-color: rgba(239, 106, 95, 0.18);
}

.comparison-col-bad h3 {
  color: var(--red);
}

.comparison-col-bad li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.comparison-col-good {
  background: rgba(72, 213, 151, 0.05);
  border-color: rgba(72, 213, 151, 0.18);
}

.comparison-col-good h3 {
  color: var(--green);
}

.comparison-col-good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ═══════ STEPS (reference: dashed cards, badge) ═══════ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: var(--accent);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.step-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ═══════ LEARN GRID (reference: 2-col cards) ═══════ */

.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.learn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.3s;
}

.learn-card:hover {
  border-color: var(--accent);
}

.learn-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.learn-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.learn-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ═══════ HIGHLIGHT BOX ═══════ */

.highlight-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem 2rem;
  background: var(--accent-glow);
  border: 1px solid rgba(246, 110, 21, 0.22);
  border-radius: 999px;
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

.highlight-box span {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════ FIT SECTION ═══════ */

.fit-layout {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 2.5rem;
  align-items: center;
}

.fit-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.fit-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.fit-copy .section-title {
  margin-bottom: 1rem;
}

/* ═══════ OFFER STACK (reference: white table + dark price card) ═══════ */

.offer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

/* White value table */
.value-table {
  background: var(--bg-card);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.value-table h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.value-row {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  gap: 0.7rem;
}

.value-row:last-of-type {
  border-bottom: none;
}

.value-item {
  color: var(--text);
}

.value-highlight {
  border-bottom: none;
}

.value-highlight .value-item {
  color: var(--white);
  font-weight: 700;
}

.value-anchor {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.value-anchor p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.value-anchor s {
  color: var(--red);
}

/* Dark price card */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.price-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.price-from {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.price-from s {
  color: var(--red);
}

.price-label {
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.price-big {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  margin: 0.3rem 0 0;
}

.price-rs {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 1.4rem;
}

.price-big strong {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 7rem);
  line-height: 0.85;
  color: var(--accent);
}

.price-vista {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.price-installments {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price-comparison {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.price-checklist {
  text-align: left;
  padding: 1.2rem;
  background: rgba(246, 110, 21, 0.06);
  border: 1px solid rgba(246, 110, 21, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.price-checklist p {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  line-height: 1.4;
}

.price-card .btn-cta {
  width: 100%;
  margin-bottom: 0.8rem;
}

.price-trust {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ═══════ GUARANTEE ═══════ */

.guarantee-img {
  width: 240px;
  height: auto;
  margin: 0 auto 1.5rem;
}

/* ═══════ FAQ ═══════ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.3s;
  display: inline-block;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.2rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ═══════ FOOTER ═══════ */

.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  max-width: 520px;
  margin: 0.5rem auto;
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ═══════ MOBILE CTA BAR ═══════ */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-cta .btn-cta {
  width: 100%;
  display: block;
}

/* ═══════ REVEAL ═══════ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET ≤ 1024px
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {

  .hero-grid,
  .offer-layout,
  .fit-layout,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .testimonial-grid,
  .learn-grid {
    grid-template-columns: 1fr;
  }

  /* Tablet: restore the image element, remove background approach */
  .hero {
    min-height: auto;
    padding: 0;
    background: var(--bg);
    overflow: visible;
  }

  .hero .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .hero-img {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    order: 0;
  }

  .hero-copy {
    order: 0;
    text-align: center;
    max-width: none;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-img img {
    max-height: 400px;
    border-radius: 0;
  }

  .hero-copy .check-list {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .fit-img {
    max-width: 380px;
    margin: 0 auto;
  }

  .price-card {
    margin-top: 0;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 720px
   ═══════════════════════════════════════════ */

@media (max-width: 720px) {
  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .hero {
    padding: 0;
    overflow: visible;
  }

  .hero-sub,
  .lead {
    font-size: 1rem;
  }

  /* ── HERO MOBILE — premium overlapping effect ── */
  .hero .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-img {
    order: -1 !important;
  }

  .hero-copy {
    order: 1 !important;
  }

  .hero-img {
    position: relative;
    width: 100%;
    max-height: 50vh;
    overflow: hidden;
  }

  .hero-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, var(--bg) 5%, rgba(10, 10, 10, 0.6) 50%, transparent 100%);
    pointer-events: none;
  }

  .hero-img img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    max-height: none;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    margin-top: -5.5rem;
    padding: 0 1.25rem 2rem;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }

  .hero-copy .hero-sub {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .hero-copy .logo-mark {
    margin-bottom: 1rem;
  }

  .hero-copy .logo-svg {
    width: 225px;
    margin: 0 auto;
  }

  .hero-copy .check-list {
    text-align: left;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
  }

  .hero-copy .check-list li {
    font-size: 0.86rem;
  }

  /* ── CTA full-width on mobile ── */
  .btn-cta {
    width: 100%;
    display: block;
    padding: 0.95rem;
    font-size: 0.88rem;
  }

  /* ── Cards compact ── */
  .testimonial-card,
  .step-card,
  .learn-card {
    padding: 1.2rem;
  }

  .testimonial-card p,
  .step-card p,
  .learn-card p {
    font-size: 0.88rem;
  }

  /* ── Highlight pill → block ── */
  .highlight-box {
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
  }

  /* ── Offer stack ── */
  .offer-layout {
    gap: 1.2rem;
  }

  .value-table {
    padding: 1.2rem;
  }

  .value-row {
    font-size: 0.85rem;
  }

  .price-card {
    padding: 1.5rem;
  }

  .price-big strong {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  /* ── Guarantee ── */
  .guarantee-img {
    width: 180px;
  }

  /* ── Mobile CTA bar — hidden by default, shown via JS ── */
  .mobile-cta {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.has-sticky-cta {
    padding-bottom: 4.5rem;
  }

  body.has-sticky-cta .site-footer {
    padding-bottom: calc(2rem + 4.5rem);
  }
}