/* Design system inspirado em aircompany.ai: base branca/cinza, preto como cor de ação,
   cantos retos, rótulos em Roboto Mono, títulos em grotesca neutra (Inter no lugar de Neue Haas). */
:root {
  --white: #fff;
  --black: #0c0c0c;
  --fg: #202020;
  --gray-10: #f4f4f4;
  --gray-25: #e9e9e9;
  --gray-50: #d3d3d3;
  --gray-500: #646464;
  --blue: #1b4a9c;   /* azul do logotipo JSB */
  --teal: #19c7b5;   /* brilho do ícone JSB */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "Roboto Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--fg); background: var(--white); line-height: 1.6; font-size: 16px; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 450; line-height: 1.15; margin: 0; letter-spacing: -0.01em; color: var(--black); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 20px; }
.eyebrow--light { color: var(--gray-50); }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 1rem; letter-spacing: .5px; padding: 15px 24px; border: 2px solid var(--black); border-radius: 0; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; background: none; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--blue); border-color: var(--blue); }
.btn--outline { color: var(--black); }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--icon span { transition: transform .2s; }
.btn--icon:hover span { transform: translate(3px, -3px); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--gray-25); }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { white-space: nowrap; font-family: var(--mono); font-size: .9rem; text-decoration: none; color: var(--black); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--black); transition: width .2s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { color: #fff; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--black); transition: transform .2s, top .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--gray-10); overflow: hidden; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; padding-top: clamp(80px, 14vw, 170px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero__lead { max-width: 560px; font-size: 1.2rem; color: var(--fg); margin: 28px 0 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Seções */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--gray { background: var(--gray-10); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lead { color: var(--gray-500); font-size: 1.1rem; margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 24px; background: var(--gray-25); text-decoration: none; overflow: hidden; transition: background .3s, color .3s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card__num { font-family: var(--mono); font-size: .8rem; color: var(--gray-500); }
.card h3 { margin-top: 8px; }
.card p { color: var(--gray-500); font-size: .95rem; margin: 0; transition: color .3s; }
.card__arrow { margin-top: auto; font-size: 1.5rem; transition: transform .3s; }
.card:hover { background: var(--black); }
.card:hover h3, .card:hover .card__arrow { color: #fff; }
.card:hover p, .card:hover .card__num { color: var(--gray-50); }
.card:hover::before { transform: scaleX(1); }
.card:hover .card__arrow { transform: translate(4px, -4px); }

/* Abordagem */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--black); }
.steps li { padding: 28px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--gray-50); }
.steps__n { font-family: var(--mono); font-size: .85rem; color: var(--blue); display: block; margin-bottom: 40px; }
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--gray-500); }

/* Acordeão */
.accordion details { border-bottom: 1px solid var(--gray-50); }
.accordion details:first-child { border-top: 1px solid var(--gray-50); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 1.2rem; font-weight: 450; color: var(--black); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--mono); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.accordion details[open] summary::after { content: "–"; }
.accordion summary:hover { color: var(--blue); }
.accordion details p { color: var(--gray-500); padding: 0 0 22px; margin: 0; max-width: 520px; }

/* Missão */
.mission { background: var(--black); color: #fff; padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(25,199,181,.28), transparent); pointer-events: none; }
.mission__text { position: relative; font-size: clamp(1.8rem, 4.5vw, 3.5rem); line-height: 1.15; max-width: 16em; margin: 0; font-weight: 400; }

/* Formulário */
.channels { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; font-family: var(--mono); }
.channels a { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-size: .85rem; color: var(--gray-500); }
.form input, .form select, .form textarea { font: inherit; font-family: var(--font); font-size: 1rem; color: var(--fg); background: var(--gray-10); border: 0; border-bottom: 2px solid var(--gray-50); border-radius: 0; padding: 14px 12px; width: 100%; transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--black); background: var(--gray-25); }
.form .is-invalid { border-bottom-color: #c11414; }
.form button { justify-self: start; }
.form__status { font-family: var(--mono); font-size: .9rem; margin: 0; min-height: 1.4em; }

/* Footer */
.footer { background: var(--gray-10); border-top: 1px solid var(--gray-25); padding: 56px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.footer img { height: 64px; width: auto; }
.footer__tag { font-family: var(--mono); font-size: .9rem; margin: 0; color: var(--gray-500); grid-column: 1; }
.footer__nav { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { font-family: var(--mono); font-size: .9rem; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; font-size: .8rem; color: var(--gray-500); margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--gray-25); }

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--gray-50); margin-top: 16px; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--white); padding: 16px var(--gutter); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { font-size: 1.3rem; padding: 18px 0; width: 100%; border-bottom: 1px solid var(--gray-25); }
  .nav .btn { margin-top: 24px; font-size: 1rem; padding: 14px 22px; }
  .brand img { height: 44px; }
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--gray-50); margin-top: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
/* Páginas de solução */
.btn--white { background: #fff; color: var(--black); border-color: #fff; }
.btn--white:hover { background: var(--teal); border-color: var(--teal); }
.hero--page .hero__inner { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero--page h1 { font-size: clamp(2rem, 5vw, 3.75rem); max-width: 16em; }
.crumbs { font-family: var(--mono); font-size: .8rem; color: var(--gray-500); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.list-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.list-item { display: flex; gap: 20px; padding: 28px 24px; background: var(--white); border-top: 4px solid var(--blue); }
.list-item:nth-child(even) { border-top-color: var(--teal); }
.list-item__n { font-family: var(--mono); font-size: .85rem; color: var(--gray-500); padding-top: 4px; }
.list-item h3 { margin-bottom: 8px; }
.list-item p { margin: 0; color: var(--gray-500); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--gray-50); font-size: 1.15rem; color: var(--black); }
.checks li:first-child { border-top: 1px solid var(--gray-50); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.cta__actions { position: relative; margin: 36px 0 0; }
.cards--sm { grid-template-columns: repeat(4, 1fr); }
.card--sm { min-height: 150px; }
.card--sm h3 { font-size: 1.05rem; }
@media (max-width: 1100px) and (min-width: 561px) { .cards:not(.cards--sm) .card:last-child { grid-column: 1 / -1; min-height: 200px; } }
@media (max-width: 1100px) { .cards--sm { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .list-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards--sm { grid-template-columns: 1fr; } .card--sm { min-height: 120px; } .list-item { padding: 24px 18px; gap: 14px; } .cta__actions .btn { width: 100%; justify-content: center; } }

/* Cookies, rodapé legal e página de privacidade */
.btn--ghost { background: none; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--black); border-color: #fff; }
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); z-index: 90; display: flex; align-items: center; gap: 20px; padding: 18px 20px; background: var(--black); color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.cookie__text { margin: 0; font-size: .92rem; line-height: 1.5; }
.cookie__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.footer__legal { grid-column: 1 / -1; display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 0; }
.footer__legal a, .footer__legal button { font-family: var(--mono); font-size: .8rem; color: var(--gray-500); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--black); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--fg); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 16px 0; }
.legal__table th, .legal__table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--gray-50); vertical-align: top; }
.legal__table th { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--gray-500); }
.legal__scroll { overflow-x: auto; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; gap: 14px; bottom: 8px; } .cookie__actions .btn { flex: 1; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
