/* Site footer — mockup-inspired layout (real links only) */

.site-footer {
  border-top: none;
  background: transparent;
  padding: 28px 0 40px;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  flex-shrink: 0;
}

.site-footer__card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(10, 12, 28, 0.92);
  padding: 32px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

[data-theme="light"] .site-footer__card {
  border-color: rgba(21, 18, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(20, 16, 40, 0.06);
}

.site-footer__brand {
  min-width: 0;
  padding-right: 12px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.85fr) repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e9ecff;
  margin-bottom: 14px;
}

[data-theme="light"] .site-footer__logo {
  color: #15122a;
}

.site-footer__logo .brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.site-footer__logo .brand-logo img {
  width: 28px;
  height: 28px;
  display: block;
}

.site-footer__wordmark {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.site-footer__slogan {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e9ecff;
  white-space: nowrap;
}

[data-theme="light"] .site-footer__slogan {
  color: #15122a;
}

.site-footer__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #c5cbe8;
  max-width: 34ch;
}

[data-theme="light"] .site-footer__desc {
  color: #3d3858;
}

.site-footer__socials {
  display: none;
  gap: 10px;
}

.site-footer__accordion[open] > .site-footer__socials {
  display: flex;
}

.site-footer__social-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(233, 236, 255, 0.85);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.site-footer__social-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.12);
  color: #e9ecff;
}

[data-theme="light"] .site-footer__social-btn {
  border-color: rgba(21, 18, 42, 0.12);
  color: rgba(21, 18, 42, 0.7);
}

[data-theme="light"] .site-footer__social-btn:hover {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
  color: #15122a;
}

.site-footer__social-btn i,
.site-footer__social-btn svg {
  width: 15px;
  height: 15px;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__accordion {
  border: none;
}

.site-footer__heading {
  margin: 0 0 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5cbe8;
  cursor: default;
}

.site-footer__heading::-webkit-details-marker {
  display: none;
}

[data-theme="light"] .site-footer__heading {
  color: #4a4566;
}

.site-footer__chevron {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.site-footer__accordion[open] > .site-footer__heading .site-footer__chevron {
  transform: rotate(180deg);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.site-footer__accordion[open] > .site-footer__list {
  display: flex;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #d0d6ee;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__list a:hover {
  color: #e9ecff;
}

[data-theme="light"] .site-footer__list a {
  color: rgba(21, 18, 42, 0.62);
}

[data-theme="light"] .site-footer__list a:hover {
  color: #15122a;
}

/* Desktop: always show column links (accordion is mobile-only) */
@media (min-width: 861px) {
  .site-footer__accordion > .site-footer__list,
  .site-footer__accordion > .site-footer__socials {
    display: flex !important;
  }

  .site-footer__heading {
    pointer-events: none;
  }

  /* Chevron is mobile accordion affordance only (beat .cntx-icon display) */
  .site-footer__heading .site-footer__chevron,
  .site-footer__heading svg.site-footer__chevron {
    display: none !important;
  }
}

.site-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .site-footer__newsletter {
  border-color: rgba(21, 18, 42, 0.08);
  background: rgba(21, 18, 42, 0.03);
}

.site-footer__newsletter-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

@media (min-width: 861px) {
  .site-footer__newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    grid-template-areas:
      "copy form"
      ". privacy";
    column-gap: 20px;
    row-gap: 0;
    align-items: center;
  }

  .site-footer__newsletter-main {
    display: contents;
  }

  .site-footer__newsletter-copy {
    grid-area: copy;
  }

  .site-footer__newsletter-form {
    grid-area: form;
    flex: unset;
    max-width: none;
    width: 100%;
  }

  .site-footer__newsletter-privacy {
    grid-area: privacy;
    margin: 4px 0 0 17px;
    text-align: left;
    justify-self: stretch;
  }

  .site-footer__newsletter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .site-footer__newsletter-input,
  .site-footer__newsletter-submit {
    height: 44px;
    min-height: 44px;
  }
}

.site-footer__newsletter-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.site-footer__newsletter-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer__newsletter-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124, 58, 237, 0.14);
  color: var(--cntx-primary, #7c3aed);
}

.site-footer__newsletter-icon i,
.site-footer__newsletter-icon svg {
  width: 16px;
  height: 16px;
}

.site-footer__newsletter-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e9ecff;
}

[data-theme="light"] .site-footer__newsletter-title {
  color: #15122a;
}

.site-footer__newsletter-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c5cbe8;
}

[data-theme="light"] .site-footer__newsletter-desc {
  color: #3d3858;
}

.site-footer__newsletter-form {
  flex: 0 1 420px;
  max-width: 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-footer__newsletter-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  flex: 0 0 auto;
}

.site-footer__newsletter-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 20, 0.45);
  color: #e9ecff;
  outline: none;
  font-size: 15px;
  line-height: 1.3;
  font-family: inherit;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.site-footer__newsletter-input::placeholder {
  color: #9aa3c8;
}

.site-footer__newsletter-input:focus {
  border-color: var(--cntx-primary, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .site-footer__newsletter-input {
  background: #fff;
  border-color: rgba(21, 18, 42, 0.12);
  color: #15122a;
}

[data-theme="light"] .site-footer__newsletter-input::placeholder {
  color: rgba(21, 18, 42, 0.4);
}

.site-footer__newsletter-submit {
  flex-shrink: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: var(--cntx-primary, #7c3aed);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.site-footer__newsletter-submit:hover {
  filter: brightness(1.06);
}

.site-footer__newsletter-message {
  margin-top: 0;
  font-size: 12px;
  min-height: 0;
}

.site-footer__newsletter-message:not(:empty) {
  margin-top: 8px;
}

.site-footer__newsletter-message.error {
  color: #f87171;
}

.site-footer__newsletter-message.success {
  color: #34d399;
}

.site-footer__newsletter-privacy {
  margin: 4px 0 0 17px;
  font-size: 12px;
  color: #c5cbe8;
  text-align: left;
}

[data-theme="light"] .site-footer__newsletter-privacy {
  color: #4a4566;
}

.site-footer__newsletter-input.cntx-form-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex: 1;
}

.site-footer__legal a {
  font-size: 12px;
  color: #c5cbe8;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #e9ecff;
}

[data-theme="light"] .site-footer__legal a {
  color: #4a4566;
}

[data-theme="light"] .site-footer__legal a:hover {
  color: #15122a;
}

[data-theme="light"] .site-footer__bottom {
  border-top-color: rgba(21, 18, 42, 0.08);
}

.site-footer__copy {
  margin: 0;
  font-size: 12px;
  color: #c5cbe8;
}

[data-theme="light"] .site-footer__copy {
  color: #4a4566;
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c5cbe8;
  text-decoration: none;
}

.site-footer__top:hover {
  color: #e9ecff;
}

[data-theme="light"] .site-footer__top {
  color: rgba(21, 18, 42, 0.55);
}

[data-theme="light"] .site-footer__top:hover {
  color: #15122a;
}

.site-footer__top-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .site-footer__top-icon {
  border-color: rgba(21, 18, 42, 0.18);
}

.site-footer__top-icon i,
.site-footer__top-icon svg {
  width: 12px;
  height: 12px;
}

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

  .site-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .site-footer__newsletter {
    flex-wrap: wrap;
  }

  .site-footer__newsletter-main {
    flex-wrap: wrap;
  }

  .site-footer__newsletter-form {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .site-footer__card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px 20px 14px;
    overflow: hidden;
  }

  .site-footer__grid {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
  }

  .site-footer__brand {
    order: 0;
    padding: 0 0 20px;
    margin-bottom: 0;
    /* Separators live on .site-footer__col only — brand border was wider when
       slogan nowrap overflowed, so the line above PRODUCT looked misaligned */
    border-bottom: none;
    min-width: 0;
    max-width: 100%;
  }

  .site-footer__slogan {
    white-space: normal;
  }

  .site-footer__newsletter {
    order: 2;
    margin: 16px 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-footer__bottom {
    order: 3;
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer__desc {
    max-width: none;
  }

  .site-footer__col {
    width: 100%;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
  }

  [data-theme="light"] .site-footer__col {
    border-top-color: rgba(21, 18, 42, 0.08);
    border-bottom-color: transparent;
  }

  .site-footer__col:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  [data-theme="light"] .site-footer__col:last-of-type {
    border-bottom-color: rgba(21, 18, 42, 0.08);
  }

  .site-footer__heading {
    margin: 0;
    padding: 16px 0;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #e9ecff;
    width: 100%;
    box-sizing: border-box;
  }

  [data-theme="light"] .site-footer__heading {
    color: #15122a;
  }

  .site-footer__chevron {
    display: block;
  }

  .site-footer__list {
    padding: 0 0 16px;
    gap: 12px;
  }

  .site-footer__socials {
    padding: 0 0 16px;
  }

  .site-footer__newsletter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__newsletter-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .site-footer__newsletter-copy {
    align-items: center;
  }

  .site-footer__newsletter-title {
    margin: 0;
  }

  .site-footer__newsletter-form {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .site-footer__newsletter-desc {
    display: none;
  }

  .site-footer__newsletter-privacy {
    text-align: left;
  }

  .site-footer__slogan {
    white-space: normal;
  }

  .site-footer__newsletter-row {
    flex-direction: column;
    flex: 0 0 auto;
  }

  .site-footer__newsletter-input,
  .site-footer__newsletter-submit {
    width: 100%;
    height: 52px;
    min-height: 52px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 12px;
  }

  .site-footer__copy {
    width: 100%;
    text-align: center;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .site-footer__top {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 20px 0 28px;
  }

  .site-footer__card {
    padding: 22px 18px 14px;
    border-radius: 18px;
  }
}
