/* ============================================================
   FORMAÇÃO SILVA — Landing de vendas
   Sistema visual: dark amadeirado + seção creme, acento laranja,
   títulos condensados caixa-alta.
   ============================================================ */

:root {
  --bg-dark:    #241d17;
  --bg-dark-2:  #2c241c;
  --bg-panel:   #322820;
  --bg-cream:   #efe9dd;
  --bg-cream-2: #e5dcca;

  --accent:     #d98326;   /* tweakable */
  --accent-ink: #1b1206;

  --cream-text: #ece4d6;
  --cream-soft: #cdc2b1;
  --muted:      #9d8d79;
  --ink:        #1c1611;
  --ink-soft:   #5c5347;

  --line-dark:  rgba(236, 228, 214, 0.12);
  --line-cream: rgba(28, 22, 17, 0.14);

  --font-display: 'Anton', 'Oswald', sans-serif;   /* tweakable */
  --font-head:    'Oswald', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);
}

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

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

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--cream-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fixed background layers: solid page color behind the dotted-surface canvas */
#page-bg { position: fixed; inset: 0; z-index: -2; background: var(--bg-dark); }
#dots    { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
body[data-herobg="dots"] #dots { display: block; }

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; line-height: .98; font-weight: 700; }

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -.005em;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .96;
}

p { line-height: 1.6; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--cream-soft); line-height: 1.65; }

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

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .06em;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--cream-text);
  border-color: var(--line-dark);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--cream-text); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-lg { padding: 20px 38px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36, 29, 23, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); color: var(--accent); font-size: 19px;
}
.brand-name { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 16px; line-height: 1; }
.brand-name small { display: block; font-size: 9.5px; letter-spacing: .34em; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: 13.5px; font-weight: 500; color: var(--cream-soft); transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
}

/* ---------- HERO shared ---------- */
.hero { position: relative; }
.hero[hidden] { display: none; }
.bullets { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.bullet { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--cream-soft); }
.bullet .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); display: grid; place-items: center; margin-top: 1px;
}
.bullet .tick svg { width: 13px; height: 13px; }
.offer-note {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--cream-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 10px 16px; border-radius: 6px;
}
.offer-note b { color: var(--accent); }
.cta-note { font-size: 13px; color: var(--muted); margin-top: 14px; letter-spacing: .02em; }

/* HERO 1 — full image, form card (reference style) */
#hero1 .h1stage {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  border-radius: 0;
}
#hero1 .h1bg { position: absolute; inset: 0; }
#hero1 .h1bg image-slot { width: 100%; height: 100%; }
#hero1 .h1scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,11,.55) 0%, rgba(20,15,11,.2) 35%, rgba(20,15,11,.9) 100%),
              linear-gradient(90deg, rgba(20,15,11,.7) 0%, rgba(20,15,11,0) 55%);
}
#hero1 .h1grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: end;
  padding-block: 56px;
}
#hero1 .display { font-size: clamp(38px, 4.8vw, 70px); margin: 18px 0 30px; }
#hero1 .lead { max-width: 34ch; }

.form-card {
  background: rgba(30, 24, 18, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark);
  border-radius: 14px; padding: 26px;
}
.form-card h3 { font-size: 24px; margin-bottom: 18px; letter-spacing: .01em; }
.field { margin-bottom: 12px; }
.field input, .field select {
  width: 100%; background: rgba(0,0,0,.28);
  border: 1px solid var(--line-dark); border-radius: 7px;
  padding: 13px 14px; color: var(--cream-text); font-family: var(--font-body); font-size: 15px;
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-ok { display: none; text-align: center; padding: 14px 0; color: var(--accent); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; }

/* HERO 2 — split text/image */
#hero2 { padding-block: clamp(48px, 7vw, 96px); }
#hero2 .h2grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
#hero2 .display { font-size: clamp(40px, 4.6vw, 66px); margin: 18px 0 22px; }
#hero2 .h2media { position: relative; }
#hero2 .h2media image-slot { width: 100%; height: clamp(420px, 60vh, 620px); }
#hero2 .price-tag {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); padding: 16px 22px; border-radius: 8px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);
}
#hero2 .price-tag { display: flex; flex-direction: column; gap: 6px; }
#hero2 .price-tag b { display: block; font-size: 32px; line-height: 1; padding-bottom: 2px; }
#hero2 .price-tag span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

/* HERO 3 — centered statement */
#hero3 { position: relative; text-align: center; }
#hero3 .h3stage { position: relative; min-height: 92vh; display: grid; place-items: center; }
#hero3 .h3bg { position: absolute; inset: 0; }
#hero3 .h3bg image-slot { width: 100%; height: 100%; }
#hero3 .h3scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,15,11,.35), rgba(20,15,11,.92)); }
#hero3 .h3content { position: relative; z-index: 2; max-width: 980px; padding-block: 80px; }
#hero3 .display { font-size: clamp(44px, 6vw, 92px); }
#hero3 .lead { margin: 26px auto 0; max-width: 56ch; }
#hero3 .h3bullets { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 34px 0; }
#hero3 .chip {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  border: 1px solid var(--line-dark); border-radius: 100px; padding: 10px 18px; color: var(--cream-soft);
  display: inline-flex; gap: 9px; align-items: center;
}
#hero3 .chip .tick { color: var(--accent); }

@media (max-width: 880px) {
  #hero1 .h1grid, #hero2 .h2grid { grid-template-columns: 1fr; }
  #hero1 .h1stage { min-height: auto; }
  #hero2 .h2media image-slot { height: 360px; }
}

/* ---------- Section scaffolding ---------- */
section.block { padding-block: clamp(64px, 8vw, 120px); }
/* opaque default so the fixed dotted canvas only shows behind the heroes */
.block { background: var(--bg-dark); }
.cream { background: var(--bg-cream); color: var(--ink); }
.cream .lead { color: var(--ink-soft); }
.cream .eyebrow { color: color-mix(in srgb, var(--accent) 80%, #6b4a1f); }
.cream .eyebrow::before { background: currentColor; }
.dark2 { background: var(--bg-dark-2); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head .h2 { margin: 16px 0 18px; }

/* ---------- Pain cards ---------- */
/* second fold: barbershop photo behind a same-color translucent filter */
#dor {
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(44,36,28,0.87), rgba(44,36,28,0.91)),
    url("assets/barbearia-dobra2.jpeg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pain {
  border: 1px solid var(--line-dark); border-radius: 12px; padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  transition: border-color .2s, transform .2s;
}
.pain:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-3px); }
.pain .num { font-family: var(--font-display); font-size: 40px; color: var(--line-dark); line-height: 1; }
.pain h3 { font-size: 22px; margin: 10px 0 10px; color: var(--cream-text); }
.pain p { color: var(--cream-soft); font-size: 15.5px; }

/* ---------- Solution pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.pillar { border-top: 3px solid var(--accent); padding-top: 22px; }
.pillar h3 { font-size: 26px; margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; }
.solution-quote {
  font-family: var(--font-head); text-transform: uppercase; line-height: 1.05;
  font-size: clamp(24px, 3vw, 38px); font-weight: 700; max-width: 22ch;
}

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 92px 1fr; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--line-dark); align-items: start;
}
.step:last-child { border-bottom: none; }
.step .snum {
  font-family: var(--font-display); font-size: 56px; color: var(--accent); line-height: .9;
}
.step h3 { font-size: 25px; margin-bottom: 8px; }
.step p { color: var(--cream-soft); max-width: 64ch; font-size: 16px; }
.step .hi { color: var(--cream-text); }

/* ---------- Modules ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mod {
  background: var(--bg-panel); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 28px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s;
}
.mod:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.mod .tag { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); }
.mod h3 { font-size: 24px; margin: 12px 0 12px; color: var(--cream-text); }
.mod p { color: var(--cream-soft); font-size: 15px; }
.mod .ghost-n { position: absolute; right: 14px; top: -8px; font-family: var(--font-display); font-size: 86px; color: rgba(236,228,214,.045); }

/* ---------- Instructor ---------- */
.inst-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,5vw,72px); align-items: center; }
.inst-media image-slot,
.inst-media .inst-photo { width: 100%; height: clamp(440px, 62vh, 640px); }
.inst-media .inst-photo { object-fit: cover; object-position: center 18%; border-radius: 16px; display: block; }
.inst-quote {
  font-family: var(--font-head); text-transform: uppercase; font-weight: 700; line-height: 1.04;
  font-size: clamp(26px, 3.4vw, 44px); margin: 30px 0; border-left: 4px solid var(--accent); padding-left: 22px;
}
.inst p { color: var(--cream-soft); font-size: 16.5px; margin-bottom: 16px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testi-grid.testi-2 { grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.testi {
  background: #fff; border-radius: 14px; padding: 28px; color: var(--ink);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 18px;
}
.testi .stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
.testi p { font-size: 16px; line-height: 1.55; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 14px; }
.testi .who image-slot { width: 52px; height: 52px; flex: none; }
.testi .who .who-photo { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.testi .who b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.testi .who span { color: var(--ink-soft); font-size: 13px; }

/* ---------- Offer / price ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(36px,5vw,64px); align-items: center; }
.price-card {
  background: var(--bg-panel); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 16px; padding: 38px; position: relative;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.price-card .ribbon {
  position: absolute; top: -14px; left: 38px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 100px;
}
.price-card .was { color: var(--muted); text-decoration: line-through; font-size: 19px; }
.price-card .now { font-family: var(--font-display); font-size: clamp(56px, 8vw, 84px); color: var(--cream-text); line-height: .9; }
.price-card .now small { font-size: 26px; vertical-align: top; color: var(--accent); }
.price-card .terms { color: var(--muted); font-size: 14px; margin-top: 4px; }
.price-card ul { list-style: none; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 11px; font-size: 15.5px; color: var(--cream-soft); }
.price-card li .tick { color: var(--accent); flex: none; }
.price-card .btn { width: 100%; justify-content: center; }
.earn-stat { font-family: var(--font-display); font-size: clamp(40px,6vw,72px); color: var(--accent); line-height: .9; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; color: var(--cream-text);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; font-size: clamp(17px,2vw,21px); font-weight: 600;
}
.faq-q .pm { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; transition: .25s; color: var(--accent); }
.faq-item.open .pm { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { color: var(--cream-soft); font-size: 16px; padding-bottom: 26px; max-width: 70ch; }

/* ---------- Final CTA ---------- */
.final { text-align: center; position: relative; overflow: hidden; }
.final .display { font-size: clamp(44px, 7vw, 100px); }
.final .lead { max-width: 60ch; margin: 22px auto 34px; }

/* ---------- Footer ---------- */
.footer { background: #1b1510; border-top: 1px solid var(--line-dark); padding-block: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer small { color: var(--muted); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .pain-grid, .pillars, .mod-grid, .testi-grid, .offer-grid, .inst-grid, .h2grid { grid-template-columns: 1fr; }
  #hero2 .h2grid, .inst-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; gap: 18px; }
}

/* image-slot empty state tuned for dark theme */
image-slot {
  --is-bg: rgba(255,255,255,.03);
  --is-border: rgba(236,228,214,.18);
  --is-fg: #9d8d79;
}

/* ---------- Hero background = animated dots ---------- */
/* hide the full-bleed photo slots and soften scrims so the dots read through */
body[data-herobg="dots"] #hero1 .h1bg,
body[data-herobg="dots"] #hero3 .h3bg { display: none; }
body[data-herobg="dots"] #hero1 .h1scrim {
  background: linear-gradient(90deg, rgba(20,15,11,.88) 0%, rgba(20,15,11,.35) 48%, rgba(20,15,11,0) 78%),
              linear-gradient(180deg, rgba(20,15,11,0) 55%, rgba(20,15,11,.75) 100%);
}
body[data-herobg="dots"] #hero3 .h3scrim {
  background: radial-gradient(ellipse at center, rgba(20,15,11,.45), rgba(20,15,11,.86));
}
/* hero2's side photo becomes the dots showing through a transparent slot */
body[data-herobg="dots"] #hero2 .h2media image-slot { opacity: 0; }

/* ---------- Hero background = studio photo (warm duotone) ---------- */
.studio-bg {
  display: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36,29,23,0.32), rgba(36,29,23,0.58)),
    url("assets/alex-estudio.jpeg");
  background-blend-mode: multiply, normal;
  background-size: cover;
  background-position: center;
  /* desaturate the blue and tint warm so it matches the palette */
  filter: grayscale(1) sepia(0.55) brightness(0.7) contrast(1.06) saturate(1.25);
}
body[data-herobg="estudio"] .studio-bg { display: block; }
/* hide the empty photo slots when the studio photo is the background */
body[data-herobg="estudio"] #hero1 .h1bg image-slot,
body[data-herobg="estudio"] #hero3 .h3bg image-slot,
body[data-herobg="estudio"] #hero2 .h2media image-slot { opacity: 0; }
/* mirror so Alex sits on the right, leaving the headline side clear */
#hero1 .studio-bg, #hero3 .studio-bg { transform: scaleX(-1); }
#hero1 .studio-bg { background-position: center 12%; }
#hero3 .studio-bg { background-position: center 14%; }
#hero2 .studio-bg { border-radius: 16px; background-position: center 10%; transform: scaleX(-1); }
/* warm the scrims a touch in studio mode for legibility + cohesion */
body[data-herobg="estudio"] #hero1 .h1scrim {
  background: linear-gradient(90deg, rgba(20,15,11,.9) 0%, rgba(20,15,11,.45) 46%, rgba(20,15,11,.1) 80%),
              linear-gradient(180deg, rgba(20,15,11,0) 50%, rgba(20,15,11,.82) 100%);
}
body[data-herobg="estudio"] #hero3 .h3scrim {
  background: radial-gradient(ellipse at center, rgba(20,15,11,.5), rgba(20,15,11,.88));
}
