/* ==========================================================================
   Aguardo — estilos do site
   1. Fonte e tokens
   2. Base
   3. Utilitários e componentes
   4. Header
   5. Seções
   6. Footer
   7. Movimento
   ========================================================================== */

/* 1. Fonte e tokens ------------------------------------------------------ */

@font-face {
  font-family: "Aguardo Sans";
  src: url("../fonts/aguardo-sans-var.woff2") format("woff2-variations"),
       url("../fonts/aguardo-sans-var.woff2") format("woff2");
  font-weight: 400 720;
  font-stretch: 100% 115%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f4f1;
  --paper-2: #ebebe6;
  --surface: #ffffff;
  --ink: #0e0f13;
  --ink-2: #16171d;
  --ink-3: #1e2027;

  --text: var(--ink);
  --muted: #5b5e69;
  --subtle: #8a8d97;
  --line: rgb(14 15 19 / 0.1);
  --line-2: rgb(14 15 19 / 0.16);

  /* Destaque: o lavanda do símbolo, em duas intensidades */
  --accent: #4651d1;
  --lilac: #c9cdf2;
  --lilac-2: #a9b0ee;

  --on-ink: #ecedf3;
  --on-ink-muted: #9a9dab;
  --on-ink-line: rgb(236 237 243 / 0.1);

  --font: "Aguardo Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --section: clamp(96px, 12vw, 176px);
  --header-h: 68px;
  --radius: 14px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

/* "hidden" sempre esconde, mesmo em elementos com display próprio */
[hidden] {
  display: none !important;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--lilac);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.9375rem;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* 3. Utilitários e componentes ------------------------------------------ */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.display {
  font-size: clamp(2.875rem, 0.9rem + 6.6vw, 7.25rem);
  font-weight: 620;
  font-stretch: 108%;
  letter-spacing: -0.048em;
  line-height: 0.94;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2.25rem, 1.05rem + 3.9vw, 4.5rem);
  font-weight: 610;
  font-stretch: 106%;
  letter-spacing: -0.042em;
  line-height: 1;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5625rem);
  font-weight: 590;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.42vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--muted);
  text-wrap: pretty;
}

.label {
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  color: var(--muted);
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* Botões */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px 0 24px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}

.btn .icon {
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--ink:hover {
  --btn-bg: #24262f;
}

.btn--lg {
  height: 58px;
  padding: 0 26px 0 28px;
  font-size: 1.0625rem;
  border-radius: 14px;
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.9375rem;
  border-radius: 10px;
}

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn--line:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Link de texto com sublinhado que cresce */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 540;
  letter-spacing: -0.01em;
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}

.link:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

/* Marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}

.brand-tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  flex: none;
}

.brand-tile img {
  width: 21px;
  height: 21px;
}

.brand-tile--lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-tile--lg img {
  width: 30px;
  height: 30px;
}

.brand-word {
  font-size: 1.3125rem;
  font-weight: 640;
  font-stretch: 104%;
  letter-spacing: -0.035em;
  line-height: 1;
  padding-bottom: 2px;
}

.brand-symbol {
  width: 28px;
  height: 28px;
}

/* 4. Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  box-shadow: 0 1px 0 transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a[aria-current="true"] {
  background: var(--paper-2);
}

.site-nav .menu-cta,
.menu-toggle {
  display: none;
}

/* 5. Seções -------------------------------------------------------------- */

/* Hero */
.hero {
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.hero-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-items: end;
}

.hero-intro {
  grid-column: 1 / span 8;
  display: grid;
  justify-items: start;
  gap: clamp(20px, 2.4vw, 32px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 540;
  letter-spacing: -0.005em;
}

.hero-badge .icon {
  color: var(--accent);
}

.hero-accent {
  color: var(--accent);
}

.hero-side {
  grid-column: 9 / -1;
  display: grid;
  gap: 28px;
  padding-bottom: 6px;
}

.hero-side .lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* Botões ocupam a linha toda quando quebram, em vez de ficarem desiguais */
.hero-side .actions .btn {
  flex: 1 1 auto;
}

.hero-points {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points .icon {
  color: var(--accent);
  stroke-width: 2;
}

.hero-visual {
  margin-top: clamp(48px, 7vw, 96px);
}

/* Comparador esboço / produto */
html:not(.js) .compare-tags {
  display: none;
}

.compare-tags {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--muted);
}

.compare-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-tags span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tag-sketch::before {
  box-shadow: inset 0 0 0 1.5px var(--subtle);
}

.tag-final::before {
  background: var(--accent);
}

.compare {
  position: relative;
  isolation: isolate;
}

.compare-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgb(14 15 19 / 0.35);
  touch-action: pan-y;
}

.compare-layer {
  position: relative;
}

.compare-sketch {
  position: absolute;
  inset: 0;
}

.compare.is-ready .compare-final {
  z-index: 1;
  clip-path: inset(0 0 0 var(--split));
}

.compare-handle,
.compare-range {
  display: none;
}

.compare.is-ready .compare-handle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 0;
  border-left: 1px solid var(--ink);
  cursor: ew-resize;
}

.compare-handle span {
  position: absolute;
  top: 34%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px -6px rgb(14 15 19 / 0.5);
  transition: transform 0.25s var(--ease);
  touch-action: none;
}

.compare-handle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare.is-dragging .compare-handle span,
.compare-handle:hover span {
  transform: translate(-50%, -50%) scale(1.06);
}

.compare.is-ready .compare-range {
  display: block;
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare:has(.compare-range:focus-visible) .compare-handle span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* O que você precisa */
.needs {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}

.needs-head {
  display: grid;
  gap: 20px;
}

.needs-head .lead {
  max-width: 34em;
}

.needs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

.needs-list li {
  display: flex;
}

.need {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon . arrow"
    "text text text";
  align-items: start;
  row-gap: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.need:hover {
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -24px rgb(14 15 19 / 0.35);
  transform: translateY(-2px);
}

.need:focus-visible {
  border-radius: var(--radius);
}

.need-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
}

.need-icon .icon {
  width: 20px;
  height: 20px;
}

.need-text {
  grid-area: text;
  display: grid;
  gap: 8px;
}

.need-title {
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  font-weight: 590;
  letter-spacing: -0.022em;
  line-height: 1.25;
  text-wrap: pretty;
}

.need-type {
  color: var(--muted);
  font-size: 0.9375rem;
}

.need-type b {
  color: var(--accent);
  font-weight: 600;
}

.need-arrow {
  grid-area: arrow;
  width: 18px;
  height: 18px;
  margin-top: 13px;
  transition: transform 0.3s var(--ease);
}

.need:hover .need-arrow {
  transform: translateX(3px);
}

.needs-more {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.needs-more .link {
  margin-left: 4px;
  color: var(--ink);
}

.needs-more .link:hover {
  color: var(--accent);
}

/* Plataformas */
.stack {
  padding-block: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--line);
  text-align: center;
}

.stack-head {
  display: grid;
  justify-items: center;
  gap: 8px;
}

/* Cada coluna empilha três marcas; o JavaScript troca a ativa em onda */
.stack-logos {
  --mark: clamp(32px, 22px + 1.8vw, 48px);
  --name: clamp(12px, 9px + 0.55vw, 17px);
  --gap: clamp(8px, 2vw, 24px);
  display: flex;
  justify-content: center;
  gap: var(--gap);
  margin-top: clamp(32px, 4.5vw, 56px);
}

.stack-col {
  position: relative;
  width: clamp(96px, 12vw, 150px);
  height: calc(var(--mark) + var(--name) * 1.5 + 36px);
}

.stack-logo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 14px);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(22%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.stack-logo.is-active {
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}

.is-instant .stack-logo {
  transition: none;
}

.stack-logo.is-exit {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-22%);
  transition-duration: 0.35s;
}

.stack-logo svg {
  width: var(--mark);
  height: auto;
  aspect-ratio: 1;
  fill: var(--brand, var(--ink));
  transition: transform 0.35s var(--ease-out);
}

/* Nome no desenho de cada marca; --s compensa caixa-alta, descendentes etc. */
.stack-name {
  height: calc(var(--name) * var(--s, 1));
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

span.stack-name {
  height: auto;
  color: var(--brand);
  font-size: calc(var(--name) * 0.8);
  font-weight: 640;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (hover: hover) {
  .stack-col:hover .stack-logo svg {
    transform: scale(1.12);
  }
}

/* Soluções */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
  align-items: start;
}

.services-intro {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 24px;
}

.services-intro .lead {
  max-width: 30em;
}

.services-list {
  grid-column: 7 / -1;
  display: grid;
  gap: 56px;
}

.service-scale {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.875rem;
  color: var(--muted);
}

.service-scale span {
  font-weight: 600;
  color: var(--ink);
}

.service-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-group h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem);
  font-weight: 580;
  font-stretch: 104%;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.service-group li p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Produtos / showcase */
.work {
  background: var(--ink);
  color: var(--on-ink);
}

.work .label,
.layers-dark .label {
  color: var(--lilac-2);
}

.work .lead {
  color: var(--on-ink-muted);
}

.work-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.work-head .label {
  grid-column: 1 / -1;
}

.work-head .h2 {
  grid-column: 1 / span 6;
}

.work-head .lead {
  grid-column: 8 / -1;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.shot--dash { grid-column: 1 / span 8; }
.shot--landing { grid-column: 9 / -1; }
.shot--admin { grid-column: 1 / span 5; }
.shot--saas { grid-column: 6 / -1; }

.shot figcaption {
  margin-top: 18px;
  max-width: 34em;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-ink-muted);
}

.shot-type {
  display: block;
  margin-bottom: 2px;
  font-weight: 580;
  color: var(--on-ink);
}

.frame {
  overflow: hidden;
  border-radius: 14px;
  background: #1a1c22;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.frame-url {
  padding: 3px 14px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  color: var(--on-ink-muted);
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  padding-top: 11%;
  border-radius: 14px;
  background: #e9e1d4;
}

.phone {
  width: 74%;
  height: fit-content;
  padding: 2.4%;
  border-radius: 13% / 6%;
  background: #0a0b0e;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 40px 60px -30px rgb(60 40 20 / 0.45);
}

.phone .screen {
  overflow: hidden;
  border-radius: 11% / 5.1%;
}

.work-note {
  margin-top: clamp(48px, 6vw, 80px);
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}

.work-dots {
  display: none;
}

/* Diferencial / camadas */
.layers-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.layers-head .h2 {
  grid-column: 1 / span 6;
}

.layers-head .lead {
  grid-column: 7 / -1;
  max-width: 33em;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.layer-stack {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
  counter-reset: layer;
}

.layer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: center;
}

/* Cada camada desce um degrau: a mesma funcionalidade, cada vez mais por baixo */
.layer-visual {
  grid-column: 1 / span 6;
  display: flex;
  max-width: 560px;
}

.layer:nth-child(2) .layer-visual {
  margin-left: 6%;
}

.layer:nth-child(3) .layer-visual {
  margin-left: 12%;
}

.layer-text {
  grid-column: 8 / -1;
  display: grid;
  gap: 12px;
  max-width: 30em;
}

.layer-text > p:not(.layer-kicker) {
  color: var(--muted);
}

.layer-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 580;
  color: var(--accent);
}

.layer-kicker::before {
  counter-increment: layer;
  content: "0" counter(layer);
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.8125rem;
  font-weight: 520;
  color: var(--ink);
}

/* Processo */
.process {
  padding-top: 0;
}

.process .container {
  padding-top: var(--section);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
}

.process-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.process-head .label {
  grid-column: 1 / -1;
}

.process-head .h2 {
  grid-column: 1 / span 6;
}

.process-head .lead {
  grid-column: 8 / -1;
  max-width: 28em;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line-2);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 32px;
  padding-right: 12px;
}

.step::before {
  content: "";
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.step:last-child::before {
  background: var(--accent);
  box-shadow: none;
}

.step-n {
  font-size: 0.875rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
}

.step h3 {
  font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2rem);
  font-stretch: 104%;
  letter-spacing: -0.035em;
}

.step > p:not(.step-out) {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.step-out {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.step-out span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--subtle);
}

/* Sobre */
.about {
  background: var(--ink);
  color: var(--on-ink);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: start;
}

.about-mark {
  grid-column: 1 / span 4;
}

.about-mark img {
  width: clamp(112px, 15vw, 210px);
  height: auto;
}

.about-body {
  grid-column: 6 / -1;
  display: grid;
  gap: 28px;
}

.about .label {
  color: var(--lilac-2);
}

.about-quote {
  font-size: clamp(2.75rem, 1rem + 5.4vw, 6rem);
  text-indent: -0.38em;
}

.about-text {
  display: grid;
  gap: 18px;
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-ink-muted);
}

.about-text p:first-child {
  color: var(--on-ink);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 4vw, 56px);
}

.principles li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--on-ink-line);
}

.principles h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.principles p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-ink-muted);
}

/* Contato */
.contact-title {
  max-width: 11.5em;
  font-size: clamp(2.75rem, 0.9rem + 6vw, 6.75rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  margin-top: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact-main {
  grid-column: 1 / span 6;
  display: grid;
  gap: 32px;
}

.contact-info {
  grid-column: 8 / -1;
  display: grid;
}

.contact-info > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info > div:first-child {
  border-top: 1px solid var(--line);
}

.contact-info dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-info dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-weight: 520;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 540;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.copy .icon {
  width: 14px;
  height: 14px;
}

.copy:hover {
  color: var(--ink);
  background: var(--surface);
}

.copy.is-done {
  color: #1f7a50;
}

/* Formulários (orçamento no site e painel) */
.field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  font-size: 0.9375rem;
  font-weight: 580;
  letter-spacing: -0.01em;
}

.field > legend {
  padding: 0;
  margin-bottom: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}

.field-optional {
  color: var(--muted);
  font-weight: 480;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8125rem;
}

.input,
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.field ::placeholder {
  color: var(--subtle);
  opacity: 1;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  box-shadow: inset 0 0 0 1px #9a9da6;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

.field [aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px #b42318;
}

.field-error {
  color: #b42318;
  font-size: 0.8125rem;
  font-weight: 540;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.choice:hover {
  box-shadow: inset 0 0 0 1px #9a9da6;
}

.choice:has(input:checked) {
  background: #f3f4fd;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.choice input {
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid #8a8d97;
  border-radius: 50%;
  background: var(--surface);
  transition: border-width 0.15s var(--ease), border-color 0.15s var(--ease);
}

.choice input:checked {
  border: 5px solid var(--accent);
}

.choice input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

.choice span {
  display: grid;
  gap: 2px;
}

.choice b {
  font-weight: 590;
  letter-spacing: -0.01em;
}

.choice small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.choices.is-invalid .choice {
  box-shadow: inset 0 0 0 1.5px #b42318;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid #8a8d97;
  border-radius: 6px;
  background: var(--surface) center / 14px no-repeat;
}

.consent input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

.consent input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.consent input[aria-invalid="true"] {
  border-color: #b42318;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Orçamento */
.quote {
  display: grid;
  gap: 22px;
}

.quote-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-check:empty {
  display: none;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.quote-status {
  color: var(--muted);
  font-size: 0.9375rem;
}

.quote-status:empty {
  display: none;
}

.quote-status.is-error {
  color: #b42318;
  font-weight: 540;
}

.btn[aria-busy="true"],
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.quote-done {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.quote-done:focus {
  outline: none;
}

.quote-done-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e6f4ec;
  color: #1f7a50;
}

.quote-done-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.quote-done h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.quote-done p,
.quote-noscript {
  color: var(--muted);
}

.signoff {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(80px, 10vw, 144px);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 560;
  letter-spacing: -0.025em;
}

/* Política de privacidade */
.legal-header {
  padding-block: 20px;
}

.legal {
  padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px);
}

.legal .container {
  max-width: calc(46rem + var(--gutter) * 2);
}

.legal .h2 {
  margin-block: 12px 24px;
}

.legal h2:not(.h2) {
  margin-top: 40px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.legal p:not(.label):not(.lead),
.legal ul {
  margin-top: 12px;
  color: #3d4049;
}

.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  list-style: disc;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a:not(.link) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  margin-top: 48px;
}

.footer-bottom p a {
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404 */
.not-found {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 20px 72px;
}

.not-found .brand {
  justify-self: start;
}

.not-found-body {
  align-self: center;
  display: grid;
  gap: 28px;
  max-width: 13em;
  font-size: clamp(2.875rem, 0.9rem + 6.6vw, 7.25rem);
}

.not-found-body > :not(h1) {
  font-size: 1rem;
}

.not-found-body .lead {
  max-width: 28em;
  font-size: clamp(1.125rem, 1.02rem + 0.42vw, 1.375rem);
}

/* 6. Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(64px, 7vw, 96px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
}

.footer-brand {
  grid-column: 1 / span 5;
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-brand p {
  max-width: 24em;
  font-size: 0.9375rem;
  color: var(--on-ink-muted);
}

.footer-col {
  grid-column: span 3;
}

.footer-col:first-of-type {
  grid-column: 7 / span 3;
}

.footer-label {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}

.footer-col ul {
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
}

.footer-col a {
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--lilac);
}

.footer-col span {
  color: var(--on-ink-muted);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--on-ink-line);
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--ease);
}

.to-top:hover {
  color: var(--on-ink);
}

.to-top .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.to-top:hover .icon {
  transform: translateY(-2px);
}

.site-footer :focus-visible,
.work :focus-visible,
.about :focus-visible {
  outline-color: var(--lilac);
}

/* 7. Movimento ----------------------------------------------------------- */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Responsivo ------------------------------------------------------------- */

@media (max-width: 1079px) {
  :root {
    --header-h: 64px;
  }

  .hero-intro {
    grid-column: 1 / -1;
  }

  .hero-side {
    grid-column: 1 / span 9;
  }

  .services-intro {
    grid-column: 1 / -1;
    position: static;
  }

  .services-intro .h2 {
    max-width: 10em;
  }

  .services-list {
    grid-column: 1 / -1;
  }

  .work-head .h2,
  .layers-head .h2,
  .process-head .h2 {
    grid-column: 1 / -1;
  }

  .work-head .lead,
  .layers-head .lead,
  .process-head .lead {
    grid-column: 1 / span 9;
  }

  .shot--dash,
  .shot--saas {
    grid-column: 1 / -1;
  }

  .shot--landing {
    grid-column: 1 / span 5;
  }

  .shot--admin {
    grid-column: 6 / -1;
  }

  .layer-visual,
  .layer-text {
    grid-column: 1 / -1;
  }

  .layer-visual {
    order: 2;
  }

  .layer:nth-child(n) .layer-visual {
    margin-left: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
    border-top: 0;
  }

  .step {
    border-top: 1px solid var(--line-2);
  }

  .about-mark,
  .about-body {
    grid-column: 1 / -1;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .principles li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 24px;
    padding-block: 20px;
  }

  .contact-main {
    grid-column: 1 / span 8;
  }

  .contact-info {
    grid-column: 1 / span 8;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-col:first-of-type {
    grid-column: span 4;
  }
}

/* Menu mobile + composição de celular */
@media (max-width: 859px) {
  /* Cartões "O que você precisa": um por linha, ícone à esquerda */
  .needs-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .need {
    grid-template-areas: "icon text arrow";
    align-items: center;
    column-gap: 16px;
    padding: 18px 18px 18px 16px;
  }

  .need-arrow {
    margin-top: 0;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -10px;
    border-radius: 10px;
  }

  .menu-toggle .icon {
    width: 20px;
    height: 20px;
    grid-area: 1 / 1;
    transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
  }

  .menu-toggle .icon-close,
  .menu-open .menu-toggle .icon-open {
    opacity: 0;
    transform: rotate(-45deg);
  }

  .menu-open .menu-toggle .icon-close {
    opacity: 1;
    transform: none;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .menu-open body {
    overflow: hidden;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--line);
  }

  .site-nav li a {
    padding: 16px 0;
    border-radius: 0;
    font-size: 1.75rem;
    font-weight: 580;
    font-stretch: 104%;
    letter-spacing: -0.035em;
    color: var(--ink);
  }

  .site-nav a[aria-current="true"] {
    background: none;
  }

  .site-nav .menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 560;
  }
}

@media (max-width: 719px) {
  :root {
    --section: clamp(80px, 20vw, 112px);
  }

  .hero {
    padding-top: 40px;
  }

  .hero-side {
    grid-column: 1 / -1;
    gap: 24px;
  }

  .hero-visual {
    margin-top: 48px;
    margin-inline: calc(var(--gutter) * -1);
  }

  .compare-tags {
    padding-inline: var(--gutter);
  }

  /* No celular o produto aparece mais de perto: recorte do lado esquerdo, em escala legível */
  .compare-frame {
    border-radius: 0;
    box-shadow: 0 0 0 1px var(--line);
  }

  .compare-frame .screen {
    width: 190%;
  }

  .hero-head {
    row-gap: 24px;
  }

  .field-row,
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Logos: duas linhas de três */
  .stack-logos {
    flex-wrap: wrap;
    row-gap: 12px;
    max-width: 400px;
    margin-inline: auto;
  }

  .stack-col {
    width: calc((100% - var(--gap) * 2) / 3);
  }

  .services-grid {
    row-gap: 40px;
  }

  .services-list {
    gap: 40px;
  }

  .service-group li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px 0;
  }

  .work-head .lead,
  .layers-head .lead,
  .process-head .lead {
    grid-column: 1 / -1;
  }

  /* Showcase vira um carrossel com rolagem nativa */
  .work-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .work-grid::-webkit-scrollbar {
    display: none;
  }

  .shot {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .shot--landing {
    flex-basis: 72%;
  }

  /* Telas largas aparecem recortadas e mais próximas, como um detalhe ampliado */
  .shot .frame .screen {
    width: 150%;
  }

  .work-dots {
    display: flex;
    gap: 6px;
    margin-top: 24px;
  }

  .work-dots span {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--on-ink-line);
    transition: background-color 0.3s var(--ease), width 0.3s var(--ease);
  }

  .work-dots span.is-on {
    width: 28px;
    background: var(--on-ink);
  }

  .work-note {
    margin-top: 32px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-left: 4px;
    border-left: 1px solid var(--line-2);
  }

  .step {
    padding: 0 0 48px 28px;
    border-top: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::before {
    top: 4px;
    left: -4.5px;
  }

  .about-mark img {
    width: 96px;
  }

  .about-quote {
    text-indent: 0;
  }

  .principles li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .contact-main,
  .contact-info {
    grid-column: 1 / -1;
  }

  .contact-main .btn {
    width: 100%;
    justify-content: space-between;
  }

  .contact-info > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-col,
  .footer-col:first-of-type {
    grid-column: span 6;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
