/* ============================================================
   Filmavys — site styles
   Base: design system tokens (assets/design-system.css)
   ============================================================ */

@import url("./assets/design-system.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Mono:wght@400;500&display=swap");

:root {
  /* Brand tokens */
  --filmavys-navy: #0B1B33;
  --filmavys-navy-2: #0F2240;
  --filmavys-navy-3: #16305A;
  --filmavys-blue: #2E6BE6;

  /* Dark theme neutrals */
  --ink: #FFFFFF;              /* primary text on dark */
  --ink-2: rgba(255,255,255,0.74); /* secondary text */
  --ink-3: rgba(255,255,255,0.50); /* muted/eyebrow */
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.05);
  --paper: #07101F;            /* base body */
  --paper-2: #0B1B33;          /* navy section */
  --paper-3: #0F2240;          /* lifted section */
  --card: #0F2240;             /* card surface */
  --card-2: #142849;           /* lifted card */

  --container: 1240px;
  --gutter: 28px;

  --font-sans: "Roboto", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* ---------- Type ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.on-dark { color: var(--primary); }

.h-display {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  margin: 0;
  text-wrap: balance;
}

.h-card {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38em;
  margin: 0;
  text-wrap: pretty;
}

.lede.on-dark { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #ff5a14; }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.btn-dark {
  background: #fff;
  color: var(--filmavys-navy);
}
.btn-dark:hover { background: #f4f4f0; }

.btn-sm { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { height: 60px; padding: 0 28px; font-size: 1.05rem; }

.btn .arr { display:inline-block; transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,16,31,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.on-dark {
  background: rgba(7,16,31,0.72);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-logo img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  transition: background 0.15s, color 0.15s;
}
.nav.on-dark .nav-links a { color: rgba(255,255,255,0.8); }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav.on-dark .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.nav.on-dark .mobile-toggle { border-color: rgba(255,255,255,0.2); color: #fff; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--filmavys-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255,107,44,0.16), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(46,107,230,0.18), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  /* subtle film grain texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 8vw, 120px);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
}
.hero-headline { color: #fff; }
.hero-headline em {
  font-style: normal;
  color: var(--primary);
}
.hero-sub {
  color: rgba(255,255,255,0.74);
  font-size: 1.075rem;
  line-height: 1.55;
  margin: 0;
  max-width: 30em;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-meta .dot { width:6px;height:6px;background:var(--primary);border-radius:50%; }

/* Hero Calendly widget */
.hero-calendly-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.hero-calendly-wrap .calendly-inline-widget {
  border-radius: 18px;
}

@media (max-width: 980px) {
  .hero-top { grid-template-columns: 1fr; gap: 32px; align-items: start; padding-bottom: 36px;}
  .hero-calendly-wrap { width: 100%; max-width: 100%; }
  .hero-calendly-wrap .calendly-inline-widget {
    height: 580px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 440px) {
  :root { --gutter: 16px; }
  .video-strip { font-size: 9px; letter-spacing: 0; gap: 6px; }
  .hero-sub { font-size: 1rem; }
}

/* Intro-strip com vídeo */
.intro-strip--video {
  align-items: center;
}
@media (max-width: 900px) {
  .intro-strip--video { grid-template-columns: 1fr; }
}

/* Hero video frame */
.video-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #0a182d 0%, #0c1d38 100%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.video-frame {
  aspect-ratio: 16 / 9;
  position: relative;
}
.video-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  gap: 12px;
}
.video-strip .tc { color: var(--primary); }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 40px -8px rgba(255,107,44,0.55);
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { margin-left: 4px; }

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.video-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.video-corner.tl { top: 14px; left: 16px; }
.video-corner.tr { top: 14px; right: 16px; }
.video-corner.bl { bottom: 14px; left: 16px; }

/* ---------- Hero bullets strip ---------- */
.hero-bullets {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.hero-bullets .b {
  display: flex; gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.4;
}
.hero-bullets .b .num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 11px;
  padding-top: 2px;
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .hero-bullets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-bullets { grid-template-columns: 1fr; }
}

/* ---------- Generic section paddings ---------- */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section.tight {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section.dark {
  background: var(--filmavys-navy);
  color: #fff;
}
.section.cream {
  background: var(--paper-2);
}
.section.paper-3 {
  background: var(--paper-3);
}

.section-head {
  max-width: 56rem;
  display: flex; flex-direction: column; gap: 22px;
  margin-bottom: 72px;
}

/* ---------- Sobre / Intro strip (texto de apoio) ---------- */
.intro-strip {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 64px;
}
.intro-strip .lead {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.intro-strip .body p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; }
@media (max-width: 900px) {
  .intro-strip { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.feat {
  background: var(--card);
  padding: 32px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  position: relative;
}
@media (max-width: 760px) {
  .feat { padding: 20px 18px 24px; gap: 14px; min-height: auto; }
}
.feat .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.feat p {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.feat-vis {
  margin-top: auto;
  padding-top: 16px;
}

/* Gestão de projetos (6º card) — flow vertical no desktop */
@media (min-width: 761px) {
  .features > article:nth-child(6) {
    min-height: 420px;
  }
  .features > article:nth-child(6) .feat-vis {
    flex: 1;
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }
  .features > article:nth-child(6) .diag {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .features > article:nth-child(6) .flow {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 10px 8px;
  }
  .features > article:nth-child(6) .flow .step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .features > article:nth-child(6) .flow .arrow {
    display: block;
    text-align: center;
    transform: rotate(90deg);
    line-height: 1.8;
    flex: 0 0 auto;
  }
}

/* Spans: 7 features, layout:
   row1: 6 / 6
   row2: 4 / 4 / 4
   row3: 6 / 6 (last is wider visual)
*/
.feat.s6 { grid-column: span 6; }
.feat.s4 { grid-column: span 4; }
.feat.s12 { grid-column: span 12; }

@media (max-width: 1100px) {
  .feat.s4 { grid-column: span 6; }
}
@media (max-width: 760px) {
  .feat.s6, .feat.s4, .feat.s12 { grid-column: span 12; }
}

/* ---------- Feature visuals (custom small diagrams) ---------- */
.diag {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}

/* Kanban */
.kanban { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
.kanban .col { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 6px; padding: 8px 8px 10px; min-height: 130px;}
.kanban .col h6 { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 8px; color: var(--ink-3); display: flex; justify-content: space-between; }
.kanban .chips .chip { background: rgba(255,255,255,0.06); height: 16px; border-radius: 3px; margin-bottom: 6px; position: relative;}
.kanban .chips .chip::after { content: ""; position: absolute; left: 6px; top: 5px; width: 60%; height: 6px; background: #fff; border-radius: 2px; opacity: 0.35;}
.kanban .chips .chip.accent::after { background: var(--primary); opacity: 0.95; }

/* Kanban mobile — production status tracker */
@media (max-width: 760px) {
  .kanban { grid-template-columns: 1fr; gap: 5px; }
  .kanban .col {
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-left: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.2s;
  }
  .kanban .col:has(.chip.accent) { border-left-color: var(--primary); }
  .kanban .col h6 { margin: 0; flex: 0 0 72px; font-size: 8.5px; }
  .kanban .chips { display: flex; gap: 5px; align-items: center; flex: 1; }
  .kanban .chips .chip {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
  }
  .kanban .chips .chip::after {
    width: 6px;
    height: 6px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    opacity: 0.5;
  }
  .kanban .chips .chip.accent::after { opacity: 1; }
}

/* Flow */
.flow { display:flex; align-items:center; justify-content:space-between; gap:6px; padding: 18px 8px; }
.flow .step { flex: 1; text-align:center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.04); color: var(--ink-2); font-size: 10px; line-height:1.2;}
.flow .step.active { border-color: var(--primary); color: var(--primary); background: rgba(255,107,44,0.12);}
.flow .arrow { color: var(--ink-3); }

@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 8px; }
  .flow .step { width: 100%; }
  .flow .arrow { text-align: center; line-height: 1.6; transform: rotate(90deg); display: block; }
}

/* Approval / comments */
.approval { padding: 10px 8px; }
.approval .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.04); margin-bottom: 8px;}
.approval .av { width: 22px; height: 22px; border-radius: 50%; background: #fff; flex: 0 0 22px; opacity: 0.75;}
.approval .av.b { background: var(--filmavys-blue); opacity: 1;}
.approval .av.o { background: var(--primary); opacity: 1;}
.approval .txt { flex:1; height: 6px; border-radius: 2px; background: rgba(255,255,255,0.1); position: relative;}
.approval .txt::after{ content:""; position:absolute; inset:0; right: 35%; background: #fff; opacity: 0.4; border-radius: 2px;}
.approval .status { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; white-space: nowrap;}
.approval .status.ok { color: #5be59a; background: rgba(91,229,154,0.12); }
.approval .status.rev { color: var(--primary); background: rgba(255,107,44,0.14); }
.approval .status.pend { color: var(--ink-3); background: rgba(255,255,255,0.06); }

/* Client portal */
.client-portal { padding: 10px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.client-portal .preview { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 4/3; position:relative; overflow: hidden;}
.client-portal .preview::before { content: ""; position:absolute; inset: 12px; border: 1px solid var(--line); border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px);
}
.client-portal .preview::after { content: "V3"; position: absolute; top: 8px; right: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--primary); background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--primary);}
.client-portal .info { display: flex; flex-direction: column; gap: 6px;}
.client-portal .info .line { height: 8px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.client-portal .info .line.s { width: 70%; }
.client-portal .info .line.b { background: var(--primary); width: 40%; height: 22px; border-radius: 4px; margin-top: 8px;}

/* Library */
.library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; }
.library .tile { aspect-ratio: 4/3; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 6px; position: relative; overflow: hidden;}
.library .tile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px);}
.library .tile.h { background: var(--primary); border-color: var(--primary);}
.library .tile.h::after { background: repeating-linear-gradient(45deg, rgba(0,0,0,0.15) 0 6px, transparent 6px 12px);}
.library .tile.h::before { content: "FILMAVYS_BR_001"; position: absolute; bottom: 6px; left: 6px; font-family: var(--font-mono); font-size: 8px; color: #0B1B33; z-index: 2; font-weight: 700;}

/* Reports */
.reports { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 8px;}
.reports .kpi { background: rgba(255,255,255,0.04); border:1px solid var(--line); border-radius: 6px; padding: 10px;}
.reports .kpi .label { font-family: var(--font-mono); font-size: 9px; letter-spacing:0.08em; text-transform:uppercase; color: var(--ink-3);}
.reports .kpi .val { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.02em; line-height:1; margin-top:6px;}
.reports .kpi .delta { font-family: var(--font-mono); font-size: 10px; color: #5be59a; margin-top: 6px;}
.reports .kpi .delta.down { color: var(--primary);}
.reports .bars { background: rgba(255,255,255,0.04);border:1px solid var(--line);border-radius:6px;padding:10px;display:flex; align-items:flex-end;gap:5px; height:74px; grid-column: span 3;}
.reports .bars .bar { flex:1; background: rgba(255,255,255,0.35); border-radius: 2px 2px 0 0; opacity: 0.85; }
.reports .bars .bar.a { background: var(--primary); opacity: 1; }

@media (max-width: 410px) {
  .reports { grid-template-columns: 1fr 1fr; }
  .reports .kpi:nth-child(3) { grid-column: span 2; }
  .reports .kpi .val { font-size: 18px; }
  .reports .bars { grid-column: span 2; }
}

/* AI panel — large */
.ai-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.ai-panel .ai-prompt {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-panel .ai-prompt .you {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.ai-panel .ai-prompt .msg {
  background: rgba(255,255,255,0.06); border-radius: 8px; padding: 12px;
  color: var(--ink-2); font-size: 0.92rem; line-height: 1.4;
}
.ai-panel .ai-prompt .msg.ai {
  background: var(--primary); color: #fff;
  position: relative;
}
.ai-panel .ai-prompt .msg.ai::before {
  content: "FILMAVYS · IA"; display:block;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85); margin-bottom: 8px;
}
.ai-panel .ai-out {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.ai-panel .ai-out h6 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin:0 0 4px;}
.ai-panel .ai-out .item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,0.2);}
.ai-panel .ai-out .item .ix { font-family: var(--font-mono); font-size: 11px; color: var(--primary); }
.ai-panel .ai-out .item .l1 { font-size: 0.85rem; color: #fff; font-weight: 500;}
.ai-panel .ai-out .item .l2 { font-size: 0.78rem; color: var(--ink-3); margin-top: 2px;}

@media (max-width: 720px) {
  .ai-panel { grid-template-columns: 1fr; }
}

/* ---------- Positioning quote ---------- */
.position-quote {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 22ch;
}
.position-quote em {
  font-style: normal;
  color: var(--primary);
}

/* ---------- Intermediate CTA band ---------- */
.cta-band {
  background: var(--filmavys-navy);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 100% 0%, rgba(255,107,44,0.2), transparent 70%);
}
.cta-band-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 40px;
}
.cta-band h2 { color: #fff; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: flex-end;}
@media (max-width: 800px) {
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band .ctas { justify-content: flex-start; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 56rem; margin: 0; border-top: 1px solid var(--line);}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
}
.faq-q .ico { width: 22px; height: 22px; position: relative; flex: 0 0 22px;}
.faq-q .ico::before, .faq-q .ico::after {
  content: ""; position: absolute; background: currentColor;
  top: 10px; left: 0; width: 22px; height: 2px;
  transition: transform 0.2s ease;
}
.faq-q .ico::after { transform: rotate(90deg); }
.faq-item.open .faq-q .ico::after { transform: rotate(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.faq-a-inner { padding: 0 0 28px; max-width: 50em; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}
.final-cta h2 { margin-bottom: 22px; }
.final-cta .ctas { justify-content: center; display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;}

/* ---------- Footer ---------- */
.footer {
  background: #04090F;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px;}
.footer-grid a { display: block; padding: 6px 0; color: rgba(255,255,255,0.78); font-size: 0.95rem;}
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: rgba(255,255,255,0.45);}
.footer-logo img { height: 22px; }
.footer-mission { margin-top: 18px; max-width: 28em; font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.6);}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Planos page ---------- */
.plans-hero {
  background: var(--filmavys-navy);
  color: #fff;
  padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 8vw, 100px);
  text-align: center;
  position: relative; overflow: hidden;
}
.plans-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 50% 0%, rgba(255,107,44,0.18), transparent 60%);
}
.plans-hero-inner { position: relative; z-index: 1; max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px;}
.plans-hero .micro {
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
}
.plans-hero .micro span + span { margin-left: 16px; }
.plans-hero .micro span::before { content: "• "; color: var(--primary); }

.billing-toggle {
  display: inline-flex; gap: 4px;
  background: rgba(255,255,255,0.08);
  padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.billing-toggle button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.billing-toggle button.active {
  background: var(--primary); color: #fff;
}
.billing-toggle .save { font-family: var(--font-mono); font-size: 10px; color: var(--primary); letter-spacing: 0.05em; margin-left: 6px; }
.billing-toggle button.active .save { color: #fff; background: rgba(0,0,0,0.18); padding: 2px 7px; border-radius: 999px; }

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -80px;
  position: relative; z-index: 2;
}
@media (max-width: 980px) { .plans-grid { grid-template-columns: 1fr; max-width: 28rem; margin-left:auto; margin-right:auto; } }

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.18); }

.plan.featured {
  background: linear-gradient(180deg, #1a3568 0%, #0f2240 100%);
  color: #fff;
  border-color: var(--primary);
}
.plan.featured .plan-name { color: var(--primary);}
.plan.featured .plan-desc { color: rgba(255,255,255,0.78);}
.plan.featured .plan-price { color: #fff; }
.plan.featured .plan-price-sub { color: rgba(255,255,255,0.6);}
.plan.featured .plan-feats li { color: rgba(255,255,255,0.92);}
.plan.featured .plan-feats li::before { color: var(--primary);}
.plan.featured .plan-divider { border-color: rgba(255,255,255,0.12);}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plan-desc {
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
  text-wrap: balance;
}
.plan-price {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price .cur { font-size: 0.6em; font-weight: 700; }
.plan-price .per { font-size: 0.42em; font-weight: 500; color: var(--ink-3); margin-left: 4px;}
.plan-price-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 4px;}
.plan-divider { border: none; border-top: 1px solid var(--line); margin: 6px 0 0; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px;}
.plan-feats li {
  position: relative; padding-left: 26px;
  font-size: 0.95rem; line-height: 1.45;
  color: #fff;
}
.plan-feats li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
}
.plan-feats li.muted { color: var(--ink-3); font-size: 0.88rem; }
.plan-feats li.heading { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); padding-left: 0;}
.plan-feats li.heading::before { display: none; }

.plan .btn { margin-top: auto; justify-content: center; width: 100%; }

/* Comparison table */
.comparison {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.cmp-cell { background: var(--card); padding: 24px; }
.cmp-cell.head { background: var(--card-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);}
.cmp-cell.head.plan-h { color: #fff; font-size: 0.95rem; font-family: var(--font-sans); font-weight: 700; text-transform: none; letter-spacing: -0.005em;}
.cmp-cell.head.plan-h .badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  background: var(--primary); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.cmp-cell p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2);}
@media (max-width: 900px) { .comparison { grid-template-columns: 1fr; } }

/* Trust list */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.trust-grid .t {
  border-top: 2px solid #fff;
  padding-top: 18px;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 500;
  color: #fff;
}
.trust-grid .t .n { font-family: var(--font-mono); font-size: 11px; color: var(--primary); letter-spacing: 0.08em; display: block; margin-bottom: 12px; }
.trust-grid .t .metric { font-family: var(--font-sans); font-size: clamp(2.4rem, 3.6vw, 3.4rem); font-weight: 900; color: var(--primary); letter-spacing: -0.04em; line-height: 1; display: block; margin-bottom: 10px; }
.trust-grid .t .label { font-size: 0.92rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr !important; }}
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr !important; }}

/* Two-column section helper (used inline in home/planos pages) */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.two-col.flip { grid-template-columns: 1fr 1.4fr; gap: 80px; }
@media (max-width: 900px) {
  .two-col, .two-col.flip { grid-template-columns: 1fr; gap: 36px; }
}

/* Values 3-col grid (sobre.php) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* Responsive grids for inner pages */
@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr 1fr !important; }
  .personas-grid { grid-template-columns: 1fr 1fr !important; }
  .tour-grid { grid-template-columns: 1fr 1fr !important; }
  .channel-grid { grid-template-columns: 1fr !important; }
  .topics-grid { grid-template-columns: 1fr 1fr !important; }
  .schedule-grid,
  .contact-grid,
  .status-grid,
  .no-time-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}
@media (max-width: 680px) {
  .story-grid { grid-template-columns: 1fr !important; }
  .personas-grid { grid-template-columns: 1fr !important; }
  .tour-grid { grid-template-columns: 1fr !important; }
  .topics-grid { grid-template-columns: 1fr !important; }
}

/* Mobile nav drawer */
.mob-drawer {
  position: fixed;
  inset: 0;
  background: var(--filmavys-navy);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  color: #fff;
}
.mob-drawer.open { transform: translateY(0); }
.mob-drawer-top { display: flex; align-items: center; justify-content: space-between; height: 52px;}
.mob-drawer-top img { height: 24px; }
.mob-drawer-close { background: transparent; border: 1px solid rgba(255,255,255,0.2); width: 44px; height: 44px; border-radius: 999px; color: #fff; font-size: 18px; cursor: pointer;}
.mob-drawer-links { display: flex; flex-direction: column; gap: 4px; margin-top: 32px;}
.mob-drawer-links a { padding: 18px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em;}
.mob-drawer-links a:hover { color: var(--primary);}
.mob-drawer-cta { margin-top: auto; padding-bottom: 24px;}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fvy-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fvy-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fvy-chip {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50%       { opacity: 0.45; transform: scaleX(0.88); }
}
@keyframes fvy-step {
  0%, 100% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(214,72,34,0); }
  50%       { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(214,72,34,0.22); }
}
@keyframes fvy-bar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* --- Hero entrance (class added by JS) ------------------- */
.hero-anim .hero-top > div:first-child > * {
  animation: fvy-up 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-anim .hero-top > div:first-child > *:nth-child(1) { animation-delay: 0.06s; }
.hero-anim .hero-top > div:first-child > *:nth-child(2) { animation-delay: 0.14s; }
.hero-anim .hero-top > div:first-child > *:nth-child(3) { animation-delay: 0.22s; }
.hero-anim .hero-top > div:first-child > *:nth-child(4) { animation-delay: 0.30s; }
.hero-anim .hero-top > div:first-child > *:nth-child(5) { animation-delay: 0.37s; }
.hero-anim .hero-top > div:last-child,
.hero-anim .hero-top > .hero-calendly-wrap {
  animation: fvy-right 0.75s cubic-bezier(0.16,1,0.3,1) 0.18s both;
}
.hero-anim .hero-bullets .b { animation: fvy-up 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.hero-anim .hero-bullets .b:nth-child(1) { animation-delay: 0.46s; }
.hero-anim .hero-bullets .b:nth-child(2) { animation-delay: 0.54s; }
.hero-anim .hero-bullets .b:nth-child(3) { animation-delay: 0.62s; }
.hero-anim .hero-bullets .b:nth-child(4) { animation-delay: 0.70s; }

/* Plans hero */
.plans-hero-anim .plans-hero-inner > * { animation: fvy-up 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.plans-hero-anim .plans-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.plans-hero-anim .plans-hero-inner > *:nth-child(2) { animation-delay: 0.13s; }
.plans-hero-anim .plans-hero-inner > *:nth-child(3) { animation-delay: 0.21s; }
.plans-hero-anim .plans-hero-inner > *:nth-child(4) { animation-delay: 0.29s; }
.plans-hero-anim .plans-hero-inner > *:nth-child(5) { animation-delay: 0.37s; }

/* --- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.from-right { transform: translateX(28px); }
.reveal.revealed   { opacity: 1; transform: none; }

/* --- Ambient diagram animations --------------------------- */
.kanban .chip.accent {
  animation: fvy-chip 2.6s ease-in-out infinite;
}
.flow .step.active {
  animation: fvy-step 2.2s ease-in-out infinite;
}
.reports .bar {
  transform-origin: bottom;
  animation: fvy-bar 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
.reports .bar:nth-child(1)  { animation-delay: 0.0s; }
.reports .bar:nth-child(2)  { animation-delay: 0.06s; }
.reports .bar:nth-child(3)  { animation-delay: 0.12s; }
.reports .bar:nth-child(4)  { animation-delay: 0.18s; }
.reports .bar:nth-child(5)  { animation-delay: 0.24s; }
.reports .bar:nth-child(6)  { animation-delay: 0.30s; }
.reports .bar:nth-child(7)  { animation-delay: 0.36s; }
.reports .bar:nth-child(8)  { animation-delay: 0.42s; }
.reports .bar:nth-child(9)  { animation-delay: 0.48s; }
.reports .bar:nth-child(10) { animation-delay: 0.54s; }

/* --- Feature card hover ----------------------------------- */
.feat {
  transition: background 0.25s ease;
}
.feat:hover { background: var(--card-2); }

/* --- Reduced motion override ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero-anim .hero-top > div:first-child > *,
  .hero-anim .hero-top > div:last-child,
  .hero-anim .hero-top > .hero-calendly-wrap,
  .hero-anim .hero-bullets .b,
  .plans-hero-anim .plans-hero-inner > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .kanban .chip.accent,
  .flow .step.active,
  .reports .bar { animation: none; }
}
.mob-drawer-cta .btn { width: 100%; justify-content: center; }
