/* Chiron Law. Tokens Material Design 3 compartilhados com o Copiloto OJ. */
:root {
  color-scheme: light;
  --pri: #0B57D0; --on-pri: #fff;
  --pri-c: #D3E3FD; --on-pri-c: #041E49;
  --sky: #8AB4F8;
  --sec-c: #E9EEF6;
  --warn: #8D6E00;
  --surf: #F6F8FC; --on-surf: #1F1F1F; --on-surf-var: #444746;
  --out: #74777F; --out-var: #C4C7C5;
  --s-cont: #EEEDF2;
  --glow: 0 8px 32px 0 rgba(11, 87, 208, .08);
  --elevation-1: 0 1px 2px rgba(31,31,31,.16), 0 1px 3px rgba(31,31,31,.08);
  --content: 1180px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0; min-width: 320px; background: var(--surf); color: var(--on-surf);
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--on-pri-c); }
.skip:focus { top: 12px; }

.icon {
  font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 400; font-size: 24px; line-height: 1;
  display: inline-block; flex-shrink: 0; user-select: none; white-space: nowrap;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 0; border-radius: 24px; padding: 10px 24px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .12s, box-shadow .12s, transform .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { font-size: 20px; }
.btn-f { background: var(--pri); color: var(--on-pri); }
.btn-f:hover { background: #0842a0; box-shadow: var(--elevation-1); }
.btn-t { background: rgba(211,227,253,.12); color: #fff; }
.btn-t:hover { background: rgba(211,227,253,.2); }
.btn-mail { background: var(--pri-c); color: var(--on-pri-c); white-space: nowrap; }
.btn-mail:hover { background: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-label { margin: 0 0 12px; color: var(--pri-c); font-size: 14px; }
.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

.section { padding: clamp(72px, 10vw, 120px) 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--pri);
  font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--warn); }
.section-title {
  max-width: 780px; margin: 0; color: var(--on-pri-c); font-family: Outfit, sans-serif;
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance;
}
.section-lead { max-width: 640px; margin: 20px 0 0; color: var(--on-surf-var); font-size: 18px; line-height: 1.65; }
.md-card { background: #fff; border: 1px solid var(--out-var); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.md-card:hover { border-color: var(--pri); box-shadow: var(--glow); }

/* Cabeçalho: transparente sobre o hero, branco depois de rolar */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .2s, color .2s, box-shadow .2s; }
.site-header.solid, .site-header.open { background: rgba(255,255,255,.97); color: var(--on-pri-c); box-shadow: 0 1px 0 var(--out-var); }
.header-inner { display: flex; min-height: var(--header); align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: Outfit, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .86; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 22px; background: transparent; cursor: pointer; }
.mobile-nav { padding: 4px 20px 16px; background: #fff; color: var(--on-pri-c); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 14px 4px; border-top: 1px solid var(--out-var); font-weight: 500; text-decoration: none; }

/* Hero: texto e animação em áreas separadas, abaixo do menu. Nada se sobrepõe em nenhum tamanho. */
.hero { padding-top: var(--header); background: var(--on-pri-c); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px); min-height: min(calc(100vh - var(--header)), 860px); min-height: min(calc(100svh - var(--header)), 860px); padding-block: 16px 32px; }
.hero-text { min-width: 0; }
.hero h1 { margin: 0; font-family: Outfit, sans-serif; font-size: clamp(44px, 5.6vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.hero h1 span { color: var(--sky); }
.hero-copy { max-width: 480px; margin: 24px 0 0; color: var(--pri-c); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stage { position: relative; }
/* A borda suave funde o quadrado do vídeo com o fundo do hero */
.hero-video {
  display: block; aspect-ratio: 1; height: auto; max-width: 100%;
  width: min(46vw, 580px, calc(100vh - var(--header) - 48px)); width: min(46vw, 580px, calc(100svh - var(--header) - 48px));
  -webkit-mask-image: radial-gradient(circle closest-side, #000 93%, transparent);
  mask-image: radial-gradient(circle closest-side, #000 93%, transparent);
}
.hero-toggle { position: absolute; right: 8px; bottom: 8px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: rgba(211,227,253,.14); color: #fff; cursor: pointer; }
.hero-toggle:hover { background: rgba(211,227,253,.24); }

/* Princípios */
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.principle { padding: 28px; }
.principle-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--pri-c); color: var(--pri); }
.principle h3 { margin: 26px 0 0; color: var(--on-pri-c); font-family: Outfit, sans-serif; font-size: 23px; font-weight: 600; line-height: 1.2; }
.principle p { margin: 12px 0 0; color: var(--on-surf-var); font-size: 15px; line-height: 1.65; }

/* Copiloto OJ */
.product { background: #fff; border-block: 1px solid var(--out-var); }
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 7vw, 96px); }
.product-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--on-pri-c); font-family: Outfit, sans-serif; font-size: 20px; font-weight: 600; text-decoration: none; }
.product-brand img { border-radius: 10px; }
.product-copy .btn { margin-top: 30px; }
.flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: etapa; }
.flow li { counter-increment: etapa; position: relative; display: flex; flex-direction: column; gap: 22px; padding: 20px; border-radius: 16px; background: var(--surf); color: var(--on-pri-c); font-family: Outfit, sans-serif; font-size: 18px; font-weight: 600; }
.flow li .icon { color: var(--pri); }
.flow li::after { content: "0" counter(etapa); position: absolute; top: 20px; right: 20px; color: var(--warn); font-size: 14px; font-weight: 700; }

/* Na rua */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.video-card { min-width: 0; margin: 0; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--on-pri-c); cursor: pointer; aspect-ratio: 16/9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-facade:hover img { transform: scale(1.02); }
/* As miniaturas têm título à esquerda: o play fica sobre a imagem, à direita */
.play { position: absolute; left: 75%; top: 40%; display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: var(--pri); color: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.16); transform: translate(-50%, -50%); transition: transform .12s; }
.play .icon { font-size: 38px; }
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 4px 0; }
.video-card strong { color: var(--on-pri-c); font-family: Outfit, sans-serif; font-size: 19px; font-weight: 600; }
.video-card figcaption span { color: var(--on-surf-var); font-size: 14px; }
.note { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; color: var(--on-surf-var); font-size: 13px; }
.note .icon { font-size: 18px; }

/* O nome */
.name { background: var(--on-pri-c); color: #fff; }
.name .eyebrow { color: var(--pri-c); }
.name .section-title { color: #fff; }
.name .section-lead { color: var(--pri-c); }
.name-grid { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; align-items: center; gap: clamp(36px, 8vw, 110px); }
.name-mark { width: 100%; height: auto; }

/* Rodapé */
.site-footer { padding: 44px 0 28px; background: #031738; color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(233,238,246,.16); color: var(--out-var); font-size: 12px; line-height: 1.5; }

/* Vídeo em diálogo */
.video-dialog { width: min(calc(100vw - 32px), 1120px); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 16px; background: #000; }
.video-dialog::backdrop { background: rgba(3,23,56,.86); }
.dialog-frame { aspect-ratio: 16/9; overflow: hidden; border-radius: 16px; }
.dialog-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.dialog-close { position: absolute; right: 0; top: -54px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--on-pri-c); cursor: pointer; }

/* Entrada ao rolar: só anima quando o JS está ativo */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

@media (max-width: 860px) {
  /* Empilhado: animação em cima, texto embaixo */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding-block: 0 32px; }
  .hero-stage { order: -1; justify-self: center; }
  .hero-video { width: min(calc(100vw - 40px), max(220px, 38vh)); width: min(calc(100vw - 40px), max(220px, 38svh)); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .principle-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-copy { margin-top: 16px; font-size: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .video-grid { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: 1fr; }
  .name-mark { width: 160px; }
  .section-lead { font-size: 16px; }
  .footer-cta, .footer-contact { width: 100%; }
  .btn-mail { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .video-facade img, .play { transition: none; }
}
