/* sections.css — page-level composition. Depends on components.css. */

/* ---- Hero ------------------------------------------------------------- */

/* Asymmetric: copy takes 7 of 12 columns, the product panel 5. Deliberately
   not 50/50 — an even split reads as a template. */
.ev-hero {
  position: relative;
  overflow: hidden;
}

/* Fine dot grid, fading out before it reaches the copy. The only
   decorative element on the page. */
.ev-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ev-rule) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ev-hero > * { position: relative; z-index: 1; }

.ev-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-s5);
  align-items: center;
}

@media (min-width: 900px) {
  .ev-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--ev-s6);
  }
}

/* Frame for the product screenshot. Hairline border and inner padding so a
   flat PNG reads as a rendered interface rather than a pasted image. */
.ev-hero__panel {
  background: var(--ev-card);
  border: 1px solid var(--ev-rule);
  border-radius: var(--ev-r-lg);
  padding: var(--ev-s1);
  overflow: hidden;
}

.ev-hero__panel img { display: block; border-radius: var(--ev-r-md); }

/* Placeholder styling — removed once a real screenshot is in place. */
.ev-hero__panel-inner {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: var(--ev-r-md);
  background: var(--ev-bg);
  color: var(--ev-muted);
  font-family: var(--ev-font-mono);
  font-size: var(--ev-t8);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---- Product grid ----------------------------------------------------- */

.ev-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-s3);
  margin-top: var(--ev-s4);
}

@media (min-width: 768px) {
  .ev-products { grid-template-columns: repeat(2, 1fr); gap: var(--ev-s4); }
}

.ev-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color var(--ev-dur-fast) ease-in-out;
}

.ev-product:hover { border-color: var(--ev-muted); }

.ev-product h3 { margin-bottom: var(--ev-s2); }

.ev-product p { margin-bottom: var(--ev-s3); }

.ev-product > a {
  margin-top: auto;
  font-family: var(--ev-font-mono);
  font-size: var(--ev-t7);
}

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

/* The one centred element on the site. */
.ev-cta {
  text-align: center;
  border-top: 1px solid var(--ev-rule);
  padding-block: var(--ev-section-y);
}

.ev-cta p,
.ev-cta .ev-lede { margin-inline: auto; }
