/* =========================================================
   Kroma Studio · site institucional
   ID: preto, branco, roxo e laranja (posts @kromastd)
   Fontes: Field Gothic (Adobe Fonts, kit xze6bpi: só 400 e 700; pesos maiores caem no 700)
           → Archivo como reserva · Gloria Hallelujah na escrita à mão
   ========================================================= */
:root {
  --bg: #141414;
  --surface: #1b1b1b;
  --line: #2c2c2c;
  --line-h: #444;
  --paper: #eeece6;        /* seções claras, como os posts em papel */
  --ink: #141414;
  --accent: #6e24e9;       /* roxo: marca-texto, botões */
  --accent-h: #8447f0;
  --hot: #ec661c;          /* laranja: ponto final e detalhes */
  --shape: #1a1720;        /* formas do K ao fundo */
  --txt: #f7f5f0;
  --txt-2: #a8a8a8;
  --txt-3: #6a6a6a;
  --wa: #25d366;

  --f-display: "field-gothic", "Archivo", system-ui, sans-serif;
  --f-body: "field-gothic", "Archivo", system-ui, sans-serif;
  --f-hand: "Gloria Hallelujah", "Comic Sans MS", cursive;

  --gut: 20px;
  --max: 1180px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 500 1rem/1.6 var(--f-body); font-stretch: 105%;
  overflow-x: hidden;
}
/* grão de filme, como nos posts */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
b, strong { font-weight: 800; }
.dim { color: var(--txt-3); }
::selection { background: var(--accent); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-h); outline-offset: 3px; }

/* ---------- tipografia ---------- */
h1, h2, h3 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  line-height: .92; letter-spacing: -.02em; margin: 0 0 .5em; text-transform: uppercase;
}
h2 { font-size: clamp(2rem, 7.2vw, 4.4rem); }
h2 small { display: block; font-size: .62em; line-height: 1; margin-top: .08em; }
h3 { font-size: clamp(1.25rem, 3.4vw, 1.7rem); }
em { font-style: normal; }
.dot { color: var(--hot); }

.kicker {
  font: 800 .78rem/1 var(--f-body); font-stretch: 125%; letter-spacing: .32em; text-transform: uppercase;
  color: var(--txt-3); margin: 0 0 18px;
}
.hand { font: 400 clamp(1.25rem, 3.6vw, 1.9rem)/1.45 var(--f-hand); color: var(--txt); margin: 0; }
.num { font: 900 1.05rem/1.5 var(--f-display); font-stretch: 125%; color: var(--txt-3); }
.micro { font-size: .8rem; color: var(--txt-3); margin: 12px 0 0; }

/* ---------- pílulas e botões ---------- */
.pill {
  display: inline-flex; align-items: center; padding: 5px 16px 6px; border: 2px solid currentColor; border-radius: 999px;
  font: 800 .82rem/1 var(--f-body); font-stretch: 112%; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
a.pill:hover { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.pill--lg { font-size: clamp(1.2rem, 4vw, 1.7rem); padding: 8px 32px 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 800 .95rem/1 var(--f-body); font-stretch: 112%; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-h); }
.btn--line { border-color: currentColor; color: var(--txt); }
.btn--line:hover { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.btn--light { background: var(--txt); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }

/* ---------- moldura (margens dos posts) ---------- */
.frame { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gut); position: relative; }
section { position: relative; }
.light { background: var(--paper); color: var(--ink); }
.light .kicker, .light .num { color: #8a8780; }
.light .hand { color: var(--ink); }

/* ---------- navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut);
  transition: background .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(20, 20, 20, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__brand { display: flex; }
.mark { width: 30px; height: 30px; fill: var(--txt); }
.nav__menu { display: none; gap: 40px; }
.nav__menu a { font-weight: 800; font-stretch: 112%; text-decoration: none; color: var(--txt); opacity: .7; transition: opacity .2s; }
.nav__menu a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; overflow: hidden; }
.hero .frame { width: 100%; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; display: flex; flex-direction: column; }
.hero__shapes {
  position: absolute; width: min(150vw, 1100px); left: 50%; top: 50%; transform: translate(-30%, -50%);
  fill: var(--shape); pointer-events: none;
}
.topline, .subline { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-stretch: 112%; }
.topline { font-size: clamp(.95rem, 2.6vw, 1.3rem); margin-bottom: 22px; }
.topline .pill { font-size: inherit; font-weight: inherit; }
.subline { font-size: .8rem; line-height: 1.2; margin-bottom: auto; padding-bottom: 40px; }
.subline .r { text-align: right; }

.poster { display: block; margin: 0 0 28px; line-height: .86; letter-spacing: -.035em; }
.poster__big { display: block; font-size: 12vw; white-space: nowrap; }
.poster__mid { display: flex; justify-content: space-between; font-size: clamp(1.3rem, 5.4vw, 3.6rem); margin: .25em 0 .2em; }

.hero__hand { margin: 0 0 40px; }
.hero__foot { display: grid; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.hero__sub { color: var(--txt-2); max-width: 48ch; margin: 0; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; }

/* ---------- faixa ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.ticker__track { display: flex; gap: 40px; width: max-content; animation: tick 50s linear infinite; }
.ticker__track span { font: 900 clamp(1.3rem, 3.4vw, 2rem)/1 var(--f-display); font-stretch: 125%; white-space: nowrap; }
.ticker__track b { color: var(--txt-3); font-weight: 900; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto h2 { font-size: clamp(2.2rem, 8.4vw, 5.6rem); }
.manifesto__text { max-width: 52ch; font-size: 1.1rem; margin: 8px 0 24px; }

/* ---------- serviços ---------- */
.svc { list-style: none; margin: 48px 0 0; padding: 0; }
.svc__item { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 32px 0; border-top: 1px solid var(--line); }
.svc__item h3 { margin-bottom: .4em; }
.svc__item p { color: var(--txt-2); max-width: 60ch; margin: 0; }
.brackets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; }
.brackets li { font: 900 .9rem/1.3 var(--f-display); font-stretch: 125%; }
.brackets li::before { content: "["; color: var(--txt-3); }
.brackets li::after { content: "]"; color: var(--txt-3); }

.plan-cta {
  margin-top: 56px; padding: 36px 28px; background: var(--accent); color: #fff;
  display: grid; gap: 24px; border-radius: 22px;
}
.plan-cta h3 { font-size: clamp(1.8rem, 6vw, 3rem); margin: 0 0 .2em; }
.plan-cta .hand { color: #fff; font-size: clamp(1.1rem, 3vw, 1.5rem); }

/* ---------- método ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; max-width: 820px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.step p { margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.35rem); line-height: 1.45; font-weight: 600; }
.step b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; }

/* ---------- diagnóstico ---------- */
.diag { display: grid; gap: 48px; }
.diag h2 { font-size: clamp(3rem, 13vw, 7rem); }
.diag .hand { margin-bottom: 20px; }
.diag__copy > p:last-child { color: var(--txt-2); max-width: 46ch; }
.diag__form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 24px; display: grid; gap: 22px; align-self: start; }
.field { display: grid; gap: 6px; }
.field span { font-size: .78rem; font-weight: 800; font-stretch: 112%; color: var(--txt-2); }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--line-h);
  color: var(--txt); font: 500 1.05rem/1.4 var(--f-body); padding: 10px 0; border-radius: 0; transition: border-color .25s;
}
.field input::placeholder { color: var(--txt-3); }
.field input:focus { outline: none; border-color: var(--accent-h); }
.field input[aria-invalid="true"] { border-color: var(--hot); }
.field__err { color: var(--hot); font-size: .88rem; margin: 0; }

/* ---------- tecnologia ---------- */
.tech__grid { display: grid; gap: 16px; margin-top: 40px; }
.tool { border: 2px solid var(--ink); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: transform .4s var(--ease), box-shadow .4s; }
.tool:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }
.tool h3 { margin: 10px 0 0; }
.tool p { margin: 0; color: #4b4943; }
.tool__link { margin-top: auto; padding-top: 10px; font-weight: 800; text-decoration: none; }
.tool__link:hover { color: var(--accent); }
.tool__link[hidden] { display: none; }

/* ---------- cases ---------- */
.cases__grid { display: grid; gap: 16px; margin-top: 40px; }
.case { border-radius: 22px; overflow: hidden; text-decoration: none; display: block; background: var(--surface); }
.case img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover img { transform: scale(1.03); }
.case__body { padding: 18px 20px; }
.case__body h3 { font-size: 1.2rem; margin: 0 0 4px; }
.case__body p { color: var(--txt-2); font-size: .9rem; margin: 0; }

/* ---------- faq ---------- */
.faq__list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font: 800 clamp(1.05rem, 2.8vw, 1.3rem)/1.3 var(--f-body); font-stretch: 112%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 900 1.8rem/1 var(--f-display); color: var(--hot); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--txt-2); margin: 0; padding: 0 0 24px; max-width: 64ch; }

/* ---------- contato ---------- */
.contact .poster { margin-bottom: 40px; }
.contact__ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact__list li[hidden] { display: none; }
.contact__list span { font-size: .8rem; font-weight: 800; color: var(--txt-3); }
.contact__list a { font: 900 clamp(1rem, 3vw, 1.35rem)/1.2 var(--f-display); font-stretch: 115%; text-decoration: none; word-break: break-all; transition: color .2s; }
.contact__list a:hover { color: var(--accent-h); }

/* ---------- rodapé ---------- */
.foot { text-align: center; padding: 24px var(--gut) 110px; font-size: .82rem; color: var(--txt-2); }
.foot .pill { margin-bottom: 28px; color: var(--txt); }
.foot p { margin: 0 0 4px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .poster > :nth-child(2) { transition-delay: .15s; }
.hero .poster > :nth-child(3) { transition-delay: .3s; }
.hero__hand { transition-delay: .5s; }

/* ---------- telas maiores ---------- */
@media (min-width: 640px) {
  :root { --gut: 40px; }
  .hero__ctas, .contact__ctas { flex-direction: row; }
  .tech__grid, .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .plan-cta { grid-template-columns: 1fr auto; align-items: center; padding: 44px; }
  .svc__item, .step { grid-template-columns: 64px 1fr; }
}
@media (min-width: 960px) {
  :root { --gut: 64px; --nav-h: 76px; }
  .nav__menu { display: flex; }
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
  .hero__shapes { transform: translate(-10%, -50%); width: min(80vw, 1100px); }
  .svc__item { grid-template-columns: 80px minmax(0, 1fr); }
  .svc__item > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 40px; }
  .svc__item h3 { grid-row: span 2; }
  .svc__item .brackets { grid-column: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); max-width: none; column-gap: 64px; row-gap: 40px; }
  .diag { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
  .diag__form { padding: 44px 40px; }
  .tech__grid, .cases__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
