/* ui12.css: shared "rich page" components for list/index pages (numbered cards, editorial intro, richer CTAs).
   Visual only; loaded last. Delete this file + its <link> to revert. */

/* ---------- Numbered, accent cards for link-card grids (no screenshot cards) ---------- */
.grid-3, .grid-2:not(.wrap) { counter-reset: rcard; }
.grid-3 > a.card:not(:has(.shot)), .wrap.grid-3 > a.card:not(:has(.shot)) {
  counter-increment: rcard; position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px !important;
  background: #fff !important; border: 1px solid var(--c-line, rgba(11, 27, 58, .12)) !important; border-radius: 6px !important; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 27, 58, .04), 0 20px 40px -28px rgba(11, 27, 58, .28) !important;
  transition: transform .3s, border-color .25s, box-shadow .3s !important;
}
.grid-3 > a.card:not(:has(.shot))::before {
  content: counter(rcard, decimal-leading-zero); display: block; margin-bottom: 22px; font-size: 2.1rem; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: rgba(176, 138, 62, .55);
}
.grid-3 > a.card:not(:has(.shot))::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #b08a3e, #e6c27a); transform: scaleX(0); transform-origin: left; transition: transform .35s; display: block !important;
}
.grid-3 > a.card:not(:has(.shot)):hover { transform: translateY(-6px); border-color: rgba(176, 138, 62, .55) !important; box-shadow: 0 2px 4px rgba(11, 27, 58, .05), 0 34px 60px -28px rgba(11, 27, 58, .38) !important; }
.grid-3 > a.card:not(:has(.shot)):hover::after { transform: scaleX(1); }
.grid-3 > a.card:not(:has(.shot)) h3 { margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -.02em; color: #0b1b3a; }
.grid-3 > a.card:not(:has(.shot)) p { margin: 0 0 18px; color: #4a5670; font-size: .96rem; line-height: 1.6; }
.grid-3 > a.card:not(:has(.shot)) .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(11, 27, 58, .1); font-size: .88rem; font-weight: 700; color: #0b1b3a;
}
.grid-3 > a.card:not(:has(.shot)) .more .arrow { display: inline-block; transition: transform .25s; color: #b08a3e; }
.grid-3 > a.card:not(:has(.shot)):hover .more .arrow { transform: translateX(6px); }

/* screenshot cards (software / solutions / blog): same depth, consistent hover */
.grid-3 > a.card:has(.shot) { border-radius: 6px !important; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .25s !important; }
.grid-3 > a.card:has(.shot):hover { transform: translateY(-5px); border-color: rgba(176, 138, 62, .55) !important; }
.grid-3 > a.card:has(.shot) .more { font-weight: 700; color: #0b1b3a; }
.grid-3 > a.card:has(.shot) .more .arrow { color: #b08a3e; display: inline-block; transition: transform .25s; }
.grid-3 > a.card:has(.shot):hover .more .arrow { transform: translateX(6px); }

/* ---------- Editorial intro block ---------- */
.page-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px clamp(32px, 5vw, 80px); align-items: start; max-width: none !important; }
.page-intro > h2 { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 110px; margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem) !important; line-height: 1.12; }
.page-intro > h2::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 20px; background: linear-gradient(90deg, #b08a3e, transparent); }
.page-intro > p { grid-column: 2; margin: 0 0 14px; font-size: 1.06rem; line-height: 1.75; color: #3d4a63; max-width: none !important; }
.page-intro > p:first-of-type { font-size: 1.18rem; color: #1b2a47; }
@media (max-width: 860px) {
  .page-intro { grid-template-columns: 1fr; }
  .page-intro > h2 { position: static; grid-row: auto; }
  .page-intro > p { grid-column: 1; }
}

/* ---------- Section rhythm for index pages ---------- */
main > .section.alt > .wrap.grid-3 { gap: clamp(14px, 1.8vw, 22px); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .grid-3 > a.card:hover { transform: none !important; } }
main > .section:has(> .wrap > .page-intro) { padding-bottom: clamp(24px, 3vw, 44px) !important; }
main > .section:has(> .wrap > .page-intro) + .section { padding-top: clamp(24px, 3vw, 44px) !important; }
