/* OKEDO · okedo.pt — folha de estilos única.
   Tokens: brands/okedo/05_IA_E_DEV/developer/okedo.tokens.css (Brand System v3.0). */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }

:root {
  --font: "Sora", system-ui, sans-serif;
  --graphite: #1F2937;
  --lime: #84E600;
  --white: #FFFFFF;
  --surface: #F6F7F4;
  --green-text: #416900;
  --grey: #667085;
  --on-dark: rgba(255, 255, 255, .8);
  --on-dark-line: rgba(255, 255, 255, .16);
  --line: rgba(31, 41, 55, .12);
  --line-strong: rgba(31, 41, 55, .28);
  --error: #B42318;
  --r-sm: 12px;
  --r: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--graphite); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p, ul, ol, dl, dd, fieldset, figure { margin: 0; }
p { text-wrap: pretty; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--graphite); }
main .hero :focus-visible, main .dark :focus-visible { outline-color: var(--lime); }
main .dark .contact-card :focus-visible { outline-color: var(--graphite); }
[hidden] { display: none !important; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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: var(--s4); top: -100px; z-index: 100; background: var(--lime); color: var(--graphite); font-weight: 600; padding: var(--s3) var(--s4); border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: var(--s4); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--green-text); margin-bottom: var(--s3); }
.dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; }
.muted { color: var(--grey); }
.tag-ex { display: inline-block; padding: 2px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--grey); }
.dark .tag-ex { border-color: var(--on-dark-line); color: var(--on-dark); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); font: 600 16px/1.2 var(--font); border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--lime); color: var(--graphite); }
.btn-primary:hover { border-color: var(--graphite); text-decoration: none; }
.dark .btn-primary:hover, .hero .btn-primary:hover, .site-header .btn-primary:hover { border-color: var(--white); }
.btn-quiet { background: transparent; color: var(--graphite); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--graphite); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--on-dark-line); }
.btn-ghost:hover { border-color: var(--white); text-decoration: none; }
.btn[disabled] { opacity: .65; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.link-arrow { font-weight: 600; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); border-bottom: 1px solid var(--on-dark-line); }
.site-header .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: var(--header-h); }
.brand { flex: none; display: inline-flex; padding: var(--s2) 0; }
.brand img { width: 132px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav > ul { display: flex; align-items: center; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a, .sub-toggle { color: var(--white); font: 600 15px var(--font); text-decoration: none; white-space: nowrap; padding: var(--s2) 0; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"], .sub-toggle:hover, .sub-toggle[data-current="true"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.submenu { display: none; list-style: none; margin: 0; padding: var(--s2); position: absolute; top: calc(100% + 14px); left: -16px; width: 320px; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(31, 41, 55, .16); }
.submenu.open { display: grid; }
.submenu a { display: grid; gap: 2px; padding: var(--s3); border-radius: var(--r-sm); color: var(--graphite); text-decoration: none; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--surface); }
.submenu strong { font-weight: 600; font-size: 15px; }
.submenu span { font-size: 13px; color: var(--grey); }
.submenu .sub-all { margin-top: var(--s1); padding-top: var(--s1); border-top: 1px solid var(--line); }
.submenu .sub-all a { font-size: 14px; font-weight: 600; color: var(--green-text); }
.menu-toggle { display: none; min-height: 44px; padding: 0 var(--s4); border: 2px solid var(--on-dark-line); border-radius: var(--r); background: transparent; color: var(--white); font: 600 15px var(--font); cursor: pointer; }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { gap: var(--s3); }
  #menu { display: none; }
  #menu.open { display: grid; gap: 0; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; background: var(--graphite); border-bottom: 1px solid var(--on-dark-line); padding: var(--s3) var(--gutter) var(--s5); }
  #menu.open > li > a, #menu.open .sub-toggle { display: block; padding: var(--s3) 0; font-size: 17px; }
  #menu.open .sub-toggle::after { display: none; }
  #menu.open .submenu { display: grid; position: static; width: auto; margin: 0 0 var(--s3); padding: 0 0 0 var(--s4); background: transparent; border: 0; border-left: 2px solid var(--on-dark-line); border-radius: 0; box-shadow: none; }
  #menu.open .submenu a { color: var(--white); padding: var(--s2) 0; }
  #menu.open .submenu span { color: var(--on-dark); }
  #menu.open .submenu .sub-all { border-top-color: var(--on-dark-line); }
  #menu.open .submenu .sub-all a { color: var(--lime); }
}
@media (max-width: 380px) { .brand img { width: 120px; } .nav .btn { padding: 0 var(--s3); } }

/* ---------- Abertura ---------- */
.hero { position: relative; overflow: hidden; background: var(--graphite); color: var(--white); padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px); }
.hero-shape { position: absolute; top: 0; right: 0; width: min(28vw, 360px); pointer-events: none; user-select: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.7vw, 3.2rem); }
.hero h1 .line { display: block; }
.hero .lead { margin-top: var(--s4); color: var(--on-dark); max-width: 54ch; }
.hero .who { margin-top: var(--s4); max-width: 58ch; font-size: 15.5px; color: var(--on-dark); }
.hero .who strong { color: var(--white); font-weight: 600; }
.hero .actions { margin-top: var(--s5); }
.hero-points { list-style: none; padding: 0; margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 14.5px; color: var(--on-dark); }
.hero-points li { display: flex; gap: var(--s2); align-items: baseline; }
.hero-points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); transform: translateY(-1px); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .container { grid-template-columns: minmax(0, 1fr); }
.page-hero.with-app .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero.with-app h1 { max-width: 18ch; }
.page-hero .label-line { display: inline-block; font-size: 14px; font-weight: 500; color: var(--lime); margin-bottom: var(--s3); }

/* Cartão de exemplo na abertura */
.example-card .tag-ex { justify-self: start; }
.example-card { background: var(--white); color: var(--graphite); border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s4); }
.example-card h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.example-card .row { display: grid; gap: var(--s1); padding-top: var(--s3); border-top: 1px solid var(--line); }
.example-card .row-label { font-size: 13px; font-weight: 600; color: var(--grey); }
.example-card .row-label.ok { color: var(--green-text); }
.example-card p { font-size: 15px; }
.example-card .link-arrow { font-size: 15px; }

/* ---------- Secções ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.surface { background: var(--surface); }
.dark { background: var(--graphite); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { margin-top: var(--s3); font-size: 1.08rem; color: var(--grey); }
.dark .section-head p { color: var(--on-dark); }

/* Situações (problema → o que fazemos) */
.situations { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.situation { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto; gap: var(--s5); align-items: start; padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.situation .problem { font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.situation .answer { color: var(--grey); }
.situation .comp-link { white-space: nowrap; font-weight: 600; }

/* Como trabalhamos */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: var(--lime); font-weight: 600; font-size: 15px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--grey); font-size: 15.5px; }
.step .gets { margin-top: var(--s1); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--graphite); font-size: 15px; }
.step .gets b { display: block; font-size: 13px; font-weight: 600; color: var(--green-text); margin-bottom: 2px; }
.levels { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s6); align-items: start; }
.levels h3 { font-size: 1.3rem; }
.levels p { margin-top: var(--s3); color: var(--grey); }
.level-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.level-row li { border-top: 3px solid var(--graphite); padding-top: var(--s3); }
.level-row li:nth-child(2) { border-top-color: var(--green-text); }
.level-row li:nth-child(3) { border-top-color: var(--lime); }
.level-row strong { display: block; font-weight: 600; }
.level-row span { display: block; margin-top: var(--s1); font-size: 14.5px; color: var(--grey); }

/* Plataforma e sistema operativo */
.platform { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.platform > div { border: 1px solid var(--on-dark-line); border-radius: var(--r); padding: var(--s5); }
.platform h3 { font-size: 1.1rem; }
.platform p { margin-top: var(--s2); color: var(--on-dark); font-size: 15.5px; }
.components { list-style: none; padding: 0; margin-top: var(--s6); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
.component { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) var(--s4); background: var(--white); color: var(--graphite); border: 1px solid var(--line); border-radius: var(--r); }
.component:hover { border-color: var(--graphite); }
.component .icon { width: 36px; height: 36px; margin-bottom: var(--s2); }
.component h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.component h3 a { color: inherit; text-decoration: none; }
.component h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.component:has(a:focus-visible) { outline: 3px solid var(--lime); outline-offset: 3px; }
.component h3 a:focus-visible { outline: none; }
.verb { align-self: flex-start; padding: 1px 10px; border-radius: 999px; background: rgba(132, 230, 0, .2); font-size: 13px; font-weight: 600; }
.component p { font-size: 14.5px; color: var(--grey); }
.component .more { margin-top: auto; padding-top: var(--s2); font-size: 14px; font-weight: 600; color: var(--green-text); }
.combos { margin-top: var(--s6); display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s5); align-items: start; }
.combos .combo { border-left: 2px solid var(--lime); padding-left: var(--s4); }
.combos .combo strong { display: block; font-weight: 600; }
.combos .combo span { display: block; font-size: 14.5px; color: var(--on-dark); margin-top: 2px; }
.combos-head h3 { font-size: 1.05rem; }
.combos-head p { margin-top: var(--s2); }

/* Apps: custos */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.split .body p + p { margin-top: var(--s3); }
.cost-list { list-style: none; padding: 0; display: grid; gap: var(--s3); margin-top: var(--s4); }
.cost-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); }
.cost-list li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border-radius: 3px; background: var(--lime); }
.cost-list li.not::before { background: transparent; border: 2px solid var(--grey); }
.note { margin-top: var(--s4); padding: var(--s4); background: var(--surface); border-radius: var(--r-sm); font-size: 15px; }

/* ---------- Páginas de componente ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.fact { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); background: var(--white); }
.fact h3 { font-size: 1.1rem; }
.fact ul { margin-top: var(--s3); padding-left: 1.1em; display: grid; gap: var(--s2); font-size: 15.5px; }
.fact.limits { background: var(--surface); }
.examples { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.examples li { padding: var(--s4); border-left: 3px solid var(--lime); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15.5px; }
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); counter-reset: f; }
.flow li { counter-increment: f; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: var(--s2); border-radius: 50%; background: var(--graphite); color: var(--lime); font-size: 13px; font-weight: 600; }
.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; padding: var(--s6); border-radius: var(--r); background: var(--surface); }
.next h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.next p { margin-top: var(--s2); color: var(--grey); }
.others { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.others a { font-weight: 600; }
.others span { color: var(--grey); font-size: 14.5px; }

/* ---------- Demonstração ---------- */
.demo { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.demo-pause { min-height: 36px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font: 500 14px var(--font); color: var(--graphite); cursor: pointer; }
.demo-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.demo-steps { list-style: none; padding: var(--s4); margin: 0; display: grid; gap: var(--s2); align-content: start; border-right: 1px solid var(--line); }
.demo-steps button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); align-items: start; text-align: left; padding: var(--s3); border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; font: 400 15px/1.45 var(--font); color: var(--graphite); cursor: pointer; }
.demo-steps button:hover { border-color: var(--line); }
.demo-steps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; }
.demo-steps button[aria-current="step"] { background: var(--surface); border-color: var(--line); font-weight: 600; }
.demo-steps button[aria-current="step"] .n { background: var(--lime); border-color: var(--lime); }
.demo-panels { padding: var(--s5); background: var(--surface); display: grid; gap: var(--s4); align-content: start; }
.demo:not(.ready) .demo-steps { display: none; }
.demo:not(.ready) .demo-body { grid-template-columns: 1fr; }
.demo-panel { display: grid; gap: var(--s3); }
.demo-panel h3 { font-size: 1rem; }
.mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s4); font-size: 14.5px; display: grid; gap: var(--s2); }
.mock .meta { font-size: 13px; color: var(--grey); }
.mock table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mock td { padding: 6px 0; border-top: 1px solid var(--line); }
.mock td + td { text-align: right; padding-left: var(--s3); }
.mock .total td { font-weight: 600; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; }
.pill.ok { border-color: var(--green-text); color: var(--green-text); }
.pill.go { background: var(--lime); border-color: var(--lime); }
.mock-actions { display: flex; gap: var(--s2); justify-content: flex-end; }
.mock-actions span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; }
.mock-actions .approve { background: var(--lime); border-color: var(--lime); font-weight: 600; box-shadow: 0 0 0 3px rgba(132, 230, 0, .35); }
.mock .done { color: var(--green-text); font-weight: 600; }
.mock ol { padding-left: 1.2em; display: grid; gap: var(--s1); }
.demo-status { font-size: 13px; color: var(--grey); }

/* ---------- WISOUT ---------- */
.wisout-logo { width: 140px; margin-bottom: var(--s5); }
.stack-list { list-style: none; padding: 0; margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; }
.contact-shape { position: absolute; right: 0; bottom: 0; width: min(36vw, 460px); pointer-events: none; user-select: none; }
.contact .container { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact .intro p { margin-top: var(--s4); color: var(--on-dark); }
.contact .intro .actions { margin-top: var(--s5); }
.contact-card { background: var(--white); color: var(--graphite); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.contact-card h3 { font-size: 1.2rem; margin-bottom: var(--s4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
.field { display: grid; gap: 6px; align-content: start; }
.field.full, .form-grid .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.optional { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 16px/1.4 var(--font); color: var(--graphite); background: var(--white); border: 1px solid var(--grey); border-radius: var(--r-sm); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; border-color: var(--graphite); }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.field-error { font-size: 14px; color: var(--error); font-weight: 500; }
.form-info { grid-column: 1 / -1; font-size: 13.5px; color: var(--grey); }
.form-error { grid-column: 1 / -1; padding: var(--s3) var(--s4); border: 2px solid var(--error); border-radius: var(--r-sm); color: var(--error); font-weight: 500; font-size: 15px; }
.form-actions { grid-column: 1 / -1; }
.form-done { display: grid; gap: var(--s3); }
.form-done h3 { font-size: 1.3rem; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

/* ---------- Diagnóstico ---------- */
.diag-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 16px); }
.diag-box h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.diag-box h2:focus { outline: none; }
.diag-box legend { padding: 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--grey); }
.track { height: 6px; margin: var(--s3) 0 var(--s5); background: var(--surface); border-radius: 999px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--lime); }
.hint { margin-top: var(--s2); color: var(--grey); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.choices-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: var(--s3) var(--s4); border: 1px solid var(--grey); border-radius: var(--r-sm); font-weight: 500; line-height: 1.35; }
.choice strong { font-weight: 600; }
.choice small { margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--grey); }
.choice:hover span { border-color: var(--graphite); }
.choice input:checked + span { background: rgba(132, 230, 0, .16); border: 2px solid var(--graphite); padding: calc(var(--s3) - 1px) calc(var(--s4) - 1px); }
.choice input:focus-visible + span { outline: 3px solid var(--graphite); outline-offset: 2px; }
.field.extra { margin-top: var(--s4); max-width: 480px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); margin-top: var(--s5); }
.consents { display: grid; gap: var(--s3); margin-top: var(--s4); }
.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--graphite); }
.lead-form .form-info { margin-top: var(--s4); }
.turnstile { margin-top: var(--s4); }
.error { margin-top: var(--s4); font-weight: 600; color: var(--error); }
.diag-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.notice-demo, .notice-info, .notice-ok { margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-size: 15px; }
.notice-demo { border: 1px dashed var(--grey); color: var(--grey); }
.notice-info { background: var(--surface); }
.notice-ok { background: rgba(132, 230, 0, .16); font-weight: 500; }
.notice-strong { margin-bottom: var(--s4); padding: var(--s4); background: var(--lime); border-radius: var(--r-sm); font-weight: 600; }
.diag-result h2 { margin-top: var(--s1); }
.part-result { margin-top: var(--s6); padding-top: var(--s6); border-top: 2px solid var(--graphite); }
.part-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4); }
.part-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: var(--s1); }
.level-wrap { display: grid; gap: 6px; justify-items: end; }
.level-bar { display: flex; gap: 6px; }
.level-bar span { width: 40px; height: 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.level-bar span.on { background: var(--lime); border-color: var(--lime); }
.level-pts { font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.lead-dark { margin-top: var(--s4); font-size: 1.08rem; max-width: 64ch; }
.part-result h4 { margin: var(--s5) 0 var(--s3); font-size: 1rem; font-weight: 600; }
.prio-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.prio-cards li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s4); background: var(--surface); border-radius: var(--r-sm); }
.node-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-size: 13px; font-weight: 600; }
.prio-cards strong { display: block; font-size: 15px; line-height: 1.35; }
.prio-cards p { margin-top: 4px; font-size: 14px; color: var(--grey); }
.first-step { margin-top: var(--s4); padding: var(--s4) var(--s5); border-left: 4px solid var(--lime); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.small-cap { font-size: 13px; font-weight: 600; color: var(--green-text); }
.first-step p { margin-top: 4px; font-size: 1.05rem; font-weight: 600; }
.explore { margin-top: var(--s4); font-size: 15px; }
.apps-block, .comp-block, .closing { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.apps-block h3, .comp-block h3 { font-size: 1.25rem; margin-bottom: var(--s3); }
.comp-list { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: var(--s3); }
.comp-list li { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); }
.tagline { font-size: 14px; color: var(--grey); }
.closing-line { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: var(--s2); }
.slogan-dark { margin-top: var(--s5); font-weight: 600; }

/* ---------- Páginas legais e 404 ---------- */
.legal .container { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal-meta { margin-top: var(--s3); color: var(--grey); font-size: 15px; }
.legal h2 { margin-top: var(--s7); font-size: 1.45rem; }
.legal h3 { margin-top: var(--s5); font-size: 1.1rem; }
.legal p, .legal ul { margin-top: var(--s3); }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: 4px; }
.table-wrap { overflow-x: auto; margin-top: var(--s4); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s3); border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--surface); }
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.notfound p { margin-top: var(--s4); font-size: 1.1rem; color: var(--grey); }
.notfound .actions { margin-top: var(--s5); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark); border-top: 1px solid var(--on-dark-line); padding-block: var(--s7); font-size: 15px; }
.site-footer .container { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5) var(--s7); align-items: start; }
.footer-brand { display: grid; gap: var(--s3); }
.footer-brand img { width: 120px; }
.slogan { font-weight: 600; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: flex-end; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.footer-legal { grid-column: 1 / -1; padding-top: var(--s4); border-top: 1px solid var(--on-dark-line); font-size: 13.5px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .components { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .combos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .combos-head { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero .container, .contact .container, .split, .levels { grid-template-columns: minmax(0, 1fr); }
  .steps, .platform, .facts { grid-template-columns: minmax(0, 1fr); }
  .situation { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .demo-steps { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next { grid-template-columns: minmax(0, 1fr); }
  .prio-cards { grid-template-columns: minmax(0, 1fr); }
  .site-footer .container { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero .lead { font-size: 1rem; }
  .hero .who { font-size: 15px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero h1 .line { display: inline; }
  .hero-shape { width: 120px; opacity: .9; }
  .components, .combos, .level-row, .form-grid, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-steps { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .level-wrap { justify-items: start; }
  .contact-shape { width: 60vw; }
  .contact .container { padding-bottom: 20vw; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Reserva o espaço do diagnóstico antes de o JavaScript o preencher (evita deslocar o resto da página). */
#diag { min-height: 520px; }
@media (max-width: 640px) { #diag { min-height: 640px; } }

/* ---------- Ecrãs da plataforma (abertura das páginas dos componentes) ---------- */
.app { position: relative; z-index: 1; margin: 0; background: var(--white); color: var(--graphite); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); font-size: 13.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px var(--s4); background: #111827; color: var(--white); border-bottom: 1px solid var(--on-dark-line); }
.app-name { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 500; font-size: 13px; letter-spacing: .01em; }
.app-name img { width: 18px; height: 18px; }
.app-name b { font-weight: 700; }
.app-user { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--graphite); font-size: 11px; font-weight: 700; }
.app-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 300px; }
.app-nav { list-style: none; margin: 0; padding: var(--s3) var(--s2); background: var(--surface); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.app-nav li { padding: 7px 10px; border-radius: 8px; color: var(--grey); font-size: 13px; }
.app-nav li.on { background: var(--white); color: var(--graphite); font-weight: 600; box-shadow: inset 3px 0 0 var(--lime); }
.app-main { padding: var(--s4); display: grid; align-content: start; gap: var(--s3); min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.app-head strong { font-size: 15px; }
.app-meta { color: var(--grey); font-size: 12.5px; }
.app-label { font-size: 12px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
.st { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; white-space: nowrap; }
.st.ok { border-color: transparent; background: rgba(132, 230, 0, .22); color: var(--green-text); }
.st.wait { border-color: var(--graphite); background: var(--graphite); color: var(--white); }
.app-btn { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.app-btn.go { background: var(--lime); border-color: var(--lime); }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; }
.app-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a s" "m s"; align-items: center; column-gap: var(--s3); padding: 9px 0; border-top: 1px solid var(--line); }
.app-list li > :first-child { grid-area: a; font-weight: 600; }
.app-list li .app-meta { grid-area: m; }
.app-list li .st { grid-area: s; }
.app-list.compact { counter-reset: m; }
.app-list.compact li { grid-template-areas: "a s"; padding: 7px 0; }
.app-list.compact li > :first-child { font-weight: 500; }
.flow-pair i { font-style: normal; color: var(--green-text); padding: 0 2px; }
.app-note { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px var(--s3); border-radius: 10px; background: var(--surface); border-left: 3px solid var(--lime); font-size: 12.5px; }
.app-search { padding: 10px var(--s3); border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; }
.app-search::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border: 2px solid var(--grey); border-radius: 50%; vertical-align: -1px; }
.app-answer { display: grid; gap: var(--s2); padding: var(--s3); background: var(--surface); border-radius: 10px; }
.app-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.app-sources li { padding: 3px 9px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); font-size: 12px; }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.app-steps li { padding-top: 8px; border-top: 4px solid var(--line); font-size: 11.5px; color: var(--grey); }
.app-steps li.done { border-top-color: var(--lime); color: var(--graphite); }
.app-steps li.now { border-top-color: var(--graphite); color: var(--graphite); font-weight: 600; }
.app-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.app-table td { padding: 8px 6px 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.app-table td:last-child { text-align: right; padding-right: 0; }
.app-filters { display: flex; gap: 6px; }
.app-filters span { padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--grey); border: 1px solid var(--line); }
.app-filters span.on { color: var(--graphite); border-color: var(--graphite); font-weight: 600; }
.app-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: var(--s3); font-size: 12.5px; }
.app-bars .bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.app-bars .bar b { display: block; height: 100%; background: var(--lime); border-radius: 999px; }
@media (max-width: 960px) {
  .page-hero.with-app .container { grid-template-columns: minmax(0, 1fr); }
  .page-hero.with-app .app { max-width: 640px; }
}
@media (max-width: 560px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-nav { display: none; }
  .app-table td:nth-child(3) { display: none; }
  .app-bars li { grid-template-columns: 112px minmax(0, 1fr); }
}

/* Ícones dos componentes no submenu e nas situações */
.submenu li:not(.sub-all) a { grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--s3); align-items: center; }
.submenu li:not(.sub-all) a img { grid-row: span 2; width: 28px; height: 28px; }
#menu.open .submenu li:not(.sub-all) a img { filter: brightness(0) invert(1); }
.situation .comp-link { display: inline-flex; align-items: center; gap: var(--s2); }
.situation .comp-link img { width: 28px; height: 28px; flex: none; }
