/* CasusLab — base: tokens, reset, tipografia, botões, cabeçalho */
:root {
  --navy: #0B1F3B;
  --navy-2: #102a4d;
  --navy-3: #18375f;
  --teal: #1FB08F;
  --teal-hover: #23C29E;
  --teal-ink: #0A7D66;      /* teal para texto sobre claro: 5,0:1 em branco */
  --teal-soft: #E2F4EE;
  --bg: #F7F8F6;            /* off-white oficial */
  --surface: #FFFFFF;
  --surface-muted: #EFF5F8;
  --text: #0B1F3B;
  --text-muted: #597086;    /* 5,1:1 sobre --bg */
  --text-light: #C9D6E3;
  --border: #D8E6E8;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --warning: #8A5700;

  --partner: #6D28D9;       /* cor do curso fictício (personalizador) */
  --partner-soft: color-mix(in srgb, var(--partner) 12%, white);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(11,31,59,.06), 0 4px 14px rgba(11,31,59,.06);
  --shadow-2: 0 2px 6px rgba(11,31,59,.06), 0 24px 60px -18px rgba(11,31,59,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: 20px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; stroke-width: 1.7; }

.eyebrow {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--teal); }
.hl { color: var(--teal-ink); }

/* Botões — texto navy sobre teal (≈5,9:1), nunca branco sobre teal */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px; border-radius: var(--r-md);
  border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { --bh: 44px; padding: 0 16px; font-size: .94rem; }
.btn-lg { --bh: 56px; padding: 0 26px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 8px 22px -10px rgba(31,176,143,.75); }
.btn-primary:hover { background: var(--teal-hover); box-shadow: 0 12px 28px -10px rgba(31,176,143,.85); }
.btn-primary .i { transition: transform .2s var(--ease); }
.btn-primary:hover .i { transform: translateX(3px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--surface); }
.btn-wa { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-wa:hover { border-color: var(--teal); color: var(--teal); }

.link-arrow { font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.link-arrow::after { content: "↓"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateY(3px); }

.micro { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-muted); margin-top: 14px; }
.micro-light { color: var(--text-light); justify-content: center; text-align: center; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 20px -16px rgba(11,31,59,.35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
@media (min-width: 768px) { .brand img { height: 40px; } }
.main-nav { display: none; gap: 30px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-muted); padding: 8px 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); }
@media (min-width: 960px) { .main-nav { display: flex; } }

/* Revelação progressiva — só com JS e sem redução de movimento */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
