/* ==========================================================================
   Página de venda — Ordens de Serviço (/sistema-ordem-de-servico)

   Autossuficiente, tudo sob .os-page: não depende de landing.css nem de
   offer_sections.css. As telas do produto são a peça central da página: cada
   seção mostra uma tela inteira numa "janela" e, por cima dela, recortes
   ampliados (app/assets/images/os/) do pedaço que o texto está explicando.
   ========================================================================== */

.os-page {
  --os-ink: #0b1220;
  --os-ink-2: #1e293b;
  --os-body: #475569;
  --os-muted: #64748b;

  --os-blue: #2563eb;
  --os-blue-dark: #1d4ed8;
  --os-blue-soft: #e8f0fe;
  --os-blue-ink: #1e3a8a;

  --os-cta: #f97316;
  --os-cta-dark: #ea580c;

  --os-green: #15803d;
  --os-green-soft: #dcfce7;
  --os-red: #dc2626;
  --os-red-soft: #fee2e2;
  --os-amber: #b45309;
  --os-amber-soft: #fef3c7;

  --os-bg: #ffffff;
  --os-soft: #f5f7fb;
  --os-border: #e4e8f0;

  --os-navy: #0a1633;
  --os-navy-2: #0f2350;
  --os-navy-3: #14306b;

  --os-r: 18px;
  --os-r-sm: 12px;
  --os-r-lg: 26px;

  --os-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.08);
  --os-shadow: 0 20px 45px -22px rgba(11, 18, 32, 0.28);
  --os-shadow-lg: 0 45px 90px -40px rgba(11, 18, 32, 0.5);
  --os-shadow-float: 0 30px 60px -22px rgba(11, 18, 32, 0.45), 0 0 0 1px rgba(11, 18, 32, 0.06);

  --os-container: 1180px;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--os-body);
  background: var(--os-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Reset local (o bundle da aplicação também traz um, este é defensivo).
   Em :where() para ter especificidade zero: uma classe qualquer da página
   precisa vencer o reset — sem isso, ".os-page ul" ganhava de ".os-offer__list"
   e ".os-page a" pintava os botões com a cor do texto ao redor. */
:where(.os-page) *,
:where(.os-page) *::before,
:where(.os-page) *::after { box-sizing: border-box; }
:where(.os-page) :is(h1, h2, h3, h4, p) { margin: 0; }
:where(.os-page) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.os-page) a { color: inherit; text-decoration: none; }
:where(.os-page) img { display: block; max-width: 100%; height: auto; }
:where(.os-page) button { font: inherit; }

/* ------------------------------------------------------------------ Layout */
.os-container {
  width: 100%;
  max-width: var(--os-container);
  margin: 0 auto;
  padding: 0 24px;
}

.os-section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.os-section--soft { background: var(--os-soft); }
.os-section--tight { padding-top: clamp(2.5rem, 5vw, 4rem); }

.os-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.os-head h2 { margin-top: 1rem; }
.os-head p {
  margin-top: 1rem;
  font-size: 1.12rem;
  color: var(--os-muted);
}
.os-head--left { margin-left: 0; text-align: left; }

/* -------------------------------------------------------------- Tipografia */
.os-page h1 {
  font-size: clamp(2.3rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--os-ink);
}
.os-page h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--os-ink);
}
.os-page h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--os-ink);
}
.os-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--os-muted);
}

.os-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--os-blue-dark);
  background: var(--os-blue-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.os-eyebrow--light {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.25);
}
.os-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.os-hl {
  background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 50%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ Botões */
.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.os-btn svg { width: 18px; height: 18px; flex: none; }
.os-btn--cta {
  background: linear-gradient(135deg, #fb923c, var(--os-cta-dark));
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(234, 88, 12, 0.75);
}
.os-btn--cta:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(234, 88, 12, 0.8); }
.os-btn--blue {
  background: var(--os-blue);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, 0.7);
}
.os-btn--blue:hover { background: var(--os-blue-dark); transform: translateY(-2px); }
.os-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.os-btn--ghost:hover { background: rgba(255, 255, 255, 0.13); }
.os-btn--outline {
  background: #fff;
  border-color: var(--os-border);
  color: var(--os-ink);
}
.os-btn--outline:hover { border-color: var(--os-blue); color: var(--os-blue-dark); }
.os-btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.os-btn--sm { padding: 0.62rem 1.1rem; font-size: 0.9rem; border-radius: 10px; }
.os-btn--block { width: 100%; }

/* ------------------------------------------------------------------ Header */
.os-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 51, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.os-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.os-logo img { height: 38px; width: auto; }
.os-nav { display: flex; gap: 1.6rem; }
.os-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease;
}
.os-nav a:hover { color: #fff; }
.os-header-actions { display: flex; gap: 0.6rem; align-items: center; }

/* -------------------------------------------------------- Janela de tela */
.os-win {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--os-shadow-lg);
}
.os-win__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #f1f4f9;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.os-win__dot { width: 11px; height: 11px; border-radius: 50%; }
.os-win__dot--r { background: #ff5f57; }
.os-win__dot--y { background: #febc2e; }
.os-win__dot--g { background: #28c840; }
.os-win__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.os-win__body { position: relative; background: #fff; }
.os-win__body img { width: 100%; }
.os-win--crop .os-win__body { aspect-ratio: var(--crop, 4 / 3); overflow: hidden; }
.os-win--crop .os-win__body img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Recorte flutuante: um pedaço da tela, ampliado, sobre a janela */
.os-float {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--os-shadow-float);
}
.os-float img { width: 100%; }
.os-float__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--os-ink-2);
  background: #f8fafc;
  border-top: 1px solid var(--os-border);
}
.os-float__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--os-blue);
}
.os-float__label--red::before { background: var(--os-red); }
.os-float__label--green::before { background: var(--os-green); }
.os-float__label--amber::before { background: #f59e0b; }

/* Palco: janela + recortes posicionados por cima */
.os-stage { position: relative; }
.os-stage__main { position: relative; z-index: 1; }
.os-stage__float {
  position: absolute;
  z-index: 2;
  width: var(--w, 52%);
}
.os-stage__float--tr { top: var(--y, -6%); right: var(--x, -6%); }
.os-stage__float--tl { top: var(--y, -6%); left: var(--x, -6%); }
.os-stage__float--br { bottom: var(--y, -8%); right: var(--x, -6%); }
.os-stage__float--bl { bottom: var(--y, -8%); left: var(--x, -6%); }

@media (prefers-reduced-motion: no-preference) {
  .os-stage__float { animation: os-drift 7s ease-in-out infinite; }
  .os-stage__float--bl, .os-stage__float--tr { animation-delay: -3.5s; }
  @keyframes os-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
}

/* Marcadores numerados sobre a tela */
.os-pin {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--os-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 8px 18px -6px rgba(37, 99, 235, 0.7);
}
.os-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .os-pin::after { animation: os-pulse 2.2s ease-out infinite; }
  @keyframes os-pulse {
    0% { transform: scale(0.85); opacity: 0.9; }
    100% { transform: scale(1.7); opacity: 0; }
  }
}

/* -------------------------------------------------------------------- Hero */
.os-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(37, 99, 235, 0.32), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(160deg, var(--os-navy) 0%, var(--os-navy-2) 60%, var(--os-navy-3) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.os-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.os-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.os-hero-copy h1 { color: #fff; margin-top: 1.3rem; }
.os-hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #c7d2e5;
  max-width: 560px;
}
.os-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.os-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.os-proof { display: flex; gap: 0.7rem; align-items: flex-start; }
.os-proof svg { width: 20px; height: 20px; flex: none; color: #7dd3fc; margin-top: 2px; }
.os-proof strong { display: block; font-size: 0.88rem; color: #fff; line-height: 1.3; }
.os-proof span { display: block; margin-top: 0.15rem; font-size: 0.78rem; line-height: 1.4; color: #94a3b8; }

.os-hero-stage { padding: 6% 0 5% 0; }
.os-hero-stage .os-win { border-color: rgba(255, 255, 255, 0.14); }
/* Leve inclinação 3D na janela: dá profundidade sem esconder a tela. Os
   recortes flutuantes são irmãos, não filhos, então continuam retos. */
.os-hero-win {
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transform-origin: 50% 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 60px 120px -40px rgba(0, 0, 0, 0.75),
    0 0 90px -20px rgba(37, 99, 235, 0.55);
}
.os-hero-win .os-win__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 51, 0) 40%, rgba(10, 22, 51, 0.35) 100%);
  pointer-events: none;
}

/* Botão do vídeo no centro da janela: é o convite principal do hero */
.os-hero-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.os-hero-play__btn {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, var(--os-cta-dark));
  box-shadow: 0 20px 45px -10px rgba(234, 88, 12, 0.7), 0 0 0 10px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease;
}
.os-hero-play__btn svg { width: 30px; height: 30px; margin-left: 4px; }
.os-hero-play__btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(251, 146, 60, 0.7);
}
.os-hero-play:hover .os-hero-play__btn { transform: scale(1.08); }
.os-hero-play__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  background: rgba(10, 22, 51, 0.88);
  backdrop-filter: blur(6px);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
}
.os-hero-play__label small { font-size: 0.74rem; font-weight: 600; color: #cbd5e1; margin-top: 0.15rem; }
@media (prefers-reduced-motion: no-preference) {
  .os-hero-play__btn::after { animation: os-pulse 2.4s ease-out infinite; }
}

/* ----------------------------------------------------- Faixa "serve para" */
.os-serves {
  border-bottom: 1px solid var(--os-border);
  background: #fff;
}
.os-serves-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  padding: 1.2rem 24px;
}
.os-serves-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-muted);
}
.os-serves-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.os-serves-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--os-ink-2);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--os-soft);
  border: 1px solid var(--os-border);
}
.os-serves-list svg { width: 16px; height: 16px; color: var(--os-blue); }

/* ------------------------------------------------------------------ Fluxo */
/* Os recortes aqui são apertados de propósito (≈1000px do original em ~360px
   de card): recorte largo em coluna estreita vira miniatura ilegível. O
   recorte sangra até as bordas do card e ganha um esmaecido à direita, que
   faz o corte parecer intencional em vez de campo cortado no meio. */
.os-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.os-flow__step {
  position: relative;
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: var(--os-r);
  padding: 0 1.5rem 1.75rem;
  box-shadow: var(--os-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}
.os-flow__shot {
  position: relative;
  margin: 0 -1.5rem;
  aspect-ratio: 1.9;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--os-border);
}
.os-flow__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.os-flow__shot::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 22%;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0), #f8fafc);
  pointer-events: none;
}
.os-flow__num {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--os-blue), var(--os-blue-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 0 4px #fff, 0 12px 24px -12px rgba(37, 99, 235, 0.8);
}
.os-flow__step h3 { font-size: 1.25rem; }
.os-flow__step p { color: var(--os-muted); font-size: 0.98rem; }
.os-flow__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.os-flow__tag--blue { color: var(--os-blue-dark); background: var(--os-blue-soft); }
.os-flow__tag--amber { color: var(--os-amber); background: var(--os-amber-soft); }
.os-flow__tag--green { color: var(--os-green); background: var(--os-green-soft); }

/* -------------------------------------------------------- Vitrines (2 col) */
.os-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.os-split--media-right .os-split__media { order: 2; }
.os-split__text h2 { margin: 1rem 0 1.25rem; }
.os-split__text .os-lead { margin-bottom: 1.5rem; }

.os-check {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.os-check li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--os-ink-2);
  font-size: 1rem;
  line-height: 1.55;
}
.os-check li strong { color: var(--os-ink); }
.os-check svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--os-green);
}

.os-numbered { display: flex; flex-direction: column; gap: 1.1rem; }
.os-numbered li { display: flex; gap: 1rem; align-items: flex-start; }
.os-numbered__n {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--os-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}
.os-numbered h4 { font-size: 1.02rem; font-weight: 700; color: var(--os-ink); margin-bottom: 0.15rem; }
.os-numbered p { color: var(--os-muted); font-size: 0.96rem; }

.os-split__media .os-stage { padding: 7% 0 10%; }
.os-split__media--pins .os-stage { padding: 0; }

/* Comparativo "defeito relatado × laudo": duas colunas de recorte */
.os-diag {
  display: grid;
  gap: 1rem;
}
.os-diag__card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--os-border);
  box-shadow: var(--os-shadow);
  overflow: hidden;
}
.os-diag__card--shift { margin-left: 12%; }
.os-diag__card--shift-left { margin-right: 12%; }
.os-diag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--os-ink-2);
  background: #f8fafc;
  border-bottom: 1px solid var(--os-border);
}
.os-diag__head span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--os-muted);
}

/* ------------------------------------------------------- Grade de recursos */
.os-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.os-feature {
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: var(--os-r);
  padding: 1.6rem;
  box-shadow: var(--os-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.os-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--os-shadow);
}
.os-feature__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--os-blue-soft);
  color: var(--os-blue-dark);
  margin-bottom: 1.1rem;
}
.os-feature__icon svg { width: 24px; height: 24px; }
.os-feature h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.os-feature p { color: var(--os-muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------- Vídeo */
.os-video-block {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--os-shadow-lg);
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}
.os-video-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.os-video-block:hover img { transform: scale(1.02); }
.os-video-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* a imagem é absoluta e vem depois no DOM: sem isto ela cobre o degradê */
  background: linear-gradient(180deg, rgba(10, 22, 51, 0.05) 35%, rgba(10, 22, 51, 0.55) 70%, rgba(10, 22, 51, 0.92) 100%);
}
.os-video-block__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, var(--os-cta-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.os-video-block__play svg { width: 30px; height: 30px; margin-left: 4px; }
.os-video-block:hover .os-video-block__play { transform: translate(-50%, -50%) scale(1.07); }
.os-video-block__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  text-align: left;
  color: #fff;
}
.os-video-block__caption strong { display: block; font-size: 1.1rem; }
.os-video-block__caption span { font-size: 0.9rem; color: #cbd5e1; }

/* Modal do vídeo (o controller Stimulus só cria o iframe ao abrir) */
.os-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(4px);
}
.os-video-modal.is-open { display: flex; }
.os-video-modal-frame {
  position: relative;
  width: min(1100px, 94vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.os-video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lightbox das telas */
.os-zoomable { cursor: zoom-in; position: relative; }
.os-zoomable::after {
  content: "Ampliar";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(10, 22, 51, 0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.os-zoomable:hover::after { opacity: 1; }

.os-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.os-lightbox.is-open { display: flex; }
.os-lightbox-img {
  max-width: min(1400px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.os-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.os-lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

/* ------------------------------------------------------- Preço + teste */
.os-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}
.os-offer__card {
  border-radius: var(--os-r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.os-offer__card--buy {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
    linear-gradient(160deg, var(--os-navy) 0%, var(--os-navy-2) 100%);
  box-shadow: var(--os-shadow-lg);
}
.os-offer__card--trial {
  background: #fff;
  border: 1px solid var(--os-border);
  box-shadow: var(--os-shadow);
}
.os-offer__chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.os-offer__card--buy .os-offer__chip { color: #fde68a; background: rgba(251, 191, 36, 0.14); border: 1px solid rgba(251, 191, 36, 0.3); }
.os-offer__card--trial .os-offer__chip { color: var(--os-blue-dark); background: var(--os-blue-soft); }
.os-offer__card h3 { font-size: 1.6rem; margin-top: 1.1rem; letter-spacing: -0.02em; }
.os-offer__card--buy h3 { color: #fff; }
.os-offer__card > p { margin-top: 0.6rem; font-size: 1rem; }
.os-offer__card--buy > p { color: #c7d2e5; }
.os-offer__card--trial > p { color: var(--os-muted); }

.os-price {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.os-price__main {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.os-price__cur { font-size: 1.4rem; margin-top: 0.45rem; }
.os-price__whole { font-size: 3.6rem; letter-spacing: -0.03em; }
.os-price__cents { font-size: 1.5rem; margin-top: 0.4rem; }
.os-price__was { display: flex; flex-direction: column; gap: 0.2rem; padding-bottom: 0.4rem; }
.os-price__was s { color: #94a3b8; font-size: 1rem; }
.os-price__off {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  color: #052e16;
  background: #86efac;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.os-price__type { margin-top: 0.4rem; font-size: 0.9rem; color: #94a3b8; }

.os-offer__list {
  margin: 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.os-offer__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.5;
}
.os-offer__list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.os-offer__card--buy .os-offer__list li { color: #e2e8f0; }
.os-offer__card--buy .os-offer__list svg { color: #4ade80; }
.os-offer__card--trial .os-offer__list li { color: var(--os-ink-2); }
.os-offer__card--trial .os-offer__list svg { color: var(--os-green); }
.os-offer__meta { margin-top: 1rem; font-size: 0.84rem; }
.os-offer__card--buy .os-offer__meta { color: #94a3b8; }
.os-offer__card--trial .os-offer__meta { color: var(--os-muted); }

.os-trial-steps {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.os-trial-steps li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; color: var(--os-ink-2); }
.os-trial-steps li strong { color: var(--os-ink); }
.os-trial-downloads { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.os-trial-downloads .os-btn { justify-content: center; }
.os-trial-note { margin-top: 0.9rem; font-size: 0.84rem; color: var(--os-muted); }

/* --------------------------------------------------------------------- FAQ */
.os-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.os-faq-item {
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-self: start;
}
.os-faq-item[open] { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--os-shadow-sm); }
.os-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--os-ink);
  font-size: 1rem;
}
.os-faq-item summary::-webkit-details-marker { display: none; }
.os-faq-item summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--os-blue-soft);
  color: var(--os-blue-dark);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.2s ease;
  line-height: 1;
}
.os-faq-item[open] summary::after { transform: rotate(45deg); }
.os-faq-item p { margin-top: 0.8rem; color: var(--os-muted); font-size: 0.97rem; }

/* --------------------------------------------------------------- CTA final */
.os-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    linear-gradient(160deg, var(--os-navy) 0%, var(--os-navy-2) 100%);
  color: #fff;
  text-align: center;
}
.os-final h2 { color: #fff; }
.os-final p { margin: 1rem auto 0; max-width: 640px; color: #c7d2e5; font-size: 1.12rem; }
.os-final__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.os-final__note { margin-top: 1.25rem; font-size: 0.88rem; color: #94a3b8; }

/* ------------------------------------------------------------------ Rodapé */
.os-footer {
  background: #060d20;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.os-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.os-footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.os-footer-brand p { max-width: 320px; line-height: 1.6; }
.os-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.os-footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.os-footer-links a:hover { color: #fff; }
.os-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #64748b;
}

/* -------------------------------------------------------------- Responsivo */
@media (max-width: 1080px) {
  .os-features { grid-template-columns: repeat(2, 1fr); }
  .os-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .os-nav { display: none; }
  .os-hero-grid { grid-template-columns: 1fr; }
  .os-hero-stage { margin-top: 1rem; padding: 7% 0 10%; }
  .os-hero-proof { grid-template-columns: 1fr 1fr; }
  .os-flow { grid-template-columns: 1fr; }
  .os-split { grid-template-columns: 1fr; }
  .os-split--media-right .os-split__media { order: 0; }
  .os-split__text { margin-top: 2rem; }
  .os-offer { grid-template-columns: 1fr; }
  .os-faq { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .os-container { padding: 0 18px; }
  .os-header-inner { height: 64px; }
  .os-logo img { height: 32px; }
  .os-header-actions .os-btn--outline { display: none; }
  .os-hero-cta { flex-direction: column; align-items: stretch; }
  .os-hero-cta .os-btn { width: 100%; }
  .os-hero-proof { grid-template-columns: 1fr; gap: 1rem; }
  .os-features { grid-template-columns: 1fr; }
  .os-footer-grid { grid-template-columns: 1fr; }
  .os-stage__float { --w: 62%; }
  .os-hero-win { transform: none; }
  .os-hero-play__btn { width: 64px; height: 64px; }
  .os-hero-play__label { font-size: 0.85rem; padding: 0.5rem 0.85rem; }
  .os-stage__float--tr, .os-stage__float--tl { display: none; }
  .os-hero-stage, .os-split__media .os-stage { padding: 0 0 12%; }
  .os-win__title { display: none; }
  .os-pin { display: none; }
  .os-diag__card--shift { margin-left: 0; }
  .os-diag__card--shift-left { margin-right: 0; }
  .os-price__whole { font-size: 3rem; }
  .os-video-block__caption { padding: 1rem; }
  .os-video-block__caption strong { font-size: 0.95rem; }
  .os-video-block__play { width: 66px; height: 66px; }
}
