/* =========================================================
   EDUCAR — Sistema Integrado de Gestão Escolar
   ========================================================= */

:root {
  --ink: #04192b;
  --ink-2: #0b2a44;
  --blue: #0582d2;
  --blue-d: #035fa0;
  --sky: #5cbcff;
  --paper: #f6f2ea;
  --paper-2: #ece4d6;
  --white: #fffdf9;
  --orange: #ff6a2b;
  --yellow: #ffc93c;
  --green: #17a468;
  --red: #e2384d;
  --muted: #5d6673;
  --line: rgba(4, 25, 43, 0.12);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grão subtil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.display .serif { font-size: 1.08em; }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 58ch; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23, 164, 104, 0.18); animation: pulse 2s infinite; }
.tag--line { background: transparent; }
.tag--line::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.tag--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.tag svg { font-size: 1.1em; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(23, 164, 104, 0); } }

/* ---------- botões ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { font-size: 1.15em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--blue { --bg: var(--blue); box-shadow: 0 14px 34px -14px rgba(5, 130, 210, 0.7); }
.btn--ink { --bg: var(--ink); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow::before { background: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--blue); }
.btn--lg { padding: 1.15em 1.9em; font-size: 1.05rem; }

/* ---------- progresso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--sky), var(--yellow), var(--orange)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(1240px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(246, 242, 234, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(4, 25, 43, 0.08);
  box-shadow: 0 10px 40px -20px rgba(4, 25, 43, 0.25);
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 0.94rem; font-weight: 500; border-radius: 999px; transition: background 0.3s; }
.nav__links a:hover { background: rgba(4, 25, 43, 0.06); }
.nav__links a.is-active { background: var(--ink); color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__login { font-weight: 600; font-size: 0.94rem; }
.nav__login:hover { color: var(--blue); }
.nav .btn { padding: 0.75em 1.25em; font-size: 0.92rem; }
.nav__burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; place-items: center; font-size: 22px; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 110px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path 0.7s var(--ease);
}
.sheet.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.2; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sheet nav a em { font-family: var(--f-body); font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--yellow); margin-right: 14px; vertical-align: super; }
.sheet__login { font-weight: 600; color: var(--yellow); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 112px var(--gutter) 24px;
  max-width: 1440px;
  margin: 0 auto;
}
.hero__glow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(closest-side, rgba(92, 188, 255, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hero__meta { font-size: 0.9rem; color: var(--muted); }

.hero__title {
  margin-top: clamp(18px, 2.5vw, 30px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.95rem, 5.6vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.hero__title .line { display: block; }
.hero__title .line:nth-child(2) { padding-left: 1.6em; }
.hero__title .line:nth-child(4) { padding-left: 3.4em; }
.hero__title .w { display: inline-block; }
.js .hero__title .w { opacity: 0; transform: translateY(0.5em) rotate(4deg); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js .hero__title.in .w { opacity: 1; transform: none; }
.hero__title .serif { color: var(--blue); font-size: 1.12em; letter-spacing: -0.03em; padding-right: 0.06em; }
.pill-img {
  width: 1.7em;
  height: 0.78em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: 0.04em;
  box-shadow: 0 0 0 0.05em var(--paper), 0 0 0 0.075em var(--ink);
}
.pill-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pill-img:hover img { transform: scale(1.2); }
.underline { position: relative; }
.underline svg { position: absolute; left: 0; right: 0; bottom: -0.05em; width: 100%; height: 0.16em; stroke: var(--orange); stroke-width: 6; overflow: visible; }
.underline path { stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.2s 0.9s var(--ease); }
.hero__title.in .underline path { stroke-dashoffset: 0; }
.flag-dot { color: var(--orange); }

.hero__row {
  margin-top: clamp(22px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.hero__lead { max-width: 560px; color: var(--muted); font-size: 1.05rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.saas { color: var(--blue); font-weight: 700; background: rgba(5, 130, 210, 0.1); padding: 0.05em 0.4em; border-radius: 6px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; margin-top: clamp(32px, 4vw, 52px); }
.book {
  position: relative;
  aspect-ratio: 16 / 7.6;
  clip-path: url(#book);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.book img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.02); }
.book__spine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 46%, rgba(4, 25, 43, 0.28) 49.6%, rgba(255, 255, 255, 0.25) 50%, rgba(4, 25, 43, 0.22) 50.4%, transparent 54%),
    linear-gradient(180deg, transparent 60%, rgba(4, 25, 43, 0.35));
  pointer-events: none;
}

.badge-spin {
  position: absolute;
  top: -64px;
  right: 7%;
  width: clamp(110px, 13vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 20px 40px -16px rgba(4, 25, 43, 0.6);
}
.badge-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; stroke: none; }
.badge-spin text { fill: #fff; font-family: var(--f-body); font-weight: 600; font-size: 13.5px; }
.badge-spin img { width: 52%; }
@keyframes spin { to { transform: rotate(360deg); } }

.toasts { position: absolute; left: 4%; bottom: 14%; width: 290px; height: 76px; z-index: 3; }
.toast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 40px -18px rgba(4, 25, 43, 0.5);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}
.toast[data-pos="0"] { opacity: 1; transform: none; z-index: 3; }
.toast[data-pos="1"] { opacity: 0.7; transform: translateY(-14px) scale(0.93); z-index: 2; }
.toast[data-pos="2"] { opacity: 0.35; transform: translateY(-27px) scale(0.86); z-index: 1; }
.toast > * { transition: opacity 0.4s; }
.toast:not([data-pos="0"]) > * { opacity: 0; }
.toast small { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.toast strong { font-size: 0.95rem; line-height: 1.3; }
.toast__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
.toast[data-c="green"] .toast__ic { background: #dff5ea; color: var(--green); }
.toast[data-c="blue"] .toast__ic { background: #dcefff; color: var(--blue); }
.toast[data-c="orange"] .toast__ic { background: #ffe9dd; color: var(--orange); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  margin: clamp(20px, 3vw, 36px) -2vw 0;
  background: var(--blue);
  color: #fff;
  transform: rotate(-2deg);
  padding: 12px 0;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(5, 130, 210, 0.8);
}
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--yellow); font-size: 1.6rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   OBJECTIVOS — scroll horizontal
   ========================================================= */
.hscroll { padding: clamp(56px, 7vw, 90px) 0; overflow: hidden; }
.hscroll__track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 10px var(--gutter) 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll.is-pinned { padding: 40px 0; }
.hscroll.is-pinned .hscroll__track { overflow: visible; scroll-snap-type: none; width: max-content; }
.is-scrolling .hscroll__track { pointer-events: none; }

.panel { flex: none; scroll-snap-align: start; }
.panel--intro { width: min(86vw, 600px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-right: 30px; }
.hscroll__hint { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--orange); }
.hscroll__hint svg { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.obj {
  position: relative;
  width: min(80vw, 330px);
  min-height: min(62vh, 420px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}
.obj:nth-child(even) { transform: translateY(22px); }
.obj::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
  clip-path: circle(0% at 85% 12%);
  transition: clip-path 0.8s var(--ease);
}
.obj:hover::before, .obj:focus-within::before { clip-path: circle(150% at 85% 12%); }
.obj:hover { color: #fff; }
.obj[style*="yellow"]:hover { color: var(--ink); }
.obj__n {
  position: absolute;
  top: 18px;
  left: 28px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--c);
  transition: -webkit-text-stroke-color 0.5s;
}
.obj:hover .obj__n { -webkit-text-stroke-color: currentColor; }
.obj__ic {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 30px;
  width: 64px;
  height: 64px;
  padding: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  transition: background 0.5s, color 0.5s, transform 0.6s var(--ease);
}
.obj:hover .obj__ic { background: rgba(255, 255, 255, 0.2); color: currentColor; transform: rotate(-12deg) scale(1.1); }
.obj h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.65rem; line-height: 1; letter-spacing: -0.03em; }
.obj p { margin-top: 14px; opacity: 0.8; }

/* =========================================================
   MÓDULOS — hub
   ========================================================= */
.modules { padding: clamp(40px, 5vw, 70px) var(--gutter) clamp(56px, 7vw, 90px); max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.modules__head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.hub { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(4, 25, 43, 0.18); stroke-width: 1.5; }
.hub__lines line { stroke-dasharray: 4 7; }
.hub__lines line.is-on { stroke: var(--blue); stroke-width: 2.5; animation: flow 0.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.hub__ring { position: absolute; inset: 11%; border-radius: 50%; border: 1.5px dashed rgba(4, 25, 43, 0.2); animation: spin 60s linear infinite; }
.hub__ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.hub__core {
  position: absolute;
  inset: 27%;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7%;
  box-shadow: 0 0 0 14px rgba(5, 130, 210, 0.1), 0 0 0 28px rgba(5, 130, 210, 0.05), 0 30px 60px -20px rgba(4, 25, 43, 0.6);
}
.hub__core-inner { transition: opacity 0.35s, transform 0.35s var(--ease); }
.hub__core-inner.swap { opacity: 0; transform: translateY(10px); }
.hub__core-ic { font-size: 30px; color: var(--yellow); margin: 0 auto 8px; }
.hub__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.05; letter-spacing: -0.02em; }
.hub__desc { margin-top: 8px; font-size: clamp(0.8rem, 1vw, 0.9rem); line-height: 1.45; color: rgba(255, 255, 255, 0.72); }

.node {
  position: absolute;
  translate: -50% -50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 14px 30px -18px rgba(4, 25, 43, 0.45);
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
  z-index: 2;
}
.node svg { font-size: 26px; color: var(--blue); transition: color 0.4s; }
.node span { font-size: 0.68rem; font-weight: 600; line-height: 1.1; text-align: center; padding: 0 6px; }
.node:hover { transform: scale(1.08); }
.node.is-active { background: var(--blue); color: #fff; transform: scale(1.14); box-shadow: 0 18px 40px -14px rgba(5, 130, 210, 0.8); }
.node.is-active svg { color: #fff; }

/* =========================================================
   SHOWCASE
   ========================================================= */
.showcase {
  background: var(--ink);
  color: #fff;
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 1.2vw, 16px);
  padding: clamp(56px, 6vw, 88px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -300px;
  top: -300px;
  background: radial-gradient(closest-side, rgba(5, 130, 210, 0.4), transparent);
  pointer-events: none;
}
.showcase__head { position: relative; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 900px; }
.showcase__head .serif { color: var(--sky); }
.showcase .lead { color: rgba(255, 255, 255, 0.65); }
.showcase__body { position: relative; margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.4fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.tabs { list-style: none; margin: 0; padding: 0; }
.tabs li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tabs li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tab { position: relative; width: 100%; display: flex; align-items: baseline; gap: 16px; padding: 15px 0; text-align: left; }
.tab__n { font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.4); }
.tab__l { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.45); transition: color 0.4s; }
.tab:hover .tab__l { color: rgba(255, 255, 255, 0.85); }
.tab.is-active .tab__l { color: #fff; font-weight: 800; }
.tab.is-active .tab__n { color: var(--yellow); }
.tab__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.tab__bar i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.tab.is-active .tab__bar i { animation: bar 7s linear forwards; }
.showcase.is-paused .tab.is-active .tab__bar i { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.tab__d { overflow: hidden; color: rgba(255, 255, 255, 0.68); font-size: 0.98rem; max-height: 0; transition: max-height 0.6s var(--ease), padding 0.6s var(--ease); }
.tab.is-active + .tab__d { max-height: 320px; padding-bottom: 22px; }

.screen {
  border-radius: 22px;
  background: #0f3150;
  padding: 0 10px 10px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease);
}
.screen__bar { display: flex; align-items: center; gap: 7px; padding: 12px 6px; }
.screen__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.screen__bar i:nth-child(2) { background: #febc2e; }
.screen__bar i:nth-child(3) { background: #28c840; }
.screen__bar span { margin-left: 12px; flex: 1; max-width: 320px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.07); padding: 4px 12px; border-radius: 999px; }
.screen__view { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #071f34; }
.screen__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 1.6s var(--ease); }
.screen__view img.is-on { opacity: 1; transform: none; }

/* =========================================================
   PERFIS
   ========================================================= */
.roles { padding: clamp(56px, 7vw, 96px) var(--gutter); max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.roles__head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; position: sticky; top: 110px; }
.roles__list { list-style: none; padding: 0; margin: 0; }
.role { position: relative; border-top: 1.5px solid var(--ink); isolation: isolate; }
.role:last-child { border-bottom: 1.5px solid var(--ink); }
.role::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.5s var(--ease); }
.role:hover::before { transform: scaleY(1); }
.role.is-open::before { background: var(--white); transform: scaleY(1); }
.role button { width: 100%; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); padding: clamp(10px, 1.3vw, 16px) clamp(4px, 1.5vw, 20px); text-align: left; }
.role__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 20px; flex: none; transition: background 0.4s, color 0.4s, transform 0.6s var(--ease); }
.role.is-open .role__ic { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-10deg); }
.role__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.9vw, 2.4rem); line-height: 1; letter-spacing: -0.04em; transition: transform 0.5s var(--ease); }
.role:hover .role__t { transform: translateX(12px); }
.role__plus { margin-left: auto; position: relative; width: 26px; height: 26px; flex: none; }
.role__plus::before, .role__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2.5px; margin-top: -1.25px; background: currentColor; border-radius: 2px; transition: transform 0.5s var(--ease); }
.role__plus::after { transform: rotate(90deg); }
.role.is-open .role__plus::after { transform: rotate(0); }
.role p { max-height: 0; overflow: hidden; padding: 0 clamp(4px, 1.5vw, 20px) 0 calc(44px + clamp(18px, 4vw, 50px)); font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted); transition: max-height 0.6s var(--ease), padding 0.6s var(--ease); }
.role.is-open p { max-height: 200px; padding-bottom: 18px; }

/* =========================================================
   BENEFÍCIOS
   ========================================================= */
.benefits { padding: 0 var(--gutter) clamp(56px, 7vw, 96px); max-width: 1320px; margin: 0 auto; }
.fill-text { margin-top: 20px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 4.6rem); line-height: 0.95; letter-spacing: -0.05em; }
.fill-text .fw { opacity: 0.14; transition: opacity 0.3s; }
.fill-text .fw.on { opacity: 1; }
.fill-text s { text-decoration: none; position: relative; color: var(--orange); }
.fill-text s::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 0.09em; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s var(--ease); }
.fill-text.done s::after { transform: scaleX(1); }

.benefits__body { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(4, 25, 43, 0.2); font-size: clamp(1rem, 1.3vw, 1.12rem); font-weight: 600; }
.checklist i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(4, 25, 43, 0.2); flex: none; color: #fff; transition: background 0.5s var(--ease), border-color 0.5s; }
.checklist svg { font-size: 18px; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s 0.2s var(--ease); }
.checklist li.done i { background: var(--green); border-color: var(--green); }
.checklist li.done svg { stroke-dashoffset: 0; }
.benefits__img { margin: 0; border-radius: 300px 300px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.benefits__img img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; will-change: transform; }

/* =========================================================
   DIFERENCIAIS — stack
   ========================================================= */
.diff { padding: 0 var(--gutter) clamp(56px, 7vw, 96px); max-width: 1320px; margin: 0 auto; }
.diff__head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 900px; margin-bottom: clamp(32px, 4vw, 52px); }

.flaps { display: flex; gap: 10px; height: 380px; }
.flap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 26px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  text-align: left;
  transition: flex 0.7s var(--ease), transform 0.4s var(--ease);
}
.flap.is-open { flex: 4.2 1 0; }
.flap:not(.is-open):hover { transform: translateY(-6px); }
.flap__n { position: absolute; top: 22px; left: 22px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; opacity: 0.7; }
.flap__ic { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: transform 0.7s var(--ease); }
.flap.is-open .flap__ic { transform: rotate(-12deg) scale(1.25); }
.flap__t {
  position: absolute;
  left: 50%;
  bottom: 26px;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  max-height: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}
.flap.is-open .flap__t { opacity: 0; }
.flap__body {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.5s var(--ease);
  pointer-events: none;
}
.flap.is-open .flap__body { opacity: 1; transform: none; transition-delay: 0.3s; }
.flap__body strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 12ch; }
.flap__body span { font-size: 1.05rem; line-height: 1.5; opacity: 0.85; max-width: 38ch; }

/* =========================================================
   SEGURANÇA
   ========================================================= */
.security {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 7vw, 90px) var(--gutter) clamp(36px, 4vw, 52px);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  position: relative;
  overflow: hidden;
}
.security::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(255, 201, 60, 0.18), transparent); pointer-events: none; }
.security__grid { position: relative; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.security__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.security .serif { color: var(--yellow); }
.security .lead { color: rgba(255, 255, 255, 0.65); }
.sec-points { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sec-points li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); font-weight: 600; transition: background 0.3s, border-color 0.3s; }
.sec-points li:hover { background: var(--blue); border-color: var(--blue); }
.sec-points svg { font-size: 20px; color: var(--sky); }
.sec-points li:hover svg { color: #fff; }

.validator { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.validator__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.doc {
  position: relative;
  width: min(100%, 340px);
  padding: 26px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transform: rotate(-4deg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.7s var(--ease);
}
.doc:hover { transform: rotate(0) translateY(-6px); }
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.doc__head img { height: 30px; width: auto; }
.doc__head span { text-align: right; font-family: var(--f-display); font-weight: 800; font-size: 0.95rem; line-height: 1.1; }
.doc__head small { font-family: var(--f-body); font-weight: 500; font-size: 0.7rem; color: var(--muted); }
.doc__lines { display: flex; flex-direction: column; gap: 9px; margin: 18px 0; }
.doc__lines i { display: block; height: 7px; border-radius: 4px; background: var(--paper-2); }
.doc__qr { position: relative; width: 120px; margin-left: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.doc__qr svg { width: 100%; height: auto; display: block; stroke: none; }
.doc__qr rect { fill: var(--ink); }
.doc__scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--green); box-shadow: 0 0 14px 4px rgba(23, 164, 104, 0.6); opacity: 0; }
.doc.scanning .doc__scan { opacity: 1; animation: scan 0.9s ease-in-out 2 alternate; }
@keyframes scan { from { top: 0; } to { top: calc(100% - 3px); } }
.doc__stamp {
  position: absolute;
  left: 22px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 3px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-14deg) scale(2.4);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s;
}
.doc__stamp svg { stroke-width: 3.5; }
.doc.valid .doc__stamp { opacity: 1; transform: rotate(-14deg) scale(1); }

.partners { position: relative; max-width: 1320px; margin: clamp(36px, 4.5vw, 60px) auto 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.partners p { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.partners__row { display: flex; flex-wrap: wrap; gap: 14px; }
.partner { display: grid; place-items: center; width: 132px; height: 72px; padding: 6px 14px; border-radius: 16px; background: #fff; transition: transform 0.5s var(--ease); }
.partner:hover { transform: translateY(-6px) rotate(-3deg); }
.partner img { max-width: 100%; max-height: 60px; width: auto; height: auto; }
.partner { overflow: hidden; }
.partner img[src*="emola"] { transform: scale(1.5); }

/* =========================================================
   SUPORTE
   ========================================================= */
.support { background: var(--ink); color: #fff; padding: 0 var(--gutter) clamp(56px, 7vw, 90px); }
.support__head { max-width: 1320px; margin: 0 auto; padding-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.support .serif { color: var(--orange); }
.support .lead { color: rgba(255, 255, 255, 0.65); }
.support .tag--line { border-color: rgba(255, 255, 255, 0.16); }
.journey { position: relative; max-width: 1320px; margin: clamp(32px, 4vw, 48px) auto 0; display: flex; gap: 20px; }
.journey__path { position: absolute; left: 0; right: 0; top: 29px; width: 100%; height: 4px; overflow: visible; }
.journey__path path { stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step { position: relative; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.step__ic { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--c); font-size: 28px; transform: rotate(-6deg); box-shadow: 0 0 0 8px var(--ink); }
.step > div { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.1); flex: 1; }
.step h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.05; }
.step p { margin-top: 10px; color: rgba(255, 255, 255, 0.68); }

/* =========================================================
   DEMO — carta
   ========================================================= */
.demo { padding: clamp(56px, 7vw, 96px) var(--gutter); max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.demo__intro { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; position: sticky; top: 110px; }
.demo__perks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.demo__perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.demo__perks svg { color: #fff; background: var(--green); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3; }

.letter {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(transparent 0 calc(2.3em - 1px), rgba(5, 130, 210, 0.08) calc(2.3em - 1px) 2.3em),
    var(--white);
  box-shadow: 0 40px 80px -40px rgba(4, 25, 43, 0.35), 0 0 0 1px var(--line);
  overflow: hidden;
}
.letter::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(14px, 2vw, 30px); width: 2px; background: rgba(255, 106, 43, 0.35); }
.letter__hint { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.letter__text { margin-top: 14px; font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 2.1; color: var(--ink); }
.letter input:not([type="checkbox"]),
.letter select {
  font: inherit;
  font-family: var(--f-body);
  font-size: 0.7em;
  line-height: 1.5;
  font-weight: 600;
  color: var(--blue);
  background: rgba(5, 130, 210, 0.06);
  border: 0;
  border-bottom: 2px dashed var(--blue);
  border-radius: 6px 6px 0 0;
  padding: 0.05em 0.35em;
  min-width: 6ch;
  width: 12ch;
  max-width: 100%;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}
.letter input.short { width: 6ch; }
.letter input.long { width: 22ch; }
.letter input::placeholder { color: rgba(5, 130, 210, 0.5); font-weight: 500; }
.letter input:focus, .letter select:focus { background: rgba(255, 201, 60, 0.3); border-bottom-style: solid; }
.letter .sel { position: relative; display: inline-block; }
.letter select { appearance: none; -webkit-appearance: none; padding-right: 1.4em; width: auto; cursor: pointer; }
.letter .sel::after { content: "▾"; position: absolute; right: 0.4em; top: 50%; translate: 0 -50%; font-family: var(--f-body); font-size: 0.6em; color: var(--blue); pointer-events: none; }
.letter .is-invalid { border-bottom-color: var(--red) !important; background: rgba(226, 56, 77, 0.08) !important; animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

.consent { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent span { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--blue); margin-top: 1px; display: grid; place-items: center; transition: background 0.3s; }
.consent input:checked + span { background: var(--blue); }
.consent input:checked + span::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 700; }
.consent input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.consent.is-invalid span { border-color: var(--red); animation: shake 0.4s; }
.letter__err { margin-top: 14px; min-height: 1.4em; color: var(--red); font-weight: 600; font-size: 0.92rem; }

.letter__done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px; background: var(--white); clip-path: circle(0 at 50% 85%); transition: clip-path 0.9s var(--ease); }
.letter.sent .letter__done { clip-path: circle(150% at 50% 85%); }
.done-ic { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--green); color: #fff; font-size: 42px; transform: scale(0); transition: transform 0.6s 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.done-ic svg { stroke-width: 3; }
.letter.sent .done-ic { transform: scale(1); }
.letter__done h3 { font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; }
.letter__done p { color: var(--muted); font-size: 1.1rem; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.final {
  margin: 0 clamp(8px, 1.2vw, 16px);
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  border-radius: clamp(28px, 4vw, 56px);
  background: var(--blue);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.18); pointer-events: none; }
.final::before { width: 120vw; height: 120vw; top: 55%; left: 50%; translate: -50% 0; }
.final::after { width: 80vw; height: 80vw; top: 70%; left: 50%; translate: -50% 0; }
.final__title { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 5.6vw, 5.2rem); line-height: 0.92; letter-spacing: -0.05em; max-width: 14ch; }
.final__title .serif { color: var(--yellow); }
.final .lead { position: relative; color: rgba(255, 255, 255, 0.85); }
.final__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 10px; }
.orb { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1rem; line-height: 1.1; letter-spacing: -0.01em; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); transition: background 0.4s, transform 0.4s var(--ease); }
.orb:hover { background: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); margin-top: clamp(8px, 1.2vw, 16px); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; padding: clamp(44px, 5vw, 70px) var(--gutter) 24px; overflow: hidden; }
.footer__top { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr; gap: 40px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer__contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 0.95rem; }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts svg { font-size: 18px; color: var(--sky); margin-top: 3px; }
.footer__contacts a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer__cols a { display: block; padding: 4px 0; font-size: 0.93rem; transition: color 0.3s, transform 0.3s var(--ease); }
.footer__cols a:hover { color: var(--yellow); transform: translateX(4px); }
.footer__mega { font-family: var(--f-display); font-weight: 800; font-size: 16vw; line-height: 0.8; letter-spacing: -0.07em; text-align: center; margin: 32px 0 8px; color: rgba(255, 255, 255, 0.05); user-select: none; transition: color 0.8s; }
.footer__mega:hover { color: rgba(5, 130, 210, 0.35); }
.footer__bottom { max-width: 1320px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer__bottom p { display: flex; align-items: center; gap: 8px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .modules { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .roles__head { position: static; }
  .showcase__body { grid-template-columns: 1fr; }
  .screen { order: -1; }
  .security__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { padding-left: 16px; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .hero { padding-top: 110px; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .book { aspect-ratio: 4 / 3; }
  .badge-spin { top: -48px; right: 4%; }
  .toasts { position: relative; left: auto; bottom: auto; margin: 26px auto 0; }
  .obj:nth-child(even) { transform: none; }
  .obj { min-height: 420px; }
  .benefits__body { grid-template-columns: 1fr; }
  .benefits__img { max-height: 520px; aspect-ratio: 4 / 4; }
  .journey { flex-direction: column; }
  .journey__path { display: none; }
  .journey { gap: 16px; }
  .step { gap: 0; }
  .step__ic { width: 50px; height: 50px; font-size: 22px; margin: 0 0 -22px 18px; z-index: 1; box-shadow: none; }
  .step > div { padding: 34px 20px 20px; }
  .benefits__img { aspect-ratio: 16 / 10; }
  .demo { grid-template-columns: 1fr; }
  .demo__intro { position: static; }
}

@media (max-width: 700px) {
  .hub { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hub__lines, .hub__ring { display: none; }
  .hub__core { position: relative; inset: auto; order: 2; width: 100%; border-radius: var(--radius); padding: 28px 22px; margin-top: 12px; box-shadow: 0 20px 40px -20px rgba(4, 25, 43, 0.6); }
  .node { position: relative; translate: none; left: auto !important; top: auto !important; width: calc(33.333% - 7px); height: auto; aspect-ratio: auto; padding: 14px 4px; border-radius: 18px; }
  .node.is-active { transform: none; }
  .flaps { flex-direction: column; height: auto; }
  .flap { flex: none; height: 72px; transition: height 0.6s var(--ease); }
  .flap.is-open { flex: none; height: 250px; }
  .flap:not(.is-open):hover { transform: none; }
  .flap__n { top: 27px; }
  .flap__ic { top: 12px; right: 12px; }
  .flap__t { writing-mode: horizontal-tb; transform: translateY(-50%); left: 56px; right: 70px; bottom: auto; top: 36px; font-size: 1.05rem; line-height: 1.15; white-space: normal; max-height: none; }
  .flap__body { left: 22px; right: 22px; bottom: 22px; min-width: 0; }
  .flap__body strong { font-size: 1.7rem; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .partner { width: calc(50% - 7px); }
  .partners__row { width: 100%; }
}

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

/* ecrãs táteis: sem efeitos de hover "presos" após um toque */
@media (hover: none) {
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover svg { transform: none; }
  .btn--ghost:hover { color: var(--ink); }
  .btn--ghost-light:hover { color: #fff; }
  .obj:hover::before { clip-path: circle(0% at 85% 12%); }
  .obj:hover, .obj[style*="yellow"]:hover { color: var(--ink); }
  .obj:hover .obj__n { -webkit-text-stroke-color: var(--c); }
  .obj:hover .obj__ic { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); transform: none; }
  .role:hover::before { transform: scaleY(0); }
  .role.is-open::before { transform: scaleY(1); }
  .role:hover .role__t { transform: none; }
  .doc:hover { transform: rotate(-4deg); }
  .partner:hover, .node:not(.is-active):hover { transform: none; }
  .sec-points li:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.16); }
  .sec-points li:hover svg { color: var(--sky); }
  .footer__cols a:hover { transform: none; }
}

/* links do menu: o título da secção não fica escondido atrás da navegação */
section[id], footer[id] { scroll-margin-top: 96px; }

/* =========================================================
   DISPOSITIVOS
   ========================================================= */
.devices { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 90px) var(--gutter) 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.devices > * { max-width: 100%; }
.devices__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.devices .serif { color: var(--sky); }
.devices .lead { color: rgba(255, 255, 255, 0.65); }

.stage {
  position: relative;
  aspect-ratio: 16 / 9.4;
  border-radius: clamp(20px, 3vw, 36px);
  background: radial-gradient(120% 90% at 20% 10%, #f1f6fa, #c5dbe9 55%, #8fb6cf);
  overflow: hidden;
  isolation: isolate;
}
.stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 7%; height: 10%; background: radial-gradient(closest-side, rgba(4, 25, 43, 0.35), transparent); filter: blur(6px); z-index: -1; }
.dev { position: absolute; transition: transform 1.1s var(--ease), opacity 0.9s var(--ease); }
.dev__screen {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0a6cb3, #0558a0 60%, #04497f);
  overflow: hidden;
}
.dev__screen::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%); transform: translateX(-60%); animation: shine 6s var(--ease) infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.dev__screen img { width: 30%; }

.dev--laptop { left: 17%; right: 17%; top: 9%; }
.dev--laptop .dev__screen { aspect-ratio: 16 / 10.4; height: auto; border: clamp(5px, 0.8vw, 10px) solid #121417; border-bottom-width: clamp(8px, 1.2vw, 14px); border-radius: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0 0; }
.dev--laptop .dev__screen::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 13%; height: 4%; background: #121417; border-radius: 0 0 8px 8px; z-index: 1; }
.dev__base { height: clamp(8px, 1.1vw, 14px); margin: 0 -9%; background: linear-gradient(#eef0f2, #b9bec4 60%, #8a9097); border-radius: 0 0 50% 50% / 0 0 100% 100%; position: relative; }
.dev__base::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 14%; height: 45%; background: #a5abb2; border-radius: 0 0 8px 8px; }

.dev--phone { left: 4%; bottom: 10%; width: 14.5%; aspect-ratio: 9 / 19; z-index: 2; }
.dev--phone .dev__screen { border: clamp(3px, 0.45vw, 6px) solid #15181b; border-radius: clamp(12px, 1.8vw, 24px); box-shadow: 0 20px 40px -18px rgba(4, 25, 43, 0.7); }
.dev--phone .dev__screen::before { content: ""; position: absolute; top: 2%; left: 50%; translate: -50% 0; width: 34%; height: 3.4%; background: #15181b; border-radius: 99px; z-index: 1; }
.dev--phone .dev__screen img { width: 52%; }

.dev--tablet { right: 3.5%; bottom: 12%; width: 22%; aspect-ratio: 3 / 4.1; z-index: 2; }
.dev--tablet .dev__screen { border: clamp(4px, 0.6vw, 8px) solid #1b1e21; border-radius: clamp(10px, 1.5vw, 20px); box-shadow: 0 20px 40px -18px rgba(4, 25, 43, 0.7); }
.dev--tablet .dev__screen img { width: 46%; }

.js .stage .dev--phone { opacity: 0; transform: translate(-40%, 12%) rotate(-8deg); }
.js .stage .dev--tablet { opacity: 0; transform: translate(40%, 12%) rotate(8deg); }
.js .stage .dev--laptop { opacity: 0; transform: translateY(14%) scale(0.94); }
.js .stage.in .dev { opacity: 1; transform: none; }
.js .stage.in .dev--phone { transition-delay: 0.25s; animation: bob 5s 1.4s ease-in-out infinite; }
.js .stage.in .dev--tablet { transition-delay: 0.4s; animation: bob 5.6s 1.8s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* =========================================================
   BREVEMENTE
   ========================================================= */
.soon { padding: clamp(56px, 7vw, 96px) var(--gutter) 0; max-width: 1320px; margin: 0 auto; }
.soon__head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.soon__head .serif { color: var(--blue); }
.soon__list { margin-top: clamp(28px, 4vw, 48px); display: flex; gap: clamp(14px, 2vw, 24px); align-items: flex-start; }
.ticket {
  --notch: 14px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  padding: 26px 26px 22px;
  background: var(--white);
  border-radius: 22px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.ticket:nth-child(1) { transform: rotate(-2.5deg); }
.ticket:nth-child(2) { transform: translateY(26px) rotate(1.5deg); }
.ticket:nth-child(3) { transform: rotate(-1deg); }
.ticket:hover { transform: translateY(-8px) rotate(0); background: #fff; }
.ticket__chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ticket__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.ticket__ic { width: 64px; height: 64px; padding: 15px; border-radius: 18px; background: var(--c); color: #fff; stroke-width: 1.8; transform: rotate(-6deg); transition: transform 0.6s var(--ease); }
.ticket:hover .ticket__ic { transform: rotate(-8deg) scale(1.1); }
.ticket h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.1; letter-spacing: -0.025em; }
.ticket__bar { margin-top: auto; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); overflow: hidden; border-top: 1px dashed transparent; }
.ticket__bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--c); animation: build 2.4s var(--ease) infinite; }
.ticket:hover .ticket__bar i { animation-duration: 1.2s; }
@keyframes build { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

@media (max-width: 1100px) {
  .devices { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .soon__list { flex-direction: column; align-items: stretch; }
  .ticket, .ticket:nth-child(n) { transform: none; min-height: 0; }
  .ticket:nth-child(2) { transform: translateX(10px); }
}
@media (hover: none) {
  .ticket:hover { transform: none; }
  .ticket:nth-child(2):hover { transform: translateY(26px) rotate(1.5deg); }
}
@media (hover: none) and (max-width: 860px) {
  .ticket:nth-child(2):hover { transform: translateX(10px); }
}
@media (max-width: 600px) {
  .hero__lead { text-align: left; }
}

/* =========================================================
   HERO — PORTFÓLIO
   ========================================================= */
.hero__head { display: grid; grid-template-columns: 1fr minmax(300px, 0.72fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.partner img[src*="bim"] { border-radius: 10px; }
.sheet__links { display: flex; flex-direction: column; gap: 14px; }

.folio { display: flex; flex-direction: column; gap: 26px; margin-top: clamp(18px, 2.5vw, 30px); }
.deck { position: relative; display: block; aspect-ratio: 16 / 11; perspective: 1400px; }
.deck__s {
  position: absolute;
  left: 6%;
  top: 14%;
  width: 82%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 50px -22px rgba(4, 25, 43, 0.55), 0 0 0 1px rgba(4, 25, 43, 0.06);
  transition: transform 0.8s var(--ease), opacity 0.6s, filter 0.6s;
  transform-origin: 50% 100%;
}
.deck__s[data-pos="0"] { transform: rotate(-4deg); z-index: 3; }
.deck__s[data-pos="1"] { transform: translate(7%, -9%) rotate(3deg) scale(0.94); z-index: 2; filter: brightness(0.94); }
.deck__s[data-pos="2"] { transform: translate(13%, -17%) rotate(9deg) scale(0.88); z-index: 1; filter: brightness(0.88); }
.deck:hover .deck__s[data-pos="0"] { transform: translate(-6%, 4%) rotate(-9deg); }
.deck:hover .deck__s[data-pos="1"] { transform: translate(9%, -12%) rotate(4deg) scale(0.96); }
.deck:hover .deck__s[data-pos="2"] { transform: translate(22%, -24%) rotate(14deg) scale(0.9); }
.deck__tag {
  position: absolute;
  left: 0;
  bottom: 4%;
  z-index: 4;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(-6deg);
  box-shadow: 0 10px 24px -10px rgba(4, 25, 43, 0.5);
}
.folio__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.folio__meta small { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.folio__meta .btn svg { transition: transform 0.4s var(--ease); }
.folio__meta .btn:hover svg { transform: translateY(3px); }

@media (max-width: 1100px) {
  .hero__head { grid-template-columns: 1fr; }
  .folio { flex-direction: row; align-items: center; gap: 28px; margin-top: 8px; }
  .deck { flex: 0 0 300px; }
  .folio__meta { flex: 1 1 40%; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .folio { gap: 14px; }
  .deck { flex: 0 0 44%; }
  .deck__tag { font-size: 0.62rem; padding: 5px 9px; }
  .folio__meta { gap: 10px; }
  .folio__meta .btn { padding: 0.8em 1.1em; font-size: 0.86rem; }
  .folio__meta small { font-size: 0.75rem; }
}
@media (hover: none) {
  .deck:hover .deck__s[data-pos="0"] { transform: rotate(-4deg); }
  .deck:hover .deck__s[data-pos="1"] { transform: translate(7%, -9%) rotate(3deg) scale(0.94); }
  .deck:hover .deck__s[data-pos="2"] { transform: translate(13%, -17%) rotate(9deg) scale(0.88); }
}
