.source-popup{box-sizing:border-box;width:calc(100% - 32px);max-width:820px;max-height:calc(100dvh - 32px);margin:auto;padding:32px;border:0;border-radius:16px;background:#fff;color:#0b1f3b;overflow:auto;font-family:'Instrument Sans',Arial,sans-serif;box-shadow:0 18px 60px #0002}
.source-popup:not([open]){display:none}.source-popup::backdrop{background:#0b1f3bdb}.source-popup *{box-sizing:border-box}.source-popup-open{overflow:hidden}
.source-popup__close{position:absolute;right:10px;top:10px;width:44px;height:44px;border:0;border-radius:50%;background:#f4f9fb;color:#0b1f3b;font:24px Arial;cursor:pointer}
.source-popup__brands{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-right:28px;margin-bottom:30px}.source-popup__brands img{display:block;width:150px;height:auto}.source-popup__brands .source-popup__rt{width:122px}
.source-popup__eyebrow{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#0a7f7a;margin-bottom:12px}
.source-popup h2{font-size:clamp(27px,4.1vw,35px);font-weight:700;letter-spacing:-.035em;line-height:1.14;margin:0 0 16px;color:#0b1f3b}.source-popup p{max-width:none;font-size:15px;line-height:1.6;color:#596d7a;margin:0}
.source-popup__cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:25px}.source-popup__card{position:relative;display:flex;flex-direction:column;align-items:flex-start;background:#f4f9fb;border:1px solid #d9e5eb;padding:23px;border-radius:12px}
.source-popup__icon{width:46px;height:46px;object-fit:contain;margin-bottom:17px}.source-popup__badge{position:absolute;top:23px;right:23px;background:#e3f1ef;color:#0a7f7a;font-size:12px;font-weight:600;line-height:1.4;padding:5px 9px;border-radius:6px}.source-popup__label{font-size:16px;font-weight:600;color:#0a7f7a;margin-bottom:9px}
.source-popup h3{font-size:21px;line-height:1.22;font-weight:600;letter-spacing:-.025em;margin:0 0 12px;color:#0b1f3b}.source-popup__card p{font-size:14px;flex:1;margin-bottom:24px}
.source-popup__action{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;background:#0a7f7a;color:#fff;border:0;border-radius:8px;text-decoration:none;font:600 13px/1.35 'Instrument Sans',Arial,sans-serif;padding:12px 14px;text-align:left}.source-popup__action:hover{background:#086b67}
.source-popup__browse{display:block;background:none;border:0;font:500 14px 'Instrument Sans',Arial,sans-serif;color:#596d7a;margin:22px auto 0;padding:8px;min-height:44px;cursor:pointer}.source-popup .source-popup__promise{font-size:13px;font-weight:500;color:#0b1f3b;text-align:center;margin:12px 0 0;padding-top:18px;border-top:1px solid #d9e5eb}
.popup-test-controls{font-family:'Instrument Sans',Arial,sans-serif;max-width:1120px;margin:110px auto 24px;padding:24px;background:#f4f9fb;color:#0b1f3b;border:1px solid #d9e5eb;border-radius:12px}.popup-test-controls h1{font-size:24px;margin:0 0 12px}.popup-test-controls p{font-size:14px;line-height:1.5}.popup-test-controls label{display:block;margin:16px 0 6px}.popup-test-controls input{width:100%;max-width:560px;font:16px 'Instrument Sans',Arial,sans-serif;padding:12px;border:1px solid #596d7a;border-radius:6px}.popup-test-controls__actions{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.popup-test-controls button{font:500 14px 'Instrument Sans',Arial,sans-serif;min-height:44px;padding:10px 16px;border:1px solid #0a7f7a;border-radius:6px;background:#fff;color:#0a7f7a;cursor:pointer}.popup-test-controls [data-test-start]{background:#0a7f7a;color:#fff}
@media(max-width:600px){.source-popup{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:24px 18px}.source-popup__brands{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:25px}.source-popup__cards{grid-template-columns:1fr}.source-popup__card{padding:20px}.popup-test-controls{margin:100px 12px 24px;padding:18px}}

#quick-scan,#fase-1{scroll-margin-top:110px}

/* Shared rows keep card copy and buttons aligned when headings wrap. */
@media(min-width:601px){
  .source-popup__cards{grid-template-rows:repeat(3,auto) 1fr auto;row-gap:10px}
  .source-popup__card{display:grid;grid-template-rows:subgrid;grid-row:span 5;align-items:start}
  .source-popup__icon,.source-popup__label,.source-popup h3{margin-bottom:0}
  .source-popup__card p{margin:0 0 6px}
}
@media(min-width:760px){
  .source-popup{max-width:1040px;padding:24px 28px}
  .source-popup__brands{margin-bottom:16px}
  .source-popup__eyebrow{margin-bottom:8px}
  .source-popup h2{font-size:30px;margin-bottom:12px}
  .source-popup p{font-size:14px;line-height:1.5}
  .source-popup__cards{margin-top:18px}
  .source-popup__card{padding:18px}
  .source-popup__icon{width:36px;height:36px}
  .source-popup__badge{top:18px;right:18px}
  .source-popup h3{font-size:19px}
  .source-popup__action{min-height:44px;padding:10px 14px}
  .source-popup__browse{margin-top:10px}
  .source-popup .source-popup__promise{margin-top:4px;padding-top:10px}
}
@media(min-width:760px) and (max-height:850px){
  .source-popup{padding:16px 24px}
  .source-popup__brands{margin-bottom:10px}
  .source-popup__brands img{width:130px}
  .source-popup__brands .source-popup__rt{width:105px}
  .source-popup h2{font-size:27px;margin-bottom:10px}
  .source-popup__cards{margin-top:12px;row-gap:8px}
  .source-popup__card{padding:14px 16px}
  .source-popup__icon{width:30px;height:30px}
  .source-popup__badge{top:14px;right:16px}
  .source-popup h3{font-size:18px}
  .source-popup__browse{margin-top:4px}
  .source-popup .source-popup__promise{margin-top:0;padding-top:6px}
}

@media(min-width:760px) and (max-height:650px){
  .source-popup{padding:12px 20px;max-width:1100px}
  .source-popup__brands{margin-bottom:4px}
  .source-popup__brands img{max-height:28px;object-fit:contain}
  .source-popup__eyebrow{margin-bottom:4px}
  .source-popup h2{font-size:25px;margin-bottom:6px}
  .source-popup__cards{margin-top:10px;row-gap:6px}
  .source-popup__card{padding:12px 16px}
  .source-popup__icon{width:26px;height:26px}
  .source-popup__browse{margin-top:0}
  .source-popup .source-popup__promise{padding-top:4px}
}
