/* Sarah Brandão | Link da bio
   Paleta do Manual da Marca: vinho #5A1C26, creme #F1E6D5, dourado do símbolo. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --wine-950: #1E070C;
  --wine-900: #2A0B11;
  --wine-800: #3A1018;
  --wine-700: #4A1620;
  --wine: #5A1C26;
  --cream: #F1E6D5;
  --cream-dim: rgba(241, 230, 213, 0.72);
  --gold-1: #F2DDB6;
  --gold-2: #C9A06A;
  --gold-3: #E8CC9C;
  --gold-4: #9C7445;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 75%, var(--gold-4) 100%);
  --hairline: linear-gradient(135deg, rgba(242, 221, 182, 0.55), rgba(201, 160, 106, 0.12) 40%, rgba(242, 221, 182, 0.35));
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--wine-900);
  color: var(--cream);
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
.sprite { position: absolute; }

/* ---------- Fundo: logo desfocada + vidro ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--wine) 0%, var(--wine-800) 45%, var(--wine-950) 100%);
}
.backdrop__mark {
  position: absolute;
  height: auto;
  opacity: 0.85;
}
.backdrop__mark--a { width: min(150vw, 820px); top: -4%; left: 50%; transform: translateX(-58%) rotate(-10deg); }
.backdrop__mark--b { width: min(110vw, 600px); bottom: -14%; right: -30%; transform: rotate(16deg); opacity: 0.6; }
/* vidro fosco: desfoca a logo e escurece levemente para leitura */
.backdrop__glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 11, 17, 0.18) 0%, rgba(30, 7, 12, 0.42) 60%, rgba(30, 7, 12, 0.62) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

/* ---------- Página ---------- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100dvh;
  padding:
    max(28px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

/* ---------- Topo: retrato em arco + selo ---------- */
.hero { display: flex; flex-direction: column; align-items: center; }

.portrait {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 4 / 5;
  margin-top: 8px;
}
/* moldura dourada deslocada, dando profundidade ao arco */
.portrait__frame {
  position: absolute;
  inset: -10px;
  border-radius: 999px 999px 26px 26px;
  padding: 1px;
  background: var(--hairline);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.portrait__photo,
.portrait__photo img {
  width: 100%;
  height: 100%;
}
.portrait__photo {
  display: block;
  border-radius: 999px 999px 20px 20px;
  overflow: hidden;
  background: var(--wine);
  box-shadow:
    0 30px 60px -20px rgba(15, 3, 6, 0.85),
    0 0 0 1px rgba(242, 221, 182, 0.08);
}
.portrait__photo img { object-fit: cover; object-position: 50% 20%; }
.portrait__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 62%, rgba(42, 11, 17, 0.55) 100%);
  pointer-events: none;
}

/* selo da marca no canto, como selo de verificação */
.seal {
  position: absolute;
  right: -18px;
  bottom: 22px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 7px;
  background:
    radial-gradient(circle at 35% 30%, var(--wine-700), var(--wine-900) 75%);
  box-shadow:
    inset 0 1px 0 rgba(242, 221, 182, 0.25),
    inset 0 -6px 12px rgba(0, 0, 0, 0.35),
    0 14px 28px -8px rgba(10, 2, 4, 0.8);
}
.seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: var(--gold);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.seal img { width: 100%; height: 100%; }

.identity { text-align: center; margin-top: 26px; }
.identity__name {
  margin: 0;
  font-weight: 300;
  font-size: clamp(28px, 8.4vw, 36px);
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}
.identity__role {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold-2);
  -webkit-text-fill-color: transparent;
}
.identity__line {
  margin: 16px auto 0;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream-dim);
  text-wrap: balance;
}

/* ---------- Botões: superfície em leve relevo ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.links__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 240, 225, 0.075) 0%, rgba(255, 240, 225, 0.02) 100%),
    rgba(74, 22, 32, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 214, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(10, 2, 4, 0.4),
    0 10px 24px -12px rgba(10, 2, 4, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  outline: none;
}
/* contorno dourado fino */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--hairline);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: -1;
}
/* luz que acompanha o cursor */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(242, 221, 182, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.btn__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--gold-1);
  background:
    radial-gradient(circle at 35% 25%, rgba(242, 221, 182, 0.16), transparent 60%),
    rgba(30, 7, 12, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(242, 221, 182, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 160, 106, 0.28);
}
.btn__icon svg { width: 22px; height: 22px; fill: currentColor; }

.btn__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.btn__label {
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.btn__sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--gold-2);
  transition: transform 0.35s var(--ease);
}
.btn__go svg { width: 16px; height: 16px; fill: currentColor; }

/* botão principal: superfície dourada */
.btn--primary {
  min-height: 76px;
  color: var(--wine-900);
  background: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 238, 0.75),
    inset 0 -2px 0 rgba(120, 82, 42, 0.45),
    0 2px 4px rgba(10, 2, 4, 0.35),
    0 18px 34px -14px rgba(201, 160, 106, 0.55);
}
.btn--primary::before { background: linear-gradient(135deg, rgba(255, 248, 230, 0.9), rgba(156, 116, 69, 0.6)); }
.btn--primary::after { background: radial-gradient(200px circle at var(--mx) var(--my), rgba(255, 252, 244, 0.45), transparent 60%); }
.btn--primary .btn__icon {
  color: var(--cream);
  background: radial-gradient(circle at 35% 25%, var(--wine-700), var(--wine-900) 80%);
  box-shadow:
    inset 0 1px 0 rgba(242, 221, 182, 0.3),
    0 4px 10px -2px rgba(42, 11, 17, 0.6);
}
.btn--primary .btn__label { font-size: 16.5px; }
.btn--primary .btn__sub { color: rgba(42, 11, 17, 0.72); }
.btn--primary .btn__go { color: var(--wine); }

/* meio botão (redes) */
.btn--half {
  min-height: 60px;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
}
.btn--half .btn__icon { width: 36px; height: 36px; }
.btn--half .btn__icon svg { width: 19px; height: 19px; }

/* estados */
.btn:focus-visible { box-shadow: 0 0 0 2px var(--wine-900), 0 0 0 4px var(--gold-2); }
.btn:active { transform: translateY(1px) scale(0.985); transition-duration: 0.12s; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-3px); }
  .btn:hover::after { opacity: 1; }
  .btn:hover .btn__go { transform: translate(2px, -2px); }
  .btn:not(.btn--primary):hover {
    background-color: rgba(90, 28, 38, 0.6);
    box-shadow:
      inset 0 1px 0 rgba(255, 238, 214, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.35),
      0 2px 4px rgba(10, 2, 4, 0.4),
      0 22px 36px -16px rgba(10, 2, 4, 0.95);
  }
  .btn--primary:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 250, 238, 0.85),
      inset 0 -2px 0 rgba(120, 82, 42, 0.45),
      0 4px 8px rgba(10, 2, 4, 0.35),
      0 26px 44px -16px rgba(201, 160, 106, 0.7);
  }
}

.btn.is-pending { cursor: default; }

/* ---------- Rodapé ---------- */
.foot {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}
.foot__mark { width: 18px; height: auto; margin: 0 auto 10px; opacity: 0.85; }
.foot__text, .foot__oab {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 230, 213, 0.5);
}
.foot__oab { margin-top: 6px; letter-spacing: 0.16em; }

/* ---------- Aviso de link pendente ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 5;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--wine-900);
  background: var(--gold-1);
  box-shadow: 0 12px 30px -10px rgba(10, 2, 4, 0.8);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .portrait, .identity, .links > *, .foot {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.9s var(--ease) forwards;
  }
  .identity { animation-delay: 0.12s; }
  .links > :nth-child(1) { animation-delay: 0.22s; }
  .links > :nth-child(2) { animation-delay: 0.3s; }
  .links > :nth-child(3) { animation-delay: 0.38s; }
  .links > :nth-child(4) { animation-delay: 0.46s; }
  .foot { animation-delay: 0.56s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* ---------- Telas ---------- */
/* aparelhos pequenos (iPhone SE, Android compactos) */
@media (max-width: 360px) {
  .portrait { width: 68vw; }
  .seal { width: 76px; height: 76px; right: -12px; }
  .identity__role { letter-spacing: 0.3em; }
  .btn { gap: 12px; padding-right: 12px; }
  .btn__label { font-size: 14.5px; }
  .btn--primary .btn__label { font-size: 15.5px; }
  .btn--half { padding: 10px 8px; gap: 8px; }
  .btn--half .btn__icon { width: 32px; height: 32px; }
}
/* telas baixas: retrato menor para os botões aparecerem cedo */
@media (max-height: 700px) and (max-width: 600px) {
  .portrait { width: min(56vw, 240px); }
  .identity { margin-top: 20px; }
  .links { margin-top: 24px; }
}
/* desktop: cartão central com respiro */
@media (min-width: 768px) {
  .page { padding-top: 56px; padding-bottom: 40px; }
  .portrait { width: 300px; }
}

/* sem suporte a backdrop-filter: fundo sólido equivalente */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .backdrop__mark { filter: blur(16px); }
  .backdrop__glass { background: rgba(30, 7, 12, 0.6); }
  .btn { background-color: rgba(74, 22, 32, 0.92); }
}
