/* Wat je krijgt: bento met cursorlicht */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: 22px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--panel);
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
      420px circle at var(--mx) var(--my),
      rgba(47, 191, 138, 0.7),
      transparent 45%
    ),
    var(--edge);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    500px circle at var(--mx) var(--my),
    rgba(47, 191, 138, 0.08),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.tile:hover::after {
  opacity: 1;
}
.tile p {
  color: var(--muted);
  font-size: 0.98rem;
}
.t-a {
  grid-column: span 4;
  min-height: 300px;
}
.t-b {
  grid-column: span 2;
}
.t-c,
.t-d,
.t-e {
  grid-column: span 2;
}
.t-f {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.t-f-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 36em;
}
.ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 191, 138, 0.1);
  box-shadow: inset 0 0 0 1px rgba(47, 191, 138, 0.25);
  color: var(--green);
}
.ic svg {
  width: 22px;
  height: 22px;
}

/* Mini-ontwerp in tegel A */
.mock {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  height: 150px;
}
.mock div {
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--edge);
  position: relative;
  overflow: hidden;
}
.mock .m1::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 55%;
  height: 12px;
  border-radius: 6px;
  background: var(--fg);
  opacity: 0.85;
  box-shadow:
    0 22px 0 -2px rgba(238, 243, 240, 0.35),
    0 40px 0 -2px rgba(238, 243, 240, 0.2);
}
.mock .m1::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 18px;
  width: 90px;
  height: 28px;
  border-radius: 999px;
  background: var(--green);
}
.mock .m2 {
  background: linear-gradient(135deg, var(--green-deep), #0d2a22);
}
.mock .m2::before {
  content: "";
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 40%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.t-a:hover .m1::after {
  animation: press 0.6s;
}
@keyframes press {
  50% {
    transform: scale(0.92);
  }
}

/* Snelheidsmeter in tegel B */
.gauge {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.gauge svg {
  width: 96px;
  height: 96px;
  flex: none;
  transform: rotate(-90deg);
}
.gauge circle {
  fill: none;
  stroke-width: 8;
}
.gauge .bgc {
  stroke: rgba(255, 255, 255, 0.07);
}
.gauge .val {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gauge.on .val {
  stroke-dashoffset: 13;
}
.gauge b {
  font-size: 2.4rem;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gauge small {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Telefoon in tegel C */
.phone-mini {
  margin-top: auto;
  align-self: center;
  width: 92px;
  height: 150px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px var(--edge-2);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.t-c:hover .phone-mini {
  transform: rotate(-6deg) translateY(-4px);
}
.phone-mini i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(238, 243, 240, 0.18);
}
.phone-mini i:first-child {
  width: 50%;
  background: var(--fg);
  opacity: 0.7;
}
.phone-mini i.short {
  width: 70%;
}
.phone-mini i.g {
  height: 22px;
  background: var(--green);
  margin-top: auto;
}

/* Google-resultaat in tegel D */
.serp {
  margin-top: auto;
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--edge);
  padding: 14px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.serp small {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 0.7rem;
}
.serp b {
  color: #9ec3ff;
  font-weight: 500;
}
.serp span {
  color: var(--muted);
}

/* Chat in tegel E */
.chat {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}
.chat span {
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 85%;
}
.chat .them {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}
.chat .me {
  align-self: flex-end;
  background: var(--green-deep);
  border-bottom-right-radius: 4px;
}

@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .t-a,
  .t-f {
    grid-column: span 2;
  }
  .t-b,
  .t-c,
  .t-d,
  .t-e {
    grid-column: span 1;
  }
}
@media (max-width: 620px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .t-a,
  .t-b,
  .t-c,
  .t-d,
  .t-e,
  .t-f {
    grid-column: span 1;
  }
  .mock {
    height: 120px;
  }
}
