/* =========================================================
   Westsites — sistema visual
   Cal (papel) · Tinta · Cobalto de azulejo
   Archivo (largura variável) + JetBrains Mono
   ========================================================= */

:root {
  --paper: #f3f0e9;
  --paper-2: #e9e5db;
  --white: #fbfaf7;
  --ink: #0e0f12;
  --ink-2: #1a1c21;
  --ink-3: #272a31;
  --mute: #66655f;
  --mute-dark: #a3a29c;
  --line: rgba(14, 15, 18, .13);
  --line-dark: rgba(251, 250, 247, .14);
  --cobalt: #2741e6;
  --cobalt-deep: #1b2fb8;
  --cobalt-tint: #dde2fc;
  --mist: #e9edfb;
  --mist-2: #dfe5f9;
  --sand: #efe7d8;
  --ok: #1f9d62;

  --mark-a: #8a8a8a;
  --mark-b: var(--ink);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1400px;
  --hdr: 72px;
  --r: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --fs-hero: clamp(3.1rem, 10.4vw, 10.6rem);
  --fs-h1: clamp(2.6rem, 7.2vw, 7rem);
  --fs-h2: clamp(2.1rem, 5vw, 4.6rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9rem;
  --fs-xs: .75rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.w { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.display, h1, h2 {
  font-family: var(--f-sans);
  font-stretch: 116%;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: .94;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.15; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--mute); max-width: 38em; text-wrap: pretty; }
.on-dark .lead, .sec--ink .lead, .sec--cobalt .lead { color: var(--mute-dark); }
.sec--cobalt .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--mute); }
.small { font-size: var(--fs-sm); }
.accent { color: var(--cobalt); }
.sec--cobalt .accent { color: #fff; }

.label {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.label b { color: var(--cobalt); font-weight: 500; }
.hero__top .label b { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.sec--ink .label, .sec--cobalt .label, .on-dark .label { color: var(--mute-dark); }
.sec--ink .label b { color: #8d9bff; }
.sec--cobalt .label, .sec--cobalt .label b { color: rgba(255, 255, 255, .8); }

/* ---------- Botões e ligações ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: .85rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 1rem; font-stretch: 105%; letter-spacing: -.005em; line-height: 1.1;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--cobalt); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn .ar { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn--cobalt { --bg: var(--cobalt); }
.btn--cobalt::before { background: var(--ink); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light::before { background: var(--cobalt-tint); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { color: #fff; }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.sec--cobalt .btn--cobalt { --bg: var(--white); --fg: var(--ink); }
.sec--cobalt .btn--cobalt::before { background: var(--ink); }
.sec--cobalt .btn--cobalt:hover { color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }
.link .ar { transition: transform .4s var(--ease); }
.link:hover .ar { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }

/* ---------- Símbolo ---------- */
.mark { width: auto; overflow: visible; }
.mark .m-a { fill: var(--mark-a); }
.mark .m-b { fill: var(--mark-b); }
.sec--ink, .sec--cobalt, .on-dark, .site-footer { --mark-b: var(--white); }
.sec--cobalt { --mark-a: rgba(255, 255, 255, .55); }
.mark-anim .m-a, .mark-anim .m-b { transition: transform 1.5s var(--ease-io), opacity 1s ease; }
.js .mark-anim:not(.is-in) .m-a { transform: translateX(-14%); opacity: 0; }
.js .mark-anim:not(.is-in) .m-b { transform: translateX(14%); opacity: 0; }

/* ---------- Cabeçalho ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--hdr);
  color: var(--ink);
  transition: transform .45s var(--ease), background-color .35s, box-shadow .35s, color .35s;
}
.hdr.is-solid { background: rgba(243, 240, 233, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr--dark:not(.is-solid) { color: var(--white); --mark-b: var(--white); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand .mark { height: 26px; }
.brand__name { font-weight: 760; font-stretch: 120%; font-size: 1.12rem; letter-spacing: -.03em; line-height: 1; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a, .nav__drop > button {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 .85rem;
  border: 0; background: none; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 520;
  transition: background-color .25s;
}
.nav > a:hover, .nav__drop > button:hover, .nav__drop.is-open > button { background: rgba(14, 15, 18, .06); }
.hdr--dark:not(.is-solid) .nav > a:hover, .hdr--dark:not(.is-solid) .nav__drop > button:hover { background: rgba(255, 255, 255, .1); }
.nav > a[aria-current="page"]::after, .nav__drop > button.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cobalt);
}
.nav__drop { position: relative; }
.nav__drop .chev { width: 10px; transition: transform .3s var(--ease); }
.nav__drop.is-open .chev { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 10px); left: -1rem; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px;
  background: var(--white); color: var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(14, 15, 18, .3), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.nav__drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease); }
.drop a { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; padding: .85rem 1rem; border-radius: 12px; text-decoration: none; transition: background-color .2s; }
.drop a:hover { background: var(--paper); }
.drop .n { grid-row: span 2; font-family: var(--f-mono); font-size: .72rem; color: var(--cobalt); padding-top: .2rem; }
.drop strong { font-weight: 620; font-size: .98rem; }
.drop span:last-child { font-size: .84rem; color: var(--mute); line-height: 1.35; }
.drop .drop__all { grid-column: 1 / -1; display: flex; justify-content: space-between; background: var(--paper); font-weight: 600; font-size: .92rem; }
.drop .drop__all:hover { background: var(--cobalt); color: #fff; }
.hdr__end { display: flex; align-items: center; gap: .9rem; }
.clock { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.hdr--dark:not(.is-solid) .clock { color: rgba(255, 255, 255, .65); }
.clock b { font-weight: 500; color: inherit; }
.clock::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5em; border-radius: 50%; background: var(--ok); vertical-align: 1px; box-shadow: 0 0 0 3px rgba(31, 157, 98, .18); }

.burger { display: none; position: relative; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; border-radius: 50%; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; right: 19px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; right: 13px; transform: rotate(-45deg); }

/* ---------- Menu móvel ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  padding: calc(var(--hdr) + 12px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--cobalt); color: #fff; overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.menu-open .mmenu { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.menu-open { overflow: hidden; }
.menu-open .hdr { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; --mark-b: #fff; --mark-a: rgba(255,255,255,.55); }
.menu-open .hdr .clock { color: rgba(255,255,255,.7); }
.mmenu__main { border-top: 1px solid rgba(255, 255, 255, .22); }
.mmenu__main li { border-bottom: 1px solid rgba(255, 255, 255, .22); overflow: hidden; }
.mmenu__main a {
  display: flex; align-items: baseline; gap: .9rem; padding: .7rem 0; text-decoration: none;
  font-size: clamp(2rem, 9.5vw, 3.2rem); font-weight: 740; font-stretch: 116%; letter-spacing: -.035em; line-height: 1.05;
  transform: translateY(105%); transition: transform .7s var(--ease);
}
.mmenu__main a .n { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; letter-spacing: .05em; opacity: .7; transform: translateY(-1.1em); }
.menu-open .mmenu__main a { transform: none; }
.menu-open .mmenu__main li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mmenu__main li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mmenu__main li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mmenu__main li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mmenu__main li:nth-child(6) a { transition-delay: .25s; }
.mmenu__svc { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; margin: 1.4rem 0 0; }
.mmenu__svc a { display: block; padding: .45rem 0; font-size: .98rem; text-decoration: none; opacity: .85; }
.mmenu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.mmenu__foot .btn { --bg: #fff; --fg: var(--ink); width: 100%; }
.mmenu__foot .btn::before { background: var(--ink); }
.mmenu__foot .btn:hover { color: #fff; }
.mmenu__foot p { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; opacity: .85; }
.mmenu__foot a { text-decoration: none; }

/* ---------- Secções ---------- */
.sec { position: relative; padding-block: clamp(5rem, 11vw, 10rem); }
.sec--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec--paper { background: var(--paper); }
.sec--paper-2 { background: var(--sand); }
.sec--white { background: var(--mist); }
.sec--ink { background: var(--ink); color: var(--white); }
.sec--cobalt { background: var(--cobalt); color: #fff; }
.sec + .sec--paper.sec, .sec--paper + .sec--paper { border-top: 1px solid var(--line); }
.sec--white .svc-row > a::before { background: var(--cobalt); }
.sec--white .compare-wrap, .sec--white .compare thead th, .sec--white .compare tr > :first-child { background: var(--white); }

.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem var(--gutter); margin-bottom: clamp(3rem, 6vw, 5.5rem); align-items: end; }
.sec-head .label { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / span 8; }
.sec-head .lead { grid-column: 9 / -1; }
.sec-head--stack h2, .sec-head--stack .lead { grid-column: 1 / span 9; }

/* Revelações ao fazer scroll */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(12% 0 0 0 round var(--r)); transition: clip-path 1.3s var(--ease-io); }
.js .rv-img img { transform: scale(1.12); transition: transform 1.6s var(--ease-io); }
.js .rv-img.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.js .rv-img.is-in img { transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; }
.js .lines .split-line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
.js .lines.is-in .split-line > span { transform: none; }

/* ---------- Herói da página inicial ---------- */
.hero { position: relative; padding: calc(var(--hdr) + clamp(2rem, 5vw, 4rem)) 0 0; overflow: hidden; isolation: isolate; }
.hero::before, .phero:not(.phero--photo)::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -18%; width: 70vw; max-width: 1100px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(39, 65, 230, .16), rgba(39, 65, 230, .06) 55%, transparent 72%);
  animation: drift 22s ease-in-out infinite alternate; pointer-events: none;
}
.hero::after { content: ""; position: absolute; z-index: -1; left: -20%; bottom: 10%; width: 55vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(239, 200, 150, .35), transparent 70%); animation: drift 28s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.08); } }
.phero:not(.phero--photo) { isolation: isolate; }
.hero__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero__title { font-size: var(--fs-hero); line-height: .88; letter-spacing: -.045em; font-stretch: 122%; font-weight: 780; }
.hero__title .mark { display: inline-block; height: .7em; vertical-align: -.02em; margin: 0 .04em; }
.hero__title .accent { color: var(--cobalt); }
.hero__title .mark.is-in .m-a { animation: sway-a 5s ease-in-out 1.8s infinite; }
.hero__title .mark.is-in .m-b { animation: sway-b 5s ease-in-out 1.8s infinite; }
@keyframes sway-a { 50% { transform: translateX(-3.5%); } }
@keyframes sway-b { 50% { transform: translateX(3.5%); } }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.hero__copy { grid-column: 1 / span 5; padding-top: .5rem; }
.hero__copy .lead { color: var(--ink); opacity: .78; margin-bottom: 2rem; }
.hero__show { grid-column: 7 / -1; position: relative; }

/* Montra de trabalhos no herói */
.showcase { position: relative; aspect-ratio: 16 / 11; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.showcase__phone { animation: bob 6s ease-in-out infinite; }
.showcase__tag { animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
.showcase__frame {
  position: absolute; inset: 0 12% 8% 0; border-radius: 16px; overflow: hidden;
  background: var(--white); box-shadow: 0 40px 80px -30px rgba(14, 15, 18, .45), 0 0 0 1px var(--line);
}
.showcase__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.showcase__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8d5cd; }
.showcase__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: .66rem; color: var(--mute); }
.showcase__screens { position: absolute; inset: 30px 0 0; }
.showcase__screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 1s ease; }
.showcase__screens img.is-on { opacity: 1; animation: kenburns 7s linear both; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1); } }
.showcase__phone {
  position: absolute; right: 0; bottom: 0; width: 27%; aspect-ratio: 9 / 18.5; border-radius: 22px; overflow: hidden;
  background: var(--ink); padding: 6px; box-shadow: 0 30px 60px -20px rgba(14, 15, 18, .55);
}
.showcase__phone div { position: relative; width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #fff; }
.showcase__phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1s ease; }
.showcase__phone img.is-on { opacity: 1; }
.showcase__tag {
  position: absolute; left: -14px; bottom: 16%; display: flex; flex-direction: column; gap: .1rem;
  padding: .8rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.showcase__tag small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.showcase__tag b { font-weight: 640; font-size: .95rem; }
.showcase__dots { position: absolute; left: 0; bottom: -28px; display: flex; gap: 6px; }
.showcase__dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.showcase__dots button::after { content: ""; position: absolute; inset: 0; background: var(--cobalt); transform: scaleX(0); transform-origin: left; }
.showcase__dots button.is-on::after { animation: dotfill 6s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.facts li { padding: 1.4rem 1.5rem 1.6rem 0; display: grid; gap: .2rem; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 740; font-stretch: 116%; letter-spacing: -.03em; line-height: 1; }
.facts li > span { color: var(--mute); font-size: var(--fs-sm); }

/* ---------- Faixa contínua ---------- */
.marquee { background: var(--cobalt); color: #fff; overflow: hidden; padding: 1.15rem 0; --mark-a: rgba(255,255,255,.55); --mark-b: #fff; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 720; font-stretch: 118%; letter-spacing: -.03em; white-space: nowrap; }
.marquee .mark { height: .75em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto com palavras que acendem ---------- */
.manifesto { font-size: clamp(1.75rem, 4.1vw, 3.75rem); font-weight: 680; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.08; max-width: 22em; text-wrap: pretty; }
.manifesto .w8 { transition: color .3s; }
.js .manifesto .w8 { color: rgba(14, 15, 18, .16); }
.js .manifesto .w8.on { color: var(--ink); }
.js .manifesto .w8.on.accent { color: var(--cobalt); }
.manifesto-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); margin-top: clamp(3rem, 6vw, 5rem); align-items: end; }
.manifesto-foot > :first-child { grid-column: 1 / span 5; }
.manifesto-foot > :last-child { grid-column: 8 / -1; justify-self: end; }

/* ---------- Lista de serviços (início) ---------- */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row { position: relative; border-bottom: 1px solid var(--line); }
.svc-row > a {
  position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.4rem, 2.6vw, 2.3rem) 0; text-decoration: none; isolation: isolate;
}
.svc-row > a::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--cobalt); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc-row .n { font-family: var(--f-mono); font-size: .8rem; color: var(--cobalt); }
.svc-row h3 { font-size: clamp(1.7rem, 3.6vw, 3.3rem); font-weight: 740; font-stretch: 118%; letter-spacing: -.035em; line-height: 1; transition: transform .55s var(--ease); }
.svc-row p { color: var(--mute); font-size: .98rem; line-height: 1.45; max-width: 26em; }
.svc-row .price { display: flex; align-items: center; gap: 1rem; font-family: var(--f-mono); font-size: .78rem; white-space: nowrap; }
.svc-row .circ { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .4s, transform .5s var(--ease), box-shadow .4s; font-size: 1.15rem; }
@media (hover: hover) {
  .svc-row > a:hover { color: #fff; }
  .svc-row > a:hover::before { transform: none; transform-origin: top; }
  .svc-row > a:hover .n, .svc-row > a:hover p { color: rgba(255, 255, 255, .8); }
  .svc-row > a:hover h3 { transform: translateX(.6rem); }
  .svc-row > a:hover .circ { background: #fff; color: var(--cobalt); box-shadow: none; transform: rotate(-45deg); }
}
.svc-peek {
  position: fixed; left: 0; top: 0; z-index: 70; width: 340px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg);
  transition: opacity .3s, transform .5s var(--ease);
}
.svc-peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.svc-peek > div { display: none; }
.svc-peek > div.is-on { display: block; }
.svc-peek img { border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }

/* ---------- Mockups de interface ---------- */
.ui { position: relative; border-radius: var(--r); background: var(--white); color: var(--ink); overflow: hidden; box-shadow: 0 30px 70px -35px rgba(14, 15, 18, .45), 0 0 0 1px var(--line); font-size: .9rem; line-height: 1.4; }
.ui-photo img { width: 100%; }
.ui-browser .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ui-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8d5cd; }
.ui-browser .bar span { margin: 0 auto; padding: .1rem .9rem; border-radius: 6px; background: var(--paper); font-family: var(--f-mono); font-size: .64rem; color: var(--mute); }
.ui-checkout { padding: 1.4rem; display: grid; gap: .85rem; }
.ui-checkout .row { display: flex; justify-content: space-between; gap: 1rem; }
.ui-checkout .row strong { font-size: 1.05rem; }
.ui-checkout .item { display: grid; grid-template-columns: 48px 1fr auto; gap: .9rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.ui-checkout .item small { color: var(--mute); }
.ui-checkout .thumb { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(140deg, #c9b57a, #7b6a2f); }
.ui-checkout .thumb.t2 { background: linear-gradient(140deg, #f1efe9, #c3c0b7); }
.ui-checkout .total { padding-top: .8rem; border-top: 1px solid var(--ink); font-weight: 700; font-size: 1.05rem; }
.ui-checkout .pay { display: flex; flex-wrap: wrap; gap: .4rem; }
.ui-checkout .pay span { padding: .35rem .7rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; }
.ui-checkout .pay .on { background: var(--ink); color: #fff; box-shadow: none; }
.ui-checkout .go { padding: .9rem; border-radius: 999px; background: var(--cobalt); color: #fff; text-align: center; font-weight: 650; }
.ui-serp { padding: 1.3rem; display: grid; gap: 1.1rem; }
.ui-serp .q { display: flex; justify-content: space-between; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.ui-serp .res { display: grid; gap: .15rem; }
.ui-serp .u { font-size: .78rem; color: var(--mute); }
.ui-serp .t { color: #1a0dab; font-size: 1.08rem; font-weight: 500; }
.ui-serp .d { font-size: .84rem; color: #4d5156; }
.ui-serp .res:first-of-type { padding: .9rem; margin: 0 -.9rem; border-radius: 12px; background: var(--cobalt-tint); }
.ui-serp .rank { justify-self: start; padding: .15rem .55rem; border-radius: 6px; background: var(--cobalt); color: #fff; font-family: var(--f-mono); font-size: .66rem; }
.ui-serp .dim { opacity: .45; }
.ui-status { padding: 1.3rem; display: grid; gap: .7rem; }
.ui-status .head { display: flex; justify-content: space-between; align-items: center; font-weight: 650; padding-bottom: .4rem; }
.ui-status .ok { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(31, 157, 98, .12); color: var(--ok); font-size: .76rem; font-weight: 600; }
.ui-status .ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ui-status .line { display: flex; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .86rem; }
.ui-status .line b { font-weight: 600; }
.ui-status .bars { display: flex; align-items: end; gap: 3px; height: 64px; margin-top: .4rem; }
.ui-status .bars i { flex: 1; border-radius: 2px; background: var(--cobalt); opacity: .85; }
.ui-brand { display: grid; grid-template-columns: 1fr 1fr; }
.ui-brand .bm { display: grid; place-items: center; padding: 2rem; background: var(--ink); --mark-b: #fff; }
.ui-brand .bm .mark { width: 70%; }
.ui-brand .az { background: var(--paper) url(../azulejo.svg) center / 64px; }
.ui-brand .sw { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
.ui-brand .sw span { padding: 2.2rem .7rem .7rem; font-family: var(--f-mono); font-size: .6rem; line-height: 1.3; }
.ui-brand .type { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.ui-brand .type b { font-size: 2.6rem; font-weight: 780; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; }
.ui-brand .type span { font-size: .78rem; color: var(--mute); }
.ui-cap { margin-top: .9rem; font-family: var(--f-mono); font-size: .7rem; color: var(--mute); letter-spacing: .02em; }
.sec--ink .ui-cap { color: var(--mute-dark); }

/* ---------- Trabalho: carril horizontal ---------- */
.rail-wrap { position: relative; }
.rail { display: flex; gap: clamp(1rem, 2.5vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); padding-bottom: .5rem; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { scroll-snap-type: none; cursor: grabbing; }
.work { flex: 0 0 min(78vw, 860px); scroll-snap-align: start; text-decoration: none; color: inherit; }
.work__img { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work__img .phone { position: absolute; right: 4%; bottom: -8%; width: 20%; aspect-ratio: 9 / 18.5; border-radius: 16px; padding: 4px; background: var(--ink); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); transition: transform .9s var(--ease); }
.work__img .phone img { border-radius: 12px; }
.work:hover .work__img > img { transform: scale(1.035); }
.work:hover .work__img .phone { transform: translateY(-6%); }
.work__meta { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-top: 1.2rem; }
.work__meta h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 720; font-stretch: 114%; letter-spacing: -.03em; }
.work__meta p { color: var(--mute-dark); font-size: .95rem; }
.work__meta .label { padding: .35rem .7rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); white-space: nowrap; }
.rail-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.rail-ctrl .btns { display: flex; gap: .6rem; }
.rail-ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line-dark); font-size: 1.1rem; transition: background-color .3s, color .3s; }
.rail-ctrl button:hover { background: #fff; color: var(--ink); }
.rail-progress { flex: 1; max-width: 320px; height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.rail-progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .2s; }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; border-top: 1px solid var(--line); }
.step { position: relative; padding: 2rem 1.5rem 0 0; counter-increment: s; }
.step + .step { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.step::before { content: "0" counter(s); display: block; margin-bottom: 3.5rem; font-size: clamp(3rem, 5vw, 4.8rem); font-weight: 780; font-stretch: 125%; letter-spacing: -.05em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--cobalt); transition: color .5s; }
.step.is-in::before { color: var(--cobalt); transition-delay: calc(var(--d, 0ms) + .5s); }
.step h3 { margin-bottom: .7rem; }
.step p { color: var(--mute); font-size: .96rem; line-height: 1.55; }
.step .you { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .88rem; }
.step .you b { display: block; font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: .2rem; }

/* ---------- Preços ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(1.6rem, 2.6vw, 2.4rem); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.15rem; }
.plan .tag { padding: .3rem .7rem; border-radius: 999px; background: #fff; color: var(--cobalt); font-family: var(--f-mono); font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.plan .price { font-size: clamp(3.4rem, 6vw, 5.4rem); font-weight: 780; font-stretch: 122%; letter-spacing: -.05em; line-height: .9; }
.plan .price small { font-size: .38em; letter-spacing: -.02em; font-weight: 600; margin-left: .1em; }
.plan .price.text { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; padding-block: .35em; }
.plan .meta { font-family: var(--f-mono); font-size: .72rem; color: var(--mute); letter-spacing: .02em; }
.plan .desc { color: var(--mute); font-size: .96rem; }
.plan .checks { margin-top: .3rem; flex: 1; }
.plan .btn { margin-top: .5rem; }
.plan { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) { .plan:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(14, 15, 18, .35); } .plan--feat:hover { box-shadow: 0 30px 60px -24px rgba(39, 65, 230, .55); } .feature:hover .n, .step:hover::before { color: var(--cobalt); } .deadline { transition: transform .5s var(--ease); } .deadline:hover { transform: translateY(-4px); } }
.plan--feat { background: var(--cobalt); color: #fff; box-shadow: none; }
.plan--feat .meta, .plan--feat .desc { color: rgba(255, 255, 255, .78); }
.plan--feat .checks li::before { background-color: #fff; }
.plan--feat .checks li { border-color: rgba(255, 255, 255, .2); }
.plan--feat .btn { --bg: #fff; --fg: var(--ink); }
.plan--feat .btn::before { background: var(--ink); }
.plan--feat .btn:hover { color: #fff; }
.sec--ink .plan { background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-dark); }
.sec--ink .plan .meta, .sec--ink .plan .desc { color: var(--mute-dark); }
.sec--ink .plan--feat { background: var(--cobalt); box-shadow: none; }
.sec--ink .plan .btn--light::before { background: var(--cobalt); }
.sec--ink .plan .btn--light:hover { color: #fff; }
.plans-note { margin-top: 1.6rem; max-width: 52em; font-size: var(--fs-sm); color: var(--mute); }
.sec--ink .plans-note { color: var(--mute-dark); }

.checks li { position: relative; padding: .6rem 0 .6rem 1.8rem; border-top: 1px solid var(--line); font-size: .97rem; line-height: 1.45; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 14px; height: 10px; background: var(--cobalt); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.sec--ink .checks li { border-color: var(--line-dark); }
.sec--ink .checks li::before { background-color: #8d9bff; }

/* Assistente de plano */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); border-radius: var(--r-lg); overflow: hidden; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.finder__q { padding: clamp(1.6rem, 3vw, 2.8rem); display: grid; gap: 1.6rem; }
.finder__q h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 740; font-stretch: 116%; letter-spacing: -.03em; }
.finder fieldset { border: 0; padding: 0; margin: 0; }
.finder legend { padding: 0; margin-bottom: .7rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.05rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .95rem; font-weight: 520; transition: background-color .25s, color .25s, box-shadow .25s; }
.choice input:hover + span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.finder__r { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .8rem; padding: clamp(1.6rem, 3vw, 2.8rem); background: var(--cobalt) url(../azulejo-branco.svg) 0 0 / 120px; color: #fff; isolation: isolate; }
.finder__r::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(39, 65, 230, .55) 0%, var(--cobalt) 62%); }
.finder__r .label { color: rgba(255, 255, 255, .8); }
.fr-plan { font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 780; font-stretch: 122%; letter-spacing: -.045em; line-height: .95; }
.fr-price { font-family: var(--f-mono); font-size: .82rem; }
.fr-why { font-size: .98rem; line-height: 1.5; opacity: .88; min-height: 4.5em; }
.finder__r .btn { --bg: #fff; --fg: var(--ink); align-self: flex-start; margin-top: .4rem; white-space: normal; text-align: center; }
.finder__r .btn::before { background: var(--ink); }
.finder__r .btn:hover { color: #fff; }
.finder__r > * { transition: opacity .2s, transform .3s var(--ease); }
.finder__r.is-updating > :not(.label) { opacity: 0; transform: translateY(6px); }

/* ---------- Garantias ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.promise { padding: 2rem 1.5rem 0 0; }
.promise + .promise { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.promise .big { display: block; margin-bottom: 2.5rem; font-size: clamp(3.4rem, 6vw, 5.6rem); font-weight: 780; font-stretch: 125%; letter-spacing: -.05em; line-height: .85; color: #8d9bff; }
.promise h3 { margin-bottom: .6rem; }
.promise p { color: var(--mute-dark); font-size: .96rem; }

/* ---------- Perguntas ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); }
.faq-grid > header { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--hdr) + 2rem); display: grid; gap: 1.2rem; justify-items: start; }
.faq-grid > header h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.faq { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; list-style: none; cursor: pointer; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--cobalt-tint); }
.faq summary:hover::after { box-shadow: inset 0 0 0 1.5px var(--ink); }
.faq .answer { padding: 0 3.5rem 1.6rem 0; color: var(--mute); display: grid; gap: .8rem; }

/* ---------- Banda de contacto com azulejo ---------- */
.cta { position: relative; padding-block: clamp(4rem, 9vw, 8rem); background: var(--paper) url(../azulejo.svg) 0 0 / 160px; overflow: hidden; }
.cta.is-moving { animation: tiles 60s linear infinite; }
@keyframes tiles { to { background-position: 160px 160px; } }
.cta__card { position: relative; max-width: 900px; margin-inline: auto; padding: clamp(2rem, 6vw, 5rem); border-radius: var(--r-lg); background: var(--ink); color: #fff; text-align: center; display: grid; justify-items: center; gap: 1.4rem; box-shadow: 0 50px 100px -40px rgba(14, 15, 18, .6); --mark-b: #fff; }
.cta__card .mark { height: 40px; }
.cta__card h2 { font-size: clamp(2.3rem, 5.6vw, 5rem); }
.cta__card .lead { color: var(--mute-dark); margin-inline: auto; }
.cta__card .actions { justify-content: center; }
.cta__card .mail { color: #fff; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.ft-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); }
.ft-pitch { grid-column: 1 / span 5; display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.ft-pitch p { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 680; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.1; }
.ft-col { grid-column: span 2; }
.ft-pitch + .ft-col { grid-column: 7 / span 2; }
.ft-col h2 { margin-bottom: 1rem; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; font-stretch: 100%; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--mute-dark); }
.ft-col li { padding: .3rem 0; font-size: .95rem; color: rgba(251, 250, 247, .82); }
.ft-col a { text-decoration: none; }
.ft-col a:hover { color: #fff; text-decoration: underline; }
.ft-word { display: flex; align-items: flex-end; gap: 2vw; margin-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(1.2rem, 2.5vw, 2.2rem); --mark-a: #5a5c62; --mark-b: var(--white); }
.ft-word .mark { width: 17vw; max-width: 230px; flex: 0 0 auto; margin-bottom: .6vw; }
.ft-word span { font-size: min(12vw, 10.6rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.055em; line-height: .78; white-space: nowrap; padding-right: .04em; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--mute-dark); position: relative; background: var(--ink); }
.ft-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ft-bottom a { text-decoration: none; }
.ft-bottom a:hover { color: #fff; }

/* ---------- Progresso de leitura ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 2px; background: var(--cobalt); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* ---------- Barra fixa no telemóvel ---------- */
.dock { display: none; }

/* ---------- Cookies ---------- */
.consent {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 95; width: min(400px, calc(100% - 2 * var(--gutter)));
  padding: 1.3rem; border-radius: var(--r-lg); background: var(--white); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(14, 15, 18, .4), 0 0 0 1px var(--line);
  display: grid; gap: 1rem; font-size: .9rem; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease), visibility 0s .5s;
}
.consent.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease); }
.consent .actions { gap: .5rem; }
.consent .btn { min-height: 42px; padding: .5rem 1.2rem; font-size: .9rem; }

/* =========================================================
   Páginas interiores
   ========================================================= */
.phero { position: relative; padding: calc(var(--hdr) + clamp(3rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.phero .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.phero .crumbs a { text-decoration: none; }
.phero .crumbs a:hover { color: var(--cobalt); }
.phero h1 { max-width: 13em; }
.phero .lead { margin-top: clamp(1.5rem, 3vw, 2.2rem); }
.phero .actions { margin-top: 2.2rem; }
.phero__mark { position: absolute; z-index: -1; right: calc(-1 * var(--gutter)); bottom: -4%; width: min(34vw, 470px); opacity: .85; pointer-events: none; animation: bob 9s ease-in-out infinite; }
.phero__mark .mark { width: 100%; --mark-a: rgba(14, 15, 18, .08); --mark-b: rgba(39, 65, 230, .14); }
.phero-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.phero-meta div { padding: 1.3rem 1.5rem 0 0; display: grid; gap: .2rem; }
.phero-meta div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.phero-meta strong { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 740; font-stretch: 116%; letter-spacing: -.03em; line-height: 1.05; }
.phero-meta span { color: var(--mute); font-size: var(--fs-sm); }
.phero--photo { min-height: min(92svh, 900px); display: flex; align-items: flex-end; color: #fff; --mark-b: #fff; }
.phero--photo .phero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.phero--photo .phero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.phero--photo .phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,18,.35) 0%, rgba(14,15,18,0) 35%, rgba(14,15,18,.75) 100%); }
.phero--photo { isolation: isolate; }
.phero--photo .crumbs, .phero--photo .lead { color: rgba(255, 255, 255, .8); }
.credit { margin-top: 2rem; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .02em; opacity: .7; }
.credit a { color: inherit; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 2rem 2rem 2.4rem 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.feature .n { display: block; margin-bottom: 2.2rem; font-family: var(--f-mono); font-size: .72rem; color: var(--cobalt); }
.feature h3 { margin-bottom: .6rem; }
.feature p { color: var(--mute); font-size: .97rem; }
.sec--ink .features, .sec--ink .feature { border-color: var(--line-dark); }
.sec--ink .feature p { color: var(--mute-dark); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: center; }
.split > :first-child { grid-column: 1 / span 5; }
.split > :last-child { grid-column: 7 / -1; }
.split h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3.8vw, 3.4rem); }
.prose .stats strong { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.svc-index .all { background: var(--ink) !important; color: #fff; }
.svc-index .all strong { color: #fff; }
.svc-index .all:hover { background: var(--cobalt) !important; }
.split .checks { margin-top: 2rem; }

.svc-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.svc-index a { position: relative; display: grid; gap: .5rem; align-content: start; min-height: 190px; padding: 1.6rem; background: var(--paper); text-decoration: none; transition: background-color .35s, color .35s; }
.svc-index .n { font-family: var(--f-mono); font-size: .72rem; color: var(--cobalt); }
.svc-index strong { font-size: 1.35rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; margin-top: auto; }
.svc-index span:not(.n):not(.ar) { color: var(--mute); font-size: .92rem; line-height: 1.4; }
.svc-index .ar { position: absolute; top: 1.4rem; right: 1.5rem; transition: transform .4s var(--ease); }
.svc-index a:hover { background: var(--cobalt); color: #fff; }
.svc-index a:hover .n, .svc-index a:hover span:not(.ar) { color: rgba(255, 255, 255, .8); }
.svc-index a:hover .ar { transform: translate(3px, -3px); }
.sec--white .svc-index a { background: var(--white); }

/* Página de serviços: linhas alternadas */
.svc-block { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.svc-block:first-child { border-top: 0; padding-top: 0; }
.svc-block .txt { grid-column: 1 / span 5; display: grid; gap: 1.1rem; justify-items: start; }
.svc-block .vis { grid-column: 7 / -1; }
.svc-block:nth-child(even) .txt { grid-column: 8 / -1; order: 2; }
.svc-block:nth-child(even) .vis { grid-column: 1 / span 6; }
.svc-block .n { font-family: var(--f-mono); font-size: .75rem; color: var(--cobalt); }
.svc-block h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.svc-block .from { font-family: var(--f-mono); font-size: .75rem; color: var(--mute); }
.svc-block > .txt > p:not(.from):not(.n) { color: var(--mute); }
.svc-block .checks { width: 100%; }

/* Portfólio */
.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); align-items: start; padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.case__media { grid-column: 1 / span 7; position: relative; padding-bottom: 8%; }
.case__media .phone { position: absolute; right: -4%; bottom: 0; width: 26%; aspect-ratio: 9 / 18.5; padding: 5px; border-radius: 22px; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(14, 15, 18, .5); }
.case__media .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px; }
.case__body { grid-column: 9 / -1; display: grid; gap: 1.2rem; justify-items: start; position: sticky; top: calc(var(--hdr) + 2rem); }
.case__body h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.case__body > p:not(.label) { color: var(--mute); }
.case__body dl { width: 100%; display: grid; border-top: 1px solid var(--line); }
.case__body dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.case__body dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding-top: .2rem; }
.case__body .palette { display: flex; gap: .35rem; }
.case__body .palette i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }

/* Tabela de comparação */
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); background: var(--white); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { position: sticky; top: 0; background: var(--white); font-size: .95rem; font-weight: 700; font-stretch: 110%; }
.compare thead th small { display: block; font-family: var(--f-mono); font-size: .68rem; font-weight: 400; color: var(--mute); }
.compare tbody th { font-weight: 500; }
.compare .grp th { padding-top: 1.6rem; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); background: var(--paper); }
.compare .col-feat { background: rgba(39, 65, 230, .06); }
.compare thead .col-feat { background: var(--cobalt); color: #fff; }
.compare thead .col-feat small { color: rgba(255,255,255,.75); }
.compare tr > :first-child { position: sticky; left: 0; background: var(--white); z-index: 1; }
.compare .grp > :first-child { background: var(--paper); }
.yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 11px no-repeat; vertical-align: middle; }
.no { color: var(--mute); }

/* Processo: página */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem var(--gutter); padding-block: clamp(2rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line); align-items: start; }
.tl .num { grid-column: 1 / span 2; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 780; font-stretch: 125%; letter-spacing: -.05em; line-height: .85; color: var(--cobalt); }
.tl h3 { grid-column: 3 / span 3; font-size: clamp(1.4rem, 2vw, 1.9rem); overflow-wrap: anywhere; font-weight: 720; font-stretch: 116%; letter-spacing: -.03em; }
.tl p { grid-column: 6 / span 4; color: var(--mute); }
.tl .you { grid-column: 10 / -1; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: .9rem; color: var(--ink); }
.tl .you b { display: block; margin-bottom: .3rem; font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }

.deadlines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.deadline { padding: 2rem; border-radius: var(--r-lg); background: var(--ink-2); display: grid; gap: .6rem; }
.deadline .label { color: var(--mute-dark); }
.deadline strong { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 780; font-stretch: 122%; letter-spacing: -.045em; line-height: .95; }
.deadline p { color: var(--mute-dark); font-size: .93rem; }

/* Estúdio */
.statement { font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 650; font-stretch: 110%; letter-spacing: -.025em; line-height: 1.15; text-wrap: pretty; }
.prose { display: grid; gap: 1.1rem; color: var(--mute); font-size: 1.07rem; max-width: 38em; }
.duo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: start; }
.duo > :first-child { grid-column: 1 / span 6; }
.duo > :last-child { grid-column: 8 / -1; }
.photo-quote { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); align-items: center; }
.photo-quote figure { grid-column: 1 / span 6; }
.photo-quote figure > div { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.photo-quote figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-quote figcaption { margin-top: .8rem; font-family: var(--f-mono); font-size: .64rem; color: var(--mute-dark); }
.photo-quote figcaption a { color: inherit; }
.photo-quote .qt { grid-column: 8 / -1; display: grid; gap: 2rem; }
.photo-quote blockquote p { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 720; font-stretch: 116%; letter-spacing: -.035em; line-height: 1; }
.photo-quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--f-mono); font-size: .72rem; color: var(--mute-dark); }
.photo-quote .body { color: var(--mute-dark); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.stats div { display: grid; gap: .4rem; padding: 1.6rem; background: var(--white); }
.stats strong { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 760; font-stretch: 118%; letter-spacing: -.035em; line-height: 1; color: var(--cobalt); }
.stats div > span { color: var(--mute); font-size: .9rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: start; }
.contact-form { grid-column: 1 / span 7; display: grid; gap: 1.2rem; padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.contact-aside { grid-column: 9 / -1; position: sticky; top: calc(var(--hdr) + 2rem); display: grid; gap: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: .85rem 1rem; border: 0; border-radius: 12px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px transparent; font-size: 1rem; transition: box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%230e0f12' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9b9991; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 0 0 4px rgba(39, 65, 230, .14); }
.field .err { display: none; font-size: .82rem; color: #c0392b; }
.field.has-error input, .field.has-error select { box-shadow: inset 0 0 0 1.5px #c0392b; }
.field.has-error .err { display: block; }
.form-submit { justify-self: start; }
.form-note { font-size: .82rem; color: var(--mute); }
.form-status:empty { display: none; }
.contact-aside dl { display: grid; border-top: 1px solid var(--line); }
.contact-aside dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.contact-aside dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.contact-aside dd { font-size: 1.1rem; font-weight: 560; }
.contact-aside dd a { text-decoration: none; }
.contact-aside dd a:hover { color: var(--cobalt); }
.contact-aside .az-card { aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--paper-2) url(../azulejo.svg) 0 0 / 110px; }

/* Texto legal */
.legal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); }
.legal nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--hdr) + 2rem); align-self: start; }
.legal nav ol { counter-reset: t; display: grid; gap: .1rem; }
.legal nav li { counter-increment: t; }
.legal nav a { display: block; padding: .35rem 0; font-size: .88rem; color: var(--mute); text-decoration: none; }
.legal nav a::before { content: counter(t, decimal-leading-zero) "  "; font-family: var(--f-mono); font-size: .7rem; color: var(--cobalt); white-space: pre; }
.legal nav a:hover { color: var(--ink); }
.legal article { grid-column: 5 / span 7; display: grid; gap: 1rem; color: #33332f; }
.legal article h2 { margin-top: 2rem; font-size: clamp(1.5rem, 2.4vw, 2rem); scroll-margin-top: calc(var(--hdr) + 1rem); }
.legal article h2:first-child { margin-top: 0; }
.legal article ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal article a { color: var(--cobalt); }
.credits-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.credits-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; align-items: center; padding: 1.2rem; background: var(--white); font-size: .95rem; }
.credits-list img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.credits-list a { color: var(--cobalt); }

/* Página final (obrigado/404) */
.endpage { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--hdr) + 3rem) 0 4rem; background: var(--paper) url(../azulejo.svg) 0 0 / 160px; }
.endpage .cta__card { text-align: left; justify-items: start; margin-inline: 0; }
.endpage .cta__card .lead { margin-inline: 0; }
.endpage .cta__card .actions { justify-content: flex-start; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .clock { display: none; }
  .nav > a, .nav__drop > button { padding: 0 .65rem; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .promises { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .promise:nth-child(3) { padding-left: 0; border-left: 0; }
  .tl h3 { grid-column: 3 / span 4; }
  .tl p { grid-column: 7 / -1; }
  .tl .you { grid-column: 7 / -1; }
}

@media (max-width: 980px) {
  :root { --hdr: 64px; }
  .nav, .hdr__end .btn { display: none; }
  .burger { display: block; }
  .brand .mark { height: 24px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy, .hero__show { grid-column: 1 / -1; }
  .hero__show { margin-top: 1rem; margin-bottom: 2rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .sec-head { grid-template-columns: 1fr; }
  .sec-head h2, .sec-head .lead, .sec-head--stack h2, .sec-head--stack .lead { grid-column: 1 / -1; }
  .manifesto-foot { grid-template-columns: 1fr; }
  .manifesto-foot > :first-child, .manifesto-foot > :last-child { grid-column: 1 / -1; justify-self: start; }

  .svc-row > a { grid-template-columns: 2.6rem 1fr auto; }
  .svc-row p { grid-column: 2 / -1; grid-row: 2; }
  .svc-row .price .txt { display: none; }

  .plans { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr; }
  .faq-grid > header { grid-column: 1 / -1; position: static; }
  .faq { grid-column: 1 / -1; }

  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 1.8rem 1.4rem 2rem 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
  .sec--ink .feature:nth-child(even) { border-color: var(--line-dark); }
  .split > :first-child, .split > :last-child, .duo > :first-child, .duo > :last-child,
  .photo-quote figure, .photo-quote .qt, .contact-form, .contact-aside, .case__media, .case__body,
  .svc-block .txt, .svc-block .vis, .svc-block:nth-child(even) .txt, .svc-block:nth-child(even) .vis { grid-column: 1 / -1; order: 0; }
  .split, .duo, .photo-quote, .contact, .case, .svc-block { grid-template-columns: 1fr; }
  .case__body, .contact-aside { position: static; }
  .svc-index { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal nav, .legal article { grid-column: 1 / -1; position: static; }
  .tl { grid-template-columns: 4.5rem 1fr; gap: .8rem 1rem; }
  .tl .num { grid-column: 1; grid-row: span 3; font-size: 3rem; }
  .tl h3, .tl p, .tl .you { grid-column: 2; }
  .deadlines { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-pitch { grid-column: 1 / -1; }
  .ft-col, .ft-pitch + .ft-col { grid-column: span 1; }
  .ft-col:last-child { grid-column: 1 / -1; }
  .phero__mark { width: 62vw; bottom: -8%; opacity: .55; }
}

@media (max-width: 640px) {
  :root { --fs-body: 1rem; }
  .sec { padding-block: 4.5rem; }
  .hero { padding-top: calc(var(--hdr) + 1.75rem); }
  .hero__top .label:last-child { display: none; }
  .hero__title { font-size: clamp(2.85rem, 14.2vw, 5rem); font-stretch: 112%; letter-spacing: -.045em; line-height: .9; }
  .hero__copy .lead { font-size: 1.06rem; margin-bottom: 1.6rem; }
  .hero__copy .actions .btn { flex: 1 1 auto; }
  .showcase { aspect-ratio: 4 / 3.6; }
  .showcase__frame { inset: 0 16% 10% 0; border-radius: 12px; }
  .showcase__phone { width: 32%; border-radius: 18px; padding: 4px; }
  .showcase__phone div { border-radius: 14px; }
  .showcase__tag { left: 8px; bottom: 14%; padding: .55rem .75rem; }
  .showcase__tag b { font-size: .82rem; }
  .facts { margin-top: 4rem; }
  .facts li, .facts li + li { padding: 1.1rem .8rem 1.2rem 0; }
  .facts li:nth-child(even) { padding-left: 1rem; }
  .marquee { padding: .85rem 0; }
  .manifesto { font-size: clamp(1.55rem, 7.2vw, 2.2rem); line-height: 1.12; }

  .svc-row > a { grid-template-columns: 2rem 1fr auto; gap: .5rem .8rem; padding: 1.4rem 0; }
  .svc-row h3 { font-size: clamp(1.55rem, 7.4vw, 2.1rem); }
  .svc-row p { font-size: .92rem; }
  .svc-row .circ { width: 42px; height: 42px; }
  .svc-row > a:active::before { transform: none; }
  .svc-row > a:active { color: #fff; }

  .work { flex-basis: 86vw; }
  .work__meta { flex-direction: column; gap: .5rem; }
  .rail-ctrl .btns { display: none; }
  .rail-progress { max-width: none; }

  .steps { grid-template-columns: 1fr; border-top: 0; row-gap: 0; }
  .step, .step + .step, .step:nth-child(4) { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 1rem; padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .step::before { grid-row: span 3; margin: 0; font-size: 2.6rem; }
  .step h3 { margin-bottom: .3rem; }

  .plan .price { font-size: 4rem; }
  .plans { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter); gap: .75rem; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 86%; scroll-snap-align: start; }
  .promises { grid-template-columns: 1fr; row-gap: 0; }
  .promise, .promise + .promise, .promise:nth-child(3) { display: grid; grid-template-columns: 6.2rem 1fr; gap: .2rem 1rem; padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .promise .big { grid-row: span 2; margin: 0; font-size: 2.5rem; white-space: nowrap; }
  .faq summary { padding: 1.25rem 0; }
  .faq .answer { padding-right: 0; }

  .cta { padding-block: 3rem; background-size: 120px; }
  .cta__card { padding: 2.4rem 1.4rem; text-align: left; justify-items: start; }
  .cta__card .lead { margin-inline: 0; }
  .cta__card .actions { justify-content: flex-start; flex-direction: column; align-items: stretch; width: 100%; }
  .cta__card .mail { text-align: center; }

  .phero { padding-top: calc(var(--hdr) + 2.5rem); }
  .phero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .phero-meta { grid-template-columns: 1fr; }
  .phero-meta div, .phero-meta div + div { padding: 1rem 0; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: baseline; }
  .phero-meta strong { font-size: 1.4rem; }
  .phero--photo { min-height: 86svh; }

  .features { grid-template-columns: 1fr; }
  .feature, .feature:not(:nth-child(3n+1)), .feature:nth-child(even) { display: grid; grid-template-columns: 2.4rem 1fr; padding: 1.4rem 0; border-left: 0; }
  .feature .n { grid-row: span 2; margin: .35rem 0 0; }
  .svc-index { grid-template-columns: 1fr; }
  .svc-index a { min-height: 0; padding: 1.3rem 1.2rem; }
  .svc-index strong { margin-top: .4rem; }
  .stats div { padding: 1.1rem .9rem; }
  .stats strong { font-size: 1.35rem; }
  .stats div > span { font-size: .78rem; line-height: 1.3; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.2rem; margin-inline: calc(-.5 * var(--gutter)); }
  .form-submit { width: 100%; }
  .case__media .phone { right: 0; width: 30%; border-radius: 16px; padding: 4px; }
  .case__media .phone img { border-radius: 12px; }
  .case__body dl div { grid-template-columns: 1fr; gap: .2rem; }
  .credits-list li { grid-template-columns: 1fr; }
  .credits-list img { width: 100%; height: 140px; }

  .ft-top { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .ft-word { gap: 3vw; }
  .ft-bottom { flex-direction: column; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

  /* Barra fixa de ação */
  .dock {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 75;
    display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 6px; border-radius: 999px;
    background: rgba(14, 15, 18, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45);
    transform: translateY(140%); transition: transform .55s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { min-height: 48px; }
  .dock .btn--cobalt::before { background: #fff; }
  .dock .btn--cobalt:hover { color: var(--ink); }
  .dock a.dock__mail { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
  .consent { bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; width: calc(100% - 20px); }
}

@media (hover: none) {
  .svc-peek { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .lines .split-line > span { opacity: 1; transform: none; }
  .js .rv-img { clip-path: none; }
  .js .rv-img img { transform: none; }
  .js .manifesto .w8 { color: var(--ink); }
  .marquee__track { animation: none; }
  .hero::before, .hero::after, .phero::before, .showcase__phone, .showcase__tag, .phero__mark { animation: none !important; }
}
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Portal de clientes ---------- */
.portal { min-height: 100svh; padding: calc(var(--hdr) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 7rem); background: var(--mist); }
.portal--login { display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.portal--login::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 38%; background: url(../azulejo.svg) 0 0 / 160px; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.portal-login { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.portal-login__intro h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-block: 1.2rem 1.4rem; }
.portal-feats { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.portal-feats li { padding: .45rem .85rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; }
.portal-card { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(14, 15, 18, .35); }
.portal-form { display: grid; gap: 1.1rem; }
.portal-form h2 { font-size: var(--fs-h3); }
.portal-form .field input, .portal-form .field select, .portal-form .field textarea { min-height: 48px; }
.portal-form .field textarea { min-height: 80px; }
.portal-form > .btn { justify-self: start; }
.portal-form > .btn--block { justify-self: stretch; }
.portal-msg { font-size: .9rem; color: #c0392b; }
.portal-msg.is-ok { color: var(--ok); }
.portal-alert { margin-bottom: 2rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.portal-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.portal-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-top: .8rem; }
.portal-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.portal-sites { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.portal-empty { padding: 2rem; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); color: var(--mute); }
.portal-pass, .portal-new { margin-top: clamp(1.2rem, 2.5vw, 2rem); padding-block: 1.2rem; }
.portal-new { margin: 0 0 clamp(1.2rem, 2.5vw, 2rem); }
.portal-pass summary, .portal-new summary { cursor: pointer; font-weight: 650; font-stretch: 110%; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.portal-pass summary::after, .portal-new summary::after { content: "+"; font-size: 1.4rem; color: var(--cobalt); transition: transform .3s var(--ease); }
.portal-pass[open] summary::after, .portal-new[open] summary::after { transform: rotate(45deg); }
.portal-pass summary::-webkit-details-marker, .portal-new summary::-webkit-details-marker { display: none; }
.portal-pass[open] form, .portal-new[open] form { margin-top: 1.4rem; max-width: 640px; }
.portal-help { margin-top: 2rem; }
.portal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

.site-card { padding: clamp(1.3rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(14, 15, 18, .3); display: grid; gap: clamp(1.3rem, 2.5vw, 2rem); animation: card-in .6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.site-card__note { padding: 1rem 1.2rem; border-radius: 12px; background: var(--mist); border-left: 3px solid var(--cobalt); }
.state { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.state i { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
.state--ok { background: #e3f4ec; color: #157a4b; }
.state--warn { background: #fdf0dc; color: #a8590a; }
.site-card__hist h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.history time { font-family: var(--f-mono); font-size: .8rem; color: var(--mute); padding-top: .15rem; }
.history p { margin-top: .2rem; color: var(--mute); font-size: var(--fs-sm); }
.site-card__foot { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--mute); }
.site-card--admin .portal-form { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.portal-log { margin-top: 1.2rem; padding: 1.2rem; border-radius: 14px; background: var(--paper); }
.portal-log .field input { background: var(--white); }
.link-btn { padding: 0; border: 0; background: none; color: var(--cobalt); font: inherit; font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn--danger { color: #c0392b; }
.field label .link-btn { margin-left: .4rem; font-size: .8rem; }

@media (max-width: 980px) {
  .portal-login { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal--login::after { width: 100%; height: 140px; inset: auto 0 0 0; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
  .portal-feats { display: none; }
  .history li { grid-template-columns: 1fr auto; gap: .3rem 1rem; }
  .history li > div { grid-column: 1; }
  .history li > .link-btn { grid-row: 1; grid-column: 2; }
  .portal-actions { width: 100%; }
  .portal-actions .btn { flex: 1; }
  .portal .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .site-card, .state i { animation: none; } }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--cobalt); }
.portal-new + .portal-new { margin-top: calc(-1 * clamp(.6rem, 1.2vw, 1rem)); }

/* Ligação para a área de cliente (cabeçalho e menu móvel) */
.hdr__login { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: box-shadow .25s, color .25s, background-color .25s; }
.hdr__login:hover, .hdr__login[aria-current] { box-shadow: inset 0 0 0 1.5px var(--cobalt); color: var(--cobalt); }
.hdr--dark:not(.is-solid) .hdr__login { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.hdr--dark:not(.is-solid) .hdr__login:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.menu-open .hdr .hdr__login { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.mmenu__login { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); font-weight: 600; }
@media (max-width: 1320px) { .hdr__login { padding: 0; width: 42px; justify-content: center; } .hdr__login span { display: none; } }

/* Lista de utilizadores (administração) */
.portal-count { margin: 0 auto 0 .4rem; color: var(--mute); font-weight: 500; }
.portal-new[open] .users { margin-top: 1.2rem; }
.users { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.user-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.user-row__who { display: grid; gap: .15rem; }
.user-row__who span, .user-row__pass > span { font-size: .88rem; color: var(--mute); }
.user-row__pass { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.user-row code { font-family: var(--f-mono); font-size: .85rem; color: var(--ink); background: var(--paper); padding: .15rem .45rem; border-radius: 6px; }
.users > li.muted { padding: 1rem 0; }

/* Elementos marcados como escondidos ficam sempre escondidos, mesmo que o estilo lhes dê display (ex.: .btn). */
[hidden] { display: none !important; }

/* Administração: sites que abrem e fecham */
.portal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin: clamp(1.2rem, 2.5vw, 2rem) 0 1rem; }
.portal-search { flex: 1 1 260px; max-width: 420px; min-height: 46px; padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .95rem; }
.portal-search:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 0 0 4px rgba(39, 65, 230, .14); }
.portal-sites--admin { gap: .8rem; }
.site-card--admin { display: block; padding: 0; animation: none; }
.site-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: 1.1rem clamp(1.1rem, 2.5vw, 1.8rem); cursor: pointer; list-style: none; border-radius: var(--r-lg); transition: background-color .25s; }
.site-sum::-webkit-details-marker { display: none; }
.site-sum:hover { background: var(--paper); }
.site-sum__who { min-width: 0; }
.site-sum h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin-top: .3rem; overflow-wrap: anywhere; }
.site-sum__end { display: flex; align-items: center; gap: .7rem; }
.site-sum .state { padding: .4rem .8rem; font-size: .84rem; }
.site-sum__chev { width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%232741e6' stroke-width='1.6'/%3E%3C/svg%3E"); transition: transform .35s var(--ease); }
.site-card--admin[open] .site-sum__chev { transform: rotate(180deg); }
.site-card--admin[open] .site-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.site-card__body { display: grid; gap: clamp(1.3rem, 2.5vw, 2rem); padding: 0 clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.3rem, 2.5vw, 1.8rem); animation: card-in .45s var(--ease) both; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; padding: .2rem .55rem; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.btn .badge { background: #fff; color: var(--cobalt); }

/* Notificação de pedidos novos */
.portal-notice { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: clamp(1.2rem, 2.5vw, 2rem); padding: 1rem 1.2rem; border-radius: var(--r-lg); background: var(--cobalt); color: #fff; box-shadow: 0 24px 50px -28px rgba(39, 65, 230, .8); animation: notice-in .6s var(--ease) both; }
.portal-notice p { flex: 1; font-weight: 600; }
.portal-notice .btn { --bg: #fff; --fg: var(--ink); }
.portal-notice .btn::before { background: var(--ink); }
.portal-notice .btn:hover { color: #fff; }
.portal-notice__bell { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); animation: ring 2.6s ease-in-out .6s infinite; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }

/* Pedidos de alteração */
.portal-req { margin-top: clamp(1.2rem, 2.5vw, 2rem); display: grid; gap: 1.6rem; }
.portal-req__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.portal-req__head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .6rem 0 .4rem; }
.portal-req__open { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cobalt); }
.portal-req .portal-form { max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; margin: 0; padding: 0; }
.chips legend { width: 100%; margin-bottom: .55rem; font-size: .88rem; font-weight: 600; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px transparent; font-size: .92rem; font-weight: 500; transition: background-color .2s, box-shadow .2s, color .2s, transform .2s; }
.chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--line); }
.chips input:checked + span { background: var(--cobalt); color: #fff; transform: translateY(-1px); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(39, 65, 230, .35); }
.chars { justify-self: end; font-family: var(--f-mono); font-size: .75rem; color: var(--mute); }
.req-tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--paper); justify-self: start; }
.req-tabs button { padding: .5rem 1rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--mute); cursor: pointer; transition: background-color .2s, color .2s; }
.req-tabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(14, 15, 18, .3); }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.portal-new[open] .reqs--admin { margin-top: 1.2rem; }
.req { padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--paper); border-left: 3px solid var(--mute-dark); display: grid; gap: .7rem; }
.req--novo { border-left-color: var(--cobalt); }
.req--em_curso { border-left-color: #e08a1e; }
.req--concluido { border-left-color: var(--ok); }
.req.is-new { animation: req-new 1.6s var(--ease); }
@keyframes req-new { 0% { opacity: 0; transform: translateY(-10px); box-shadow: 0 0 0 3px rgba(39, 65, 230, .5); } 60% { box-shadow: 0 0 0 3px rgba(39, 65, 230, .35); } }
.req__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-size: .84rem; color: var(--mute); }
.req__meta strong { color: var(--ink); }
.req__cat { padding: .15rem .6rem; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .78rem; }
.req__text { white-space: pre-line; overflow-wrap: anywhere; }
.req__reply { padding: .8rem 1rem; border-radius: 12px; background: var(--white); font-size: .95rem; }
.req__reply b { display: block; margin-bottom: .2rem; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.req__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; font-size: .78rem; color: var(--mute); }
.req__steps li { flex: 1; max-width: 140px; padding-top: .5rem; border-top: 3px solid var(--line); }
.req__steps li.is-done { border-top-color: var(--cobalt); color: var(--ink); }
.req--concluido .req__steps li.is-done { border-top-color: var(--ok); }
.req__steps li.is-now { font-weight: 700; }
.req-empty { padding: 1rem 0; color: var(--mute); font-size: .95rem; }
.req__form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.req__form select, .req__form input { min-height: 42px; padding: .5rem .9rem; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: .9rem; }
.req__form input { flex: 1 1 220px; }
.req__form select:focus, .req__form input:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
@media (max-width: 640px) {
  .site-sum__end { width: 100%; justify-content: space-between; }
  .req__form .btn { flex: 1; }
  .req-tabs { justify-self: stretch; }
  .req-tabs button { flex: 1; padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .portal-notice, .portal-notice__bell, .req.is-new, .site-card__body { animation: none; } }

/* ---------- Painel do cliente ---------- */
.portal-sub { margin-top: .7rem; color: var(--mute); font-size: var(--fs-lead); }
.site-card--client { gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.site-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem 1.4rem; padding: clamp(1.1rem, 2.4vw, 1.6rem); margin: calc(-1 * clamp(.3rem, 1vw, .8rem)); border-radius: 18px; }
.site-hero--ok { background: linear-gradient(120deg, rgba(31, 157, 98, .13), rgba(31, 157, 98, .03) 60%); }
.site-hero--warn { background: linear-gradient(120deg, rgba(224, 138, 30, .16), rgba(224, 138, 30, .03) 60%); }
.site-hero__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; }
.site-hero--ok .site-hero__icon { background: var(--ok); box-shadow: 0 0 0 7px rgba(31, 157, 98, .15); animation: halo-ok 2.8s ease-in-out infinite; }
.site-hero--warn .site-hero__icon { background: #e08a1e; box-shadow: 0 0 0 7px rgba(224, 138, 30, .18); animation: halo-warn 2.8s ease-in-out infinite; }
@keyframes halo-ok { 50% { box-shadow: 0 0 0 12px rgba(31, 157, 98, .05); } }
@keyframes halo-warn { 50% { box-shadow: 0 0 0 12px rgba(224, 138, 30, .06); } }
.site-hero__txt { min-width: 0; }
.site-hero__icon svg { stroke-width: 2.6; }
.site-hero h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-top: .35rem; overflow-wrap: anywhere; }
.site-hero__status { margin-top: .35rem; color: var(--mute); }
.site-hero__status b { margin-right: .5rem; color: var(--ink); }
.site-hero--ok .site-hero__status b { color: #157a4b; }
.site-hero--warn .site-hero__status b { color: #a8590a; }
.site-card__note { display: grid; gap: .2rem; }
.site-card__note b { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.tile { position: relative; display: grid; gap: .25rem; align-content: start; padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.tile::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--mute-dark); opacity: .5; }
.tile--ok::after { background: var(--ok); opacity: 1; }
.tile--warn::after { background: #e08a1e; opacity: 1; }
.tile--bad::after { background: #c0392b; opacity: 1; }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 34px -22px rgba(14, 15, 18, .45); } }
.tile__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .55rem; border-radius: 12px; background: var(--white); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.tile--ok .tile__icon { color: var(--ok); }
.tile--warn .tile__icon { color: #d07a10; }
.tile--bad .tile__icon { color: #c0392b; }
.tile__label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.tile__value { font-size: 1.35rem; font-weight: 720; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; }
.tile--bad .tile__value { color: #c0392b; }
.tile--none .tile__value { color: var(--mute); font-weight: 600; }
.tile__sub { font-size: .85rem; color: var(--mute); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .32rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: .15rem; padding: 0 0 1.1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.4rem; top: .38rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--cobalt); }
.timeline li:first-child::before { background: var(--cobalt); }
.timeline time { font-family: var(--f-mono); font-size: .75rem; color: var(--mute); }
.timeline p { color: var(--mute); font-size: var(--fs-sm); }
.portal-helpcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(1.2rem, 2.5vw, 2rem); padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--ink); color: var(--white); background-image: radial-gradient(circle at 100% 0, rgba(39, 65, 230, .55), transparent 55%); }
.portal-helpcard h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.portal-helpcard p { margin-top: .3rem; color: var(--mute-dark); max-width: 46ch; }
.portal-helpcard .btn--cobalt::before { background: #fff; }
.portal-helpcard .btn--cobalt:hover { color: var(--ink); }
#pedidos { scroll-margin-top: calc(var(--hdr) + 1rem); }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .site-hero { grid-template-columns: auto 1fr; }
  .site-hero__visit { grid-column: 1 / -1; justify-self: start; }
  .site-hero__icon { width: 48px; height: 48px; }
  .tiles { gap: .6rem; }
  .tile { padding: .9rem; }
  .tile__icon { width: 36px; height: 36px; margin-bottom: .35rem; }
  .tile__value { font-size: 1.12rem; }
  .portal-helpcard .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .site-hero__icon { animation: none !important; } }

/* ---------- Botão de tema ---------- */
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .25s, color .25s, transform .4s var(--ease); }
.theme-toggle:hover { color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.theme-toggle:active { transform: rotate(-25deg) scale(.94); }
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.menu-open .hdr .theme-toggle { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }

/* ---------- Modo escuro (páginas do portal) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171a20;
  --paper-2: #1d2027;
  --white: #1f232b;
  --ink: #eceef4;
  --ink-2: #d9dce5;
  --ink-3: #c4c8d2;
  --mute: #9ea2ad;
  --line: rgba(255, 255, 255, .11);
  --mist: #0d0f13;
  --sand: #242833;
  --cobalt: #4a62ff;
  --cobalt-deep: #3b52ee;
  --cobalt-tint: #232a52;
  --mark-a: #7c7f88;
  --mark-b: #eceef4;
}
[data-theme="dark"] body { background: var(--mist); }
[data-theme="dark"] .hdr.is-solid { background: rgba(13, 15, 19, .82); }
[data-theme="dark"] .nav > a:hover, [data-theme="dark"] .nav__drop > button:hover, [data-theme="dark"] .nav__drop.is-open > button { background: rgba(255, 255, 255, .08); }
/* Botões: texto branco sobre cobalto e realce claro ao passar */
[data-theme="dark"] .btn { --fg: #0d0f13; }
[data-theme="dark"] .btn:hover, [data-theme="dark"] .btn--cobalt, [data-theme="dark"] .btn--ghost:hover { --fg: #fff; }
[data-theme="dark"] .btn--ghost { --fg: currentColor; }
[data-theme="dark"] .btn--cobalt::before { background: #fff; }
[data-theme="dark"] .btn--cobalt:hover { --fg: #0d0f13; }
[data-theme="dark"] .portal-notice .btn { --bg: #fff; --fg: #0d0f13; }
[data-theme="dark"] .portal-notice .btn:hover { --fg: #fff; }
/* Rodapé e cartão de ajuda continuam escuros */
[data-theme="dark"] .site-footer, [data-theme="dark"] .ft-bottom { --ink: #08090c; --white: #eceef4; background-color: #08090c; }
[data-theme="dark"] .portal-helpcard { --ink: #0a0c10; --white: #eceef4; background-color: #0a0c10; box-shadow: 0 0 0 1px var(--line); }
/* Superfícies e estados */
[data-theme="dark"] .portal--login::after { opacity: .3; }
[data-theme="dark"] .site-card, [data-theme="dark"] .portal-card, [data-theme="dark"] .portal-empty { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, .8); }
[data-theme="dark"] .state--ok { background: rgba(31, 157, 98, .16); color: #5fd49b; }
[data-theme="dark"] .state--warn { background: rgba(224, 138, 30, .16); color: #f0b15a; }
[data-theme="dark"] .site-hero--ok .site-hero__status b { color: #5fd49b; }
[data-theme="dark"] .site-hero--warn .site-hero__status b { color: #f0b15a; }
[data-theme="dark"] .tile--bad .tile__value, [data-theme="dark"] .tile--bad .tile__icon,
[data-theme="dark"] .portal-msg, [data-theme="dark"] .link-btn.link-btn--danger, [data-theme="dark"] .field .err { color: #ff8b7d; }
[data-theme="dark"] .portal-msg.is-ok { color: #5fd49b; }
[data-theme="dark"] .tile--warn .tile__icon { color: #f0b15a; }
[data-theme="dark"] .link-btn, [data-theme="dark"] .label b, [data-theme="dark"] .portal-req__open,
[data-theme="dark"] .req__reply b, [data-theme="dark"] .site-card__note b { color: #8d9bff; }
[data-theme="dark"] .site-sum__chev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%238d9bff' stroke-width='1.6'/%3E%3C/svg%3E"); }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%23eceef4' stroke-width='1.5'/%3E%3C/svg%3E"); }
[data-theme="dark"] .field input::placeholder, [data-theme="dark"] .field textarea::placeholder, [data-theme="dark"] .portal-search::placeholder { color: #6f7380; }
[data-theme="dark"] .req-tabs button[aria-pressed="true"] { box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .8); }
[data-theme="dark"] .tile:hover { box-shadow: inset 0 0 0 1px var(--line), 0 18px 34px -22px rgba(0, 0, 0, .9); }
