/* CfxMods homepage layout - dark chrome is site-wide in theme.css.
   This file only adds homepage-specific sections (hero, window, bento…). */

.cm-home {
  --cm-bg: var(--bg);
  --cm-bg-2: var(--bg-raised);
  --cm-bg-3: var(--bg-elev);
  --cm-bg-4: var(--bg-hover);
  --cm-line: var(--line);
  --cm-line-strong: var(--line-strong);
  --cm-fg: var(--fg);
  --cm-fg-dim: var(--fg-dim);
  --cm-fg-mute: var(--fg-mute);
  --cm-blue: var(--accent);
  --cm-blue-soft: var(--accent-soft);
  /* Separate from --cm-blue: this one carries white text (see --accent-fill in
     theme.css), while --cm-blue stays the bright brand blue for the 7px pill
     dots and framework marks, which sit on the dark background and need it. */
  --cm-blue-btn: var(--accent-fill);
  --cm-blue-btn-hover: var(--accent-fill-hover);
  --cm-mint: var(--mint, #6ee7a8);
  --cm-r: 10px;
  --cm-r-lg: 14px;
  --cm-r-xl: 18px;
  overflow-x: clip;
  background: var(--cm-bg);
  color: var(--cm-fg);
}

.cm-home .grid-clean { gap: 16px; }

/* Testimonials spacing on home */
.cm-home .tm-section {
  background: transparent;
  border-top: 1px solid var(--cm-line);
  padding: clamp(64px, 9vw, 100px) 0;
}
.cm-home .tm-section .section-title { color: var(--cm-fg); font-weight: 600; letter-spacing: -.03em; }
.cm-home .tm-section .eyebrow { color: var(--cm-fg-mute); }
.cm-home .tm-card {
  background: var(--cm-bg-2);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-r-xl);
  color: var(--cm-fg-dim);
}
.cm-home .tm-name { color: var(--cm-fg); }
.cm-home .tm-av { background: var(--cm-bg-4); color: var(--cm-fg); }

/* ── Shared layout ──────────────────────────────────────────────────────── */
.cm-zone {
  padding: clamp(72px, 10vw, 112px) 0;
  border-top: 1px solid var(--cm-line);
}
.cm-zone--tight {
  padding: 20px 0 8px;
  border-top: 0;
}

.cm-kicker {
  margin: 0 0 10px;
  color: var(--cm-fg-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cm-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.cm-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 48px);
}
.cm-head h2,
.cm-split__copy h2,
.cm-seo h2,
.cm-cta h2 {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.14;
  color: var(--cm-fg);
}
.cm-sub {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--cm-fg-mute);
  font-size: 15px;
  line-height: 1.65;
}
.cm-head--center .cm-sub { max-width: 50ch; }

.cm-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cm-fg-dim);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease;
}
.cm-text-link:hover { color: var(--cm-fg); }
.cm-text-link span { transition: transform .15s ease; }
.cm-text-link:hover span { transform: translateX(3px); }

.cm-empty {
  padding: 48px 24px;
  border: 1px dashed var(--cm-line-strong);
  border-radius: var(--cm-r-lg);
  color: var(--cm-fg-mute);
  text-align: center;
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cm-btn kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .16);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  opacity: .8;
}
.cm-btn--primary {
  background: var(--cm-blue-btn);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px rgba(47, 124, 246, .22);
}
/* The key hint is 10.5px, and white at .8 opacity on the blue fill only reaches
   4.35:1. Full opacity over a slightly deeper well puts it at 6.8:1. On the
   ghost variant the .8 above is fine - that one sits on the dark surface. */
.cm-btn--primary kbd {
  opacity: 1;
  background: rgba(0, 0, 0, .24);
}
.cm-btn--primary:hover {
  background: var(--cm-blue-btn-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 10px 24px rgba(47, 124, 246, .28);
}
.cm-btn--ghost {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--cm-line-strong);
  color: var(--cm-fg);
}
.cm-btn--ghost:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .2);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.cm-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}
.cm-hero__fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(920px 460px at 50% -18%, rgba(47, 124, 246, .16), transparent 58%),
    radial-gradient(640px 320px at 50% 55%, rgba(255, 255, 255, .025), transparent 60%);
  pointer-events: none;
}
.cm-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--cm-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--cm-fg-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cm-pill:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
  color: var(--cm-fg);
}
.cm-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cm-blue);
  box-shadow: 0 0 0 3px var(--cm-blue-soft);
}
.cm-pill__sep { color: var(--cm-fg-mute); opacity: .7; }

.cm-hero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.04;
  color: var(--cm-fg);
}
.cm-hero h1 span {
  display: block;
  background: linear-gradient(180deg, #ffffff 20%, #9aa3b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cm-hero__lead {
  margin: 18px auto 0;
  max-width: 42ch;
  color: var(--cm-fg-mute);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}
.cm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.cm-hero__avail {
  margin: 16px 0 0;
  color: var(--cm-fg-mute);
  font-size: 12.5px;
  letter-spacing: .01em;
}

/* Pillars - open, not boxed (Zed style) */
.cm-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(880px, 100%);
  margin-top: clamp(44px, 6vw, 64px);
  text-align: left;
  border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line);
}
.cm-pillar {
  padding: 22px 20px;
}
.cm-pillar + .cm-pillar { border-left: 1px solid var(--cm-line); }
.cm-pillar strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cm-fg);
}
.cm-pillar p {
  margin: 0;
  color: var(--cm-fg-mute);
  font-size: 13px;
  line-height: 1.55;
}

/* Window showcase */
.cm-window {
  width: min(1040px, 100%);
  margin-top: clamp(36px, 5vw, 52px);
  border: 1px solid var(--cm-line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1d24 0%, #14161b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 1px 0 rgba(255, 255, 255, .04),
    0 40px 100px rgba(0, 0, 0, .5);
  overflow: hidden;
  text-align: left;
}
.cm-window__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--cm-line);
  background: rgba(0, 0, 0, .28);
}
.cm-window__dots {
  display: inline-flex;
  gap: 6px;
}
.cm-window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f4a;
}
.cm-window__dots i:nth-child(1) { background: #ff5f57; }
.cm-window__dots i:nth-child(2) { background: #febc2e; }
.cm-window__dots i:nth-child(3) { background: #28c840; }
.cm-window__title {
  color: var(--cm-fg-mute);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}
.cm-window__meta {
  color: var(--cm-fg-mute);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.cm-window__lead {
  position: relative;
  display: block;
  min-height: 300px;
  aspect-ratio: 2 / 1;
  background: #0a0b0e;
  overflow: hidden;
}
.cm-window__lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .88;
  transition: transform .5s ease, opacity .3s ease;
}
.cm-window__lead:hover img { transform: scale(1.025); opacity: .96; }
.cm-window__lead-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 36px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 9, 12, .55) 35%, rgba(8, 9, 12, .94) 100%);
}
.cm-window__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  border: 1px solid rgba(47, 124, 246, .35);
  background: rgba(47, 124, 246, .14);
  color: #b7d0ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cm-window__lead-body strong {
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.cm-window__lead-body small {
  color: var(--cm-fg-dim);
  font-size: 13px;
  line-height: 1.45;
}
.cm-window__lead-body b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.cm-window__lead-body b i {
  color: var(--cm-fg-dim);
  font-style: normal;
  font-weight: 600;
  font-size: 12.5px;
}

.cm-window__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--cm-line);
  border-top: 1px solid var(--cm-line);
}
.cm-window__mini {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--cm-bg-2);
  transition: background .15s ease;
}
.cm-window__mini:hover { background: var(--cm-bg-3); }
.cm-window__mini img {
  width: 68px;
  height: 48px;
  max-width: none;
  object-fit: cover;
  border-radius: 7px;
  background: var(--cm-bg-4);
  display: block;
}
.cm-window__mini span { min-width: 0; display: grid; gap: 2px; }
.cm-window__mini strong {
  color: var(--cm-fg);
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-window__mini small {
  color: var(--cm-fg-dim);
  font-size: 12px;
  font-weight: 600;
}

.cm-window__empty {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 240px;
  padding: 40px;
  text-align: center;
  color: var(--cm-fg-mute);
}

/* Stats - open numbers */
.cm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-r-xl);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
}
.cm-stats > div {
  padding: 20px 16px;
  text-align: center;
}
.cm-stats > div + div { border-left: 1px solid var(--cm-line); }
.cm-stats dt {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--cm-fg);
}
.cm-stats dd {
  margin: 4px 0 0;
  color: var(--cm-fg-mute);
  font-size: 12px;
}

/* Bento */
.cm-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cm-bento-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-r-xl);
  background: var(--cm-bg-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.cm-bento-card:hover {
  border-color: var(--cm-line-strong);
  background: var(--cm-bg-3);
  transform: translateY(-2px);
}
.cm-bento-card__label {
  color: var(--cm-fg-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cm-bento-card strong {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--cm-fg);
}
.cm-bento-card p {
  margin: 0;
  color: var(--cm-fg-mute);
  font-size: 13.5px;
  line-height: 1.6;
}
.cm-bento-card em {
  margin-top: auto;
  color: var(--cm-fg-dim);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}
.cm-bento-card:hover em { color: var(--cm-fg); }

/* Framework wordmark badges - styled monospace text lockups. All three share
   one height/type so they line up; the accent square differs per framework. */
.cm-fw-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--cm-line-strong);
  border-radius: var(--cm-r);
  background: var(--cm-bg-4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--cm-fg);
}
.cm-fw-badge__mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cm-blue);
}
.cm-fw-badge--esx  .cm-fw-badge__mark { background: var(--cm-mint); }
.cm-fw-badge--qbox .cm-fw-badge__mark { background: #f5a623; }
.cm-bento-card:hover .cm-fw-badge { border-color: var(--cm-fg-dim); }

/* Creator list */
.cm-list { display: grid; gap: 8px; }
.cm-list-row {
  display: grid;
  grid-template-columns: 32px 40px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-r-lg);
  background: var(--cm-bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.cm-list-row:hover {
  border-color: var(--cm-line-strong);
  background: var(--cm-bg-3);
}
.cm-list-row__num {
  color: var(--cm-fg-mute);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}
.cm-list-row__av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cm-bg-4);
  border: 1px solid var(--cm-line);
  color: var(--cm-fg);
  font-weight: 700;
  font-size: 14px;
}
.cm-list-row__body { min-width: 0; display: grid; gap: 2px; }
.cm-list-row__body strong {
  color: var(--cm-fg);
  font-size: 14.5px;
  font-weight: 600;
}
.cm-list-row__body small {
  color: var(--cm-fg-mute);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-list-row__meta {
  color: var(--cm-fg-mute);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cm-list-row__go { color: var(--cm-fg-mute); font-size: 13px; }

/* Split standards */
.cm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.cm-check-list {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.cm-check-list li {
  display: grid;
  gap: 3px;
  padding-left: 28px;
  position: relative;
}
.cm-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center/5px 5px no-repeat,
    var(--cm-blue-soft);
  border: 1px solid rgba(47, 124, 246, .45);
}
.cm-check-list strong {
  color: var(--cm-fg);
  font-size: 14.5px;
  font-weight: 600;
}
.cm-check-list span {
  color: var(--cm-fg-mute);
  font-size: 13.5px;
  line-height: 1.55;
}

.cm-codeblock {
  border: 1px solid var(--cm-line-strong);
  border-radius: 16px;
  background: #0b0c10;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.cm-codeblock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--cm-line);
  background: rgba(255, 255, 255, .02);
}
.cm-codeblock__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f4a;
}
.cm-codeblock__bar i:nth-child(1) { background: #ff5f57; }
.cm-codeblock__bar i:nth-child(2) { background: #febc2e; }
.cm-codeblock__bar i:nth-child(3) { background: #28c840; }
.cm-codeblock__bar span {
  margin-left: 6px;
  color: var(--cm-fg-mute);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cm-codeblock pre {
  margin: 0;
  padding: 20px 18px 24px;
  overflow: auto;
  text-align: left;
}
.cm-codeblock code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--cm-fg-dim);
}
.cm-cmt { color: #5a6270; }
.cm-key { color: #7aa2f7; }
.cm-str { color: #9ece6a; }

/* SEO */
.cm-seo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.cm-seo p {
  margin: 14px 0 0;
  color: var(--cm-fg-mute);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 58ch;
}
.cm-seo p a {
  color: var(--cm-fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .22);
  text-underline-offset: 3px;
}
.cm-seo__card {
  padding: 22px;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-r-xl);
  background: var(--cm-bg-2);
}
.cm-seo__card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--cm-fg);
}
.cm-seo__card > p { margin-top: 8px; max-width: none; }
.cm-seo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cm-seo__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--cm-line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--cm-fg-dim);
  font-size: 12.5px;
  font-weight: 600;
}
.cm-seo__links a:hover {
  color: var(--cm-fg);
  border-color: rgba(255, 255, 255, .24);
}
.cm-seo__faq {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cm-line);
}

/* Bottom CTA */
.cm-cta {
  padding: clamp(72px, 10vw, 112px) 0;
  border-top: 1px solid var(--cm-line);
  text-align: center;
  background:
    radial-gradient(720px 280px at 50% 0%, rgba(47, 124, 246, .12), transparent 68%),
    var(--cm-bg);
}
.cm-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cm-cta__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid var(--cm-line-strong);
  background: var(--cm-bg-2);
  color: var(--cm-fg);
}
.cm-cta p {
  margin: 12px 0 0;
  max-width: 40ch;
  color: var(--cm-fg-mute);
  font-size: 15px;
  line-height: 1.6;
}
.cm-cta .cm-hero__actions { margin-top: 24px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .cm-pillars { grid-template-columns: 1fr; width: min(420px, 100%); }
  .cm-pillar + .cm-pillar { border-left: 0; border-top: 1px solid var(--cm-line); }
  .cm-split,
  .cm-seo__grid { grid-template-columns: 1fr; }
  .cm-bento { grid-template-columns: 1fr; }
  .cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-stats > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--cm-line); }
  .cm-stats > div:nth-child(n+3) { border-top: 1px solid var(--cm-line); }
  .cm-stats > div:nth-child(4) { border-left: 1px solid var(--cm-line); }
  .cm-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cm-head--center { align-items: center; }
}

@media (max-width: 720px) {
  .cm-window__rail { grid-template-columns: 1fr; }
  .cm-window__lead { aspect-ratio: 16 / 11; min-height: 220px; }
  .cm-list-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .cm-list-row__num,
  .cm-list-row__meta { display: none; }
  .cm-hero__actions { width: 100%; display: grid; }
  .cm-hero__actions .cm-btn { width: 100%; }
  .cm-hero h1 { max-width: 12ch; }
  .cm-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-window__lead img,
  .cm-bento-card,
  .cm-list-row,
  .cm-text-link span,
  .cm-home .product-card-minimal {
    transition: none;
  }
}
