/* ============================================================
   Arcabouço Digital — folha de estilos do site público
   Conceito: planta de engenharia digital (blueprint claro)
   ============================================================ */

:root {
  /* Paleta — derivada do logótipo */
  --ink: #14293d;          /* azul-aço quase preto (texto) */
  --ink-soft: #43607a;     /* texto secundário */
  --blue: #3d9be9;         /* azul digital da marca */
  --blue-deep: #2270b4;    /* azul de contraste p/ texto e botões */
  --blue-dark: #123a5c;    /* fundos escuros */
  --ice: #f2f8fd;          /* fundo gelo */
  --paper: #ffffff;
  --line: #d7e7f4;         /* linhas de planta */
  --line-strong: #b9d5ec;

  /* Tipos */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Ritmo */
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --maxw: 72rem;
  --radius: 0.375rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-deep); }

::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Barra de progresso de leitura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 150; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transform: scaleX(0); transform-origin: left;
}

:focus-visible {
  outline: 2.5px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 640; font-size: 0.95rem;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 0.7rem 1.3rem; border-radius: var(--radius);
  border: 1.5px solid transparent; min-height: 44px;
  transition: transform 180ms var(--ease-out), background 180ms, color 180ms, border-color 180ms, box-shadow 180ms;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--blue-deep); color: #fff; }
.btn--solid:hover { background: var(--blue-dark); box-shadow: 0 6px 18px -6px rgba(34, 112, 180, 0.55); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.btn--big { padding: 0.85rem 1.6rem; font-size: 1.02rem; }
.btn--full { width: 100%; }

/* ---------- Eyebrow / etiquetas técnicas ---------- */

.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep); margin: 0 0 0.9rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--blue);
  box-shadow: 0 0 0 1px transparent;
}
.eyebrow--light { color: #9ccdf3; }

/* ---------- Barra de topo ---------- */

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.65rem var(--pad);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.topbar__mark { width: 2rem; color: var(--blue-deep); }
.topbar__word {
  font-family: var(--font-display); font-weight: 780; font-size: 1.05rem;
  letter-spacing: 0.005em;
}
.topbar__word em { font-style: normal; font-weight: 420; color: var(--blue-deep); }

.topbar__nav { display: flex; gap: 1.6rem; }
.topbar__nav a {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  text-decoration: none; color: var(--ink-soft); padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms, border-color 160ms;
}
.topbar__nav a:hover { color: var(--blue-deep); border-bottom-color: var(--blue); }

.topbar__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer;
}
.topbar__burger span { display: block; height: 2px; background: var(--ink); transition: transform 200ms var(--ease-out), opacity 200ms; }
.topbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilenav[hidden] { display: none; }
.mobilenav {
  position: sticky; top: 61px; z-index: 99;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem var(--pad) 1.25rem;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mobilenav a {
  text-decoration: none; color: var(--ink); font-family: var(--font-mono);
  font-size: 0.9rem; padding: 0.7rem 0.25rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ice) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.15) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.15) 70%, transparent);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}

.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 820;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 1.3rem;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--blue-deep); }

.hero__title .hero__line {
  opacity: 0; transform: translateY(0.6em);
  animation: rise 700ms var(--ease-out) forwards;
}
.hero__title .hero__line--accent { animation-delay: 140ms; }
.hero__sub, .hero__actions, .hero__badge, .hero .eyebrow {
  opacity: 0; animation: rise 700ms var(--ease-out) forwards;
}
.hero .eyebrow { animation-delay: 0ms; }
.hero__sub { animation-delay: 260ms; }
.hero__actions { animation-delay: 380ms; }
.hero__badge { animation-delay: 500ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink-soft);
  max-width: 34em; margin: 0 0 1.8rem; transform: translateY(0.6em);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; transform: translateY(0.6em); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 1.6rem 0 0; transform: translateY(0.6em);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft);
}
.hero__badge svg { width: 1rem; height: 1rem; color: var(--blue-deep); flex: none; }

/* Desenho técnico do hero */

.hero__figure { display: grid; place-items: center; }
.hero__drawing {
  position: relative; width: min(21rem, 82%); color: var(--blue-deep);
  filter: drop-shadow(0 12px 24px rgba(34, 112, 180, 0.18));
  transform: translate(var(--px, 0), var(--py, 0)); /* paralaxe suave ao rato */
  transition: transform 300ms var(--ease-out);
}

.truss { width: 100%; height: auto; }
.truss .beam--web { opacity: 0.55; stroke-width: 1.6; }

.truss--animated .beam {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1100ms var(--ease-out) forwards;
}
.truss--animated .beam:nth-child(1) { animation-delay: 100ms; }
.truss--animated .beam:nth-child(2) { animation-delay: 220ms; }
.truss--animated .beam:nth-child(3) { animation-delay: 340ms; }
.truss--animated .beam:nth-child(4) { animation-delay: 460ms; }
.truss--animated .beam:nth-child(5) { animation-delay: 540ms; }
.truss--animated .beam:nth-child(6) { animation-delay: 620ms; }
.truss--animated .beam:nth-child(7) { animation-delay: 700ms; }
.truss--animated .beam:nth-child(8) { animation-delay: 780ms; }
.truss--animated .beam:nth-child(9) { animation-delay: 860ms; }
.truss--animated .beam:nth-child(10) { animation-delay: 940ms; }
.truss--animated .beam:nth-child(11) { animation-delay: 1020ms; }
.truss--animated .beam:nth-child(12) { animation-delay: 1100ms; }
.truss--animated .beam:nth-child(13) { animation-delay: 1180ms; }
.truss--animated .beam:nth-child(14) { animation-delay: 1260ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.truss--animated .node {
  opacity: 0; transform-origin: center; transform-box: fill-box;
  animation: nodePop 500ms var(--ease-out) forwards,
             nodeGlow 3600ms ease-in-out 2600ms infinite; /* pulso contínuo depois de montada */
}
@keyframes nodeGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.truss--animated .node:nth-child(1) { animation-delay: 900ms; }
.truss--animated .node:nth-child(2) { animation-delay: 1000ms; }
.truss--animated .node:nth-child(3) { animation-delay: 1080ms; }
.truss--animated .node:nth-child(4) { animation-delay: 1160ms; }
.truss--animated .node:nth-child(5) { animation-delay: 1240ms; }
.truss--animated .node:nth-child(6) { animation-delay: 1320ms; }
.truss--animated .node:nth-child(7) { animation-delay: 1400ms; }
.truss--animated .node:nth-child(8) { animation-delay: 1470ms; }
.truss--animated .node:nth-child(9) { animation-delay: 1540ms; }
.truss--animated .node:nth-child(10) { animation-delay: 1610ms; }
@keyframes nodePop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

.annot {
  position: absolute; font-family: var(--font-mono); font-size: 0.64rem;
  color: var(--ink-soft); background: rgba(255, 255, 255, 0.85);
  padding: 0.15rem 0.45rem; border: 1px solid var(--line-strong); border-radius: 3px;
  white-space: nowrap;
  opacity: 0; animation: rise 600ms var(--ease-out) forwards;
}
.annot--a { top: 8%; right: -8%; animation-delay: 1500ms; }
.annot--b { top: 46%; left: -16%; animation-delay: 1650ms; }
.annot--c { bottom: 4%; right: -6%; animation-delay: 1800ms; }

.measure {
  position: absolute; display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-deep);
  opacity: 0; animation: rise 600ms var(--ease-out) forwards; animation-delay: 1950ms;
}
.measure i { flex: 1; height: 1px; background: var(--line-strong); position: relative; min-width: 1rem; }
.measure i::before, .measure i::after {
  content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--line-strong);
}
.measure i::before { left: 0; } .measure i::after { right: 0; }
.measure--h { left: 0; right: 0; bottom: -2.4rem; }
.measure--v {
  top: 0; bottom: 0; right: -3.4rem; width: auto;
  writing-mode: vertical-rl; animation-delay: 2100ms;
}
.measure--v i { width: 1px; height: auto; min-height: 1rem; }
.measure--v i::before, .measure--v i::after { left: -3px; top: auto; width: 7px; height: 1px; }
.measure--v i::before { top: 0; } .measure--v i::after { bottom: 0; right: auto; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--blue-dark); color: #cde6fa;
  padding: 0.55rem 0;
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 1.4rem;
  white-space: nowrap; will-change: transform;
  animation: tick 36s linear infinite;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__sep { color: var(--blue); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Secções ---------- */

.section { padding: var(--section-y) var(--pad); }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--tinted { background: var(--ice); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__title {
  font-family: var(--font-display); font-weight: 780;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12;
  letter-spacing: -0.018em; margin: 0 0 0.8rem; text-wrap: balance;
}
.section__sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0; max-width: 38em; }

/* Revelação ao scroll */
.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal--left { transform: translateX(-1.8rem); }
.reveal--right { transform: translateX(1.8rem); }
.reveal.in { opacity: 1; transform: none; }

.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }
.section__head--center .eyebrow::after {
  content: ""; width: 1.6rem; height: 1px; background: var(--blue);
}

/* ---------- Módulos ---------- */

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.module {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; background: #fff;
  transition: transform 220ms var(--ease-out), box-shadow 220ms, border-color 220ms;
}
.module::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  border-radius: 3px 0 0 3px; transform: scaleY(0); transform-origin: top;
  transition: transform 300ms var(--ease-out);
}
.module:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 34px -18px rgba(20, 41, 61, 0.25); }
.module:hover::before { transform: scaleY(1); }

.module__icon { display: block; width: 3rem; height: 3rem; color: var(--blue-deep); margin: 0.2rem 0 0.8rem; }
.module__icon svg { width: 100%; height: 100%; }
.module__icon .mi { stroke-dasharray: 100; stroke-dashoffset: 100; }
.module.in .module__icon .mi { animation: drawIcon 900ms var(--ease-out) forwards; }
.module.in .module__icon .mi:nth-child(2) { animation-delay: 180ms; }
.module.in .module__icon .mi:nth-child(3) { animation-delay: 360ms; }
.module.in .module__icon .mi:nth-child(4) { animation-delay: 540ms; }
.module.in .module__icon .mi:nth-child(5) { animation-delay: 720ms; }
.module.in:hover .module__icon .mi { animation: drawIcon 700ms var(--ease-out) forwards; }
.module.in:hover .module__icon .mi:nth-child(2) { animation-delay: 120ms; }
.module.in:hover .module__icon .mi:nth-child(3) { animation-delay: 240ms; }
.module.in:hover .module__icon .mi:nth-child(4) { animation-delay: 360ms; }
.module.in:hover .module__icon .mi:nth-child(5) { animation-delay: 480ms; }
@keyframes drawIcon { to { stroke-dashoffset: 0; } }

.module__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.module__code {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem;
  color: var(--blue-deep); border: 1px solid var(--line-strong);
  padding: 0.1rem 0.5rem; border-radius: 3px; background: var(--ice);
}
.module__kind { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.module__name { font-family: var(--font-display); font-weight: 740; font-size: 1.35rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.module__slogan { color: var(--ink-soft); font-style: italic; font-size: 0.94rem; margin: 0 0 1.1rem; }
.module__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.module__list li { padding-left: 1.15rem; position: relative; }
.module__list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 0.55rem; height: 0.55rem;
  border: 1.5px solid var(--blue); rotate: 45deg;
}
.module__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 640; font-size: 0.92rem;
  color: var(--blue-deep); text-decoration: none; min-height: 44px;
}
.module__link svg { width: 0.95rem; transition: transform 200ms var(--ease-out); }
.module__link:hover svg { transform: translateX(4px); }

/* ---------- Processo (cronologia centrada) ---------- */

.timeline {
  list-style: none; margin: 0 auto; padding: 0.5rem 0 0;
  position: relative; max-width: 58rem;
}
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg,
    var(--line-strong) 0 10px, transparent 10px 16px); /* linha tracejada de planta */
}

.tl { position: relative; width: 50%; padding: 0 2.6rem 2.2rem; }
.tl--left { left: 0; text-align: right; }
.tl--right { left: 50%; }
.tl:last-child { padding-bottom: 0.5rem; }

.tl__dot {
  position: absolute; top: 0.35rem; width: 12px; height: 12px;
  background: var(--paper); border: 2.5px solid var(--blue-deep); rotate: 45deg;
  z-index: 1;
}
.tl--left .tl__dot { right: -7px; }
.tl--right .tl__dot { left: -7px; }
.reveal.in .tl__dot { animation: dotPing 700ms var(--ease-out) 200ms; }
@keyframes dotPing {
  0% { box-shadow: 0 0 0 0 rgba(61, 155, 233, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(61, 155, 233, 0); }
}

.tl__card {
  display: inline-block; text-align: left; max-width: 24rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 1.1rem 1.25rem 1rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms, border-color 220ms;
}
.tl__card:hover {
  transform: translateY(-3px); border-color: var(--line-strong);
  box-shadow: 0 14px 28px -18px rgba(20, 41, 61, 0.25);
}

.step__phase { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); }
.step__name { font-family: var(--font-display); font-weight: 740; font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }
.step__text { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Simulador ---------- */

.sim {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem; align-items: start;
}

.sim__heading {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
.sim__modules + .sim__heading, .sim__heading:not(:first-child) { margin-top: 1.8rem; }

.sim__modules { display: grid; gap: 0.7rem; }

.sim__module {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; cursor: pointer; background: #fff;
  transition: border-color 180ms, background 180ms, box-shadow 180ms;
}
.sim__module:hover { border-color: var(--line-strong); }
.sim__module:has(input:checked) {
  border-color: var(--blue-deep); background: var(--ice);
  box-shadow: 0 6px 18px -12px rgba(34, 112, 180, 0.5);
}
.sim__module:has(input:focus-visible) { outline: 2.5px solid var(--blue-deep); outline-offset: 3px; }
.sim__module input { position: absolute; opacity: 0; pointer-events: none; }

.sim__box {
  width: 1.25rem; height: 1.25rem; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 3px;
  display: grid; place-items: center; background: #fff;
  transition: background 160ms, border-color 160ms;
}
.sim__box::after {
  content: ""; width: 0.65rem; height: 0.38rem;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  rotate: -45deg; translate: 0 -1px;
  opacity: 0; scale: 0.5; transition: opacity 160ms, scale 160ms var(--ease-out);
}
.sim__module input:checked + .sim__box { background: var(--blue-deep); border-color: var(--blue-deep); }
.sim__module input:checked + .sim__box::after { opacity: 1; scale: 1; }

.sim__moduletext { display: grid; gap: 0.1rem; }
.sim__modulename { font-weight: 600; font-size: 0.97rem; }
.sim__modulename b { font-family: var(--font-mono); font-weight: 500; color: var(--blue-deep); margin-right: 0.3rem; }
.sim__moduledetail { font-size: 0.84rem; color: var(--ink-soft); }
.sim__moduleprice { font-family: var(--font-mono); font-size: 0.88rem; text-align: right; white-space: nowrap; }
.sim__moduleprice small { display: block; color: var(--ink-soft); font-size: 0.72rem; }

.sim__extras { display: grid; gap: 0.55rem; }
.sim__extra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.65rem 0.9rem; background: #fff;
}
.sim__extralabel { display: block; font-size: 0.92rem; font-weight: 500; }
.sim__extraprice { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); }
.sim__stepper { display: flex; align-items: center; gap: 0.15rem; }
.sim__btn {
  width: 40px; height: 40px; font-size: 1.1rem; line-height: 1;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  border-radius: var(--radius); cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 150ms;
}
.sim__btn:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.sim__btn:active { transform: scale(0.92); }
.sim__qty { min-width: 2.2rem; text-align: center; font-family: var(--font-mono); font-size: 0.95rem; }

.sim__summary {
  position: sticky; top: 5.5rem;
  border: 1.5px solid var(--blue-dark); border-radius: var(--radius);
  background: var(--blue-dark); color: #e8f3fc;
  padding: 1.5rem 1.5rem 1.4rem;
  background-image:
    linear-gradient(rgba(61, 155, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 155, 233, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.sim__summarytitle {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9ccdf3; margin: 0 0 1.2rem;
}
.sim__totals { margin: 0 0 1.2rem; display: grid; gap: 0.9rem; }
.sim__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sim__total dt { font-size: 0.9rem; color: #b9d9f2; }
.sim__total dd {
  margin: 0; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sim__total--monthly dd { font-size: 2.1rem; color: #7cc0f4; }
.sim__total dd small { font-size: 0.85rem; color: #9ccdf3; }

.sim__chosen { list-style: none; margin: 0 0 1.1rem; padding: 0.9rem 0 0; border-top: 1px dashed rgba(156, 205, 243, 0.4); display: grid; gap: 0.3rem; }
.sim__chosen li { font-family: var(--font-mono); font-size: 0.76rem; color: #cde6fa; display: flex; justify-content: space-between; gap: 0.8rem; }
.sim__chosen li span:last-child { white-space: nowrap; }
.sim__chosen:empty { display: none; }

.sim__note { font-size: 0.76rem; color: #9ccdf3; margin: 0 0 1.2rem; }
.sim__summary .btn--solid { background: var(--blue); }
.sim__summary .btn--solid:hover { background: #57aaee; box-shadow: none; }

.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.06); color: #fff; } }

/* ---------- Valores (secção escura) ---------- */

.section--dark {
  background: var(--blue-dark) linear-gradient(200deg, #17466e 0%, var(--blue-dark) 55%);
  color: #e8f3fc;
}
.section--dark .section__title { color: #fff; }
.section--dark .section__sub { color: #b9d9f2; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.value {
  border: 1px solid rgba(124, 192, 244, 0.28); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; background: rgba(255, 255, 255, 0.035);
  transition: border-color 200ms, background 200ms, transform 220ms var(--ease-out);
}
.value:hover { border-color: rgba(124, 192, 244, 0.6); background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.value__tick { display: block; width: 2rem; height: 3px; background: var(--blue); margin-bottom: 1rem; }
.value__title { font-family: var(--font-display); font-weight: 740; font-size: 1.12rem; margin: 0 0 0.45rem; color: #fff; }
.value__text { font-size: 0.93rem; color: #b9d9f2; margin: 0; }

/* ---------- Testemunhos ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  margin: 0; border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.3rem; background: #fff;
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms;
}
.quote:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(20, 41, 61, 0.22); }
.quote__text { margin: 0; font-size: 0.97rem; }
.quote__who { margin-top: auto; display: grid; font-size: 0.85rem; }
.quote__who b { font-family: var(--font-display); font-weight: 700; }
.quote__who span { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.74rem; margin-top: 0.15rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; display: grid; gap: 0.7rem; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 180ms;
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 640; font-size: 1rem; min-height: 44px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q svg { width: 1rem; flex: none; color: var(--blue-deep); transition: transform 220ms var(--ease-out); }
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contacto ---------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem); max-width: var(--maxw); margin: 0 auto;
}
.contact__details { display: grid; gap: 0.4rem; margin-top: 1.8rem; font-style: normal; }
.contact__details a, .contact__details span {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink);
  text-decoration: none; width: fit-content; padding: 0.15rem 0;
}
.contact__details a:hover { color: var(--blue-deep); }

.contact__form {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; background: var(--ice); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; background: #fff; min-height: 44px;
  transition: border-color 160ms, box-shadow 160ms;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.2);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }

.form__error { margin: 0; color: #a93226; font-size: 0.88rem; }
.form__ok {
  margin: 0; padding: 0.8rem 1rem; border-radius: var(--radius);
  background: #e6f6ec; border: 1px solid #b7e2c6; color: #1e6b3a; font-size: 0.92rem;
}

/* ---------- Rodapé ---------- */

.footer { background: var(--ink); color: #b9c9d8; padding: 3rem var(--pad) 2.2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-end;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__mark { width: 2.6rem; color: var(--blue); }
.footer__tagline { font-family: var(--font-display); font-weight: 640; color: #fff; margin: 0; max-width: 22em; }
.footer__meta { font-size: 0.82rem; text-align: right; }
.footer__meta p { margin: 0.25rem 0; }
.footer__legal { font-family: var(--font-mono); font-size: 0.72rem; color: #7d93a8; }
.footer__legal a { color: #7d93a8; }
.footer__legal a:hover { color: var(--blue); }

/* ---------- Responsivo ---------- */

@media (min-width: 861px) {
  .mobilenav { display: none !important; }
}

@media (max-width: 1020px) {
  .modules, .quotes { grid-template-columns: 1fr 1fr; }
  .sim { grid-template-columns: 1fr; }
  .sim__summary { position: static; }
}

@media (max-width: 760px) {
  .timeline::before { left: 8px; transform: none; }
  .tl, .tl--left, .tl--right { width: 100%; left: 0; text-align: left; padding: 0 0 1.8rem 2.4rem; }
  .tl--left .tl__dot, .tl--right .tl__dot { left: 2px; right: auto; }
  .tl__card { display: block; max-width: none; }
}

@media (max-width: 860px) {
  .topbar__nav, .topbar__cta { display: none; }
  .topbar__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__drawing { width: min(13rem, 60%); }
  .annot--b { left: -4%; }
  .measure--v { display: none; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .modules, .quotes, .values { grid-template-columns: 1fr; }
  .sim__module { grid-template-columns: auto 1fr; }
  .sim__moduleprice { grid-column: 2; text-align: left; }
  .sim__moduleprice small { display: inline; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
  .footer__meta { text-align: left; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .hero__line, .hero .eyebrow, .hero__sub, .hero__actions, .hero__badge,
  .annot, .measure { opacity: 1; transform: none; }
  .truss--animated .beam { stroke-dashoffset: 0; }
  .truss--animated .node { opacity: 1; }
  .module__icon .mi { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__drawing { transform: none; }
}
