/* Careers footer in the marketing footer's style (components/layout/footer): white, grey column labels, semibold
   gray links and a bottom bar. Figma uses the dicoding.com footer here; the careers footer keeps its own links. */

.lp-footer {
  background: var(--lp-ui-bg-primary);
}

.lp-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 1rem 3rem;
}

.lp-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.lp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 20rem;
}

.lp-footer__about {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--lp-ui-text-tertiary);
}

.lp-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.lp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lp-footer__label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--lp-ui-text-quaternary);
}

.lp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-footer__link,
.lp-footer__text {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--lp-ui-text-tertiary);
  text-decoration: none;
}

.lp-footer__text {
  font-weight: 400;
}

.lp-footer__link:hover {
  color: var(--lp-ui-text-primary);
}

.lp-footer__link:focus-visible,
.lp-scroll-top:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

.lp-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--lp-ui-border-secondary);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--lp-ui-text-quaternary);
}

.lp-scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: inset 2px 2px 1px rgba(255, 255, 255, 0.2), 0 4px 6px -2px rgba(16, 24, 40, 0.08), 0 12px 16px -4px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, background-color 150ms ease;
}

.lp-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.lp-scroll-top:hover {
  background: color-mix(in oklab, var(--primary) 80%, transparent);
}

.lp-scroll-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 48rem) {
  .lp-footer__inner { padding: 4rem 1.5rem 3rem; }
  .lp-footer__top { flex-direction: row; justify-content: space-between; gap: 3rem; }
  .lp-footer__cols { grid-template-columns: repeat(3, auto); gap: 3.5rem; }
  .lp-scroll-top { right: 2rem; bottom: 2rem; }
}
