/* Cubo Soberano — folha de estilos do site
   Paleta A (Navy + Ciano) · Space Grotesk / Inter / JetBrains Mono · escala 1,25 */

/* ---------- Fontes (alojadas localmente, sem pedidos a terceiros) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/JetBrainsMono-Regular.woff") format("woff"); }
/* Space Grotesk: ver README («Fontes»). Enquanto o ficheiro não existir, usa-se a fonte de recurso. */
@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype"); }

:root {
  --navy: #0B1F3A; --navy-2: #12294A; --navy-3: #16305A; --navy-deep: #07162B;
  --line-dark: #22395A; --line-dark-2: #4A6286;
  --cyan: #22D3EE; --cyan-ink: #0E7490;
  --grey-bg: #F1F5F9; --line: #E2E8F0; --line-2: #D5DCE6; --field: #8A9AB0;
  --text: #0B1F3A; --text-2: #3B4B63; --text-dark-2: #A9B8CC;
  --error: #B42318; --error-bg: #FEF3F2; --error-ink: #7A1A12;
  --f-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-ink); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--cyan); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 64px; padding-right: 64px; }
.sec { padding-top: 112px; padding-bottom: 112px; scroll-margin-top: var(--header-h); }
.sec--grey { background: var(--grey-bg); }
.sec--dark { background: var(--navy); color: #fff; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.h2 { font-size: 39px; line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.sec--dark .lead { color: var(--text-dark-2); }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.label--accent { color: var(--cyan-ink); }
.icon { width: 28px; height: 28px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 10px; padding: 0 24px; min-height: 52px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn--cyan { background: var(--cyan); color: var(--navy); }
.btn--cyan:hover { background: #67E8F9; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--ghost-dark { color: #fff; border-color: var(--line-dark-2); }
.btn--ghost-dark:hover { border-color: #fff; color: #fff; }
.btn--outline { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn--sm { min-height: 40px; font-size: 15px; padding: 0 16px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line-dark); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; align-self: stretch; gap: 28px; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; color: var(--text-dark-2); border-top: 2px solid transparent; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; border-bottom-color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; height: 40px; border: 1px solid var(--line-dark-2); border-radius: 8px; overflow: hidden; font-family: var(--f-mono); font-size: 13px; }
.lang a { display: inline-flex; align-items: center; padding: 0 11px; color: var(--text-dark-2); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--navy-3); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-dark-2); border-radius: 8px; color: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-nav { background: var(--navy); border-top: 1px solid var(--line-dark); padding: 8px 20px 20px; display: flex; flex-direction: column; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { color: #fff; text-decoration: none; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 96px 0 112px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 61px; line-height: 1.05; letter-spacing: -0.025em; }
.hero__sub { font-size: 20px; line-height: 1.55; color: var(--text-dark-2); max-width: 600px; }
.hero__ctas { display: flex; gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.hero__areas { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--text-dark-2); }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: 360px; height: 360px; }

/* ---------- Cartões e grelhas ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.card { border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card h3 { font-size: 21px; line-height: 1.25; }
.card p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.card--dark { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: space-between; text-decoration: none; }
.card--dark p { color: var(--text-dark-2); }
.card--dark span { font-weight: 600; font-size: 14px; color: var(--cyan); }
.card--dark:hover { background: var(--navy-3); color: #fff; }

/* ---------- Quem ajudamos (separadores) ---------- */
.tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: stretch; }
.tabs__list { display: flex; flex-direction: column; gap: 8px; }
.tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; text-align: left; font-family: var(--f-head); font-weight: 600; font-size: 19px; padding: 12px 20px; border-radius: 14px; cursor: pointer; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.tab[aria-selected="true"] { background: #fff; color: var(--navy); border-color: var(--navy); }
.tab__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-bg); }
.tab__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-selected="true"] .tab__icon { background: var(--navy); }
.tab[aria-selected="true"] .tab__icon svg { stroke: var(--cyan); }
.tabs__panel { background: #fff; border-radius: 16px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 24px; align-items: center; }
.tabs__panel[hidden] { display: none; }
.tabs__panel p { font-family: var(--f-head); font-size: 22px; line-height: 1.4; }
.tabs__panel .problem { color: var(--text-2); }
.tabs__panel > div { display: flex; flex-direction: column; gap: 10px; }
.tabs__arrow { width: 48px; height: 48px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.step { border-top: 2px solid var(--cyan); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--f-mono); font-size: 13px; color: var(--cyan); }
.step h3 { font-size: 21px; line-height: 1.25; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text-dark-2); }

/* ---------- Porquê ---------- */
.reasons li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reasons h3 { font-size: 21px; line-height: 1.25; margin-bottom: 4px; }
.reasons p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Tecnologia ---------- */
.tech-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tech-card__head { display: flex; align-items: center; gap: 12px; }
.tech-card__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.tech-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tech-card h3 { font-size: 19px; line-height: 1.25; }
.tech-card p { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tech-card .tools { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: var(--navy); }
.strong-lead { font-size: 18px; line-height: 1.6; font-weight: 500; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: center; }
.about__photo { aspect-ratio: 4 / 5; border-radius: 16px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--f-head); font-size: 64px; font-weight: 600; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body { display: flex; flex-direction: column; gap: 16px; }
.about__role { font-weight: 600; font-size: 17px; }
.about__bio { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.about blockquote { margin: 8px 0 0; padding-left: 20px; border-left: 3px solid var(--cyan-ink); font-family: var(--f-head); font-size: 22px; line-height: 1.4; }
.link-arrow { font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--f-head); font-weight: 600; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 26px; color: var(--cyan-ink); transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 680px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.contact__main { display: flex; flex-direction: column; gap: 24px; }
.form, .form-success { background: #fff; color: var(--navy); border-radius: 16px; padding: 32px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form[hidden], .form-success[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .form__full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 14px; }
.field input, .field select, .field textarea { font-size: 16px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; color: var(--navy); background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cyan-ink); }
.consent label { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.form__alert { background: var(--error-bg); border: 1px solid var(--error); color: var(--error-ink); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.form__alert[hidden] { display: none; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot small { font-size: 13px; color: var(--text-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; gap: 12px; }
.form-success svg { width: 36px; height: 36px; fill: none; stroke: var(--cyan-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 25px; }
.form-success p { color: var(--text-2); }
.aside-card { border: 1px solid var(--line-dark); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.aside-card h3 { font-size: 21px; }
.aside-card a { color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.aside-card a span:first-child { font-size: 13px; color: var(--text-dark-2); }
.aside-card a span:last-child { font-size: 18px; font-weight: 600; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-dark-2); padding: 72px 0 32px; font-size: 15px; }
.site-footer a { color: var(--text-dark-2); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
nav.footer__col a { text-decoration: none; }
.footer__col address { font-style: normal; line-height: 1.6; margin-top: 8px; }
.footer__lang { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 13px; }
.footer__lang a[aria-current="true"] { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer__legal { display: flex; flex-direction: column; gap: 6px; }
.footer__legal span:last-child { font-size: 13px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Páginas legais ---------- */
.legal-hero { background: var(--grey-bg); padding: 64px 0 56px; }
.legal-hero .wrap { display: flex; flex-direction: column; gap: 12px; }
.legal-hero h1 { font-size: 49px; line-height: 1.08; letter-spacing: -0.02em; }
.breadcrumb { font-size: 14px; color: var(--text-2); }
.updated { font-family: var(--f-mono); font-size: 13px; color: var(--text-2); margin-top: 4px; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; padding-top: 28px; }
.toc a { color: var(--navy); text-decoration: none; font-size: 15px; line-height: 1.4; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); }
.toc a:hover { border-left-color: var(--cyan-ink); }
.doc { max-width: 760px; }
.doc section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.doc h2 { margin-bottom: 12px; font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.doc p { margin-bottom: 14px; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--navy); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; color: #fff; text-decoration: none; font-size: 15px; white-space: nowrap; }
.back-link:hover { color: #fff; text-decoration: underline; }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.simple-footer { background: var(--navy-deep); color: var(--text-dark-2); padding: 40px 0; font-size: 14px; }
.simple-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.simple-footer a { color: var(--text-dark-2); }

/* ---------- Página simples (EN em preparação, 404) ---------- */
.notice { min-height: calc(100vh - var(--header-h) - 120px); display: flex; align-items: center; background: var(--grey-bg); }
.notice .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.notice h1 { font-size: 49px; line-height: 1.08; letter-spacing: -0.02em; }
.notice p { font-size: 18px; color: var(--text-2); max-width: 640px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 40px; }
  .h2 { font-size: 31px; }
  .hero__grid, .split, .tabs, .about, .faq, .contact, .legal, .grid-4, .grid-2, .steps, .footer__grid, .form { grid-template-columns: minmax(0, 1fr); }
  .hero__art, .tabs__arrow { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .tabs__panel { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .tabs__panel p { font-size: 19px; }
  .form { padding: 24px; }
  .form__foot, .footer__bottom, .simple-footer .wrap { flex-direction: column; align-items: flex-start; }
  .form__foot .btn { width: 100%; }
  .toc { position: static; }
  .legal-hero h1, .notice h1 { font-size: 36px; }
  .about__photo { max-width: 320px; }
}
