/* PIVA Solutions — site institucional
   Mobile-first. Static HTML + CSS, no framework, no JavaScript, no third-party requests. */

:root {
  /* Color roles */
  --c-bg: #060a10;
  --c-surface: #0c131c;
  --c-surface-2: #121b26;
  --c-line: #1f2b39;
  --c-line-strong: #2c3b4d;
  --c-text: #eaeef3;           /* silver */
  --c-muted: #9eabb9;
  --c-accent: #22c1f7;         /* banner cyan */
  --c-accent-hi: #74d9ff;
  --c-accent-press: #0aa5dc;
  --c-accent-soft: rgb(34 193 247 / 0.10);
  --c-on-accent: #04121b;
  --c-negative: #828f9d;       /* ≥ 4.5:1 on --c-surface for small text */

  /* Type: Bahnschrift (Windows) is a geometric DIN close to the wordmark; system fonts only. */
  --f-display: "Bahnschrift", "DIN Alternate", "Roboto", "Segoe UI", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 7.5rem);
  --radius: 10px;
  --max: 1160px;
  --header-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--c-bg);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Focus: always visible, never removed */
:focus-visible {
  outline: 3px solid var(--c-accent-hi);
  outline-offset: 3px;
  border-radius: 3px;
}
[tabindex="-1"]:focus { outline: none; }

/* Visually hidden, still announced (e.g. "no WhatsApp (abre em nova aba)" on external CTAs). */
.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-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display--lg { font-size: clamp(1.75rem, 5.2vw, 3.1rem); }
.display--md { font-size: clamp(1.3rem, 3.4vw, 2.1rem); line-height: 1.12; }
.accent { color: var(--c-accent); }

/* Wide-tracked labels echo the "S O L U T I O N S" lockup of the wordmark. */
.eyebrow,
.section-label {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--c-accent);
}
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-label::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.section-label--muted { color: var(--c-muted); }

.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--c-line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(6 10 16 / 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9375rem;
}
.site-header__brand img { width: 2rem; height: 2rem; border-radius: 7px; }
.site-header__brand-sub { color: var(--c-muted); font-weight: 400; letter-spacing: 0.24em; font-size: 0.82em; }
.site-nav { display: none; }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  color: var(--c-accent);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.site-header__cta:hover { background: var(--c-accent); color: var(--c-on-accent); }
@media (max-width: 379px) {
  .site-header__brand-sub { display: none; }
  .site-header__cta { padding-inline: 0.7rem; letter-spacing: 0.03em; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 0.25rem; margin-right: 0.5rem; }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    color: var(--c-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 160ms ease;
  }
  .site-nav a:hover { color: var(--c-text); }
}

/* ---------- CTA (shared component) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1rem; /* keeps "Falar com a PIVA →" on one line inside the 320px Computer Performance card */
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.cta__end { white-space: nowrap; }
.cta__arrow {
  display: inline-block;
  vertical-align: -0.16em;
  margin-left: 0.55em;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.cta:hover { background: var(--c-accent-hi); box-shadow: 0 6px 24px -8px rgb(34 193 247 / 0.45); }
.cta:hover .cta__arrow { transform: translateX(3px); }
.cta:active { background: var(--c-accent-press); transform: translateY(1px); }
.cta--ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.cta--ghost:hover { background: var(--c-surface-2); border-color: var(--c-muted); box-shadow: none; }
.cta--ghost:active { background: var(--c-surface); }
@media (min-width: 560px) {
  .cta { width: auto; min-width: 16rem; padding-inline: 2rem; }
}

/* ---------- 01 Hero ---------- */
.hero {
  padding-block: clamp(2.75rem, 9vw, 6rem) clamp(3rem, 9vw, 6rem);
  background: radial-gradient(70% 55% at 90% 0%, var(--c-accent-soft), transparent 70%), var(--c-bg);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero__title { margin-top: 1rem; font-size: clamp(2rem, 8.4vw, 4.1rem); line-height: 1.02; max-width: 15ch; }
.hero__title-accent { display: block; margin-top: 0.1em; }
.hero__lead { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.55; color: var(--c-text); }
.hero .cta { margin-top: 2rem; }

.proof { display: grid; gap: 0.6rem; margin-top: 1.5rem; font-size: 0.9375rem; color: var(--c-muted); }
.proof li { display: flex; align-items: center; gap: 0.6rem; }
.proof li::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.38rem;
  margin-top: -0.2rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}
@media (min-width: 560px) {
  .proof { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
}

/* Growth path (decorative, tablet+): three calm steps, the first highlighted. */
.path { display: none; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr 0.65fr; gap: 4rem; }
  .path { display: grid; gap: 0.75rem; counter-reset: path; }
  .path__step {
    position: relative;
    display: grid;
    gap: 0.2rem;
    padding: 1.1rem 1.25rem 1.1rem 3.25rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-surface);
    counter-increment: path;
  }
  .path__step::before {
    content: counter(path);
    position: absolute;
    left: 1.2rem;
    top: 1.15rem;
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--c-muted);
  }
  .path__step--now { border-color: var(--c-accent); background: var(--c-surface-2); }
  .path__step--now::before { color: var(--c-accent); }
  .path__when { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
  .path__what { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise 600ms cubic-bezier(.2,.7,.2,1) both; }
  .hero__content > :nth-child(2) { animation-delay: 60ms; }
  .hero__content > :nth-child(3) { animation-delay: 120ms; }
  .hero__content > :nth-child(n+4) { animation-delay: 180ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 02 Strip (static) ---------- */
.strip { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  color: var(--c-text);
}
.strip__list li { display: inline-flex; align-items: center; }
.strip__list li + li::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-right: 1.5rem;
  border-radius: 50%;
  background: var(--c-accent);
}
@media (min-width: 600px) {
  .strip__list { gap: 0.5rem 2.25rem; font-size: 0.9375rem; }
  .strip__list li + li::before { margin-right: 2.25rem; }
}

/* ---------- 03 Problem ---------- */
.problem__title { max-width: 24ch; }
.problem__intro { margin-top: 1.25rem; max-width: 40rem; color: var(--c-muted); font-size: clamp(1.0625rem, 1.8vw, 1.2rem); }
.pain-list { display: grid; gap: 0.75rem; margin-top: 2.25rem; }
.pain {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  line-height: 1.5;
}
.pain__mark {
  flex: none;
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -0.05rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
}
.pain__mark::before,
.pain__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.65rem;
  height: 2px;
  background: var(--c-muted);
  transform: translate(-50%, -50%) rotate(45deg);
}
.pain__mark::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (min-width: 700px) {
  .pain-list { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pain { padding: 1.35rem 1.4rem; }
  .pain:last-child { grid-column: 1 / -1; } /* 5 cards: the last one closes the grid */
}
.problem__close { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 30ch; }

/* ---------- 04 Solutions ---------- */
.solutions { background: var(--c-surface); }
.solutions .display--lg { max-width: 22ch; }
.offers { display: grid; gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); }
.offer {
  padding: 1.5rem 1.35rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.offer p:not(.offer__tag) { margin-top: 0.6rem; color: var(--c-muted); }
.offer__tag { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.4rem; }
.offer__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; line-height: 1.1; }
/* The entry point is visually dominant. */
.offer--main { border-color: var(--c-accent); border-width: 1px 1px 1px 4px; padding-block: 1.9rem; }
.offer--main .offer__title { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.offer--main p { color: var(--c-text) !important; max-width: 38rem; font-size: 1.1rem; }
@media (min-width: 760px) {
  .offers { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .offer--main { grid-column: 1 / -1; padding: 2.25rem 2rem; }
  .offer { padding: 1.75rem 1.6rem; }
}
.solutions__close {
  margin-top: 2rem;
  max-width: 44rem;
  padding-left: 1rem;
  border-left: 2px solid var(--c-accent);
  font-size: 1.0625rem;
}

/* ---------- 05 Audience ---------- */
.audience__grid { display: grid; gap: 2rem; }
.audience .cta { margin-top: 1.75rem; }
.check-list { display: grid; }
.check-list li {
  position: relative;
  padding: 1rem 0 1rem 2.2rem;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.55;
}
.check-list li:first-child { border-top: 1px solid var(--c-line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.4rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}
/* Mobile: show the list right after the title and put the CTA after the list (a CTA before the
   content it refers to reads as premature on a single column). Visual order matches the reading
   order of the list only; the CTA is an independent link, so focus order stays logical. */
@media (max-width: 959px) {
  .audience__head { display: contents; }
  .audience .check-list { order: 2; }
  .audience .cta { order: 3; margin-top: 0; }
}
@media (min-width: 960px) {
  .audience__grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
  .audience__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- 06 Process ---------- */
.process { background: var(--c-surface); }
.steps { display: grid; gap: 0; margin-top: clamp(2rem, 5vw, 3rem); counter-reset: none; }
.step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--c-line);
}
.step:last-child { border-bottom: 1px solid var(--c-line); }
.step__num {
  grid-row: 1 / span 2;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  padding-top: 0.15rem;
}
.step__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; }
.step p { margin-top: 0.35rem; color: var(--c-muted); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .step { grid-template-columns: 1fr; align-content: start; padding: 1.5rem 0 0; border-top: 2px solid var(--c-line); border-bottom: 0 !important; }
  .step:first-child { border-top-color: var(--c-accent); }
  .step__num { grid-row: auto; margin-bottom: 0.5rem; }
}
.process__note { margin-top: 2rem; max-width: 44rem; font-size: 0.9375rem; color: var(--c-muted); }

/* ---------- 07 Computer Performance (secondary) ---------- */
.perf__card {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.perf__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.1; }
.perf__text { margin-top: 0.75rem; max-width: 40rem; color: var(--c-muted); }
.perf__trust { display: grid; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.9375rem; }
.perf__trust li { display: flex; align-items: center; gap: 0.6rem; }
.perf__trust li::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.38rem;
  margin-top: -0.2rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}
.perf__scope { margin-top: 1rem; font-size: 0.875rem; color: var(--c-negative); }
@media (min-width: 900px) {
  .perf__card { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
}

/* ---------- 08 Projects (template only, not rendered) ---------- */
.project-list { display: grid; gap: 1rem; margin-top: 2rem; }

/* ---------- 09 Why PIVA ---------- */
.pillars { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 5vw, 3rem); }
.pillar { padding-top: 1.1rem; border-top: 2px solid var(--c-accent); }
.pillar__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; line-height: 1.15; }
.pillar p { margin-top: 0.6rem; color: var(--c-muted); max-width: 26rem; }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- 10 Final CTA ---------- */
.contact { background: radial-gradient(60% 60% at 50% 0%, var(--c-accent-soft), transparent 70%), var(--c-bg); }
.contact__card {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.contact__text { max-width: 32rem; color: var(--c-muted); font-size: 1.0625rem; }
/* Primary (WhatsApp) + secondary outline (e-mail). Mobile: stacked, full width, primary first.
   From 560px: side by side, same height; the outline style keeps e-mail visually below WhatsApp. */
.contact__actions { display: grid; gap: 0.75rem; width: 100%; margin-top: 0.75rem; }
@media (min-width: 560px) {
  .contact__actions { display: flex; flex-wrap: wrap; justify-content: center; width: auto; }
  .contact__actions .cta--ghost { min-width: 12rem; }
}
.faq__item a {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.faq__item a:hover { color: var(--c-accent-hi); }

/* ---------- 11 FAQ ---------- */
.faq { background: var(--c-surface); }
.faq__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; }
}
.faq__list { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 0;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__item summary:hover { color: var(--c-accent-hi); }
.faq__item p { padding: 0 1.5rem 1.25rem 0; color: var(--c-muted); max-width: 44rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem 2.5rem; border-top: 1px solid var(--c-line); font-size: 0.9375rem; color: var(--c-muted); }
.site-footer__grid { display: grid; gap: 2.25rem; }
/* Main logo with real transparency: no blend mode needed. */
.site-footer__logo { width: 180px; }
/* Two-word services never split (nbsp in the HTML); 34rem fits the list on one line in the desktop column. */
.site-footer__services { margin-top: 1rem; max-width: 34rem; line-height: 1.6; }
.site-footer__heading {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--c-text);
}
/* Icon-only channel links: one row, same outline system, 48px targets. */
.site-footer__channels { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.9rem; }
.channel {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-text);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.channel svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.channel:hover,
.channel:focus-visible { color: var(--c-accent); border-color: var(--c-accent); background: var(--c-accent-soft); }
.channel:focus-visible { outline-offset: 4px; border-radius: 50%; }
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
