/* GonadEq, site institucional. Tokens da marca compartilhados com o app. */
:root {
  --bg: #f4f6f1;
  --bg-2: #eceee6;
  --fg: #18231d;
  --muted: #536159;
  --card: #ffffff;
  --border: #d7dccf;
  --primary: #1d3a2b;
  --primary-2: #2b5740;
  --primary-soft: #e3ebe2;
  --primary-glow: #9ed49a;
  --accent: #b4601f;
  --accent-soft: #f3e4d2;
  --on-primary: #f4f6f1;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(24, 35, 29, .06), 0 12px 32px -12px rgba(24, 35, 29, .18);
  --shadow-lg: 0 2px 4px rgba(24, 35, 29, .08), 0 30px 60px -20px rgba(24, 35, 29, .35);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
mark { background: var(--primary-soft); color: var(--primary-2); padding: .02em .18em; border-radius: .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
em { font-style: normal; color: var(--primary-2); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px rgba(29, 58, 43, .6); }
.btn--primary:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn--outline { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn--glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 241, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--border); background: rgba(244, 246, 241, .9); }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.brand img { border-radius: 9px; }
.topnav { display: none; gap: 22px; margin-left: 8px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.topnav a:hover { color: var(--fg); border-bottom-color: var(--primary); }
.topbar__actions { margin-left: auto; display: flex; gap: 6px; }
.topbar__actions .btn--ghost { display: none; }
@media (min-width: 720px) { .topnav { display: flex; } .topbar__actions .btn--ghost { display: inline-flex; } }

@media (max-width: 480px) { .eyebrow__text { display: none; } .eyebrow { padding-right: 6px; } }

/* Hero */
.hero { position: relative; padding: 48px 0 24px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(158, 212, 154, .75), rgba(158, 212, 154, 0) 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.eyebrow__tag { white-space: nowrap; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: .92rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.phone {
  margin: 0; width: 230px; aspect-ratio: 1170 / 2532; border-radius: 34px; overflow: hidden;
  border: 8px solid #142a1f; background: #142a1f; box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.phone--front { position: relative; z-index: 2; width: 250px; transform: translateX(26px) rotate(2deg); }
.phone--back { position: absolute; z-index: 1; width: 220px; transform: translate(-96px, 36px) rotate(-7deg); opacity: .92; }
.phone--sm { width: 170px; border-width: 6px; border-radius: 26px; box-shadow: var(--shadow); }
.phone--sm img { border-radius: 20px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 40px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero__visual { min-height: 560px; }
  .phone--front { width: 290px; transform: translateX(40px) rotate(2deg); }
  .phone--back { width: 260px; transform: translate(-120px, 44px) rotate(-7deg); }
}

/* Pilares */
.pillars { padding: 40px 0 16px; }
.pillars__grid {
  display: grid; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow);
}
.pillar { padding: 24px; border-radius: 18px; border-left: 4px solid var(--primary); background: linear-gradient(180deg, #fff, #fafbf8); }
.pillar h2 { font-size: 1.2rem; margin: 14px 0 8px; }
.pillar p { color: var(--muted); font-size: .97rem; }
@media (min-width: 820px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); } }

.icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-tile--sm svg { width: 18px; height: 18px; }

/* Módulos */
.modules { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.modules__grid { display: grid; gap: 18px; }
.module { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.module__media { margin: 0; background: linear-gradient(160deg, var(--primary-soft), var(--bg-2)); padding: 28px 28px 0; display: grid; place-items: end center; height: 300px; overflow: hidden; }
.module__media img { width: 210px; border-radius: 22px 22px 0 0; border: 6px solid #142a1f; border-bottom: 0; box-shadow: var(--shadow-lg); }
.module__body { padding: 20px 22px 26px; }
.module__body h3 { margin: 12px 0 8px; }
.module__body p { color: var(--muted); font-size: .96rem; }
@media (min-width: 720px) { .modules__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .modules__grid { grid-template-columns: repeat(4, 1fr); } .module__media { height: 260px; padding: 22px 22px 0; } .module__media img { width: 180px; } }

/* Faixa escura */
.band { background: var(--primary); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(40% 50% at 80% 20%, rgba(158, 212, 154, .22), transparent 70%); pointer-events: none; }
.band__inner { position: relative; text-align: center; max-width: 760px; }
.band h2 em { color: var(--primary-glow); }
.band p { color: rgba(255, 255, 255, .78); margin-top: 16px; font-size: 1.05rem; }
.band__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.stats { display: grid; gap: 10px; margin: 40px auto 0; padding: 0; max-width: 680px; }
.stats div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px; }
.stats dt { font: 700 2rem/1 var(--font-display); color: var(--primary-glow); }
.stats dd { margin: 8px 0 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* No campo */
.field { padding: 72px 0 80px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 .95rem var(--font-display); }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.step .phone--sm { width: 120px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .step { grid-template-columns: 1fr; justify-items: start; padding: 26px; } .step .phone--sm { width: 170px; margin-bottom: 10px; } }

/* Rodapé */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; background: var(--bg-2); }
.footer__inner { display: grid; gap: 16px; }
.brand--footer { font-size: .95rem; }
.footer__note { color: var(--muted); font-size: .92rem; max-width: 52ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--primary); text-decoration: underline; }
@media (min-width: 820px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; } }

/* Reveal (respeita prefers-reduced-motion no script) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn, .module { transition: none; } }
