
/* Keyzira v6.6.49 — Test page hero statistics
   Replaces the tiny circular glyphs/text with actual compact product cards.
   Scoped to typing-tool-page so other page headers remain untouched. */

.typing-tool-page .hero-proof.hero-proof-cards{
  width:auto;
  min-width:560px;
  display:grid;
  grid-template-columns:repeat(3,minmax(155px,1fr));
  align-items:stretch;
  justify-content:end;
  gap:10px;
  position:relative;
}

/* Keep the subtle Keyzira dot texture, but move it behind the card group. */
.typing-tool-page .hero-proof.hero-proof-cards::before{
  inset:-34px -18px -30px -80px;
  opacity:.22;
  mask-image:linear-gradient(90deg,transparent,#000 28%,#000);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 28%,#000);
}

.typing-tool-page .hero-proof-cards .proof-card{
  position:relative;
  min-width:0;
  min-height:78px;
  padding:13px 14px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:12px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    linear-gradient(145deg,
      color-mix(in srgb,var(--proof-accent) 5%,var(--surface)),
      var(--surface) 56%);
  box-shadow:
    0 12px 28px rgba(37,42,82,.055),
    inset 0 1px 0 rgba(255,255,255,.58);
  white-space:normal;
}

.typing-tool-page .hero-proof-cards .proof-card::before{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  top:0;
  height:2px;
  border-radius:0 0 4px 4px;
  background:linear-gradient(90deg,var(--proof-accent),transparent 90%);
  opacity:.72;
}

.typing-tool-page .hero-proof-cards .proof-card::after{
  content:"";
  position:absolute;
  width:62px;
  height:62px;
  right:-26px;
  bottom:-30px;
  border-radius:50%;
  background:var(--proof-accent);
  opacity:.045;
  pointer-events:none;
}

.typing-tool-page .hero-proof-cards .proof-card-tests{
  --proof-accent:#7458ff;
  --proof-soft:#eeeaff;
}

.typing-tool-page .hero-proof-cards .proof-card-languages{
  --proof-accent:#22abd1;
  --proof-soft:#e4f8fd;
}

.typing-tool-page .hero-proof-cards .proof-card-players{
  --proof-accent:#25b979;
  --proof-soft:#e4f8ef;
}

/* Proper icon tile instead of text symbols such as ⌁ / ◎ / ♟. */
.typing-tool-page .hero-proof-cards .proof-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:var(--proof-accent);
  background:color-mix(in srgb,var(--proof-accent) 10%,var(--surface-2));
  border:1px solid color-mix(in srgb,var(--proof-accent) 16%,var(--line));
  box-shadow:
    0 7px 17px color-mix(in srgb,var(--proof-accent) 12%,transparent),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.typing-tool-page .hero-proof-cards .proof-icon svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.typing-tool-page .hero-proof-cards .proof-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}

.typing-tool-page .hero-proof-cards .proof-copy strong{
  display:block;
  color:var(--text);
  font-size:23px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.55px;
  font-variant-numeric:tabular-nums;
}

.typing-tool-page .hero-proof-cards .proof-copy small{
  display:block;
  margin:0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.25;
  font-weight:720;
  letter-spacing:-.08px;
}

/* Dark theme: use real opaque surfaces and stronger icon separation. */
html[data-theme="dark"] .typing-tool-page .hero-proof-cards .proof-card{
  background:
    linear-gradient(145deg,
      color-mix(in srgb,var(--proof-accent) 8%,var(--surface-2)),
      var(--surface) 66%);
  border-color:var(--line-strong);
  box-shadow:
    0 15px 32px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-theme="dark"] .typing-tool-page .hero-proof-cards .proof-icon{
  background:color-mix(in srgb,var(--proof-accent) 15%,var(--surface-2));
  border-color:color-mix(in srgb,var(--proof-accent) 30%,var(--line-strong));
  box-shadow:0 8px 20px color-mix(in srgb,var(--proof-accent) 12%,transparent);
}

html[data-theme="dark"] .typing-tool-page .hero-proof-cards .proof-copy small{
  color:color-mix(in srgb,var(--muted) 92%,#fff 8%);
}


/* Common 1600–1999 desktop. Keep the cards clean and readable rather than
   spacing the old stat dots very far apart. */
@media (min-width:1600px) and (max-width:1999px){
  .typing-tool-page .hero-proof.hero-proof-cards{
    min-width:540px !important;
    gap:9px !important;
  }

  .typing-tool-page .hero-proof-cards .proof-card{
    min-height:76px;
    padding:12px 13px;
  }
}


/* Laptop / compact desktop: hero can stack via the existing premium-home rule,
   and the three stat cards still stay as one row when space permits. */
@media (max-width:1320px){
  .typing-tool-page .hero-proof.hero-proof-cards{
    min-width:480px;
    grid-template-columns:repeat(3,minmax(145px,1fr));
    gap:8px;
  }

  .typing-tool-page .hero-proof-cards .proof-card{
    min-height:73px;
    padding:11px 12px;
    gap:10px;
  }

  .typing-tool-page .hero-proof-cards .proof-icon{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:11px;
  }

  .typing-tool-page .hero-proof-cards .proof-icon svg{
    width:21px;
    height:21px;
  }

  .typing-tool-page .hero-proof-cards .proof-copy strong{
    font-size:20px;
  }

  .typing-tool-page .hero-proof-cards .proof-copy small{
    font-size:10.5px;
  }
}


/* Existing hero becomes a column <=1060. Fill that row elegantly. */
@media (max-width:1060px){
  .typing-tool-page .hero-proof.hero-proof-cards{
    width:100%;
    min-width:0;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
  }

  .typing-tool-page .hero-proof-cards .proof-card{
    min-height:76px;
  }
}


/* Mobile: still show all 3 stats. The old CSS hid Global Players <=480px;
   this redesign intentionally keeps the information visible. */
@media (max-width:760px){
  .typing-tool-page .hero-proof.hero-proof-cards{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  .typing-tool-page .hero-proof-cards .proof-card{
    min-height:72px;
    padding:9px 8px;
    gap:7px;
    border-radius:12px;
  }

  .typing-tool-page .hero-proof-cards .proof-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
    border-radius:9px;
  }

  .typing-tool-page .hero-proof-cards .proof-icon svg{
    width:18px;
    height:18px;
  }

  .typing-tool-page .hero-proof-cards .proof-copy strong{
    font-size:18px;
  }

  .typing-tool-page .hero-proof-cards .proof-copy small{
    font-size:9px;
    line-height:1.15;
  }
}

@media (max-width:520px){
  .typing-tool-page .hero-proof.hero-proof-cards{
    grid-template-columns:1fr 1fr !important;
  }

  .typing-tool-page .hero-proof-cards .proof-card:last-child{
    display:flex !important;
    grid-column:1 / -1;
  }

  .typing-tool-page .hero-proof-cards .proof-card{
    min-height:68px;
  }

  .typing-tool-page .hero-proof-cards .proof-copy small{
    font-size:9.5px;
  }
}
