* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: system-ui, sans-serif;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

img {
  display: block;
  width: min(500px, 100%);
  height: auto;
}

.logo-container {
  width: min(500px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

button,
.button {
  display: inline-block;
  text-decoration: none;
  line-height: 1.4;
  padding: 10px 25px;
  border: 1px solid #222;
  border-radius: 5px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: #222;
  color: #fff;
}

button:focus-visible,
.button:focus-visible {
  outline: 2px solid #222;
  outline-offset: 4px;
}

dialog {
  width: min(480px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
}

dialog::backdrop {
  background: rgb(0 0 0 / 35%);
}

dialog[open] {
  animation: modal-open 220ms ease-out;
}

dialog[open]::backdrop {
  animation: backdrop-open 220ms ease-out;
}

@keyframes modal-open {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open],
  dialog[open]::backdrop {
    animation: none;
  }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

dialog h1 {
  margin: 0;
  font-size: 24px;
}

.modal-content {
  padding: 8px 24px 24px;
}

.modal-close-form {
  margin: 0;
  flex-shrink: 0;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.modal-close:hover {
  background: #b91c1c;
}

dialog p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

#features-dialog {
  width: min(680px, calc(100% - 48px));
  overflow-y: auto;
}

.feature-list section {
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.feature-list h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.feature-list ul {
  margin: 0;
  padding-left: 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 6px;
}

.site-footer {
  margin-top: -12px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.copyright {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
}

.copyright-name {
  text-decoration: underline;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: #222;
}
