/* ============================================================
   FRESTA — Landing Page
   Sistema visual: cores, tipografia, espaçamento, componentes
   ============================================================ */

:root {
  /* Brand */
  --blue:       #11239E;
  --blue-deep:  #0C1A7E;
  --blue-ink:   #1A1F70;   /* corpo de texto — azul-tinta, nunca preto */
  --gold:       #A96C29;
  --gold-mid:   #C68B43;
  --gold-soft:  #E7B877;
  --paper:      #F6F1E8;
  --cream:      #EFE7D7;
  --line:       rgba(17,35,158,.14);
  --line-on-blue: rgba(246,241,232,.20);

  /* Type */
  --display: 'EB Garamond', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --text-col: 680px;
  --pad-x: clamp(22px, 6vw, 90px);
  --sec-y: clamp(84px, 12vw, 168px);
}

/* These get overridden by the Tweaks panel */
:root {
  --display-active: var(--display);
  --gold-accent: var(--gold);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--blue-ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: var(--paper); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .24em;
  color: var(--gold-accent);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
}
.eyebrow--on-blue { color: var(--gold-soft); }
.eyebrow .mark { height: 11px; width: auto; opacity: .9; }

h1, h2, h3 { font-family: var(--display-active); font-weight: 500; margin: 0; letter-spacing: -.005em; }
.h-hero {
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.0; letter-spacing: -.015em;
  text-wrap: balance;
}
.h-sec {
  font-size: clamp(33px, 4.6vw, 58px);
  line-height: 1.08; text-wrap: balance;
}
.h-sub {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15; text-wrap: balance;
}
em, .it { font-style: italic; }
.display-italic { font-family: var(--display-active); font-style: italic; font-weight: 500; }

.lead {
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.55; color: var(--blue-ink);
}
.body { font-size: 18px; line-height: 1.68; color: var(--blue-ink); }
.muted { opacity: .62; }
.meta { font-family: var(--sans); font-size: 13.5px; letter-spacing: .01em; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); position: relative; }
.text-col { max-width: var(--text-col); }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-blue  { background: var(--blue); color: var(--paper); }
.bg-blue .lead, .bg-blue .body { color: rgba(246,241,232,.84); }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 16px 30px; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background .3s ease, color .3s ease, box-shadow .3s ease;
  text-decoration: none; line-height: 1.2;
}
.btn .arr { transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--blue); color: var(--paper); }
.btn-solid:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(17,35,158,.6); }
.btn-gold { background: var(--gold-soft); color: var(--blue); }
.btn-gold:hover { background: #efc78d; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-2px); }
.btn-ghost--on-blue { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-on-blue); }
.btn-ghost--on-blue:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn-lg { padding: 19px 36px; font-size: 16px; }

.cta-note { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; opacity: .6; }

/* ---------- Links ---------- */
.tlink {
  color: var(--gold-accent); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: opacity .2s ease;
}
.tlink:hover { opacity: .7; }

/* ---------- Fresta divider (sliver of light) ---------- */
.fresta-rule {
  height: 1px; width: 100%;
  background: linear-gradient(to right, transparent, var(--line) 18%, var(--line) 82%, transparent);
  border: none; margin: 0;
}
.fresta-rule--blue { background: linear-gradient(to right, transparent, var(--line-on-blue) 18%, var(--line-on-blue) 82%, transparent); }

/* vertical light sliver used decoratively */
.light-sliver {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(246,241,232,.85), transparent);
  box-shadow: 0 0 70px 24px rgba(246,241,232,.22);
  pointer-events: none;
}

/* ---------- Section mark: filete + símbolo (opção B) ---------- */
.sec-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.sec-mark .rule { height: 1px; width: 46px; background: var(--gold-accent); opacity: .55; transition: width .3s ease, opacity .3s ease; }
.sec-mark img { height: 15px; width: auto; opacity: .92; }
.sec-mark--on-blue .rule { background: var(--gold-soft); opacity: .7; }
/* opção A — só o símbolo (esconde o filete) */
body.mark-a .sec-mark .rule { width: 0; opacity: 0; }

/* ---------- Numbered / fresta list ---------- */
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pain-item {
  display: grid; grid-template-columns: 54px 1fr; align-items: start; gap: 8px;
  padding: 26px 0; border-top: 1px solid var(--line-on-blue);
  font-size: clamp(18px, 2vw, 22px); line-height: 1.42;
  font-family: var(--display-active); color: var(--paper);
}
.pain-item:last-child { border-bottom: 1px solid var(--line-on-blue); }
.pain-item .idx { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold-soft); padding-top: 9px; }

/* ---------- Cards (oferta) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 40px 34px; display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease, border-color .4s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(17,35,158,.4); border-color: rgba(17,35,158,.28); }
.card .card-mark { height: 22px; width: auto; align-self: flex-start; margin-bottom: 26px; opacity: .9; }
.card h3 { font-size: 27px; line-height: 1.12; min-height: 3.36em; margin-bottom: 14px; color: var(--blue); }
.card .card-body { flex: 1; font-size: 16.5px; line-height: 1.6; }
.card .card-price { font-family: var(--sans); font-size: 14px; letter-spacing: .02em; min-height: 3.2em; margin: 22px 0 26px; color: var(--gold-accent); font-weight: 600; }
.card--feature { background: var(--cream); border-color: rgba(169,108,41,.3); }

/* Desktop: subgrid alinha símbolo, título, corpo, preço e botão entre os 3 cards */
@media (min-width: 901px) {
  .cards { grid-template-rows: auto auto 1fr auto auto; }
  .card { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
  .card .card-mark { justify-self: start; }
  .card .card-body { flex: none; }
}
/* CTAs dos cards: largura total, centralizados e mesma altura → alinha o preço acima */
.card .btn { width: 100%; justify-content: center; text-align: center; min-height: 70px; }

/* two columns generic */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.two-col--wide { gap: clamp(48px, 8vw, 130px); }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.bg-blue .acc, .bg-blue .acc-item { border-color: var(--line-on-blue); }
.acc-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4px; text-align: left;
  font-family: var(--display-active); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.25;
  color: var(--blue); font-weight: 500;
}
.bg-blue .acc-q { color: var(--paper); }
.acc-icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: var(--gold-accent); border-radius: 2px; }
.acc-icon::before { left: 0; right: 0; top: 10px; height: 2px; }
.acc-icon::after  { top: 0; bottom: 0; left: 10px; width: 2px; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .5s cubic-bezier(.2,.7,.3,1), opacity .4s ease; opacity: 0; }
.acc-item.open .acc-a { opacity: 1; }
.acc-a-inner { padding: 0 4px 30px; max-width: 760px; font-size: 17px; line-height: 1.65; }

/* ---------- Placeholder (image slot) ---------- */
.ph {
  position: relative; border-radius: 6px; overflow: hidden;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(135deg, rgba(17,35,158,.05) 0 12px, rgba(17,35,158,.09) 12px 24px);
  display: flex; align-items: flex-end;
  border: 1px solid var(--line);
}
.ph--blue { background-color: rgba(17,35,158,.9); background-image: repeating-linear-gradient(135deg, rgba(246,241,232,.06) 0 12px, rgba(246,241,232,.11) 12px 24px); border-color: var(--line-on-blue); }
.ph .ph-label {
  margin: 16px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--paper); padding: 6px 11px; border-radius: 4px; font-weight: 600;
}
.ph--blue .ph-label { color: var(--paper); background: rgba(12,26,126,.85); }

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--display-active); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 4vw, 50px); line-height: 1.18; text-wrap: balance;
}

/* ---------- Header / nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled { background: rgba(246,241,232,.94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-top: 14px; padding-bottom: 14px; }
.nav .brand { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--sans); font-size: 14.5px; color: var(--blue); text-decoration: none; opacity: .82; white-space: nowrap; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; }
.nav-links a.nav-cta, .nav-links a.btn-solid { color: var(--paper); opacity: 1; }
/* nav claro sobre hero escuro (página da mentoria) */
.nav--dark .nav-links a { color: var(--paper); opacity: .85; }
.nav--dark .nav-links a:hover { opacity: 1; }
.nav--dark .nav-links a.btn-gold { color: var(--blue); opacity: 1; }
.nav-cta { font-size: 14px; padding: 11px 22px; }
.section { scroll-margin-top: 92px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue); color: var(--paper); padding: clamp(70px,9vw,120px) 0 48px; position: relative; overflow: hidden; }
.footer .foot-mark { height: clamp(38px, 6.5vw, 66px); width: auto; }
.footer a { color: rgba(246,241,232,.8); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--paper); }

.footer .container ul { gap: 14px !important; }
.footer .container ul a { line-height: 1.3; }

/* ===== Página da Mentoria (imagem conduz, texto sussurra) ===== */
.m-hero {
  position: relative; min-height: 90vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center 40%; overflow: hidden;
}
.m-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,26,126,.84), rgba(12,26,126,.34) 48%, rgba(12,26,126,.14));
}
.m-hero .container { position: relative; z-index: 1; padding-bottom: clamp(54px,8vw,108px); padding-top: 150px; }
.m-fig { width: 100%; border-radius: 8px; object-fit: cover; display: block; }
.m-quote {
  font-family: var(--display-active); font-style: italic; font-weight: 500;
  font-size: clamp(26px,3.6vw,46px); line-height: 1.18; color: var(--blue); text-wrap: balance;
}
.m-phase { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.m-phase .ph-n { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold-accent); }
.m-phase .ph-dur { font-family: var(--sans); font-size: 12.5px; letter-spacing: .04em; color: var(--blue-ink); opacity: .55; white-space: nowrap; }
.m-phase h3 { font-family: var(--display-active); font-weight: 500; font-size: clamp(22px,2.5vw,30px); color: var(--blue); margin: 4px 0 8px; }
@media (max-width: 760px) { .m-phase { grid-template-columns: 1fr; gap: 4px; } }
.m-cta-actions .btn { flex: 0 0 auto; white-space: nowrap; }

/* ===== Timeline do percurso ===== */
.tl { margin: clamp(46px,6vw,78px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(20px,3vw,40px); --tl-gap: clamp(20px,3vw,40px); }
.tl-step { display: flex; flex-direction: column; }
.tl-title { font-family: var(--display-active); font-weight: 500; color: var(--blue); font-size: clamp(20px,2.2vw,27px); line-height: 1.15; margin: 0; }
.tl-rail { position: relative; height: 14px; margin: 18px 0; }
.tl-rail::before { content: ''; position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: calc(-1 * var(--tl-gap)); height: 2px; background: rgba(169,108,41,.4); }
.tl-step:last-child .tl-rail::before { right: 0; }
.tl-dot { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--paper); }
.tl-dur { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); opacity: .6; }
.tl-desc { font-size: 15.5px; line-height: 1.55; color: var(--blue-ink); margin: 10px 0 0; }
@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr; }
  .tl-step { position: relative; padding-left: 30px; padding-bottom: 30px; }
  .tl-rail { position: absolute; left: 6px; top: 4px; bottom: 0; height: auto; width: 2px; margin: 0; }
  .tl-rail::before { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; transform: none; }
  .tl-step:last-child .tl-rail::before { bottom: auto; height: 13px; }
  .tl-dot { top: 0; left: 50%; transform: translateX(-50%); }
}

/* ---------- Reveal (subtle motion) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
body.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Lead gate (captura antes do download) ---------- */
.lg-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(12,26,126,.42);
  backdrop-filter: blur(7px);
  animation: lg-fade .28s ease both;
}
.lg-modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--paper);
  border-radius: 14px;
  padding: 42px 40px 36px;
  box-shadow: 0 40px 90px -30px rgba(12,26,126,.55), 0 2px 0 rgba(169,108,41,.18);
  animation: lg-rise .42s cubic-bezier(.2,.7,.3,1) both;
}
.lg-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border: none; background: transparent;
  font-size: 26px; line-height: 1; color: var(--blue-ink); opacity: .4;
  cursor: pointer; border-radius: 50%; transition: opacity .2s ease, background .2s ease;
}
.lg-close:hover { opacity: .9; background: rgba(17,35,158,.07); }
.lg-sym { height: 22px; width: auto; display: block; margin-bottom: 18px; }
.lg-title { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--blue); margin: 0; letter-spacing: -.01em; }
.lg-sub { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--blue-ink); opacity: .72; margin: 10px 0 24px; }

.lg-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.lg-field label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.lg-input {
  font-family: var(--sans); font-size: 16px; color: var(--blue-ink);
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 9px; padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%; box-sizing: border-box;
}
.lg-input::placeholder { color: rgba(26,31,112,.4); }
.lg-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,35,158,.12); }
.lg-input--err { border-color: #B24A39; }
.lg-input--err:focus { box-shadow: 0 0 0 3px rgba(178,74,57,.14); }
.lg-err { font-family: var(--sans); font-size: 12.5px; color: #B24A39; margin-top: 6px; }

.lg-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 26px; cursor: pointer; }
.lg-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); flex: 0 0 auto; cursor: pointer; }
.lg-consent span { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--blue-ink); opacity: .78; }
.lg-consent--err span { color: #B24A39; opacity: 1; }

.lg-submit { width: 100%; justify-content: center; }
.lg-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.lg-done { text-align: left; }
.lg-relink { background: none; border: none; padding: 0 0 0 4px; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }

@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lg-backdrop, .lg-modal { animation: none; }
}
@media (max-width: 480px) {
  .lg-modal { padding: 38px 26px 30px; }
  .lg-title { font-size: 26px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card h3 { min-height: 0; }
  .two-col, .two-col--wide { grid-template-columns: 1fr !important; gap: 44px; }
  .nav-links { display: none; }
  /* mobile: nav só mostra o logo; fundo quase sólido ao rolar pra o título não vazar por trás */
  .nav.scrolled { background: rgba(246,241,232,.98); }
  /* mobile: títulos sticky de 2 colunas voltam ao fluxo normal pra não sobrepor a lista */
  .sticky-col { position: static !important; top: auto !important; }
  /* mobile: símbolo de fundo do rodapé visível por inteiro, centralizado */
  .footer .foot-sym { height: auto !important; width: 88% !important; right: auto !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); opacity: .07 !important; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .pain-item { grid-template-columns: 40px 1fr; }
}
