:root{
  --primary:#5c4761;
  --gray:#9d9d9d;
  --bg:#ffffff;

  --ink: rgba(16,18,24,.92);
  --muted: rgba(16,18,24,.62);

  --radius: 26px;
  --shadow: 0 18px 60px rgba(0,0,0,.14);
  --inner: min(520px, 92vw);

  --pad: 14px;
  --card-max: calc(100svh - (var(--pad) * 2));
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 18% 15%, rgba(92,71,97,.16), transparent 60%),
    radial-gradient(900px 520px at 82% 55%, rgba(157,157,157,.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f5f5f7 55%, #fff 100%);
}

.page{
  min-height:100%;
  display:grid;
  place-items:center;
  padding: var(--pad);
}

.card{
  width: var(--inner);
  max-height: var(--card-max);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* HERO */
.hero{
  position:relative;
  height: clamp(280px, 45svh, 380px);
  flex: 0 0 auto;
  overflow:hidden;
}

.hero-img{
  position:absolute;
  inset:0;
  background: url("../../images/maju1.jpeg") center/cover no-repeat;
  transform: scale(1.03);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 360px at 25% 30%, rgba(92,71,97,.30), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.35) 60%, rgba(255,255,255,.10) 100%);
}

.hero-content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  padding: 18px 18px 16px;
  text-align:center;
  gap: 10px;
}

/* LOGO */
.hero-logo{
  width: min(230px, 64vw);
  height:auto;
  display:block;
  user-select:none;
  -webkit-user-drag:none;

  position: relative;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.32));

  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 72%);
  -webkit-mask-size: 220% 100%;
  -webkit-mask-position: 120% 0;

  mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 72%);
  mask-size: 220% 100%;
  mask-position: 120% 0;

  animation: logoWrite 1.25s ease-out .10s both;
  transform-origin: center bottom;
}

.hero-logo::after{
  content:"";
  position:absolute;
  inset:-6px;
  pointer-events:none;
  opacity:0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.0) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.0) 65%,
    transparent 100%);
  transform: translateX(-35%) skewX(-14deg);
  filter: blur(1px);
  animation: logoShine 1.1s ease-out .25s both;
}

@keyframes logoWrite{
  0%{
    opacity:0;
    transform: translateY(6px) scale(.985);
    -webkit-mask-position: 120% 0;
    mask-position: 120% 0;
  }
  100%{
    opacity:1;
    transform: translateY(0) scale(1);
    -webkit-mask-position: -10% 0;
    mask-position: -10% 0;
  }
}
@keyframes logoShine{
  0%{ opacity:0; transform: translateX(-35%) skewX(-14deg); }
  15%{ opacity:.9; }
  100%{ opacity:0; transform: translateX(85%) skewX(-14deg); }
}

.hero-pill-wrap{
  display:flex;
  justify-content:center;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  animation: heroFadeUp .60s ease-out 1.35s both;
}

.hero-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.96);
  font-weight: 700;
}
.hero-pill i{ font-size: 16px; opacity:.95; }

.hero-tagline{
  color: rgba(255,255,255,.90);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2px;
  text-shadow: 0 10px 26px rgba(0,0,0,.30);

  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  animation: heroFadeUp .60s ease-out 1.60s both;
}

@keyframes heroFadeUp{
  0%{ opacity:0; transform: translateY(10px); filter: blur(6px); }
  100%{ opacity:1; transform: translateY(0); filter: blur(0); }
}

/* BODY */
.body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

/* =======================
   EFEITO FLASH (SHINE)
   ======================= */
.status,
.link-item,
.share{
  position: relative;
  overflow:hidden;
}

.status::before,
.link-item::before,
.share::before{
  content:"";
  position:absolute;
  top:-20%;
  left:-60%;
  width: 38%;
  height: 140%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.00) 20%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.00) 80%,
    transparent 100%
  );
  opacity: 0;
  pointer-events:none;
  filter: blur(.2px);
}

@keyframes shineSweep{
  0%{ left:-60%; opacity: 0; }
  10%{ opacity: .9; }
  100%{ left: 130%; opacity: 0; }
}

.status:hover::before,
.link-item:hover::before,
.share:hover::before{
  animation: shineSweep .75s ease-out;
  opacity: 1;
}

.link-item.is-primary::before{
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.00) 18%,
    rgba(255,255,255,.75) 50%,
    rgba(255,255,255,.00) 82%,
    transparent 100%
  );
}

/* STATUS */
.status{
  width:100%;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 52px;
}
.status:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(92,71,97,.22);
}
.status:active{ transform: translateY(0px) scale(.995); }

.status-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2ed06e;
  box-shadow: 0 0 0 0 rgba(46,208,110,.55);
  animation: pulse 1.35s ease-in-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(46,208,110,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(46,208,110,0); }
  100%{ box-shadow: 0 0 0 0 rgba(46,208,110,0); }
}

.status-text{
  font-weight: 800;
  color: rgba(16,18,24,.86);
  letter-spacing: .2px;
}
.status i{ margin-left:auto; color: rgba(16,18,24,.42); }

/* LINKS */
.links{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.link-item{
  width:100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  text-decoration:none;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 58px;
}
.link-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(92,71,97,.22);
}
.link-item:active{ transform: translateY(0px) scale(.995); }

.li-ic{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.04);
  color: rgba(16,18,24,.70);
  flex: 0 0 auto;
}
.li-ic i{ font-size: 18px; }

.li-txt{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width:0;
}
.li-txt strong{ font-size: 15px; color: rgba(16,18,24,.88); line-height: 1.15; }
.li-txt small{ font-size: 12px; color: rgba(16,18,24,.55); line-height: 1.15; }

.li-go{
  margin-left:auto;
  color: rgba(16,18,24,.36);
  flex: 0 0 auto;
}

.link-item.is-primary{
  background: rgba(92,71,97,.90);
  border-color: rgba(92,71,97,.18);
}
.link-item.is-primary .li-ic{
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.94);
}
.link-item.is-primary .li-txt strong,
.link-item.is-primary .li-txt small,
.link-item.is-primary .li-go{
  color: rgba(255,255,255,.92);
}

/* CTA */
.cta{
  text-align:center;
  font-size: 12.5px;
  color: rgba(16,18,24,.62);
  padding-top: 2px;
}
.cta-link{
  display:inline-block;
  margin-left: 6px;
  color: var(--primary);
  font-weight: 800;
  text-decoration:none;
}
.cta-link:hover{ text-decoration: underline; }

/* ✅ SHARE (fix mobile height + hit area) */
.share{
  width:100%;
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.96);

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;

  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;

  /* ✅ garante altura bonita e consistente */
  min-height: 58px;
  line-height: 1.2;

  /* ✅ melhora toque no mobile */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.share:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(92,71,97,.22);
}
.share:active{ transform: translateY(0px) scale(.995); }

.share-ic{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.04);
  color: rgba(16,18,24,.70);
  flex: 0 0 auto;
}

.share-txt{
  font-weight: 900;
  color: rgba(16,18,24,.82);
  letter-spacing: .2px;
  line-height: 1.15;
}

/* ✅ quando o texto muda (Link copiado!), não “amassar” */
#shareTxt{
  display:inline-block;
  text-align:center;
  white-space: nowrap;
}

/* FOOT */
.footnote{
  margin: 0;
  text-align:center;
  font-size: 11px;
  color: rgba(16,18,24,.40);
}

/* MOBILE */
@media (max-width: 420px){
  .hero{ height: 44svh; }
  .body{ padding: 12px 12px 14px; }

  .link-item{ padding: 13px 13px; min-height: 56px; }
  .status{ min-height: 52px; }

  /* ✅ share mais “premium” no mobile */
  .share{
    padding: 14px 12px;
    min-height: 60px; /* evita altura reduzida */
    gap: 10px;
  }
  .share-ic{ width: 42px; height: 42px; border-radius: 16px; }
  .share-txt{ font-size: 15px; }
}

/* REDUZ MOVIMENTO */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .status-dot{ animation: none; box-shadow:none; }
  .link-item, .share, .status{ transition:none; }
  .status::before, .link-item::before, .share::before{ display:none; }

  .hero-logo{ animation:none; -webkit-mask:none; mask:none; }
  .hero-logo::after{ display:none; }

  .hero-pill-wrap,
  .hero-tagline{
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}