/* Four equal columns; flex bases do not grow on the centered final row. */
.module-showcase .module-selector {
  --module-gap: 10px;
  --module-height: 88px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: start;
  gap: var(--module-gap);
  min-width: 0;
}
.module-showcase .module-choice {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 3 * var(--module-gap)) / 4);
  width: calc((100% - 3 * var(--module-gap)) / 4);
  min-width: 0;
  max-width: calc((100% - 3 * var(--module-gap)) / 4);
  height: var(--module-height);
  min-height: var(--module-height);
  max-height: var(--module-height);
  padding: 9px 4px;
  gap: 5px;
  border-width: 1px;
  font-size: 14px;
  line-height: 1.1;
  transform: none;
  box-shadow: rgba(49,93,155,.145) 0 3px 6px;
}
.module-showcase .module-choice .icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex: 0 0 32px;
}
.module-showcase .module-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.2em;
  min-height: 2.2em;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.module-showcase .module-choice:is(.selected,:hover,:focus-visible) {
  transform: none;
  box-shadow: rgba(49,93,155,.145) 0 3px 6px;
}
/* Desktop hover grows the painted button without changing its grid dimensions. */
@media (min-width:951px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .home-page .module-showcase .module-choice:is(:hover,:focus-visible) {
    position: relative;
    z-index: 1;
    transform: scale(1.04);
    box-shadow: rgba(49,93,155,.19) 0 5px 10px;
  }
}
@media (min-width:701px) and (max-width:950px) {
  .module-showcase .module-selector { --module-gap: 8px; }
  .module-showcase .module-choice { font-size: 12px; }
}
@media (max-width:700px) {
  .module-showcase .module-selector { --module-gap: 8px; }
}
@media (max-width:450px) {
  .module-showcase .module-choice { font-size: 12px; }
}
@media (max-width:350px) {
  .module-showcase .module-selector { --module-gap: 6px; }
  .module-showcase .module-choice { font-size: 11px; }
}

/* Real vector glyphs: full opacity, consistent strokes, no raster scaling. */
.module-showcase svg.icon { opacity:1; filter:none; stroke-width:2; shape-rendering:geometricPrecision; }

/* Fit every complete platform capture inside the laptop display. */
.module-showcase .module-screen { align-items:center; }
.module-showcase .screen-capture { width:100%; height:100%; transform:none; background:#021829; }
.module-showcase .screen-capture img { width:100%; height:100%; object-fit:contain; object-position:center; }

/* Breathing room before the plans wave, without resizing module controls. */
.module-showcase { padding-bottom:16px; }
@media(max-width:700px) { .module-showcase { padding-bottom:16px; } }

/* Stable caption slots keep the icon and action still across all 14 modules. */
.module-showcase .module-description {
  grid-template-columns: minmax(0, 29fr) minmax(0, 49fr) minmax(132px, 22fr);
  grid-template-rows: 96px;
  height: auto;
  min-height: 96px;
  margin-top: 8px;
  align-items: center;
}
.module-showcase .module-identity {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  height: 64px;
}
.module-showcase .module-identity .icon { width:31px; height:31px; flex-shrink:0; }
.module-showcase .module-identity h3 { margin:0; }
.module-showcase .module-description > p { margin:0; }
.module-showcase .module-more { align-self:center; }
.module-showcase .module-more a { width:132px; height:44px; flex-shrink:0; }
@media(min-width:951px) {
  .module-showcase .showcase-grid { grid-template-columns:43% 57%; }
  .module-showcase .module-selector { --module-height:96px; }
  .module-showcase .module-description { transform:none; margin-top:-8px; }
}
@media(min-width:701px) and (max-width:950px) {
  .module-showcase .module-description { grid-template-columns:minmax(0,1fr) 132px; grid-template-rows:64px 96px; gap:12px; }
  .module-showcase .module-identity { grid-column:1; grid-row:1; }
  .module-showcase .module-more { grid-column:2; grid-row:1; }
  .module-showcase .module-description > p { grid-column:1 / -1; grid-row:2; align-self:start; border:0; padding:0; }
}
@media(max-width:700px) {
  .module-showcase .module-description {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: 64px 96px 44px;
    gap: 8px;
    margin: 4px 8px 0;
    min-height: 220px;
    text-align: left;
  }
  .module-showcase .module-identity {
    height:64px;
    padding:0;
    gap:4px;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:31px 29px;
    justify-items:center;
    text-align:center;
  }
  .module-showcase .module-description > p {
    align-self:start;
    border-left:0;
    padding:0;
    font-size:16px;
    line-height:1.5;
  }
  .module-showcase .module-more { grid-column:1; justify-content:center; }
  .module-showcase .module-more a { width:148px; }
}

/* Compact section rhythm without reducing the module controls. */
.home-page .module-showcase .showcase-grid{margin-top:12px}
.home-page .module-showcase .hand{margin-bottom:10px}
@media(max-width:700px){.home-page .module-showcase .showcase-grid{gap:10px}.home-page .plans{padding-top:18px}}

@media(min-width:361px) and (max-width:700px){.module-showcase .module-description{grid-template-rows:64px 72px 44px;min-height:196px}}

@media(min-width:951px){.module-showcase .module-description>p{align-self:stretch;padding-top:8px;padding-bottom:8px;box-sizing:border-box}.module-showcase .module-identity h3{align-self:start;margin-top:16px}}

@media(min-width:951px) and (max-width:1100px){.module-showcase .module-description{grid-template-rows:120px;min-height:120px}}

/* A short inset divider keeps the caption visually separate from the laptop. */
@media(min-width:951px){
 .home-page .module-showcase .module-description>p{position:relative;border-left-color:transparent}
 .home-page .module-showcase .module-description>p::before{content:"";position:absolute;left:-1px;top:50%;transform:translateY(-50%);width:1px;height:48px;border-radius:1px;background:linear-gradient(to bottom,transparent,#c5cfdf 20%,#c5cfdf 80%,transparent);pointer-events:none}
}
