/* Landing (tela 01 do template; M1 no celular). */

/* ---------- células de contribuição compartilhadas ---------- */
.l0 {
  background: var(--lv0);
}
.l1 {
  background: var(--lv1);
}
.l2 {
  background: var(--lv2);
}
.l3 {
  background: var(--lv3);
}
.l4 {
  background: var(--lv4);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  right: -40px;
  top: 40px;
  display: grid;
  grid-template-rows: repeat(7, 16px);
  grid-auto-flow: column;
  grid-auto-columns: 16px;
  gap: 5px;
  transform: rotate(-8deg);
  opacity: 0.9;
}
.hero-grid i {
  border-radius: 4px;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--canvas) 38%,
    color-mix(in srgb, var(--canvas) 60%, transparent) 62%,
    transparent 100%
  );
}
.hero-body {
  position: relative;
  padding-block: 112px 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-body > * {
  max-width: 700px;
}
.live-pill {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 4px 12px 4px 8px;
  font-size: 13px;
  font-weight: 500;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}
.hero h1 {
  margin: 0;
  font-size: 84px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  max-width: 56ch !important;
  text-wrap: pretty;
}
.hero-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--brand);
  border-radius: 10px;
  padding: 0 6px 0 18px;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent),
    0 20px 60px -20px color-mix(in srgb, var(--brand) 33%, transparent);
}
.hero-input {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  font-size: 18px;
}
.hero-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  padding: 18px 0;
  caret-color: var(--brand);
}
.hero-input input::placeholder {
  color: var(--faint);
  opacity: 0.6;
}
.hero-search:focus-within {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--brand) 24%, transparent),
    0 20px 60px -20px color-mix(in srgb, var(--brand) 33%, transparent);
}
.hero-submit {
  border: 0;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.hero-submit:hover {
  background: var(--primary-h);
}
.form-error {
  margin: -12px 0 0;
  color: var(--danger);
  font-size: 14px;
}
.compare-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 14px;
}
.compare-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.compare-inputs input {
  width: 120px;
  font: inherit;
}
.compare-inputs input::placeholder {
  color: var(--fg);
  opacity: 0.85;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--link);
  font-family: 'Mona Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}

/* ---------- galeria ---------- */
.gallery {
  padding-block: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.gallery-head h2,
.badge-copy h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tabs {
  display: flex;
  gap: 6px;
  font-size: 13px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}
.profile-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--fg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.profile-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}
.profile-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.profile-card-head img {
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--subtle);
}
.profile-card-who {
  flex: 1;
  min-width: 0;
}
.profile-card-name {
  font-weight: 700;
  font-size: 15px;
}
.profile-card-username,
.rank {
  font-size: 12px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
}
.mini-grid i {
  aspect-ratio: 1;
  border-radius: 2px;
}
.profile-card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  align-items: center;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg);
}

/* ---------- badge ---------- */
.badge-section {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: none;
}
.badge-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.badge-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.badge-html {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
}
.badge-html span:first-child {
  background: #30363d;
  padding: 4px 8px;
  color: #e6edf3;
}
.badge-html span:last-child {
  background: #238636;
  padding: 4px 8px;
  color: #fff;
}
.code-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.code-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.copy-chip {
  padding: 3px 10px;
  font: inherit;
  cursor: pointer;
}
.code-panel-body {
  display: block;
  padding: 16px 14px;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
}
.str {
  color: var(--str);
}

/* ---------- celular ---------- */
@media (max-width: 960px) {
  .hero h1 {
    font-size: 64px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .badge-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .hero-grid {
    right: -30px;
    top: 12px;
    grid-template-rows: repeat(5, 12px);
    grid-auto-columns: 12px;
    gap: 4px;
    opacity: 0.55;
  }
  .hero-fade {
    display: none;
  }
  .hero-body {
    padding-block: 88px 28px;
    gap: 20px;
  }
  .live-pill {
    font-size: 12px;
    padding: 3px 10px 3px 7px;
    background: color-mix(in srgb, var(--brand) 10%, var(--canvas));
  }
  .live-long,
  .hero-lead-long {
    display: none;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 1;
  }
  .hero-lead {
    font-size: 16px;
    line-height: 1.5;
  }
  .hero-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .hero-input {
    background: var(--bg);
    border: 2px solid var(--brand);
    border-radius: 10px;
    padding: 0 14px;
    min-height: 52px;
    font-size: 15px;
  }
  .hero-input input {
    padding: 12px 0;
  }
  .hero-submit {
    min-height: 48px;
    border-radius: 6px;
  }
  .compare-inputs input {
    width: 100px;
    min-height: 44px;
  }
  .gallery {
    padding-block: 20px 28px;
  }
  .gallery-head {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }
  .gallery-head h2 {
    font-size: 20px;
  }
  .tabs {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .tabs .pill {
    flex: none;
    padding: 7px 12px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .profile-card {
    padding: 14px;
    min-height: 64px;
  }
  .profile-card-head img {
    width: 40px;
    height: 40px;
    border: 0;
  }
  .mini-grid,
  .profile-card-meta {
    display: none;
  }
  .badge-section {
    padding-block: 28px;
    gap: 20px;
  }
  .gallery-head h2,
  .badge-copy h2 {
    font-size: 20px;
  }
}
