/* Cards táteis — layout “vitrine” (widget + home) */
.tactile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.embed--cols-1 .tactile-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.embed--cols-2 .tactile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.embed--cols-3 .tactile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.embed--cols-4 .tactile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .embed--cols-3 .tactile-grid,
  .embed--cols-4 .tactile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .embed--cols-2 .tactile-grid,
  .embed--cols-3 .tactile-grid,
  .embed--cols-4 .tactile-grid { grid-template-columns: 1fr; }
}

.tactile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(20, 32, 28, 0.88) 0%, rgba(11, 17, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 20px 40px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  overflow: hidden;
  min-width: 0;
}
.tactile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.35) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(0, 0, 0, 0.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tactile-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 48px -16px rgba(16, 185, 129, 0.14),
    0 0 0 1px rgba(52, 211, 153, 0.22),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.16);
}
.tactile-card.is-featured {
  border-color: rgba(57, 233, 107, 0.28);
}

.tactile-card__body {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.tactile-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tactile-card__stars {
  color: #fbbf24;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  line-height: 1;
}
.tactile-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #34d399;
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.tactile-card__quote {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #e2e8f0;
  min-width: 0;
}
.tactile-card__quote .embed-comment__body,
.tactile-card__quote .embed-comment__short,
.tactile-card__quote .embed-comment__full {
  margin: 0;
  color: inherit;
}
.tactile-card__quote .embed-more {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  padding: 0;
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}
.tactile-card__quote .embed-more:hover {
  color: #6ee7b7;
}

.tactile-card__media {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1210;
}
.tactile-card__media img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 0.45s ease, opacity 0.35s ease;
}
.tactile-card:hover .tactile-card__media img {
  transform: scale(1.04);
  opacity: 1;
}
.tactile-card__media-chip {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 10, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.tactile-card__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #34d399;
}

.tactile-card__reply {
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.tactile-card__reply strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
}
.tactile-card__reply p {
  margin: 0;
}

.tactile-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
.tactile-card__author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.tactile-card__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tactile-card__avatar--ph {
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(145deg, #10b981, #0f766e);
  border: 0;
}
.tactile-card__name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.tactile-card__check {
  color: #34d399;
  flex-shrink: 0;
}
.tactile-card__meta {
  margin: 0.1rem 0 0;
  font-size: 0.65rem;
  color: #94a3b8;
}
.tactile-card__seal {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 650;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.35rem;
  padding: 0.2rem 0.45rem;
}

/* Embed shell for tactile layout */
.embed--tactile {
  --embed-bg: #060a08;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  background:
    radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.08) 0px, transparent 45%),
    radial-gradient(at 85% 25%, rgba(5, 150, 105, 0.07) 0px, transparent 40%),
    linear-gradient(180deg, #070c0a 0%, #0b1110 55%, #050807 100%);
  color: var(--ink);
  padding: 0.85rem 0.75rem 0.75rem;
  overflow-x: hidden;
  overflow-y: hidden;
}
.embed--tactile .embed-head {
  margin-bottom: 0.65rem;
}
.embed--tactile .embed-head strong {
  color: #f8fafc;
}
.embed--tactile .embed-public-link {
  color: #34d399;
}
.embed--tactile .embed-brand {
  color: #34d399;
}
.embed--tactile.embed--skin-light {
  /* Vitrine tátil permanece escura — contraste do design */
  background:
    radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.08) 0px, transparent 45%),
    linear-gradient(180deg, #070c0a 0%, #0b1110 100%);
}

/* Faixa horizontal (iframe / widget) — evita grade multi-linha */
.embed--tactile.embed--marquee-x .embed-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  /* Folga para sombra/hover sem cortar no topo/base do viewport */
  padding-block: 10px;
  margin-block: -2px;
  box-sizing: border-box;
}
.embed--tactile.embed--marquee-x .embed-list--tactile,
.embed--tactile.embed--marquee-x .embed-marquee__group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  padding-block: 4px;
}
.embed--tactile.embed--marquee-x .tactile-card.embed-item {
  margin: 0;
  min-height: 100%;
}
/* No iframe o overflow corta translateY — hover só com glow */
.embed--tactile .tactile-card:hover {
  transform: none;
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.32),
    0 12px 28px -10px rgba(16, 185, 129, 0.22),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.18);
}
.embed--tactile .tactile-card:hover .tactile-card__media img {
  transform: scale(1.03);
}
.embed--tactile.embed--marquee-x:not(.is-marquee-running) .embed-scroll {
  scrollbar-width: thin;
}
.embed--tactile.embed--no-scrollbar.embed--marquee-x:not(.is-marquee-running) .embed-scroll {
  scrollbar-width: none;
}

/* Home showcase */
.lp-vitrine__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-vitrine__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.lp-vitrine__badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}
.lp-vitrine__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  color: #fff;
}
.lp-vitrine__head h2 span {
  background: linear-gradient(105deg, #fff 20%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-vitrine__lead {
  margin: 0;
  max-width: 36rem;
  color: var(--lp-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.55;
}
.lp-vitrine__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--lp-muted, #94a3b8);
}
.lp-vitrine__meta-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(18, 32, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #34d399;
}
.lp-vitrine__meta strong {
  display: block;
  color: #fff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lp-vitrine__meta span {
  color: #6ee7b7;
  font-weight: 600;
  font-size: 0.78rem;
}
.lp-vitrine__foot {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  background: rgba(11, 17, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--lp-muted, #94a3b8);
}
.lp-vitrine__foot strong {
  color: #e2e8f0;
  font-weight: 650;
}
.lp-vitrine__credit {
  color: #34d399;
  font-weight: 700;
  text-decoration: none;
}
.lp-vitrine__credit:hover {
  color: #6ee7b7;
}

@media (max-width: 640px) {
  .tactile-grid {
    grid-template-columns: 1fr;
  }
}
