/* ============================================================
   Emprestô — sistema visual
   Vibe: caloroso e humano. Off-white quente + verde.
   ============================================================ */

:root {
  /* paleta base (quente) */
  --bg:        #fbf6ee;
  --bg-warm:   #f6ede0;
  --surface:   #fffdf9;
  --surface-2: #fbf3e8;
  --ink:       #241d16;
  --ink-soft:  #6a5f53;
  --ink-faint: #998c7c;
  --line:      rgba(36, 29, 22, 0.10);
  --line-soft: rgba(36, 29, 22, 0.06);

  /* acento (verde) */
  --accent:      #3f8a5b;
  --accent-deep: #2c6b44;
  --accent-soft: #e3efe6;

  /* apoio (verde quente, usado em selos/checks) */
  --good:      #4f8a5e;
  --good-soft: #e6efe6;

  /* tipografia */
  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* medidas */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(36,29,22,.05), 0 2px 8px rgba(36,29,22,.04);
  --shadow-md: 0 4px 14px rgba(36,29,22,.08), 0 12px 36px rgba(36,29,22,.07);
  --shadow-lg: 0 10px 30px rgba(36,29,22,.10), 0 30px 70px rgba(36,29,22,.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; }
.section-head p { font-size: 19px; color: var(--ink-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 17px;
  padding: 15px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-wa { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: #25d366; color: #128c4a; transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn .ico { width: 19px; height: 19px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-family: var(--font-body); font-weight: 800; font-size: 25px; letter-spacing: -.045em; text-transform: lowercase; color: var(--ink); }
.nav { display: flex; gap: 28px; margin-left: 14px; }
.nav a { font-size: 16px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.header-phone .ico { width: 17px; height: 17px; color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 88% 8%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 5% 95%, var(--bg-warm), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero-sub { font-size: 20px; color: var(--ink-soft); margin: 22px 0 30px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- simulador no hero ---------- */
.hero-sim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.hero-sim .sim-toggle { margin-bottom: 22px; }
.hero-sim .sim-field { margin-bottom: 20px; }
.hero-sim .sim-pane .sim-field:last-child { margin-bottom: 4px; }
.hero-sim .sim-result { border-radius: var(--radius); padding: 26px; margin-top: 22px; }
.hero-sim .sim-result .rbig { font-size: 46px; }
.hero-sim .sim-result .rbig small { font-size: 22px; }
.hero-sim .sim-result .rrows { gap: 12px; margin-bottom: 22px; }

/* ---------- simulador (shared) ---------- */
.sim-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 999px; }
.sim-toggle button {
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px; border: none; background: transparent; color: var(--ink-soft);
  padding: 12px; border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
.sim-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sim-field { margin-bottom: 28px; }
.sim-field .lab { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.sim-field .lab label { font-weight: 700; font-size: 15.5px; }
.sim-field .lab .val { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--accent-deep); white-space: nowrap; flex: none; }
.sim-field .lab .val small { font-size: 14px; font-family: var(--font-body); color: var(--ink-soft); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 4px solid #fff; box-shadow: var(--shadow-md); transition: transform .12s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 4px solid #fff; }
.sim-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-faint); margin-top: 9px; }
.sim-result { background: linear-gradient(165deg, #163524 0%, #244e34 100%); color: #eaf3ec; padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.sim-result .rtag { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: color-mix(in oklab, var(--accent) 55%, white); font-weight: 700; margin-bottom: 10px; }
.sim-result .rbig { font-family: var(--font-display); font-size: 58px; font-weight: 600; line-height: 1; }
.sim-result .rbig small { font-size: 26px; color: #c3b6a6; font-family: var(--font-body); font-weight: 600; }
.sim-result .rsub { color: #b8cabd; font-size: 15px; margin: 10px 0 26px; }
.sim-result .rrows { display: grid; gap: 14px; margin-bottom: 28px; }
.sim-result .rrow { display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.10); }
.sim-result .rrow:last-child { border: none; padding: 0; }
.sim-result .rrow span { color: #aec3b4; flex: none; }
.sim-result .rrow b { font-weight: 700; font-size: 16.5px; white-space: nowrap; text-align: right; }
.sim-result .btn-primary { width: 100%; background: #fff; color: var(--accent-deep); box-shadow: none; }
.sim-result .btn-primary:hover { background: #f1faf3; color: var(--accent-deep); transform: translateY(-2px); }
.sim-result .rnote { font-size: 12px; color: #8fa896; margin-top: 16px; text-align: center; }

/* ---------- produtos ---------- */
.products { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.prod-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 22px; }
.prod-icon svg { width: 28px; height: 28px; }
.prod h3 { font-size: 27px; margin-bottom: 8px; }
.prod .who { font-size: 14px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.prod p.desc { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 22px; }
.prod ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.prod li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.prod li .chk { flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; margin-top: 1px; }
.prod li .chk svg { width: 12px; height: 12px; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.prod-rate { display: flex; flex-direction: column; }
.prod-rate b { font-family: var(--font-display); font-size: 27px; font-weight: 600; }
.prod-rate span { font-size: 13px; color: var(--ink-soft); }
.prod-link { font-weight: 700; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 7px; transition: gap .15s; }
.prod:hover .prod-link { gap: 12px; }

/* ---------- como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step .num {
  font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; background: var(--accent);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 6px 14px -5px var(--accent);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-soft); }
.step::after { content: ""; position: absolute; top: 38px; left: 56px; right: -11px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }

/* ---------- vantagens ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.adv:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.adv .ai { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 18px; }
.adv .ai svg { width: 25px; height: 25px; }
.adv h3 { font-size: 20px; margin-bottom: 8px; }
.adv p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- depoimentos ---------- */
.testi { background: var(--bg-warm); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; }
.testi-card p.quote { font-size: 17px; line-height: 1.55; margin-bottom: 22px; }
.testi-who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.testi-who .av { width: 46px; height: 46px; border-radius: 50%; flex: none; background-color: var(--surface-2); background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in oklab, var(--ink) 6%, transparent) 7px 8px); border: 1px solid var(--line); }
.testi-who b { display: block; font-size: 15.5px; }
.testi-who span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-body); font-size: 18.5px; font-weight: 700; color: var(--ink); }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .2s; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq-q .pm::before { width: 12px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 12px; transition: transform .25s ease; }
.faq-item.open .pm { background: var(--accent); border-color: var(--accent); }
.faq-item.open .pm::before, .faq-item.open .pm::after { background: #fff; }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 26px; color: var(--ink-soft); font-size: 16.5px; max-width: 60ch; }
.faq-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.faq-aside h3 { font-size: 24px; margin-bottom: 10px; }
.faq-aside p { color: var(--ink-soft); margin-bottom: 22px; font-size: 16px; }

/* ---------- CTA final + footer ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 64px 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% -10%, rgba(255,255,255,.18), transparent 60%); }
.cta-inner h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; position: relative; }
.cta-inner p { font-size: 19px; color: rgba(255,255,255,.9); margin: 14px auto 30px; max-width: 48ch; position: relative; }
.cta-inner .btn-primary { background: #fff; color: var(--accent-deep); position: relative; }
.cta-inner .btn-primary:hover { background: #fff; color: var(--ink); }
.cta-inner .btn-wa { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-inner .btn-wa:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.footer { background: var(--ink); color: #c3b6a6; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fdf8f1; margin-bottom: 16px; }
.footer .brand-name { color: #fff; }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 16px; font-weight: 700; }
.footer-col a { display: block; color: #c3b6a6; font-size: 15px; margin-bottom: 11px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-about { max-width: 34ch; font-size: 15px; line-height: 1.6; }
.footer-legal { padding-top: 28px; font-size: 12.5px; color: #8c7f70; line-height: 1.65; }
.footer-legal p { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 13px; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .adv-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav, .header-phone { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .section { padding: 70px 0; }
  .wrap { padding: 0 20px; }
  .prod-grid, .adv-grid, .testi-grid, .steps, .footer-top { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
}

@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--good) 50%,transparent);} 70%{box-shadow:0 0 0 8px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
