/* Products page: the portfolio of software GDS builds and runs. Tokens come from landing.css. */
.products { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 88px); }
.products h1 { font: 700 clamp(30px, 4.2vw, 46px)/1.12 var(--display); letter-spacing: -.02em; margin: 14px 0 14px; max-width: 20ch; text-wrap: balance; }
.products .lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 0; }
.pr-list { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }

.product { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.2vw, 36px); box-shadow: var(--shadow); }
.product::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, #10BFE8, #7506F7 38%, #F6104E 70%, #FEC402); }

.pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-bottom: clamp(18px, 2.4vw, 26px); margin-bottom: clamp(18px, 2.4vw, 26px); border-bottom: 1px solid var(--line); }
.pr-logo { display: block; line-height: 0; }
.pr-logo img { height: clamp(34px, 3.6vw, 42px); width: auto; max-width: 100%; }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font: 500 13px/1.3 var(--mono); color: var(--muted); }
.pr-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #E7F6EE; color: #146C3F; }
.pr-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 0 rgba(30, 158, 90, .5); animation: prLive 2.4s ease-out infinite; }
@keyframes prLive { 70% { box-shadow: 0 0 0 7px rgba(30, 158, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); } }

.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(22px, 3.4vw, 44px); align-items: start; }
.pr-grid > .pr-shots { position: sticky; top: 110px; }
.pr-body { min-width: 0; }
.pr-pitch { font-size: 18px; line-height: 1.6; margin: 0 0 22px; max-width: 56ch; }

.pr-feats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pr-feats li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pr-feats svg { grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: #F3EAFE; color: #7506F7; border: 1px solid #E4D2FD; }
.pr-feats b { font: 600 15px/1.3 var(--display); }
.pr-feats span { font-size: 14px; line-height: 1.45; color: var(--muted); }

.pr-topics { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.pr-topics li { font: 500 12.5px/1 var(--mono); color: #5A05BE; background: #F3EAFE; padding: 7px 10px; border-radius: 999px; }
.pr-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-cta .btn-primary { background: linear-gradient(135deg, #7506F7, #9B3FFF); }
.pr-cta .btn-primary:hover { background: linear-gradient(135deg, #6505D6, #8A2BF5); }
.pr-cta .btn-ghost { color: #5A05BE; border-color: #E4D2FD; }

/* Real screens from skillcertify.io: tabs are radio inputs, the checked one shows its frame. */
.pr-shots { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-shots input { position: absolute; opacity: 0; pointer-events: none; }
.pr-shots label { order: 0; cursor: pointer; font: 600 13px/1 var(--display); color: var(--muted); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); transition: background .2s, color .2s, border-color .2s; }
.pr-shots label:hover { border-color: #C9A8FB; color: #5A05BE; }
.pr-shots label { position: relative; overflow: hidden; }
.pr-shots.rotating input:checked + label::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .55); transform-origin: left; animation: prTab var(--rot, 5000ms) linear; }
@keyframes prTab { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pr-shots input:checked + label { background: linear-gradient(135deg, #7506F7, #9B3FFF); border-color: transparent; color: #FFFFFF; }
.pr-shots input:focus-visible + label { outline: 3px solid #9B3FFF; outline-offset: 2px; }
.pr-frames { order: 1; flex: 1 0 100%; display: grid; margin-top: 6px; }
.pr-frames figure { grid-area: 1 / 1; margin: 0; border-radius: 14px; overflow: hidden; background: #07021E; border: 1px solid #2A2750; box-shadow: 0 24px 50px -24px rgba(7, 2, 30, .6); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.pr-frames figure { align-self: start; }
.pr-frames img { display: block; width: 100%; height: auto; aspect-ratio: 1422 / 840; object-fit: cover; object-position: top left; }
.pr-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1C192E; border-bottom: 1px solid #2A2750; }
.pr-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3566; flex: none; }
.pr-bar span { margin-left: 10px; font: 400 12px/1 var(--mono); color: #9D95C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#sh-skillcertify-0:checked ~ .pr-frames .sh-0, #sh-skillcertify-1:checked ~ .pr-frames .sh-1, #sh-skillcertify-2:checked ~ .pr-frames .sh-2, #sh-skillcertify-3:checked ~ .pr-frames .sh-3, #sh-skillcertify-4:checked ~ .pr-frames .sh-4 { opacity: 1; visibility: visible; transform: none; }
.pr-cap { order: 2; flex: 1 0 100%; margin: 4px 0 0; font: 400 12px/1.4 var(--mono); color: var(--muted); text-align: right; }

.pr-talent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #F7F0FF, #EEF4FF); border: 1px solid #E4D2FD; }
.pr-talent > div { min-width: 0; flex: 1 1 260px; }
.pr-talent b { display: block; font: 600 16px/1.3 var(--display); color: #3D0482; }
.pr-talent p { margin: 4px 0 8px; font-size: 14.5px; color: var(--muted); }
.pr-talent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pr-talent li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.4; }
.pr-talent li::before { content: ""; position: absolute; left: 2px; top: .32em; width: 11px; height: 6px; border-left: 2.2px solid #7506F7; border-bottom: 2.2px solid #7506F7; transform: rotate(-45deg); }
.pr-talent .btn { background: #FFFFFF; color: #5A05BE; border-color: #C9A8FB; white-space: nowrap; }
.pr-talent .btn:hover { border-color: #7506F7; }
.pr-tl { margin: 0 0 8px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 1100px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } .pr-shots { max-width: 760px; } .pr-grid > .pr-shots { position: static; } }
@media (max-width: 620px) { .pr-feats { grid-template-columns: minmax(0, 1fr); } .pr-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .pr-shots label { font-size: 11.5px; padding: 9px 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pr-frames, .pr-cap { grid-column: 1 / -1; } .pr-cap { text-align: left; } }
@media (max-width: 400px) { .pr-pitch { font-size: 16.5px; } .pr-cta .btn, .pr-talent .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .pr-status::before { animation: none; } .pr-frames figure { transition: none; } }
@media (max-width: 360px) { .product { padding: 16px 14px; } .pr-shots label { font-size: 10.5px; } }
