/* Rediall marketing site: editorial details, after precise product sites
   such as Raindrop. The quiet line under the hero buttons, the facts strip with hairline dividers, hairline cell grids with
   mono tags and links, and the two-tone statement. Real facts only: no logos,
   testimonials or usage numbers. Loads after demo.css. */

/* ---------- facts strip: numbers over hairline dividers ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.facts > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 4px clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
}

.facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.facts dd {
  display: contents;
}

.facts-num {
  order: -1;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.facts dt {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.facts dd > span:last-child {
  font-size: var(--fs-micro);
  color: var(--muted);
}

/* ---------- hairline cell grid (trust) ---------- */

/* 1px gaps over a line-coloured background draw every divider once */
.cell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--line-strong);
  list-style: none;
}

.cell-grid > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 200px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--bg);
}

.cell-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-grid p {
  max-width: 40ch;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text);
}

.tag-mono {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.link-mono {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 150ms var(--ease);
}

.link-mono span {
  display: inline-block;
  transition: translate 200ms var(--ease-out);
}

/* ---------- hover, pointer devices only ---------- */

@media (hover: hover) and (pointer: fine) {
  .link-mono:hover {
    text-decoration-color: var(--ink);
  }

  .link-mono:hover span {
    translate: 3px 0;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 0;
  }

  .facts > div,
  .facts > div:first-child {
    padding: 20px 16px 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts > div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

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

  .cell-grid > li {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-mono span {
    transition: none;
  }
}

