/*
 * goatinsight.com — same visual language as the StoriesAuto panel
 * (apple.com/br/store on black), kept in its own file so the public site never
 * depends on the panel's stylesheet loading.
 *
 * The rules that carry the look: tight negative tracking on large type, weight
 * 600 and never 700, pill buttons in Apple blue, and separation by space rather
 * than by borders.
 */
:root {
  --bg: #000;
  --panel: #1d1d1f;
  --panel-2: #2c2c2e;
  --panel-3: #3a3a3c;
  --hairline: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #86868b;
  --accent: #2997ff;
  --accent-fill: #0071e3;
  --accent-fill-hover: #0077ed;
  --err: #ff453a;
  --ok: #30d158;
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 52px;
  padding: 0 22px;
  background: rgba(22, 22, 23, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
}
.topbar .brand:hover { text-decoration: none; }

/* A logo manda enquanto existir; o nome escrito é o reserva. Quem decide é a
   classe `with-logo`, que o onerror do <img> remove se o arquivo não carregar.
   O padrão é mostrar o texto, para que uma página sem <img> nenhum (a da
   equipe) não fique com o topo vazio. */
/* 27px é medido, não chutado: no lockup a altura total é do monograma (que é
   quadrado), e o nome ocupa só o miolo da arte. Nessa altura a caixa-alta do
   "G" escrito dá 14px — o mesmo tamanho do texto que a logo substitui. Mais
   que isso e o monograma começa a encostar nas bordas da barra de 52px. */
.brand img { height: 27px; width: auto; display: block; }
.brand.with-logo .brand-text { display: none; }
.brand:not(.with-logo) img { display: none; }

/* O mesmo lettering do vetor: "Goat" firme, "insight" leve. Pesos baixos
   parecem mais soltos que os altos no mesmo tamanho, então o tracking fecha
   um pouco para as duas metades lerem como uma palavra só. */
.brand-text > span,
.wordmark > span {
  font-weight: 200;
  letter-spacing: -0.03em;
}

/* The team link is an icon plus a label, quiet by default: it is a staff door,
   not a call to action, so it must not compete with the headline. */
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 980px;
  transition: background .2s ease, color .2s ease;
}
.team-link:hover {
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
}
.team-link svg { width: 15px; height: 15px; display: block; }

/* ---------- home hero ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

.hero { padding: clamp(60px, 13vh, 150px) 0 clamp(50px, 10vh, 110px); }

/* Luz de ambiente atrás da home.
 *
 * Existe por causa do botão de vidro: sobre preto absoluto não há nada para o
 * backdrop-filter desfocar, então o vidro só podia ser um cinza chapado. Este
 * brilho enorme e fraquíssimo dá o que refratar e, de quebra, tira o fundo do
 * preto morto. Fica atrás de tudo e não intercepta clique nenhum.
 */
body.home::before {
  content: '';
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 90vh;
  background:
    radial-gradient(44% 58% at 24% 26%, rgba(120, 160, 255, 0.10), transparent 70%),
    radial-gradient(40% 50% at 70% 10%, rgba(255, 255, 255, 0.055), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
/* A barra de cima já é sticky com z-index próprio; o conteúdo precisa subir
   junto para não ficar por baixo do brilho. */
body.home main,
body.home footer { position: relative; z-index: 1; }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero .sub {
  margin: 18px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--muted);
}

.hero .body {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent-fill);
  color: #fff;
  border: 0;
  padding: 12px 23px;
  border-radius: 980px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-fill-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .45; cursor: default; }

.btn.big { padding: 15px 30px; font-size: 17px; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-3); }
.btn.block { width: 100%; }

/* Botão de vidro.
 *
 * Translucidez sozinha não basta: sobre preto puro não há nada atrás para o
 * blur revelar, e 8% de branco vira um cinza chapado. O que faz ler como vidro
 * é o relevo — um degradê de cima para baixo, uma linha de luz na aresta
 * superior (o inset) e uma sombra apoiando o botão no fundo. O backdrop-filter
 * fica porque é o que vai valer quando houver imagem ou degradê por trás.
 */
.btn.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--text);
  font-weight: 500;
  /* A borda de 1px entra no box-sizing, então sem isto o botão fica 2px mais
     baixo que os irmãos sólidos numa mesma linha. */
  padding: 14px 29px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}
.btn.glass:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.11));
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 3px 18px rgba(0, 0, 0, 0.55);
}
.btn.glass svg { width: 19px; height: 19px; display: block; flex: none; }

.hero .btn.glass { margin-top: 34px; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.login-box h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.login-box .hint { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 12px; color: var(--muted); }

input {
  background: var(--panel-2);
  border: 1px solid transparent;
  color: var(--text);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
  width: 100%;
  transition: border-color .2s ease;
}
input:focus { outline: none; border-color: var(--accent); }

/* Chrome paints autofilled fields white and ignores `background`. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--panel-2) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.msg {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: rgba(255, 69, 58, 0.14);
  color: #ff8a80;
}
.msg.ok { background: rgba(48, 209, 88, 0.14); color: #7ee89a; }
.msg[hidden] { display: none; }

.back { display: block; margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- team hub ---------- */
.hub { padding: clamp(44px, 9vh, 90px) 0 80px; }

.hub h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.hub .body {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: 17px;
  color: var(--muted);
  letter-spacing: -0.012em;
}

.tools {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.022em; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.tool .btn { margin-top: 14px; align-self: flex-start; }

/* A placeholder for a tool that does not exist yet: visibly inert, so nobody
   clicks it expecting something to happen. */
.tool.soon { opacity: .55; }
.tool.soon .tag {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel-2);
  padding: 7px 14px;
  border-radius: 980px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 16px;
}
.card h2 { margin: 0 0 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.022em; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
}
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--hairline); }
tr:last-child td { border-bottom: 0; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row .field { margin-bottom: 0; }
.muted { color: var(--muted); }
.sm { padding: 7px 15px; font-size: 13px; }
.danger { background: transparent; color: var(--err); }
.danger:hover { background: rgba(255, 69, 58, 0.14); }

footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 22px 44px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .topbar { padding: 0 16px; }
  main { padding: 0 16px; }

  /* "Falar com especialista no WhatsApp" dá 363px de pílula, mais largo que a
     área útil de um iPhone (390 − 32 de respiro). Virar bloco é o
     comportamento normal de botão em celular e resolve sem encurtar o rótulo. */
  .hero .btn.glass {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 16px;
  }
}

/* Nos Android de 360px o rótulo ainda quebra em duas linhas, e uma pílula de
   raio 980px com duas linhas vira um losango. Um ponto a menos na fonte faz
   caber de novo — medido, não chutado. */
@media (max-width: 380px) {
  .hero .btn.glass {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 15px;
  }
}
