/* Brand wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.wordmark--footer {
  margin-bottom: 22px;
}

.wordmark__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: none;
}

.wordmark__icon--sm {
  width: 44px;
  height: 44px;
  background: var(--color-bg-elevated);
}

.wordmark__icon--footer {
  width: 50px;
  height: 50px;
}

.wordmark__icon--modal {
  width: 40px;
  height: 40px;
}

.wordmark__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark__name {
  color: var(--color-white);
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wordmark__name--sm {
  font-size: 18px;
}

.wordmark__name--dark {
  color: var(--color-text);
}

.wordmark__sub {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-brand);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  margin-top: 5px;
}

.wordmark__sub--sm {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  margin-top: 4px;
}

.wordmark__sub--dark {
  color: var(--color-text-faint);
  font-size: 10px;
  letter-spacing: 0.3em;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--outline-light {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--solid-light {
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-white);
  border-color: var(--color-white);
}

.btn--solid-light:hover {
  background: rgba(255, 255, 255, 0.86);
}

.btn--solid-dark {
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-bg);
  border: none;
  padding: 15px 26px;
}

.btn--solid-dark:hover {
  background: #23262b;
}

.btn--block {
  width: 100%;
  text-align: center;
  padding: 17px 26px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-label__line {
  width: 34px;
  height: 1px;
  background: var(--color-text);
}

.section-label__line--light {
  background: rgba(255, 255, 255, 0.4);
}

.section-label__text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.section-label__text--light {
  color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 11, 0.66);
  backdrop-filter: blur(6px);
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 400px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family: var(--font-body);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text-subtle);
  font-size: 20px;
  line-height: 1;
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__form {
  padding: 20px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.modal__subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.form-field input {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text);
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  outline: none;
}

.form-field input:focus {
  border-color: var(--color-bg);
}

.form-error {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-sm);
  color: var(--color-error);
  font-size: 13px;
  line-height: 1.4;
}

.form-error.is-visible {
  display: flex;
}

.modal__forgot {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-subtle);
  text-decoration: none;
  margin-top: -6px;
}

.modal__forgot:hover {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: var(--color-surface-alt);
  color: var(--color-text);
  padding: clamp(64px, 7vw, 100px) clamp(20px, 4vw, 56px) 40px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.site-footer__tagline {
  margin: 0;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.site-footer__contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-label);
  margin-bottom: 22px;
}

.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.site-footer__contact-list a {
  color: #2a2823;
  text-decoration: none;
}

.site-footer__contact-list a:hover {
  color: var(--color-text);
}

.site-footer__legal {
  border-top: 1px solid var(--color-border-light);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-label);
}

.site-footer__legal a {
  color: var(--color-text-label);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--color-text);
}

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