/* =========================================================================
   ScoreFlow — vitrine comercial (scoreflow.site)
   Tokens de marca: ScoreFlow Identidade Visual v2.2
   (BRANDING/SCOREFLOW_IDENTIDADE_VISUAL_V2.2/07_PALETA_E_TOKENS)
   Tipografia oficial: Sora (títulos) + Inter (corpo/UI).
   ========================================================================= */

/* -- Fontes auto-hospedadas (sem CDN) ------------------------------------ */
@font-face { font-family: "Sora"; src: url("/fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/fonts/sora-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* -- Tokens -------------------------------------------------------------- */
:root {
  /* marca — v2.2 (não redesenhado) */
  --flow: #2984f0;
  --flow-dark: #237ae7;
  --midnight: #060610;
  --deep-navy: #0a0c1e;
  --interface-navy: #151f44;
  --cloud: #dcdcde;
  --white: #ffffff;

  /* Derivados — a própria matriz de contraste da marca marca
     "Flow Blue sobre White = 3.71, AA_normal = False". Este tinta azul
     escurecido traz o par para 5.8:1 e é usado só em texto pequeno
     sobre superfície clara. Os pares da marca continuam valendo. */
  --flow-aa: #1762c6;

  --page: #f4f5f8;
  --ink: var(--midnight);
  --muted: #565c6b;
  --line: #e3e5eb;

  --font-display: "Sora", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 64px;

  --radius: 14px;
  --shadow-plane: 0 24px 60px rgba(6, 6, 16, 0.34);
}

/* slots da composição 3D — mantidos em sincronia com SLOTS em js/main.js:
   front:-50,-50,60,-5,2,1;left:-84,-74,-190,22,3,0.94;right:-16,-26,-190,-22,3,0.94
   As telas nunca ficam com opacity < 1: o afastamento é feito pela camada
   .plane__dim, para que o conteúdo de trás não atravesse a tela da frente. */

/* -- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

p { margin: 0; }

a { color: var(--flow-aa); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0f4d9e; }

:focus-visible {
  outline: 3px solid var(--flow);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flow-aa);
  margin-bottom: 14px;
}
.eyebrow--on-dark { color: var(--flow); }

/* -- Botões -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

/* Branco sobre Flow Blue = 5.43:1 (matriz da marca) — passa em AA normal. */
.btn--primary { background: var(--flow); color: var(--midnight); }
.btn--primary:hover { background: var(--flow-dark); color: var(--midnight); }

.btn--ghost { border-color: rgba(6, 6, 16, 0.24); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(6, 6, 16, 0.04); color: var(--ink); }

.btn--ghost-dark { border-color: rgba(255, 255, 255, 0.36); color: var(--white); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }

.link { color: var(--flow-aa); font-weight: 600; text-decoration: underline; }
.link:hover { color: #0f4d9e; }
.link--on-dark { color: var(--flow); }
.link--on-dark:hover { color: #6fb0ff; }

/* -- Cabeçalho ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--midnight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: clamp(118px, 14vw, 150px); height: auto; }

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.menu-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:focus-visible ~ .menu-btn { outline: 3px solid var(--flow); outline-offset: 3px; }

.menu-panel { display: none; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.nav > a {
  color: var(--cloud);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
}
.nav > a:hover { color: var(--white); }

.header__cta { margin-left: auto; }

/* Menu separado de sistemas (acessos reais, sem login único fictício) */
.systems { position: relative; }
.systems > summary {
  list-style: none;
  cursor: pointer;
  color: var(--cloud);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.systems > summary::-webkit-details-marker { display: none; }
.systems > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}
.systems[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.systems > summary:hover { color: var(--white); }

.systems__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  margin: 0;
  padding: 10px;
  list-style: none;
  min-width: 290px;
  background: var(--deep-navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}
.systems__list a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.systems__list a:hover { background: rgba(41, 132, 240, 0.18); }
.systems__list .ext {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--cloud);
}
.systems__note {
  margin-top: 8px;
  padding: 9px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--cloud);
}

/* -- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--midnight);
  color: var(--white);
  overflow-x: clip;
  padding-block: clamp(44px, 6vw, 84px) clamp(56px, 8vw, 104px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__copy h1 { color: var(--white); max-width: 15ch; }

.lede {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--cloud);
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(220, 220, 222, 0.78);
  max-width: 44ch;
}

/* Páginas de intenção: mesma composição, com marca ou tela real à direita. */
.hero__mark {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--deep-navy);
}
.hero__mark img { width: clamp(120px, 34%, 220px); height: auto; }

.hero__shot { margin: 0; }
.hero__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top top;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: var(--shadow-plane);
}
.hero__shot figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(220, 220, 222, 0.8);
}
.hero__shot strong { color: var(--white); font-weight: 600; }

/* -- Composição 3D (telas reais em planos de perspectiva) --------------- */
.stage {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74%;
  margin: 0;
  transform-origin: 50% 50%;
}
.motion .stage--seq .plane { will-change: transform, opacity; }

.plane__frame {
  display: block;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  background: var(--interface-navy);
  box-shadow: var(--shadow-plane);
  aspect-ratio: 16 / 10;
}
.plane__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top top; }

/* Escurece a tela recuada sem torná-la transparente: a tela da frente
 permanece opaca em qualquer instante da troca. */
.plane__dim {
  position: absolute;
  inset: 0;
  background: var(--midnight);
  opacity: 0;
  pointer-events: none;
}

/* Estado estático equivalente: sem JavaScript a composição já existe. */
.plane[data-slot="front"] {
  transform: translate3d(-50%, -50%, 60px) rotateX(2deg) rotateY(-5deg);
}
.plane[data-slot="left"] {
  transform: translate3d(-84%, -74%, -190px) rotateX(3deg) rotateY(22deg) scale(0.94);
}
.plane[data-slot="right"] {
  transform: translate3d(-16%, -26%, -190px) rotateX(3deg) rotateY(-22deg) scale(0.94);
}
.plane[data-slot="left"] .plane__dim,
.plane[data-slot="right"] .plane__dim {
  opacity: 0.62;
}

/* -- Sequência guiada pela rolagem -------------------------------------- */
.sequence {
  background: var(--deep-navy);
  color: var(--white);
  overflow-x: clip;
}

.sequence__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}

.section-head { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.sequence__intro {
  margin-top: 12px;
  color: var(--cloud);
  font-size: 0.95rem;
  max-width: 42ch;
}

.beats { margin-top: 28px; }

.beat { margin: 0 0 40px; }
.beat:last-child { margin-bottom: 0; }

.beat__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--flow);
  margin-bottom: 10px;
}
.beat h3 { color: var(--white); font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.beat p { margin-top: 12px; color: var(--cloud); max-width: 44ch; }
.beat__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.beat__cta .link { color: var(--flow); }
.beat__shot { display: none; margin: 18px 0 0; }

.dot { color: rgba(220, 220, 222, 0.5); }

/* Com a camada de movimento ativa, o quadro é fixado e os textos
   ocupam a mesma caixa — sem isso, tudo permanece empilhado e legível. */
.motion .sequence__frame {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 40px;
}
.motion .sequence__copy { position: relative; }
.motion .beats { position: relative; min-height: clamp(280px, 32vh, 340px); margin-top: 24px; }
.motion .beat { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
.motion .beat__shot { display: none; }

/* -- Seções genéricas ---------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--page); }
.section--dark { background: var(--midnight); color: var(--white); }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }

.section__head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section--dark .section__head h2 { color: var(--white); }
.section__lede { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.section--dark .section__lede { color: var(--cloud); }

/* -- Catálogo ------------------------------------------------------------ */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: #c9cedb; transform: translateY(-3px); }

.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--interface-navy);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top top; }

.card__media--brand {
  display: grid;
  place-items: center;
  background: var(--deep-navy);
}
.card__media--brand img { width: 84px; height: auto; object-fit: contain; }

.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.card__kind {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card__body h3 { font-size: 1.16rem; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__body h3 a:hover { color: var(--flow-aa); }
.card__body > p:not(.card__kind):not(.card__cta) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.card__cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.95rem; }

.card--plain { background: transparent; border-style: dashed; border-color: #c9cedb; }
.card--plain:hover { transform: none; border-color: var(--flow); }

/* -- Na prática ---------------------------------------------------------- */
.examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.example {
  background: var(--deep-navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.example__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--interface-navy); }
.example__media img { width: 100%; height: 100%; object-fit: cover; object-position: top top; }
.example__body { padding: 20px 22px 24px; }

.example__role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  background: var(--flow);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}
.example__body h3 { color: var(--white); }
.example__body p { margin-top: 10px; color: var(--cloud); font-size: 0.95rem; }

/* -- Como funciona ------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.step__n {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--flow-aa);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }

/* -- Contato ------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact__actions { display: flex; flex-direction: column; gap: 12px; }

.channel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.channel:hover { border-color: var(--flow); transform: translateY(-2px); }
.channel__label { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.channel__meta { font-size: 0.82rem; color: var(--muted); }
.channel--primary { background: var(--flow); border-color: var(--flow); }
.channel--primary .channel__label { color: var(--midnight); }
.channel--primary .channel__meta { color: var(--deep-navy); }
.channel--primary:hover { background: var(--flow-dark); border-color: var(--flow-dark); }

.faq h3 { font-size: 1.15rem; margin-bottom: 14px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--flow-aa);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 0.96rem; }

/* FAQ que não está dentro da coluna de contato (páginas de intenção). */
.faq--wide { max-width: 780px; }
.faq__note { color: var(--muted); font-size: 0.96rem; margin-bottom: 14px; }

/* -- Rodapé -------------------------------------------------------------- */
.site-footer {
  background: var(--midnight);
  color: var(--cloud);
  padding-block: clamp(44px, 6vw, 72px) 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__brand img { width: 150px; height: auto; }
.footer__brand p { margin-top: 14px; font-size: 0.92rem; max-width: 34ch; }

.footer__title {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: 9px; }
.footer__nav a { color: var(--cloud); text-decoration: none; font-size: 0.93rem; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; }
.footer__note { margin-top: 12px; font-size: 0.8rem; color: rgba(220, 220, 222, 0.72); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(220, 220, 222, 0.72);
}

/* Âncoras não ficam escondidas sob o cabeçalho fixo. */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 1023px) {
  :root { --header-h: 56px; }

  /* Composição específica para celular: leitura vertical, 3D reduzido. */
  .stage { perspective: 900px; }
  .plane { width: 88%; }
  .plane[data-slot="front"] { transform: translate3d(-50%, -50%, 30px) rotateX(1deg) rotateY(-3deg); }
  .plane[data-slot="left"] { transform: translate3d(-66%, -66%, -70px) rotateY(14deg) scale(0.96); }
  .plane[data-slot="right"] { transform: translate3d(-34%, -34%, -70px) rotateY(-14deg) scale(0.96); }
  .plane[data-slot="left"] .plane__dim,
  .plane[data-slot="right"] .plane__dim { opacity: 0.55; }

  .stage--seq { display: none; }
  .beat__shot { display: block; }
  .beat__shot img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero__inner,
  .sequence__frame,
  .contact,
  .footer__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__inner { gap: clamp(30px, 7vw, 46px); }
  .hero__copy h1 { max-width: 20ch; }
}

@media (max-width: 899px) {
  .header__bar { flex-wrap: wrap; row-gap: 10px; }
  .menu-btn { order: 2; }

  .menu-toggle:checked ~ .menu-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  .systems > summary { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .systems__list { position: static; min-width: 0; box-shadow: none; background: transparent; border: 0; padding: 4px 0 0; }
  .systems__list a { padding: 9px 0; }
  .systems__note { border-top-color: rgba(255, 255, 255, 0.14); }

  .header__cta { display: none; }
}

@media (min-width: 900px) {
  /* No desktop o painel fica sempre visível; o interruptor é irrelevante. */
  .menu-btn { display: none; }
  .menu-panel { display: flex !important; align-items: center; gap: clamp(18px, 2.4vw, 34px); width: 100%; }
  .nav { margin-left: auto; }
  .header__cta { margin-left: 0; }
  .menu-toggle { display: none; }
}

@media (min-width: 1024px) {
  /* A sequência fixada só existe no desktop; sem ela, os textos seguem empilhados. */
  .motion .sequence__frame { height: 100vh; }
}

/* =========================================================================
   Movimento reduzido: sem parallax, sem rotação, sem fixação.
   O conteúdo e os links permanecem todos disponíveis.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}
