/* ============================================================
   REVERT — Footer. Panel with a dark brand card + links + CTA,
   and a giant "revert" wordmark whose bottom half is clipped.
   ============================================================ */

.site-footer {
  background: #eef4fb;
  padding: 44px 20px 0;
  overflow: hidden;
}

.foot-panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: 480px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 26px 70px -34px rgba(20, 40, 70, .22), 0 0 0 1px rgba(16, 24, 40, .04);
  overflow: hidden;
}
/* sticker badge, sitting inside the top-right corner of the panel */
.foot-badge {
  position: absolute;
  top: 2px;
  right: 54px;
  width: clamp(240px, 22vw, 310px);
  height: auto;
  transform: rotate(-9deg);
  transform-origin: top right;
  z-index: 6;
  pointer-events: none;
}

/* ---------- left dark brand card ---------- */
.foot-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(8, 10, 16, .58) 0%, rgba(8, 10, 16, .34) 42%, rgba(8, 10, 16, .5) 100%),
    url("../assets/img/footer-bg.png") center / cover no-repeat;
  background-color: #0b0d12;
  color: #fff;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  border-radius: 26px 0 0 26px;
}
/* blur the lower part of the background, fading out towards the top */
.foot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 24%, transparent 60%);
  mask-image: linear-gradient(to top, #000 0%, #000 24%, transparent 60%);
}
.foot-card > * { position: relative; z-index: 1; }
.foot-say {
  display: block;
  margin-top: auto;
  padding-top: 26px;
  font-family: "Skribblugh", "Comic Sans MS", cursive;
  font-size: 23px;
  letter-spacing: .3px;
  color: #fff;
  opacity: .95;
}
.foot-logo { height: 30px; width: auto; display: block; }
.foot-logo .logo-mark { fill: #28CE68; }
.foot-logo .logo-word { fill: #fff; }
.foot-tagline {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  max-width: 25ch;
}
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid; place-items: center;
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.foot-social a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }

/* ---------- right body: link columns + subscribe ---------- */
.foot-body {
  padding: 46px 44px 40px;
  display: flex;
  flex-direction: column;
}
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot-divider { height: 1px; background: rgba(16, 24, 40, .09); margin: auto 0 26px; }
.foot-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.foot-bottom .foot-legal { margin: 0; order: 1; }
.foot-bottom .foot-cta { order: -1; margin-left: 0; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-col a { font-size: 14px; color: var(--ink-soft); transition: color .2s ease; }
.foot-col a:hover { color: var(--ink); }

.foot-cta { margin-left: auto; max-width: 400px; min-width: 280px; }
.foot-cta-sub { margin: 0; font-size: 14px; color: var(--muted); }
.foot-cta-title {
  margin: 3px 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
}
.foot-sub { display: flex; gap: 8px; }
.foot-sub input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(16, 24, 40, .08);
  background: #ffffff;
  font: inherit; font-size: 14px;
  color: var(--ink);
  box-shadow:
    -21px 16px 10px rgba(0, 0, 0, .04),
    -12px  9px  9px rgba(0, 0, 0, .10),
     -5px  4px  6px rgba(0, 0, 0, .16),
     -1px  1px  4px rgba(0, 0, 0, .18);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.foot-sub input::placeholder { color: var(--muted); }
.foot-sub input:focus { outline: none; border-color: #28ce68; }
.foot-sub button {
  flex: none;
  padding: 11px 18px;
  border-radius: 11px;
  border: none;
  background-image: linear-gradient(198deg, #323232, #141414);
  color: #fff;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  outline: 1px solid rgba(255, 255, 255, .2);
  outline-offset: -1px;
  box-shadow:
    -21px 16px 10px rgba(0, 0, 0, .04),
    -12px  9px  9px rgba(0, 0, 0, .13),
     -5px  4px  6px rgba(0, 0, 0, .23),
     -1px  1px  4px rgba(0, 0, 0, .26);
  transition: transform .22s ease, box-shadow .22s ease;
}
.foot-sub button:hover { transform: translateY(-2px); }
.foot-legal { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- giant wordmark, clipped to its top half ---------- */
.foot-watermark {
  max-width: 1200px;
  margin: 6px auto 0;
  overflow: hidden;
  height: clamp(44px, 10.5vw, 150px);   /* ~half the glyph height */
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
.foot-watermark span {
  display: block;
  font-family: "Plus Jakarta Sans", "Zimula", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(92px, 23vw, 310px);
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(16, 24, 40, .085);
  white-space: nowrap;
  user-select: none;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .foot-panel { grid-template-columns: 1fr; min-height: 0; }
  .foot-card { border-radius: 26px 26px 0 0; }
  .foot-tagline { max-width: 50%; }
  .foot-body { padding: 34px 26px 34px; }
  .foot-cols { gap: 40px; }
  .foot-divider { margin-top: 30px; }          /* fixed space above the line */
  .foot-bottom { gap: 22px; }
  .foot-cta { margin-left: 0; width: 100%; max-width: none; }
  .foot-badge {                                 /* kept clear of the tagline */
    width: clamp(120px, 34vw, 150px);
    right: 4px;
    top: 6px;
  }
}
