/* =====================================================================
   Professional Certification & Credentialing Portal — landing page
   Served at the root of testingplatform.org.

   Self-contained: no external stylesheets, scripts, fonts or images.
   Palette taken from the client's design:
     navy   #0a1a3f / #14295c   chrome, headings, AAPSCM
     gold   #c9a227 / #e0bb52   accents, rules, "CERTIFICATION"
   ===================================================================== */

@import url('fonts/inter/inter.css');

:root {
    --navy-950:  #06122e;
    --navy-900:  #0a1a3f;
    --navy-800:  #10245a;
    --navy-700:  #14295c;
    --navy-600:  #1c3a7a;
    --gold:      #c9a227;
    --gold-lt:   #e0bb52;
    --gold-pale: #f3e4b4;
    --ink:       #16203a;
    --slate:     #5b6780;
    --line:      #e2e7f0;
    --paper:     #ffffff;
    --wash-a:    #eef3fa;
    --wash-b:    #dbe6f4;

    --sh-card:   0 2px 4px rgba(10,26,63,.05), 0 12px 28px rgba(10,26,63,.09);
    --sh-lift:   0 6px 12px rgba(10,26,63,.09), 0 22px 48px rgba(10,26,63,.17);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; }
a { text-decoration: none; color: inherit; }

.wrap { width: 100%; max-width: 1660px; margin: 0 auto; padding: 0 26px; }

.sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ===================== masthead ===================================== */

.hdr {
    position: relative;
    background: linear-gradient(104deg, var(--navy-950) 0%, var(--navy-900) 48%, #123063 100%);
    border-bottom: 3px solid var(--gold);
    overflow: hidden;
}

/* faint diagonal sweep echoing the design's top-right facet */
.hdr::after {
    content: '';
    position: absolute; inset: 0 0 0 55%;
    background: linear-gradient(102deg, transparent 0 38%, rgba(255,255,255,.055) 38% 62%, transparent 62%);
    pointer-events: none;
}

.hdr__in {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 30px;
    padding: 15px 0;
}

.brandmark { display: flex; align-items: center; gap: 15px; flex: 0 0 auto; }

.brandmark__shield { width: 54px; height: 60px; flex: 0 0 auto; }

.brandmark__txt { line-height: 1.16; }

.brandmark__l1 {
    display: block; color: #fff;
    font-size: 21px; font-weight: 700; letter-spacing: .055em;
}
.brandmark__l2 {
    display: block; color: var(--gold-lt);
    font-size: 21px; font-weight: 700; letter-spacing: .055em;
}
.brandmark__l3 {
    display: block; margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 12.5px; font-weight: 400; letter-spacing: .035em;
}

.trustbar { margin-left: auto; display: flex; align-items: center; gap: 0; }

.trustbar__i {
    display: flex; align-items: center; gap: 11px;
    padding: 0 26px;
}
.trustbar__i + .trustbar__i { border-left: 1px solid rgba(255,255,255,.2); }
.trustbar__i:last-child { padding-right: 0; }

.trustbar__ico { width: 27px; height: 27px; color: var(--gold-lt); flex: 0 0 auto; }

.trustbar__k {
    display: block; color: #fff;
    font-size: 12.5px; font-weight: 700; letter-spacing: .045em;
}
.trustbar__v {
    display: block; color: rgba(255,255,255,.68);
    font-size: 11.5px; font-weight: 400; margin-top: 1px;
}

/* ===================== hero ========================================= */

.hero {
    position: relative;
    padding: 52px 0 34px;
    background:
        radial-gradient(120% 96% at 50% -14%, #ffffff 0%, var(--wash-a) 46%, var(--wash-b) 100%);
    overflow: hidden;
}

/* dotted global texture, left */
.hero__dots {
    position: absolute; top: 12px; left: -30px;
    width: 620px; height: 350px;
    background-image: radial-gradient(var(--navy-600) 1.35px, transparent 1.35px);
    background-size: 11px 11px;
    opacity: .2;
    -webkit-mask-image: radial-gradient(78% 70% at 40% 44%, #000 0%, rgba(0,0,0,.55) 58%, transparent 100%);
            mask-image: radial-gradient(78% 70% at 40% 44%, #000 0%, rgba(0,0,0,.55) 58%, transparent 100%);
    pointer-events: none;
}

/* skyline + network, right */
.hero__city {
    position: absolute; top: 0; right: 0;
    width: 640px; max-width: 46%; height: 420px;
    opacity: .5;
    pointer-events: none;
}

.hero__in { position: relative; z-index: 1; text-align: center; }

.hero__h {
    margin: 0;
    font-size: clamp(34px, 5.1vw, 74px);
    font-weight: 800;
    letter-spacing: -.012em;
    line-height: 1.04;
    color: var(--navy-900);
    text-transform: uppercase;
}
.hero__h em { font-style: normal; color: var(--gold); }

.hero__rule {
    display: flex; align-items: center; justify-content: center; gap: 17px;
    margin: 24px auto 20px; max-width: 430px;
}
.hero__rule::before, .hero__rule::after {
    content: ''; flex: 1 1 auto; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__rule::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero__rule svg { width: 30px; height: 34px; color: var(--gold); flex: 0 0 auto; }

.hero__sub {
    margin: 0 auto; max-width: 690px;
    font-size: clamp(14.5px, 1.35vw, 17.5px);
    line-height: 1.6; color: var(--slate);
}

/* ===================== provider grid ================================ */

.grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 15px;
    padding-bottom: 22px;
}

.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--sh-card);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.card--live:hover, .card--live:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--sh-lift);
}

.card__body {
    flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: center;
    padding: 26px 17px 20px;
    text-align: center;
}

.card__logo {
    height: 82px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
}
.card__logo img { max-height: 82px; width: auto; object-fit: contain; }

/* typographic stand-in where no logo artwork is used */
.card__wordmark {
    font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
    color: var(--c);
}
.card__wordmark small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; margin-top: 7px; }

.card__name {
    margin: 0 0 3px;
    font-size: 25px; font-weight: 800; letter-spacing: -.018em; line-height: 1.06;
    color: var(--c);
}
.card__name sup { font-size: .44em; font-weight: 700; top: -.75em; }

.card__name--sm { font-size: 21px; }

.card__kicker {
    display: block; margin: 3px 0 0;
    font-size: 12px; font-weight: 700; letter-spacing: .11em;
    color: var(--c); opacity: .82;
}

.card__desc {
    margin: 11px 0 0;
    font-size: 12.9px; line-height: 1.5; color: var(--slate);
    min-height: 58px;
}

.card__tags {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%; margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--line);
}

.card__tag { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.card__tag svg { width: 21px; height: 21px; color: var(--c); }
.card__tag span {
    font-size: 7.6px; font-weight: 700; letter-spacing: .035em;
    line-height: 1.24; color: var(--slate); text-transform: uppercase;
}

/* --- call to action ------------------------------------------------- */

.card__cta {
    position: relative;
    display: block;
    margin-top: auto;
    padding: 40px 10px 17px;
    background: var(--c);
    color: #fff;
    text-align: center;
    font-size: 13.5px; font-weight: 700; letter-spacing: .085em;
    text-transform: uppercase;
    /* chevron notch dipping to the centre, as in the design */
    -webkit-clip-path: polygon(0 0, 50% 27px, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 50% 27px, 100% 0, 100% 100%, 0 100%);
    transition: filter .2s ease;
}
.card__cta:hover { filter: brightness(1.14); }

.card__arrow {
    position: absolute; top: 16px; left: 50%;
    width: 33px; height: 33px; margin-left: -16.5px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.16);
}
.card__arrow svg { width: 15px; height: 15px; color: var(--c); }

/* --- not yet launched ----------------------------------------------- */

.card--soon { opacity: .93; }
.card--soon .card__logo img { filter: grayscale(1); opacity: .55; }

.card__cta--soon {
    background: #8a93a6;
    cursor: default;
    -webkit-clip-path: polygon(0 0, 50% 27px, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 50% 27px, 100% 0, 100% 100%, 0 100%);
}
.card__cta--soon:hover { filter: none; }
.card__cta--soon .card__arrow { background: rgba(255,255,255,.9); }
.card__cta--soon .card__arrow svg { color: #8a93a6; }

.card__flag {
    position: absolute; top: 11px; right: 11px; z-index: 2;
    padding: 4px 9px; border-radius: 20px;
    background: #eef1f6; border: 1px solid #dde3ec;
    font-size: 8.4px; font-weight: 800; letter-spacing: .085em;
    color: #74809a; text-transform: uppercase;
}

/* ===================== microsoft strip ============================== */

.msrow {
    position: relative;
    display: flex; align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--sh-card);
    overflow: hidden;
    margin: 12px auto 30px;
    max-width: 1400px;
}

.msrow__brand {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 26px;
    flex: 0 0 auto;
}
.msrow__logo { width: 38px; height: 38px; flex: 0 0 auto; }
.msrow__name { font-size: 21px; font-weight: 700; color: #5b5b5b; line-height: 1.1; letter-spacing: -.01em; }
.msrow__name small { display: block; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #3c3c3c; }

.msrow__desc {
    display: flex; align-items: center;
    padding: 20px 26px;
    border-left: 1px solid var(--line);
    font-size: 12.9px; line-height: 1.5; color: var(--slate);
    max-width: 260px;
}

.msrow__tags {
    flex: 1 1 auto;
    display: flex; align-items: center; justify-content: space-evenly; gap: 8px;
    padding: 20px 26px;
    border-left: 1px solid var(--line);
}
.msrow__tags .card__tag { --c: #2d6fbe; }
.msrow__tags .card__tag span { font-size: 8.2px; }

.msrow__cta {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 13px;
    padding: 20px 34px 20px 62px;
    background: var(--navy-700);
    color: #fff;
    font-size: 13.5px; font-weight: 700; letter-spacing: .085em; text-transform: uppercase;
    -webkit-clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%);
}
.msrow__cta .card__arrow { position: static; margin: 0; width: 33px; height: 33px; }
.msrow__cta .card__arrow svg { color: var(--navy-700); }

/* ===================== benefits ===================================== */

.benefits {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: linear-gradient(100deg, var(--navy-900), var(--navy-700));
    border-radius: 13px;
    padding: 24px 14px;
    margin-bottom: 42px;
    max-width: 1520px; margin-left: auto; margin-right: auto;
}

.benefit {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 4px 22px;
}
.benefit + .benefit { border-left: 1px solid rgba(255,255,255,.16); }

.benefit svg { width: 30px; height: 30px; color: var(--gold-lt); flex: 0 0 auto; margin-top: 2px; }

.benefit__k {
    display: block; color: #fff;
    font-size: 13.5px; font-weight: 700; letter-spacing: .045em;
    text-transform: uppercase;
}
.benefit__v {
    display: block; margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 12.2px; line-height: 1.45;
}

/* ===================== footer ======================================= */

.foot {
    background: var(--navy-950);
    border-top: 3px solid var(--gold);
    padding: 19px 0;
}

.foot__in {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}

.foot__tag {
    display: flex; align-items: center; gap: 12px;
    color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .045em;
    line-height: 1.4; text-transform: uppercase;
}
.foot__tag svg { width: 27px; height: 27px; color: var(--gold-lt); flex: 0 0 auto; }

.foot__site {
    display: flex; align-items: center; gap: 11px;
    margin: 0 auto;
    color: var(--gold-lt); font-size: 14px; font-weight: 500;
}
.foot__site svg { width: 24px; height: 24px; flex: 0 0 auto; }

.foot__social { display: flex; align-items: center; gap: 11px; }
.foot__social b {
    color: #fff; font-size: 12.5px; font-weight: 700;
    letter-spacing: .075em; text-transform: uppercase; margin-right: 5px;
}
.foot__social a {
    width: 31px; height: 31px; border-radius: 7px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background .2s ease;
}
.foot__social a:hover { background: var(--gold); color: var(--navy-950); }
.foot__social svg { width: 16px; height: 16px; }

.foot__legal {
    margin: 14px auto 0; padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.5); font-size: 11.5px; text-align: center;
}
.foot__legal a { color: rgba(255,255,255,.72); }
.foot__legal a:hover { color: var(--gold-lt); }

/* ===================== responsive =================================== */

@media (max-width: 1500px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .msrow__desc { max-width: 220px; }
}

@media (max-width: 1180px) {
    .hdr__in { flex-wrap: wrap; gap: 18px; }
    .trustbar { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .trustbar__i:first-child { padding-left: 0; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .benefits { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
    .benefit:nth-child(3n+1) { border-left: 0; }
    .msrow { flex-wrap: wrap; }
    .msrow__desc, .msrow__tags { max-width: none; }
    .msrow__cta { width: 100%; clip-path: none; -webkit-clip-path: none; padding: 17px 26px; justify-content: center; }
    .hero__city { display: none; }
}

@media (max-width: 820px) {
    .wrap { padding: 0 16px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .benefit { border-left: 0 !important; }
    .card__desc { min-height: 0; }
    .foot__in { justify-content: center; text-align: center; }
    .foot__tag, .foot__site { margin: 0 auto; }
    .msrow__brand, .msrow__desc, .msrow__tags { border-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .benefits { grid-template-columns: 1fr; }
    .brandmark__l1, .brandmark__l2 { font-size: 17px; }
    .trustbar__i { padding: 0 14px 0 0; border-left: 0 !important; }
    .hero { padding-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

@media print {
    .card__cta, .msrow__cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   Corrections after first render
   ===================================================================== */

/* Long category labels were being clipped rather than wrapping: grid
   children default to min-width:auto, which refuses to shrink. */
.card__tag { min-width: 0; }
.card__tag span {
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Neutral emblem standing in for providers whose own logo artwork we do
   not reproduce. */
.card__emblem { width: 70px; height: 70px; color: var(--c); }
.msrow__logo  { width: 38px; height: 38px; color: #8a93a6; }

/* The design sets the masthead lockup in caps. */
.brandmark__l1, .brandmark__l2 { text-transform: uppercase; }

/* Hero texture was too faint to read as the map/skyline of the design. */
.hero__dots { opacity: .34; width: 700px; height: 400px; }
.hero__city { opacity: .78; }

/* ---------------------------------------------------------------------
   Second pass
   --------------------------------------------------------------------- */

/* The design runs seven cards across a very wide canvas. Matching that
   width is what lets a word like CYBERSECURITY sit on one line at a
   legible size instead of being hyphen-broken. */
.wrap { max-width: 1790px; }

.card__body { padding: 26px 13px 20px; }
.card__tags { gap: 3px; }
.card__tag  { overflow: visible; }
.card__tag span {
    font-size: 6.9px;
    letter-spacing: .012em;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* The notch was cutting through the arrow and the label, because the
   clip applied to the element itself. Clip a background layer instead
   and let the content sit above it. */
.card__cta,
.card__cta--soon {
    background: transparent;
    isolation: isolate;
    padding: 60px 10px 18px;
    -webkit-clip-path: none;
            clip-path: none;
}
.card__cta::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: var(--c);
    -webkit-clip-path: polygon(0 0, 50% 24px, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 50% 24px, 100% 0, 100% 100%, 0 100%);
    transition: filter .2s ease;
}
.card__cta--soon::before { background: #8a93a6; }
.card__cta:hover { filter: none; }
.card__cta:hover::before { filter: brightness(1.14); }
.card__cta--soon:hover::before { filter: none; }

.card__arrow { top: 20px; z-index: 1; }

/* Microsoft strip keeps the same lockup without the notch. */
.msrow__cta { background: #8a93a6 !important; }

/* CYBERSECURITY and NETWORKING were touching in the seven-across layout. */
.card__tags { gap: 5px; }
.card__tag span { font-size: 6.5px; }

/* CompTIA is the worst case: CYBERSECURITY, NETWORKING and INFRASTRUCTURE
   all sit side by side. Drop the tracking and a fraction of size so every
   label stays on one line, as in the design. */
.card__tags { gap: 2px; }
.card__tag span { font-size: 6.2px; letter-spacing: 0; }

/* On a narrow phone the masthead lockup ran under the header's right edge. */
@media (max-width: 560px) {
    .brandmark { gap: 11px; }
    .brandmark__shield { width: 40px; height: 45px; }
    .brandmark__l1, .brandmark__l2 { font-size: 14.5px; letter-spacing: .03em; }
    .brandmark__l3 { font-size: 11px; }
    .hdr__in { padding: 13px 0; }
}

/* ---------------------------------------------------------------------
   Legibility pass on the category labels
   Four across in a 235px card capped the type at ~6px. Two columns give
   each label roughly double the width, so the text can go up to a size
   that is actually readable and long words still sit on one line.
   --------------------------------------------------------------------- */

.card__tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 10px;
    margin-top: 16px;
    padding-top: 15px;
}

.card__tag { gap: 7px; }
.card__tag svg { width: 24px; height: 24px; }
.card__tag span {
    font-size: 9.6px;
    letter-spacing: .028em;
    line-height: 1.3;
}

/* The Microsoft strip lays its five out in a flex row with room to spare. */
.msrow__tags .card__tag span { font-size: 9.6px; }
.msrow__tags .card__tag svg  { width: 24px; height: 24px; }

/* The Microsoft strip packs five labels into one flex row; on a phone
   they were squeezed narrower than the words. Let them wrap instead. */
.msrow__tags { flex-wrap: wrap; row-gap: 16px; }
.msrow__tags .card__tag { flex: 0 0 auto; min-width: 78px; }
