/* ZionTech · ziontech.pro
   Paleta "Titanium": grafite #111317, ardósia #30343B, prata #C4C9D0, cinzento #818994, gelo #F4F5F7.
   Modo claro: fundo gelo, texto grafite, botões grafite. Modo escuro: fundo grafite, texto gelo, botões prata.
   Os painéis da aplicação e do contacto são sempre escuros (ardósia para grafite), com reflexo prateado.
   O cinzento #818994 só serve para títulos grandes e pormenores (3,4:1 sobre gelo); texto pequeno usa #4C525B. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --graphite: #111317;
  --slate: #30343B;
  --silver: #C4C9D0;
  --steel: #818994;
  --ice: #F4F5F7;

  --bg: var(--ice);
  --bg-2: #EAECEF;
  --surface: #FFFFFF;
  --ink: var(--graphite);
  --muted: #4C525B;
  --line: rgb(17 19 23 / 0.1);
  --line-strong: rgb(17 19 23 / 0.2);
  --metal: linear-gradient(100deg, var(--slate) 10%, var(--steel) 55%, var(--slate) 95%);
  --accent: var(--slate);
  --link: var(--slate);
  --focus: var(--slate);
  --primary-bg: var(--graphite);
  --primary-fg: var(--ice);
  --primary-shine: rgb(196 201 208 / 0.35);
  --header-bg: rgb(244 245 247 / 0.78);
  --nav-on-bg: var(--graphite);
  --nav-on-fg: var(--ice);
  --glow-color: var(--steel);
  --glow: 0.32;

  --shadow-sm: 0 1px 2px rgb(17 19 23 / 0.06);
  --shadow: 0 1px 2px rgb(17 19 23 / 0.05), 0 18px 40px -18px rgb(17 19 23 / 0.25);
  --shadow-lg: 0 2px 4px rgb(17 19 23 / 0.06), 0 30px 60px -24px rgb(17 19 23 / 0.35);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--graphite);
    --bg-2: #171A1F;
    --surface: #1D2026;
    --ink: var(--ice);
    --muted: #A9AFB8;
    --line: rgb(244 245 247 / 0.09);
    --line-strong: rgb(244 245 247 / 0.2);
    --metal: linear-gradient(100deg, var(--ice) 5%, var(--steel) 50%, var(--silver) 90%);
    --accent: var(--silver);
    --link: var(--silver);
    --focus: var(--silver);
    --primary-bg: linear-gradient(180deg, #E4E7EB, var(--silver));
    --primary-fg: var(--graphite);
    --primary-shine: rgb(255 255 255 / 0.55);
    --header-bg: rgb(17 19 23 / 0.8);
    --nav-on-bg: var(--silver);
    --nav-on-fg: var(--graphite);
    --glow-color: var(--silver);
    --glow: 0.13;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 18px 40px -18px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 60px -24px rgb(0 0 0 / 0.75);
  }
}

/* Superfícies sempre escuras, em qualquer modo. */
.app-panel,
.contact-inner,
.toast-dark {
  --surface: #262A31;
  --ink: var(--ice);
  --muted: #B9BEC6;
  --line: rgb(244 245 247 / 0.1);
  --line-strong: rgb(244 245 247 / 0.22);
  --metal: linear-gradient(100deg, var(--ice) 5%, var(--steel) 50%, var(--silver) 90%);
  --accent: var(--silver);
  --link: var(--silver);
  --focus: var(--silver);
  --primary-bg: linear-gradient(180deg, #E4E7EB, var(--silver));
  --primary-fg: var(--graphite);
  --primary-shine: rgb(255 255 255 / 0.55);
  color: var(--ink);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  timeline-scope: --hr, --sv, --pj, --ge, --ct;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
main:focus { outline: none; }

.accent { color: var(--accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent {
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 9s ease-in-out infinite alternate;
  }
  /* As palavras do título têm a sua própria animação; o gradiente fica em cada palavra. */
  .hero-title .accent { background: none; animation: none; }
  .hero-title .accent .w { background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Cabeçalho: uma só faixa a toda a largura ----------
   No topo é transparente; ao fazer scroll ganha fundo desfocado e uma linha fina por baixo. */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 44px; height: 26px; flex: none; fill: var(--ink); transition: transform 0.6s var(--ease-out); }
.brand:hover .brand-mark { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { .brand-mark { fill: var(--silver); } }
.brand-name { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.32em; margin-right: -0.32em; }
@media (max-width: 419px) { .header-inner .brand-name { display: none; } }

.site-nav { display: none; justify-self: center; }
@media (min-width: 1080px) { .site-nav { display: block; } }
.site-nav ul { display: flex; gap: 0.2rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.site-nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.header-actions { grid-column: 3; display: flex; align-items: center; gap: 0.45rem; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background-color 0.25s, box-shadow 0.3s;
}
.pill-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); }
.pill-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.pill-primary { color: var(--primary-fg); background: var(--primary-bg); }
.pill-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgb(17 19 23 / 0.6); }

/* ---------- Botões ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, var(--primary-shine) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.8s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgb(17 19 23 / 0.7); }
.btn-primary:hover::after { translate: 120% 0; }
.btn-arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost { color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-light { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

/* Um só círculo de luz, ao centro. */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow {
  position: absolute;
  left: 50%; top: 56%;
  width: min(60rem, 130vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 62%);
  opacity: var(--glow);
  animation: breathe 12s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.08); } }

.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-title {
  font-size: clamp(2.7rem, 1.3rem + 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; animation: word 0.9s var(--ease-out) both; }
.hero-title .line:first-child .w:nth-child(2) { animation-delay: 0.07s; }
.hero-title .line:first-child .w:nth-child(3) { animation-delay: 0.14s; }
.hero-title .line:first-child .w:nth-child(4) { animation-delay: 0.21s; }
.hero-title .accent .w:nth-child(1) { animation-delay: 0.34s; }
.hero-title .accent .w:nth-child(2) { animation-delay: 0.41s; }

@keyframes word {
  from { opacity: 0; translate: 0 0.35em; filter: blur(10px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  animation: rise 0.9s var(--ease-out) 0.6s both;
}
.hero-center .actions { justify-content: center; animation: rise 0.9s var(--ease-out) 0.75s both; }

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- Demonstração da aplicação ----------
   Reproduz o ecrã "Encomendas" da Gestão de Encomendas (visual neutro, modo claro), com dados fictícios.
   As cores são as da aplicação, não as do site. */

.showcase {
  position: relative;
  max-width: 1080px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  perspective: 1600px;
}
.showcase-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0;
  animation: frame-in 1.2s var(--ease-out) 0.7s both;
}
@keyframes frame-in {
  from { opacity: 0; transform: rotateX(16deg) translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Demonstração da aplicação: o mesmo aspeto Titanium da Gestão de Encomendas.
   Barra lateral sempre escura; a área principal segue o tema claro/escuro do site. */
.app-ui,
.phone-screen {
  --a-ink: #16181C;
  --a-bg: #EEF0F3;
  --a-muted: #5F6670;
  --a-border: rgb(17 19 23 / 0.09);
  --a-input: rgb(17 19 23 / 0.14);
  --a-card: #FFFFFF;
  --a-group: rgb(255 255 255 / 0.55);
  --a-primary: #111317;
  --a-on-primary: #F4F5F7;
  --a-due: oklch(0.5 0.13 255);
  --a-shadow: 0 1px 2px rgb(17 19 23 / 0.05), 0 6px 18px -8px rgb(17 19 23 / 0.14);
  --a-side: #1E2126;
  --a-side-ink: #D3D7DD;
  --a-side-muted: #8B929C;
  --a-side-line: rgb(255 255 255 / 0.08);
  --a-pill: linear-gradient(180deg, #E4E7EB, #CDD2D8);
  --a-pill-ink: #16181C;
  --dot-ready: #22B573;
  --dot-confirm: #3B82F6;
  --dot-progress: #F59E0B;
}
@media (prefers-color-scheme: dark) {
  .app-ui,
  .phone-screen {
    --a-ink: #ECEEF1;
    --a-bg: #2A2D33;
    --a-muted: #A3AAB4;
    --a-border: rgb(255 255 255 / 0.08);
    --a-input: rgb(255 255 255 / 0.13);
    --a-card: #32363D;
    --a-group: rgb(255 255 255 / 0.025);
    --a-primary: linear-gradient(180deg, #E4E7EB, #CDD2D8);
    --a-on-primary: #111317;
    --a-due: oklch(0.82 0.1 248);
    --a-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 8px 20px -10px rgb(0 0 0 / 0.5);
    --a-side: #1B1D21;
  }
}
.app-ui {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 640px;
  color: var(--a-ink);
  background:
    radial-gradient(120% 70% at 85% -10%, rgb(255 255 255 / 0.65), transparent 60%),
    var(--a-bg);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  .app-ui { background: radial-gradient(120% 70% at 85% -10%, rgb(196 201 208 / 0.08), transparent 60%), var(--a-bg); }
}
.app-ui svg, .phone-screen svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Barra lateral */
.ui-side {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.7rem 0.8rem;
  background: linear-gradient(180deg, #24272D, var(--a-side) 40%);
  color: var(--a-side-ink);
  border-right: 1px solid rgb(0 0 0 / 0.25);
}
.ui-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.35rem 0.5rem; padding: 0 0.35rem 0.85rem; margin: 0 -0.7rem; padding-inline: 1.05rem; border-bottom: 1px solid var(--a-side-line); }
.app-ui .ui-brand-mark { width: 30px; height: 17px; fill: #E4E7EB; stroke: none; }
.ui-brand > span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; color: #E4E7EB; }
.ui-brand small { grid-column: 1 / -1; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--a-side-muted); }

.ui-company { display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem 0.35rem; margin: 0 -0.7rem 0.6rem; padding-inline: 1.05rem; border-bottom: 1px solid var(--a-side-line); }
.ui-avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--a-pill);
  color: var(--a-pill-ink);
  font-size: 0.7rem;
  font-weight: 700;
}
.ui-company-name { font-size: 0.86rem; font-weight: 600; color: #F1F2F4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ui-navs { display: grid; gap: 0.1rem; }
.ui-nav { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.7rem; border-radius: 9px; }
.ui-nav svg { width: 16px; height: 16px; color: var(--a-side-muted); }
.ui-nav.on { background: var(--a-pill); color: var(--a-pill-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 2px 8px -2px rgb(0 0 0 / 0.45); }
.ui-nav.on svg { color: var(--a-pill-ink); }

.ui-side-foot { display: grid; gap: 0.55rem; margin: auto -0.7rem 0; padding: 0.7rem 0.7rem 0; border-top: 1px solid var(--a-side-line); }
.ui-user { display: flex; align-items: center; gap: 0.6rem; padding-inline: 0.4rem; }
.ui-user svg { width: 16px; height: 16px; color: var(--a-side-muted); }
.ui-user b { display: block; font-weight: 600; color: #F1F2F4; }
.ui-user small { display: block; color: var(--a-side-muted); font-size: 0.66rem; }
.ui-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: rgb(0 0 0 / 0.28); border: 1px solid var(--a-side-line); font-size: 0.66rem; }
.ui-theme span { display: grid; justify-items: center; gap: 0.1rem; padding: 0.3rem; border-radius: 8px; color: var(--a-side-muted); }
.ui-theme svg { width: 13px; height: 13px; }
.ui-theme .t-light { background: rgb(255 255 255 / 0.08); color: #F1F2F4; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
@media (prefers-color-scheme: dark) {
  .ui-theme .t-light { background: none; color: var(--a-side-muted); box-shadow: none; }
  .ui-theme .t-dark { background: rgb(255 255 255 / 0.08); color: #F1F2F4; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
}
.ui-logout { display: flex; align-items: center; gap: 0.5rem; padding-inline: 0.45rem; color: var(--a-side-muted); font-size: 0.72rem; }
.ui-logout svg { width: 14px; height: 14px; }

/* Área principal */
.ui-main {
  min-width: 0;
  overflow: hidden;
  padding: 1.1rem 1.4rem;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.ui-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ui-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.ui-title::after { content: ""; display: block; width: 1.6rem; height: 2px; margin-top: 0.4rem; border-radius: 2px; background: currentColor; }
.ui-new { padding: 0.38rem 0.8rem; border-radius: 8px; background: var(--a-primary); color: var(--a-on-primary); font-size: 0.74rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px -4px rgb(17 19 23 / 0.45); }

.ui-filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 0.85rem; }
.ui-field { display: grid; gap: 0.2rem; min-width: 0; }
.ui-field small { color: var(--a-muted); font-size: 0.68rem; }
.ui-field i {
  font-style: normal;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--a-input);
  border-radius: 8px;
  background: var(--a-card);
  color: var(--a-muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-filter-btns { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.ui-filter-btns span { padding: 0.25rem 0.65rem; border: 1px solid var(--a-input); border-radius: 7px; background: var(--a-card); font-size: 0.72rem; }
.ui-filter-btns .dark { background: var(--a-primary); border-color: transparent; color: var(--a-on-primary); font-weight: 600; }
.ui-all { display: block; margin: 0.85rem 0 0.2rem; color: var(--a-muted); font-size: 0.75rem; }

.ui-day {
  margin-top: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--a-border);
  border-radius: 18px;
  background: var(--a-group);
}
.ui-day.today { box-shadow: var(--a-shadow); }
.ui-day-head { display: flex; align-items: center; gap: 0.55rem; }
.ui-bar { width: 4px; height: 20px; border-radius: 4px; background: currentColor; }
.ui-day-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.025em; }
.ui-badge { padding: 0.12rem 0.5rem; border-radius: 99px; background: var(--a-primary); color: var(--a-on-primary); font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.ui-empty { margin-left: auto; color: var(--a-muted); font-size: 0.7rem; }

.ui-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.7rem 0; }
.ui-summary > span { display: flex; align-items: center; gap: 0.6rem; min-width: 0; padding: 0.6rem 0.75rem; border: 1px solid var(--a-border); border-radius: 14px; background: var(--a-card); box-shadow: var(--a-shadow); }
.ui-summary em { flex: 1; min-width: 0; display: grid; gap: 0.15rem; font-style: normal; }
.ui-summary small { color: var(--a-muted); font-size: 0.66rem; font-weight: 600; }
.ui-summary b { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; white-space: nowrap; }
.ui-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: #C9CED5; background: linear-gradient(150deg, #33363C, #141519); }
.ui-ico svg { width: 15px; height: 15px; }
.ui-summary .ink { border-color: rgb(196 201 208 / 0.22); color: #F4F5F7; background: linear-gradient(155deg, #33363C, #141519 70%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 14px 28px -14px rgb(17 19 23 / 0.55); }
.ui-summary .ink small { color: #A9AFB8; }
.ui-summary .ink .ui-ico { color: #141519; background: linear-gradient(180deg, #E8EAED, #C9CED5); }
.ui-summary .due b { color: var(--a-due); }
.ui-summary .due .ui-ico { color: #F5F8FC; background: linear-gradient(150deg, oklch(0.58 0.13 252), oklch(0.44 0.12 258)); }
@media (prefers-color-scheme: dark) {
  .ui-ico { color: #141519; background: linear-gradient(180deg, #E8EAED, #C9CED5); }
  .ui-summary .due .ui-ico { color: oklch(0.2 0.03 258); background: linear-gradient(180deg, oklch(0.86 0.08 248), oklch(0.74 0.11 252)); }
}

.ui-orders { display: grid; gap: 0.45rem; }
.ui-order {
  position: relative;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--a-border);
  border-radius: 16px;
  background: var(--a-card);
  box-shadow: var(--a-shadow);
  animation: order-in 0.7s var(--ease-out) both;
}
.ui-order::before { content: ""; position: absolute; left: 0; top: 0.95rem; bottom: 0.95rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--dot, transparent); }
.ui-order.st-ready { --dot: var(--dot-ready); }
.ui-order.st-confirm { --dot: var(--dot-confirm); }
.ui-order.st-progress { --dot: var(--dot-progress); }
.ui-order:nth-child(1) { animation-delay: 1.3s; }
.ui-order:nth-child(2) { animation-delay: 1.45s; }
.ui-order:nth-child(3) { animation-delay: 1.6s; }
@keyframes order-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.ui-order-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ui-time { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.ui-time svg { width: 15px; height: 15px; }
.ui-status {
  --dot: var(--a-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem 0.2rem 0.55rem;
  border: 1px solid var(--a-input);
  border-radius: 99px;
  background: var(--a-card);
  font-size: 0.7rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(17 19 23 / 0.06);
}
.ui-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 20%, transparent), 0 0 8px color-mix(in srgb, var(--dot) 60%, transparent); }
.ui-status svg { width: 12px; height: 12px; color: var(--a-muted); }
.st-ready    { --dot: var(--dot-ready); }
.st-confirm  { --dot: var(--dot-confirm); }
.st-progress { --dot: var(--dot-progress); }
.ui-order-who { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.ui-order-who b { font-size: 0.95rem; font-weight: 700; }
.ui-num { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--a-muted); font-size: 0.68rem; }
.ui-phone { display: block; margin-top: 0.1rem; color: var(--a-muted); font-size: 0.7rem; }
.ui-products { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; color: var(--a-muted); font-size: 0.76rem; }
.ui-fee { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; }
.ui-fee svg { width: 12px; height: 12px; }
.ui-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.65rem; padding-top: 0.6rem; border-top: 1px solid var(--a-border); }
.ui-muted { color: var(--a-muted); }
.ui-order-foot b { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.02em; }
.ui-foot-right { display: inline-flex; align-items: center; gap: 0.6rem; }
.ui-paid { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--dot-ready); font-size: 0.7rem; font-weight: 600; }
.ui-paid svg { width: 12px; height: 12px; stroke-width: 2.2; }
.ui-due { color: var(--a-due); font-size: 0.7rem; font-weight: 600; }
.ui-kebab { color: var(--a-muted); font-weight: 700; letter-spacing: 0.05em; }

.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
}
.toast b { display: block; font-weight: 700; }
.toast small { display: block; color: var(--muted); font-size: 0.74rem; }
.toast-new { left: -1.75rem; top: 30%; animation: toast-in 0.8s var(--ease-out) 1.9s both, bob 7s ease-in-out 2.7s infinite; }
.toast-dot { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: #22B573; }
.toast-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22B573;
  animation: ping 2s ease-out 2.7s infinite;
}
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.toast-dark {
  right: -1.75rem; bottom: 5%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  background: linear-gradient(160deg, var(--slate), var(--graphite));
  animation: toast-in 0.8s var(--ease-out) 2.2s both, bob 8s ease-in-out 3s infinite reverse;
}
.toast-dark b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--silver); }

@keyframes toast-in { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 899px) {
  .app-ui { grid-template-columns: 1fr; height: 600px; }
  .ui-side { display: none; }
  .ui-filters { grid-template-columns: repeat(2, 1fr); }
  .ui-filters .ui-field:nth-child(n + 3) { display: none; }
  .toast-new { left: 0.5rem; top: -2.6rem; }
  .toast-dark { right: 0.5rem; bottom: 1.5rem; }
}
@media (max-width: 559px) {
  .app-ui { height: 560px; }
  .ui-main { padding: 0.9rem; }
  .ui-filter-btns, .ui-all { display: none; }
  .ui-summary b { font-size: 0.95rem; }
  .ui-summary > span { padding: 0.5rem 0.55rem; }
  .ui-ico { display: none; }
  .toast { font-size: 0.74rem; padding: 0.6rem 0.8rem; }
  .toast-dark b { font-size: 1.25rem; }
}

/* ---------- Secções ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section h2 { font-size: clamp(2rem, 1.15rem + 3.2vw, 3.4rem); }
.section-intro { max-width: 38rem; margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Serviços ---------- */

.services-grid { display: grid; gap: 2.75rem; }
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: 0.85fr 1.35fr; gap: 4rem; align-items: start; }
  .services-head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; } }

.card {
  position: relative;
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--steel) 70%, transparent);
  box-shadow: 0 22px 50px -24px rgb(17 19 23 / 0.45);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--slate), var(--graphite));
  color: var(--silver);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition: transform 0.5s var(--ease-out);
}
.card:hover .card-icon { transform: rotate(-10deg) scale(1.08); }
@media (prefers-color-scheme: dark) {
  .card-icon { background: linear-gradient(180deg, #E4E7EB, var(--silver)); color: var(--graphite); }
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 1.25rem; font-size: 1.22rem; }
.card p { margin-top: 0.55rem; color: var(--muted); font-size: 0.98rem; }

/* ---------- Projetos ---------- */

.projects { background: var(--bg-2); }
/* Cartões grandes, dois por linha: o topo de cada site dentro de uma janela de navegador. */
.projects-grid { display: grid; gap: 1.5rem; margin-top: 2.75rem; }
@media (min-width: 760px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; } }

.project {
  min-width: 0;
  padding: 0.9rem 0.9rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project h3 { margin: 1.4rem 0.75rem 0; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); }
.project p { max-width: 34rem; margin: 0.55rem 0.75rem 0; color: var(--muted); font-size: 1rem; }

.pj-media {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10.9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid var(--line);
}
.pj-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 30px;
  padding-inline: 12px;
  background: #E3E6EA;
  border-bottom: 1px solid rgb(17 19 23 / 0.08);
}
.pj-bar i { width: 9px; height: 9px; border-radius: 50%; background: #B4BAC2; }
.pj-bar b { flex: 1; max-width: 48%; height: 14px; margin-left: auto; margin-right: auto; border-radius: 99px; background: rgb(255 255 255 / 0.75); }
@media (prefers-color-scheme: dark) {
  .pj-bar { background: #262A31; border-bottom-color: rgb(244 245 247 / 0.06); }
  .pj-bar i { background: #4A505A; }
  .pj-bar b { background: rgb(244 245 247 / 0.08); }
}
.pj-shot {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 1.2s var(--ease-out);
  transform-origin: 50% 0;
}
.project:hover .pj-shot { transform: scale(1.04); }
.project p a { font-weight: 600; white-space: nowrap; }

/* Projeto ainda por anunciar: a imagem já vem desfocada no ficheiro; aqui só o selo. */
.pj-soon { position: relative; }
.pj-soon-label {
  position: absolute;
  left: 50%; top: calc(50% + 15px);
  translate: -50% -50%;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgb(17 19 23 / 0.55);
  border: 1px solid rgb(244 245 247 / 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ice);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Trabalhos com nome de cliente (pronto para quando houver autorização) ---------- */

.work-grid { display: grid; gap: 1.25rem; margin-top: 2.75rem; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.work h3 { font-size: 1.2rem; margin: 1.1rem 1.25rem 0; }
.work p { color: var(--muted); margin: 0.4rem 1.25rem 0; }
.work a { display: inline-block; margin: 0.8rem 1.25rem 1.25rem; font-weight: 600; }

/* ---------- Gestão de Encomendas (painel escuro com brilho, como o ecrã da referência) ---------- */

.app-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5.5vw, 4.25rem);
  border-radius: 34px;
  background: linear-gradient(155deg, var(--slate), var(--graphite) 70%);
  border: 1px solid rgb(196 201 208 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), var(--shadow-lg);
}
.app-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.app-glow::before,
.app-glow::after { content: ""; position: absolute; border-radius: 50%; }
.app-glow::before {
  width: 34rem; height: 34rem; left: -14rem; bottom: -18rem;
  background: radial-gradient(circle, rgb(129 137 148 / 0.3), transparent 62%);
  animation: drift-a 20s ease-in-out infinite alternate;
}
.app-glow::after {
  width: 34rem; height: 34rem; right: -12rem; top: -16rem;
  background: radial-gradient(circle, rgb(196 201 208 / 0.22), transparent 62%);
  animation: drift-b 24s ease-in-out infinite alternate;
}

.app-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 980px) { .app-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; } }

.features { display: grid; gap: 0.85rem 1.75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features li { display: grid; grid-template-columns: 26px 1fr; gap: 0.75rem; align-items: start; font-size: 1rem; }
.tick {
  width: 26px; height: 26px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E4E7EB, var(--silver));
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick path { stroke-dasharray: 20; stroke-dashoffset: 0; }

.app-visual { position: relative; display: grid; place-items: center; padding-block: 1.5rem; }

.phone {
  position: relative;
  width: min(300px, 80vw);
  padding: 10px;
  border-radius: 44px;
  background: #0B0C0F;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(196 201 208 / 0.25), 0 0 80px -20px rgb(196 201 208 / 0.35);
  animation: bob 10s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  width: 84px; height: 22px;
  translate: -50% 0;
  border-radius: 99px;
  background: #000;
  z-index: 2;
}
/* O ecrã do telemóvel mostra a mesma vista da aplicação, no tema do site. */
.phone-screen {
  min-height: 520px;
  padding: 3.1rem 0.7rem 1rem;
  border-radius: 34px;
  background: radial-gradient(130% 60% at 80% 0%, rgb(255 255 255 / 0.6), transparent 60%), var(--a-bg);
  color: var(--a-ink);
  font-size: 0.8rem;
  line-height: 1.35;
}
.phone-screen .ui-head { padding: 0 0.3rem 0.2rem; }
.phone-screen .ui-day { padding: 0.6rem; }
.phone-screen .ui-day-head { margin-bottom: 0.55rem; }
.phone-screen .ui-order { padding: 0.7rem 0.75rem; animation: none; }
.phone-screen .ui-order-foot { font-size: 0.74rem; }
.phone-screen .ui-order-foot span { white-space: nowrap; }
.phone-screen .ui-kebab { display: none; }

.chip {
  position: absolute;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
}
.chip-label { color: var(--muted); font-weight: 500; }
.chip-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #9DB8D6; }
@media (prefers-color-scheme: dark) {
  .phone-screen { background: radial-gradient(130% 60% at 80% 0%, rgb(196 201 208 / 0.08), transparent 60%), var(--a-bg); }
}
.chip-due { top: 12%; left: 0; rotate: -4deg; animation: bob 7s ease-in-out 0.5s infinite; }
.chip-week { bottom: 10%; right: 0; rotate: 3deg; animation: bob 8s ease-in-out 1.2s infinite reverse; }
.chip-bars { display: flex; align-items: end; gap: 4px; height: 34px; }
.chip-bars i { width: 9px; border-radius: 3px; background: var(--silver); transform-origin: bottom; }
.chip-bars i:nth-child(1) { height: 40%; }
.chip-bars i:nth-child(2) { height: 70%; }
.chip-bars i:nth-child(3) { height: 55%; background: var(--steel); }
.chip-bars i:nth-child(4) { height: 90%; }
.chip-bars i:nth-child(5) { height: 65%; }
.chip-bars i:nth-child(6) { height: 100%; background: var(--ink); }
.chip-bars i:nth-child(7) { height: 30%; }
@media (max-width: 559px) {
  .chip-due { left: -0.5rem; top: -0.25rem; }
  .chip-week { right: -0.5rem; bottom: -0.25rem; }
}
@media (min-width: 980px) {
  .chip-due { left: -4.5rem; top: 20%; }
  .chip-week { right: -2rem; }
}

/* ---------- Contacto ---------- */

.contact-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5.5vw, 4.5rem);
  border-radius: 34px;
  background: linear-gradient(155deg, var(--slate), var(--graphite) 70%);
  border: 1px solid rgb(196 201 208 / 0.2);
}
.contact-inner::before,
.contact-inner::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.contact-inner::before {
  width: 30rem; height: 30rem; top: -15rem; right: -8rem;
  background: radial-gradient(circle, rgb(196 201 208 / 0.22), transparent 62%);
  animation: drift-a 20s ease-in-out infinite alternate;
}
.contact-inner::after {
  width: 26rem; height: 26rem; bottom: -15rem; left: -6rem;
  background: radial-gradient(circle, rgb(129 137 148 / 0.28), transparent 62%);
  animation: drift-b 24s ease-in-out infinite alternate;
}
.contact .section-intro { max-width: 36rem; }

/* Monograma ZT em contorno, grande, no canto do painel. */
.contact-mark {
  position: absolute;
  right: -6%;
  bottom: -18%;
  z-index: -1;
  width: min(46rem, 90%);
  fill: none;
  stroke: rgb(196 201 208 / 0.09);
  stroke-width: 0.35;
  pointer-events: none;
}

.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }

.contact-main h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); }
.contact-main .section-intro { max-width: 34rem; }

/* Assuntos: cada um abre o email já com o assunto preenchido. */
.contact-topics-label { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }
.contact-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.contact-topics a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.contact-topics a::after {
  content: "";
  width: 6px; height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  rotate: 45deg;
  opacity: 0.6;
  transition: translate 0.3s var(--ease-out), opacity 0.25s;
}
.contact-topics a:hover {
  transform: translateY(-2px);
  background: var(--ice);
  border-color: var(--ice);
  color: var(--graphite);
}
.contact-topics a:hover::after { translate: 2px 0; opacity: 1; }

/* O email como um cartão grande, com um botão redondo prateado. */
.mail-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.1rem 1.1rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgb(244 245 247 / 0.04);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s;
}
.mail-card:hover { border-color: rgb(244 245 247 / 0.45); background: rgb(244 245 247 / 0.07); }
.mail-card-text { display: grid; gap: 0.15rem; min-width: 0; }
.mail-card-text small { color: var(--muted); font-size: 0.85rem; }
.mail-card-text b {
  font-size: clamp(1.15rem, 0.75rem + 1.9vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.mail-card-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E4E7EB, var(--silver));
  color: var(--graphite);
  transition: transform 0.45s var(--ease-out);
}
.mail-card-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease-out); }
.mail-card:hover .mail-card-go { transform: rotate(-45deg); }
@media (max-width: 479px) {
  .contact-inner { padding: 2rem 1.4rem; }
  .mail-card { padding: 1rem 1.1rem; }
  .mail-card-go { display: none; }
  .mail-card-text b { font-size: 1.2rem; overflow-wrap: normal; }
}

/* Como começamos: três passos ligados por uma linha. */
.contact-steps {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(17 19 23 / 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.contact-steps h3 { font-size: 1.15rem; }
.contact-steps ol { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: passo; }
.contact-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.2rem 1rem;
  padding-bottom: 1.5rem;
  counter-increment: passo;
}
.contact-steps li:last-child { padding-bottom: 0; }
.contact-steps li::before {
  content: "0" counter(passo);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--graphite);
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px; top: 42px; bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.contact-steps li b { font-weight: 700; line-height: 1.3; padding-top: 0.45rem; }
.contact-steps li span { color: var(--muted); font-size: 0.95rem; }

.contact-login {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-login a { font-weight: 600; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .contact-steps li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    .contact-steps li:nth-child(2) { animation-range: entry 20% cover 30%; }
    .contact-steps li:nth-child(3) { animation-range: entry 30% cover 40%; }
  }
}

/* ---------- Rodapé ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a { display: inline-block; padding-block: 0.6rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Página 404 ---------- */

.notfound {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  text-align: center;
}
.notfound h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); }
.notfound p { margin-top: 1rem; color: var(--muted); }
.notfound .actions { justify-content: center; }

/* ---------- Animações ligadas ao scroll ----------
   Só onde o navegador as suporta; nos outros, tudo aparece já visível e parado. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* A barra do topo encolhe para uma pílula flutuante. */
    .site-header {
      animation: header-solid linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }

    /* A ilustração da aplicação endireita-se ao entrar no ecrã. */
    .showcase-frame {
      animation: tilt linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
    .cards .card:nth-child(2), .projects-grid .project:nth-child(even) { animation-range: entry 6% entry 85%; }
    .cards .card:nth-child(3) { animation-range: entry 12% entry 95%; }
    .cards .card:nth-child(4) { animation-range: entry 18% cover 30%; }

    .features li .tick path {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 30% entry 100%;
    }

    .phone-screen .ui-order {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .phone-screen .ui-order:nth-child(2) { animation-range: entry 15% cover 35%; }

    .chip-bars i {
      animation: bar linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 40%;
    }
  }
}

/* Link do menu ativo conforme a secção que está a meio do ecrã. */
@supports (timeline-scope: none) {
  #topo       { view-timeline: --hr block; }
  #servicos   { view-timeline: --sv block; }
  #projetos   { view-timeline: --pj block; }
  #encomendas { view-timeline: --ge block; }
  #contacto   { view-timeline: --ct block; }

  .site-nav a { animation: nav-on linear none; animation-range: cover 50vh cover calc(100% - 50vh); }
  /* Camada própria: sem isto o Chrome às vezes não volta a pintar o fundo do link ativo. */
  .site-nav a { will-change: transform; }
  .site-nav .nav-inicio     { animation-timeline: --hr; }
  .site-nav .nav-servicos   { animation-timeline: --sv; }
  .site-nav .nav-projetos   { animation-timeline: --pj; }
  .site-nav .nav-encomendas { animation-timeline: --ge; }
  .site-nav .nav-contacto   { animation-timeline: --ct; }
}

@keyframes nav-on {
  from, to { background: var(--nav-on-bg); color: var(--nav-on-fg); }
}
@keyframes header-solid {
  from {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@keyframes tilt {
  from { transform: rotateX(22deg) scale(0.92); }
  to   { transform: none; }
}
@keyframes reveal {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes draw {
  from { stroke-dashoffset: 20; }
  to   { stroke-dashoffset: 0; }
}
@keyframes slide-in {
  from { opacity: 0; translate: 28px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes bar {
  from { transform: scaleY(0.1); }
  to   { transform: scaleY(1); }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Os scroll-driven ficam desligados acima; aqui só se param os de tempo. */
  .glow, .accent, .app-glow::before, .app-glow::after, .contact-inner::before, .contact-inner::after { animation: none !important; }
}
