/* "Find your situation" (RunTests.astro) and the dialog its buttons open
   (BookModal.astro), including the booking calendar inside that dialog.
   Light values come from the CyborgTest Figma file; dark ones follow the
   site's dark theme. Loaded after book.css and booking-calendar.css. */

.tests,.book-modal{
  --rt-ink:#17181A;--rt-ink2:#0C243F;--rt-muted:#40536A;--rt-faint:#8A99AD;--rt-grey:#5C5F67;--rt-soft:#AEB4BC;
  --rt-card:#E5EFFF;--rt-chip:#F2F8FF;--rt-line:#C9D9EC;--rt-rule:#89ADE4;--rt-bg:#F2F8FF;
  --rt-btn:#17181A;--rt-btn-ink:#F2F8FF;--rt-btn-hover:#2B2D31;
  --rt-backdrop:rgba(242,248,255,.56);--rt-shadow:rgba(12,36,63,.24);--rt-icon-filter:none
}
:root:not([data-theme=light]) .tests,:root:not([data-theme=light]) .book-modal{
  --rt-ink:#CCE0FF;--rt-ink2:#CCE0FF;--rt-muted:rgba(204,224,255,.72);--rt-faint:rgba(204,224,255,.45);--rt-grey:rgba(204,224,255,.55);--rt-soft:rgba(23,24,26,.6);
  --rt-card:#222428;--rt-chip:#17181A;--rt-line:rgba(204,224,255,.16);--rt-rule:rgba(204,224,255,.24);--rt-bg:#17181A;
  --rt-btn:#CCE0FF;--rt-btn-ink:#17181A;--rt-btn-hover:#E3EEFF;
  --rt-backdrop:rgba(10,11,12,.6);--rt-shadow:rgba(0,0,0,.5);--rt-icon-filter:invert(1)
}

/* --- Section ------------------------------------------------------------ */
.tests{padding:108px 0 120px;color:var(--rt-ink2)}
.tests__inner{max-width:1204px;display:flex;flex-direction:column;gap:32px}
.tests__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 48px;padding-bottom:32px;border-bottom:1px solid var(--rt-rule)}
.tests__title{margin:0;font-size:64px;font-weight:600;line-height:.9;letter-spacing:-1.5px;color:var(--rt-ink)}
.tests__lead{width:340px;max-width:420px;margin:0;font-size:18px;font-weight:500;line-height:normal;color:var(--rt-ink)}
.tests__lead strong{font-weight:700}
.tests__layout{display:flex;align-items:flex-start;gap:56px}
.tests__side{flex:none;width:272px;display:flex;flex-direction:column;gap:12px}
.tests__eyebrow{margin:0;padding-left:16px;font-size:13.4px;font-weight:600;line-height:20px;letter-spacing:.6px;text-transform:uppercase;color:var(--rt-muted)}
.tests__cats{display:flex;flex-direction:column;gap:2px}
.tests__cat{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:13.5px 16px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--rt-muted);text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.tests__cat:hover{background:var(--rt-card)}
.tests__cat:focus-visible{outline:2px solid var(--rt-ink);outline-offset:2px}
.tests__cat[aria-selected=true]{border-color:var(--rt-grey);background:transparent}
.tests__catIdx{flex:none;font-size:13.4px;font-weight:600;color:var(--rt-faint)}
.tests__catName{flex:1;min-width:0;font-size:16px;font-weight:500}
.tests__catCount{flex:none;font-size:14px;font-weight:500;color:var(--rt-muted)}
.tests__cat[aria-selected=true] .tests__catIdx,.tests__cat[aria-selected=true] .tests__catName{color:var(--rt-ink2);font-weight:600}
.tests__srOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tests__panel{flex:1;min-width:0;display:flex;flex-direction:column;gap:16px}
.tests__panel[hidden]{display:none}
.tests__panelTitle{margin:0;font-size:31.7px;font-weight:500;line-height:36.5px;letter-spacing:-.63px;color:var(--rt-ink2)}
.tests__row{display:flex;align-items:center;gap:20px;padding:24px;border:1px solid var(--rt-line);border-radius:20px;background:var(--rt-card)}
.tests__rowIdx{flex:none;align-self:flex-start;width:44px;padding-top:5px;font-size:13.4px;font-weight:600;line-height:24px;color:var(--rt-muted)}
.tests__rowBody{flex:1;min-width:0}
.tests__rowTitle{margin:0;font-size:21.6px;font-weight:700;line-height:26px;letter-spacing:-.39px;color:var(--rt-ink2)}
.tests__rowDesc{max-width:560px;margin:6px 0 0;font-size:16px;line-height:24px;color:var(--rt-muted)}
.tests__chips{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.tests__chip{padding:2px 10px;border:1px solid var(--rt-line);border-radius:999px;background:var(--rt-chip);font-size:13.3px;line-height:20px;color:var(--rt-ink2)}
.tests__run{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13.5px 24px 13.5px 28px;border:1px solid transparent;border-radius:999px;background:var(--rt-btn);color:var(--rt-btn-ink);font-size:16px;font-weight:500;line-height:normal;white-space:nowrap;cursor:pointer;transition:background .15s ease,transform .15s ease}
.tests__run img{display:block;width:16px;height:16px;filter:var(--rt-icon-filter);transition:transform .15s ease}
.tests__run:hover{background:var(--rt-btn-hover)}
.tests__run:hover img{transform:translateX(2px)}
.tests__run:active{transform:scale(.98)}
.tests__run:focus-visible{outline:2px solid var(--rt-ink);outline-offset:3px}

@media (max-width:1100px){.tests__title{font-size:52px}}
@media (max-width:900px){
  .tests{padding:80px 0 96px}
  .tests__head{flex-direction:column;align-items:flex-start}
  .tests__lead{width:auto}
  .tests__layout{flex-direction:column;gap:24px}
  .tests__side{width:100%}
  .tests__cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tests__cat{border-color:var(--rt-line)}
}
@media (max-width:640px){
  .tests{padding:64px 0 80px}
  .tests__inner{gap:24px}
  .tests__head{padding-bottom:24px}
  .tests__title{font-size:40px;letter-spacing:-1px}
  .tests__lead{font-size:16px}
  .tests__eyebrow{padding-left:0}
  .tests__cats{grid-template-columns:1fr;gap:6px}
  .tests__panelTitle{font-size:26px;line-height:30px}
  .tests__row{flex-wrap:wrap;gap:12px 16px;padding:20px}
  .tests__rowIdx{width:auto;padding-top:2px}
  .tests__rowBody{flex-basis:calc(100% - 40px)}
  .tests__rowTitle{font-size:19px;line-height:24px}
  .tests__rowDesc{font-size:15px;line-height:22px}
  .tests__run{width:100%}
}

/* --- Dialog shell ------------------------------------------------------- */
.book-modal{padding:40px 20px}
.book-modal__backdrop{background:var(--rt-backdrop);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.book-modal__close{position:fixed;top:32px;right:32px;z-index:2;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent}
.book-modal__close img{display:block;width:32px;height:32px;filter:var(--rt-icon-filter)}
.book-modal__close:hover{opacity:.7}
.book-modal__panel,[data-theme=light] .book-modal__panel{max-width:920px;max-height:calc(100dvh - 80px);padding:40px;border:1px solid var(--rt-line);border-radius:24px;background:var(--rt-bg);box-shadow:0 30px 40px var(--rt-shadow);color:var(--rt-ink)}
.book-modal__step:not([hidden]){display:flex;flex-direction:column;gap:32px}
.book-modal__head{display:flex;flex-direction:column;gap:16px;max-width:620px;padding:0}
.book-modal__title{margin:0;font-size:48px;font-weight:600;line-height:.9;letter-spacing:-1.5px;color:var(--rt-ink)}
.book-modal__lead,[data-theme=light] .book-modal__lead{margin:0;font-size:18px;font-weight:500;line-height:normal;color:var(--rt-ink)}

/* Black pill button used across the dialog */
.book-modal__optBtn{display:flex;align-items:center;justify-content:center;width:100%;padding:11px 32px;border:0;border-radius:64px;background:var(--rt-btn);color:var(--rt-btn-ink);font-size:16px;font-weight:500;line-height:normal;white-space:nowrap;cursor:pointer;transition:background .15s ease,transform .15s ease}
.book-modal__optBtn:hover{background:var(--rt-btn-hover)}
.book-modal__optBtn:active{transform:scale(.98)}
.book-modal__optBtn:focus-visible,.book-modal__close:focus-visible,.book-modal__copy:focus-visible,.book-modal__link:focus-visible{outline:2px solid var(--rt-ink);outline-offset:3px}

/* Step: choose. The cards are a fixed height with content anchored to the
   bottom, so the screenshots rise above the card top, as in the design. */
.book-modal[data-step=choose] .book-modal__panel{padding-top:40px}
.book-modal__step[data-book-modal-step=choose]:not([hidden]){gap:88px}
.book-modal__title--choose{max-width:580px}
.book-modal__opts{display:flex;align-items:flex-start;gap:16px}
.book-modal__opt{flex:1 1 0;min-width:0;height:356px;display:flex;flex-direction:column;justify-content:flex-end;gap:24px;padding:24px;border:1px solid var(--rt-line);border-radius:24px;background:var(--rt-card)}
.book-modal__optImg{position:relative;flex:none;aspect-ratio:354/190;overflow:hidden;border:1px solid var(--rt-line);border-radius:20px}
.book-modal__optImg img{position:absolute;max-width:none}
.book-modal__optImg--own img{left:-1.16%;top:-1.4%;width:102.67%;height:110.49%}
.book-modal__optImg--team{background:#6F96D2}
.book-modal__optImg--team img{left:-1.41%;top:1.42%;width:103.11%;height:97.16%}
.book-modal__optText{display:flex;flex-direction:column;gap:8px;color:var(--rt-ink)}
.book-modal__optTitle{margin:0;font-size:26px;font-weight:600;line-height:29.9px;letter-spacing:-.5px}
.book-modal__optDesc{min-height:66px;margin:0;font-size:18px;line-height:normal}

.book-modal__step[data-book-modal-step=choose] .book-modal__skip{margin:-64px 0 0}
.book-modal__skip{margin:0;font-size:16px;text-align:center;color:var(--rt-grey)}
.book-modal__skipLink{color:var(--rt-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.book-modal__skipLink:hover{text-decoration-thickness:2px}
.book-modal__skipLink:focus-visible{outline:2px solid var(--rt-ink);outline-offset:3px;border-radius:4px}

/* Step: instructions */
.book-modal__prompt{position:relative;border:1px solid var(--rt-line);border-radius:20px;background:var(--rt-card)}
.book-modal__promptText{max-height:min(46vh,380px);overflow:auto;margin:0;padding:24px 72px 24px 24px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.6;color:var(--rt-ink);white-space:pre-wrap;overflow-wrap:anywhere}
.book-modal__promptText:focus-visible{outline:2px solid var(--rt-ink);outline-offset:-2px;border-radius:20px}
.book-modal__copy{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--rt-line);border-radius:22px;background:var(--rt-bg);color:var(--rt-ink);cursor:pointer;transition:border-color .15s ease,background .15s ease}
.book-modal__copy:hover{border-color:var(--rt-grey)}
.book-modal__copyIcon--check{display:none}
.book-modal__copy.is-copied{background:var(--rt-btn);border-color:var(--rt-btn);color:var(--rt-btn-ink)}
.book-modal__copy.is-copied .book-modal__copyIcon--copy{display:none}
.book-modal__copy.is-copied .book-modal__copyIcon--check{display:block}
.book-modal__note{margin:0;font-size:16px;color:var(--rt-grey)}
.book-modal__link{padding:0;border:0;background:none;color:var(--rt-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Step: done */
.book-modal__step.book-modal__done:not([hidden]){align-items:center;gap:0;padding:24px 0 8px;text-align:center}
.book-modal__done .book-modal__title{font-size:40px;margin:0 0 16px}
.book-modal__done .book-modal__lead{max-width:460px;margin:0 0 28px}
.book-modal__doneIcon{background:var(--rt-card);color:var(--rt-ink)}
.book-modal__doneBtn{width:auto;min-width:160px}

@media (max-width:860px){
  .book-modal__opts{flex-direction:column;align-items:stretch}
  .book-modal__opt{height:auto}
  .book-modal__step[data-book-modal-step=choose]:not([hidden]){gap:32px}
  .book-modal__optDesc{min-height:0}
  .book-modal__step[data-book-modal-step=choose] .book-modal__skip{margin:0}
}
@media (max-width:640px){
  .book-modal{padding:12px}
  .book-modal__close{top:16px;right:16px;width:28px;height:28px}
  .book-modal__close img{width:28px;height:28px}
  .book-modal__panel,[data-theme=light] .book-modal__panel{max-height:calc(100dvh - 68px);margin-top:44px;padding:24px 16px}
  .book-modal__step:not([hidden]){gap:24px}
  .book-modal__step[data-book-modal-step=choose]:not([hidden]){gap:24px}
  .book-modal__title{font-size:32px;letter-spacing:-1px}
  .book-modal__lead,[data-theme=light] .book-modal__lead{font-size:16px}
  .book-modal__opt{padding:16px;gap:16px}
  .book-modal__optTitle{font-size:22px;line-height:26px}
  .book-modal__optDesc{font-size:16px}
  .book-modal__promptText{padding:16px 60px 16px 16px;font-size:13px}
  .book-modal__copy{top:8px;right:8px}
}

/* --- Booking calendar inside the dialog --------------------------------- */
.book-modal__widget{padding:0}
.book-modal__widget .booking-calendar{border-radius:0;overflow:visible}
.book-modal .hwcal{min-height:0;padding:0;color:var(--rt-ink);font-size:16px}
.book-modal .hwcal__view{min-height:0}
.book-modal .hwcal :focus-visible{outline-color:var(--rt-ink)}
.book-modal .hwcal__view:not(.hwcal__done) > .hwcal__head{display:none}

.book-modal .hwcal__strip{gap:16px;margin:0}
.book-modal .hwcal__scroll{width:44px;height:44px;border:1.5px solid var(--rt-grey);border-radius:22px;color:var(--rt-grey)}
.book-modal .hwcal__scroll svg{width:22px;height:22px}
.book-modal .hwcal__scroll svg path{stroke-width:1.7}
.book-modal .hwcal__scroll:hover:not(:disabled){border-color:var(--rt-ink);color:var(--rt-ink)}
.book-modal .hwcal__days{gap:12px;padding:0;scroll-snap-type:x mandatory}
.book-modal .hwcal__dayCard{position:relative;justify-content:flex-start;width:121px;height:162px;padding:16.5px 0 0;border:1.5px solid var(--rt-grey);border-radius:24px;background:var(--rt-bg);color:var(--rt-ink)}
.book-modal .hwcal__dayCard:hover{border-color:var(--rt-ink)}
.book-modal .hwcal__dayTop{font-family:inherit;font-size:16px;line-height:1.5;letter-spacing:0;color:var(--rt-grey)}
.book-modal .hwcal__today{right:-10px}
.book-modal .hwcal__dayNum{margin:1px 0 0;font-size:34px;font-weight:400;line-height:42px;letter-spacing:0}
.book-modal .hwcal__dayMonth{margin:2px 0 0;font-size:16px;line-height:1.5;color:var(--rt-grey)}
.book-modal .hwcal__dayCount{position:absolute;left:50%;bottom:12px;width:79px;height:28px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;transform:translateX(-50%);border:1px solid var(--rt-line);border-radius:14px;background:var(--rt-card);font-size:12px;font-weight:400;color:var(--rt-ink)}
.book-modal .hwcal__dayCard.is-on{border-color:var(--rt-btn);background:var(--rt-btn);color:var(--rt-btn-ink);box-shadow:inset 0 0 0 1px var(--rt-btn),inset 0 0 0 3.5px var(--rt-btn-ink)}
.book-modal .hwcal__dayCard.is-on .hwcal__dayTop,.book-modal .hwcal__dayCard.is-on .hwcal__dayMonth{color:var(--rt-soft);opacity:1}
.book-modal .hwcal__dayCard.is-on .hwcal__dayCount{border-color:transparent;background:var(--rt-btn);color:var(--rt-btn-ink)}
.book-modal .hwcal__dayCard--ghost{width:121px;height:162px;border:0;border-radius:24px;background:var(--rt-card)}

.book-modal .hwcal__zone{margin:32px 0 0;gap:12px}
.book-modal .hwcal__zoneSelect{gap:12px;font-size:16px;line-height:1.5;color:var(--rt-grey)}
.book-modal .hwcal__zoneSelect:hover{color:var(--rt-ink)}
.book-modal .hwcal__zoneSelect > svg:first-child{width:22px;height:22px}
.book-modal .hwcal__zoneSelect > svg:last-of-type{width:18px;height:18px}
.book-modal .hwcal__clock{height:40px;padding:3px;border:1.5px solid var(--rt-grey);border-radius:20px;background:var(--rt-bg)}
.book-modal .hwcal__clock button{width:60px;height:32px;padding:0;border-radius:16px;font-family:inherit;font-size:14px;letter-spacing:0;color:var(--rt-ink)}
.book-modal .hwcal__clock button[aria-pressed=true]{background:var(--rt-line);color:var(--rt-ink)}

.book-modal .hwcal__part{margin:32px 0 0}
.book-modal .hwcal__partLabel{gap:16px;margin:0 0 16px;font-family:inherit;font-size:16px;line-height:1.5;letter-spacing:0;color:var(--rt-grey)}
.book-modal .hwcal__partLabel::after{background:var(--rt-rule)}
.book-modal .hwcal__times{display:flex;flex-wrap:wrap;gap:12px}
.book-modal .hwcal__time{width:auto;height:auto;padding:8px 24px;border:1px solid var(--rt-grey);border-radius:64px;font-size:16px;font-weight:500;line-height:normal;color:var(--rt-ink)}
.book-modal .hwcal__time:hover{border-color:var(--rt-ink)}
.book-modal .hwcal__time.is-on{border-color:var(--rt-btn);background:var(--rt-btn);color:var(--rt-btn-ink)}

.book-modal .hwcal__bar{gap:16px;margin:32px 0 0;padding:0;border-top:0}
.book-modal .hwcal__barText{font-size:16px;font-weight:500;color:var(--rt-ink)}
.book-modal .hwcal__cta,.book-modal .hwcal__submit{padding:11px 32px;border-radius:64px;background:var(--rt-btn);color:var(--rt-btn-ink);font-size:16px;font-weight:500}
.book-modal .hwcal__cta svg{display:none}
.book-modal .hwcal__cta:not(:disabled):hover,.book-modal .hwcal__submit:not(:disabled):hover{background:var(--rt-btn-hover)}
.book-modal .hwcal__cta:disabled{opacity:.35}

/* Details step of the calendar, in the same palette */
.book-modal .hwcal__chosen{border-color:var(--rt-line);border-radius:20px;background:var(--rt-card)}
.book-modal .hwcal__change{border-color:var(--rt-grey)}
.book-modal .hwcal__label{font-family:inherit;font-size:13px;letter-spacing:.04em;color:var(--rt-grey)}
.book-modal .hwcal__input{border-color:var(--rt-grey);border-radius:14px;color:var(--rt-ink);font-size:16px}
.book-modal .hwcal__input:focus{border-color:var(--rt-ink)}

@media (max-width:640px){
  .book-modal .hwcal__strip{gap:8px}
  .book-modal .hwcal__scroll{width:36px;height:36px}
  .book-modal .hwcal__scroll svg{width:18px;height:18px}
  .book-modal .hwcal__days{gap:8px}
  .book-modal .hwcal__dayCard,.book-modal .hwcal__dayCard--ghost{width:96px;height:140px;padding-top:12px;border-radius:20px}
  .book-modal .hwcal__dayNum{font-size:28px;line-height:36px}
  .book-modal .hwcal__dayTop,.book-modal .hwcal__dayMonth{font-size:14px}
  .book-modal .hwcal__dayCount{width:72px;bottom:10px}
  .book-modal .hwcal__zone,.book-modal .hwcal__part,.book-modal .hwcal__bar{margin-top:24px}
  .book-modal .hwcal__time{padding:8px 18px}
}
