/* PlugAI — site institucional. Brand Guide v2.1: Night Blue, PlugAI Blue, Electric Blue, Off-White; Archivo + Inter. */

:root {
  --night: #0A1628;
  --night-2: #12223A;
  --blue: #1A6FC4;
  --blue-dark: #145A9F;
  --electric: #3D9EF0;
  --off: #F0F4F8;
  --white: #FFFFFF;
  --text: #0A1628;
  --muted: #475569;
  --muted-dark: #B4C2D6;
  --line: #D6DFEA;
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 22, 40, 0.06), 0 8px 24px rgba(10, 22, 40, 0.06);
  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.h3-size { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem); }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  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: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--night);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}
.logo-plug { color: var(--night); }
.logo-ai { color: var(--blue); }

.main-nav { display: none; gap: 28px; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--blue); }
@media (min-width: 900px) { .main-nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }

.btn-electric { background: var(--electric); color: var(--night); }
.btn-electric:hover { background: #63B2F4; color: var(--night); }

.btn-ghost-dark { border-color: rgba(255, 255, 255, 0.32); color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--electric); color: var(--white); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

@media (max-width: 380px) {
  .header-inner .btn-sm { padding-inline: 12px; font-size: 0.85rem; }
}

/* ---------- Typographic helpers ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-dark { color: var(--electric); }

.lead { font-size: 1.125rem; color: var(--muted); }
.lead-dark { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(61, 158, 240, 0.16), transparent 70%),
    radial-gradient(500px 360px at 10% 100%, rgba(26, 111, 196, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lead { max-width: 60ch; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 16px;
}
@media (min-width: 560px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-dark);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 24px;
}
@media (min-width: 640px) { .hero-panel { padding: 28px; } }

.panel-title {
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.journey li {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
}
.journey li:last-child { padding-bottom: 0; }
.journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--electric), rgba(61, 158, 240, 0.15));
}
.journey strong { display: block; font-size: 1.05rem; color: var(--white); }
.journey small { display: block; font-size: 0.92rem; color: var(--muted-dark); line-height: 1.5; }

.journey-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.journey-icon { background: rgba(61, 158, 240, 0.14); border: 1px solid rgba(61, 158, 240, 0.35); }
.journey-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-icon svg { stroke: var(--electric); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .section-tight { padding: 72px 0; }
}
.section-off { background: var(--off); }
.section:not(.section-off):not(.section-dark) + .section-tight { padding-top: 0; }
.section-dark { background: var(--night); color: var(--white); }
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.center .section-head,
.section-head.center { margin-inline: auto; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid-2, .card-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
@media (min-width: 640px) { .card { padding: 28px; } }
.card p { color: var(--muted); margin-bottom: 0; }
.section:not(.section-off) .card { background: var(--white); box-shadow: var(--shadow); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.callout {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.4;
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 960px) { .process-3 { grid-template-columns: repeat(3, 1fr); } }
.process li {
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
}
.process h3 { font-size: 1.05rem; }
.process p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }
.process-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 800;
}

/* ---------- Outcomes ---------- */
.outcome-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(26, 111, 196, 0.1);
}
.outcome-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card.card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--off);
  box-shadow: none;
}
.card-cta .btn { margin-top: 16px; }

.fit-list { gap: 14px; }
.fit-list li { font-size: 1.05rem; }

/* ---------- Other segments ---------- */
.segment-card {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--white), var(--off));
}
.segment-card p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; max-width: 68ch; }
@media (min-width: 900px) {
  .segment-card { grid-template-columns: 1fr auto; gap: 40px; padding: 36px 40px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta h2 { max-width: 22ch; margin-inline: auto; }
.final-cta .lead { margin-inline: auto; max-width: 60ch; margin-bottom: 28px; }
.final-cta .hero-note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer p { color: var(--muted); margin-top: 12px; max-width: 40ch; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: 0.85rem; max-width: none; }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.85rem; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--night); color: var(--white); padding: 48px 0 40px; }
@media (min-width: 960px) { .legal-hero { padding: 72px 0 56px; } }
.legal-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.legal-meta { margin: 0; font-size: 0.92rem; color: var(--muted-dark); }

.legal { padding: 48px 0 72px; }
@media (min-width: 960px) { .legal { padding: 64px 0 104px; } }
.legal h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  margin-top: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal h3 { margin-top: 1.75rem; }
.legal ul, .legal ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.legal li + li { margin-top: 0.4rem; }
.legal li > ul { margin: 0.4rem 0 0; }
.legal code { font-size: 0.88em; overflow-wrap: anywhere; }

.legal-toc {
  margin: 32px 0 8px;
  padding: 20px 24px;
  background: var(--off);
  border-radius: var(--radius);
}
.legal-toc h2 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-toc ol { margin: 0; columns: 2 220px; column-gap: 32px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* Dado a confirmar antes da publicação: precisa sumir do HTML publicado. */
.pendente {
  padding: 0 4px;
  border-radius: 4px;
  background: #FFF3BF;
  color: #5C4400;
  font-weight: 600;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

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