/* Landing pública do LegiSentry. Autónoma: tokens copiados da maqueta (sem tokens da app).
   Fontes locais, sem pedidos a terceiros. Medidas das secções em rem (raiz 18px); a janela
   «O produto» é um ecrã de 1280×760 em px, escalado por transform (landing.js). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/landing/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/landing/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

/* Cor só com significado: área (--a-*), tema (--cat-*), estado (vermelho só para erro).
   Um azul de acção (--color-accent); sombras em camadas tingidas de azul; bordas «hairline» (--border-subtle). */
:root {
  /* papéis da app, tema claro */
  --surface-page: #f8f9fb;          /* canvas «Cloud» */
  --surface-card: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f0f3f8;        /* «pebble»: chips, bolha do utilizador, hover */
  --border-default: #d4e0ed;        /* a borda de todos os cartões */
  --border-strong: #a6bbd1;
  --border-subtle: #e4ecf5;
  --text-primary: #0b3558;          /* navy */
  --text-body: #1c456b;
  --text-muted: #476788;            /* slate, 5,9:1 sobre branco */
  --text-subtle: #56728f;           /* 4,5:1 sobre pebble */
  --text-on-inverse: #ffffff;
  --color-accent: #0a66f5;          /* o azul de acção, único */
  --color-accent-hover: #0052d1;
  --color-accent-strong: #004eba;   /* «cobalt»: texto azul sobre pebble */
  --color-accent-subtle: #eaf1fe;
  --color-accent-on-subtle: #004eba;
  --nav-active-bg: #eaf1fe;
  --nav-active-text: #004eba;
  --nav-active-icon: #0a66f5;
  --nav-hover-bg: #f0f3f8;
  --status-warning-text: #8a4b0f;
  --status-warning-bg: #fbefe1;
  --status-error-text: #c42b3c;
  --status-error-bg: #fcecee;
  --status-ok-text: #127a52;
  --status-ok-bg: #e5f4ed;
  /* rampa sequencial (calendários, intensidades): azul de acção */
  --seq-1: #e3edfd; --seq-2: #b9d1fb; --seq-3: #6ea2f8; --seq-4: #0a66f5; --seq-5: #0b3fa0;
  --seq-1-letra: #0b3558; --seq-2-letra: #0b3558; --seq-3-letra: #0b3558; --seq-4-letra: #ffffff; --seq-5-letra: #ffffff;
  --veu: rgb(11 53 88 / .32);
  /* sombras: três camadas tingidas de azul (Calendly) */
  --sombra-sm: 0 1px 2px rgb(71 103 136 / .06), 0 4px 12px rgb(71 103 136 / .05);
  --sombra: 0 4px 5px rgb(71 103 136 / .04), 0 8px 15px rgb(71 103 136 / .03), 0 15px 30px rgb(71 103 136 / .06);
  --sombra-cartao: 0 4px 5px rgb(71 103 136 / .04), 0 8px 15px rgb(71 103 136 / .03), 0 30px 50px rgb(71 103 136 / .08);
  --sombra-folha: 0 -8px 24px rgb(11 53 88 / .14);
  /* o anel da caixa de pergunta e as manchas atrás das maquetas da landing */
  --anel-1: #e55cff; --anel-2: #0099ff; --mancha-op: .5;

  /* temas (8) e áreas — nunca vermelho, âmbar nem verde de estado */
  --cat-0: #7a8fa8; --cat-1: #0a66f5; --cat-2: #5a4fd8; --cat-3: #14845c; --cat-4: #cc4482; --cat-5: #0a7f93; --cat-6: #6a9416;
  --a-dr: #0a66f5; --a-ar: #a83cbe; --a-base: #0a7f93; --a-saude: #14845c; --a-prazos: #5a4fd8; --a-radar: #3f5ea8; --a-mix: #476788;
  --a-manha: #c26a12; --a-codigos: #3f5ea8; --a-municipios: #b0532c; --a-bte: #5f7f12;

  /* calendário do DR: cinco degraus na cor da área */
  --cal-1: color-mix(in srgb, var(--a-dr) 10%, var(--surface-card)); --cal-2: color-mix(in srgb, var(--a-dr) 26%, var(--surface-card));
  --cal-3: color-mix(in srgb, var(--a-dr) 48%, var(--surface-card)); --cal-4: var(--a-dr); --cal-5: color-mix(in srgb, var(--a-dr) 62%, #001a40);
  --cal-1-letra: var(--text-primary); --cal-2-letra: var(--text-primary); --cal-3-letra: var(--text-primary); --cal-4-letra: #ffffff; --cal-5-letra: #ffffff;

  /* nomes que os gráficos do antigo usam, ligados aos papéis */
  --ink: var(--text-primary);
  --muted: var(--text-muted);
  --card: var(--surface-card);
  --sunk: var(--surface-sunken);
  --line: var(--border-default);
  --line-strong: var(--border-strong);
  --bar-soft: #c3d3e5;
  --danger: var(--status-error-text);
  --warn: var(--status-warning-text);
  --ok: var(--status-ok-text);
  --a: var(--a-mix);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* raios: 8px nos botões e campos, 12px nos cartões pequenos, 16px nos painéis, pílula nos chips */
  --radius-sm: .25rem; --radius-md: .45rem; --radius-lg: .65rem; --radius-xl: .9rem; --radius-pill: 999px;
  --nav-largura: 248px;
  --nav-fechada: 68px;
  --cab-alt: 4rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-page: #071628; --surface-card: #0d2137; --surface-raised: #112840; --surface-sunken: #132b46;
    --border-default: #1f3c5b; --border-strong: #2f5276; --border-subtle: #18324e;
    --text-primary: #e6eef8; --text-body: #c9d8e8; --text-muted: #9db4cc; --text-subtle: #8aa3bd;
    --color-accent: #3b8bff; --color-accent-hover: #5f9fff; --color-accent-strong: #9cc2ff;
    --color-accent-subtle: #12305a; --color-accent-on-subtle: #9cc2ff;
    --nav-active-bg: #12305a; --nav-active-text: #cfe0ff; --nav-active-icon: #5f9fff; --nav-hover-bg: #132b46;
    --status-warning-text: #f2b878; --status-warning-bg: #3a2a16; --status-error-text: #ff6f7d; --status-error-bg: #3d1820;
    --status-ok-text: #47cf96; --status-ok-bg: #0f3a2c;
    --seq-1: #123056; --seq-2: #17427a; --seq-3: #2763b8; --seq-4: #4a94ff; --seq-5: #a9cbff;
    --seq-1-letra: #ffffff; --seq-2-letra: #ffffff; --seq-3-letra: #ffffff; --seq-4-letra: #04152b; --seq-5-letra: #04152b;
    --veu: rgb(1 8 18 / .62);
    --sombra-sm: 0 1px 2px rgb(1 10 24 / .4), 0 4px 12px rgb(1 10 24 / .3);
    --sombra: 0 4px 5px rgb(1 10 24 / .3), 0 15px 30px rgb(1 10 24 / .35);
    --sombra-cartao: 0 4px 5px rgb(1 10 24 / .3), 0 8px 15px rgb(1 10 24 / .25), 0 30px 50px rgb(1 10 24 / .45);
    --sombra-folha: 0 -8px 24px rgb(0 0 0 / .5);
    --mancha-op: .26;
    --cat-0: #8ca1b9; --cat-1: #4a94ff; --cat-2: #948bff; --cat-3: #44c891; --cat-4: #f07dad; --cat-5: #34b9cb; --cat-6: #a2cb47;
    --a-dr: #4a94ff; --a-ar: #d67ae6; --a-base: #34b9cb; --a-saude: #44c891; --a-prazos: #948bff; --a-radar: #8ea8ec; --a-mix: #9db4cc;
    --a-manha: #f0a14a; --a-codigos: #8ea8ec; --a-municipios: #ee8d63; --a-bte: #a9c94a;
    --cal-1: color-mix(in srgb, var(--a-dr) 14%, var(--surface-card)); --cal-2: color-mix(in srgb, var(--a-dr) 30%, var(--surface-card));
    --cal-3: color-mix(in srgb, var(--a-dr) 52%, var(--surface-card)); --cal-4: var(--a-dr); --cal-5: color-mix(in srgb, var(--a-dr) 60%, #ffffff);
    --cal-1-letra: #ffffff; --cal-2-letra: #ffffff; --cal-3-letra: #ffffff; --cal-4-letra: #04152b; --cal-5-letra: #04152b;
    --bar-soft: #2f5276;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface-page: #071628; --surface-card: #0d2137; --surface-raised: #112840; --surface-sunken: #132b46;
  --border-default: #1f3c5b; --border-strong: #2f5276; --border-subtle: #18324e;
  --text-primary: #e6eef8; --text-body: #c9d8e8; --text-muted: #9db4cc; --text-subtle: #8aa3bd;
  --color-accent: #3b8bff; --color-accent-hover: #5f9fff; --color-accent-strong: #9cc2ff;
  --color-accent-subtle: #12305a; --color-accent-on-subtle: #9cc2ff;
  --nav-active-bg: #12305a; --nav-active-text: #cfe0ff; --nav-active-icon: #5f9fff; --nav-hover-bg: #132b46;
  --status-warning-text: #f2b878; --status-warning-bg: #3a2a16; --status-error-text: #ff6f7d; --status-error-bg: #3d1820;
  --status-ok-text: #47cf96; --status-ok-bg: #0f3a2c;
  --seq-1: #123056; --seq-2: #17427a; --seq-3: #2763b8; --seq-4: #4a94ff; --seq-5: #a9cbff;
  --seq-1-letra: #ffffff; --seq-2-letra: #ffffff; --seq-3-letra: #ffffff; --seq-4-letra: #04152b; --seq-5-letra: #04152b;
  --veu: rgb(1 8 18 / .62);
  --sombra-sm: 0 1px 2px rgb(1 10 24 / .4), 0 4px 12px rgb(1 10 24 / .3);
  --sombra: 0 4px 5px rgb(1 10 24 / .3), 0 15px 30px rgb(1 10 24 / .35);
  --sombra-cartao: 0 4px 5px rgb(1 10 24 / .3), 0 8px 15px rgb(1 10 24 / .25), 0 30px 50px rgb(1 10 24 / .45);
  --sombra-folha: 0 -8px 24px rgb(0 0 0 / .5);
  --mancha-op: .26;
  --cat-0: #8ca1b9; --cat-1: #4a94ff; --cat-2: #948bff; --cat-3: #44c891; --cat-4: #f07dad; --cat-5: #34b9cb; --cat-6: #a2cb47;
  --a-dr: #4a94ff; --a-ar: #d67ae6; --a-base: #34b9cb; --a-saude: #44c891; --a-prazos: #948bff; --a-radar: #8ea8ec; --a-mix: #9db4cc;
  --a-manha: #f0a14a; --a-codigos: #8ea8ec; --a-municipios: #ee8d63; --a-bte: #a9c94a;
  --cal-1: color-mix(in srgb, var(--a-dr) 14%, var(--surface-card)); --cal-2: color-mix(in srgb, var(--a-dr) 30%, var(--surface-card));
  --cal-3: color-mix(in srgb, var(--a-dr) 52%, var(--surface-card)); --cal-4: var(--a-dr); --cal-5: color-mix(in srgb, var(--a-dr) 60%, #ffffff);
  --cal-1-letra: #ffffff; --cal-2-letra: #ffffff; --cal-3-letra: #ffffff; --cal-4-letra: #04152b; --cal-5-letra: #04152b;
  --bar-soft: #2f5276;
  color-scheme: dark;
}

html { font-size: 18px; }
@media (width >= 120rem) {
  html { font-size: calc(18px * 1.125); }
  :root { --nav-largura: 279px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--surface-page); color: var(--text-primary);
  font-family: var(--font-sans); font-size: .875rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { flex: none; display: block; }
.mono { font-family: var(--font-mono); font-size: .92em; }

.ld {
  --ld-painel: var(--text-primary); --ld-sobre-painel: var(--text-on-inverse);
  --ld-win: color-mix(in srgb, var(--text-primary) 78%, black);
  --ld-win-fg: var(--text-on-inverse); --ld-win-fg2: color-mix(in srgb, var(--text-on-inverse) 64%, transparent);
  min-height: 100dvh; background: var(--surface-page); color: var(--text-primary); overflow-x: clip;
  font-size: .8889rem; line-height: 1.5;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ld { --ld-painel: var(--surface-raised); --ld-win: color-mix(in srgb, var(--surface-page) 55%, black); } }
:root[data-theme="dark"] .ld { --ld-painel: var(--surface-raised); --ld-win: color-mix(in srgb, var(--surface-page) 55%, black); }
.ld svg.ic { stroke-width: 1.75; }
.ld :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: .3333rem; }
.ld-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* botões */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4444rem; border: 0; border-radius: var(--radius-md); font-weight: 600; font-size: .8889rem; line-height: 1.2; padding: .6667rem 1.1111rem; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, border-color .15s; }
.ld-btn-lg { font-size: 1rem; padding: .8333rem 1.3333rem; }
.ld-btn-azul { background: var(--color-accent); color: var(--text-on-inverse); box-shadow: var(--sombra); }
.ld-btn-azul:hover { background: var(--color-accent-hover); }
.ld-btn-out { background: var(--surface-card); color: var(--text-primary); border: 1px solid var(--border-default); }
.ld-btn-out:hover { border-color: var(--border-strong); }
.ld-btn-ghost { background: transparent; color: var(--text-primary); padding: .5556rem .6667rem; font-size: .8333rem; }
.ld-btn-ghost:hover { text-decoration: underline; text-underline-offset: .2222rem; }
.ld-btn-branco { background: transparent; color: var(--ld-sobre-painel); border: 1px solid color-mix(in srgb, var(--ld-sobre-painel) 55%, transparent); border-radius: .2222rem; }
.ld-btn-branco:hover { background: color-mix(in srgb, var(--ld-sobre-painel) 8%, transparent); }
.ld-badge { display: inline-flex; align-items: center; gap: .3333rem; background: var(--surface-sunken); color: var(--color-accent-strong); font-size: .6667rem; font-weight: 500; padding: .2222rem .5556rem; border-radius: var(--radius-pill); line-height: 1.4; }

/* marca */
.ld-brand { display: inline-flex; align-items: center; gap: .5556rem; text-decoration: none; color: var(--text-primary); }
.ld-brand .ld-olho { height: 1rem; width: auto; color: var(--color-accent); }
.ld-pal { font-weight: 800; font-size: 1.0556rem; letter-spacing: -.01em; }
.ld-pal span { color: var(--color-accent); }

/* navegação de topo */
.ld-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface-page) 88%, transparent); backdrop-filter: blur(.5556rem); -webkit-backdrop-filter: blur(.5556rem); border-bottom: 1px solid transparent; }
.ld-nav.ld-sc { border-bottom-color: var(--border-default); }
.ld-nav .ld-wrap { height: 3.5556rem; display: flex; align-items: center; gap: 1.3333rem; }
.ld-nav nav { display: flex; gap: .2222rem; margin: 0 auto; }
.ld-nav nav a { text-decoration: none; font-weight: 600; font-size: .8333rem; padding: .4444rem .6667rem; border-radius: var(--radius-md); color: var(--text-primary); }
.ld-nav nav a:hover { color: var(--color-accent); }
.ld-nav .ld-r { display: flex; gap: .4444rem; align-items: center; }
.ld-nav .ld-btn-azul { padding: .5556rem 1rem; font-size: .8333rem; box-shadow: none; }

/* hero */
.ld-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 3.5556rem; align-items: center; padding-top: 4rem; padding-bottom: 4.8889rem; }
.ld-hero h1 { font-size: clamp(2.3333rem, 5.2vw, 3.7778rem); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; margin: 1.1111rem 0 1.1111rem; text-wrap: balance; }
/* coluna do texto ancorada ao topo: o título fica à mesma altura da maqueta, qualquer que seja a altura da demo */
@media (min-width: 961px) { .ld-hero > div:first-child { align-self: start; margin-top: .8333rem; } }
.ld-hero h1 em { font-style: normal; color: var(--color-accent); }
.ld-lead { font-size: 1.1111rem; line-height: 1.5; font-weight: 500; color: var(--text-muted); margin: 0 0 1.7778rem; max-width: 34em; }
.ld-ctas { display: flex; flex-direction: column; gap: .6667rem; max-width: 20rem; }
.ld-ctas .ld-btn { width: 100%; }
.ld-nota { display: flex; gap: .4444rem; align-items: center; color: var(--text-muted); font-size: .7778rem; font-weight: 500; margin: .8889rem 0 0; }
.ld-nota svg { color: var(--color-accent); width: .8889rem; height: .8889rem; }

.ld-vis { position: relative; isolation: isolate; }
.ld-mancha { position: absolute; border-radius: 50%; filter: blur(2.3333rem); opacity: var(--mancha-op); z-index: -1; pointer-events: none; }
.ld-vis .ld-m1 { width: 16.6667rem; height: 16.6667rem; background: var(--anel-1); right: -2.2222rem; top: -2rem; }
.ld-vis .ld-m2 { width: 15.5556rem; height: 14.4444rem; background: var(--anel-2); left: -2.2222rem; bottom: -2rem; }

/* painel de conversa da demonstração */
.ld-demo { background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--sombra-cartao); border: 1px solid var(--border-default); overflow: hidden; }
.ld-demo-h { display: flex; align-items: center; gap: .5556rem; padding: .4444rem .8889rem; border-bottom: 1px solid var(--border-default); background: var(--surface-card); font-size: .75rem; min-width: 0; }
.ld-demo-h .ld-olho { height: .7222rem; width: auto; color: var(--color-accent); flex: none; }
.ld-crumbs { display: flex; gap: .3333rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.ld-crumbs b { color: var(--text-primary); font-weight: 700; }
.ld-demo-h .ld-badge { margin-left: auto; white-space: nowrap; }
.ld-demo-body { background: var(--surface-page); padding: 1rem 1rem .7778rem; display: flex; flex-direction: column; gap: .6667rem; }
.ld-demo-f { padding: .2222rem 1rem 1rem; background: var(--surface-page); }
.ld-line { display: flex; align-items: center; gap: .5556rem; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: .6667rem; padding: .3333rem .3333rem .3333rem .7778rem; box-shadow: var(--sombra-sm); }
.ld-line input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .8333rem; height: 2rem; }
.ld-line input::placeholder { color: var(--text-muted); }
.ld-send { width: 2rem; height: 2rem; flex: none; border-radius: var(--radius-md); border: 0; background: var(--color-accent); color: var(--text-on-inverse); display: grid; place-items: center; }
.ld-send:hover { background: var(--color-accent-hover); }
.ld-follow { display: flex; flex-wrap: wrap; gap: .4444rem; padding-left: 2.3333rem; }
.ld-follow.ld-espera { visibility: hidden; }
.ld-chip { display: inline-flex; align-items: center; gap: .3889rem; text-decoration: none; border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-primary); border-radius: var(--radius-pill); padding: .3333rem .6667rem; font-size: .7222rem; font-weight: 600; }
.ld-chip svg { width: .7778rem; height: .7778rem; color: var(--color-accent); }
.ld-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* mensagens (hero e janela) */
.ld-msg-u { align-self: flex-end; max-width: 80%; background: var(--surface-sunken); color: var(--text-primary); border-radius: .8889rem .8889rem .2222rem .8889rem; padding: .5556rem .7778rem; font-weight: 600; font-size: .8333rem; }
.ld-msg-a { display: flex; gap: .5556rem; align-items: flex-start; }
.ld-av { width: 1.7778rem; height: 1.7778rem; flex: none; border-radius: 50%; border: 1px solid var(--border-default); background: var(--surface-card); display: grid; place-items: center; color: var(--color-accent); }
.ld-av .ld-olho { width: 1.2222rem; height: auto; }
.ld-ag { flex: 1; min-width: 0; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: .7778rem .8889rem; box-shadow: var(--sombra-sm); }
.ld-ag p { margin: 0 0 .5556rem; font-size: .8333rem; line-height: 1.55; color: var(--text-primary); }
.ld-ag-txt p:last-child { margin-bottom: .2222rem; }
.ld-ag-nome { font-size: .6667rem; font-weight: 600; color: var(--text-muted); margin-bottom: .3333rem; }
.ld-cit { display: inline-grid; place-items: center; min-width: 1rem; height: 1rem; padding: 0 .2222rem; margin: 0 1px; border: 0; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--color-accent-strong); font: 700 .6111rem/1 var(--font-sans); vertical-align: 1px; cursor: pointer; transition: background .25s, color .25s; }
.ld-cit.ld-lit, .ld-cit:hover, .ld-cit:focus-visible { background: var(--color-accent); color: var(--text-on-inverse); }
.ld-srcs { list-style: none; margin: .2222rem 0 0; padding: .5556rem 0 0; border-top: 1px solid var(--border-default); display: flex; flex-direction: column; gap: 2px; }
.ld-srcs li { display: flex; align-items: center; gap: .4444rem; font-size: .7222rem; color: var(--text-muted); min-width: 0; padding: .2778rem .4444rem; margin: 0 -.4444rem; border-radius: var(--radius-md); transition: background .3s; }
.ld-srcs li.ld-lit { background: color-mix(in srgb, var(--color-accent) 11%, var(--surface-card)); }
.ld-srcs li.ld-lit .ld-ref, .ld-srcs li.ld-lit .ld-n { color: var(--color-accent); }
.ld-srcs .ld-n { font-weight: 700; color: var(--color-accent-strong); width: .7778rem; text-align: right; flex: none; }
.ld-stag { font-size: .5833rem; font-weight: 700; letter-spacing: .04em; padding: 2px .3333rem; border-radius: .2222rem; color: var(--text-on-inverse); flex: none; }
.ld-stag.ld-DR { background: var(--a-dr); } .ld-stag.ld-AR { background: var(--a-ar); } .ld-stag.ld-BASE { background: var(--a-base); }
.ld-srcs .ld-ref { color: var(--text-primary); font-family: var(--font-mono); font-size: .6944rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ld-srcs .ld-d { margin-left: auto; flex: none; }
.ld-srcs li.ld-por { display: none; }
.ld-srcs:not(:has(li:not(.ld-por))) { display: none; }
@media (prefers-reduced-motion: no-preference) { .ld-srcs li.ld-chega { animation: ld-chega .45s cubic-bezier(.2,.7,.2,1) both; } }
@keyframes ld-chega { from { opacity: 0; transform: translateY(-.2778rem); } to { opacity: 1; transform: none; } }
.ld-cursor::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--color-accent); vertical-align: -.17em; animation: ld-pisca 1s steps(2) infinite; }
@keyframes ld-pisca { 50% { opacity: 0; } }

/* o anel animado da caixa de pergunta (calmo em repouso; rápido e com halo enquanto a resposta se escreve) */
@property --ld-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ld-ang2 { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ld-ring { position: relative; border-color: transparent !important; transition: box-shadow .5s ease; }
.ld-ring::before, .ld-ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor; mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0); }
.ld-ring::before { background: conic-gradient(from var(--ld-ang), var(--color-accent) 0deg, color-mix(in srgb, var(--anel-1) 80%, var(--color-accent)) 120deg, var(--anel-2) 230deg, var(--color-accent) 360deg); opacity: .85; transition: opacity .3s; }
.ld-ring::after { inset: -2px; padding: 2px; background: conic-gradient(from var(--ld-ang2), transparent 0deg, var(--anel-2) 50deg, var(--anel-1) 100deg, var(--color-accent) 150deg, transparent 210deg); opacity: 0; transition: opacity .6s ease; }
.ld-ring:focus-within::before, .ld-ring:hover::before { opacity: 1; }
.ld-ring.ld-escreve::after { opacity: 1; }
.ld-ring.ld-escreve { box-shadow: 0 0 0 .2222rem color-mix(in srgb, var(--color-accent) 9%, transparent), 0 .6667rem 2rem -.4444rem color-mix(in srgb, var(--anel-1) 50%, transparent), var(--sombra-cartao); }
@media (prefers-reduced-motion: no-preference) {
  .ld-ring::before { animation: ld-gira 9s linear infinite; }
  .ld-ring.ld-escreve::after { animation: ld-gira2 1.4s linear infinite; }
  .ld-ring.ld-st::before { animation: none; }
}
@keyframes ld-gira { to { --ld-ang: 360deg; } }
@keyframes ld-gira2 { to { --ld-ang2: 360deg; } }

/* faixa das fontes */
.ld-strip { padding-bottom: 4rem; }
.ld-strip .ld-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7778rem 2.4444rem; }
.ld-strip .ld-row > span:first-child { font-size: .7778rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 760px) { .ld-strip .ld-row > span:first-child { flex-basis: 100%; text-align: center; } }
.ld-src { display: inline-flex; align-items: center; gap: .5556rem; font-weight: 700; font-size: 1rem; color: var(--text-muted); }
.ld-src svg { width: 1.2222rem; height: 1.2222rem; }

/* secções */
.ld-sec { padding-top: 3.5556rem; padding-bottom: 3.5556rem; scroll-margin-top: 3.1111rem; }
.ld-sec-h { text-align: center; max-width: 42.2222rem; margin: 0 auto 2.6667rem; }
.ld-sec-h h2 { font-size: clamp(1.7778rem, 3.6vw, 2.7778rem); line-height: 1.2; font-weight: 700; margin: 0 0 .8889rem; text-wrap: balance; }
.ld-sec-h p { font-size: 1.1111rem; font-weight: 500; color: var(--text-muted); margin: 0; line-height: 1.4; }
.ld-cap { display: inline-block; font-size: .7222rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: .6667rem; }

/* «Porquê» */
.ld-ben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3333rem; max-width: 57.7778rem; margin: 0 auto; }
.ld-ben-c { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 1.5556rem; box-shadow: var(--sombra-sm); display: flex; flex-direction: column; gap: .5556rem; }
.ld-ben-ic { width: 2.4444rem; height: 2.4444rem; border-radius: .6667rem; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, var(--surface-card)); color: var(--c); }
.ld-ben-ic svg { width: 1.2222rem; height: 1.2222rem; }
.ld-ben-c h3 { margin: .3333rem 0 0; font-size: 1.2222rem; font-weight: 700; line-height: 1.3; }
.ld-ben-c p { margin: 0; color: var(--text-muted); font-size: .8889rem; line-height: 1.55; max-width: 46ch; }

/* passos */
.ld-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3333rem; }
.ld-passo { padding: .4444rem .4444rem 0; }
.ld-pn { width: 2.4444rem; height: 2.4444rem; border-radius: 50%; background: var(--color-accent); color: var(--text-on-inverse); display: grid; place-items: center; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; box-shadow: var(--sombra); font-variant-numeric: tabular-nums; }
.ld-passo h3 { margin: 0 0 .4444rem; font-size: 1.2222rem; font-weight: 700; line-height: 1.3; }
.ld-passo p { margin: 0; color: var(--text-muted); font-size: .8889rem; line-height: 1.55; }

/* CTA final */
.ld-final { padding-top: 1.7778rem; padding-bottom: 5.3333rem; }
.ld-painel { background: var(--ld-painel); color: var(--ld-sobre-painel); border-radius: 1.3333rem; padding: 3.5556rem 3.1111rem; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2.2222rem; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.ld-painel .ld-mancha { width: 17.7778rem; height: 17.7778rem; background: var(--anel-2); right: -4.4444rem; top: -6.6667rem; opacity: .35; }
.ld-painel h2 { font-size: clamp(1.6667rem, 3.4vw, 2.5556rem); line-height: 1.2; margin: 0 0 .6667rem; font-weight: 700; text-wrap: balance; }
.ld-painel p { margin: 0; color: color-mix(in srgb, var(--ld-sobre-painel) 76%, transparent); font-size: 1rem; font-weight: 500; }
.ld-bt { display: flex; flex-direction: column; gap: .6667rem; min-width: 13.3333rem; }

/* rodapé */
.ld-foot { background: var(--surface-page); border-top: 1px solid var(--border-default); padding-top: 2.2222rem; padding-bottom: 4rem; }
.ld-foot .ld-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.3333rem 2.2222rem; }
.ld-foot h5 { margin: 0 0 .6667rem; font-size: .6667rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: .04em; }
.ld-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4444rem; }
.ld-foot a:not(.ld-brand) { font-size: .7778rem; font-weight: 500; text-decoration: none; }
.ld-foot a:not(.ld-brand):hover { color: var(--color-accent); }
.ld-foot p { margin: .6667rem 0 0; font-size: .7778rem; color: var(--text-muted); max-width: 46em; }

/* «O produto»: a janela */
.ld-prod .ld-m1 { width: 23.3333rem; height: 21.1111rem; right: -3.3333rem; top: -2.7778rem; }
.ld-prod .ld-m2 { width: 23.3333rem; height: 20rem; left: -3.3333rem; bottom: -2.7778rem; }
.ld-win { background: var(--ld-win); border: 1px solid var(--ld-win); border-radius: 1.1111rem; padding: 0 .5556rem .5556rem; box-shadow: var(--sombra-cartao), 0 2.7778rem 5rem -2.2222rem color-mix(in srgb, var(--text-primary) 55%, transparent); }
.ld-win-bar { height: 3rem; display: flex; align-items: center; gap: .7778rem; padding: 0 .4444rem; color: var(--ld-win-fg2); min-width: 0; }
.ld-win-dots { display: flex; gap: .3889rem; flex: 1; } .ld-win-dots i { width: .6111rem; height: .6111rem; border-radius: 50%; background: color-mix(in srgb, var(--ld-win-fg) 16%, transparent); }
.ld-win-tabs { display: flex; gap: .2222rem; background: color-mix(in srgb, var(--ld-win-fg) 7%, transparent); border-radius: .6111rem; padding: .2222rem; flex: none; }
.ld-win-tabs button { padding: .3889rem .8889rem; border-radius: var(--radius-md); font-size: .7778rem; font-weight: 600; color: var(--ld-win-fg2); white-space: nowrap; transition: background .2s, color .2s; }
.ld-win-tabs button:hover { color: var(--ld-win-fg); }
.ld-win-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--ld-win-fg) 16%, transparent); color: var(--ld-win-fg); }
.ld-win-tabs button:focus-visible { outline: 2px solid var(--ld-win-fg); outline-offset: 1px; }
.ld-win-url { flex: 1; text-align: right; font: 500 .6667rem/1 var(--font-mono); color: var(--ld-win-fg2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.ld-win-url:hover { color: var(--ld-win-fg); text-decoration: underline; text-underline-offset: .1667rem; }
.ld-win-vp { position: relative; overflow: hidden; border-radius: .6667rem; background: var(--surface-page); height: 42.2222rem; cursor: pointer; }
/* @px — dentro da janela tudo é px: o ecrã de 1280×760 é escalado inteiro */
.ld-win-app { position: absolute; top: 0; left: 0; width: 1280px; height: 760px; transform-origin: 0 0; font-size: 16px; line-height: 1.5; color: var(--text-primary); }
.ld-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 760px; background: var(--surface-page); }
.ld-side { background: var(--surface-card); border-right: 1px solid var(--border-default); display: flex; flex-direction: column; min-height: 0; }
.ld-side-top { height: 60px; display: flex; align-items: center; padding: 0 18px; flex: none; }
.ld-side-top .ld-pal { font-size: 18px; }
.ld-side-nav { flex: 1; overflow: hidden; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.ld-it { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-primary); white-space: nowrap; flex: none; }
.ld-it svg { color: var(--ic, var(--text-muted)); width: 18px; height: 18px; }
.ld-it.ld-on { background: color-mix(in srgb, var(--ic, var(--color-accent)) 12%, var(--surface-card)); color: color-mix(in srgb, var(--ic, var(--color-accent)) 72%, var(--text-primary)); font-weight: 700; }
.ld-it-sep { height: 1px; background: var(--border-default); margin: 7px 10px; flex: none; }
.ld-side-foot { flex: none; border-top: 1px solid var(--border-default); padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.ld-avt { width: 36px; height: 36px; border-radius: 50%; background: var(--text-primary); color: var(--surface-page); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.ld-who { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-who small { display: block; font-weight: 500; color: var(--text-muted); font-size: 12px; }
.ld-ib { width: 36px; height: 36px; border-radius: 8px; color: var(--text-muted); display: grid; place-items: center; flex: none; }
.ld-ib-s { width: 28px; height: 28px; }
.ld-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ld-top { height: 60px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.ld-h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.ld-sub { font-size: 14px; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-left: 16px; border-left: 1px solid var(--border-default); }
.ld-time { margin-left: auto; font-size: 14px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.ld-pg { flex: 1; min-height: 0; padding: 0 24px 20px; }
.ld-num, .ld-win-app b { font-variant-numeric: tabular-nums; }

/* janela · A Manhã */
.ld-manha { height: 100%; display: flex; flex-direction: column; gap: 14px; }
.ld-estado { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; flex: none; }
.ld-est { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 50px; padding: 6px 14px; font-size: 13.5px; font-weight: 500; color: var(--text-muted); }
.ld-est b { color: var(--text-primary); font-weight: 700; }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; }
.ld-dot.ld-azul { background: var(--color-accent); }
.ld-ring0 { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); }
.ld-centro { flex: 1; min-height: 0; overflow: hidden; display: grid; }
.ld-hello { place-self: center; width: min(900px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.ld-hello h2 { margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 33px; font-weight: 700; line-height: 1.21; letter-spacing: -.01em; }
.ld-hello h2 .ld-olho { height: 22px; width: auto; color: var(--color-accent); }
.ld-aviso { display: flex; align-items: center; gap: 12px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 12px; padding: 10px 10px 10px 16px; font-size: 14.5px; color: var(--text-muted); font-weight: 500; }
.ld-aviso b { color: var(--text-primary); }
.ld-aviso > span:nth-child(2) { flex: 1; min-width: 0; }
.ld-btn-sm { padding: 7px 14px; font-size: 14px; }
.ld-ask { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 16px; box-shadow: var(--sombra-cartao); padding: 14px 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.ld-ph { color: var(--text-muted); font-size: 15px; flex: 1; }
.ld-ask .ld-ph { display: block; min-height: 26px; }
.ld-ask .ld-row { display: flex; align-items: center; gap: 6px; }
.ld-amb { border: 1px solid var(--border-default); background: var(--surface-card); border-radius: 50px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.ld-ask .ld-send, .ld-ask-l .ld-send { margin-left: auto; }
.ld-sugs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ld-sug { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-default); background: var(--surface-card); border-radius: 50px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.ld-sug svg { width: 15px; height: 15px; color: var(--color-accent); }
.ld-rodm { text-align: center; font-size: 13px; color: var(--text-muted); margin: 0; }
.ld-rodm span { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ld-cartoes { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ld-cart { border-radius: 16px; box-shadow: var(--sombra-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 1px solid color-mix(in srgb, var(--c) 26%, var(--border-default)); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--surface-card)) 0, var(--surface-card) 58%); }
.ld-ar { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--c) 82%, var(--text-primary)); }
.ld-ar i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ld-cart h3 { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-cn { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.ld-cn b { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.ld-cn span { font-size: 12.5px; line-height: 1.25; color: var(--text-muted); font-weight: 500; min-width: 0; }
.ld-comp { font-size: 12px; line-height: 1.3; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* janela · Diário da República */
.ld-drg { height: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.ld-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; }
.ld-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 16px; box-shadow: var(--sombra-sm); min-width: 0; }
.ld-palco { flex: none; display: flex; flex-direction: column; }
.ld-palco-cab { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px 12px; border-bottom: 1px solid var(--border-default); }
.ld-pt-t { flex: 1; min-width: 0; }
.ld-pt-t h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ld-tt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-area-b { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--a-dr); background: color-mix(in srgb, var(--a-dr) 10%, var(--surface-card)); padding: 3px 9px; border-radius: 50px; }
.ld-pt-t p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.ld-imp-t { color: var(--color-accent-strong); font-weight: 700; }
.ld-big { text-align: right; flex: none; }
.ld-big b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.ld-big span { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.ld-palco-corpo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 12px 20px 14px; align-items: start; }
.ld-cal-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ld-cal-h b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.ld-cal-h > span:nth-child(2) { font-size: 13px; color: var(--text-muted); font-weight: 500; flex: 1; min-width: 0; line-height: 1.25; }
.ld-cal-w, .ld-cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ld-cal-w span { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; padding-bottom: 4px; }
.ld-dia { height: 36px; border-radius: 8px; background: var(--surface-sunken); position: relative; padding: 4px 6px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.ld-dia.ld-fds { background: transparent; border: 1px solid var(--border-default); }
.ld-dia.ld-vz { background: transparent; }
.ld-dia .ld-c { position: absolute; right: 6px; bottom: 3px; font-size: 13px; font-weight: 800; }
.ld-dia.ld-act { color: var(--text-primary); }
.ld-dia.ld-l1 { background: color-mix(in srgb, var(--a-dr) 20%, var(--surface-card)); }
.ld-dia.ld-l2 { background: color-mix(in srgb, var(--a-dr) 55%, var(--surface-card)); color: var(--text-on-inverse); }
.ld-dia.ld-l3 { background: var(--a-dr); color: var(--text-on-inverse); }
.ld-dia.ld-hoje { box-shadow: inset 0 0 0 2px var(--a-dr); color: var(--a-dr); }
.ld-dia.ld-hoje::after { content: "hoje"; position: absolute; left: 6px; bottom: 3px; font-size: 10px; font-weight: 700; }
.ld-leg { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.ld-leg-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; padding: 3px 8px; border-radius: 8px; min-height: 26px; }
.ld-nm { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-ct { font-size: 12.5px; font-weight: 800; text-align: right; }
.ld-bl { display: flex; gap: 3px; justify-content: flex-end; }
.ld-bl i { height: 10px; width: 8px; border-radius: 2px; background: var(--c); }
.ld-leg-n { font-size: 11.5px; color: var(--text-muted); padding: 6px 8px 0; margin: 0; }
.ld-lista { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ld-lista-cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--border-default); }
.ld-lista-cab h3 { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ld-cnt-l { font-size: 13px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.ld-filt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-default); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.ld-filt svg, .ld-srch svg { color: var(--text-muted); }
.ld-srch { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-default); border-radius: 8px; padding: 0 10px; height: 34px; flex: 0 1 240px; }
.ld-srch .ld-ph { font-size: 13.5px; }
.ld-sq { width: 34px; height: 34px; border: 1px solid var(--border-default); border-radius: 8px; color: var(--text-muted); display: grid; place-items: center; flex: none; }
.ld-linhas { flex: 1; min-height: 0; overflow: hidden; }
.ld-ln { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 20px; border-bottom: 1px solid var(--border-default); }
.ld-selo { grid-row: 1 / 3; align-self: start; margin-top: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-on-inverse); background: var(--a-dr); border-radius: 4px; padding: 3px 7px; }
.ld-ln .ld-t { font-size: 14.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-ln .ld-d { font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ld-ln .ld-d i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.ld-m { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12.5px; color: var(--text-muted); }
.ld-ref-m { font-family: var(--font-mono); font-size: 11.5px; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.ld-tch { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-default); border-radius: 50px; padding: 1px 8px; font-weight: 600; font-size: 11.5px; color: var(--text-primary); flex: none; }
.ld-tch i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ld-chp { flex: none; border-radius: 50px; padding: 1px 8px; font-size: 11.5px; font-weight: 500; background: var(--surface-sunken); color: var(--color-accent-strong); }
.ld-chp.ld-vig { background: var(--status-ok-bg); color: var(--status-ok-text); font-weight: 600; }
.ld-chp.ld-imp { background: transparent; border: 1px solid color-mix(in srgb, var(--color-accent-strong) 35%, transparent); font-weight: 700; }
.ld-res { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ld-conts { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ld-cnt { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--sombra-sm); min-width: 0; }
.ld-cnt .ld-r { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ld-cnt .ld-v { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: inherit; font-weight: inherit; }
.ld-cnt .ld-v b { font-size: 26px; font-weight: 800; line-height: 1.2; }
.ld-cnt .ld-v span { font-size: 12px; color: var(--text-muted); font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ld-cnt.ld-on { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), var(--sombra); }
.ld-cnt.ld-on .ld-r { color: var(--color-accent); }
.ld-cv { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ld-cv-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border-default); }
.ld-cv-h > svg { color: var(--color-accent); }
.ld-cv-h b { font-size: 14.5px; font-weight: 700; flex: 1; }
.ld-nova { font-size: 13px; font-weight: 600; color: var(--color-accent); padding: 6px 8px; }
.ld-cv-b { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 16px 18px; gap: 14px; }
.ld-cv-b .ld-msg-u { font-size: 14px; }
.ld-cv-b .ld-av { width: 28px; height: 28px; } .ld-cv-b .ld-av .ld-olho { width: 18px; }
.ld-cv-b .ld-ag { padding: 12px 14px; } .ld-cv-b .ld-ag p { font-size: 14px; }
/* conversa por iniciar (como components/conversa/perguntar-pagina.tsx): rótulo + 3 perguntas encostadas ao fundo */
.ld-cv-ex { margin-top: auto; display: grid; gap: 12px; align-content: end; }
.ld-cv-lb { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.ld-cv-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ld-cv-q { display: flex; align-items: center; gap: 8px; padding: 6px 7px; border-radius: var(--radius-md); font-size: 13px; color: var(--text-body); min-width: 0; }
.ld-cv-q svg { flex: none; color: var(--color-accent); }
.ld-ask-l { flex: none; display: flex; align-items: center; gap: 10px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 16px; padding: 10px 8px 10px 16px; box-shadow: var(--sombra-sm); }
.ld-ask-l > svg { color: var(--color-accent); }

/* intermédio e telemóvel (a janela fica sempre à escala) */
@media (max-width: 960px) {
  .ld-hero { grid-template-columns: minmax(0, 1fr); gap: 3.1111rem; padding-top: 2.2222rem; }
  .ld-painel { grid-template-columns: minmax(0, 1fr); padding: 2.2222rem 1.5556rem; }
  .ld-nav nav { display: none; }
  .ld-nav .ld-r { margin-left: auto; }
  .ld-win-url { display: none; }
  .ld-win-dots { flex: 0 0 auto; }
  .ld-win-bar { justify-content: space-between; }
}
@media (max-width: 760px) {
  .ld-wrap { padding-left: max(.8889rem, env(safe-area-inset-left, 0px)); padding-right: max(.8889rem, env(safe-area-inset-right, 0px)); }
  .ld-nav .ld-btn-ghost { display: none; }
  .ld-hero h1 { font-size: 2.1111rem; }
  .ld-lead { font-size: 1rem; }
  .ld-ctas { max-width: none; }
  .ld-passos, .ld-ben { grid-template-columns: minmax(0, 1fr); }
  .ld-follow { padding-left: 0; }
  .ld-msg-u { max-width: 92%; }
  .ld-foot .ld-wrap { grid-template-columns: minmax(0, 1fr); }
  .ld-bt { min-width: 0; }
  .ld-demo-h .ld-badge { display: none; }
  .ld-win { padding: 0 .3333rem .3333rem; border-radius: .7778rem; }
  .ld-win-bar { height: 2.7778rem; justify-content: center; }
  .ld-win-dots { display: none; }
  .ld-win-tabs button { padding: .4444rem .6667rem; font-size: .7222rem; min-height: 2.2222rem; display: inline-flex; align-items: center; }
  .ld-win-vp { border-radius: .5rem; }
  .ld-chip { min-height: 2.2222rem; }
  .ld-vis .ld-m1, .ld-vis .ld-m2 { width: 11.1111rem; height: 11.1111rem; }
}

/* ===== acrescentos da landing estática ===== */
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.ld section[id] { scroll-margin-top: 4.5rem; }
.ld-nav nav a:hover { color: var(--color-accent); }
.ld-srcs a.ld-ref { text-decoration: none; }
.ld-srcs a.ld-ref:hover { text-decoration: underline; text-underline-offset: .1667rem; }
.ld-win-url { cursor: default; }
.ld-win-url:hover { color: var(--ld-win-fg2); text-decoration: none; }
.ld-win-app > .ld-app[hidden] { display: none; }
.ld-side-foot .ld-who { font-weight: 600; }

/* modal de autenticação: quadrado simples ao centro; a altura segue o cartão do /login
   (o iframe diz-a por postMessage, em --ld-auth-h); sem barra; enquanto o iframe
   não carrega, uma roda discreta por cima dele (o texto é só para leitores de ecrã) */
#ld-auth { position: fixed; padding: 0; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--surface-card); color: var(--text-primary); box-shadow: var(--sombra-cartao); width: min(25rem, calc(100vw - 2rem)); max-height: 94dvh; margin: auto; overflow: hidden; }
#ld-auth[open] { display: block; }
#ld-auth::backdrop { background: var(--veu); }
.ld-auth-fechar { position: absolute; top: .5rem; right: .5rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-muted); cursor: pointer; }
.ld-auth-fechar:hover { color: var(--text-primary); background: var(--surface-sunken); }
.ld-auth-iframe { display: block; width: 100%; height: min(var(--ld-auth-h, 24rem), 94dvh); border: 0; background: var(--surface-card); }
.ld-auth-iframe[data-carregado="0"] { visibility: hidden; }
.ld-auth-carga { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ld-auth-carga[hidden] { display: none; }
.ld-auth-roda { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--border-default); border-top-color: var(--color-accent); }
@keyframes ld-auth-roda { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .ld-auth-roda { animation: ld-auth-roda .8s linear infinite; } }
@media (max-width: 760px) {
  #ld-auth { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; border: 0; }
  .ld-auth-iframe { height: 100%; }
}
