/* ==========================================================================
   Task Tamer — páginas de utilidade servidas ao lado da aplicação
   app.maujr.com/{faq,contact,delete-account,privacy} + /404.html + /auth-action.html

   Uma folha externa para todas. Nenhum script, nenhum SDK, nenhum terceiro:
   as fontes são servidas deste host e não há Google Fonts nem Firebase compat
   nestas páginas — a app é que carrega o SDK, na raiz.

   Regra de cor, herdada da aplicação e não negociável aqui:
   OURO diz o que as coisas SÃO (marca, estado, contagens). Nunca se clica.
   TEAL diz o que PODE FAZER (botões, ligações, foco). Só isso se clica.
   ========================================================================== */

@font-face { font-family:'Prata'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/prata-400.woff2') format('woff2'); }
@font-face { font-family:'Jost'; font-style:normal; font-weight:300; font-display:swap; src:url('fonts/jost-300.woff2') format('woff2'); }
@font-face { font-family:'Jost'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/jost-400.woff2') format('woff2'); }
@font-face { font-family:'Jost'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/jost-500.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/ibm-plex-mono-500.woff2') format('woff2'); }

:root {
  --bg: #0D100E;
  --surface: #141917;
  --surface-2: #1B2220;
  --border: rgba(198,165,96,.14);
  --border-strong: rgba(198,165,96,.28);

  --text: #F2EEE6;
  --dim: #DCD8CE;
  --body: #B9C0BA;
  --muted: #7C8781;

  --gold: #C6A560;
  --action: #3FBFA6;
  --action-2: #6FD3C0;
  --action-soft: rgba(63,191,166,.12);
  --action-border: rgba(63,191,166,.38);
  --on-action: #0D100E;

  --danger: #C4635C;
  --danger-soft: rgba(196,99,92,.12);
  --danger-border: rgba(196,99,92,.34);

  --font-display: 'Prata', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-2); }
a:focus-visible { outline: 1px solid var(--action); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; color: var(--text); margin: 0; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Estrutura ───────────────────────────────────────────────────────────── */

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }
main { flex: 1 0 auto; }

/* ── Header: dois elementos. O lockup é assinatura, não navegação. ───────── */

.site-head { border-bottom: 1px solid var(--border); }
.site-head .wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.lockup { display: flex; align-items: center; gap: 11px; }
.lockup-mark {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.lockup-mark svg { display: block; }
.lockup-text { display: flex; flex-direction: column; gap: 1px; }
.lockup-name { font-family: var(--font-display); font-size: 15px; line-height: 1.1; color: var(--text); }
.lockup-by { font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ── Botões ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--action); border-radius: var(--radius);
  background: var(--action); color: var(--on-action);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
.btn:hover { background: var(--action-2); border-color: var(--action-2); color: var(--on-action); }

.btn-quiet {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: transparent; color: var(--dim); font-size: 14px;
}
.btn-quiet:hover { border-color: var(--action); color: var(--action); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--danger-border); border-radius: var(--radius);
  background: transparent; color: var(--danger); font-size: 14px;
}
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cabeça de página ────────────────────────────────────────────────────── */
/* Só eixo vertical, em longhand. Um shorthand de 3 valores aqui apagava o
   padding lateral do .wrap (que vem antes, com a mesma especificidade) e o
   texto legal encostava à margem em qualquer ecrã abaixo de 1180px. */

.head { padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.head-narrow { border-bottom: none; padding-bottom: 0; }

.eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.title { margin: 12px 0 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.2; text-wrap: pretty; }
.lede { margin: 16px 0 0; max-width: 66ch; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--body); text-wrap: pretty; }

.section { padding-top: 44px; padding-bottom: 60px; }
.section-tight { padding-top: 36px; padding-bottom: 60px; }
.section-tight .btn-row { margin-top: 24px; }
h2.sub { font-size: 25px; line-height: 1.25; }

.prose { max-width: 66ch; }
.prose p { margin: 0 0 16px; font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* ── Coluna com índice lateral (perguntas, privacidade) ──────────────────── */

.split { display: flex; gap: 56px; align-items: flex-start; }
.aside { width: 230px; flex-shrink: 0; position: sticky; top: 32px; }
.aside-label { margin: 0 0 12px; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aside-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.aside-list a {
  display: block; padding: 9px 0 9px 14px;
  border-left: 2px solid var(--surface-2);
  font-size: 14px; font-weight: 300; color: var(--body);
}
.aside-list a:hover { border-left-color: var(--action); color: var(--text); }
.aside-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.aside-note .val { font-family: var(--font-mono); font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }

.column { flex: 1; min-width: 0; max-width: 800px; }

/* ── Perguntas: <details> nativo, sem script ─────────────────────────────── */

.group { margin: 0 0 40px; }
.group:last-child { margin-bottom: 0; }
.group-name { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.qa { border-top: 1px solid var(--border); }
.group .qa:last-of-type { border-bottom: 1px solid var(--border); }
.qa > summary {
  list-style: none; cursor: pointer;
  padding: 20px 0; display: flex; align-items: center; gap: 20px;
  font-size: 17px; color: var(--text);
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary > span:first-child { flex: 1; }
.qa > summary:hover { color: var(--action-2); }
.qa > summary:focus-visible { outline: 1px solid var(--action); outline-offset: 3px; }
.qa .sign { flex-shrink: 0; width: 16px; height: 16px; position: relative; }
.qa .sign::before, .qa .sign::after { content: ''; position: absolute; background: var(--action); }
.qa .sign::before { top: 7.5px; left: 0; width: 16px; height: 1.5px; }
.qa .sign::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.qa[open] .sign::after { display: none; }
.qa .answer { padding: 0 0 22px; }
.qa .answer p {
  margin: 0 0 12px; max-width: 66ch;
  border-left: 2px solid var(--border-strong); padding-left: 18px;
  font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--body);
}
.qa .answer p:last-child { margin-bottom: 0; }

/* ── Caixas ──────────────────────────────────────────────────────────────── */

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 2px solid var(--gold); border-radius: var(--radius);
  padding: 24px; margin: 0;
}
.callout-danger { border-color: var(--danger-border); border-left-color: var(--danger); }
.callout-label { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.callout-danger .callout-label { color: var(--danger); }
.callout p { margin: 0 0 12px; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--body); max-width: 66ch; }
.callout p:last-child { margin-bottom: 0; }
.callout .checks + p { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

.cta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 2px solid var(--gold); border-radius: var(--radius);
  padding: 22px 24px; margin: 40px 0 0;
}
.cta-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 5px; }
.cta-text strong { font-weight: 400; font-size: 16.5px; color: var(--text); }
.cta-text span { font-size: 14px; font-weight: 300; color: var(--body); }

/* ── Listas de valor (endereço, contactos, o que desaparece) ─────────────── */

.plain { margin: 0; padding: 0; list-style: none; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--body); }
.checks .dash { color: var(--action); flex-shrink: 0; }

.rows { margin: 6px 0 0; padding: 0; list-style: none; }
.rows li { display: flex; gap: 24px; padding: 13px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.rows li:last-child { border-bottom: 1px solid var(--border); }
.rows .k { width: 190px; flex-shrink: 0; font-size: 14.5px; color: var(--text); }
.rows .v { flex: 1 1 260px; font-size: 14.5px; font-weight: 300; color: var(--body); }

.address {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; margin: 0;
}
.address div { display: flex; gap: 16px; flex-wrap: wrap; }
.address dt { width: 80px; flex-shrink: 0; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.address dd { flex: 1 1 240px; margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--dim); }
.address .mono { font-size: 14px; }

/* ── Endereço de suporte, em destaque ────────────────────────────────────── */

.mailto-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.mailto-card .label { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mailto-card .addr { font-family: var(--font-mono); font-size: clamp(18px, 3.4vw, 24px); letter-spacing: -.01em; }
.mailto-card .when { margin: 0; font-size: 14px; font-weight: 300; color: var(--body); }

/* ── Portas: 404 e ligação do e-mail ────────────────────────────────────── */

.door { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 72px 32px; text-align: center; }
.door-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wordmark-type { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--text); }
.wordmark-type .r { color: var(--gold); }
.wordmark-sub { font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rule { width: 44px; height: 1px; background: var(--gold); opacity: .55; }
.notice { font-size: clamp(24px, 6vw, 28px); line-height: 1.3; text-wrap: pretty; }
.door .lede { text-align: center; margin-inline: auto; }

.door-narrow { max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.icon-frame { width: 52px; height: 52px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.fine { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Estados da página de ligação do e-mail. Só um está visível de cada vez;
   quem os alterna é o código da app (ver README do handoff). */
[hidden] { display: none !important; }

.field { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input {
  min-height: 48px; padding: 0 15px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--action); }

/* ── Footer: local e externo separados pelo rótulo, não por um glifo ─────── */

.site-foot { border-top: 1px solid var(--border); }
.site-foot .wrap { padding-top: 30px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col + .foot-col { padding-left: 56px; border-left: 1px solid var(--border); }
.foot-label { margin: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 300; }
.foot-mark { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.foot-mark .wordmark-type { font-size: 19px; }
.foot-mark .place { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ── Ecrãs estreitos ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .split { flex-direction: column; gap: 32px; }
  .aside { position: static; width: 100%; }
  .aside-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .aside-list a { border-left: none; border-bottom: 2px solid var(--surface-2); padding: 8px 0; margin-right: 18px; }
  .aside-list a:hover { border-bottom-color: var(--action); }
  .head { padding-top: 40px; padding-bottom: 32px; }
  .foot-col + .foot-col { padding-left: 0; border-left: none; }
  .site-foot .wrap { flex-direction: column; }
  .foot-mark { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .site-head .wrap { padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .lockup-by { display: none; }
  .btn, .btn-quiet, .btn-danger { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .rows .k { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ── Ligação do e-mail: badge de endereço, estado inline, botão desativado ──
   Cinco blocos pedidos pelo Code para o auth-action. O badge substitui o
   endereço solto no meio da prosa: é um dado, e um dado tem moldura. A linha de
   estado tem duas variantes — neutra e de erro — e ocupa o mesmo espaço nas
   duas, para o layout não saltar quando o estado muda. */

.addr-badge {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%; padding: 9px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 13px; color: var(--dim);
  overflow-wrap: anywhere; text-align: left;
}
.addr-badge .addr-icon { flex-shrink: 0; color: var(--gold); display: flex; }

.status {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); text-align: left;
  font-size: 13.5px; font-weight: 300; line-height: 1.55; color: var(--body);
}
.status .status-dot { flex-shrink: 0; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--muted); }
.status-error { border-color: var(--danger-border); background: var(--danger-soft); color: var(--danger); }
.status-error .status-dot { background: var(--danger); }

.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-2); border-color: var(--border); color: var(--muted); cursor: not-allowed;
}
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover {
  background: var(--surface-2); border-color: var(--border); color: var(--muted);
}
