/* ============================================================
   Mídia TV Valença — Landing de captação de anunciantes
   Identidade: Swiss Web Minimalism (base) + Grain/Noise +
   Kinetic Typography + acentos Nanopunk.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0c0c0d;
  --ink-soft: #2c2b28;
  --paper: #f5f2ec;
  --paper-2: #ece8df;
  --surface: #fffefb;
  --muted: #5b574e;
  --line: rgba(12, 12, 13, .14);
  --line-strong: rgba(12, 12, 13, .34);

  --brand: #1652f0;
  --brand-deep: #0a1f5c;
  --brand-ink: #e9f0ff;
  --cyan: #4de3ff;
  --mint: #9ff0d0;
  --wa: #25d366;

  --maxw: 1180px;
  --font-display: 'Anybody', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(77, 227, 255, .12), transparent 32%),
    radial-gradient(circle, rgba(10, 31, 92, .08) 1px, transparent 1.4px) 0 0 / 28px 28px;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: .14;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9998;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 800px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 10000;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font: 600 .8rem var(--font-mono); text-decoration: none;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .73rem var(--font-mono);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--brand);
}
.eyebrow--onDark { color: var(--cyan); }
.eyebrow__tick { width: 12px; height: 12px; flex: none; clip-path: var(--hex); background: var(--cyan); }

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 84%;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.018em;
  text-transform: uppercase;
  max-width: 18ch;
}
.section__lead { margin-top: 20px; max-width: 58ch; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Buttons (Swiss / flat) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .09em;
  padding: 14px 22px; min-height: 46px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 10px 15px; min-height: 40px; font-size: .72rem; }
.btn--lg { padding: 18px 30px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.topbar__inner { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand__logo { width: 176px; height: auto; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 11px; text-decoration: none;
  font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.topbar__cta { flex: none; }
.topbar__toggle {
  display: none; margin-left: auto; width: 46px; height: 42px;
  border: 2px solid var(--ink); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.topbar__toggle-bars, .topbar__toggle-bars::before, .topbar__toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); content: "";
}
.topbar__toggle-bars { position: relative; }
.topbar__toggle-bars::before { position: absolute; top: -6px; }
.topbar__toggle-bars::after { position: absolute; top: 6px; }

.nav-mobile { border-top: 2px solid var(--ink); background: var(--paper); padding: 12px 24px 20px; display: grid; gap: 4px; }
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: 12px 4px; text-decoration: none; font: 600 .8rem var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 12px; border-bottom: 2px solid var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: clamp(52px, 8vw, 108px) 0 clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 68px); align-items: center; }

.display {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 78%;
  font-size: clamp(2.9rem, 8.4vw, 6.4rem);
  line-height: .92; letter-spacing: -.022em;
  text-transform: uppercase; margin: 20px 0 0;
}

/* Kinetic split text */
.kt-line { display: block; overflow: hidden; padding: .1em 0 .12em; }
.kt-word { display: inline-block; white-space: nowrap; }
.kt-ch {
  display: inline-block;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), font-weight .35s ease-out, font-stretch .35s ease-out, color .2s;
  transition-delay: calc(var(--i) * 24ms), 0s, 0s, 0s;
  will-change: transform;
}
.js .kt-ch { transform: translateY(112%); }
.js .kt-in .kt-ch { transform: none; }
.kt-ch:hover { font-weight: 200; font-stretch: 150%; color: var(--brand); transition-delay: 0s; }
.kt-line.is-accent .kt-ch { color: var(--brand); }
.kt-line.is-accent .kt-ch:hover { color: var(--ink); }

.hero .lead { margin-top: 28px; max-width: 46ch; font-size: 1.16rem; color: var(--ink-soft); }
.hero .lead strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  margin-top: 40px; padding-top: 22px; border-top: 2px solid var(--ink);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--font-display); font-weight: 800; font-stretch: 82%; font-size: 1.85rem; line-height: 1; letter-spacing: -.02em; }
.hero__facts span { font: 500 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 7px; }

.hero__media {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--brand-deep);
  box-shadow: 0 24px 60px rgba(10, 31, 92, .16);
}
.hero__media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.hero__badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(12, 12, 13, .82); color: #fff; padding: 9px 14px;
  font: 600 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em;
  backdrop-filter: blur(4px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(77, 227, 255, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(77, 227, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(77, 227, 255, 0); } }

/* Nanopunk corner ticks */
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--cyan); z-index: 3; }
.corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Marquee (Kinetic) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); background: var(--ink); color: var(--paper); white-space: nowrap; }
.marquee__track {
  display: inline-flex; align-items: center; gap: 1.5rem;
  padding: 14px 0; font: 700 1.45rem/1 var(--font-display);
  font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em;
  animation: marq 30s linear infinite; will-change: transform;
}
.marquee__track i { color: var(--cyan); font-size: .7em; }
.marquee__track span { flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 126px) 0; }
.section[id] { scroll-margin-top: 96px; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line-strong); }
.section__head { margin-bottom: clamp(34px, 5vw, 56px); }

/* ---------- Benefits (ex-value) ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--ink);
}
.benefit {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start;
  padding: 30px 26px 30px 0; border-bottom: 1px solid var(--line-strong);
}
.benefit:nth-child(odd) { padding-right: 34px; border-right: 1px solid var(--line-strong); }
.benefit:nth-child(even) { padding-left: 34px; }
.benefit__num {
  grid-row: span 2; font: 500 .74rem var(--font-mono); color: var(--brand);
  letter-spacing: .1em; padding-top: .35em;
}
.benefit h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 84%; font-size: 1.35rem; text-transform: uppercase; letter-spacing: -.01em; }
.benefit p { grid-column: 2; color: var(--ink-soft); font-size: 1rem; }
.benefits__foot {
  margin-top: 24px; font: 500 .8rem var(--font-mono); text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.card { position: relative; background: transparent; border: 0; padding: 30px 30px 30px 0; }
.steps .card { border-right: 1px solid var(--line-strong); padding-right: 30px; padding-left: 30px; }
.steps .card:first-child { padding-left: 0; }
.steps .card:last-child { border-right: 0; padding-right: 0; }
.card h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 84%; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.steps__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  clip-path: var(--hex); background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-weight: 600; font-size: .9rem;
}

/* ---------- KPIs ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong);
}
.kpi { padding: 30px 24px; border-right: 1px solid var(--line-strong); }
.kpi:last-child { border-right: 0; }
.kpi__label { display: block; font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.kpi__value { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: .98; letter-spacing: -.03em; }

.places { margin-top: 48px; }
.places__label { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 16px; border: 1px solid var(--line-strong); background: transparent;
  font: 500 .82rem var(--font-mono); color: var(--ink-soft);
  transition: border-color .18s, color .18s, background .18s;
}
.chips li:hover { border-color: var(--brand); color: var(--brand); background: rgba(22, 82, 240, .05); }

/* ---------- Formats ---------- */
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.card--fmt { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 28px 26px; transition: background .2s; }
.card--fmt:nth-child(3n) { border-right: 0; }
.card--fmt:hover { background: var(--surface); }

/* ---------- Contact ---------- */
.section--contact { background: var(--brand-deep); color: var(--brand-ink); border-top: 2px solid var(--ink); }
.section--contact .section__title { color: #fff; }
.section--contact .section__lead { color: #c2d1f6; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { margin-top: 36px; display: grid; gap: 16px; }
.contact__info li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(233, 240, 255, .2); }
.contact__k { font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); }
.contact__info a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--cyan); }
.contact__info span { color: #dae5ff; }

.form { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); padding: clamp(26px, 3.4vw, 38px); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 2px; background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #9a948a; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--brand); box-shadow: 0 2px 0 var(--brand); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--brand); }
.form__note { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 84%;
  font-size: clamp(1.02rem, 1.9vw, 1.3rem); text-transform: uppercase; letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { position: relative; width: 20px; height: 20px; flex: none; }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--brand); transform: translateY(-50%); transition: transform .2s; }
.faq__mark::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: translateY(-50%) rotate(0deg); }
.faq__body { padding: 0 4px 24px; max-width: 68ch; color: var(--ink-soft); }
.faq__body a { color: var(--brand); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; border-top: 2px solid var(--ink); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 7vw, 88px); flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-display); font-weight: 800; font-stretch: 82%; font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; max-width: 20ch; }
.cta-band .btn--primary { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #efece3; padding: clamp(56px, 7vw, 90px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: clamp(30px, 4vw, 64px); }
.footer__brand { display: grid; gap: 22px; justify-items: start; align-content: start; }
.footer__logo { width: 216px; height: auto; }
.footer__value { max-width: 34ch; color: #c6c2b7; font-size: 1rem; line-height: 1.55; }
.footer__title { font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .18em; color: #8b877c; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { text-decoration: none; color: #dad6cc; font-size: .95rem; transition: color .15s; }
.footer__col a:hover { color: var(--cyan); }
.footer__contact li { color: #c6c2b7; font-size: .95rem; }
.footer__contact a { color: #fff; border-bottom: 1px solid rgba(77, 227, 255, .5); padding-bottom: 1px; }
.footer__bottom {
  margin-top: clamp(38px, 5vw, 58px); padding-top: 22px; border-top: 1px solid #2a2a28;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: #8b877c;
}
.footer__top { text-decoration: none; font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #c6c2b7; }
.footer__top:hover { color: var(--cyan); }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--wa); color: #fff; border-radius: 50%; text-decoration: none;
  box-shadow: 0 10px 26px rgba(12, 12, 13, .28);
  transition: transform .16s ease, box-shadow .16s ease;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(12, 12, 13, .34); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .topbar__cta { display: none; }
  .topbar__toggle { display: flex; }
  .steps, .grid--3 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { border-bottom: 1px solid var(--line-strong); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(3), .kpi:nth-child(4) { border-bottom: 0; }
  .card--fmt:nth-child(3n) { border-right: 1px solid var(--line-strong); }
  .card--fmt:nth-child(2n) { border-right: 0; }
  .steps .card { padding-inline: 24px; border-bottom: 1px solid var(--line-strong); }
  .steps .card:first-child { padding-left: 0; }
  .steps .card:nth-child(2n) { border-right: 0; padding-right: 0; }
  .steps .card:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .grid--3, .kpis, .benefits { grid-template-columns: 1fr; }
  .kpi { border-right: 0; }
  .kpi:nth-child(3) { border-bottom: 1px solid var(--line-strong); }
  .benefit:nth-child(odd) { padding-right: 0; border-right: 0; }
  .benefit:nth-child(even) { padding-left: 0; }
  .steps .card { padding-inline: 0; border-right: 0; padding-block: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__facts { gap: 12px 26px; }
  .marquee__track { font-size: 1.1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .kt-ch { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; }
}
