/* ==========================================================================
   I'M HERE — cookie consent banner and preferences panel

   The cookie policy tells visitors that non-essential cookies are not set
   until they consent, and that preferences can be changed later from a
   footer link. This is that mechanism. Shared by every page on the marketing
   site so the notice reads and behaves identically wherever someone lands.

   Markup is injected by cookie-consent.js — nothing here renders until the
   script decides the visitor has not answered yet, or has asked to reopen
   their preferences.
   ========================================================================== */

.ck,
.ck-modal {
  font-family: 'DM Sans', sans-serif;
  color: #fff;
}

/* --- Bottom banner --------------------------------------------------------- */
.ck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 9, 8, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 0.5px solid rgba(196, 123, 58, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ck.ck-show {
  opacity: 1;
  transform: translateY(0);
}

.ck-card {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ck-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}
.ck-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin: 0;
}
.ck-body a {
  color: #C47B3A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ck-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ck-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, border-color 0.15s;
}
.ck-btn-primary {
  background: #C47B3A;
  color: #fff;
  border: none;
}
.ck-btn-primary:hover {
  opacity: 0.88;
}
.ck-btn-ghost {
  background: transparent;
  color: #C47B3A;
  border: 1px solid rgba(196, 123, 58, 0.4);
}
.ck-btn-ghost:hover {
  border-color: #C47B3A;
}
.ck-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 6px 2px;
}
.ck-link:hover {
  color: #fff;
}

/* The floating profile nudge sits in the same corner — lift it while the
   banner is on screen so the two never overlap. */
.ck-active .pn {
  bottom: 128px;
}

/* --- Preferences panel ---------------------------------------------------- */
.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ck-modal.ck-show {
  opacity: 1;
}
.ck-panel {
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #0B0A09;
  border: 0.5px solid rgba(196, 123, 58, 0.35);
  border-radius: 14px;
  padding: 28px 28px 24px;
}
.ck-panel h2 {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.ck-panel .ck-intro {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  margin-bottom: 22px;
}
.ck-panel .ck-intro a {
  color: #C47B3A;
}

.ck-row {
  border-top: 0.5px solid rgba(196, 123, 58, 0.15);
  padding: 16px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.ck-row-t {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.ck-row-d {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}
.ck-always {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #C47B3A;
  white-space: nowrap;
  padding-top: 3px;
}

/* Switch */
.ck-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
}
.ck-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.ck-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  transition: background 0.18s, border-color 0.18s;
  pointer-events: none;
}
.ck-track::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.ck-switch input:checked + .ck-track {
  background: rgba(196, 123, 58, 0.9);
  border-color: #C47B3A;
}
.ck-switch input:checked + .ck-track::after {
  transform: translateX(20px);
}
.ck-switch input:focus-visible + .ck-track {
  outline: 2px solid #C47B3A;
  outline-offset: 2px;
}

.ck-panel-actions {
  border-top: 0.5px solid rgba(196, 123, 58, 0.15);
  padding-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Footer link injected next to the cookie policy link ------------------ */
.ck-settings-link {
  cursor: pointer;
}

@media (max-width: 768px) {
  .ck-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .ck-actions {
    gap: 8px;
  }
  .ck-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .ck-link {
    flex-basis: 100%;
    text-align: center;
  }
  .ck-active .pn {
    bottom: 190px;
  }
  .ck-panel {
    padding: 24px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck,
  .ck-modal {
    transition: none;
  }
}
