/* Livno — layout editorial: abertura tipográfica em grelha de duas colunas,
   faixa preta de demonstração com palco 3D e lista de serviços expansível. */
:root {
  --ink: #0a0b10;
  --ink-2: #16171f;
  --paper: #ffffff;
  --paper-2: #f3f4f8;
  --blue: #1433ff;
  --blue-deep: #0a1fa8;
  --blue-night: #050c45;
  --blue-soft: #8c9bff;
  --grey: #55576a;
  --grey-light: #a5a7b8;
  --line: rgba(10, 11, 16, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --danger: #b4141e;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 68px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.demo :focus-visible, .closing :focus-visible, .projects :focus-visible, .site-footer :focus-visible,
.site-header.is-dark :focus-visible {
  outline-color: var(--blue-soft);
}

.skip {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip:focus { transform: none; }

main:focus, section[tabindex="-1"]:focus { outline: none; }

/* ---------- Tipografia base ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow--light { color: var(--grey-light); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-title--light { color: var(--paper); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  --bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85em 1.4em;
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 560;
  font-size: 1rem;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  /* preenchimento que sobe ao passar o cursor */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill, var(--blue));
  transform: translateY(101%);
  transition: transform var(--t-mid) var(--ease-out);
}
.btn--primary { --bg: var(--blue); --bd: var(--blue); --fill: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); --fill: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --fill: var(--blue); }
.btn--sm { min-height: 44px; padding: 0.6em 1.15em; font-size: 0.9375rem; }

.btn__arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform var(--t-mid) var(--ease-out); }

@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn--ghost:hover { --fg: var(--paper); }
  .btn--light:hover { --fg: var(--paper); --bd: var(--blue); }
  .btn--primary:hover { --bd: var(--ink); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn:active { transform: scale(0.965); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--plain { border-color: var(--line); }
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.icon-btn:active { transform: scale(0.92); }

.link-btn {
  align-self: start;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 560;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}

/* ---------- Cabeçalho ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-mid), color var(--t-mid), border-color var(--t-mid);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-dark {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--paper);
  border-bottom-color: var(--line-dark);
}
.site-header.is-dark .btn--primary { --fill: var(--paper); }
.site-header.is-dark .btn--primary:hover { --fg: var(--ink); --bd: var(--paper); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.site-nav { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 20px); }
.site-nav__link {
  position: relative;
  padding: 10px 4px;
  font-weight: 520;
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) { .site-nav__link:hover::after { transform: scaleX(1); transform-origin: left; } }

/* Marca Livno: camadas empilhadas em Z formam o relevo azul */
.mark {
  display: inline-block;
  padding: 8px 10px 8px 0;
  text-decoration: none;
  perspective: 420px;
  -webkit-tap-highlight-color: transparent;
}
.mark__tilt {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg));
  transition: transform 600ms var(--ease-out);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.005em;
}
.js .mark__tilt { transition: none; }
.mark__face, .mark__layer { display: block; }
.mark__face {
  position: relative;
  color: var(--ink);
  transform: translateZ(0.5px);
}
.mark__layer {
  position: absolute;
  inset: 0;
  color: color-mix(in srgb, var(--blue) calc(100% - var(--i) * 9%), var(--blue-night));
  transform: translateZ(calc(var(--i) * -1.25px));
}
.site-header.is-dark .mark__face { color: var(--paper); }

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  padding-block: clamp(40px, 8vw, 112px) clamp(48px, 7vw, 104px);
}
/* Grade de pontos: referência ao grid de layout; acende em azul perto do cursor */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: clamp(18px, 2.4vw, 32px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 23rem);
  align-items: end;
  gap: clamp(32px, 5vw, 80px);
}
.hero__title-box { min-width: 0; container-type: inline-size; }
.hero__title {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  /* dimensionado pelo contêiner: a linha mais longa ocupa a largura disponível */
  font-size: clamp(2.25rem, 13.6cqi, 11.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.hero__line { display: block; padding-bottom: 0.04em; }
.hero__aside { display: grid; gap: 24px; max-width: 30rem; padding-bottom: 0.4rem; }
.hero__lead { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--grey);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Demonstração ---------- */
.demo {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.demo__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
/* Com movimento: o palco fica fixo (sticky) e a margem inferior cria a pista de rolagem */
.js:not(.motion-off):not(.no-gsap) .demo__track { height: calc(100vh + var(--demo-track, 140vh)); height: calc(100svh + var(--demo-track, 140vh)); }
.js:not(.motion-off):not(.no-gsap) .demo__sticky { height: 100vh; height: 100svh; }
.js:not(.motion-off):not(.no-gsap) .stage { container-type: size; }
.js:not(.motion-off):not(.no-gsap) .stage__scene { width: min(940px, 82vw, 132cqh); }
.motion-off .demo__sticky, .no-gsap .demo__sticky { position: relative; min-height: 0; }

.demo__backdrop { position: absolute; inset: 0; pointer-events: none; }
.demo__floor {
  position: absolute;
  left: -30%; right: -30%; bottom: -10%;
  height: 70%;
  background-image: radial-gradient(circle, rgba(140, 155, 255, 0.34) 1.1px, transparent 1.6px);
  background-size: 28px 28px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  transition: opacity 900ms;
}
.demo__glow {
  position: absolute;
  left: 50%; top: 58%;
  width: min(1100px, 130vw);
  aspect-ratio: 1.6;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(20, 51, 255, 0.42), rgba(20, 51, 255, 0.12) 55%, transparent);
  filter: blur(10px);
}
.demo__webgl { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms; }
.demo__webgl canvas { display: block; width: 100% !important; height: 100% !important; }
.has-webgl .demo__webgl { opacity: 1; }
.has-webgl .demo__floor { opacity: 0; }

.demo__copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 48px;
  padding-block: clamp(28px, 5vw, 56px) 8px;
}
.demo__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.6rem, 1.1rem + 3.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.demo__text { margin: 0; max-width: 34rem; color: #c9cbdb; }

.stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 1800px;
  perspective-origin: 50% 35%;
  padding-block: 24px;
}
.stage__scene {
  position: relative;
  width: min(940px, 82vw);
  aspect-ratio: 16 / 9.4;
  max-height: 100%;
  transform-style: preserve-3d;
}
.device { position: absolute; transform-style: preserve-3d; will-change: transform; }
.device--desktop {
  left: 0; top: 0;
  width: 86%;
  transform: translate3d(5%, 4%, 0) rotateX(10deg) rotateY(-12deg);
}
.device--phone {
  right: 4%; top: 12%;
  width: 21%;
  transform: translate3d(-40%, 8%, 80px) rotateX(8deg) rotateY(-10deg);
}
.device__shine {
  /* reflexo discreto, deslocado com a rolagem */
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 45%, transparent 60%);
  background-size: 260% 100%;
  background-position: var(--shine, 80%) 0;
  mix-blend-mode: screen;
}
.device--desktop .device__shine { border-radius: 12px; }
.device--phone .device__shine { border-radius: 26px; }
.device__tag {
  position: absolute;
  left: 0; top: calc(100% + 14px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-soft);
  white-space: nowrap;
}
.device--phone .device__tag { left: auto; right: 0; }

.browser {
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 40px 80px -30px rgba(20, 51, 255, 0.55),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 10px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.browser__dots { display: flex; gap: 5px; flex: 1; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: #c9cad6; }
.browser__url {
  flex: 0 1 46%;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__spacer { flex: 1; }

.phone {
  position: relative;
  border-radius: 26px;
  padding: 7px;
  background: #1d1f2a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 40px 70px -24px rgba(20, 51, 255, 0.65),
    0 26px 50px -16px rgba(0, 0, 0, 0.85);
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  translate: -50% 0;
  width: 30%; height: 9px;
  border-radius: 9px;
  background: #1d1f2a;
  z-index: 2;
}

/* Conteúdo das telas (composição própria, sem cliente) */
.mock { color: var(--ink); background: var(--paper); }
.browser, .phone { container-type: inline-size; }
.mock i, .mock b { display: block; border-radius: 99px; }
.mock--desktop { padding: 2.4cqi 3.4cqi 3cqi; display: grid; gap: 3.2cqi; aspect-ratio: 16 / 8.6; }
.mock__nav { display: flex; align-items: center; gap: 2cqi; }
.mock__logo { font-family: var(--font-display); font-weight: 800; font-size: max(7px, 1.7cqi); letter-spacing: -0.02em; }
.mock__links { display: flex; gap: 1.6cqi; margin-left: auto; }
.mock__links i { width: 5cqi; height: 0.7cqi; background: #d7d9e4; }
.mock__pill {
  display: inline-block;
  padding: 0.9cqi 2cqi;
  border-radius: 99px;
  background: var(--blue);
  color: var(--paper);
  font-size: max(6px, 1.25cqi);
  font-weight: 600;
  white-space: nowrap;
}
.mock__pill--sm { padding: 0.6cqi 1.4cqi; background: var(--ink); }
.mock__pill--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqi; align-items: center; }
.mock__hero-text { display: grid; gap: 1.6cqi; justify-items: start; }
.mock__kicker { font-family: var(--font-mono); font-size: max(5px, 1cqi); letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.mock__headline {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: 4.6cqi;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.mock__lines { display: grid; gap: 1cqi; width: 100%; }
.mock__lines i { height: 0.8cqi; background: #dfe1ea; }
.mock__lines .short, .mock__col .short { width: 60%; }
.mock__cta-row { display: flex; gap: 1.2cqi; }
.mock__visual {
  position: relative;
  aspect-ratio: 1.15;
  border-radius: 1.4cqi;
  background: var(--ink);
  overflow: hidden;
}
.mock__shape { position: absolute; border-radius: 50%; }
.mock__shape--a { width: 62%; aspect-ratio: 1; left: 12%; top: 18%; background: var(--blue); }
.mock__shape--b { width: 30%; aspect-ratio: 1; right: 10%; bottom: 10%; background: var(--paper); border-radius: 18%; }
.mock__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 12.5% 16%;
}
.mock__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqi; }
.mock__col { display: grid; gap: 1cqi; padding-top: 1.6cqi; border-top: 1px solid var(--line); }
.mock__col b { width: 3cqi; height: 3cqi; border-radius: 0.6cqi; background: var(--blue); margin-bottom: 0.6cqi; }
.mock__col i { height: 0.8cqi; background: #dfe1ea; }

.mock--phone {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  padding: 14cqi 7cqi 7cqi;
  display: flex;
  flex-direction: column;
  gap: 4.4cqi;
}
.mock--phone .mock__logo { font-size: 6cqi; }
.mock__burger { margin-left: auto; display: grid; gap: 1.6cqi; }
.mock__burger i { width: 7cqi; height: 1.2cqi; background: var(--ink); }
.mock--phone .mock__kicker { font-size: 3.6cqi; margin-top: 3cqi; }
.mock--phone .mock__headline { font-size: 13cqi; }
.mock--phone .mock__lines { gap: 2.6cqi; }
.mock--phone .mock__lines i { height: 2.2cqi; }
.mock__pill--block { display: block; text-align: center; padding: 3cqi; font-size: 4.4cqi; }
.mock--phone .mock__visual { border-radius: 4cqi; flex: none; }
.mock--phone .mock__col { gap: 2.6cqi; padding-top: 4cqi; }
.mock--phone .mock__col b { width: 9cqi; height: 9cqi; border-radius: 2cqi; }
.mock--phone .mock__col i { height: 2.2cqi; }

.demo__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 8px clamp(20px, 3vw, 32px);
}
.demo__caption { margin: 0; font-size: 0.875rem; color: var(--grey-light); }

/* Composição estática (movimento pausado, reduzido ou sem GSAP): telas já separadas */
.motion-off .stage, .no-gsap .stage { padding-block: 40px 64px; }
.motion-off .device--desktop, .no-gsap .device--desktop { transform: translate3d(-2%, 2%, 0) rotateX(6deg) rotateY(14deg); }
.motion-off .device--phone, .no-gsap .device--phone { transform: translate3d(8%, 14%, 120px) rotateX(4deg) rotateY(-16deg); }

@media (max-width: 760px) {
  .demo { --demo-track: 100vh; }
  .demo__text { font-size: 0.9375rem; }
  .js:not(.motion-off):not(.no-gsap) .stage__scene { width: min(600px, 88vw, 70cqh); }
  .demo__copy { grid-template-columns: minmax(0, 1fr); }
  .stage { perspective: 1100px; }
  .stage__scene { width: min(600px, 88vw); aspect-ratio: 4 / 4.2; }
  .device--desktop { width: 100%; top: 0; }
  .device--phone { width: 36%; top: 22%; right: 3%; }
  .browser__bar { height: 20px; }
  .browser__dots i { width: 6px; height: 6px; }
  .browser__url { font-size: 8px; padding: 1px 6px; }
  .device__tag { font-size: 0.6875rem; }
  .device--desktop .device__tag { top: auto; bottom: calc(100% + 8px); }
  .motion-off .device--desktop, .no-gsap .device--desktop { transform: translate3d(0, 0, 0) rotateX(6deg) rotateY(8deg); }
  .motion-off .device--phone, .no-gsap .device--phone { transform: translate3d(0, 22%, 80px) rotateX(4deg) rotateY(-12deg); }
}

/* ---------- Serviços ---------- */
.services {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(72px, 10vw, 152px);
  scroll-margin-top: var(--header-h);
}
.services__intro { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
.services__lead { margin: 0; max-width: 28rem; color: var(--grey); }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }

.service { border-bottom: 1px solid var(--line); }
.service__heading { margin: 0; font: inherit; }
.service__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name icon" "summary icon";
  gap: 8px 24px;
  width: 100%;
  padding: clamp(22px, 3vw, 34px) 0;
  border: 0;
  background: none;
  text-align: left;
}
.service__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  transition: color var(--t-mid), transform var(--t-mid) var(--ease-out);
}
.service__summary { grid-area: summary; color: var(--grey); max-width: 36rem; }
.service__icon {
  grid-area: icon;
  align-self: center;
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: background-color var(--t-mid), border-color var(--t-mid), transform var(--t-mid) var(--ease-out);
}
.service__icon::before, .service__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.8px;
  background: var(--ink);
  translate: -50% -50%;
  transition: transform var(--t-mid) var(--ease-out), background-color var(--t-mid);
}
.service__icon::after { transform: rotate(90deg); }
.service__toggle[aria-expanded="true"] .service__icon { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.service__toggle[aria-expanded="true"] .service__icon::before,
.service__toggle[aria-expanded="true"] .service__icon::after { background: var(--paper); }
.service__toggle[aria-expanded="true"] .service__icon::after { transform: rotate(0deg); }
.service__toggle[aria-expanded="true"] .service__name { color: var(--blue); }
@media (hover: hover) {
  .service__toggle:hover .service__name { color: var(--blue); transform: translateX(6px); }
  .service__toggle:hover .service__icon { border-color: var(--blue); }
}
.service__toggle:active .service__icon { transform: scale(0.92); }

.service__panel { overflow: hidden; }
.service__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  padding: 0 0 clamp(28px, 3vw, 40px);
}
.service__block h4 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.service__block p { margin: 0; }
.service__block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service__block li { position: relative; padding-left: 20px; }
.service__block li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 9px; height: 1.8px;
  background: var(--blue);
}
.service__cta { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 900px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .services__intro { position: static; }
}
@media (max-width: 600px) {
  .service__body { grid-template-columns: minmax(0, 1fr); }
  .service__icon { width: 40px; height: 40px; }
  .service__cta { justify-self: stretch; }
}

/* ---------- Projetos (carrossel reutilizável) ---------- */
.projects { background: var(--ink); color: var(--paper); scroll-margin-top: var(--header-h); }
.projects__inner { padding-block: clamp(72px, 9vw, 136px); display: grid; gap: clamp(28px, 4vw, 48px); }
.projects__head { display: grid; gap: 14px; }
.carousel { display: grid; gap: 24px; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; list-style: none; margin: 0; padding: 0; transition: transform 640ms var(--ease-out); }
.motion-off .carousel__track { transition: none; }
.slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.slide__media { position: relative; padding: 0 12% 8% 0; }
.slide__desktop img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(20, 51, 255, 0.5); }
.slide__mobile {
  position: absolute;
  right: 0; bottom: 0;
  width: 24%;
}
.slide__mobile img { width: 100%; height: auto; border-radius: 16px; border: 4px solid #1d1f2a; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); }
.slide__text { display: grid; gap: 16px; justify-items: start; }
.slide__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  line-height: 1;
}
.slide__desc { margin: 0; color: #c9cbdb; }
.slide .btn--light { min-height: 44px; }
.carousel__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.carousel__controls .icon-btn { color: var(--paper); }
@media (hover: hover) { .carousel__controls .icon-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); } }
.carousel__count { margin: 0; min-width: 4.5em; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.carousel__play {
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line-dark);
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
@media (max-width: 760px) {
  .slide { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Chamada final ---------- */
.closing { background: var(--blue); color: var(--paper); }
.closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px clamp(32px, 6vw, 96px);
  padding-block: clamp(64px, 9vw, 128px);
}
.closing__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: clamp(2.1rem, 1rem + 4.4vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.closing__side { display: grid; gap: 22px; justify-items: start; }
.closing__side p { margin: 0; max-width: 28rem; font-size: 1.125rem; }
.closing .btn--light:hover { --bd: var(--ink); }
.closing .btn--light { --fill: var(--ink); }
@media (max-width: 760px) { .closing__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--grey-light); font-size: 0.9375rem; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: 1.375rem;
  letter-spacing: 0.005em;
  color: var(--paper);
  text-shadow: 1px 1px 0 var(--blue), 2px 2px 0 var(--blue-deep);
}
.site-footer__text { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.site-footer__nav a { padding: 10px 0; text-decoration: none; color: var(--paper); }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { margin: 0; width: 100%; font-size: 0.8125rem; }
.site-footer__legal a { color: var(--paper); overflow-wrap: anywhere; }

/* ---------- Painel de orçamento ---------- */
.quote {
  /* o <dialog> ocupa a tela; a folha interna desliza */
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.quote::backdrop { background: rgba(10, 11, 16, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.quote[open] { display: flex; justify-content: flex-end; }
.quote__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: -30px 0 80px -30px rgba(5, 12, 69, 0.5);
  padding-top: env(safe-area-inset-top, 0px);
}
.quote__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 4vw, 36px) 12px;
}
.quote__step-label { margin: 0 0 6px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.quote__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.quote__progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 8px clamp(20px, 4vw, 36px) 16px;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--grey);
}
.quote__progress li { display: grid; gap: 8px; }
.quote__progress li::before { content: ""; height: 3px; border-radius: 3px; background: var(--paper-2); transition: background-color var(--t-mid); }
.quote__progress li.is-done::before, .quote__progress li.is-current::before { background: var(--blue); }
.quote__progress li.is-current { color: var(--ink); font-weight: 560; }

.quote__form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.quote__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px clamp(20px, 4vw, 36px) 24px; }
.quote__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(20px, 4vw, 36px) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.quote__foot-spacer { flex: 1; }

.step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px; }
.step__title {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 108%;
  font-variation-settings: "wdth" 108;
  font-size: 1.375rem;
  line-height: 1.15;
}
.step__title:focus { outline: none; }
.step__hint { margin: -6px 0 0; color: var(--grey); font-size: 0.9375rem; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box {
  display: grid;
  gap: 2px;
  padding: 16px 18px 16px 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--ease-out);
  position: relative;
}
.choice__box::before {
  content: "";
  position: absolute;
  left: 18px; top: 19px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--grey);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.choice__name { font-weight: 600; }
.choice__desc { font-size: 0.9375rem; color: var(--grey); }
@media (hover: hover) { .choice:hover .choice__box { border-color: var(--ink); } }
.choice:active .choice__box { transform: scale(0.99); }
.choice input:checked + .choice__box { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--paper)); }
.choice input:checked + .choice__box::before { border-color: var(--blue); box-shadow: inset 0 0 0 5px var(--blue); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices.is-invalid .choice__box { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 560; font-size: 0.9375rem; }
.req, .opt { margin-left: 6px; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.02em; color: var(--grey); }
.field__hint { margin: 0; font-size: 0.875rem; color: var(--grey); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #b9bbc9;
  border-radius: 10px;
  background: var(--paper);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  margin: 0;
  display: flex;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--danger);
}
.field__error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: var(--paper); font-size: 0.75rem; font-weight: 700; }
.privacy-note { margin: 0; font-size: 0.875rem; color: var(--grey); }
.privacy-note a { color: var(--blue-deep); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper-2);
  border-left: 3px solid var(--blue);
  font-size: 0.9375rem;
}
.notice p { margin: 0; }

.review { margin: 0; display: grid; border-top: 1px solid var(--line); }
.review__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "dt btn" "dd dd";
  gap: 0 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.review__row dt { grid-area: dt; align-self: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.review__row dd { grid-area: dd; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review__row .link-btn { grid-area: btn; }
.summary { font-family: var(--font-mono); font-size: 0.8125rem !important; background: var(--paper-2) !important; }
.review__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review__status { margin: 0; min-height: 1.5em; font-size: 0.9375rem; font-weight: 520; color: var(--blue-deep); }

@media (max-width: 640px) {
  .quote[open] { align-items: flex-end; }
  .quote__sheet {
    width: 100%;
    height: calc(100% - 24px - env(safe-area-inset-top, 0px));
    border-radius: 18px 18px 0 0;
    padding-top: 0;
    box-shadow: 0 -20px 60px -20px rgba(5, 12, 69, 0.5);
  }
  .quote__sheet::before {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    width: 40px; height: 4px;
    translate: -50% 0;
    border-radius: 4px;
    background: var(--line);
  }
  .quote__head { padding-top: 22px; }
}

/* ---------- Cabeçalho responsivo ---------- */
@media (max-width: 520px) {
  :root { --header-h: 60px; }
  .site-nav__link { display: none; }
  .site-nav .btn--sm { min-height: 42px; padding: 0.5em 0.95em; font-size: 0.875rem; }
  .mark__tilt { font-size: 1.5rem; }
}

/* ---------- Entradas ---------- */
.js:not(.motion-off) [data-reveal].pre-reveal { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
.motion-off *, .motion-off *::before, .motion-off *::after { transition-duration: 1ms !important; }

/* ---------- Páginas jurídicas e 404 ---------- */
.legal { max-width: 52rem; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.legal section { margin-top: clamp(28px, 4vw, 40px); }
.legal h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 108%;
  font-variation-settings: "wdth" 108;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.2;
}
.legal h3 { margin: 18px 0 6px; font-size: 1.0625rem; }
.legal p { margin: 0 0 12px; max-width: 65ch; }
.legal a { color: var(--blue-deep); }
.legal__title {
  margin: 12px 0 8px;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.legal__meta { color: var(--grey); font-size: 0.9375rem; }
.legal__table { overflow-x: auto; margin: 4px 0 14px; }
.legal table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.legal__back { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.breadcrumb { font-size: 0.875rem; color: var(--grey); }
.breadcrumb a { color: inherit; }
.pendente { background: #fff1a8; color: var(--ink); padding: 0 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.875em; }
.notfound { display: grid; gap: 18px; justify-items: start; padding-block: clamp(40px, 10vw, 120px); }
.notfound__title {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: clamp(2.4rem, 1.4rem + 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.notfound p { margin: 0; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Envio do pedido ---------- */
html:not(.has-api) [data-api-only], .has-api [data-no-api] { display: none !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note--send { padding-top: 4px; }
.review__status--erro { color: var(--danger); }
.review__copy { border-top: 1px solid var(--line); padding-top: 12px; }
.review__copy > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 560;
  color: var(--blue-deep);
}
.review__copy[open] > summary { margin-bottom: 8px; }
.review__copy .field { margin-bottom: 12px; }
.sent { display: grid; gap: 12px; padding-top: 8px; }
.sent p { margin: 0; }
.sent .step__title { float: none; color: var(--blue); }

/* ---------- Página pública da proposta ---------- */
.prop { max-width: 52rem; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); display: grid; gap: 8px; }
.prop section { margin-top: clamp(20px, 3vw, 32px); }
.prop h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 750; font-stretch: 108%; font-variation-settings: "wdth" 108; font-size: 1.25rem; }
.prop h3 { margin: 0; font-size: 1.0625rem; }
.prop h3:focus { outline: none; }
.prop-meta { margin: 0; color: var(--grey); }
.prop-carregando { color: var(--grey); }
.prop-tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prop-tabela th, .prop-tabela td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prop-tabela thead th { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.prop-tabela tfoot th, .prop-tabela tfoot td { font-weight: 700; font-size: 1.125rem; border-bottom: 0; border-top: 2px solid var(--ink); }
.prop-valor { text-align: right !important; white-space: nowrap; padding-right: 0 !important; }
.prop-pre { white-space: pre-line; }
.prop-status { margin-top: 12px; padding: 14px 16px; border-radius: 10px; font-weight: 560; }
.prop-status--aceita { background: #e3e7ff; color: var(--blue-night); }
.prop-status--recusada, .prop-status--vencida { background: #fdecec; color: #7d0d14; }
.prop-status:focus { outline: none; }
.prop-acoes { display: grid; gap: 16px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.prop-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.prop-form { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.prop-check { padding-top: 0; }
.page-proposta .adm-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.page-proposta .adm-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
@media (max-width: 480px) { .prop-botoes .btn { flex: 1 1 100%; } }
.prop-forn { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.prop-forn dt { color: var(--grey); }
.prop-forn dd { margin: 0; overflow-wrap: anywhere; }
.prop-aviso { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--paper-2); }
@media (max-width: 480px) { .prop-forn { grid-template-columns: 1fr; gap: 0; } .prop-forn dd { margin-bottom: 8px; } }

@media print {
  .site-header, .site-footer, .prop-acoes, .skip, [data-imprimir] { display: none !important; }
  body { background: #fff; }
  .prop { padding: 0; max-width: none; }
  .page-proposta main::before {
    content: "Livno · Sites e sistemas para negócios";
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--blue);
  }
  .prop-tabela tr { break-inside: avoid; }
}
