/* DISCIPLON global footer — Figma component v0.4.0 */
.dp-site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
}

.dp-site-footer__shell {
  padding-top: 64px;
  padding-bottom: 28px;
}

.dp-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) .72fr .82fr minmax(250px, 1.2fr);
  gap: clamp(36px, 4.5vw, 58px);
}

.dp-site-footer__brand,
.dp-site-footer__column,
.dp-site-footer__newsletter {
  min-width: 0;
}

.dp-site-footer__logo {
  margin-bottom: 18px;
}

.dp-site-footer__description,
.dp-site-footer__newsletter-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.dp-site-footer__description {
  max-width: 240px;
}

.dp-site-footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.dp-site-footer__social {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--muted);
  transition: transform .18s var(--ease), border-color .18s ease, color .18s ease, background .18s ease;
}

.dp-site-footer__social svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-site-footer__heading {
  margin: 2px 0 18px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dp-site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-site-footer__links a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  transition: color .16s ease, transform .16s ease;
}

.dp-site-footer__newsletter-copy {
  max-width: 290px;
  margin-bottom: 16px;
}

.dp-footer-newsletter-form {
  position: relative;
  width: 100%;
}

.dp-footer-newsletter-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dp-footer-newsletter-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}

.dp-footer-newsletter-form__input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  outline: none;
  background: var(--bg) !important;
  color: var(--fg) !important;
  font-size: 13px !important;
  line-height: 1.4;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.dp-footer-newsletter-form__input::placeholder {
  color: var(--muted);
}

.dp-footer-newsletter-form__input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent) !important;
}

.dp-footer-newsletter-form__submit {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--blue) 22%, transparent);
  transition: transform .18s var(--ease), background .18s ease, opacity .18s ease;
}

.dp-footer-newsletter-form__submit:disabled {
  cursor: wait;
  opacity: .68;
}

.dp-footer-newsletter-form__submit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.dp-footer-newsletter-form__status {
  margin: 9px 0 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.5;
}

.dp-footer-newsletter-form__status[hidden] {
  display: none;
}

.dp-footer-newsletter-form__status[data-state="success"] {
  border-color: color-mix(in srgb, #10b981 25%, transparent);
  background: color-mix(in srgb, #10b981 9%, transparent);
  color: #0f9f72;
}

html[data-theme="dark"] .dp-footer-newsletter-form__status[data-state="success"] {
  color: #5ee0b3;
}

.dp-footer-newsletter-form__status[data-state="error"] {
  border-color: color-mix(in srgb, #ef4444 26%, transparent);
  background: color-mix(in srgb, #ef4444 9%, transparent);
  color: #dc2626;
}

html[data-theme="dark"] .dp-footer-newsletter-form__status[data-state="error"] {
  color: #ff8383;
}

.dp-site-footer__newsletter-fine {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.dp-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.dp-site-footer__bottom p {
  margin: 0;
}

.dp-site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.dp-site-footer__legal a {
  color: var(--muted);
  transition: color .16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dp-site-footer__social:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--bg);
    color: var(--fg-secondary);
  }

  .dp-site-footer__links a:hover {
    color: var(--fg);
    transform: translateX(2px);
  }

  .dp-footer-newsletter-form__submit:hover {
    transform: translateY(-1px);
    background: var(--blue-hover);
  }

  .dp-footer-newsletter-form__submit:hover svg {
    transform: translateX(2px);
  }

  .dp-site-footer__legal a:hover {
    color: var(--fg-secondary);
  }
}

@media (max-width: 1023px) {
  .dp-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-site-footer__brand {
    padding-right: 8%;
  }
}

@media (max-width: 639px) {
  .dp-site-footer__shell {
    padding-top: 52px;
    padding-bottom: 24px;
  }

  .dp-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 22px;
  }

  .dp-site-footer__brand,
  .dp-site-footer__newsletter {
    grid-column: 1 / -1;
  }

  .dp-site-footer__description {
    max-width: 320px;
  }

  .dp-site-footer__newsletter-copy {
    max-width: 340px;
  }

  .dp-site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 44px;
    padding-top: 22px;
  }

  .dp-site-footer__legal {
    justify-content: flex-start;
    gap: 13px 18px;
  }
}

@media (max-width: 389px) {
  .dp-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .dp-site-footer__brand,
  .dp-site-footer__newsletter {
    grid-column: auto;
  }
}
