
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root{
    --jci-blue:#0097D7;
    --jci-black:#130F2D;
    --jci-navy:#1F4789;
    --jci-teal:#57BCBC;
    --jci-yellow:#EFC40F;
    --jci-white:#FFFFFF;
    --jci-light:#F2FAFD;
    --jci-border:#D7E8F1;
    --jci-muted:#667085;
    --jci-danger:#B42318;

    --bg:var(--jci-light);
    --card:var(--jci-white);
    --text:var(--jci-black);
    --muted:var(--jci-muted);
    --border:var(--jci-border);
    --blue:var(--jci-blue);
    --navy:var(--jci-navy);
    --teal:var(--jci-teal);
    --yellow:var(--jci-yellow);
    --orange:var(--jci-blue);
    --red:var(--jci-danger);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    background:var(--jci-light);
    color:var(--jci-black);
    font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
    line-height:1.5;
}

a{color:var(--jci-blue)}
h1,h2,h3{line-height:1.2;letter-spacing:-.025em}

.container{
    max-width:1220px;
    margin:0 auto;
    padding:28px;
}

.narrow{
    max-width:680px;
    margin:7vh auto;
    padding:20px;
}

.topbar{
    position:sticky;
    top:0;
    z-index:30;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:20px clamp(18px,4vw,56px);
    background:var(--jci-black);
    color:var(--jci-white);
    border-bottom:4px solid var(--jci-blue);
}

.topbar h1,.topbar p{margin:0}
.topbar p{color:rgba(255,255,255,.72)}

.topbar nav{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.topbar nav a{
    color:var(--jci-white);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
    font-size:.92rem;
    font-weight:600;
}

.topbar nav a:hover{
    background:rgba(255,255,255,.12);
}

.card{
    background:var(--jci-white);
    border:1px solid var(--jci-border);
    border-radius:18px;
    padding:26px;
    box-shadow:0 12px 34px rgba(19,15,45,.06);
}

.card h1,.card h2,.card h3{color:var(--jci-black)}

.grid{display:grid;gap:18px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.align-start{align-items:start}

label{
    display:block;
    margin-bottom:14px;
    color:var(--jci-black);
    font-weight:700;
}

input,textarea,select{
    width:100%;
    margin-top:6px;
    padding:13px 14px;
    border:1px solid #B9D8E7;
    border-radius:10px;
    background:var(--jci-white);
    color:var(--jci-black);
    font:inherit;
}

input:focus,textarea:focus,select:focus{
    outline:3px solid rgba(0,151,215,.18);
    border-color:var(--jci-blue);
}

textarea{resize:vertical}

button,.button{
    display:inline-block;
    border:0;
    border-radius:999px;
    padding:12px 20px;
    background:var(--jci-blue);
    color:var(--jci-white);
    font:inherit;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
}

button:hover,.button:hover{filter:brightness(.94)}
.secondary{background:var(--jci-navy)}
.danger{background:var(--jci-danger)}

.error,.success{
    padding:13px 15px;
    border-radius:12px;
    font-weight:650;
}

.error{background:#FEECEC;color:#8A1010}
.success{background:#E8F8EC;color:#176B2C}

.question{
    border:1px solid var(--jci-border);
    border-radius:16px;
    padding:18px;
    margin:14px 0;
    background:var(--jci-white);
}

.question.missing{
    border:2px solid var(--jci-danger);
    background:#FFF5F5;
}

.answer-options{display:grid;gap:10px}

.answer-choice{
    display:flex;
    align-items:flex-start;
    gap:11px;
    margin:0;
    padding:13px;
    border:1px solid var(--jci-border);
    border-radius:12px;
    background:var(--jci-white);
    cursor:pointer;
}

.answer-choice:has(input:checked){
    border-color:var(--jci-blue);
    background:#EAF7FC;
}

.answer-choice input,.inline input{width:auto;margin-top:4px}
.inline{display:flex;gap:8px;align-items:center}

.sticky-submit{
    position:sticky;
    bottom:0;
    padding:18px 0;
    text-align:right;
    background:linear-gradient(transparent,var(--jci-light) 40%);
}

.table-wrap{overflow:auto;border-radius:14px}

table{
    width:100%;
    border-collapse:collapse;
    background:var(--jci-white);
}

th,td{
    padding:13px 12px;
    border-bottom:1px solid var(--jci-border);
    text-align:left;
    vertical-align:top;
}

th{
    background:#EAF7FC;
    color:var(--jci-black);
    font-size:.88rem;
    text-transform:uppercase;
    letter-spacing:.04em;
}

tr:hover td{background:#FBFDFF}

.stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:20px;
}

.stats div{
    position:relative;
    overflow:hidden;
    padding:18px;
    background:var(--jci-white);
    border:1px solid var(--jci-border);
    border-radius:16px;
}

.stats div::before{
    content:'';
    position:absolute;
    inset:0 auto 0 0;
    width:5px;
    background:var(--jci-blue);
}

.stats strong{
    display:block;
    margin-top:4px;
    color:var(--jci-black);
    font-size:1.65rem;
}

.candidate-answer{
    padding:14px;
    margin:10px 0;
    border:1px solid var(--jci-border);
    border-radius:12px;
    background:#F8FCFE;
}

.judge-correctness{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.option-row{
    display:grid;
    grid-template-columns:90px minmax(0,1fr) 110px 90px;
    gap:12px;
    align-items:end;
    padding:13px;
    margin-bottom:10px;
    border:1px solid var(--jci-border);
    border-radius:12px;
}

.judge-link-row{
    padding:16px;
    margin-bottom:12px;
    border:1px solid var(--jci-border);
    border-radius:14px;
    background:#FBFDFF;
}

.score-badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-weight:800;
    white-space:nowrap;
}

.score-good{background:#E6F6EB;color:#176B2C}
.score-bad{background:#FFE7E7;color:#8A1010}
.score-empty{background:#EEF1F5;color:#596579}

.muted{color:var(--jci-muted)}

/* Landing page */
.landing-page{background:var(--jci-white)}

.hero{
    position:relative;
    min-height:760px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--jci-black);
    color:var(--jci-white);
}

.hero-centered{text-align:center}

.hero-content{
    position:relative;
    z-index:2;
    width:min(920px,100%);
    padding:90px 24px;
}

.hero-content-centered{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.brand-lockup{
    display:inline-grid;
    line-height:1;
}

.landing-brand{
    margin-bottom:36px;
}

.brand-wordmark{
    color:var(--jci-white);
    font-size:3rem;
    font-weight:700;
    letter-spacing:.02em;
}

.brand-location{
    margin-top:5px;
    color:var(--jci-teal);
    font-size:1rem;
    font-weight:800;
}

.eyebrow{
    margin:0 0 18px;
    color:var(--jci-teal);
    font-size:.82rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.eyebrow.dark{color:var(--jci-blue)}

.hero h1{
    max-width:850px;
    margin:0;
    font-size:clamp(3rem,7vw,6.5rem);
    font-weight:400;
    line-height:1.03;
}

.hero-copy{
    max-width:760px;
    margin:28px auto 34px;
    color:rgba(255,255,255,.8);
    font-size:clamp(1.05rem,2vw,1.28rem);
    line-height:1.65;
}

.test-entry-form{
    width:min(720px,100%);
    margin:0 auto 38px;
    padding:22px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:18px;
    background:rgba(255,255,255,.07);
    backdrop-filter:blur(10px);
    text-align:left;
}

.test-entry-form label{
    color:var(--jci-white);
}

.test-entry-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
}

.test-entry-row input{
    margin:0;
    min-height:52px;
}

.test-entry-row button{
    min-width:150px;
}

.entry-error{
    margin-top:12px;
    color:#FFD9D9;
    font-weight:700;
}

.hero-points{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    width:min(820px,100%);
}

.hero-points-centered{margin:0 auto}

.hero-points div{
    padding-top:15px;
    border-top:1px solid rgba(255,255,255,.25);
}

.hero-points strong,.hero-points span{display:block}
.hero-points span{
    margin-top:5px;
    color:rgba(255,255,255,.65);
    font-size:.9rem;
}

.hero-ripple{
    position:absolute;
    width:min(960px,85vw);
    aspect-ratio:1;
    opacity:.72;
}

.hero-ripple-centered{
    right:-35%;
    top:50%;
    transform:translateY(-50%);
}

.hero-ripple span{
    position:absolute;
    inset:0;
    border:clamp(18px,2vw,30px) solid transparent;
    border-top-color:var(--jci-blue);
    border-right-color:var(--jci-blue);
    border-radius:50%;
    transform:rotate(20deg);
}

.hero-ripple span:nth-child(2){
    inset:9%;
    border-top-color:var(--jci-navy);
    border-right-color:var(--jci-navy);
    transform:rotate(35deg);
}

.hero-ripple span:nth-child(3){
    inset:18%;
    border-top-color:var(--jci-teal);
    border-right-color:var(--jci-teal);
    transform:rotate(50deg);
}

.hero-ripple span:nth-child(4){
    inset:27%;
    border-top-color:var(--jci-blue);
    border-right-color:var(--jci-blue);
    transform:rotate(65deg);
}

.hero-ripple span:nth-child(5){
    inset:36%;
    border-top-color:var(--jci-navy);
    border-right-color:var(--jci-navy);
    transform:rotate(80deg);
}

.landing-section{
    padding:100px 24px;
    background:var(--jci-white);
}

.centered-section{text-align:center}

.landing-section-inner{
    max-width:1160px;
    margin:0 auto;
}

.landing-section h2{
    margin:0;
    font-size:clamp(2.3rem,5vw,4.7rem);
    font-weight:400;
}

.section-intro{
    max-width:760px;
    margin:20px auto 0;
    color:var(--jci-muted);
    font-size:1.08rem;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    margin-top:52px;
}

.info-card{
    min-height:230px;
    padding:26px;
    border:1px solid var(--jci-border);
    border-radius:18px;
    background:var(--jci-light);
    text-align:left;
}

.info-number{
    color:var(--jci-blue);
    font-weight:800;
}

.info-card h3{
    margin:48px 0 10px;
}

.info-card p{
    margin:0;
    color:var(--jci-muted);
}

.closing-banner{
    position:relative;
    overflow:hidden;
    min-height:340px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:70px 24px;
    background:var(--jci-blue);
    color:var(--jci-white);
    text-align:center;
}

.closing-banner > div:last-child{
    position:relative;
    z-index:2;
}

.closing-banner h2{
    margin:0;
    font-size:clamp(2.8rem,6vw,5.6rem);
    font-weight:400;
}

.closing-banner .eyebrow{
    color:var(--jci-white);
    opacity:.76;
}

.closing-ripple{
    position:absolute;
    width:620px;
    height:620px;
    right:-220px;
    border:26px solid var(--jci-navy);
    border-left-color:transparent;
    border-bottom-color:transparent;
    border-radius:50%;
    transform:rotate(30deg);
    box-shadow:
        0 0 0 32px var(--jci-blue),
        0 0 0 58px var(--jci-teal),
        0 0 0 90px var(--jci-blue),
        0 0 0 116px var(--jci-navy);
}

.landing-footer{
    padding:24px;
    background:var(--jci-black);
    color:rgba(255,255,255,.7);
    text-align:center;
}

.landing-footer-centered{
    display:flex;
    justify-content:center;
}

/* Modal editor */
.question-list{display:grid;gap:10px}

.question-list-item{
    width:100%;
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    text-align:left;
    background:var(--jci-white);
    color:var(--jci-black);
    border:1px solid var(--jci-border);
    border-radius:14px;
    padding:14px;
}

.question-list-item:hover{
    border-color:var(--jci-blue);
    background:#F7FCFE;
}

.question-number{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    border-radius:10px;
    background:#EAF7FC;
    color:var(--jci-blue);
    font-weight:800;
}

.question-list-content{display:grid;gap:4px}
.question-list-content small{color:var(--jci-muted)}

.modal-open{overflow:hidden}

.modal-backdrop{
    position:fixed;
    inset:0;
    z-index:1000;
    padding:24px;
    background:rgba(19,15,45,.78);
    overflow:auto;
}

.modal-backdrop[hidden]{display:none}

.modal-window{
    max-width:1050px;
    margin:0 auto;
    padding:24px;
    background:var(--jci-white);
    border-radius:18px;
    box-shadow:0 30px 90px rgba(0,0,0,.34);
}

.modal-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-start;
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:1px solid var(--jci-border);
}

.modal-header h2,.modal-header p{margin:0}
.modal-close{background:#EEF1F5;color:var(--jci-black);font-size:1.35rem}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}

.activity-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

details{margin-top:16px}
details summary{cursor:pointer;font-weight:800}

@media(max-width:820px){
    .container{padding:14px}
    .topbar{position:static;align-items:flex-start;flex-direction:column}
    .grid.two,.stats,.judge-correctness,.info-grid,.hero-points{grid-template-columns:1fr}
    .option-row{grid-template-columns:1fr}
    .card{padding:17px}
    .sticky-submit button{width:100%}
    .test-entry-row{grid-template-columns:1fr}
    .test-entry-row button{width:100%}
    .hero{min-height:720px}
    .hero-content{padding-top:70px}
    .hero-ripple-centered{right:-95%;opacity:.42}
    .modal-backdrop{padding:8px}
    .modal-window{padding:16px;border-radius:12px}
    .modal-actions{flex-direction:column-reverse}
    .modal-actions button{width:100%}
    .question-list-item{grid-template-columns:42px minmax(0,1fr)}
    .question-list-item > span:last-child{grid-column:2}
    .activity-stats{grid-template-columns:1fr 1fr}
}
