/* =========================================================
   Lucas Barros — TechFinance Business & Wealth Planner
   Tema claro · Montserrat · cards em trilho horizontal
   ========================================================= */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;
  --surface:     #ffffff;
  --line:        #e5e8ee;
  --line-strong: #cfd5df;

  --ink:         #0f1a2e;   /* títulos */
  --text:        #2c3648;   /* corpo */
  --muted:       #5f6b7f;

  --navy:        #12203a;
  --navy-deep:   #0a1425;

  --gold:        #c19a4b;   /* preenchimentos decorativos */
  --gold-text:   #8a6318;   /* dourado com contraste para texto */
  --gold-soft:   #faf4e8;
  --gold-line:   #e9dcbf;

  --radius:      18px;
  --radius-sm:   12px;
  --wrap:        1180px;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(15, 26, 46, .05);
  --shadow:    0 18px 40px -24px rgba(15, 26, 46, .28);
  --shadow-lg: 0 30px 70px -32px rgba(15, 26, 46, .35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; }

h1 em, h2 em { font-style: normal; color: var(--gold-text); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 12px 26px -16px rgba(18, 32, 58, .8);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(18, 32, 58, .9); }
.btn-ghost {
  background: #fff; border-color: var(--line-strong); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); transform: translateY(-2px); }
.btn-sm { padding: .58rem 1.15rem; font-size: .88rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 75, .16);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: .92rem; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: var(--ink); font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s ease; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav .nav-cta { color: #fff; }
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 6.5vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -15% auto -15%; height: 720px;
  background:
    radial-gradient(46% 55% at 20% 28%, rgba(193, 154, 75, .16), transparent 70%),
    radial-gradient(42% 52% at 82% 12%, rgba(18, 32, 58, .07), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
h1 { margin-bottom: 1.3rem; }
.hero-copy .lead { max-width: 54ch; }

.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 400; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.9rem 0 1.7rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-badges li {
  padding: .42rem 1rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
  background: var(--gold-soft);
  font-size: .8rem; font-weight: 600; color: var(--gold-text);
}

/* ---------- Fotos ---------- */
.hero-media { margin: 0; position: relative; }

.photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* proporção 2:3 = a das fotos originais (848×1264), sem corte no plano inteiro */
.photo-hero { aspect-ratio: 2 / 3; }
.photo-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(10, 20, 37, .62), transparent);
  pointer-events: none;
}

.photo-caption {
  position: absolute; left: 1.15rem; bottom: 1.15rem; z-index: 2;
  display: flex; flex-direction: column;
  padding: .75rem 1.15rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-radius: 14px; box-shadow: var(--shadow);
}
.photo-caption strong { color: var(--ink); font-size: .95rem; font-weight: 700; }
.photo-caption span { font-size: .76rem; font-weight: 500; color: var(--muted); }

/* estado de espera: nenhuma foto encontrada em assets/img */
.photo.is-empty img, .author.is-empty img { display: none; }
.photo.is-empty::before, .author.is-empty::before {
  content: "LB";
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  background: var(--bg-soft);
  font-size: 2.4rem; font-weight: 800; letter-spacing: .06em;
  color: var(--line-strong);
}

/* ---------- Faixa de credenciais ---------- */
.strip { background: var(--bg-soft); border-block: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; }
.strip-item { display: flex; flex-direction: column; gap: .15rem; }
.strip-item strong { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.strip-item span { font-size: .85rem; font-weight: 500; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head h2 { margin-bottom: 1rem; }

.sub-head { font-size: 1.12rem; font-weight: 700; }
.sub-lead { max-width: 62ch; margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.sub-lead em { color: var(--gold-text); font-style: italic; font-weight: 600; }

/* sem trilhos entre a abertura e o fechamento, o respiro dobrado fica exagerado */
.section-head + .section-close { margin-top: 0; }

.section-close {
  max-width: 78ch; margin-top: 2.75rem; padding: 1.15rem 1.4rem;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text); font-size: .98rem; font-weight: 500;
}

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.author {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.75rem; padding: .85rem 1.25rem .85rem .85rem;
  background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  width: fit-content; max-width: 100%;
}
.author img {
  flex: none;
  width: 66px; height: 66px; border-radius: 50%;
  object-fit: cover; object-position: 50% 22%;
  border: 2px solid var(--gold-line);
}
.author figcaption { display: flex; flex-direction: column; line-height: 1.35; }
.author strong { color: var(--ink); font-size: .98rem; font-weight: 700; }
.author span { font-size: .78rem; font-weight: 500; color: var(--muted); }

.about-intro > p { color: var(--text); }

.quote {
  margin: 1.75rem 0 0; padding: 1.4rem 1.6rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  font-size: 1.02rem; font-style: italic; font-weight: 500; line-height: 1.6;
  color: var(--ink);
}

.timeline { display: grid; gap: 1.5rem; counter-reset: tl; }
.timeline li { position: relative; padding-left: 3.25rem; counter-increment: tl; }
.timeline li::before {
  content: counter(tl, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold-text); font-size: .78rem; font-weight: 800;
}
.timeline li::after {
  content: ""; position: absolute; left: 17px; top: 42px; bottom: -1.5rem;
  width: 1px; background: linear-gradient(var(--line-strong), transparent);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Trilho horizontal de cards ---------- */
.rail-wrap { margin-top: 2.5rem; }
.rail-wrap:first-of-type { margin-top: 0; }

.rail-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 1.3rem;
}
.rail-nav { display: flex; gap: .5rem; flex: none; }
.rail-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--ink); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.rail-btn:disabled { opacity: .3; cursor: default; }

.rail {
  display: flex; gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: .4rem 2px 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.rail .card {
  flex: 0 0 clamp(255px, 30%, 330px);
  scroll-snap-align: start;
}
.rail .card-feature { flex-basis: clamp(255px, 42%, 460px); }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column;
  padding: 1.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}
.card-tag {
  display: inline-block; align-self: flex-start; margin-bottom: .85rem;
  padding: .28rem .72rem;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-text);
}
.card h4 { margin-bottom: .55rem; }
.card p { margin: 0 0 .7rem; color: var(--muted); font-size: .93rem; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); font-weight: 700; }

.card-feature { background: linear-gradient(165deg, var(--gold-soft), #fff 60%); border-color: var(--gold-line); }

/* ---------- Saltos patrimoniais ---------- */
.leap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2.25rem;
}
.leap {
  display: flex; align-items: center; gap: 1.1rem;
}
.leap-icon {
  flex: none;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(150deg, #1c3054, var(--navy-deep));
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(18, 32, 58, .75);
  transition: transform .25s ease, box-shadow .25s ease;
}
.leap-icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.leap:hover .leap-icon { transform: translateY(-3px); box-shadow: 0 18px 30px -14px rgba(18, 32, 58, .85); }
.leap-label {
  color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.35;
}

/* ---------- Diferencial ---------- */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.diff-grid h2 { margin-bottom: 1rem; }
.diff-grid .btn { margin-top: .5rem; }

.diff-list { display: grid; gap: .75rem; }
.diff-list li {
  display: grid; gap: .15rem;
  padding: 1.05rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--muted); font-size: .93rem;
}
.diff-list strong { color: var(--ink); font-size: .98rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: .7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq details[open] { border-color: var(--gold-line); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer; color: var(--ink); font-weight: 600; font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-weight: 500; font-size: 1.1rem; line-height: 1;
  color: var(--gold-text);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-body { padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: .94rem; }
.faq-body p { margin: 0; }
.faq-body strong { color: var(--ink); font-weight: 700; }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: linear-gradient(180deg, #fff 0%, var(--gold-soft) 100%);
  border-top: 1px solid var(--line);
}
.cta-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-media { margin: 0; }
.photo-cta { aspect-ratio: 3 / 4; }
.photo-cta img { object-position: 50% 18%; }
.cta-copy h2 { margin-bottom: 1rem; }
.cta-copy .lead { max-width: 52ch; }
.cta .hero-actions { margin-bottom: 1rem; }
.cta-note { margin: 0; font-size: .84rem; font-weight: 500; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c6cede; padding: 3.5rem 0 2rem; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .1); color: #fff; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #8f9bb3; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .9rem; color: #8f9bb3; }
.site-footer h3 {
  margin-bottom: .95rem;
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.site-footer ul { display: grid; gap: .5rem; }
.site-footer li a { font-size: .9rem; color: #8f9bb3; transition: color .2s ease; }
.site-footer li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: .78rem; color: #78849c; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }
  .leap-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-media { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav {
    position: fixed; inset: 74px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta { margin-top: 1rem; border-bottom: 0; justify-content: center; padding: .9rem 1.25rem; }
  .nav-toggle { display: block; }

  .strip-inner { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }

  .rail-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  /* o trilho vaza para as bordas da tela no mobile */
  .rail {
    margin-inline: calc(50% - 50vw);
    padding-inline: max(1.25rem, calc(50vw - 50%));
    scroll-padding-inline: max(1.25rem, calc(50vw - 50%));
  }
  .rail .card, .rail .card-feature { flex-basis: min(78vw, 320px); }

  .leap-grid { gap: 1.25rem 1rem; }
  .leap { gap: .85rem; }
  .leap-icon { width: 50px; height: 50px; border-radius: 14px; }
  .leap-icon svg { width: 26px; height: 26px; }
  .leap-label { font-size: .92rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .author { border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
