/* ==========================================================================
   Landing page — Ordens de Serviço
   Self-contained, scoped under .os-page (does not depend on landing.css)
   ========================================================================== */

.os-page {
  --os-primary: #0ea5e9;
  --os-primary-dark: #0284c7;
  --os-primary-soft: #e0f2fe;
  --os-cta: #f97316;
  --os-cta-dark: #ea580c;

  --os-ink: #0f172a;
  --os-ink-soft: #334155;
  --os-body: #475569;
  --os-muted: #64748b;

  --os-bg: #ffffff;
  --os-soft: #f8fafc;
  --os-border: #e2e8f0;

  --os-radius: 16px;
  --os-radius-sm: 12px;
  --os-radius-lg: 22px;

  --os-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --os-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.22);
  --os-shadow-lg: 0 40px 80px -35px rgba(15, 23, 42, 0.45);

  --os-container: 1160px;

  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;
}

/* Page-scoped reset (defensive; global reset also comes from the app bundle) */
.os-page *,
.os-page *::before,
.os-page *::after { box-sizing: border-box; }
.os-page h1,
.os-page h2,
.os-page h3,
.os-page h4,
.os-page p { margin: 0; }
.os-page ul { margin: 0; padding: 0; list-style: none; }
.os-page a { color: inherit; text-decoration: none; }
.os-page img { display: block; max-width: 100%; height: auto; }

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

.os-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.os-section--soft { background: var(--os-soft); }
.os-section--dark {
  background: linear-gradient(140deg, #04122b 0%, #0b2545 55%, #0a3a60 100%);
  color: #fff;
}

.os-section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.os-section-head h2 { margin-top: 1rem; }
.os-section-head p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--os-muted);
}

/* --------------------------------------------------------------- Typography */
.os-page h1 {
  font-size: clamp(2.15rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--os-ink);
}
.os-page h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.45rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--os-ink);
}
.os-page h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--os-ink);
}

.os-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--os-primary-dark);
  background: var(--os-primary-soft);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
}
.os-hl {
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- Buttons */
.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.os-btn--cta {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(234, 88, 12, 0.65);
}
.os-btn--cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(234, 88, 12, 0.7); }
.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.12); }
.os-btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.os-btn--sm { padding: 0.62rem 1.15rem; font-size: 0.9rem; }
.os-btn--block { width: 100%; }

/* --------------------------------------------------------------- Header */
.os-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--os-border);
}
.os-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 70px;
}
.os-logo img { height: 36px; width: auto; }
.os-nav { display: flex; gap: 1.75rem; }
.os-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--os-ink-soft);
  transition: color 0.15s ease;
}
.os-nav a:hover { color: var(--os-primary); }

/* --------------------------------------------------------------- Screenshot frame */
.os-shot {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--os-shadow-lg);
}
.os-shot--dark { border-color: rgba(255, 255, 255, 0.12); }
.os-shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.os-shot-dot { width: 11px; height: 11px; border-radius: 50%; }
.os-shot-dot--r { background: #ff5f57; }
.os-shot-dot--y { background: #febc2e; }
.os-shot-dot--g { background: #28c840; }
.os-shot-body { display: block; background: #fff; }

/* --------------------------------------------------------------- Hero */
.os-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #04122b 0%, #0b2545 52%, #0a3a60 100%);
  color: #fff;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.os-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.22), transparent 62%);
  pointer-events: none;
}
.os-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.os-hero-copy { max-width: 560px; }
.os-hero-copy h1 { color: #fff; margin-top: 1.2rem; }
.os-hero-sub {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 540px;
}
.os-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}
.os-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.9rem;
}
.os-hero-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #94a3b8;
}
.os-hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.os-avatars { display: flex; }
.os-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #0b2545;
  margin-left: -10px;
}
.os-avatars img:first-child { margin-left: 0; }
.os-trust-stars { color: #fbbf24; letter-spacing: 2px; font-size: 0.95rem; }
.os-trust-text { font-size: 0.9rem; color: #cbd5e1; }
.os-trust-text strong { color: #fff; }

.os-hero-shot .os-shot-body { max-height: 520px; overflow: hidden; }

/* Video facade (hero) */
.os-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.os-hero-shot .os-shot-body.os-video { max-height: none; }
.os-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}
.os-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.os-video-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.55));
  transition: background 0.2s ease;
}
.os-video-play:hover::before { background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.6)); }
.os-video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.os-video-play:hover .os-video-btn { transform: translate(-50%, -50%) scale(1.08); }
.os-video-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.os-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Zoomable screenshots + lightbox */
.os-zoomable { cursor: zoom-in; }
.os-zoomable::after {
  content: "🔍";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.55);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.os-shot-body.os-zoomable { position: relative; }
.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.86);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.os-lightbox.is-open { display: flex; }
.os-lightbox-img {
  max-width: min(1280px, 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); }

/* Theater-mode video modal */
.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;
}

/* --------------------------------------------------------------- Features grid */
.os-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.os-feature {
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  padding: 1.75rem;
  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(14, 165, 233, 0.5);
  box-shadow: var(--os-shadow);
}
.os-feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--os-primary-soft);
  color: var(--os-primary-dark);
  font-size: 1.55rem;
  margin-bottom: 1.1rem;
}
.os-feature h3 { margin-bottom: 0.5rem; }
.os-feature p { color: var(--os-muted); font-size: 0.98rem; }

/* --------------------------------------------------------------- Showcase (image + text) */
.os-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.os-showcase--reverse .os-showcase-media { order: 2; }
.os-showcase-text h2 { margin: 0.9rem 0 1.75rem; }

.os-benefits { display: flex; flex-direction: column; gap: 1.4rem; }
.os-benefit { display: flex; gap: 1rem; align-items: flex-start; }
.os-benefit-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--os-primary-soft);
  font-size: 1.3rem;
}
.os-benefit h4 { font-size: 1.05rem; font-weight: 700; color: var(--os-ink); margin: 0 0 0.25rem; }
.os-benefit p { color: var(--os-muted); font-size: 0.97rem; }

/* Featured recurso (checklist) */
.os-check {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.os-check li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--os-ink-soft);
  font-size: 0.98rem;
}
.os-check li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
  flex: none;
}

/* --------------------------------------------------------------- Steps */
.os-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.os-step {
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  padding: 1.9rem;
  box-shadow: var(--os-shadow-sm);
}
.os-step-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.os-step h3 { margin-bottom: 0.4rem; }
.os-step p { color: var(--os-muted); font-size: 0.98rem; }

/* --------------------------------------------------------------- Pricing */
.os-pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--os-shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.os-pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
}
.os-plan-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--os-primary-dark);
  background: var(--os-primary-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.os-pricing-card h3 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.os-pricing-card > p { color: var(--os-muted); font-size: 0.98rem; }
.os-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  margin: 1.5rem 0 0.35rem;
  color: var(--os-ink);
  font-weight: 800;
  line-height: 1;
}
.os-price .os-cur { font-size: 1.4rem; margin-top: 0.5rem; }
.os-price .os-amount { font-size: 3.4rem; }
.os-price .os-cents { font-size: 1.6rem; margin-top: 0.4rem; }
.os-price-type { font-size: 0.9rem; color: var(--os-muted); }
.os-plan-list {
  text-align: left;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.os-plan-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--os-ink-soft);
  font-size: 0.98rem;
}
.os-plan-list li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
  flex: none;
}
.os-plan-meta { margin-top: 1.1rem; font-size: 0.86rem; color: var(--os-muted); }

/* --------------------------------------------------------------- FAQ */
.os-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 960px;
  margin: 0 auto;
}
.os-faq-item {
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.os-faq-item[open] { border-color: rgba(14, 165, 233, 0.5); 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: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--os-primary);
  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; }

/* --------------------------------------------------------------- Final CTA */
.os-final { text-align: center; }
.os-final h2 { color: #fff; }
.os-final p { margin-top: 1rem; color: #cbd5e1; font-size: 1.1rem; }
.os-final .os-btn { margin-top: 2rem; }
.os-final-note { margin-top: 1.25rem; font-size: 0.9rem; color: #94a3b8; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .os-nav { display: none; }
  .os-hero-grid { grid-template-columns: 1fr; }
  .os-hero-copy { max-width: none; }
  .os-hero-media { margin-top: 2.5rem; }
  .os-features { grid-template-columns: 1fr 1fr; }
  .os-showcase-grid { grid-template-columns: 1fr; }
  .os-showcase--reverse .os-showcase-media,
  .os-showcase-media { order: 0; }
  .os-showcase-text { margin-top: 2rem; }
  .os-steps { grid-template-columns: 1fr; }
  .os-faq { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .os-container { padding: 0 18px; }
  .os-features { grid-template-columns: 1fr; }
  .os-hero-cta { flex-direction: column; align-items: stretch; }
  .os-hero-cta .os-btn { width: 100%; }
  .os-hero-shot .os-shot-body { max-height: none; }
}
