/* ==========================================================================
   Hubble — cartão de visita digital

   Os tokens são os mesmos de app/globals.css do site (hubble-inc.com):
   #0A0A0A de fundo, #FAFAFA de texto, Geist Sans no corpo e Geist Mono nos
   rótulos, botão em pílula com tracking largo.

   SÓ ESCURO, de propósito. O cartão da WeGrow tinha os dois temas porque o
   logo dela é um lockup de uma cor só, que inverte. O da Hubble não é: é
   arte traçada em 13 níveis de cinza sobre preto. No claro, o Atlas vira um
   borrão cinza sobre branco. E o site também é escuro-só — um cartão claro
   não pareceria da mesma marca.
   ========================================================================== */

:root {
  --bg: #0A0A0A;
  --fg: #FAFAFA;

  --fg-70: rgba(250, 250, 250, 0.70);
  --fg-45: rgba(250, 250, 250, 0.45);
  --fg-28: rgba(250, 250, 250, 0.28);
  --hair:   rgba(255, 255, 255, 0.14);
  --hair-2: rgba(255, 255, 255, 0.30);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  /* uma medida de goteira comanda o ritmo da página inteira */
  --gutter: clamp(22px, 6vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: #FAFAFA; color: #0A0A0A; }

/* --------------------------------------------------------------------------
   grão de filme — o mesmo overlay do site (app/globals.css)
   -------------------------------------------------------------------------- */

.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   shell
   -------------------------------------------------------------------------- */

.shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(34px, 9vw, 56px) var(--gutter) calc(36px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   logo

   Retrato alto (595×1016). Fica contido de propósito: em tela de celular
   ele já ocupa uns 220px de altura, e acima dele não tem nada — é a
   primeira coisa que a pessoa vê depois de encostar o celular no chip.
   -------------------------------------------------------------------------- */

.mark {
  width: clamp(128px, 34vw, 160px);
  margin: 0 auto;
}
.mark img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   quem é

   O logo já diz "Hubble". Aqui embaixo vem a pessoa: nome em Geist Sans
   (o corpo do site) e o cargo em mono com tracking largo, que é como o
   site trata toda micro-tipografia.
   -------------------------------------------------------------------------- */

.who {
  margin-top: clamp(22px, 5vw, 30px);
  text-align: center;
}
.who__name {
  font-family: var(--font-sans);
  font-size: clamp(1.24rem, 5.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.who__role {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.6vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--fg-45);
}

.intro {
  margin: clamp(18px, 4.5vw, 24px) auto 0;
  max-width: 32ch;
  font-size: clamp(0.86rem, 3.5vw, 0.95rem);
  font-weight: 300;
  line-height: 1.66;
  color: var(--fg-70);
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   links — lista com fio, sem caixas
   -------------------------------------------------------------------------- */

.links {
  margin-top: clamp(32px, 8vw, 44px);
  border-top: 1px solid var(--hair);
}

.link {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.4vw, 16px);
  padding: clamp(15px, 4vw, 19px) 2px;
  border-bottom: 1px solid var(--hair);
  transition: padding var(--dur) var(--ease);
}

.link__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: var(--fg-45);
  transition: color var(--dur) var(--ease);
}
.link__icon svg { width: 100%; height: 100%; }

.link__text { flex: 1; min-width: 0; }

.link__label {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 2.9vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link__sub {
  display: block;
  margin-top: 5px;
  font-size: clamp(0.7rem, 2.9vw, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--fg-45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur) var(--ease);
}

.link__go {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--fg-28);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link__go svg { width: 100%; height: 100%; }

/* o link principal ganha só um ponto — sem cor, sem caixa. O site não usa
   cor de destaque em lugar nenhum (o --color-amber de globals.css está
   declarado mas nunca é usado), então aqui também não. */
.link.is-primary .link__icon,
.link.is-primary .link__go { color: var(--fg); }
.link.is-primary .link__label::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 0.9em;
  border-radius: 50%;
  background: var(--fg);
  vertical-align: middle;
}

@media (hover: hover) {
  .link:hover { padding-left: 10px; padding-right: 0; }
  .link:hover .link__icon,
  .link:hover .link__go { color: var(--fg); }
  .link:hover .link__sub { color: var(--fg-70); }
  .link:hover .link__go { transform: translate(3px, -3px); }
}
.link:active { opacity: 0.6; }

/* --------------------------------------------------------------------------
   ações — a pílula do site (.btn em app/globals.css)
   -------------------------------------------------------------------------- */

.actions {
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 7vw, 38px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; text-indent: 0; }
.btn:active { opacity: 0.65; }

/* salvar contato é a ação que importa: sólida, como o .btn.solid do site */
.btn--solid {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
@media (hover: hover) {
  .btn--solid:hover { background: transparent; color: #fff; border-color: var(--hair-2); }
  .btn--line:hover,
  .btn--mini:hover { background: #fff; border-color: #fff; color: #0a0a0a; }
}

.actions__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn--mini {
  min-height: 46px;
  padding: 12px 18px;
  color: var(--fg-70);
  border-color: var(--hair);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   rodapé: onde + domínio
   -------------------------------------------------------------------------- */

.onde {
  margin-top: clamp(30px, 8vw, 42px);
  padding-top: clamp(20px, 5vw, 26px);
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 7px;
  text-align: center;
}
.onde span {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.6vw, 0.66rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--fg-45);
}

.foot {
  margin-top: clamp(22px, 5vw, 28px);
  text-align: center;
}
/* padding vertical pra virar alvo de toque de verdade: sem ele o link fica
   com 17px de altura, menos da metade dos 44px que iOS e WCAG pedem. */
.foot a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 10px;
  margin: -13px -10px;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.6vw, 0.66rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--fg-70);
  transition: color var(--dur) var(--ease);
}
.foot svg { width: 13px; height: 13px; flex: 0 0 auto; text-indent: 0; color: var(--fg-45); }
@media (hover: hover) {
  .foot a:hover { color: var(--fg); }
}

/* --------------------------------------------------------------------------
   QR
   -------------------------------------------------------------------------- */

.sheet {
  margin: auto;
  width: min(330px, calc(100vw - 40px));
  padding: 30px 24px 26px;
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  background: var(--bg);
  color: var(--fg);
  text-align: center;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.88); }
.sheet[open] { animation: pop 0.4s var(--ease); }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.sheet__x {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  color: var(--fg-45);
  cursor: pointer;
}
.sheet__x svg { width: 14px; height: 14px; }
.sheet__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--fg-70);
}
/* o QR fica sempre preto sobre branco, mesmo com a página escura: é o que
   qualquer câmera lê melhor, e o mesmo arquivo serve pra gráfica */
.sheet__qr {
  width: 100%;
  max-width: 250px;
  margin: 22px auto 0;
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
}
.sheet__url {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--fg-45);
}

/* --------------------------------------------------------------------------
   toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 120;
  transform: translate(-50%, 14px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   entrada
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   telas maiores: o cartão respira, nunca estica
   -------------------------------------------------------------------------- */

@media (min-width: 900px) and (min-height: 720px) {
  .shell {
    max-width: 560px;
    padding-top: clamp(48px, 7vh, 76px);
  }
  .mark { width: 168px; }
}

/* --------------------------------------------------------------------------
   acessibilidade / impressão
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Imprimir um cartão escuro gasta toner e sai ilegível. No papel a página
   vira preto sobre branco e as ações (que não funcionam impressas) somem.
   O logo é arte clara sobre fundo escuro, então também sai. */
@media print {
  .grain::before,
  .actions,
  .toast,
  .mark { display: none; }
  body { background: #fff; color: #000; }
  .intro, .link__sub, .onde span, .foot a { color: #333; }
  .link { border-color: #ccc; }
  .links { border-color: #ccc; }
}
