/* Zenith Plinth — footer-only styles (fully scoped, no page leakage) */

.zv-plinth {
  --zvp-void: #04151A;
  --zvp-ink: #0B2A32;
  --zvp-pearl: #EEF6F4;
  --zvp-mist: #D2E6E1;
  --zvp-teal: #0F8A7A;
  --zvp-teal-bright: #14B89F;
  --zvp-flash: #E85A2E;
  --zvp-chart: #B6D11D;
  --zvp-mute: #5C7E79;
  --zvp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zvp-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --zvp-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
  color: var(--zvp-pearl);
  background:
    radial-gradient(900px 420px at 8% -20%, rgba(15, 138, 122, 0.28), transparent 55%),
    radial-gradient(700px 380px at 100% 30%, rgba(232, 90, 46, 0.16), transparent 50%),
    linear-gradient(165deg, #062028 0%, var(--zvp-void) 48%, #06181d 100%);
  font-family: var(--zvp-body);
  -webkit-font-smoothing: antialiased;
}

/* Break out of home dock padding so footer spans full width without 100vw overflow */
@media (min-width: 960px) {
  body.zv-dock-pad .zv-plinth {
    width: calc(100% + var(--zv-dock-w, 5.35rem) + 1.1rem);
    max-width: none;
    margin-left: calc(-1 * (var(--zv-dock-w, 5.35rem) + 1.1rem));
  }
}

.zv-plinth *,
.zv-plinth *::before,
.zv-plinth *::after {
  box-sizing: border-box;
}

.zv-plinth::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(182, 209, 29, 0.045) 18px 19px
    );
  mix-blend-mode: soft-light;
}

.zv-plinth-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.zv-plinth-hero {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .zv-plinth-hero {
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
  }
}

.zv-plinth-signal {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid rgba(210, 230, 225, 0.14);
  border-radius: 0.45rem 1.4rem 0.45rem 0.85rem;
  background:
    linear-gradient(145deg, rgba(20, 184, 159, 0.1), transparent 55%),
    rgba(238, 246, 244, 0.03);
  overflow: hidden;
}

.zv-plinth-signal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--zvp-flash), var(--zvp-chart));
  border-radius: 0 0 2px 0;
}

.zv-plinth-mark {
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  font-family: var(--zvp-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--zvp-pearl);
}

.zv-plinth-mark span:last-child { color: var(--zvp-chart); }

.zv-plinth-lede {
  margin: 0 0 1.35rem;
  max-width: 38ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(210, 230, 225, 0.82);
}

.zv-plinth-news {
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}

.zv-plinth-news label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zvp-teal-bright);
  font-weight: 700;
}

.zv-plinth-news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.zv-plinth-news input[type='email'] {
  min-width: 0;
  min-height: 2.85rem;
  padding: 0 1rem;
  border: 1.5px solid rgba(210, 230, 225, 0.22);
  border-radius: 0.35rem;
  background: rgba(4, 21, 26, 0.45);
  color: var(--zvp-pearl);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.3s var(--zvp-ease);
}

.zv-plinth-news input[type='email']::placeholder {
  color: rgba(210, 230, 225, 0.42);
}

.zv-plinth-news input[type='email']:focus {
  border-color: var(--zvp-teal-bright);
  box-shadow: 0 0 0 3px rgba(20, 184, 159, 0.18);
}

.zv-plinth-news button {
  min-height: 2.85rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.35rem;
  background: var(--zvp-flash);
  color: #fff;
  font-family: var(--zvp-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 90, 46, 0.28);
  transition: transform 0.35s var(--zvp-ease), background 0.25s ease, box-shadow 0.35s var(--zvp-ease);
}

.zv-plinth-news button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #f06a42;
  box-shadow: 0 14px 28px rgba(232, 90, 46, 0.38);
}

.zv-plinth-news button:active { transform: translateY(0) scale(0.99); }

.zv-plinth-news-status {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--zvp-chart);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--zvp-ease);
}

.zv-plinth-news-status.is-on {
  opacity: 1;
  transform: translateY(0);
}

.zv-plinth-news-status.is-err { color: #ffb4a2; }

.zv-plinth-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.zv-plinth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 7.5rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: var(--zvp-pearl);
  border: 1px solid rgba(210, 230, 225, 0.12);
  border-radius: 0.45rem;
  background: rgba(238, 246, 244, 0.04);
  overflow: hidden;
  transition:
    transform 0.4s var(--zvp-ease),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.4s var(--zvp-ease);
}

.zv-plinth-card:nth-child(1) { border-radius: 0.45rem 0.45rem 0.9rem 0.45rem; }
.zv-plinth-card:nth-child(2) {
  border-radius: 0.9rem 0.45rem 0.45rem 0.45rem;
  background: rgba(15, 138, 122, 0.12);
}
.zv-plinth-card:nth-child(3) {
  border-radius: 0.45rem 0.9rem 0.45rem 0.45rem;
  background: rgba(232, 90, 46, 0.1);
}
.zv-plinth-card:nth-child(4) { border-radius: 0.45rem 0.45rem 0.45rem 0.9rem; }

.zv-plinth-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50% 12% 40% 20%;
  background: linear-gradient(135deg, var(--zvp-teal), transparent);
  opacity: 0.18;
  transition: transform 0.5s var(--zvp-ease), opacity 0.35s ease;
}

.zv-plinth-card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 209, 29, 0.45);
  background: rgba(238, 246, 244, 0.07);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.zv-plinth-card:hover::before {
  opacity: 0.35;
  transform: translate(-10%, -12%) scale(1.15);
}

.zv-plinth-card em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zvp-teal-bright);
  font-weight: 700;
}

.zv-plinth-card strong {
  font-family: var(--zvp-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.zv-plinth-card span {
  font-size: 0.82rem;
  color: rgba(210, 230, 225, 0.7);
  line-height: 1.35;
}

.zv-plinth-card i {
  position: absolute;
  right: 0.95rem;
  bottom: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid var(--zvp-chart);
  border-right: 2px solid var(--zvp-chart);
  transform: rotate(45deg);
  transition: transform 0.35s var(--zvp-ease);
}

.zv-plinth-card:hover i {
  transform: rotate(45deg) translate(3px, -3px);
}

.zv-plinth-network {
  display: grid;
  gap: 1.5rem 2rem;
  padding: 1.35rem 0 0.25rem;
  border-top: 1px solid rgba(210, 230, 225, 0.1);
}

@media (min-width: 720px) {
  .zv-plinth-network {
    grid-template-columns: 1.1fr 1fr 1.25fr;
    align-items: start;
  }

  .zv-plinth-net:nth-child(2) { padding-top: 1.35rem; }
  .zv-plinth-net:nth-child(3) { padding-top: 0.45rem; }
}

.zv-plinth-net h3 {
  margin: 0 0 0.85rem;
  font-family: var(--zvp-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zvp-chart);
  font-weight: 700;
}

.zv-plinth-net nav,
.zv-plinth-net .zv-plinth-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.zv-plinth-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(238, 246, 244, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.15rem 0;
  transition: color 0.25s ease, transform 0.3s var(--zvp-ease);
}

.zv-plinth-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--zvp-flash), var(--zvp-chart));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--zvp-ease);
}

.zv-plinth-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.zv-plinth-link:hover::after { transform: scaleX(1); }

.zv-plinth-desk {
  display: grid;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(210, 230, 225, 0.78);
  line-height: 1.5;
}

.zv-plinth-desk a {
  color: var(--zvp-teal-bright);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.zv-plinth-desk a:hover { color: var(--zvp-chart); }

.zv-plinth-disclaimer {
  margin: 0.35rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--zvp-teal);
  border-radius: 0 0.35rem 0.35rem 0;
  background: rgba(15, 138, 122, 0.1);
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(210, 230, 225, 0.72);
}

.zv-plinth-base {
  display: grid;
  gap: 1.15rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(210, 230, 225, 0.1);
}

.zv-plinth-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.zv-plinth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.95rem;
  border: 1.5px solid rgba(210, 230, 225, 0.18);
  border-radius: 0.3rem;
  color: var(--zvp-pearl);
  text-decoration: none;
  font-family: var(--zvp-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 0.35s var(--zvp-ease),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s var(--zvp-ease);
}

.zv-plinth-chip:hover {
  transform: translateY(-3px);
  background: var(--zvp-teal);
  border-color: var(--zvp-teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 138, 122, 0.28);
}

.zv-plinth-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.zv-plinth-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(210, 230, 225, 0.55);
  line-height: 1.45;
  max-width: 52ch;
}

.zv-plinth-copy strong {
  color: rgba(238, 246, 244, 0.78);
  font-weight: 600;
}

.zv-plinth-top {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0 1.05rem;
  border: 1.5px solid rgba(210, 230, 225, 0.22);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--zvp-pearl);
  font-family: var(--zvp-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 0.35s var(--zvp-ease),
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.4s var(--zvp-ease),
    visibility 0.4s ease;
}

.zv-plinth-top span {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.35s var(--zvp-ease);
}

.zv-plinth-top:hover {
  background: var(--zvp-ink);
  border-color: var(--zvp-chart);
  color: var(--zvp-chart);
  transform: translateY(-2px);
}

.zv-plinth-top:hover span {
  transform: rotate(-45deg) translate(2px, -2px);
}

.zv-plinth-top.is-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  background: var(--zvp-void);
  border-color: var(--zvp-teal-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.zv-plinth-top.is-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Home dock clearance only when dock chrome is present */
body.zv-dock-pad .zv-plinth-top.is-float {
  bottom: calc(6.35rem + env(safe-area-inset-bottom, 0px));
  right: 0.85rem;
  font-size: 0.72rem;
  padding: 0.55rem 0.75rem;
}

@media (min-width: 960px) {
  body.zv-dock-pad .zv-plinth-top.is-float {
    bottom: 1.25rem;
    right: max(1rem, calc((100% - 1180px) / 2));
    font-size: 0.82rem;
    padding: 0 1.05rem;
  }
}

@media (max-width: 560px) {
  .zv-plinth-news-row {
    grid-template-columns: 1fr;
  }

  .zv-plinth-mosaic {
    grid-template-columns: 1fr;
  }

  .zv-plinth-card {
    min-height: 5.5rem;
  }
}
