/**
 * Copyright (c) 2026 KDTech
 * Author: david@KDTech
 * All rights reserved.
 *
 * Tilefold website — closing sections
 *
 * The agent-approvals section (copy beside a stack of step cards that reveal
 * one after another), the privacy cards and the closing call to action with
 * its own quiet mosaic canvas and floating logo.
 */

/* ---------- Agents ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.points {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  color: var(--text-2);
}

.points b {
  display: block;
  color: var(--text-1);
  font-weight: 600;
}

.points .ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgb(255 255 255 / 0.03);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.step-stack {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg), var(--highlight);
}

.step-stack .step-card {
  background: rgb(255 255 255 / 0.025);
  transition:
    opacity 700ms var(--ease-out) calc(var(--i, 0) * 180ms),
    transform 700ms var(--ease-out) calc(var(--i, 0) * 180ms),
    filter 700ms var(--ease-out) calc(var(--i, 0) * 180ms);
}

.step-stack .step-card.is-in,
.no-js .step-stack .step-card {
  opacity: 1;
  transform: none;
}

.step-stack .risk.is-danger {
  background: rgb(255 107 122 / 0.14);
  color: var(--err);
}

/* ---------- Privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.privacy-grid .card {
  min-height: 240px;
}

/* Titles start under the glyph so they line up across the row. */
.privacy-grid .card h3 {
  margin-block-start: 28px;
  padding-block-start: 0;
}

.privacy-grid .glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--aurora-soft);
  box-shadow: inset 0 0 0 1px rgb(124 92 255 / 0.35);
}

.privacy-grid .glyph svg {
  width: 22px;
  height: 22px;
  color: var(--text-1);
}

/* ---------- Closing CTA ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(124 92 255 / 0.25), transparent 60%), var(--surface);
  text-align: center;
}

.cta .mosaic-field {
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
}

.cta-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 50px rgb(124 92 255 / 0.55));
}

@keyframes float {
  50% {
    transform: translateY(-12px) rotate(-8deg);
  }
}

.cta .hero-cta {
  margin-block-start: 36px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
