/* ============================================================
   Human Match, estúdio de produto digital
   Linguagem de desenho técnico: base neutra, uma cor de sinal,
   grelha visível, etiquetas em mono e fichas técnicas.
   Páginas geradas por tools/site-build/build-humanmatch.mjs
   ============================================================ */

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────── */
:root {
    --bg: #F2F1ED;
    --bg-alt: #E9E8E2;
    --surface: #FAFAF7;
    --ink: #0E0E0D;
    --ink-2: #44433E;
    --ink-3: #75736C;
    --line: #D5D3CA;
    --line-2: #B9B6AB;
    --accent: #FF4D00;          /* cor de sinal: superfícies e marcas */
    --accent-text: #C23A00;     /* a mesma cor, legível como texto */
    --on-accent: #0E0E0D;
    --ok: #1F8A47;
    --dot: rgba(14, 14, 13, 0.16);
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --wrap: 1240px;
    --gutter: 16px;
    --nl: #7FAF63;
    --ag: #C99412;
    --es: #B8431F;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0C0C0B;
    --bg-alt: #131312;
    --surface: #181816;
    --ink: #EDECE6;
    --ink-2: #B4B2AA;
    --ink-3: #807E76;
    --line: #2A2926;
    --line-2: #3D3C37;
    --accent: #FF5A14;
    --accent-text: #FF7A3D;
    --on-accent: #0C0C0B;
    --ok: #3CC46E;
    --dot: rgba(237, 236, 230, 0.12);
    color-scheme: dark;
}
/* Sem JS (o tema é posto por script no <head>), segue o sistema. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0C0C0B; --bg-alt: #131312; --surface: #181816;
        --ink: #EDECE6; --ink-2: #B4B2AA; --ink-3: #807E76;
        --line: #2A2926; --line-2: #3D3C37;
        --accent: #FF5A14; --accent-text: #FF7A3D; --on-accent: #0C0C0B;
        --ok: #3CC46E; --dot: rgba(237, 236, 230, 0.12);
        color-scheme: dark;
    }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font: 600 14px var(--mono); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ── Tipografia ───────────────────────────────────────────── */
.label {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 12px/1.4 var(--mono);
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-3);
}
.label__n { padding: 2px 6px; border: 1px solid var(--line-2); color: var(--ink); letter-spacing: 0.04em; }
h1 { font-size: clamp(44px, 8.6vw, 124px); line-height: 0.94; letter-spacing: -0.055em; font-weight: 750; }
.h2 { font-size: clamp(32px, 4.8vw, 64px); letter-spacing: -0.045em; line-height: 1; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.hl { color: var(--accent-text); }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 620px; }

/* ── Botões e ligações ────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 50px; padding: 12px 22px;
    border: 1px solid transparent; border-radius: 0;
    font: 600 15px/1 var(--sans); letter-spacing: -0.005em;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Marca ────────────────────────────────────────────────── */
.logo { display: inline-flex; color: var(--ink); text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; font: 700 20px/1 var(--sans); letter-spacing: -0.04em; white-space: nowrap; }
.brand-glyph { width: 0.8em; height: 0.8em; margin: 0 0.02em; transform: translateY(0.03em); }
.brand-dot { fill: var(--accent); }

/* ── Cabeçalho ────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav { display: none; gap: 26px; margin-left: 40px; }
.nav a, .drawer a:not(.btn) { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav__n { font: 500 11px var(--mono); color: var(--ink-3); }
.header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line-2); }
.lang a { padding: 7px 9px; font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-decoration: none; color: var(--ink-3); }
.lang a.is-active { background: var(--ink); color: var(--bg); }
.theme-toggle, .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover, .menu-btn:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.menu-btn svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .theme-toggle .i-moon, :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }
.header__cta { display: none; }
.drawer { display: flex; flex-direction: column; padding: 4px var(--gutter) 20px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer[hidden] { display: none; }
.drawer a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 16px; }
@media (min-width: 1000px) {
    .nav { display: flex; }
    .header__cta { display: inline-flex; }
    .menu-btn, .drawer { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 56px 0 72px;
}
.hero__label { margin-bottom: 28px; }
.hero h1 { max-width: 14ch; }
.hero__row { display: grid; gap: 28px; margin-top: 36px; align-items: end; }
@media (min-width: 900px) {
    .hero { padding: 80px 0 96px; }
    .hero__row { grid-template-columns: 1fr auto; gap: 48px; }
}

/* Visualizador de produtos */
.viewer { margin-top: 56px; border: 1px solid var(--line-2); background: var(--surface); }
/* Os três separadores ficam sempre visíveis: empilhados no telemóvel, lado a lado a partir de 640px. */
.viewer__tabs { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line-2); }
.viewer__tab {
    position: relative; min-width: 0; min-height: 56px;
    display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline;
    padding: 14px 16px 14px 20px; text-align: left; cursor: pointer;
    border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink-3);
    font: inherit;
}
.viewer__tab:last-child { border-bottom: 0; }
.viewer__tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
@media (min-width: 640px) {
    .viewer__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .viewer__tab { padding: 18px 20px; border-bottom: 0; border-right: 1px solid var(--line); }
    .viewer__tab:last-child { border-right: 0; }
    .viewer__tab::before { right: 0; bottom: auto; width: auto; height: 3px; }
}
.viewer__tab[aria-selected="true"] { color: var(--ink); background: var(--bg); }
.viewer__tab[aria-selected="true"]::before { background: var(--accent); }
.viewer__tab:hover { color: var(--ink); }
.viewer__n { grid-row: span 2; font: 500 12px var(--mono); }
.viewer__name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.viewer__tag { font: 400 11px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.viewer__panel[hidden] { display: none; }
.viewer__stage {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; min-height: 300px;
    background-color: var(--bg-alt);
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 18px 18px;
}
.viewer__foot { display: grid; gap: 20px; align-items: center; padding: 20px; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) {
    .viewer__stage { padding: 56px 48px; min-height: 520px; }
    .viewer__foot { grid-template-columns: 1fr auto; padding: 20px 28px; }
}
.js .viewer__panel:not([hidden]) .viewer__stage .frame { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.js .viewer__panel:not([hidden]) .viewer__stage .frame:nth-child(2) { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Ficha técnica */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec > div { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.spec dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin-top: 4px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 900px) { .spec--row { grid-template-columns: 1fr 1fr 1.5fr 1fr; } }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); vertical-align: 1px; }

/* ── Molduras ─────────────────────────────────────────────── */
.visual { position: relative; display: flex; justify-content: center; align-items: center; gap: 4%; width: 100%; }
.frame { position: relative; background: var(--surface); }
.frame img { width: 100%; }
.frame--browser { border: 1px solid var(--line-2); box-shadow: 10px 10px 0 -1px var(--bg-alt), 10px 10px 0 0 var(--line-2); }
.frame__bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.frame__bar i { width: 8px; height: 8px; border: 1px solid var(--line-2); border-radius: 50%; }
.frame--phone { border: 5px solid #111110; border-radius: 22px; background: #111110; overflow: hidden; box-shadow: 10px 10px 0 -1px var(--bg-alt), 10px 10px 0 0 var(--line-2); }
.frame--phone img { border-radius: 17px; }
.frame--photo { border: 1px solid var(--line-2); }

.visual--card.visual--browser .frame { width: 100%; max-width: 860px; }
.visual--card.visual--phone-phone .frame { width: 34%; max-width: 230px; }
.visual--card.visual--phone-phone .frame:last-child { transform: translateY(7%); }
.visual--hero.visual--phone-phone-phone .frame { width: 28%; max-width: 270px; }
.visual--hero.visual--phone-phone-phone .frame:nth-child(2) { transform: translateY(-6%); }
.visual--hero.visual--browser .frame { width: 100%; max-width: 1080px; }
.visual--hero.visual--browser-phone { justify-content: flex-start; }
.visual--hero.visual--browser-phone .frame--browser { width: 84%; }
.visual--hero.visual--browser-phone .frame--phone { position: absolute; right: 0; bottom: -8%; width: 30%; max-width: 270px; border-width: 4px; border-radius: 16px; }
.visual--hero.visual--browser-phone .frame--phone img { border-radius: 12px; }
.visual--gallery { flex-wrap: wrap; gap: 28px; }
.visual--gallery .frame--phone { width: 40%; max-width: 280px; }
.visual--gallery .frame--photo { width: 100%; max-width: 560px; }
.visual--gallery .frame--browser { width: 100%; max-width: 980px; }
@media (min-width: 900px) {
    .visual--hero.visual--browser-phone .frame--phone { width: 22%; border-width: 5px; border-radius: 22px; }
    .visual--gallery.visual--phone-phone-photo { flex-wrap: nowrap; }
    .visual--gallery.visual--phone-phone-photo .frame--phone { width: 22%; }
    .visual--gallery.visual--phone-phone-photo .frame--photo { width: 50%; }
    .visual--gallery.visual--browser-browser { flex-wrap: nowrap; }
    .visual--gallery.visual--browser-browser .frame { width: 50%; }
}

/* ── Faixa de provas ──────────────────────────────────────── */
.proof { padding: 0 0 24px; }
.proof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.proof__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 22px 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__grid dd { font: 700 clamp(40px, 6vw, 84px)/0.9 var(--sans); letter-spacing: -0.05em; }
.proof__grid dt { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 900px) { .proof__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Secções ──────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 900px; }
@media (min-width: 900px) { .section { padding: 128px 0; } }

/* Lista com marcas */
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; }
.ticks li::before { content: "+"; position: absolute; left: 0; top: 0; font: 600 15px/1.6 var(--mono); color: var(--accent-text); }

/* ── Casos (página inicial) ───────────────────────────────── */
.case-rows { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.case-row { display: grid; border-bottom: 1px solid var(--line-2); }
.case-row__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px 0; }
.case-row__name { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.05em; }
.case-row__name a { text-decoration: none; }
.case-row__name a:hover { color: var(--accent-text); }
.case-row__summary { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.case-row .spec { width: 100%; margin-top: 6px; }
.case-row__media {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 40px 24px; margin-bottom: 32px; min-height: 280px;
    background-color: var(--bg-alt);
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 18px 18px;
    border: 1px solid var(--line);
}
.case-row__media::before { content: ""; position: absolute; left: -1px; top: -1px; width: 56px; height: 4px; background: var(--case); }
@media (min-width: 960px) {
    .case-row { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
    .case-row__text { padding: 56px 0; }
    .case-row__media { margin: 40px 0; padding: 48px; }
}
.theme-newliving { --case: var(--nl); }
.theme-agapone { --case: var(--ag); }
.theme-escandaloku { --case: var(--es); }

/* ── Serviços ─────────────────────────────────────────────── */
.services { border-top: 1px solid var(--line-2); }
.service { display: grid; gap: 14px 32px; padding: 32px 0; border-bottom: 1px solid var(--line-2); }
.service__n { font: 500 13px var(--mono); color: var(--accent-text); }
.service h3 { font-size: clamp(24px, 2.6vw, 32px); }
.service__main p { margin-top: 10px; color: var(--ink-2); max-width: 460px; }
@media (min-width: 900px) { .service { grid-template-columns: 80px 1.1fr 1fr; padding: 40px 0; align-items: start; } .service .ticks { padding-top: 8px; } }

/* ── Processo ─────────────────────────────────────────────── */
.steps { display: grid; border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 26px 0 28px 52px; border-bottom: 1px solid var(--line); }
.step__n { position: absolute; left: 0; top: 28px; font: 500 13px var(--mono); color: var(--accent-text); }
.step h3 { font-size: 21px; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 1000px) {
    .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; }
    .step { padding: 0 22px 0 0; border-bottom: 0; }
    .step__n { position: static; display: block; padding: 14px 0 22px; border-top: 1px solid var(--line-2); }
    .step:first-child .step__n { border-top: 3px solid var(--accent); padding-top: 12px; }
}

/* ── Matriz de capacidades ────────────────────────────────── */
.matrix { border-top: 1px solid var(--line-2); }
.matrix > div { display: grid; gap: 12px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.matrix dt { font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 760px) { .matrix > div { grid-template-columns: 220px 1fr; align-items: baseline; } }
.matrix--tight > div { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 10px; border: 1px solid var(--line-2); background: var(--surface); font: 500 12.5px/1.4 var(--mono); color: var(--ink); }

/* ── Contacto ─────────────────────────────────────────────── */
.section--contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 48px; }
.contact__intro { display: grid; gap: 18px; align-content: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.contact__direct-label { margin-top: 18px; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.contact__direct { display: grid; border-top: 1px solid var(--line); }
.contact__direct a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.contact__direct a:hover { color: var(--accent-text); }
.contact__direct svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.contact__direct small { display: block; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.contact-form { display: grid; gap: 18px; padding: 28px 20px; border: 1px solid var(--line-2); background: var(--surface); }
@media (min-width: 720px) { .contact-form { padding: 36px; } }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field em { font-style: normal; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 0;
    background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: #D33A2C; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.contact-form__consent { flex: 1 1 200px; font-size: 13px; color: var(--ink-3); }
.contact-form__status { min-height: 1.4em; font: 500 14px var(--mono); }
.contact-form__status.is-ok { color: var(--ok); }
.contact-form__status.is-error { color: #D33A2C; }
.contact-form.is-sent .field, .contact-form.is-sent .field-row, .contact-form.is-sent .contact-form__foot { opacity: 0.45; pointer-events: none; }

/* ── Página de caso ───────────────────────────────────────── */
.case__hero { padding: 40px 0 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; font: 500 12px var(--mono); color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.case__hero h1 { margin-top: 18px; }
.case__intro-row { display: grid; gap: 24px; margin-top: 28px; align-items: end; }
.case__intro { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 760px; }
@media (min-width: 900px) { .case__intro-row { grid-template-columns: 1fr auto; gap: 48px; } }
.case__meta { margin-top: 40px; }
.case__band {
    padding: 56px 0 72px;
    background-color: var(--bg-alt);
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 18px 18px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: relative;
}
.case__band::before { content: ""; position: absolute; left: 0; top: -1px; width: 120px; height: 4px; background: var(--case); }
@media (min-width: 900px) { .case__band { padding: 80px 0 96px; } }
.story { display: grid; gap: 48px; }
.story > div { display: grid; gap: 14px; align-content: start; }
.story p:last-child { font-size: 18px; color: var(--ink-2); }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 80px; } }
.case__h { margin-bottom: 40px; }
.features { display: grid; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.feature { padding: 24px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.feature__n { font: 500 12px var(--mono); color: var(--accent-text); }
.feature h3 { margin-top: 14px; font-size: 19px; letter-spacing: -0.02em; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.proof__grid--case { margin-bottom: 56px; }
.case__gallery {
    padding: 48px 20px;
    background-color: var(--bg-alt);
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 18px 18px;
    border: 1px solid var(--line);
}
.tech-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .tech-grid { grid-template-columns: 1.15fr 0.85fr; gap: 80px; } }
.note { align-self: start; display: grid; gap: 16px; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); }
.note__body { font-size: 17px; line-height: 1.65; }
.note__foot { font-size: 14px; color: var(--ink-3); }
.end-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .end-grid { grid-template-columns: 1.4fr 1fr; } }
.end-cta { display: grid; gap: 16px; align-content: start; justify-items: start; padding: 40px 32px; background: var(--ink); color: var(--bg); }
.end-cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.next-case { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 220px; padding: 32px; border: 1px solid var(--line-2); text-decoration: none; background: var(--surface); }
.next-case::before { content: ""; position: absolute; left: -1px; top: -1px; width: 56px; height: 4px; background: var(--case); }
.next-case:hover { border-color: var(--ink); }
.next-case__name { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.04em; }
.next-case__name svg { width: 26px; height: 26px; transition: transform .15s ease; }
.next-case:hover .next-case__name svg { transform: translateX(5px); }
.next-case__tag { font: 400 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

/* ── Rodapé ───────────────────────────────────────────────── */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line-2); font-size: 15px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.footer__brand p { margin-top: 16px; max-width: 340px; color: var(--ink-2); }
.footer__h { margin-bottom: 14px; font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact svg { width: 16px; height: 16px; flex: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--ink-3); }

/* ── Revelação ao fazer scroll (uma vez, sem animações perpétuas) ── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .js .viewer__panel .frame { animation: none !important; }
    .btn svg, .link-arrow svg, .next-case__name svg { transition: none; }
}

/* Acertos: a última funcionalidade ocupa o resto da linha; ligações não esticam na grelha. */
@media (min-width: 720px) and (max-width: 1039px) { .feature:last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
@media (min-width: 1040px) {
    .feature:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
    .feature:last-child:nth-child(3n+2) { grid-column: span 2; }
}
.viewer__foot .link-arrow, .case-row .link-arrow { justify-self: start; }

/* ── Telemóvel: áreas de toque de 44px e cabeçalho que cabe em 320px ── */
.spec dt { font-size: 11px; }
.lang a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; }
.lang--drawer { align-self: flex-start; margin-top: 16px; }
.lang--drawer a { min-height: 44px; padding: 0 16px; font-size: 13px; }
@media (min-width: 1000px) { .lang--drawer { display: none; } }
@media (max-width: 999px) {
    .theme-toggle, .menu-btn { width: 44px; height: 44px; }
    .logo { padding: 10px 0; }
    .link-arrow { min-height: 44px; align-items: center; padding: 10px 0 8px; }
    .crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
    .crumbs { margin-bottom: 24px; }
    .site-footer ul { gap: 0; }
    .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
    .contact__direct a { min-height: 56px; }
}
@media (max-width: 419px) {
    .header__tools > .lang { display: none; }
    .header__inner { gap: 12px; }
    .wordmark { font-size: 19px; }
}
.drawer .lang--drawer a { align-items: center; min-height: 44px; padding: 0 18px; border-bottom: 0; font: 600 13px/1 var(--mono); letter-spacing: 0.06em; }
.drawer .lang--drawer a.is-active { color: var(--bg); }
.viewer__name, .viewer__tag { overflow-wrap: anywhere; }
@media (max-width: 639px) { .viewer__stage { padding: 28px 12px; min-height: 0; } }

/* Composição browser + telemóvel também nos cartões e no visualizador (produtos web desktop e móvel). */
.visual--card.visual--browser-phone { justify-content: flex-start; padding-right: 8%; }
.visual--card.visual--browser-phone .frame--browser { width: 88%; max-width: 760px; }
.visual--card.visual--browser-phone .frame--phone { position: absolute; right: 0; bottom: -8%; width: 28%; max-width: 220px; border-width: 4px; border-radius: 16px; }
.visual--card.visual--browser-phone .frame--phone img { border-radius: 12px; }
/* Galeria browser + dois telemóveis (Agapone: web e Android). */
@media (min-width: 900px) {
    .visual--gallery.visual--browser-phone-phone { flex-wrap: nowrap; align-items: center; }
    .visual--gallery.visual--browser-phone-phone .frame--browser { width: 60%; }
    .visual--gallery.visual--browser-phone-phone .frame--phone { width: 16%; }
}
