/* pArkse · landing — cores e tipografia do manual de marca */
:root {
  --noite: #101727;
  --noite-2: #18223a;
  --noite-3: #22304d;
  --verde: #22b573;
  --verde-fundo: #0b7a44;
  --verde-escuro: #08603a;
  --ambar: #ffb76a;
  --azul: #2d6cdf;
  --azul-escuro: #1f55b8;
  --nevoa: #f3f5f8;
  --branco: #fcfdfe;
  --asfalto: #4a5565;
  --texto: #2b3445;
  --claro: #f6f8fb;
  --suave: #aeb6c4;
  --linha: #dde2ea;

  --font-head: "Plus Jakarta Sans", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --radius: 24px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--noite);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--verde); color: var(--noite); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

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

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 32px; height: 32px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px; text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--green { background: var(--verde); color: var(--noite); box-shadow: 0 10px 30px rgba(34, 181, 115, .35); }
.btn--green:hover { background: #2bc982; }
.btn--ghost { color: var(--claro); border-color: rgba(246, 248, 251, .28); }
.btn--ghost:hover { border-color: var(--claro); }
.btn--white { background: var(--branco); color: var(--azul-escuro); }
.btn--dark { background: var(--noite); color: var(--claro); }
.btn--dark:hover { background: var(--noite-2); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 23, 39, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.topbar__logo img { width: 132px; height: auto; }
.topbar__nav { display: flex; gap: 28px; }
.topbar__nav a { color: var(--suave); text-decoration: none; font-size: 15px; font-weight: 500; }
.topbar__nav a:hover { color: var(--claro); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(34, 181, 115, .16), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(45, 108, 223, .14), transparent 60%),
    var(--noite);
  color: var(--claro);
  padding: 72px 0 120px;
}
/* Ruas: grelha em perspetiva, a desaparecer no horizonte */
.hero__map {
  position: absolute; inset: 0; pointer-events: none;
}
.hero__map::before {
  content: ""; position: absolute; left: -25%; right: -25%; top: 40%; height: 120%;
  background-image:
    linear-gradient(rgba(174, 182, 196, .09) 2px, transparent 2px),
    linear-gradient(90deg, rgba(174, 182, 196, .09) 2px, transparent 2px);
  background-size: 96px 96px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
/* Pins a aparecer: cada um é alguém que acabou de avisar */
.map-pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 30px; height: 30px; margin: -30px 0 0 -15px;
  background: url("/assets/pin.svg") center / contain no-repeat;
  opacity: 0; transform: scale(.4) translateY(10px);
  animation: pin-pop 6s ease-in-out infinite; animation-delay: var(--d);
}
.map-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 34px; height: 12px; margin-left: -17px;
  border-radius: 50%; border: 2px solid rgba(34, 181, 115, .7);
  animation: pin-ring 6s ease-out infinite; animation-delay: var(--d);
}
.map-pin--amber { filter: hue-rotate(-115deg) saturate(1.6) brightness(1.25); }
@keyframes pin-pop {
  0%, 8% { opacity: 0; transform: scale(.4) translateY(10px); }
  14%, 70% { opacity: .9; transform: scale(1) translateY(0); }
  82%, 100% { opacity: 0; transform: scale(.7) translateY(-4px); }
}
@keyframes pin-ring {
  0%, 12% { opacity: 0; transform: scale(.4); }
  18% { opacity: 1; transform: scale(1); }
  45%, 100% { opacity: 0; transform: scale(2.4); }
}

.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--claro);
  background: rgba(34, 181, 115, .14); border: 1px solid rgba(34, 181, 115, .4);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(34, 181, 115, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(34, 181, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0); } }

.hero__title {
  font-size: clamp(42px, 5.2vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  color: var(--claro);
}
.hero__title span { color: var(--verde); }
.hero__lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); color: var(--suave); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__note { margin-top: 18px; font-size: 14px; color: #8a95a8; letter-spacing: .02em; }

.hero__phone { position: relative; justify-self: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5;
  border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2a3655, #141c30);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .06);
  transform: rotate(-4deg);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  border-radius: 999px; background: #0b101c; z-index: 2;
}
.phone > img, .phone > .photo-slot { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(252, 253, 254, .96); color: var(--noite);
  padding: 12px 16px; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  font-size: 14px; line-height: 1.3; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 15px; }
.float-card small { color: var(--asfalto); }
.float-card--a { left: -96px; top: 22%; }
.float-card--b { right: -72px; bottom: 16%; animation-delay: -3s; }
.float-card--b .icon { color: var(--verde-fundo); }
.float-card__pin { width: 26px; height: 26px; background: url("/assets/pin.svg") center / contain no-repeat; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Espaços para fotos ---------- */
.photo-slot {
  margin: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
  border: 2px dashed rgba(174, 182, 196, .55); border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(174, 182, 196, .07) 0 12px, transparent 12px 24px),
    rgba(16, 23, 39, .35);
  color: var(--claro);
}
.photo-slot strong { font-family: var(--font-head); font-size: 18px; max-width: 280px; }
.photo-slot small { font-size: 13px; color: var(--suave); }
.photo-slot__tag {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--noite); background: var(--ambar); padding: 4px 10px; border-radius: 999px;
}
.photo-slot--phone { background-color: #0d1424; }
.photo-slot--wide { aspect-ratio: 4 / 3; width: 100%; }
.photo-slot--square { aspect-ratio: 1; width: 100%; }

/* ---------- Problema ---------- */
.problem { background: var(--noite-2); color: var(--claro); padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.problem__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.problem__stat { display: flex; align-items: center; gap: 28px; }
.problem__number {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(72px, 9vw, 128px); line-height: 1;
  color: var(--verde); letter-spacing: -0.04em;
}
.problem__text { font-size: 21px; color: #c9d0db; max-width: 330px; }
.problem__text sup { color: var(--suave); }
.problem__facts { display: grid; gap: 18px; }
.fact { background: var(--noite-3); border-radius: 20px; padding: 22px 26px; }
.fact h3 { font-size: 20px; color: var(--claro); }
.fact p { margin-top: 4px; color: var(--suave); }

/* ---------- Secções ---------- */
.section { padding: 112px 0; }
.section--light { background: var(--nevoa); }
.section--dark { background: var(--noite); color: var(--claro); }
.section--green { background: var(--verde-fundo); color: #f6fbf8; }
.section--blue { background: var(--azul); color: #fff; }

.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--verde);
  margin-bottom: 16px;
}
.eyebrow--dark { color: var(--verde-fundo); }
.eyebrow--mint { color: #cff5e0; }
.eyebrow--sky { color: #dbe7ff; }

.section__title {
  font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; line-height: 1.08; color: var(--noite);
  max-width: 820px;
}
.section__title--light { color: inherit; }
.section__title .accent, .accent { color: var(--verde); }
.lead { margin-top: 22px; font-size: 19px; max-width: 560px; }
.lead--light { color: rgba(255, 255, 255, .88); }
.lead--muted { color: var(--suave); }

/* Passos */
.steps {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none;
}
.step {
  position: relative; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 30px 26px 28px; transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 23, 39, .08); }
.step .icon--lg { color: var(--verde-fundo); }
.step__num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: #e3e8ef;
}
.step h3 { margin-top: 22px; font-size: 22px; color: var(--noite); }
.step p { margin-top: 8px; color: var(--asfalto); font-size: 16px; }

/* Split (texto + foto) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__copy { order: 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 18px; }
.checks .icon { width: 26px; height: 26px; color: var(--ambar); }
.section--green .photo-slot { border-color: rgba(207, 245, 224, .6); background-color: rgba(8, 96, 58, .6); }
.section--green .photo-slot small { color: #cff5e0; }

/* Comunidade */
.community { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.tiers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tier {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 999px; background: var(--noite-2); border: 1px solid var(--noite-3);
}
.tier--bronze .icon { color: #d99a5e; }
.tier--silver .icon { color: #c9d0db; }
.tier--gold .icon { color: #f2c94c; }

/* Funcionalidades */
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius); padding: 30px 28px; }
.feature .icon--lg { color: var(--verde-fundo); }
.feature h3 { margin-top: 18px; font-size: 20px; color: var(--noite); }
.feature p { margin-top: 8px; color: var(--asfalto); font-size: 16px; }

/* Cidades */
.section--blue .btn { margin-top: 32px; }
.city-card { background: rgba(16, 23, 39, .22); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 28px; }
.city-card__head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 220px; margin-top: 24px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(to top, rgba(255, 255, 255, .35), #fff);
  transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.city-card.is-visible .bars span { transform: scaleY(1); }
.bars span:nth-child(2) { transition-delay: .06s; } .bars span:nth-child(3) { transition-delay: .12s; }
.bars span:nth-child(4) { transition-delay: .18s; } .bars span:nth-child(5) { transition-delay: .24s; }
.bars span:nth-child(6) { transition-delay: .3s; } .bars span:nth-child(7) { transition-delay: .36s; }
.bars span:nth-child(8) { transition-delay: .42s; }
.city-card__note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .8); }

/* Perguntas */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--branco); border: 1px solid var(--linha); border-radius: 18px; padding: 4px 24px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--noite);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--verde-fundo); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--asfalto); }

/* Instalar */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--verde); color: var(--noite); padding: 112px 0;
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: repeating-linear-gradient(-16deg, var(--noite) 0 10px, transparent 10px 48px);
}
.cta__inner { position: relative; }
.cta__pin { margin: 0 auto 20px; filter: drop-shadow(0 10px 18px rgba(16, 23, 39, .3)); }
.cta__title { font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.cta__lead { margin: 18px auto 0; max-width: 560px; font-size: 20px; font-weight: 500; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.cta__note { margin-top: 18px; font-size: 14px; }

/* Rodapé */
.footer { background: var(--noite); color: var(--suave); padding: 56px 0; }
.footer__inner { display: grid; gap: 10px; justify-items: start; }
.footer__inner img { width: 112px; height: auto; margin-bottom: 8px; }
.footer__meta a { color: var(--claro); }
.footer__source { font-size: 13px; color: #8a95a8; }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .bars span { transform: none; }
  .map-pin { opacity: .9; transform: none; }
}

/* ---------- Ecrãs menores ---------- */
@media (max-width: 1020px) {
  .hero__grid, .problem__grid, .split, .community, .faq-wrap { grid-template-columns: 1fr; }
  .hero__phone { margin-top: 24px; }
  .float-card--a { left: -40px; }
  .float-card--b { right: -32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split--reverse .split__copy { order: 0; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar__nav { display: none; }
  .hero { padding: 48px 0 88px; }
  .section, .cta { padding: 80px 0; }
  .problem__stat { flex-direction: column; align-items: flex-start; gap: 12px; }
  .steps, .features { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .float-card { font-size: 13px; padding: 10px 12px; }
  .float-card--a { left: -24px; top: 12%; }
  .float-card--b { right: -16px; bottom: 10%; }
  .hero__ctas .btn, .cta__buttons .btn { width: 100%; justify-content: center; }
}
