/* ============================================================
   G8 Tech — Landing page
   1. Tokens
   2. Base
   3. Header / nav
   4. Botões
   5. Hero
   6. Perguntas
   7. Onde a IA ajuda
   8. Auto-diagnóstico
   9. Diagnóstico
   10. Comece pequeno
   11. CTA final
   12. Rodapé
   13. Reveal / motion
   14. Responsivo
   ============================================================ */

/* 1. Tokens -------------------------------------------------- */
:root {
  --bg: #e9efec;
  --bg-soft: #f1f4f2;
  --surface: #f8faf8;
  --green-050: #edf3f0;
  --green-100: #dbe8e2;
  --green-200: #bfd2c8;
  --green-500: #6e9789;
  --green-700: #285a58;
  --green-800: #234e52;
  --green-900: #173b3e;
  --gold: #d89a3d;
  --gold-hover: #c9872e;
  --gold-ink: #a86f1a;
  --text: #1f292d;
  --muted: #55666a;
  --border: #d7dfdb;
  --shadow: 0 14px 36px rgba(26, 50, 46, 0.08);
  --shadow-soft: 0 8px 24px rgba(26, 50, 46, 0.05);
  --radius: 18px;
  --max: 1200px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', 'Avenir Next', Inter, Arial, sans-serif;
}

/* 2. Base ---------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 1, 'cv02' 1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(216, 154, 61, .55); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-toned { background: linear-gradient(180deg, #edf2ef 0%, #e7eeea 100%); }
.section-soft { background: #f3f5f3; }
.section-green { background: linear-gradient(180deg, #e2ebe7 0%, #dce7e2 100%); }

/* 3. Header / nav ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 78, 82, 0.06);
  transition: box-shadow .25s var(--ease-out);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(19, 53, 54, 0.08); }
.nav-wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: max-content; }
.brand-main { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; color: #143d42; }
.brand-sub { font-size: 10px; line-height: 1.2; color: var(--muted); }
.desktop-nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.desktop-nav a { color: #385053; }
.desktop-nav a:hover { color: var(--green-800); }
.nav-cta { margin-left: 10px; }

.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.menu-button span { display: block; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 10px; transition: transform .2s var(--ease-out), opacity .2s var(--ease-out); }
.mobile-nav { display: none; padding: 10px 20px 20px; background: #f4f7f5; border-top: 1px solid var(--border); }
.mobile-nav.open { display: grid; gap: 14px; }

/* 4. Botões -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; font-weight: 700; cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out), color .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #fff; padding: 13px 22px; box-shadow: 0 7px 18px rgba(216,154,61,.22); letter-spacing: .01em; }
.btn-primary:hover { background: var(--gold-hover); box-shadow: 0 10px 24px rgba(201,135,46,.27); }
.btn-primary span { transition: transform .2s var(--ease-out); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-large { padding: 17px 26px; font-size: 16px; }
.btn-ghost {
  padding: 16px 24px; font-size: 16px;
  color: var(--green-800); background: transparent;
  border: 1.5px solid rgba(35, 78, 82, .22);
}
.btn-ghost:hover { background: rgba(35, 78, 82, .06); border-color: rgba(35, 78, 82, .38); }
.btn-whats {
  padding: 15px 22px; font-size: 15px;
  background: #1d7a52; color: #fff;
  box-shadow: 0 7px 18px rgba(29, 122, 82, .22);
}
.btn-whats:hover { background: #176342; box-shadow: 0 10px 24px rgba(23, 99, 66, .27); }
.btn-whats svg { width: 20px; height: 20px; flex: none; }

/* 5. Hero ---------------------------------------------------- */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 620px; align-items: stretch; }
.hero-copy { padding: 36px 48px 70px 0; align-self: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--green-700); text-transform: uppercase; }
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: var(--gold);
  border-radius: 2px;
  vertical-align: middle;
}
.eyebrow.light { color: #c7ddd4; }

.hero h1, .section-heading h2, .diagnostic h2, .small-start h2, .final-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero h1 { margin: 0; max-width: 640px; font-size: clamp(48px, 5.2vw, 68px); line-height: 1.04; color: #173d42; }
.accent-serif { font-style: italic; font-weight: 500; color: var(--gold-ink); }
.hero-lead { max-width: 590px; margin: 24px 0 6px; font-size: 20px; color: #31474b; text-wrap: pretty; }
.hero-text { max-width: 590px; margin: 0 0 30px; font-size: 16px; color: var(--muted); text-wrap: pretty; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.benefits { display: flex; gap: 34px; margin-top: 38px; }
.benefit { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #3f5659; line-height: 1.25; }
.icon-circle, .question-icon, .solution-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green-100); color: var(--green-800);
  flex: none;
}
.icon-circle svg, .question-icon svg, .solution-icon svg { width: 22px; height: 22px; }

.hero-media {
  position: relative;
  align-self: center;
  overflow: hidden;
  border-radius: 32px 0 0 32px;
}
.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 6. Perguntas ---------------------------------------------- */
.questions, .applications, .diagnostic { padding: 58px 0; }
.section-heading.centered { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.section-heading h2, .diagnostic h2, .small-start h2, .final-cta h2 { margin: 0; color: #173d42; font-size: clamp(36px, 4vw, 46px); line-height: 1.1; font-weight: 500; }
.section-lead { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.question-card { display: flex; gap: 18px; padding: 28px; background: rgba(255,255,255,.58); border: 1px solid rgba(35,78,82,.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.question-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; }
.question-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* 7. Onde a IA ajuda ---------------------------------------- */
.section-heading.split { display: grid; grid-template-columns: 1.6fr .8fr; gap: 60px; align-items: end; margin-bottom: 28px; }
.section-heading.split p:last-child { color: #4e6467; margin: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card { background: rgba(255,255,255,.75); border-radius: 18px; overflow: hidden; border: 1px solid rgba(35,78,82,.08); box-shadow: var(--shadow-soft); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-photo-img { width: 100%; height: 158px; object-fit: cover; object-position: center 60%; display: block; }
.solution-body { position: relative; padding: 24px; }
.solution-icon { position: absolute; top: -24px; left: 22px; border: 4px solid rgba(255,255,255,.9); }
.solution-body h3 { margin: 8px 0; font-size: 19px; }
.solution-body p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.solution-body strong { display: block; padding-top: 14px; border-top: 1px solid var(--border); color: var(--green-700); font-size: 13px; }

/* 8. Auto-diagnóstico --------------------------------------- */
.selfcheck { padding: 74px 0; background: linear-gradient(180deg, #f5f8f6 0%, #eaf1ed 100%); }
.selfcheck-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 30px; align-items: start; margin-top: 8px; }

.checks { display: grid; gap: 12px; }
.check {
  display: flex; align-items: flex-start; gap: 16px; text-align: left; width: 100%;
  padding: 18px 20px; cursor: pointer;
  background: rgba(255,255,255,.72);
  border: 1.5px solid rgba(35,78,82,.10);
  border-radius: 14px;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}
.check:hover { border-color: rgba(35,78,82,.28); transform: translateX(2px); }
.check[aria-pressed="true"] { background: #fff; border-color: var(--green-700); box-shadow: var(--shadow-soft); }
.check-box {
  width: 24px; height: 24px; flex: none; margin-top: 2px;
  border-radius: 7px; border: 1.6px solid rgba(35,78,82,.3);
  display: grid; place-items: center;
  color: transparent;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.check-box svg { width: 15px; height: 15px; }
.check[aria-pressed="true"] .check-box { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.check-text { display: grid; gap: 3px; }
.check-text strong { font-size: 15px; font-weight: 700; color: #1f3a3c; line-height: 1.35; }
.check-text em { font-style: normal; font-size: 13px; color: var(--muted); }

.selfcheck-result {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid rgba(35,78,82,.10);
  border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.result-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #173d42; }
.result-count { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }

.result-empty { display: grid; justify-items: center; gap: 12px; padding: 26px 8px; text-align: center; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green-050); color: var(--green-500); }
.empty-icon svg { width: 24px; height: 24px; }
.result-empty p { margin: 0; font-size: 13px; color: var(--muted); max-width: 30ch; }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: opp; }
.opp { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.opp-rank { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green-900); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.opp-body { display: grid; gap: 3px; }
.opp-area { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.opp-body strong { font-size: 14px; line-height: 1.35; color: #1f3a3c; }
.pill { align-self: start; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pill-high { background: rgba(216,154,61,.16); color: #8a5a10; }
.pill-mid { background: rgba(110,151,137,.18); color: #2f5c4f; }

.result-foot { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.result-foot .btn-whats { width: 100%; }
.result-foot small { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* 9. Diagnóstico -------------------------------------------- */
.diagnostic-grid { display: grid; grid-template-columns: 1.15fr .9fr .7fr; gap: 34px; align-items: center; }
.badge { display: inline-block; padding: 8px 13px; border-radius: 999px; background: #dce9e4; }
.diagnostic h3 { margin: 18px 0 10px; color: #285a58; font-size: 19px; line-height: 1.45; }
.diagnostic-copy > p:not(.eyebrow) { color: var(--muted); }
.price-line { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1; }
.price-line strong { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: #1c3134; margin-left: 6px; }
.diagnostic small { display: block; margin-top: 6px; color: #5f7072; }
.deliverables { padding: 26px; border-radius: 18px; background: rgba(221,233,229,.72); border: 1px solid rgba(35,78,82,.08); }
.deliverables h3 { margin: 0 0 18px; color: #173d42; }
.deliverables ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.deliverables li { position: relative; padding-left: 28px; font-size: 14px; color: #43585b; }
.deliverables li:before { content: '✓'; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }
.report-mock { display: flex; justify-content: center; }
.diagnostic-report-image {
  width: min(100%, 250px); height: auto; display: block; object-fit: contain;
  border-radius: 10px; box-shadow: 18px 22px 30px rgba(28,57,55,.13);
}

/* 10. Comece pequeno ---------------------------------------- */
.small-start {
  position: relative; padding: 62px 0; min-height: 220px; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 78% 35%, rgba(132,171,155,.18), transparent 32%),
    linear-gradient(105deg, #184a49 0%, #1d5554 48%, #315f5b 100%);
}
.small-start-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: center; }
.small-start h2 { color: #fff; }
.small-start p { color: #d1ded9; }
.steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 12px; }
.step { text-align: center; min-width: 90px; }
.step span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px;
  background: rgba(255,255,255,.94); color: var(--green-800);
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.step strong { font-size: 12px; color: #fff; letter-spacing: .04em; }
.step-line { height: 1px; background: rgba(255,255,255,.45); }

/* 11. CTA final --------------------------------------------- */
.final-cta { padding: 78px 0; background: #173b3e; color: #fff; }
.final-cta-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #cbd9d4; max-width: 46ch; }
.cta-card {
  display: grid; gap: 14px; align-content: center;
  padding: 30px; border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.cta-card-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fc0b6; }
.cta-card .btn-whats { width: 100%; }
.cta-alt { font-size: 13px; color: #a9c2ba; }
.cta-alt a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }

/* 12. Rodapé ------------------------------------------------- */
.site-footer { padding: 28px 0; background: #f2f4f1; border-top: 1px solid #dfe6e2; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-family: var(--font-display); font-size: 20px; color: #173b3e; }
.footer-brand span { font-size: 12px; color: #5f7073; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.footer-nav a { font-size: 12px; color: #506164; }
.footer-nav a:hover { color: #173b3e; }

/* 13. Reveal / motion --------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

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

/* 14. Responsivo -------------------------------------------- */
@media (max-width: 1120px) {
  .brand-sub { display: none; }
  .desktop-nav { gap: 18px; }
  .nav-cta { padding: 12px 18px; font-size: 14px; }
}

@media (max-width: 980px) {
  .desktop-nav, .nav-cta { display: none; }
  .menu-button { display: block; }
  .hero-grid, .diagnostic-grid, .small-start-grid, .final-cta-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-copy { padding-right: 0; }
  .hero-media { border-radius: 26px 26px 0 0; }
  .cards-3, .solution-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 > :last-child, .solution-grid > :last-child { grid-column: span 2; }
  .section-heading.split { grid-template-columns: 1fr; gap: 16px; }
  .selfcheck-grid { grid-template-columns: 1fr; }
  .selfcheck-result { position: static; }
  .report-mock { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .step-line { display: none; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, var(--max)); }
  .brand-sub { display: none; }
  .hero { padding-top: 24px; }
  .hero-copy { padding: 20px 0 42px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .benefits { flex-direction: column; gap: 16px; }
  .questions, .applications, .diagnostic { padding: 52px 0; }
  .selfcheck { padding: 58px 0; }
  .cards-3, .solution-grid { grid-template-columns: 1fr; }
  .cards-3 > :last-child, .solution-grid > :last-child { grid-column: auto; }
  .question-card { padding: 22px; }
  .section-heading h2, .diagnostic h2, .small-start h2, .final-cta h2 { font-size: 34px; }
  .diagnostic-grid { gap: 28px; }
  .card-photo-img { height: 152px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: flex; align-items: center; gap: 12px; text-align: left; }
  .step span { margin: 0; min-width: 40px; }
  .final-cta-grid { gap: 28px; }
  .cta-card { padding: 22px; }
  .opp { grid-template-columns: auto 1fr; }
  .opp .pill { grid-column: 2; justify-self: start; }
}
