/* KidSafePC site: hero and the numbers band. Tokens live in base.css. */

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

/* two soft shapes in the app's colours, behind everything */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  right: -200px;
  top: -240px;
  background: radial-gradient(circle, var(--warm-soft), transparent 65%);
}

.hero::after {
  width: 520px;
  height: 520px;
  left: -260px;
  bottom: -300px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust .icon {
  width: 18px;
  height: 18px;
  color: var(--leaf);
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 28px;
}

.frame {
  border-radius: 22px;
  border: 3px solid var(--tile-base);
  background: var(--surface);
  box-shadow: 0 8px 0 var(--tile-base), var(--shadow-lg);
  overflow: hidden;
}

.frame img {
  width: 100%;
  aspect-ratio: 1280 / 800;
}

/* small cards floating over the screenshot: decoration, aria-hidden */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.float small {
  display: block;
  font-weight: 500;
  color: var(--text-3);
}

.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex: none;
}

.float-pin {
  left: -8px;
  bottom: 0;
}

.float-pin .float-icon {
  background: var(--accent);
  color: var(--accent-ink);
}

.pin-dots {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.pin-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.float-block {
  right: -8px;
  top: -18px;
}

.float-block .float-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 559px) {
  .float {
    position: static;
    margin-top: 14px;
  }

  .hero-visual {
    padding-bottom: 0;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
  }
}

/* ---------- numbers band ---------- */
.proof {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  gap: 24px;
  margin-block: 0;
  padding-block: clamp(28px, 4vw, 44px);
}

.proof-item {
  display: grid;
  gap: 6px;
}

.proof-item dt {
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.proof-item:nth-child(2) dt {
  color: var(--warm-base);
}

html[data-theme="dark"] .proof-item:nth-child(2) dt {
  color: var(--warm);
}

.proof-item dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 26ch;
}

@media (min-width: 640px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .proof-item + .proof-item {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
}
