/* ==========================================================================
   CoreKit — design system
   Paleta extraída do logótipo: #171810 · #03FA6E · #FFFFFF
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback com as métricas do Inter: evita o salto do texto enquanto a fonte carrega. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

:root {
  --bg: #171810;
  --bg-2: #1e2016;
  --bg-3: #272a1d;
  --bg-deep: #11120b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-field: #70755f; /* contorno de campos: 3:1 contra o cartão */
  --green: #03fa6e;
  --green-rgb: 3, 250, 110;
  --green-tint: rgba(var(--green-rgb), 0.06);
  --green-line: rgba(var(--green-rgb), 0.4);
  --green-line-strong: rgba(var(--green-rgb), 0.5);
  --on-green: #0a0c06;
  --green-glow: rgba(var(--green-rgb), 0.16);
  --ink: #ffffff;
  --muted: #b4b9a8;
  --dim: #8d9380;
  --danger: #ff6b6b;

  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica: usar sempre estes passos, não valores soltos. */
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8rem;
  --fs-sm: 0.875rem;
  --fs-md: 0.92rem;
  --fs-body-sm: 0.97rem;
  --fs-ui: 1rem; /* campos e botões: nunca abaixo de 16px, para o iOS não fazer zoom */
  --fs-body: 1.0625rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.3rem;
  --fs-2xl: 1.4rem;
  --fs-3xl: 1.55rem;
  --fs-4xl: 1.8rem;
  --fs-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-h2-sm: clamp(1.8rem, 3.4vw, 2.6rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.2rem);
  --fs-h1: clamp(2.3rem, 5vw, 3.9rem);
  --fs-hero: clamp(2.4rem, 4.4vw, 3.8rem);

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* scroll-padding-top: altura do cabeçalho fixo (76px) + folga, para âncoras e foco não ficarem tapados. */
html { scroll-behavior: smooth; scroll-padding-top: 92px; color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
/* O Outfit em pesos altos + tracking negativo comprime os espaços: compensamos. */
h1, h2, h3, h4, .btn, .brand, .chip, .faq summary, .price, .contact-item b, .quote blockquote, .prose blockquote, .compare thead th, .plan-tag { word-spacing: 0.1em; }
h1, h2, h3 { text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--on-green); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: var(--radius-xs); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia utilitária ---------- */
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--muted); }
.accent { color: var(--green); }
.small { font-size: var(--fs-sm); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-ui); letter-spacing: -0.005em;
  padding: 15px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 0 0 0 var(--green-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); background: #2bff86; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: var(--fs-body); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .7; pointer-events: none; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.2; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 500; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 24, 16, 0.78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-3xl); letter-spacing: -0.03em; }
.brand-mark { height: 34px; width: auto; aspect-ratio: 571 / 354; flex: none; }
.brand-name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  padding: 10px 14px; border-radius: var(--radius-pill); font-size: var(--fs-body-sm); color: var(--muted); font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav .btn { padding: 12px 22px; font-size: var(--fs-body-sm); margin-left: 10px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 18px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-open { overflow: hidden; } /* a página atrás do menu não faz scroll */
  .nav a.nav-link { font-size: var(--fs-lg); padding: 14px 8px; border-radius: var(--radius-xs); }
  .nav .btn { margin: 14px 0 0; padding: 16px 22px; }
}

/* ---------- Secções ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-follow { padding-top: 20px; } /* secção logo a seguir ao .page-hero */
.section-compact { padding-block: clamp(40px, 5vw, 64px); } /* faixa curta, sem título próprio */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); margin: 18px 0 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 90%;
  background: radial-gradient(closest-side, var(--green-tint), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { font-size: var(--fs-hero); margin: 22px 0 26px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: var(--fs-body-sm); }
.hero-note li { display: inline-flex; align-items: center; gap: 9px; }
.hero-note svg { width: 18px; height: 18px; color: var(--green); flex: none; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-size: var(--fs-sm); color: var(--muted);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* Mock de resultados de pesquisa (ilustrativo) */

/* Pesquisa viva (js/hero-search.js): o cursor só existe enquanto a animação corre. */

@keyframes caret { 50% { opacity: 0; } }

/* Título do topo: "no Google" e "com preço fixo." nunca se partem a meio. */
.hero h1 .nw { white-space: nowrap; }
@media (max-width: 380px) { .hero h1 .nw { white-space: normal; } }

.node-pulse { animation: nodepulse 2.6s ease-in-out 3; transform-origin: center; transform-box: fill-box; }
@keyframes nodepulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }

@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Grelhas e cartões ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); position: relative;
}
.section-alt .card { background: var(--bg); }
a.card:hover { border-color: var(--green-line); transform: translateY(-4px); }
.card h3 { font-size: var(--fs-2xl); margin: 22px 0 12px; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin-top: 18px; display: grid; gap: 10px; }
.icon-box {
  width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--green-tint); border: 1px solid rgba(var(--green-rgb), 0.28); color: var(--green);
}
.icon-box svg { width: 26px; height: 26px; }
.card-num { position: absolute; top: 26px; right: 30px; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--dim); letter-spacing: 0.14em; }

.check-list { display: grid; gap: 12px; }
.check-list.roomy { gap: 18px; }
.check-list b { color: var(--ink); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: var(--fs-body-sm); line-height: 1.5; }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }
.check-list.ink li { color: var(--ink); }

/* Passos ligados por "circuito" */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: step; }
.step { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); position: relative; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--green); color: var(--green);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); margin-bottom: 22px; background: var(--bg);
}
.step h3 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 57px; left: calc(100% - 4px); width: 28px; height: 2px; background: var(--green); opacity: .7; z-index: 2;
}
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* Comparação "sem / com" */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus > div { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: var(--bg-2); }
.versus .with { border-color: var(--green-line); background: linear-gradient(180deg, rgba(var(--green-rgb), 0.07), rgba(var(--green-rgb), 0.015)); }
.versus h3 { font-size: var(--fs-xl); margin-bottom: 18px; }
.versus ul { display: grid; gap: 12px; }
.versus li { display: flex; gap: 12px; color: var(--muted); font-size: var(--fs-body-sm); line-height: 1.5; }
.versus li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.versus .without svg { color: var(--danger); }
.versus .with svg { color: var(--green); }
.versus .with li { color: var(--ink); }
@media (max-width: 720px) { .versus { grid-template-columns: 1fr; } }

/* ---------- Preços ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; max-width: 960px; margin-inline: auto; }
.plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 42px); display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--green-line-strong); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6); }
.plan-tag { position: absolute; top: -13px; left: 34px; background: var(--green); color: var(--on-green); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); }
.plan h3 { font-size: var(--fs-3xl); }
.plan .plan-desc { color: var(--muted); margin: 10px 0 26px; font-size: var(--fs-body-sm); min-height: 3.2em; }
.price-row { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-block: 1px solid var(--line); margin-bottom: 26px; }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: var(--fs-xl); font-weight: 500; }
.price.price-sm { font-size: var(--fs-4xl); }
.price.price-sm small { font-size: var(--fs-ui); }
.price-label { color: var(--muted); font-size: var(--fs-md); }
.plan .check-list { margin-bottom: 30px; display: grid; gap: 13px; flex: 1; }
.plan .btn { margin-top: auto; }
.fine-print { text-align: center; color: var(--dim); font-size: var(--fs-md); max-width: 70ch; margin: 30px auto 0; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: var(--fs-body-sm); }
.compare thead th { font-family: var(--font-display); font-size: var(--fs-body); background: rgba(255, 255, 255, 0.03); }
.compare tbody:last-child tr:last-child td, .compare tbody:last-child tr:last-child th { border-bottom: 0; }
.compare th[scope="row"] { font-weight: 500; color: var(--ink); }
.compare td { color: var(--muted); }
.compare td.yes { color: var(--green); font-weight: 600; }
.compare .group th { background: var(--green-tint); color: var(--green); font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; padding-block: 12px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 12px 20px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--ink); font-size: var(--fs-body-sm); transition: border-color .25s, color .25s, transform .25s var(--ease); }
a.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Testemunhos ---------- */
.quote { display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.45; letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; color: var(--green); font-size: 3.4rem; line-height: .5; margin-bottom: 14px; }
.quote figcaption { color: var(--muted); font-size: var(--fs-md); margin-top: auto; }
.quote figcaption b { color: var(--ink); font-weight: 600; display: block; }

.case-result { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--green); margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .25s; }
.section-alt .faq details { background: var(--bg); }
.faq details[open] { border-color: var(--green-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lg); letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-4xl); font-weight: 300; color: var(--green); line-height: 1; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; border: 1px solid var(--green-line); border-radius: var(--radius-xl);
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background: radial-gradient(70% 120% at 50% 0%, var(--green-tint), transparent 70%), var(--bg-2);
}
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; margin: 0 auto 20px; }
.cta-band .lead { margin: 0 auto 34px; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-circuit { position: absolute; inset: auto 0 0 0; width: 100%; height: 90px; opacity: .5; pointer-events: none; }

/* ---------- Page hero (páginas interiores) ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero::before { content: none; }
.page-hero h1 { font-size: var(--fs-h1); margin: 20px 0 22px; max-width: 20ch; position: relative; }
.page-hero .lead { position: relative; }
.crumbs { font-size: var(--fs-md); color: var(--dim); display: flex; gap: 8px; margin-bottom: 8px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--green); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

.feature-row { padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.feature-row h3, .feature-row .feature-title { font-size: var(--fs-h2-sm); margin: 0 0 16px; }
.feature-row .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: clamp(24px, 3vw, 36px); }
.feature-row .panel h4, .feature-row .panel-title { font-size: var(--fs-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 500; margin-bottom: 18px; font-family: var(--font-body); }

/* ---------- Formulários ---------- */
.form-card { container-type: inline-size; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); }
.form-card h2 { font-size: var(--fs-4xl); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
@container (max-width: 420px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-md); font-weight: 500; color: var(--ink); }
.field label .opt { color: var(--dim); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-deep); color: var(--ink); border: 1.5px solid var(--line-field); border-radius: var(--radius-sm); padding: 14px 16px; font: inherit; font-size: var(--fs-ui);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2303fa6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 7 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-glow); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: var(--fs-sm); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-md); color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin-top: 2px; }
.consent a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 1px solid rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.08); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px; font-size: var(--fs-body-sm); }

.contact-list { display: grid; gap: 14px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .25s, transform .25s var(--ease); }
a.contact-item:hover { border-color: var(--green); transform: translateX(4px); }
.contact-item .icon-box { width: 46px; height: 46px; border-radius: var(--radius-sm); flex: none; }
.contact-item .icon-box svg { width: 22px; height: 22px; }
.contact-item b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-body); }
.contact-item span { color: var(--muted); font-size: var(--fs-md); }

/* ---------- Blog & prose ---------- */
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card time { color: var(--dim); font-size: var(--fs-sm); letter-spacing: .06em; }
.post-card h3 { margin: 0; font-size: var(--fs-2xl); }
.post-card:hover h3 { color: var(--green); }
.prose { max-width: 720px; margin-inline: auto; font-size: var(--fs-body); }
.prose h2 { font-size: var(--fs-4xl); margin: 2.2em 0 .6em; }
.prose h3 { font-size: var(--fs-2xl); margin: 1.8em 0 .5em; }
.prose p, .prose li { color: #d6dacb; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.2em; display: block; }
.prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green); color: var(--ink); font-family: var(--font-display); font-size: var(--fs-xl); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 34px; margin-top: 40px; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 18px 0 0; font-size: var(--fs-body-sm); }
.tagline { font-size: var(--fs-2xs); letter-spacing: 0.42em; text-transform: uppercase; color: var(--green); margin-top: 18px; }
.footer-title { font-family: var(--font-body); line-height: 1.4; word-spacing: normal; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; font-weight: 500; }
.site-footer li { margin-bottom: 11px; }
.site-footer li a { color: var(--muted); font-size: var(--fs-body-sm); transition: color .2s; }
.site-footer li a:hover { color: var(--green); }
@media (pointer: coarse) { .site-footer li { margin-bottom: 0; } .site-footer li a { display: inline-block; padding-block: 9px; } }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--dim); font-size: var(--fs-sm); }
.footer-bottom a { color: var(--muted); } .footer-bottom a:hover { color: var(--green); }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--on-green); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
/* Em ecrãs estreitos o botão encolhe e o rodapé ganha folga, para não tapar a última linha. */
@media (max-width: 720px) {
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 25px; height: 25px; }
  body:not(:has(.mobile-cta)):has(.wa-float) .footer-bottom { padding-bottom: 64px; }
}

/* Thank-you */
.thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.thanks .tick { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; margin: 0 auto 28px;  }
.thanks .tick svg { width: 40px; height: 40px; }
.thanks h1 { font-size: var(--fs-h2); margin-bottom: 18px; }

/* ---------- Circuito decorativo ---------- */
.circuit-line { stroke: var(--green); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Movimento reduzido: sai o deslocamento, ficam as mudanças de cor e de opacidade,
   que dizem ao visitante que algo reagiu sem mexer a página. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .node-pulse { animation: none; }
  .nav { transform: none; }
  .btn:hover, .btn-ghost:hover, .btn:hover svg, .link-arrow:hover svg, a.card:hover, a.chip:hover,
  a.contact-item:hover, .wa-float:hover, .project:hover .project-shot img { transform: none; }
}

/* Barra escura da CoreKit, com o interruptor das notas ligado */

/* Início da secção de especialidades, cortada em baixo: a página continua. */

/* Telemóvel sobreposto ao canto: só entra quando há cqw para o dimensionar. */

/* Telemóvel: a miniatura fica só com o essencial, numa escala que ainda se lê. */

a.chip { text-decoration: none; }

/* ---------- Projetos reais ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.projects.is-single { grid-template-columns: 1fr; }
.project { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s var(--ease); }
.section-alt .project { background: var(--bg); }
.project:hover { border-color: var(--green-line); }
.project-shot { display: block; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.project-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #ecebe6; color: #5d6158; font-size: var(--fs-2xs); }
.project-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfcdc4; }
.project-bar span { margin-left: 10px; padding: 2px 12px; border-radius: var(--radius-pill); background: #fff; }
.project-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project:hover .project-shot img { transform: scale(1.025); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 3vw, 32px); }
.project-meta { color: var(--dim); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.project h3 { font-size: var(--fs-3xl); margin: 10px 0 12px; }
.project-body > p { color: var(--muted); }
.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 22px; }
.project-tags li { font-size: var(--fs-xs); padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--ink); }
.project .link-arrow { margin-top: auto; }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Fundador ---------- */
.founder { display: flex; gap: 20px; align-items: center; }
.founder-photo { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo span { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-3xl); color: var(--green); letter-spacing: .02em; }
.founder-quote { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.4; color: var(--ink); margin: 0 0 8px; }
.founder-sign { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.founder-sign b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.founder-compact { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0 8px; }
/* Página inicial: faixa curta entre os projetos e o problema. */
.section-founder { padding-block: clamp(40px, 6vw, 64px); }
.founder-home { max-width: 760px; margin-inline: auto; gap: clamp(18px, 3vw, 28px); }
.founder-home .founder-photo { width: clamp(88px, 14vw, 120px); height: clamp(88px, 14vw, 120px); }
.founder-home .founder-quote { font-size: var(--fs-xl, var(--fs-lg)); }
.founder-home .founder-sign a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 560px) { .founder-home { flex-direction: column; align-items: flex-start; } }

.founder-full { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-full .founder-photo { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); }
.founder-full .founder-photo span { font-size: clamp(3rem, 7vw, 5rem); }
.founder-full h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.founder-full p:not(.lead) { color: var(--muted); max-width: 62ch; }
@media (max-width: 720px) { .founder-full { grid-template-columns: 1fr; } .founder-full .founder-photo { max-width: 200px; } }
/* Fotografia vertical na página Sobre. */
.founder-full.has-portrait { grid-template-columns: minmax(220px, 400px) 1fr; }
.founder-full.has-portrait .founder-photo { aspect-ratio: 800 / 1089; border-radius: var(--radius-lg); }
@media (max-width: 720px) { .founder-full.has-portrait { grid-template-columns: 1fr; } .founder-full.has-portrait .founder-photo { max-width: 420px; } }
.form-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: var(--fs-md); }
.thanks-next .row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home ---------- */
.section-head h2:first-child { margin-top: 0; }
.home-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 36px; }
.home-aside { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-body-sm); }
.home-aside a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green); }
.home-aside a:hover { color: var(--green); }

/* ---------- Lista editorial (substitui grelhas de cartões com ícone) ---------- */
.feature-list { row-gap: clamp(32px, 4vw, 48px); column-gap: clamp(28px, 4vw, 56px); }
.feature-list .card,
.section-alt .feature-list .card { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; align-content: start; background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 26px 0 0; }
.feature-list .card:hover { transform: none; border-color: var(--line-strong); }
.feature-list .icon-box { width: 24px; height: 24px; background: none; border: 0; border-radius: 0; margin-top: 3px; color: var(--green); }
.feature-list .icon-box svg { width: 22px; height: 22px; }
.feature-list .card h3 { grid-column: 2; margin: 0 0 10px; font-size: var(--fs-xl); }
.feature-list .card p { grid-column: 2; color: var(--muted); margin: 0; }

/* Projeto único: momento editorial em largura total */
.projects.is-single .project { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.projects.is-single .project-shot { border-bottom: 0; border-right: 1px solid var(--line); }
.projects.is-single .project-shot img { height: 100%; aspect-ratio: auto; min-height: 100%; }
.projects.is-single .project-body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.projects.is-single .project h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 920px) {
  .projects.is-single .project { grid-template-columns: 1fr; }
  .projects.is-single .project-shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .projects.is-single .project-shot img { aspect-ratio: 16 / 10; height: auto; }
}

/* ---------- Utilitários de página ---------- */
.section-flush { padding-top: 0; }
.mt-lg { margin-top: 26px; }
.split-title { font-size: var(--fs-h2-sm); margin: 0 0 18px; }
.page-hero h1.wide { max-width: 24ch; }
.quote { margin: 0; }
.form-card > .muted { margin: 0; }
.thanks .lead { margin: 0 auto 36px; max-width: 56ch; }
.thanks-next > .muted { margin: 0 0 16px; }
.thanks-next .row { justify-content: center; }
.thanks-next .row + p { margin: 22px 0 0; }

/* ---------- Alto contraste do sistema ---------- */
@media (forced-colors: active) {
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { forced-color-adjust: none; background: ButtonText; }
  .nav-open .nav-toggle span { background: transparent; }
}

/* ---------- Impressão ---------- */
@media print {
  :root {
    --bg: #fff; --bg-2: #fff; --bg-3: #fff; --bg-deep: #fff;
    --ink: #000; --muted: #333; --dim: #555; --green: #0a7a3a; --on-green: #fff;
    --line: #ccc; --line-strong: #999; --green-line: #999; --green-line-strong: #666; --green-tint: transparent;
    color-scheme: light;
  }
  .js .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
  .nav, .nav-toggle, .wa-float, .mobile-cta, .skip-link, .cta-circuit, .hero::before { display: none; }
  .section { padding: 28px 0; }
  .card, .plan, .step, .project, .faq details { break-inside: avoid; }
  a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: var(--fs-xs); color: var(--dim); }
}

/* ---------- Hero: preço em destaque e estado de pré-lançamento ---------- */
.hero-price { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.3; color: var(--ink); margin: 0 0 32px; word-spacing: 0.1em; }
.hero-price b { font-weight: 600; }
.hero-status { margin: 22px 0 0; max-width: 52ch; color: var(--muted); font-size: var(--fs-body-sm); }
.hero-status + .hero-note { margin-top: 16px; }
.page-hero h1 em { font-style: normal; color: var(--green); }

/* Ficha ilustrada: os botões que uma ficha completa mostra no Google */

.check-list.never svg { color: var(--danger); }

/* ---------- Planos: total do primeiro ano e pedido único com as vendas fechadas ---------- */
.price-total { margin: 8px 0 0; color: var(--muted); font-size: var(--fs-md); }
.plan .check-list:last-child { margin-bottom: 0; }
.plans-closed { max-width: 960px; margin: 28px auto 0; padding: 22px clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.plans-closed p { margin: 0; max-width: 52ch; }
.compare tr.same td.yes { color: var(--muted); font-weight: 400; }

/* ---------- Aviso de abertura numa linha (faixa final) ---------- */
.waitlist { position: relative; max-width: 620px; margin: 0 auto; display: grid; gap: 14px; text-align: left; }
.waitlist-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.waitlist .btn { min-height: 56px; }
@media (max-width: 560px) { .waitlist-row { grid-template-columns: 1fr; } }
.cta-more { position: relative; margin: 26px 0 0; }

/* ---------- Barra de ação no telemóvel ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: flex; align-items: center; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-deep); border-top: 1px solid var(--line-strong);
  }
  .mobile-cta .btn { flex: 1; padding: 15px 18px; }
  .mobile-wa { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: var(--green); }
  .mobile-wa svg { width: 24px; height: 24px; }
  body:has(.mobile-cta) { padding-bottom: 72px; }
  body:has(.mobile-cta) .wa-float { display: none; }
  /* Enquanto o aviso de cookies está aberto, a barra sai do caminho: as duas juntas tapavam um terço do ecrã. */
  body:has(.cookie-banner:not([hidden])) .mobile-cta { display: none; }
}

/* ---------- Condições comerciais (/precos) ---------- */
.terms { max-width: 960px; margin: clamp(48px, 6vw, 80px) auto 0; }
.terms h2 { font-size: var(--fs-h2-sm); margin-bottom: 26px; }
.terms dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 56px); }
.terms dl > div { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.terms dt { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; word-spacing: 0.1em; margin-bottom: 6px; }
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .terms dl { grid-template-columns: 1fr; } }

/* ---------- Setores (home) ---------- */
.sectors-label { margin: 0 0 18px; color: var(--muted); }
.sectors-note { margin: 22px 0 0; color: var(--muted); font-size: var(--fs-body-sm); }
.sectors-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green); }
.sectors-note a:hover { color: var(--green); }

/* Três projetos: uma linha de três em ecrãs largos */
@media (min-width: 1100px) {
  .projects.is-triple { grid-template-columns: repeat(3, 1fr); }
  .projects.is-triple .project h3 { font-size: var(--fs-xl); }
}

/* ---------- Ajustes responsivos (verificação de 05/10/2026) ---------- */
/* Com o menu aberto, a barra de baixo repetia o mesmo botão por trás do painel. */
.nav-open .mobile-cta { display: none; }

/* Tabela de planos: em ecrãs estreitos cabe inteira, sem scroll lateral escondido. */
@media (max-width: 640px) {
  table.compare { min-width: 0; table-layout: fixed; }
  .compare th, .compare td { padding: 12px 10px; font-size: var(--fs-sm); overflow-wrap: break-word; }
  .compare th:first-child { width: 46%; }
  .compare thead th { font-size: var(--fs-md); }
}

/* Telemóvel deitado: cabeçalho e barra fixos ocupavam 40% da altura. */
@media (max-height: 480px) and (max-width: 920px) {
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
}
@media (max-height: 480px) and (max-width: 720px) {
  .mobile-cta { display: none; }
  body:has(.mobile-cta) { padding-bottom: 0; }
  body:has(.mobile-cta) .wa-float { display: grid; }
}

/* Toque: ligações soltas com a altura mínima de 44px. */
@media (pointer: coarse) {
  .link-arrow { min-height: 44px; }
  .crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* O efeito de levantar só existe onde há rato: no toque ficava preso depois de tocar. */
@media (hover: none) {
  a.card:hover, a.chip:hover, a.contact-item:hover, .btn:hover, .btn-ghost:hover, .wa-float:hover { transform: none; }
}
/* Menu móvel aberto: ocupa o ecrã até ao fundo, para não se ver a página por baixo. */
@media (max-width: 920px) { .nav { min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px); } }

/* ---------- Blog ---------- */
:root {
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --code-keyword: #f78c6c;
  --code-string: #a5e887;
  --code-number: #f9c66b;
  --code-title: #82d9ff;
  --code-attr: #e6d9a8;
  --code-tag: #ff8f8f;
}

/* Listagem: pesquisa, categorias e paginação. */
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-bottom: 36px; }
.blog-search { display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.blog-search .input { flex: 1; min-width: 0; }
.blog-cats { gap: 8px; }
.blog-cats .chip { padding: 9px 16px; font-size: var(--fs-md); }
.chip.is-active { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.blog-more { display: contents; }
.blog-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.blog-more summary::-webkit-details-marker { display: none; }
.blog-more summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.blog-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.blog-more summary:hover { border-color: var(--green); color: var(--green); }
.blog-more > .chips { flex-basis: 100%; }
.page-hero--compact { padding-bottom: clamp(12px, 2vw, 24px); }
.start-here { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; margin-bottom: 44px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--green-line); border-radius: var(--radius-lg); background: var(--green-tint); }
.start-here__label { margin: 0 0 6px; color: var(--green); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.start-here h2 { margin: 0 0 8px; font-size: var(--fs-3xl); }
.start-here p:not(.start-here__label) { margin: 0; max-width: 62ch; color: var(--muted); }
.start-here__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .start-here { grid-template-columns: 1fr; } }
.blog-result { margin: -12px 0 28px; }
.blog-result a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; }
.pagination__step { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink); font-size: var(--fs-md); }
a.pagination__step:hover { border-color: var(--green); color: var(--green); }
.pagination__step[aria-disabled] { color: var(--dim); border-color: var(--line); }
.pagination__status { color: var(--muted); font-size: var(--fs-md); }

/* Cartões e metadados. */
.post-card__media { aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line-strong); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--dim); font-size: var(--fs-sm); }
.post-meta--hero { color: var(--muted); font-size: var(--fs-md); margin-top: 22px; position: relative; }
.post-meta--card { flex-direction: column; align-items: flex-start; gap: 10px; }
.post-meta__line { display: inline-flex; flex-wrap: wrap; gap: 0 8px; }
.post-badge { padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--green-line); color: var(--green); font-size: var(--fs-xs); letter-spacing: .02em; }

/* Artigo: imagem de destaque, barra de progresso e aviso de pré-visualização. */
.post-hero-media { aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; margin-top: 32px; position: relative; }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.preview-bar { background: var(--code-number); color: #1a1400; text-align: center; padding: 10px var(--gutter); font-size: var(--fs-md); font-weight: 500; }

/* Artigo: texto ao centro, índice ao lado em ecrãs largos. */
.post-main { max-width: 720px; margin-inline: auto; min-width: 0; }
.post-toc { max-width: 720px; margin: 0 auto 32px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); padding: 14px 18px; }
.toc summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: var(--fs-md); line-height: 1.4; }
.toc .toc-l3 a { padding-left: 26px; font-size: var(--fs-sm); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--green); border-left-color: var(--green); }
@media (min-width: 1100px) {
  .post-layout.has-toc { display: grid; grid-template-columns: minmax(0, 720px) 260px; justify-content: center; gap: 64px; align-items: start; }
  .post-layout.has-toc .post-main { margin: 0; }
  .post-toc { order: 2; margin: 0; position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; }
  .toc { border: 0; background: none; padding: 0; }
  .toc summary { list-style: none; cursor: default; pointer-events: none; }
  .toc summary::-webkit-details-marker { display: none; }
}

/* Artigo: tipografia para conteúdo técnico. */
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { position: relative; }
.prose .heading-anchor { margin-left: .4em; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity .2s; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .prose .heading-anchor:focus-visible { opacity: 1; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 1.6em 0; }
.prose :not(pre) > code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; color: var(--ink); overflow-wrap: anywhere; }
.prose .code-block, .prose > pre { margin: 1.6em 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-deep); overflow: hidden; }
.prose pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.65; tab-size: 4; color: #e6e9dc; }
.prose pre code { font-family: inherit; background: none; padding: 0; white-space: pre; }
.prose pre:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--dim); text-transform: lowercase; }
.code-bar button { font: inherit; font-family: var(--font-body); text-transform: none; color: var(--muted); background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 5px 12px; cursor: pointer; }
.code-bar button:hover { color: var(--green); border-color: var(--green); }
.hljs-comment, .hljs-quote { color: var(--dim); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-type, .hljs-doctag { color: var(--code-keyword); }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-template-string { color: var(--code-string); }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet { color: var(--code-number); }
.hljs-title, .hljs-section, .hljs-selector-id, .hljs-selector-class { color: var(--code-title); }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable, .hljs-property, .hljs-params { color: var(--code-attr); }
.hljs-tag, .hljs-name, .hljs-deletion { color: var(--code-tag); }
.hljs-meta, .hljs-punctuation, .hljs-operator { color: var(--muted); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); color: #d6dacb; }
.prose th { color: var(--ink); background: var(--bg-2); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote.callout { font-family: var(--font-body); font-size: var(--fs-body); border: 1px solid color-mix(in srgb, var(--callout, var(--green)) 45%, transparent); border-radius: var(--radius-xs); background: color-mix(in srgb, var(--callout, var(--green)) 6%, var(--bg-2)); padding: 16px 20px; }
.prose .callout p { margin: 0 0 .6em; color: #d6dacb; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout .callout-title { font-family: var(--font-display); font-weight: 600; color: var(--callout, var(--green)); margin-bottom: .3em; }
.callout-nota { --callout: var(--code-title); }
.callout-dica { --callout: var(--green); }
.callout-aviso { --callout: var(--code-number); }
.callout-importante { --callout: var(--code-tag); }
/* Modelos e exemplos: texto para copiar, não um aviso. Fundo neutro, letra normal, botão "Copiar" no título. */
.prose blockquote.callout-modelo, .prose blockquote.callout-exemplo { --callout: var(--muted); border-color: var(--line-strong); border-style: dashed; background: var(--bg-2); }
.prose .callout-modelo p, .prose .callout-exemplo p { color: var(--ink); }
.prose .callout-modelo .callout-title, .prose .callout-exemplo .callout-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.callout-copy { font: inherit; font-family: var(--font-body); font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; color: var(--muted); background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 4px 12px; cursor: pointer; }
.callout-copy:hover { color: var(--green); border-color: var(--green); }
.prose li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3em; }
.prose li > input[type="checkbox"] { margin-right: .5em; accent-color: var(--green); }
.prose .footnotes { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: var(--fs-md); }

/* Artigo: galeria, etiquetas, partilha, autor e navegação. */
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; }
.post-gallery a { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.post-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--ease); }
.post-gallery a:hover img { transform: scale(1.04); }
.post-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.post-tags a, .share-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: none; color: var(--muted); font: inherit; font-size: var(--fs-md); cursor: pointer; }
.post-tags a:hover, .share-btn:hover { border-color: var(--green); color: var(--green); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--dim); font-size: var(--fs-md); }
.post-author { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.post-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.post-author b { display: block; color: var(--ink); font-family: var(--font-display); }
.post-author span { color: var(--muted); font-size: var(--fs-md); }
.post-author a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .25s; }
.post-nav a:hover { border-color: var(--green-line); }
.post-nav span { color: var(--dim); font-size: var(--fs-sm); }
.post-nav b { color: var(--ink); font-weight: 500; }
.post-nav__next { text-align: right; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } .post-nav > span { display: none; } }
@media print { .read-progress, .post-toc, .post-share, .code-bar button, .preview-bar, .comment-form, .newsletter { display: none; } .prose pre { white-space: pre-wrap; } }

/* Séries: caixa no artigo e página da série. */
.series-box { border: 1px solid var(--green-line); border-radius: var(--radius-sm); background: var(--green-tint); padding: 16px 20px; margin-bottom: 36px; }
.series-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--muted); font-size: var(--fs-md); }
.series-box__head a { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); text-decoration: underline; text-decoration-color: var(--green-line); text-underline-offset: 4px; }
.series-box summary { cursor: pointer; margin-top: 10px; color: var(--green); font-size: var(--fs-md); }
.series-box ol { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 6px; color: var(--muted); font-size: var(--fs-md); }
.series-box ol a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.series-box ol a:hover { color: var(--green); }
.series-box [aria-current] { color: var(--ink); font-weight: 600; }
.series-next { display: grid; gap: 6px; margin-top: 40px; padding: 20px 24px; border: 1px solid var(--green-line); border-radius: var(--radius); background: var(--green-tint); transition: border-color .25s; }
.series-next:hover { border-color: var(--green); }
.series-next span { color: var(--muted); font-size: var(--fs-sm); }
.series-next b { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; }
.series-next svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Telemóvel: menos espaço entre o título do artigo e o primeiro parágrafo (imagem, índice e série mais compactos). */
@media (max-width: 720px) {
  .post-hero-media { margin-top: 22px; aspect-ratio: 2/1; }
  .post-toc { margin-bottom: 14px; }
  .series-box { padding: 10px 16px; margin-bottom: 26px; }
  .series-box__head { gap: 2px 10px; font-size: var(--fs-sm); }
  .series-box__head .post-badge { display: none; }
  .series-box__head a { font-size: var(--fs-md); }
  .series-box summary { margin-top: 4px; }
}
.series-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 820px; }
.series-part { display: flex; gap: 22px; align-items: flex-start; }
.series-part__n { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--green-line); color: var(--green); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.series-part h2 { font-size: var(--fs-2xl); margin: 8px 0; }
.series-part:hover h2 { color: var(--green); }
.series-part p { color: var(--muted); margin: 0; }
.series-start { margin: 32px 0 0; }

/* Aviso de sucesso (comentário enviado, subscrição pedida). */
.notice { border: 1px solid var(--green-line); background: var(--green-tint); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; color: var(--ink); font-size: var(--fs-body-sm); }

/* Comentários. */
.comments { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.comments > h2 { font-size: var(--fs-4xl); margin: 0; }
.comments > .muted { margin: 0; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.comment-replies { margin: 22px 0 0 26px; padding-left: 22px; border-left: 2px solid var(--line); }
.comment { display: flex; gap: 14px; align-items: flex-start; }
.comment__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--muted); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.comment--author .comment__avatar { border-color: var(--green-line); color: var(--green); }
.comment__body { min-width: 0; }
.comment header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.comment header b { color: var(--ink); }
.comment header time { color: var(--dim); font-size: var(--fs-sm); }
.comment p { margin: 0; color: #d6dacb; overflow-wrap: anywhere; }
.comment-form .cf-turnstile:not(:empty) { margin-bottom: 14px; }

/* Toque: alvos com pelo menos 44px onde o dedo é o ponteiro. */
@media (pointer: coarse) {
  .brand { min-height: 44px; }
  .toc summary { min-height: 44px; display: flex; align-items: center; }
  .toc a { min-height: 44px; display: flex; align-items: center; }
  .post-tags a, .share-btn { min-height: 44px; }
  .series-box summary { min-height: 44px; display: flex; align-items: center; }
  .pagination__step { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Listas de setores: a etiqueta pode ser ligação ou texto dentro de um <li>. */
.chips li { display: flex; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Aviso de cookies: por cima da barra móvel e do botão do WhatsApp. */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 300; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 300px; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }
.cookie-banner a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 20px; min-height: 44px; font-size: var(--fs-md); }
@media print { .cookie-banner { display: none; } }

/* Newsletter. */
.newsletter { margin-top: 48px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-2); display: grid; gap: 18px; }
.newsletter h2 { font-size: var(--fs-3xl); margin: 0 0 6px; }
.newsletter__text p { margin: 0; color: var(--muted); }
.newsletter__form { display: grid; gap: 14px; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter__row .input { flex: 1; min-width: 0; }
.blog-newsletter { max-width: 720px; margin: 24px auto 0; }
@media (max-width: 520px) { .newsletter__row { flex-direction: column; } .comment-replies { margin-left: 8px; padding-left: 14px; } .series-part { gap: 14px; } }

/* ---------- Software à medida (29/10/2026) ---------- */
/* Hero: captura real de um projeto, na mesma moldura de navegador dos cartões de projeto. */
.hero-shot { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: 0 32px 64px -36px rgba(0, 0, 0, 0.7); }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.hero-shot figcaption { padding: 10px 16px; background: var(--bg-2); color: var(--muted); font-size: var(--fs-xs); border-top: 1px solid var(--line); }
@media (max-width: 920px) { .hero-shot { max-width: 620px; } }

/* Preços: três tipos de projeto e, por baixo, manutenção e tarifa para agências. */
.pricing.pricing-3 { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
.pricing-3 .price-line { align-items: baseline; }
.pricing-3 .price-label { order: -1; }
@media (max-width: 1020px) { .pricing.pricing-3 { grid-template-columns: 1fr; max-width: 620px; } .pricing-3 .plan-desc { min-height: 0; } }
.pricing-extra { max-width: 1180px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pricing-extra > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px clamp(20px, 2.4vw, 28px); background: var(--bg-2); display: grid; gap: 6px; }
.pricing-extra b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink); }
.pricing-extra span { color: var(--muted); font-size: var(--fs-md); }
.pricing-extra a { color: var(--green); }
@media (max-width: 1020px) { .pricing-extra { grid-template-columns: 1fr; max-width: 620px; } }
.price-note { margin: 18px 0 0; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink); }
.price-note b { color: var(--green); font-weight: 600; }

/* Home: para quem é. */
.audience-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.audience-list a { display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--muted); text-decoration: none; transition: border-color .2s var(--ease); }
.audience-list a:hover, .audience-list a:focus-visible { border-color: var(--green-line-strong); }
.audience-list b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
/* Vídeo de entrada: mesma moldura que a captura. */
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #fff; }
.hero-shot figcaption span { color: var(--dim); }/* Com vídeo, a coluna da direita ganha espaço: é a prova principal do hero. */
@media (min-width: 921px) { .hero-grid:has(.hero-video) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
/* ---------- Entrada: do Excel ao sistema (partials/hero-sheet, js/hero-sheet.js) ---------- */
/* O palco tem o tamanho do vídeo (1280 × 800) e é escalado para a moldura; as cores são as de uma folha de cálculo. */
.hero-screen { position: relative; overflow: hidden; }
.hero-sheet { display: none; position: absolute; inset: 0; overflow: hidden; }
.js .hero-sheet { display: block; }
@media (prefers-reduced-motion: reduce) { .hero-sheet { display: none !important; } }
.hs-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; background: #fff; color: #24261d; font-family: var(--font-body); font-size: 15px; }
.hs-chrome { position: absolute; inset: 0; }
.hs-menu { position: absolute; inset: 0 0 auto; height: 44px; display: flex; align-items: center; gap: 22px; padding: 0 20px; background: #f4f5f0; border-bottom: 1px solid #dfe1d8; color: #5b5f52; font-size: 14px; }
.hs-menu b { margin-right: 18px; color: #24261d; font-weight: 600; }
.hs-formula { position: absolute; top: 44px; left: 0; right: 0; height: 36px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid #dfe1d8; font-size: 14px; }
.hs-formula i { width: 58px; font-style: normal; color: #5b5f52; border-right: 1px solid #dfe1d8; }
.hs-formula span { color: #8b8f80; font-style: italic; }
.hs-formula code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: #24261d; background: none; padding: 0; }
.hs-head { position: absolute; top: 80px; left: 0; right: 0; height: 28px; background: #f4f5f0; border-bottom: 1px solid #d5d8cc; }
.hs-head span { position: absolute; top: 0; height: 28px; line-height: 28px; text-align: center; font-size: 13px; color: #6b6f60; border-left: 1px solid #dfe1d8; }
.hs-head .hs-corner { left: 0; width: 46px; border-left: 0; }
.hs-rownums span { position: absolute; left: 0; width: 46px; height: 34px; line-height: 34px; text-align: center; font-size: 13px; color: #6b6f60; background: #f4f5f0; border-bottom: 1px solid #e4e6dd; border-right: 1px solid #d5d8cc; }
.hs-grid { position: absolute; left: 46px; top: 108px; right: 0; bottom: 0;
    background-image:
        repeating-linear-gradient(to bottom, transparent 0 33px, #e4e6dd 33px 34px),
        linear-gradient(to right, transparent 219px, #e4e6dd 219px 220px, transparent 220px 349px, #e4e6dd 349px 350px, transparent 350px 589px, #e4e6dd 589px 590px, transparent 590px 669px, #e4e6dd 669px 670px, transparent 670px 799px, #e4e6dd 799px 800px, transparent 800px 949px, #e4e6dd 949px 950px, transparent 950px); }
.hs-cell { position: absolute; height: 34px; line-height: 34px; padding: 0 9px; white-space: nowrap; overflow: hidden; }
.hs-cell.n { text-align: right; }
.hs-cell.b { font-weight: 600; }
.hs-cell.y, .hs-key.y { background: #fff3b0; }
.hs-cell.o { background: #ffdcb8; }
.hs-cell.r { color: #c4321f; }
.hs-cell.s { color: #8b8f80; text-decoration: line-through; }
.hs-cell.c::after { content: ''; position: absolute; top: 0; right: 0; border: 5px solid transparent; border-top-color: #d93025; border-right-color: #d93025; }
.hs-key { position: absolute; z-index: 2; height: 34px; border-radius: 2px; }
.hs-num { position: absolute; left: 9px; top: 8px; font-size: 15px; line-height: 1; white-space: nowrap; color: #24261d; }
.hs-raw, .hs-clean { display: block; }
.hs-clean { position: absolute; left: 0; top: 0; opacity: 0; }
.hs-select { position: absolute; z-index: 3; height: 35px; margin: -1px 0 0 -1px; border: 2px solid #1d7a46; pointer-events: none; }

/* Legenda e barra trocam de "antes" para "depois" durante a transformação. */
.hs-swap { display: inline-grid; }
.hs-swap > span { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hs-before { opacity: 0; transform: translateY(4px); }
/* Enquanto a folha existir (só com JavaScript), mostra o "antes"; o script retira-a no fim. */
.js .hero-shot:has(.hero-sheet) .hs-before { opacity: 1; transform: none; }
.js .hero-shot:has(.hero-sheet) .hs-after { opacity: 0; transform: translateY(-4px); }
.hs-dim { color: var(--dim); }
.hero-shot figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-replay { flex: none; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: none; color: var(--muted); font: inherit; font-size: var(--fs-2xs); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.hero-replay:hover { color: var(--ink); border-color: var(--green); }
.hero-replay:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.hero-replay[hidden] { display: none; }
/* ---------- Fundo da entrada: grelha e pistas de circuito ---------- */
/* Grelha de folha de cálculo, quase invisível, mais forte atrás do painel e apagada antes do texto. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(214, 218, 203, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 218, 203, .045) 1px, transparent 1px);
  background-size: 56px 34px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 52% 70% at 72% 52%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 52% 70% at 72% 52%, #000 20%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }
@media (max-width: 920px) {
  .hero::after { -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 78%, #000 15%, transparent 100%); mask-image: radial-gradient(ellipse 90% 45% at 50% 78%, #000 15%, transparent 100%); }
}

/* Pistas: cobrem a moldura com margens; em coordenadas do SVG a moldura fica em x 14,3–93,6% e y 15,3–84,7%. */
.hero-visual { position: relative; }
.hero-visual .hero-shot { position: relative; z-index: 1; }
.hero-traces { position: absolute; left: -18%; right: -8%; top: -22%; bottom: -22%; width: 126%; height: 144%; overflow: visible; pointer-events: none; }
.hero-traces line { stroke: color-mix(in srgb, var(--c, #d6dacb) 30%, rgba(214, 218, 203, .14)); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero-traces .ring { fill: var(--bg); stroke: color-mix(in srgb, var(--c, #d6dacb) 55%, rgba(214, 218, 203, .2)); stroke-width: 1.5; }
.hero-traces .pin { fill: color-mix(in srgb, var(--c, #d6dacb) 50%, rgba(214, 218, 203, .25)); }
.hero-traces .pulse line { stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .45 1.45; stroke-dashoffset: .45; opacity: 0; filter: drop-shadow(0 0 4px var(--c)); }
.hero-traces .pulse .pin { fill: var(--c); opacity: 0; }
/* Fluxo contínuo: cada segmento só mexe nos primeiros 14% do ciclo; os atrasos encadeiam os segmentos de uma pista
   e desfasam as pistas entre si, por isso os sinais nunca chegam todos ao mesmo tempo. */
.hero.is-live .hero-traces .pulse line { animation: ck-flow 3.2s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(var(--t) * 430ms + var(--s) * 400ms); }
.hero.is-live .hero-traces .pulse .pin { animation: ck-flow-pin 3.2s ease-out infinite; animation-delay: calc(var(--t) * 430ms + var(--s) * 400ms); }
.hero.is-off .hero-traces .pulse line, .hero.is-off .hero-traces .pulse .pin { animation-play-state: paused; }
@keyframes ck-flow { 0% { opacity: 1; stroke-dashoffset: .45; } 14% { opacity: 1; stroke-dashoffset: -1; } 14.01%, 100% { opacity: 0; stroke-dashoffset: -1; } }
@keyframes ck-flow-pin { 0% { opacity: 0; } 4% { opacity: 1; } 30%, 100% { opacity: 0; } }
@media (max-width: 920px) { .hero-traces { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-traces .pulse { display: none; } }
/* Lista de programas de faturação (home): o último item é uma nota, não um programa. */
.chip.chip-muted { color: var(--muted); border-style: dashed; }
